:root {
  --navy: #0a2547; --ink: #0e182c; --black: #050505; --red: #d62828; --red-d: #b51f1f; --gold: #c9a227;
  --text: #1f2937; --muted: #6b7280; --line: #e5e7eb; --bg: #f5f6f7; --card: #fff; --green: #2e9e6b;
  --head: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --logo: "Anton", Impact, sans-serif;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { line-height: 1.55; }
.ic { width: 20px; height: 20px; flex: none; }

.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; box-shadow: 0 0 60px rgba(0,0,0,.5); padding-bottom: calc(76px + var(--safe-b)); }
@media (min-width: 560px) { body { background: var(--ink) url(assets/hero.jpg) center/cover fixed; } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: rgba(10,37,71,.97); color: #fff; backdrop-filter: blur(8px); }
.topbar-title { flex: 1; font-family: var(--head); font-weight: 700; font-size: 16px; text-align: center; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 0; color: #fff; }
.iconbtn.sm { width: 30px; height: 30px; background: var(--bg); color: var(--muted); }
.brandmark { font-family: var(--logo); font-size: 13px; line-height: 1.05; letter-spacing: .04em; color: #fff; }
.brandmark.light { font-size: 20px; margin-bottom: 18px; text-align: center; }

/* hero */
.hero, .clock-hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.25) 0%, rgba(10,37,71,.55) 55%, rgba(14,24,44,.96) 100%); }
.hero-in { position: relative; padding: 38px 22px 34px; padding-top: calc(38px + env(safe-area-inset-top, 0px)); }
.hero h1 { color: #fff; font-size: 31px; line-height: 1.12; font-weight: 800; margin: 0 0 38px; }
.clock-hero { background: var(--ink); }
.clock-hero h1 { color: #fff; font-size: 26px; line-height: 1.15; margin: 6px 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: #e6e9ef; margin: 0; }
.eyebrow.dark { color: var(--red); margin-bottom: 10px; }
.hero-note { font-size: 13px; color: #cfd6e2; margin: 12px 0 0; }
.hero .eyebrow, .hero h1, .hero-note { text-align: center; }
.hero h1 { text-transform: capitalize; }
.hero { background: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 18px; font-family: var(--head); font-weight: 700; font-size: 15px; transition: transform .08s, background .2s; }
.btn:active { transform: scale(.98); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(214,40,40,.35); }
.btn.red:hover { background: var(--red-d); }
.btn.red:disabled { opacity: .45; box-shadow: none; }
.btn.big { width: 100%; padding: 16px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:disabled { color: var(--muted); }
.btn.sm { padding: 9px 12px; font-size: 13px; }
.btn.link { background: none; color: var(--muted); text-decoration: underline; width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.stack { display: grid; gap: 10px; margin-top: 14px; }

/* sections & cards */
.pad { padding: 22px 18px; }
.sec { font-size: 24px; margin: 26px 0 18px; }
.pad > .sec:first-child { margin-top: 4px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(10,37,71,.06); margin-bottom: 12px; }
.lead { font-size: 16px; color: var(--text); margin-top: 0; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--head); }
.tag.green { background: var(--green); }

.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 14px; background: var(--black); color: #fff; border-radius: var(--r); padding: 20px 18px; }
.step h3 { color: #fff; font-size: 16px; }
.step p { color: #c8cdd6; font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-family: var(--head); font-weight: 800; flex: none; }

.dark-card { background: var(--ink); color: #fff; }
.dark-card h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.dark-card.inner { border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.dark-card.inner p { color: #cfd6e2; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 28px; line-height: 1.5; color: #e6e9ef; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.checks.dark li { color: var(--text); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: 0 4px 14px rgba(10,37,71,.06); }
.tile h3 { font-size: 15px; margin-top: 10px; }
.tile p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.tile-ic { width: 40px; height: 40px; border-radius: 10px; background: #fff5f5; color: var(--red); display: grid; place-items: center; }

.result-peek { display: flex; align-items: center; justify-content: space-between; margin: -18px 18px 0; position: relative; z-index: 2; border-left: 5px solid var(--red); }
.result-peek h3 { font-size: 17px; margin-top: 8px; }
.result-peek p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.about { text-align: center; background: #fff; margin-top: 8px; }
.about h2 { font-size: 22px; margin: 12px 0 6px; }
.about p { text-align: left; font-size: 15px; }
.about .row { justify-content: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.avatar.sm { width: 56px; height: 56px; border-width: 2px; }
.disclaimer { font-size: 11px; color: #8893a8; padding: 18px 20px 28px; margin: 0; line-height: 1.5; }

/* quiz */
.progress { height: 5px; background: #dfe3ea; }
.progress div { height: 100%; background: var(--red); transition: width .35s ease; }
.quiz { min-height: calc(100vh - 70px); display: flex; flex-direction: column; }
.qcount { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 8px; font-family: var(--head); }
.qtitle { font-size: 24px; line-height: 1.22; font-weight: 800; margin-bottom: 6px; }
.qsub { color: var(--muted); margin: 0 0 16px; }
.choices { display: grid; gap: 10px; margin-top: 14px; }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--text); font-size: 15.5px; font-weight: 500; transition: border .15s, background .15s; }
.choice:hover { border-color: #c9ced8; }
.choice.on { border-color: var(--red); background: #fff5f5; }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9ced8; flex: none; display: grid; place-items: center; color: #fff; }
.multi .mark { border-radius: 6px; }
.mark .ic { width: 14px; height: 14px; opacity: 0; }
.choice.on .mark { background: var(--red); border-color: var(--red); }
.choice.on .mark .ic { opacity: 1; }
.single .choice.on .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.quiz-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 6px; }
.chip { border: 2px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 99px; font-weight: 600; color: var(--ink); }
.chip.on { border-color: var(--red); background: #fff5f5; }

/* forms */
.input { width: 100%; padding: 13px 14px; border: 1.5px solid #d6dbe3; border-radius: 10px; font: 15px var(--body); background: #fff; color: var(--text); margin-top: 6px; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,37,71,.12); }
textarea.input { resize: vertical; }
.clock-hero .input { background: rgba(255,255,255,.95); }
.form { display: grid; gap: 14px; margin-top: 10px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref { background: #fff; border: 1.5px dashed #c9ced8; border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.ref summary { font-weight: 700; font-family: var(--head); color: var(--navy); cursor: pointer; }
.ref[open] { display: grid; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 12.5px !important; color: var(--muted) !important; line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }

/* results */
.urg { border-top: 5px solid var(--ink); }
.gauge { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #2e9e6b, #c9a227, #e07a1f, #d62828); position: relative; opacity: .25; }
.gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.urg .gauge { opacity: 1; background: #eef0f4; }
.urg-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.stage { font-family: var(--head); font-weight: 700; color: var(--ink); }
.countdown { display: flex; align-items: baseline; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.countdown b { font-family: var(--head); font-size: 28px; }
.countdown.hot { background: var(--red); }
.opt summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.opt summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.opt h3 { font-size: 17px; margin-top: 4px; }
.opt p, .opt li { font-size: 14.5px; }
.opt ul { margin: 0; padding-left: 20px; }
.opt[open] summary { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.opt-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.opt-kind.keep { color: var(--green); }
.opt-kind.sell { color: var(--navy); }
.fit { text-align: center; background: #fff5f5; color: var(--red); border-radius: 10px; padding: 6px 10px; line-height: 1; }
.fit b { font-family: var(--head); font-size: 20px; display: block; }
.fit span { font-size: 11px; text-transform: uppercase; }
.timeline-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.timeline-list li { background: #fff; border-radius: 12px; padding: 14px 14px 14px 52px; position: relative; font-size: 14.5px; line-height: 1.45; box-shadow: 0 2px 8px rgba(10,37,71,.05); }
.timeline-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--head); display: grid; place-items: center; }
.when { display: block; font: 700 12px var(--head); color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.script pre { white-space: pre-wrap; font: 14.5px/1.6 var(--body); margin: 0; color: var(--text); }
.tip { background: #fefce8; border-left: 4px solid var(--gold); font-size: 14px; }
.help { display: grid; gap: 2px; padding: 6px 16px; }
.help a { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 14.5px; }
.help a:last-child { border: 0; }
.help .ic { color: var(--red); }
.cta-card { display: flex; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px; }
.cta-card h3 { color: #fff; font-size: 17px; }
.cta-card p { color: #cfd6e2; margin: 2px 0 0; font-size: 14px; }

/* learn */
.seg { display: flex; background: #e9ecf1; border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.seg button, .seg a { text-align: center; flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on, .seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.faq { background: var(--ink); color: #fff; border-radius: 12px; margin-bottom: 8px; padding: 14px 16px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; font-weight: 600; cursor: pointer; }
.faq p { color: #cfd6e2; margin: 10px 0 0; font-size: 14.5px; }
.faq[open] .ic { transform: rotate(45deg); }

/* clock */
.clock { list-style: none; padding: 0; margin: 4px 0 16px; position: relative; }
.clock::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(#fff, var(--red)); border-radius: 3px; box-shadow: 0 0 0 1px #e5e7eb; }
.clock li { display: flex; gap: 16px; padding: 10px 0; position: relative; }
.clock .dot { width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 4px solid var(--red); flex: none; position: relative; z-index: 1; }
.clock li.past .dot { background: var(--red); }
.clock li.here .dot { background: var(--red); box-shadow: 0 0 0 6px rgba(214,40,40,.2); }
.clock h3 { font-size: 16px; }
.clock p { margin: 3px 0 0; font-size: 14.5px; color: var(--text); }
.you { display: inline-block; font-size: 11px; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

/* checklist */
.meter { height: 10px; background: #e3e7ee; border-radius: 99px; overflow: hidden; }
.meter div { height: 100%; background: var(--green); transition: width .3s; }
.checklist { display: grid; gap: 8px; margin: 10px 0 16px; }
.checkrow { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 14px; font-size: 14.5px; cursor: pointer; border: 2px solid transparent; }
.checkrow input { position: absolute; opacity: 0; pointer-events: none; }
.checkrow .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c9ced8; display: grid; place-items: center; color: #fff; flex: none; }
.checkrow .box .ic { width: 14px; height: 14px; opacity: 0; }
.checkrow.on { border-color: #cfe9dc; }
.checkrow.on .box { background: var(--green); border-color: var(--green); }
.checkrow.on .box .ic { opacity: 1; }
.checkrow.on span:last-child { color: var(--muted); text-decoration: line-through; }

/* call log */
.log { margin-top: 16px; }
.logtop { display: flex; justify-content: space-between; align-items: center; }
.logitem p { margin: 4px 0 0; font-size: 14.5px; }
.follow { color: var(--red); font-weight: 600; }
.empty { text-align: center; color: var(--muted); }

/* agent & plans */
.linkbox .link { font: 13px/1.4 ui-monospace, Menlo, monospace; background: var(--bg); border-radius: 8px; padding: 10px; word-break: break-all; }
.plan { border: 2px solid transparent; }
.plan.current { border-color: var(--green); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: 19px; }
.plan .btn { width: 100%; }

/* more */
.menu { display: grid; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 0; border-radius: 12px; padding: 14px 16px; text-align: left; width: 100%; color: var(--text); }
.menu-item > .ic:first-child { color: var(--red); }
.menu-item div { flex: 1; }
.menu-item h3 { font-size: 15px; }
.menu-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.prose h2 { font-size: 18px; margin-top: 18px; }
.prose p { font-size: 15px; }
.empty-state { text-align: center; padding-top: 70px; }
.empty-state .ic { width: 48px; height: 48px; color: var(--red); }

/* tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 30; display: flex; background: rgba(14,24,44,.98); padding: 8px 6px calc(8px + var(--safe-b)); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.06); }
.tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; color: #8893a8; font-size: 11px; font-weight: 600; padding: 4px 0; }
.tabbar a.on { color: #fff; }
.tabbar a.on .ic { color: var(--red); }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* print: the Action Plan as a PDF */
@media print {
  body, .shell { background: #fff !important; box-shadow: none; padding: 0; max-width: none; }
  .topbar, .tabbar, .no-print, .hero, .about { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  details.opt { display: block; }
  details.opt > *:not(summary) { display: block !important; }
  .countdown, .tag, .gauge-fill, .timeline-list li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .disclaimer { color: #555; }
}

/* letter + dates */
.letter pre { white-space: pre-wrap; font: 14px/1.6 Georgia, "Times New Roman", serif; margin: 0; color: #111; }
.reasons { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reasons legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 8px 12px; border-radius: 99px; border: 2px solid var(--line); background: #fff; font-weight: 500 !important; font-size: 13px; color: var(--text); }
.pill input:checked + span { border-color: var(--red); background: #fff5f5; color: var(--red-d); }
.seg a { padding: 9px 4px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
@media print { body.print-letter #app > *:not(.pad), body.print-letter .form, body.print-letter .seg, body.print-letter .lead, body.print-letter .sec, body.print-letter .fine { display: none !important; } body.print-letter .letter { border: 0; } }

.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }

.sec, .dark-card h2 { text-align: center; }
.tile { border: 1.5px solid var(--line); box-shadow: none; }
.tile h3 { font-family: var(--head); }
.creds { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px; text-align: center; background: var(--black); color: #fff; }
.creds-logo { width: 170px; height: auto; display: block; }
.creds p { margin: 0; font-size: 14px; line-height: 1.5; color: #c8cdd6; }
.creds strong { color: #fff; }

.money { position: relative; display: block; }
.money i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); margin-top: 3px; font-style: normal; color: var(--muted); }
.money .input { padding-left: 28px; }
[hidden] { display: none !important; }
.letter .sig { display: inline-block; font: 600 30px/1.3 "Dancing Script", "Snell Roundhand", "Apple Chancery", cursive; color: #1a2a5e; margin: 0 0 2px; }
.form .gl { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.form .addr { margin-top: 8px; }
.form .gl + .two { margin-top: 0; }
select.input { appearance: auto; }
