/* SureLine by Modern Clarity — funnel styles. Brand tokens per BRAND_TOKENS.md + chevron mark. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand-purple: #5E6AD2;
  --brand-black: #0F1117;
  --mid-gray: #6B7280;
  --off-white: #F3F4F6;
  --white: #FFFFFF;
  --purple-hover: #4A55B8;
  --purple-light: #7C87DD;
  --purple-tint: #EEF0FA;
  --border-light: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.22);
  --shadow-card: rgba(0,0,0,0.04) 0 4px 18px, rgba(0,0,0,0.027) 0 2px 7.85px, rgba(0,0,0,0.02) 0 0.8px 2.93px, rgba(0,0,0,0.01) 0 0.175px 1.04px;
  --shadow-hover: rgba(0,0,0,0.06) 0 8px 24px, rgba(0,0,0,0.04) 0 3px 10px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --max-width: 1140px;
  --tier-strong-bg: #FBE7E2; --tier-strong-fg: #A32D2D;
  --tier-mod-bg: #FAEEDA; --tier-mod-fg: #854F0B;
  --tier-low-bg: #EAF3DE; --tier-low-fg: #3B6D11;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--brand-black);
  font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 16px; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--brand-purple); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.muted { color: var(--mid-gray); }
.center { text-align: center; }

/* Buttons (slimmer) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 700; border: 1px solid var(--brand-purple); background: var(--brand-purple); color: var(--white); cursor: pointer; transition: background .15s ease, transform .05s ease; white-space: nowrap; }
.btn:hover { background: var(--purple-hover); border-color: var(--purple-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--white); color: var(--brand-purple); }
.btn.secondary:hover { background: var(--purple-tint); }
.btn.lg { min-height: 50px; font-size: 15px; padding: 0 22px; }
.btn.block { width: 100%; }

/* Announcement + nav */
.announce { background: var(--brand-black); color: var(--white); text-align: center; font-size: 13px; font-weight: 600; padding: 9px 16px; letter-spacing: 0.01em; }
.announce b { color: var(--purple-light); }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-light); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.03em; }
.brand-lockup .wordmark { font-size: 19px; white-space: nowrap; }
.brand-lockup .clarity { color: var(--brand-purple); font-weight: 600; }
.chevrons { width: 38px; height: 26px; flex: 0 0 auto; }
.nav-links { display: none; gap: 22px; font-size: 14px; font-weight: 600; color: var(--mid-gray); }
.nav-links a:hover { color: var(--brand-purple); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .btn { min-height: 40px; padding: 0 15px; font-size: 13.5px; }

/* Hero (two column: copy + calculator) */
.hero { padding: 44px 0 40px; }
.hero-grid { display: grid; gap: 30px; align-items: center; }
.hero-copy .chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px; border: 1px solid var(--border-light); border-radius: var(--radius-pill); background: var(--white); color: #343946; font-size: 12.5px; font-weight: 700; }
.chip svg { width: 14px; height: 14px; color: var(--brand-purple); }
.lead { color: #343946; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.5; margin-bottom: 0; }

/* Calculator card */
.slider-card { padding: 24px; background: var(--off-white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.slider-card h3 { margin-bottom: 4px; }
.slider-control { margin-top: 18px; }
.slider-control label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #343946; margin-bottom: 12px; }
.slider-control label b { color: var(--brand-purple); font-size: 15px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-purple) var(--fill,40%), #d7dae4 var(--fill,40%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-purple); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-purple); border: 3px solid #fff; cursor: pointer; }
.leak-readout { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 18px 20px; text-align: center; margin-top: 18px; }
.leak-readout .big { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.04em; color: var(--brand-black); line-height: 1.05; }
.leak-readout .sub { font-size: 13px; color: var(--mid-gray); margin-top: 4px; }
.slider-note { font-size: 12px; color: var(--mid-gray); margin: 12px 0 0; }
.slider-card .btn { width: 100%; margin-top: 18px; }
.slider-card .foot-note { font-size: 12px; color: var(--mid-gray); text-align: center; margin: 10px 0 0; }

/* Sections */
section.band { padding: 54px 0; border-top: 1px solid var(--border-light); }
section.band.alt { background: var(--off-white); }
section.band.dark { background: var(--brand-black); color: var(--white); border-top: none; }
section.band.dark .muted, section.band.dark p { color: #C8CCD8; }
.section-intro { max-width: 720px; margin-bottom: 32px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px){ .grid.cols-3 { grid-template-columns: repeat(3,1fr); } .grid.cols-4 { grid-template-columns: repeat(4,1fr); } .grid.cols-2 { grid-template-columns: repeat(2,1fr); } }
.card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; }
.icon-badge { width: 42px; height: 42px; border-radius: 11px; background: var(--purple-tint); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-badge svg { width: 22px; height: 22px; color: var(--brand-purple); }
.benefit { display: flex; gap: 13px; align-items: flex-start; }
.benefit svg { width: 20px; height: 20px; color: var(--brand-purple); flex: 0 0 auto; margin-top: 3px; }
.benefit h3 { margin-bottom: 3px; font-size: 16px; }
.benefit p { margin: 0; font-size: 14px; }

/* Problem band */
.stat-row { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 720px){ .stat-row { grid-template-columns: repeat(3,1fr); } }
.stat { padding: 22px 20px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border-light); }
.stat .n { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand-purple); }
.stat .l { font-size: 14px; color: var(--mid-gray); margin-top: 4px; }
.voc { margin-top: 26px; display: grid; gap: 12px; }
.voc-quote { padding: 15px 18px; border-left: 3px solid var(--brand-purple); background: var(--white); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-weight: 600; color: #2F3350; }
.voc-quote span { display: block; font-weight: 500; font-size: 12.5px; color: var(--mid-gray); margin-top: 4px; }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: middle; padding: 13px 15px; border-bottom: 1px solid var(--border-light); }
th { background: var(--off-white); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
th.us, td.us { background: var(--purple-tint); }
th.us { color: var(--purple-hover); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }
.yes { color: var(--tier-low-fg); font-weight: 800; }
.no { color: #b23; font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--white); margin-bottom: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-purple); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--mid-gray); }

/* About */
.about { display: grid; gap: 22px; align-items: start; }
@media (min-width:720px){ .about { grid-template-columns: 1fr 1fr; } }

/* Final CTA */
.final { text-align: center; }
.final .chevrons { width: 60px; height: 40px; margin: 0 auto 20px; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border-light); background: var(--off-white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--mid-gray); }
.footer-links a:hover { color: var(--brand-purple); }

/* ---- Assessment / Results overlay ---- */
.overlay { position: fixed; inset: 0; z-index: 100; background: var(--off-white); overflow-y: auto; display: none; }
.overlay.active { display: block; }
.overlay-top { position: sticky; top: 0; background: rgba(243,244,246,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.overlay-top .topbar-inner { min-height: 60px; }
.overlay-close { background: none; border: none; cursor: pointer; color: var(--mid-gray); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.progress { height: 4px; background: #dfe2ea; }
.progress .bar { height: 100%; background: var(--brand-purple); width: 0; transition: width .3s ease; }
.assess-stage { max-width: 640px; margin: 0 auto; padding: 40px 24px 80px; }
.q-eyebrow { color: var(--brand-purple); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.q-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 24px; }
.options { display: grid; gap: 12px; }
.option { text-align: left; padding: 17px 18px; border: 1.5px solid var(--border-light); border-radius: var(--radius-md); background: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s; display: flex; align-items: center; gap: 12px; }
.option:hover { border-color: var(--purple-light); }
.option.selected { border-color: var(--brand-purple); background: var(--purple-tint); }
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3c8d4; flex: 0 0 auto; }
.option.selected .dot { border-color: var(--brand-purple); background: var(--brand-purple); box-shadow: inset 0 0 0 3px #fff; }
.assess-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.link-btn { background: none; border: none; color: var(--mid-gray); font-weight: 600; cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--brand-black); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #343946; }
.field input { width: 100%; min-height: 50px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); padding: 0 14px; font: inherit; background: var(--white); }
.field input:focus { outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(94,106,210,.15); }
.field .err { color: #b23; font-size: 12.5px; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #d66; }
.trust-line { font-size: 12.5px; color: var(--mid-gray); margin-top: 6px; line-height: 1.5; }
.trust-line a { color: var(--brand-purple); text-decoration: underline; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--purple-tint); border-top-color: var(--brand-purple); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.result-hero { text-align: center; padding: 12px 0 6px; }
.result-number { font-size: clamp(44px, 9vw, 74px); font-weight: 800; letter-spacing: -0.05em; color: var(--brand-black); line-height: 1; }
.result-label { font-size: 13px; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 10px; }
.fit-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 16px; border-radius: var(--radius-pill); font-weight: 800; font-size: 14px; margin: 20px 0 8px; }
.fit-scale { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.fit-pip { height: 6px; width: 46px; border-radius: 999px; background: #dfe2ea; }
.result-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; margin: 20px 0; }
.result-card h3 { margin-bottom: 10px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.result-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.result-list svg { width: 19px; height: 19px; color: var(--brand-purple); flex: 0 0 auto; margin-top: 2px; }
.guarantee { display: flex; gap: 13px; align-items: flex-start; padding: 18px; border-radius: var(--radius-md); background: var(--purple-tint); border: 1px solid rgba(94,106,210,0.25); margin: 20px 0; }
.guarantee svg { width: 24px; height: 24px; color: var(--brand-purple); flex: 0 0 auto; }
.guarantee p { margin: 0; font-size: 14.5px; color: #2F3350; }
.calendar-embed { min-height: 640px; border: 1px solid var(--border-light); border-radius: var(--radius-md); width: 100%; background: var(--white); }
.cal-placeholder { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; border: 1.5px dashed var(--purple-light); border-radius: var(--radius-md); background: var(--purple-tint); padding: 30px; color: var(--purple-hover); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 46px; }
}
@media (max-width: 420px){ .nav-right .btn { padding: 0 12px; font-size: 13px; } .chevrons { width: 34px; } .brand-lockup .wordmark { font-size: 17px; } }
