
:root{
  --bg1:#0b1220;
  --bg2:#0f172a;
  --card:#0b1220cc;
  --border:#1f2a44;
  --text:#e5e7eb;
  --muted:#a7b0c0;
  --brand:#0ea5e9;
  --brand2:#22c55e;
  --danger:#ef4444;
  --warn:#f59e0b;
  --ok:#22c55e;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(14,165,233,.25), transparent 55%),
    radial-gradient(1200px 700px at 90% 20%, rgba(34,197,94,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{max-width:1080px; margin:0 auto; padding:24px}
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,18,32,.92), rgba(11,18,32,.65));
  border-bottom: 1px solid rgba(31,42,68,.6);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 24px;
  max-width:1080px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{width:38px; height:38px}
.brand .title{font-weight:800; letter-spacing:.2px}
.brand .sub{font-size:12px; color:var(--muted); margin-top:2px}

.navlinks{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:flex-end;
  font-size:14px; color:var(--muted);
}
.navlinks a{
  padding:8px 10px; border-radius:999px;
  border:1px solid transparent;
}
.navlinks a:hover{
  border-color: rgba(31,42,68,.9);
  background: rgba(15,23,42,.45);
  color: var(--text);
}

.navtoggle{
  display:none;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(15,23,42,.35);
  color: var(--text);
  border-radius: 999px;
  padding:10px 12px;
  line-height:0;
}
.navtoggle:focus{outline: 2px solid rgba(14,165,233,.45); outline-offset: 2px;}
.navtoggle .bar{
  display:block;
  width:18px; height:2px;
  background: rgba(226,232,240,.9);
  margin:3px 0;
  border-radius:999px;
}

/* Mobile nav */
@media (max-width:760px){
  .nav{ position:relative; }
  .navtoggle{ display:inline-flex; flex-direction:column; justify-content:center; align-items:center; }
  .navlinks{
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px;
    background: rgba(11,18,32,.96);
    border:1px solid rgba(31,42,68,.8);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
  }
  .navlinks.open{ display:flex; }
  .navlinks a{ width:100%; text-align:left; }
}


.hero{
  padding:44px 0 22px;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border:1px solid rgba(31,42,68,.8);
  border-radius:999px;
  background: rgba(15,23,42,.45);
  color: var(--muted);
  font-size:13px;
}
.kicker .dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px rgba(14,165,233,.12);
}
h1{font-size:42px; line-height:1.1; margin:18px 0 12px}
p.lead{font-size:18px; color: var(--muted); max-width:780px; line-height:1.55}

.grid{
  display:grid; gap:16px;
  grid-template-columns: repeat(12, 1fr);
  margin-top:22px;
}
.card{
  grid-column: span 12;
  background: rgba(11,18,32,.62);
  border: 1px solid rgba(31,42,68,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card h2{margin:0 0 8px; font-size:20px}
.card p{margin:0; color:var(--muted); line-height:1.55}

@media (min-width:860px){
  .card.span6{grid-column: span 6;}
  .card.span7{grid-column: span 7;}
  .card.span5{grid-column: span 5;}
}

.btnrow{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(15,23,42,.65);
  color: var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .08s ease, opacity .08s ease, border-color .08s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(94,234,212,.35)}
.btn.primary{
  border-color: rgba(14,165,233,.65);
  background: linear-gradient(135deg, rgba(14,165,233,.95), rgba(34,197,94,.85));
  color: #05131b;
}
.btn.danger{
  border-color: rgba(239,68,68,.6);
  background: rgba(239,68,68,.12);
}
.btn.small{padding:10px 12px; border-radius: 12px; font-weight:650; font-size:14px}

.form{
  display:grid; gap:12px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 12px;
}
.field{grid-column: span 12;}
@media (min-width:860px){
  .field.half{grid-column: span 6;}
  .field.third{grid-column: span 4;}
}
label{display:block; font-size:13px; color: var(--muted); margin-bottom:6px}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,42,68,.9);
  background: rgba(15,23,42,.6);
  color: var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
input:focus,select:focus,textarea:focus{border-color: rgba(14,165,233,.7); box-shadow: 0 0 0 6px rgba(14,165,233,.10)}
.help{font-size:13px; color: var(--muted); margin-top:8px; line-height:1.45}

/* Consent checkbox alignment */
.consent-row{display:flex; gap:10px; align-items:flex-start}
.consent-row input[type=checkbox]{width:auto; margin-top:3px}
.consent-inline{font-size:13px; color: var(--muted); margin:0; line-height:1.45}
.notice{
  margin-top:12px;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,42,68,.9);
  background: rgba(2,6,23,.35);
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.notice strong{color: var(--text)}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(15,23,42,.6);
  color: var(--muted);
  font-size: 12px;
}
.badge.ok{border-color: rgba(34,197,94,.55); color: rgba(187,247,208,.95)}
.badge.warn{border-color: rgba(245,158,11,.55); color: rgba(253,230,138,.95)}
.badge.danger{border-color: rgba(239,68,68,.55); color: rgba(254,202,202,.95)}
.hr{height:1px; background: rgba(31,42,68,.8); margin:14px 0}

.footer{
  padding:28px 0 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer a{color: var(--text); text-decoration: underline; text-underline-offset: 3px}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(31,42,68,.8);
  background: rgba(15,23,42,.55);
  color: var(--text);
}

.stepper{
  display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 0;
}
.step{
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,68,.8);
  background: rgba(15,23,42,.45);
  color: var(--muted);
  font-size: 12px;
}
.step.active{color: var(--text); border-color: rgba(14,165,233,.6)}
.hidden{display:none !important;}

.checklist{
  display:grid; gap:10px; margin-top:10px;
  grid-template-columns: repeat(12, 1fr);
}
.check{grid-column: span 12; display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px; border-radius: 14px;
  border: 1px solid rgba(31,42,68,.85);
  background: rgba(15,23,42,.45);
}
@media (min-width:860px){ .check{grid-column: span 6;} }
.check input{width:auto; margin-top:4px}
.check .txt{line-height:1.35}
.check .txt .t{font-weight:700}
.check .txt .s{font-size:13px; color:var(--muted); margin-top:2px}

/* Share-with-family module */
.familybox{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:10px;
}
.familybox .familycopy{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width: 220px;
}
.qrwrap{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.scanimg{
  width: 170px;
  height: 170px;
  background:#fff;
  border-radius: 14px;
  padding:10px;
  border:1px solid rgba(31,42,68,.8);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.btn.copied{
  border-color: rgba(34,197,94,.65) !important;
}

/* Share-with-family QR (inline SVG) */
.scanimg svg{
  width:100%;
  height:100%;
  display:block;
}

/* iPhone Safari: prevent zoom-on-focus by keeping form controls at >=16px */
@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
