/* WhyItHit design system. Dark by default, one accent, Geist throughout. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #09090b; --bg-2: #0f0f12; --panel: #131317; --panel-2: #18181d; --line: #24242b; --line-2: #2f2f38;
  --ink: #f4f4f5; --ink-2: #c9c9d1; --quiet: #8f8f9b; --faint: #7d7d88;
  --accent: #7cf5b8; --accent-ink: #04140c; --accent-soft: rgba(124, 245, 184, .12); --accent-line: rgba(124, 245, 184, .35);
  --boost: #7cf5b8; --drag: #ff7a6b; --info: #8fb4ff; --warn: #ffd166;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -30px rgba(0,0,0,.8);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1120px; --gutter: 20px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #fbfbfa; --bg-2: #f4f4f2; --panel: #ffffff; --panel-2: #f6f6f4; --line: #e6e6e2; --line-2: #d9d9d4;
  --ink: #111113; --ink-2: #3b3b42; --quiet: #63636c; --faint: #6f6f78;
  --accent: #0a7a4c; --accent-ink: #ffffff; --accent-soft: rgba(10, 122, 76, .09); --accent-line: rgba(10, 122, 76, .4);
  --boost: #0a7a4c; --drag: #d6452f; --info: #2f6fe0; --warn: #b7791f;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 50px -30px rgba(0,0,0,.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a svg, p svg { display: inline-block; vertical-align: -0.125em; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-weight: 640; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--quiet); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 62ch; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 16.5px; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--quiet); text-decoration: none; font-size: 14.5px; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--quiet); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-menu { position: relative; display: none; }
.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; right: 0; top: 44px; min-width: 200px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.nav-menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.nav-menu-panel a:hover { background: var(--panel-2); color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-menu { display: block; } }
@media (max-width: 420px) { .nav-in { gap: 12px; } .nav-end { gap: 6px; } .nav-end .btn { padding: 0 12px; } .brand { font-size: 15.5px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 550 14.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--quiet); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-accent:hover { filter: brightness(1.06); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn svg { width: 16px; height: 16px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 720px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto; height: 620px; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 13px; text-decoration: none; margin-bottom: 22px; }
.pill b { color: var(--accent); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--quiet); font-size: 13.5px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--accent); }

/* The paste form */
.paste { margin-top: 28px; display: grid; gap: 10px; max-width: 560px; }
.paste-row { display: flex; gap: 8px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow); }
.paste-row:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.paste input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: 15px var(--font); outline: none; }
.paste input::placeholder { color: var(--faint); }
.paste .vs { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: 14.5px var(--font); }
.paste .vs:focus { outline: none; border-color: var(--accent-line); }
.paste-hint { font-size: 13px; color: var(--quiet); }
.paste-hint button { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 520px) { .paste-row { flex-direction: column; } .paste-row .btn { width: 100%; } }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow); }
.card h2 { font-size: 20px; }
.card h3 { font-size: 17px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { display: grid; gap: 10px; align-content: start; }
.feature .ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature .ico svg { width: 19px; height: 19px; }
.feature p { color: var(--quiet); font-size: 15px; }
.steps { counter-reset: step; }
.step { position: relative; display: grid; gap: 8px; padding-top: 46px; }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 0; left: 0; font: 500 13px var(--mono); color: var(--accent); border: 1px solid var(--accent-line); border-radius: 8px; padding: 6px 8px; }
.step p { color: var(--quiet); font-size: 15px; }

/* Report: post card */
.report { display: grid; gap: 16px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); object-fit: cover; flex: none; }
.who { display: grid; line-height: 1.25; min-width: 0; }
.who b { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { color: var(--quiet); font-size: 14px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font: 500 12px var(--mono); border: 1px solid var(--line-2); color: var(--quiet); white-space: nowrap; }
.tag.is-accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.post-text { margin: 16px 0 0; padding: 14px 16px; border-left: 2px solid var(--accent-line); background: var(--bg-2); border-radius: 0 10px 10px 0; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; font-size: 14.5px; }
.facts dt { color: var(--quiet); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.stat { display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: var(--panel); }
.stat-label { color: var(--quiet); font-size: 12.5px; }
.stat-value { font-size: 22px; font-weight: 640; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--faint); font-size: 12px; }
.stat.is-main .stat-value { color: var(--accent); font-size: 28px; }

/* Verdict + reasons */
.verdict { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent); }
.verdict b { font-size: 18px; letter-spacing: -0.01em; }
.reasons { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.reasons li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.reasons .tone { grid-row: span 2; align-self: start; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; }
.reasons li.is-boost .tone { color: var(--boost); background: color-mix(in srgb, var(--boost) 12%, transparent); }
.reasons li.is-drag .tone { color: var(--drag); background: color-mix(in srgb, var(--drag) 12%, transparent); }
.reasons li.is-info .tone { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); }
.reasons strong { font-weight: 600; }
.reasons span:last-child { color: var(--quiet); font-size: 14.5px; }
.diffs { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.diffs li strong { display: block; font-weight: 600; }
.diffs li span { color: var(--quiet); font-size: 14.5px; }
.diff-tag { margin-left: 10px; vertical-align: 2px; height: 20px; font-size: 11px; }
.verdict-reason { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.verdict-reason strong { font-weight: 600; color: var(--ink); }
.caveats { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.notice strong { color: var(--ink); font-weight: 600; }
.duel-table th[scope='row'] { text-align: left; font-weight: 500; color: var(--ink-2); background: none; font-size: 14px; }
.duel-table td.is-better { color: var(--accent); font-weight: 650; }
.tips { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.compare-demo { display: grid; gap: 14px; }
.pair { display: grid; gap: 16px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.side-label { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--quiet); margin-bottom: 10px; }
.error { color: var(--drag); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); color: var(--quiet); font-size: 14px; }

/* Track */
.curve { margin: 16px 0 0; color: var(--accent); }
.curve svg { width: 100%; height: 180px; }
.curve figcaption { margin-top: 8px; font-size: 13px; color: var(--quiet); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--quiet); font-weight: 550; font-size: 12.5px; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 580; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--quiet); font: 400 20px/1 var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 18px 18px; color: var(--quiet); }
.faq details > div p + p { margin-top: 10px; }

/* Prose pages */
.page-head { padding: clamp(48px, 8vw, 88px) 0 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.035em; }
.page-head .lead { margin-top: 14px; }
.prose { max-width: 720px; padding-bottom: 96px; color: var(--ink-2); }
.prose h2 { font-size: 24px; margin: 40px 0 12px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 80px) 24px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%), var(--panel); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-band p { margin: 14px auto 26px; max-width: 54ch; color: var(--ink-2); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--quiet); font-size: 14px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot h2 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--quiet); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Motion: content rises in once */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }
