/* VeriStub — design system v3 */
:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #030712;
  --text-2: #374151;
  --muted: #4b5563;
  --subtle: #6b7280;
  --brand: #15803d;
  --brand-600: #166534;
  --brand-text: #15803d;
  --brand-soft: #f0fdf4;
  --brand-wash: #dcfce7;
  --brand-line: #bbf7d0;
  --ok: #15803d;   --ok-soft: #f0fdf4;  --ok-line: #bbf7d0;
  --warn: #a16207; --warn-soft: #fefce8; --warn-line: #fde68a;
  --bad: #b91c1c;  --bad-soft: #fef2f2;  --bad-line: #fecaca;
  --sky: #0369a1;  --sky-soft: #f0f9ff;
  --violet: #6d28d9; --violet-soft: #f5f3ff;
  --amber: #b45309; --amber-soft: #fffbeb;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --glow: 0 0 0 1px var(--brand-line), 0 10px 30px -8px rgba(22,163,74,.35);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 32V66m0-32' fill='none' stroke='%23e5e7eb' stroke-width='1'/%3E%3C/svg%3E");
  --card: var(--surface);
  --accent: var(--brand);
}
[data-theme="dark"] {
  --bg: #111827;
  --surface: #1f2937;
  --surface-2: #18212f;
  --border: #374151;
  --border-strong: #4b5563;
  --text: #f9fafb;
  --text-2: #e5e7eb;
  --muted: #d1d5db;
  --subtle: #9ca3af;
  --brand: #15803d;
  --brand-600: #16a34a;
  --brand-text: #4ade80;
  --brand-soft: rgba(20,83,45,.3);
  --brand-wash: rgba(34,197,94,.15);
  --brand-line: rgba(74,222,128,.3);
  --ok: #4ade80;   --ok-soft: rgba(20,83,45,.35);  --ok-line: rgba(74,222,128,.3);
  --warn: #fcd34d; --warn-soft: rgba(120,53,15,.35); --warn-line: rgba(251,191,36,.3);
  --bad: #fca5a5;  --bad-soft: rgba(127,29,29,.35);  --bad-line: rgba(248,113,113,.3);
  --sky: #7dd3fc;  --sky-soft: rgba(12,74,110,.35);
  --violet: #c4b5fd; --violet-soft: rgba(76,29,149,.35);
  --amber: #fcd34d; --amber-soft: rgba(120,53,15,.35);
  --shadow: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -2px rgba(0,0,0,.3);
  --glow: 0 0 0 1px rgba(74,222,128,.35), 0 10px 30px -8px rgba(34,197,94,.3);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 32V66m0-32' fill='none' stroke='%231f2937' stroke-width='1'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand-wash); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h1 .accent { color: var(--brand-text); display: block; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo b { color: var(--brand-text); font-weight: 700; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); display: grid; place-items: center; }
.logo-mark svg { width: 17px; height: 17px; }
.main-nav { display: flex; gap: 4px; justify-self: center; }
.main-nav a { color: var(--text-2); font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 12px; }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a.active { background: var(--brand-wash); color: var(--brand-text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.header-actions .text-link { color: var(--text-2); font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.header-actions .text-link:hover { background: var(--surface-2); text-decoration: none; }
.theme-toggle { background: none; border: 0; color: var(--subtle); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.header-actions .btn { padding: 8px 16px; font-size: .9rem; border-radius: 12px; }
@media (max-width: 900px) { .header-inner { grid-template-columns: 1fr auto; } .main-nav { display: none; } }
@media (max-width: 480px) { .header-actions .text-link { display: none; } }

/* ---------- Buttons ---------- */
.btn, .btn-primary { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; padding: 11px 20px; border-radius: 12px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: background .15s, transform .05s; }
.btn:hover, .btn-primary:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.large { padding: 14px 24px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn-secondary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); padding: 10px 16px; border-radius: 12px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.btn-secondary:hover, .btn-ghost:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }

/* ---------- Forms ---------- */
.input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }

/* ---------- Generic ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card.flat { box-shadow: var(--shadow-sm); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.eyebrow svg { width: 16px; height: 16px; color: var(--brand-text); }
.label-caps { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hex-bg { position: relative; }
.hex-bg::before { content: ""; position: absolute; inset: 0; background-image: var(--hex); background-size: 56px 98px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%); pointer-events: none; z-index: 0; }
.hex-bg > * { position: relative; z-index: 1; }
.page-head { padding: 44px 0 8px; }
.page-head p { color: var(--muted); margin-top: 14px; max-width: 620px; font-size: 1.05rem; }
.crumbs { font-size: .85rem; color: var(--subtle); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.crumbs a { color: var(--subtle); } .crumbs b { color: var(--text-2); font-weight: 500; }
.ticks { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: .875rem; color: var(--muted); }
.ticks span { display: inline-flex; align-items: center; gap: 7px; }
.ticks span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-600); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-top: 22px; line-height: 1.7; }
.hero-side { display: grid; gap: 20px; }

/* Upload card */
.upload { margin-top: 32px; display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--glow); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.upload:hover, .upload.dragover { box-shadow: 0 0 0 2px var(--brand-600), 0 14px 34px -8px rgba(22,163,74,.45); text-decoration: none; }
.upload-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); display: grid; place-items: center; }
.upload-icon svg { width: 22px; height: 22px; }
.upload-text { flex: 1; min-width: 0; }
.upload-text strong { display: block; font-size: 1.1rem; color: var(--text); font-weight: 600; }
.upload-text small { color: var(--subtle); font-size: .85rem; }
.upload input { display: none; }
@media (max-width: 560px) { .upload { flex-wrap: wrap; } .upload .btn { width: 100%; } }

/* Sample report card */
.sample-head { display: flex; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.doc-thumb { width: 40px; height: 52px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); position: relative; flex: 0 0 40px; }
.doc-thumb::before { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 3px; border-radius: 2px; background: var(--border-strong); box-shadow: 0 7px 0 var(--border-strong), 0 14px 0 var(--border), 0 21px 0 var(--border); }
.sample-head h3 { font-size: 1.05rem; margin-top: 2px; }
.sample-head small { color: var(--subtle); font-size: .82rem; }
.sample-body { padding: 14px 22px 8px; }
.sample-status { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .8rem; color: var(--subtle); }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; font-size: .9rem; border-top: 1px solid var(--border); }
.srow:first-of-type { border-top: 0; }
.srow > span:first-child { color: var(--subtle); }
.srow > span:last-child { color: var(--text); font-weight: 600; text-align: right; display: inline-flex; gap: 8px; align-items: center; }
.sample-foot { padding: 14px 22px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-size: .8rem; color: var(--subtle); }
.sample-foot .btn-secondary { margin-top: 12px; padding: 7px 12px; font-size: .85rem; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill svg { width: 12px; height: 12px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.pill.neutral { background: var(--surface-2); color: var(--subtle); border-color: var(--border); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .how-grid { grid-template-columns: 1fr; } }
.steps { display: grid; gap: 28px; margin-top: 32px; }
.step-row { display: flex; gap: 16px; }
.step-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--brand-text); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step-icon svg { width: 18px; height: 18px; }
.step-row h3 { font-size: 1.02rem; }
.step-row p { color: var(--muted); font-size: .94rem; margin-top: 6px; }
.proof { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); display: grid; gap: 10px; }
.proof span { display: inline-flex; gap: 8px; align-items: center; }
.proof svg { width: 16px; height: 16px; color: var(--brand-text); }

/* Browser mockup */
.browser { overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-url { flex: 1; margin-left: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: .75rem; color: var(--subtle); }
.browser-body { padding: 18px; display: grid; gap: 12px; background: var(--bg); }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; position: relative; }
.mini h4 { font-size: .8rem; display: flex; align-items: center; gap: 8px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mini-stats div { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: .68rem; color: var(--subtle); }
.mini-stats b { display: block; font-size: .9rem; color: var(--text); }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: .74rem; padding: 6px 0; border-top: 1px solid var(--border); color: var(--subtle); }
.mini-line:first-of-type { border-top: 0; margin-top: 6px; }
.mini-line b { color: var(--text); font-weight: 600; }
.callout { position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.legend div { display: flex; gap: 10px; font-size: .88rem; color: var(--text-2); }
.legend b { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; display: grid; place-items: center; }
@media (max-width: 560px) { .legend { grid-template-columns: 1fr; } }

/* ---------- Tool tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--text); }
a.tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.tile p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.tile .badge { align-self: flex-start; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--brand-wash); color: var(--brand-text); }
.tile.is-current { background: var(--brand-soft); border-color: var(--brand-line); }
.tile-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.tile-icon svg { width: 20px; height: 20px; }
.tile-icon.sky { background: var(--sky-soft); color: var(--sky); }
.tile-icon.violet { background: var(--violet-soft); color: var(--violet); }
.tile-icon.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- Advice cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.guide { padding: 26px; box-shadow: var(--shadow-sm); }
.guide p { color: var(--muted); font-size: .93rem; margin-top: 8px; }
.guide .num { font-size: .75rem; font-weight: 700; color: var(--brand-text); margin-bottom: 10px; display: block; }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; } }
.price-card { padding: 32px; }
.price-card .plan { font-size: .85rem; font-weight: 600; color: var(--brand-text); }
.price { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; color: var(--text); }
.price small { font-size: 1rem; color: var(--subtle); font-weight: 500; letter-spacing: 0; }
.period { color: var(--subtle); font-size: .9rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.checklist li::before { content: ""; flex: 0 0 20px; height: 20px; border-radius: 50%; margin-top: 1px; background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.note { color: var(--subtle); font-size: .82rem; margin-top: 14px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1rem; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(45deg); margin-top: -4px; flex: 0 0 8px; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { color: var(--muted); font-size: .95rem; padding-bottom: 20px; line-height: 1.7; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.notice strong { color: var(--text); }
.notice svg { color: var(--brand-text); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: #052e16; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 32V66m0-32' fill='none' stroke='%23166534' stroke-width='1'/%3E%3C/svg%3E"); opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #bbf7d0; margin-top: 8px; }
.cta-band .btn { background: #22c55e; color: #052e16; }
.cta-band .btn:hover { background: #4ade80; color: #052e16; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 72px; color: var(--muted); font-size: .9rem; background: var(--surface); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 { font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); margin-bottom: 10px; }
.footer-cols a:hover { color: var(--text); text-decoration: none; }
.footer-cols a.logo { display: inline-flex; color: var(--text); margin-bottom: 14px; }
.footer-cols p { max-width: 300px; line-height: 1.65; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; font-size: .84rem; color: var(--subtle); }

/* ---------- Checker ---------- */
.credits { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.dropzone { display: block; }
.results { display: none; }
.summary { display: grid; grid-template-columns: 230px 1fr; overflow: hidden; }
@media (max-width: 720px) { .summary { grid-template-columns: 1fr; } }
.summary-score { padding: 30px 22px; text-align: center; border-right: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 720px) { .summary-score { border-right: 0; border-bottom: 1px solid var(--border); } }
.gauge { position: relative; width: 132px; height: 132px; margin: 0 auto 10px; }
.gauge svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.gauge .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.gauge .num small { display: block; font-size: .72rem; font-weight: 500; color: var(--subtle); letter-spacing: 0; margin-top: -4px; }
.summary-main { padding: 26px 28px; }
.verdict { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.verdict.good { color: var(--ok); } .verdict.medium { color: var(--warn); } .verdict.bad { color: var(--bad); }
.file-line { color: var(--subtle); font-size: .85rem; margin-top: 4px; word-break: break-all; }
.tally { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.breakdown > div { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: .78rem; color: var(--subtle); }
.breakdown > div > strong { display: block; font-size: 1.15rem; color: var(--text); font-weight: 700; }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-600); border-radius: 4px; }
.panel { margin-top: 16px; }
.panel-head { padding: 15px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-head h3 { font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.panel-head h3 b { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.flags { padding: 4px 22px; }
.flag { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .93rem; color: var(--text-2); }
.flag:last-child { border-bottom: 0; }
.flag .pill { margin-top: 1px; min-width: 76px; justify-content: center; }
.timeline { padding: 18px 22px; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-wash); border: 2px solid var(--brand-600); }
.tl-dot.warn { background: var(--warn-soft); border-color: var(--warn); }
.tl-dot.bad { background: var(--bad-soft); border-color: var(--bad); }
.tl-item strong { display: block; font-size: .93rem; }
.tl-item small { color: var(--subtle); font-size: .82rem; }
.tl-item .when { font-size: .85rem; color: var(--text-2); text-align: right; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .meta-grid { grid-template-columns: 1fr; } }
.meta-body { padding: 6px 22px 10px; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.meta-row:last-child { border-bottom: 0; }
.meta-row .label { color: var(--subtle); flex-shrink: 0; }
.meta-row .value { text-align: right; word-break: break-all; color: var(--text); font-weight: 500; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 14px; max-width: 220px; }
.progress i { display: block; height: 100%; width: 35%; background: var(--brand-600); animation: slide 1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); display: grid; place-items: center; }
.icon-box svg { width: 22px; height: 22px; }
.file-icon { width: 30px; height: 36px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: .52rem; font-weight: 700; color: var(--bad); flex: 0 0 30px; }

/* ---------- Lists ---------- */
.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); font-size: .93rem; align-items: center; }
.list-row:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.kv:last-of-type { border-bottom: 0; }
.kv span:first-child { color: var(--subtle); }

/* ---------- Animated honeycomb canvas ---------- */
.hero, .page-head, .auth-art { position: relative; }
.hero-hex-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.hero > .container, .page-head > *:not(canvas), .auth-art > *:not(canvas) { position: relative; z-index: 1; }
.page-head-wrap { position: relative; }

/* ---------- Glowing score ring ---------- */
.ring { --ring-c: #9ca3af; --ring-c2: #d1d5db; --size: 150px; position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; position: relative; z-index: 1; }
.ring-track { fill: none; stroke: var(--border); stroke-width: 11; opacity: .7; }
.ring-ticks { fill: none; stroke: var(--border-strong); stroke-width: 3; stroke-dasharray: 1.2 6.76; opacity: .55; }
.ring-arc { fill: none; stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--ring-c)) drop-shadow(0 0 14px color-mix(in srgb, var(--ring-c) 55%, transparent)); transition: filter .4s; }
.ring-dot-g { transform-origin: 80px 80px; transition: opacity .2s; opacity: 0; }
.ring-dot { fill: #fff; stroke: var(--ring-c); stroke-width: 3; filter: drop-shadow(0 0 6px var(--ring-c)); }
.ring-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ring-c) 28%, transparent) 0%, transparent 68%); opacity: 0; transition: opacity .6s; z-index: 0; }
.ring.is-done .ring-halo { opacity: 1; animation: halo 2.8s ease-in-out infinite; }
.ring.is-done .ring-arc { animation: arcGlow 2.8s ease-in-out infinite; }
.ring.is-loading .ring-track { stroke-dasharray: 60 342; stroke: var(--brand-600); opacity: .55; animation: spin 1s linear infinite; transform-origin: 80px 80px; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 2; }
.ring-num b { font-size: calc(var(--size) * .27); font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.ring-num small { font-size: .72rem; color: var(--subtle); margin-top: 6px; font-weight: 500; }
.ring.sm { --size: 64px; }
.ring.sm .ring-num b { font-size: 1.05rem; }
.ring.sm .ring-num small { display: none; }
.ring.sm .ring-ticks { display: none; }
@keyframes halo { 0%, 100% { transform: scale(.92); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes arcGlow { 0%, 100% { filter: drop-shadow(0 0 5px var(--ring-c)) drop-shadow(0 0 10px color-mix(in srgb, var(--ring-c) 40%, transparent)); } 50% { filter: drop-shadow(0 0 9px var(--ring-c)) drop-shadow(0 0 22px color-mix(in srgb, var(--ring-c) 65%, transparent)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring.is-done .ring-halo, .ring.is-done .ring-arc { animation: none; } }
.summary-score { display: grid; place-content: center; gap: 12px; }
.score-caption { font-size: .82rem; color: var(--subtle); font-weight: 500; }
.sample-status .ring.sm { margin: 0; }
.sample-score { display: flex; align-items: center; gap: 14px; padding: 6px 0 12px; }
.sample-score div small { display: block; color: var(--subtle); font-size: .8rem; }

/* ---------- Account menu ---------- */
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--text); font: inherit; font-size: .88rem; font-weight: 500; }
.user-btn:hover { background: var(--surface-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 40; }
.user-menu.open .user-pop { display: block; }
.user-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-pop .who strong { display: block; font-size: .92rem; }
.user-pop .who small { color: var(--subtle); font-size: .8rem; word-break: break-all; }
.user-pop a, .user-pop button { display: flex; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; }
.user-pop a:hover, .user-pop button:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 480px) { .user-btn .uname { display: none; } .user-btn { padding: 3px; } }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; }
.auth-card .sub { color: var(--muted); margin-top: 10px; }
.auth-form { display: grid; gap: 16px; margin-top: 28px; }
.field label { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field label a { font-weight: 500; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--subtle); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.strength i { height: 4px; border-radius: 4px; background: var(--border); transition: background .2s; }
.strength-label { font-size: .78rem; color: var(--subtle); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 17px; }
.form-error { display: none; padding: 11px 14px; border-radius: 10px; background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); font-size: .86rem; }
.form-error.show { display: block; }
.input.invalid { border-color: var(--bad); }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 22px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: .8rem; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-art { background: var(--surface); border-left: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; padding: 48px; }
.auth-art .card { max-width: 400px; width: 100%; }
.auth-quote { max-width: 400px; margin-top: 28px; }
.auth-quote h2 { font-size: 1.6rem; }
.auth-quote ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: .94rem; }
.auth-quote li { display: flex; gap: 10px; }
.auth-quote li::before { content: "✓"; color: var(--brand-text); font-weight: 700; }

/* ---------- Motion logo ---------- */
.logo-mark { width: auto; height: auto; background: none; border: 0; border-radius: 0; }
.mlogo { width: 36px; height: 36px; overflow: visible; display: block; }
.ml-fill { fill: var(--brand-soft); opacity: 0; animation: mlFill .5s .55s ease-out forwards; }
.ml-hex { fill: none; stroke: var(--brand-text); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: mlDraw .8s cubic-bezier(.65,0,.35,1) forwards; }
.ml-check { fill: none; stroke: var(--brand-text); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: mlDraw .45s .75s cubic-bezier(.65,0,.35,1) forwards; }
.ml-scan { animation: mlScan 3.6s 1.4s ease-in-out infinite; }
.ml-cell { fill: #f59e0b; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ml-cell.c1 { animation: mlPop .4s 1.0s cubic-bezier(.34,1.56,.64,1) forwards, mlHum 3.6s 1.6s ease-in-out infinite; }
.ml-cell.c2 { fill: var(--brand-600); animation: mlPop .4s 1.12s cubic-bezier(.34,1.56,.64,1) forwards, mlHum 3.6s 1.9s ease-in-out infinite; }
.ml-cell.c3 { fill: #fbbf24; animation: mlPop .4s 1.24s cubic-bezier(.34,1.56,.64,1) forwards, mlHum 3.6s 2.2s ease-in-out infinite; }
.logo:hover .ml-hex { animation: mlDraw .8s cubic-bezier(.65,0,.35,1) forwards, mlSpinIn .7s ease; transform-origin: 18px 20.5px; }
.logo:hover .ml-cell { animation-play-state: running; }
.logo > span:last-child { animation: mlWord .5s .35s ease-out both; }
@keyframes mlDraw { to { stroke-dashoffset: 0; } }
@keyframes mlFill { to { opacity: 1; } }
@keyframes mlScan { 0% { transform: translateY(0); } 55%, 100% { transform: translateY(48px); } }
@keyframes mlPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes mlHum { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .55; } }
@keyframes mlSpinIn { from { transform: rotate(-60deg); } to { transform: rotate(0); } }
@keyframes mlWord { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
footer .logo > span:last-child { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ml-hex, .ml-check { animation: none; stroke-dashoffset: 0; }
  .ml-fill, .ml-cell { animation: none; opacity: 1; }
  .ml-scan, .logo > span:last-child { animation: none; }
}

/* ---------- Upsell / out of checks ---------- */
.upsell { position: relative; overflow: hidden; margin: 40px auto 0; max-width: 760px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.upsell > canvas { opacity: .9; }
.upsell-inner { position: relative; z-index: 1; padding: 44px 40px 36px; text-align: center; }
@media (max-width: 560px) { .upsell-inner { padding: 32px 20px 28px; } }
.up-anim { opacity: 0; transform: translateY(14px); animation: upIn .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes upIn { to { opacity: 1; transform: none; } }
.meter { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.meter svg { width: 54px; height: 60px; overflow: visible; }
.meter .mh { fill: var(--brand-soft); stroke: var(--brand-line); stroke-width: 2; }
.meter .mc { fill: none; stroke: var(--brand-text); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.meter .cell { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; }
.meter .cell.on { animation: cellPop .45s cubic-bezier(.34,1.56,.64,1) forwards; }
.meter .cell.on .mc { animation: mlDraw .35s .25s ease forwards; }
.meter .cell.used .mh { animation: cellUsed .6s 1.4s ease forwards; }
@keyframes cellPop { to { opacity: 1; transform: scale(1); } }
@keyframes cellUsed { to { fill: var(--surface-2); stroke: var(--border-strong); } }
.upsell h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.upsell .sub { color: var(--muted); max-width: 520px; margin: 12px auto 0; font-size: 1.02rem; }
.recent { margin: 26px auto 0; max-width: 520px; text-align: left; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.recent-head { padding: 10px 16px; font-size: .78rem; font-weight: 600; color: var(--subtle); background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.recent-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.recent-row:last-child { border-bottom: 0; }
.recent-row .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 10px; align-items: center; min-width: 0; }
.offer { position: relative; margin: 28px auto 0; max-width: 520px; border-radius: 18px; padding: 2px; background: linear-gradient(120deg, var(--brand-line), #fde68a, var(--brand-600), var(--brand-line)); background-size: 300% 300%; animation: borderFlow 6s ease infinite; }
@keyframes borderFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.offer-in { border-radius: 16px; background: var(--surface); padding: 24px 26px; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 18px 20px; align-items: center; }
@media (max-width: 560px) { .offer-in { grid-template-columns: 1fr; } }
.offer-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-text); }
.offer-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-600); box-shadow: 0 0 0 0 var(--brand-600); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
.offer-price { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.offer-price small { font-size: .95rem; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.offer-per { font-size: .84rem; color: var(--subtle); }
.offer ul { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .88rem; color: var(--text-2); }
@media (max-width: 560px) { .offer ul { grid-template-columns: 1fr; } }
.offer li { display: flex; gap: 8px; }
.offer li::before { content: "✓"; color: var(--brand-text); font-weight: 700; }
.btn-shine { position: relative; overflow: hidden; padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(22,163,74,.6); animation: ctaPulse 2.6s ease-in-out infinite; }
.btn-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 2.6s ease-in-out infinite; }
.btn-shine:hover { animation-play-state: paused; transform: translateY(-1px); }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 10px 24px -8px rgba(22,163,74,.55); } 50% { box-shadow: 0 14px 34px -6px rgba(22,163,74,.85); } }
.btn-shine svg { transition: transform .2s; }
.btn-shine:hover svg { transform: translateX(3px); }
.trust-mini { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .82rem; color: var(--subtle); }
.trust-mini span { display: inline-flex; gap: 6px; align-items: center; }
.trust-mini svg { width: 14px; height: 14px; color: var(--brand-text); }
.restore { max-width: 520px; margin: 22px auto 0; text-align: left; }
.restore summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--text-2); list-style: none; text-align: center; }
.restore summary::-webkit-details-marker { display: none; }
.restore summary span { border-bottom: 1px dashed var(--border-strong); }
.restore-row { display: flex; gap: 8px; margin-top: 12px; }
.low-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); font-size: .9rem; font-weight: 500; margin-bottom: 12px; animation: upIn .5s ease forwards; }
.low-banner a { font-weight: 700; color: var(--warn); }
.last-card { margin-top: 20px; border-radius: 18px; padding: 2px; background: linear-gradient(120deg, var(--brand-line), #fde68a, var(--brand-600), var(--brand-line)); background-size: 300% 300%; animation: borderFlow 6s ease infinite, upIn .6s ease forwards; }
.last-card-in { border-radius: 16px; background: var(--surface); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.last-card-in h3 { font-size: 1.1rem; }
.last-card-in p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .offer, .last-card, .btn-shine, .btn-shine::after, .offer-tag i { animation: none !important; } .up-anim { animation: none; opacity: 1; transform: none; } }
.logo-mark .mlogo { width: 36px; height: 36px; }

/* ---------- Pricing cards ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.selected { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-wash), var(--shadow); }
.plan-card.featured { border: 0; padding: 30px 28px 26px; }
.plan-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 2px; background: linear-gradient(120deg, #22c55e, #fbbf24, #15803d, #22c55e); background-size: 300% 300%; animation: borderFlow 5s ease infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-card.featured.selected { box-shadow: 0 0 0 3px var(--brand-wash), 0 18px 40px -12px rgba(22,163,74,.45); }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #15803d, #16a34a); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(22,163,74,.6); white-space: nowrap; }
.plan-name { font-size: .9rem; font-weight: 700; color: var(--brand-text); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-save { font-size: .72rem; font-weight: 700; color: #92400e; background: #fef3c7; padding: 3px 8px; border-radius: 6px; }
[data-theme="dark"] .plan-save { color: #fcd34d; background: rgba(120,53,15,.45); }
.plan-price { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.035em; margin-top: 10px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.plan-each { color: var(--subtle); font-size: .86rem; margin-top: 4px; }
.plan-card .checklist { margin: 18px 0 22px; gap: 9px; }
.plan-card .checklist li { font-size: .9rem; }
.plan-card .btn { margin-top: auto; width: 100%; }
.qty { margin-top: 14px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.qty-btn:hover { background: var(--surface-2); }
.qty-input { width: 100%; text-align: center; font-size: 1.15rem; font-weight: 700; padding: 8px; }
.range { width: 100%; margin: 14px 0 6px; accent-color: var(--brand-600); }
.range-labels { display: flex; justify-content: space-between; font-size: .74rem; color: var(--subtle); }
.tier-hint { margin-top: 10px; font-size: .82rem; color: var(--brand-text); font-weight: 600; min-height: 1.2em; }
.price-pop { animation: pricePop .3s ease; }
@keyframes pricePop { 0% { transform: scale(1); } 40% { transform: scale(1.06); color: var(--brand-text); } 100% { transform: scale(1); } }
.plans-note { text-align: center; color: var(--subtle); font-size: .88rem; margin-top: 22px; }
.pay-error { display: none; margin: 18px auto 0; max-width: 560px; }
.pay-error.show { display: block; }
.offer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 600px; margin: 26px auto 0; text-align: left; }
@media (max-width: 600px) { .offer-pair { grid-template-columns: 1fr; } }
.offer-pair .plan-card { padding: 22px 20px 18px; }
.offer-pair .plan-price { font-size: 2.1rem; }
.offer-pair .plan-card .btn { margin-top: 16px; }
.custom-link { display: inline-block; margin-top: 16px; font-size: .9rem; font-weight: 600; }

/* Softer score ring in light mode (~15% less glow) */
:root:not([data-theme="dark"]) .ring.is-done .ring-halo { animation-name: haloSoft; }
:root:not([data-theme="dark"]) .ring.is-done .ring-arc { animation-name: arcGlowSoft; }
:root:not([data-theme="dark"]) .ring-halo { background: radial-gradient(circle, color-mix(in srgb, var(--ring-c) 20%, transparent) 0%, transparent 66%); }
@keyframes haloSoft { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.06); opacity: .85; } }
@keyframes arcGlowSoft { 0%, 100% { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ring-c) 75%, transparent)) drop-shadow(0 0 8px color-mix(in srgb, var(--ring-c) 30%, transparent)); } 50% { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--ring-c) 80%, transparent)) drop-shadow(0 0 17px color-mix(in srgb, var(--ring-c) 50%, transparent)); } }

