:root{
  --blue:#002147;
  --blue-soft:#0b2a52;
  --green:#2ECC71;
  --amber:#F39C12;
  --red:#E74C3C;

  --ink:#0f172a;
  --muted:#64748b;
  --line:#e6ebf2;

  --bg:#f5f7fb;
  --card:#ffffff;

  --radius:16px;
}

/* RESET */
*{box-sizing:border-box}

html,body{
  height:100%;
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

/* Sticky footer layout */
body{
  display:flex;
  flex-direction:column;
}

/* LINKS */
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}

/* CONTAINER */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* =========================
   HEADER
========================= */
header,.site-header,.nav{
  background:var(--blue);
  padding:1rem 0;
  color:#fff;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.menu{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}
.menu a{
  color:#fff;
  font-weight:600;
  opacity:.95;
}
.menu a:hover{opacity:1}

/* =========================
   HERO
========================= */
.hero{
  padding:48px 0 20px;
}
.hero h1{
  font-size:2.4rem;
  margin:0 0 10px;
  color:var(--blue);
}
.hero p{
  font-size:1.05rem;
  color:var(--muted);
  max-width:700px;
}

/* =========================
   CARDS (CORE SaaS FEEL)
========================= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 40px rgba(0,0,0,.08);
}

/* Checker card */
.checker-card{
  width:100%;
  max-width:820px;
  overflow:hidden;
}

/* =========================
   SECTION SPACING
========================= */
.section{
  padding:40px 0;
}
.section h1,.section h2,.section h3{
  color:var(--blue);
  margin:0 0 14px;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
@media (max-width:900px){
  .grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .grid{grid-template-columns:1fr}
}

/* TEXT */
.muted{color:var(--muted)}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

/* =========================
   FORMS
========================= */
label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}

input,
select,
textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  padding:12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  font-size:1rem;
  font-family:inherit;
  transition:border .15s ease, box-shadow .15s ease;
  display:block;
  background:#fff;
  color:var(--ink);
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(0,33,71,.12);
}

/* iPhone / Safari control fixes */
input[type="date"],
select{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

input[type="date"]{
  min-height:52px;
  padding-right:14px;
  overflow:hidden;
}

input[type="date"]::-webkit-date-and-time-value{
  text-align:left;
}

input[type="date"]::-webkit-calendar-picker-indicator{
  opacity:1;
  cursor:pointer;
}

/* Checker form layout */
#checker{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

#checker > div,
#checker .full{
  min-width:0;
  width:100%;
}

#checker .full{
  grid-column:1 / -1;
}

#checker input,
#checker select,
#checker textarea,
#checker button{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  display:block;
}

/* =========================
   BUTTONS
========================= */
button,.btn{
  width:100%;
  padding:12px 16px;
  border-radius:12px;
  border:none;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:all .15s ease;
  box-shadow:0 6px 16px rgba(0,33,71,.15);
}

button:hover,.btn:hover{
  background:var(--blue-soft);
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,33,71,.2);
}

button:active,.btn:active{
  transform:translateY(1px);
}

/* =========================
   TRUST / INFO BOXES
========================= */
.tip-box{
  background:#fff;
  border-left:5px solid var(--blue);
  padding:16px;
  border-radius:12px;
  margin:18px 0;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.notice{
  border-left:5px solid var(--amber);
  background:#fff8ef;
  padding:14px;
  border-radius:12px;
}

.success{
  border-left:5px solid var(--green);
  background:#f0fdf4;
  padding:14px;
  border-radius:12px;
}

/* =========================
   CTA
========================= */
.cta{
  background:var(--blue);
  color:#fff;
  padding:14px 20px;
  display:inline-block;
  margin-top:20px;
  border-radius:12px;
  font-weight:700;
  box-shadow:0 6px 16px rgba(0,33,71,.15);
}
.cta:hover{
  background:var(--blue-soft);
}

/* =========================
   FOOTER
========================= */
footer{
  background:var(--blue);
  color:#fff;
  padding:20px 0;
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,0.1);
}
footer a{color:#fff}

/* =========================
   SMALL UX POLISH
========================= */
main{
  flex:1;
  margin:2.5rem auto 0 auto;
}

.card p{
  margin-bottom:10px;
}

.card ul{
  margin:10px 0 16px 18px;
}

/* =========================
   MOBILE IMPROVEMENTS
========================= */
@media (max-width:640px){
  .container{
    padding:0 14px;
  }

  .hero{
    padding:28px 0 10px;
  }

  .hero h1{
    font-size:2rem;
    line-height:1.15;
  }

  .hero p{
    font-size:1rem;
    line-height:1.5;
  }

  .card{
    padding:16px;
    border-radius:14px;
  }

  label{
    margin-bottom:5px;
    font-size:.95rem;
  }

  input,
  select,
  textarea,
  button,
  .btn{
    font-size:16px; /* prevents iPhone zoom */
    padding:11px 12px;
    min-height:52px;
  }

  #checker{
    grid-template-columns:1fr;
    gap:14px;
  }

  .section{
    padding:26px 0;
  }

  main{
    margin:1.5rem auto 0 auto;
  }
}