/* SomaSkul web checkout. Brand tokens match the app (theme/hero.js): navy hero, gold
   accent, Figtree. No inline styles anywhere: helmet's CSP is same-origin. */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url("fonts/Figtree_400Regular.ttf") format("truetype"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url("fonts/Figtree_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url("fonts/Figtree_700Bold.ttf") format("truetype"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url("fonts/Figtree_800ExtraBold.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --navy: #0B1F3A;
  --navy-soft: #B9C7DA;
  --gold: #F5B301;
  --blue: #1A73E8;
  --surface: #F5F7FA;
  --card: #FFFFFF;
  --text: #0F1720;
  --muted: #5F6B7A;
  --line: #E2E8F0;
  --hair: #EEF2F6;
  --green: #1E7A3A;
  --bad: #B3261E;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
h1, h2, p { margin: 0; }
a { color: var(--blue); }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--surface); position: relative; }
.pad { padding-left: 16px; padding-right: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Status line (errors and progress messages) */
.status {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}
.status:empty { display: none; }
.status.error { border-color: #F2B8B5; background: #FDECEA; color: var(--bad); }

/* ---- hero -------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 18px 20px 76px;
  border-radius: 0 0 28px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.toplink { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; padding: 12px 0 12px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--navy-soft); font-size: 16px; }
.hero p strong { color: #fff; }

/* ZANA demo card, floats over the hero */
.zana-card {
  margin: -52px 16px 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.zana-head { display: flex; align-items: flex-end; gap: 10px; }
.zana-face { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: #0B1E3D; overflow: hidden; }
.zana-face svg { width: 100%; height: 100%; display: block; }
.bubble { background: var(--hair); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 15px; font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); animation: rise 0.45s ease forwards; }
.step-card:nth-child(1) { animation-delay: 0.6s; }
.step-card:nth-child(2) { animation-delay: 1.5s; }
.step-card:nth-child(3) { animation-delay: 2.4s; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-t { flex: 1; font-size: 14px; }
.step-t b { display: block; font-size: 15px; }
.step-t span { color: var(--muted); }
.tick { color: var(--green); font-weight: 800; font-size: 12px; background: #E3F4E8; border-radius: 8px; padding: 3px 7px; }
.zana-note { font-size: 14px; color: var(--muted); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step-card { animation: none; opacity: 1; transform: none; }
}

/* ---- sections ---------------------------------------------------------------- */
.block { padding: 24px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.block h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sub { color: var(--muted); font-size: 14px; font-weight: 600; }
.benefits { background: var(--card); border-radius: 18px; padding: 6px 16px; }
.benefit { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.benefit:last-child { border-bottom: 0; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: #E8F0FE; color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { width: 22px; height: 22px; }
.benefit b { display: block; font-size: 16px; }
.benefit span { color: var(--muted); font-size: 14px; }

/* ---- plan cards -------------------------------------------------------------- */
.plans { display: flex; flex-direction: column; gap: 10px; }
.plan-wrap { position: relative; }
.plan {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 68px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; color: var(--text);
}
.plan[aria-checked="true"] { border: 2px solid var(--navy); padding: 11px 15px; box-shadow: 0 6px 18px rgba(11, 31, 58, 0.12); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B6C0CE; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.plan[aria-checked="true"] .radio { border-color: var(--navy); background: var(--navy); }
.plan[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.plan-name { flex: 1; display: flex; flex-direction: column; }
.plan-name b { font-size: 17px; font-weight: 800; }
.plan-name span { font-size: 13px; color: var(--muted); }
.plan-price { font-weight: 800; font-size: 18px; }
.badge {
  position: absolute; top: -10px; right: 16px; background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; padding: 3px 9px; border-radius: 999px;
}
.plan-note { font-size: 14px; color: var(--muted); }

/* ---- buttons ----------------------------------------------------------------- */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  border: 0; border-radius: 16px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 17px; text-decoration: none;
}
.cta:disabled { opacity: 0.55; cursor: default; }
.cta.green { background: var(--green); color: #fff; min-height: 58px; font-size: 18px; }
.cta svg { width: 20px; height: 20px; }
.linkbtn { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 15px; padding: 12px; min-height: 44px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.linkbtn:disabled { color: var(--muted); cursor: default; }
.assure { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 10px; }
.assure span { display: inline-flex; align-items: center; gap: 6px; }
.assure svg { width: 16px; height: 16px; color: var(--green); }

.quote { margin: 0; background: var(--card); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--gold); }
.quote blockquote { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.quote figcaption { color: var(--muted); font-size: 14px; }

.trust { display: flex; flex-direction: column; gap: 14px; background: var(--card); border-radius: 18px; padding: 16px; }
.trust-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.trust-row svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.trust-row strong { color: var(--text); }

.foot { padding: 20px 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.foot a { font-weight: 700; text-decoration: none; }
.wa { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 15px; padding: 10px 12px; min-height: 44px; }
.wa svg { width: 20px; height: 20px; color: #1E9E52; }

/* ---- sub-page header (verify, review) ----------------------------------------- */
.bar { background: var(--navy); color: #fff; padding: 12px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.bar-top { display: flex; align-items: center; gap: 8px; }
.back { width: 44px; height: 44px; margin-left: -10px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: #fff; }
.back svg { width: 22px; height: 22px; }
.bar-top b { font-size: 16px; }
.progress { display: flex; gap: 6px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.progress i.on { background: var(--gold); }
.bar h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.3px; }
.planbox { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.10); border-radius: 14px; padding: 10px 14px; }
.planbox small { display: block; font-size: 12px; color: var(--navy-soft); font-weight: 700; letter-spacing: 0.4px; }
.planbox b { font-size: 15px; }
.planbox button { background: none; border: 0; color: var(--gold); font-weight: 700; font-size: 14px; padding: 10px 0 10px 10px; min-height: 44px; }

.form { padding: 26px 20px 0; display: flex; flex-direction: column; gap: 20px; }
.form h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-weight: 700; font-size: 14px; }
.input {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; min-height: 56px; padding: 0 8px 0 14px;
}
.input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.45); }
.input .cc { font-weight: 700; color: var(--muted); font-size: 17px; }
.input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 18px; font-weight: 600; color: var(--text); height: 54px; }
.input.small { min-height: 54px; background: var(--surface); }

.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp .box { height: 56px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.otp .box.cur { border: 2px solid var(--navy); }
.otp input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; }
.meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.help { display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px 16px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.help svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.help a { font-weight: 700; text-decoration: none; }

/* ---- review ------------------------------------------------------------------ */
.stack { padding: 20px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--card); border-radius: 18px; padding: 6px 16px; }
.panel.solid { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kid { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); width: 100%; background: none; border-top: 0; border-left: 0; border-right: 0; text-align: left; color: var(--text); min-height: 68px; }
.kid:last-child { border-bottom: 0; }
.kid[disabled] { opacity: 0.8; cursor: default; }
.av { width: 44px; height: 44px; border-radius: 50%; color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.kid-t { flex: 1; display: flex; flex-direction: column; }
.kid-t b { font-size: 16px; }
.kid-t span { font-size: 13px; color: var(--muted); }
.kid-p { font-weight: 700; font-size: 15px; }
.kid-p.done { color: var(--green); font-size: 13px; }
.check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #B6C0CE; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; }
.check svg { width: 16px; height: 16px; }
.kid[aria-checked="true"] .check { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.kid[aria-disabled="true"] .check { background: #E3F4E8; border-color: #E3F4E8; color: var(--green); }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.row span:first-child { color: var(--muted); }
.row span:last-child { font-weight: 600; text-align: right; }
.rule { height: 1px; background: var(--hair); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-size: 17px; font-weight: 800; }
.total strong { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.fine { font-size: 13px; color: var(--muted); }
.paying { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.actions { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.actions .fine { text-align: center; margin-top: 6px; }
.secure { margin: 6px 16px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; }

/* ---- waiting ----------------------------------------------------------------- */
.dark { background: var(--navy); color: #fff; min-height: 100vh; padding: 36px 20px 28px; display: flex; flex-direction: column; gap: 24px; }
.dark .center { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 12px; }
.ring { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.ring svg.r { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: rgba(255, 255, 255, 0.14); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.phone { width: 62px; height: 98px; border-radius: 14px; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; }
.phone i { font-style: normal; width: 40px; height: 26px; border-radius: 6px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timer { color: var(--gold); font-weight: 700; font-size: 15px; }
.dark h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.dark p { color: var(--navy-soft); font-size: 16px; line-height: 1.5; }
.dark p strong { color: #fff; }
.todo { background: rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 4px 16px; }
.todo div { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.10); font-size: 15px; }
.todo div:last-child { border-bottom: 0; }
.todo b { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.todo div:first-child b { background: var(--gold); color: var(--navy); }
.dark .links { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dark .linkbtn { color: #fff; }
.dark .linkbtn.soft { color: var(--navy-soft); font-weight: 600; font-size: 14px; }

/* ---- result ------------------------------------------------------------------ */
.done-hero { background: var(--navy); color: #fff; padding: 48px 20px 68px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; position: relative; overflow: hidden; }
.done-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }
.done-hero p { color: var(--navy-soft); font-size: 16px; }
.big { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.big.neutral { background: rgba(255, 255, 255, 0.16); color: #fff; }
.big svg { width: 42px; height: 42px; }
.confetti i { position: absolute; display: block; border-radius: 2px; }
.confetti i:nth-child(1) { top: 34px; left: 64px; width: 10px; height: 10px; background: var(--gold); transform: rotate(20deg); }
.confetti i:nth-child(2) { top: 70px; right: 60px; width: 8px; height: 14px; background: #9CC5FF; transform: rotate(-25deg); }
.confetti i:nth-child(3) { top: 130px; left: 40px; width: 8px; height: 8px; background: #8FE3B4; border-radius: 50%; }
.confetti i:nth-child(4) { top: 150px; right: 44px; width: 10px; height: 10px; background: var(--gold); transform: rotate(40deg); }
.next { margin: -40px 16px 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.next h2 { font-size: 16px; font-weight: 800; }
.next .s { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.next .s b { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.receipt { margin: 16px 16px 0; background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.receipt h2 { font-size: 15px; font-weight: 800; }
.receipt .row { font-size: 14px; }
.result-actions { padding: 16px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ---- icons ------------------------------------------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.big svg { stroke-width: 3; }
.wa { text-decoration: none; }