/* Hero typewriter */
.tw-word { color: var(--brand-text); white-space: nowrap; }
.tw-caret { display: inline-block; width: 0.07em; height: 0.85em; margin-left: 0.04em; vertical-align: -0.04em; border-radius: 2px; background: var(--brand-text); animation: twBlink 1s step-end infinite; box-shadow: 0 0 10px color-mix(in srgb, var(--brand-text) 60%, transparent); }
@keyframes twBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-caret { animation: none; } }

/* ---------- Demo video ---------- */
.demo-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .95rem; font-weight: 600; color: var(--text); }
.demo-link:hover { text-decoration: none; color: var(--brand-text); }
.demo-play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ping 2s infinite; }
.demo-play svg { margin-left: 2px; }
.demo-section { padding-top: 24px; }
.demo-frame { position: relative; max-width: 980px; margin: 0 auto; }
.demo-glow { position: absolute; inset: -2px; border-radius: 22px; background: linear-gradient(120deg, #22c55e, #fbbf24, #15803d, #22c55e); background-size: 300% 300%; animation: borderFlow 6s ease infinite; }
.demo-glow::after { content: ""; position: absolute; inset: 20px; border-radius: 30px; background: inherit; filter: blur(40px); opacity: .35; z-index: -1; }
.demo-player { position: relative; border-radius: 20px; overflow: hidden; background: #0b1020; aspect-ratio: 16 / 9; margin: 2px; }
.demo-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b1020; }
.demo-cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(3,7,18,.05) 40%, rgba(3,7,18,.55)); display: grid; place-items: center; transition: opacity .3s; }
.demo-cover.hide { opacity: 0; pointer-events: none; }
.demo-btn { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(21,128,61,.92); color: #fff; box-shadow: 0 0 0 10px rgba(74,222,128,.18), 0 20px 40px -10px rgba(0,0,0,.6); transition: transform .2s; animation: ctaPulse 2.6s ease-in-out infinite; }
.demo-btn svg { margin-left: 4px; }
.demo-cover:hover .demo-btn { transform: scale(1.07); }
.demo-meta { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(3,7,18,.7); color: #e5e7eb; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.demo-points { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 26px; font-size: .92rem; color: var(--text-2); }
.demo-points span { display: inline-flex; align-items: center; gap: 9px; }
.demo-points b { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; }
@media (max-width: 560px) { .demo-btn { width: 64px; height: 64px; } .demo-meta { font-size: .75rem; bottom: 10px; } .demo-player { border-radius: 14px; } .demo-glow { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .demo-glow, .demo-btn, .demo-play { animation: none; } }
section[id] { scroll-margin-top: 72px; }

/* Legal pages (terms, refunds, privacy) */
.legal { max-width: 780px; }
.legal .legal-date { font-size: .9rem; color: var(--subtle); margin-top: 6px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); color: var(--text-2); }
.legal-table th { background: var(--surface-2); color: var(--text); font-weight: 600; }

/* Homepage additions: who it's for, privacy, can / can't check, screening-aid notice */
.who-for { margin-top: 14px; font-size: .98rem; color: var(--text-2); max-width: 560px; }
.who-for b { color: var(--text); }
.privacy-section { padding: 72px 0 0; }
.privacy-card { display: flex; gap: 22px; align-items: flex-start; padding: 32px; }
.privacy-card h2 { margin-top: 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.privacy-card p { color: var(--text-2); margin-top: 10px; font-size: 1.05rem; }
.privacy-card .privacy-more { color: var(--muted); font-size: .93rem; }
.privacy-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); display: grid; place-items: center; }
@media (max-width: 560px) { .privacy-section { padding-top: 48px; } .privacy-card { flex-direction: column; gap: 14px; padding: 24px 20px; } }
.can-cant { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.can-cant .card { padding: 26px 26px 22px; }
.can-cant h3 { font-size: 1.1rem; }
.can-cant .checklist { margin: 16px 0 0; }
.crosslist { list-style: none; padding: 0; margin: 16px 0 14px; display: grid; gap: 12px; }
.crosslist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.crosslist li::before { content: "\00D7"; flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; line-height: 1; margin-top: 1px; box-sizing: border-box; }
@media (max-width: 760px) { .can-cant { grid-template-columns: 1fr; } .can-cant .card { padding: 22px 20px 18px; } }
.aid-notice { margin: 18px 0; background: var(--warn-soft); border-color: var(--warn-line); color: var(--text-2); }
.aid-notice svg { color: var(--warn); }

/* Contact + how-it-works pages */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; color: var(--text); }
.contact-card:hover { text-decoration: none; border-color: var(--brand-line); }
.contact-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 6px; }
.reply-time { margin-top: 22px; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.legal ol { padding-left: 22px; margin: 10px 0; }
.header-actions .text-link { white-space: nowrap; }
@media (max-width: 1100px) { .main-nav a { padding: 8px 10px; } }
.dash-demo-btn { margin-top: 18px; margin-left: 14px; vertical-align: middle; }
@media (max-width: 560px) { .dash-demo-btn { display: flex; margin-left: 0; width: 100%; } }
