@import url("/tokens.css");

/* Landing page layout. Colour, type, radius and spacing come from design-system/tokens.css. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.mono { font-family: var(--f-mono); }
.eyebrow, .extra .tag { font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.h2 { font-family: var(--f-display); font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.sec { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); display: flex; flex-direction: column; gap: 48px; scroll-margin-top: 68px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: var(--r-m); font-weight: 650; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn-dark { height: 40px; padding: 0 18px; background: var(--ink); color: var(--ground); font-size: 14px; }
.btn-dark:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-accent { height: 52px; padding: 0 24px; background: var(--accent); color: var(--on-accent); font-size: 16px; box-shadow: inset 0 -2px 0 color-mix(in oklch, var(--ink) 18%, transparent), 0 8px 20px -10px var(--accent); }
.btn-accent:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { height: 52px; padding: 0 22px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 16px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in oklch, var(--ground) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 68px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.topnav { display: flex; gap: 26px; font-size: 15px; font-weight: 550; }
.topnav a { color: var(--ink-2); text-decoration: none; padding: 8px 2px; }
.topnav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-1); }
.livedot { width: 7px; height: 7px; border-radius: 999px; background: var(--live); animation: ctpulse 1.8s ease-in-out infinite; }
@keyframes ctpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--live) 60%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--live) 0%, transparent); } }
h1 { font-family: var(--f-display); font-size: clamp(44px, 5.6vw, 72px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 540px; text-wrap: pretty; }
.hero-lede em { font-style: normal; font-weight: 650; color: var(--unsure); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.for { font-size: 14px; color: var(--muted); }

/* Hero demo video; the verdict cards below share the pips and dots */
.demo { position: relative; }
.demo-shadow { position: absolute; inset: 22px -18px -18px 22px; border-radius: 22px; border: 1px dashed var(--line-strong); }
.demo-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; }
.pips { display: flex; gap: 4px; }
.pips.sm { gap: 3px; }
.pip { height: 18px; border-radius: 4px; display: block; flex: 1 1 0; }
.pips.sm .pip { height: 10px; border-radius: 3px; }
.pip.ok { background: var(--fixed); }
.pip.bad { background: var(--broken); }
.pip.unsure { background: repeating-linear-gradient(135deg, var(--unsure) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--unsure); }
.hatch { background: repeating-linear-gradient(135deg, var(--unsure-a) 0 5px, var(--unsure-b) 5px 10px); }
.dot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: var(--on-accent); flex: none; font-weight: 800; font-size: 14px; }
.dot svg { width: 14px; height: 14px; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.c-fixed { color: var(--fixed); } .bg-fixed { background: var(--fixed); }
.c-broken { color: var(--broken); } .bg-broken { background: var(--broken); }
.c-unsure { color: var(--unsure); } .bg-unsure { background: var(--unsure); }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--ground); }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in oklch, var(--surface) 88%, transparent); color: var(--ink-2); display: grid; place-items: center; opacity: .75; transition: opacity .15s ease; }
.vid-toggle:hover, .vid-toggle:focus-visible { opacity: 1; color: var(--ink); }
.vid-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.vid-toggle .i-play { fill: currentColor; stroke-width: 1.4; display: none; }
.vid-toggle.paused .i-play { display: block; }
.vid-toggle.paused .i-pause { display: none; }
.demo-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Problem */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.side { border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; gap: 20px; background: var(--ground); }
.side.with { border-color: var(--accent-line); background: var(--accent-soft); }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side.with .side-label { color: var(--accent-ink); }
.side ul { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.side.with ul { color: var(--ink); }
.side li { display: flex; gap: 14px; align-items: flex-start; }
.mark { flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; }
.mark svg { width: 11px; height: 11px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark.no { background: var(--broken-bg); } .mark.no svg { stroke: var(--broken); }
.mark.yes { background: var(--fixed); } .mark.yes svg { stroke: var(--on-accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.step, .extra { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); display: flex; flex-direction: column; gap: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.step { padding: 26px; box-shadow: var(--shadow-1); }
.step:hover, .extra:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.step-n { display: flex; align-items: center; gap: 12px; }
.step-n b { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--ground); display: grid; place-items: center; font-family: var(--f-display); font-size: 15px; font-weight: 700; flex: none; }
.step-n i { flex: 1; height: 0; border-top: 1px dashed var(--line-strong); }
.step h3, .extra h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -0.025em; }
.step h3 { font-size: 24px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.step .foot { margin-top: auto; font-size: 13px; font-weight: 550; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.walk { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.walk video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--ground); }
.walk figcaption { font-size: 14px; color: var(--muted); }
.transcript { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.transcript p { margin: 10px 0 0; }
.term { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-2); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid color-mix(in oklch, var(--on-accent) 8%, transparent); }
.term-bar i { width: 10px; height: 10px; border-radius: 999px; background: color-mix(in oklch, var(--on-accent) 16%, transparent); }
.term-bar span { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--code-muted); }
.term pre { margin: 0; padding: 20px 24px 22px; font-family: var(--f-mono); font-size: 14px; line-height: 1.8; overflow-x: auto; }
.term .cm { color: var(--code-muted); }
.term .ps { color: var(--live); }

/* Verdicts */
.dark { background: var(--ink); color: var(--ground); }
.dark .eyebrow { color: color-mix(in oklch, var(--accent) 55%, white); }
.dark .lede { color: color-mix(in oklch, var(--ground) 76%, transparent); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.vcard { color: var(--ink); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.vcard.fixed { background: var(--fixed-bg); }
.vcard.broken { background: var(--broken-bg); }
.vcard.unsure { border: 1px solid var(--unsure-line); }
.vcard-title { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.vcard .dot { width: 32px; height: 32px; font-size: 16px; }
.vcard .dot svg { width: 16px; height: 16px; }
.vcard p { font-size: 15px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: color-mix(in oklch, var(--ground) 14%, transparent); border: 1px solid color-mix(in oklch, var(--ground) 14%, transparent); border-radius: var(--r-l); overflow: hidden; }
.fact { background: var(--ink); padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.fact b { font-family: var(--f-display); font-size: 38px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.fact span { font-size: 14px; line-height: 1.5; color: color-mix(in oklch, var(--ground) 72%, transparent); }

/* Extras */
.note { font-size: 15px; line-height: 1.55; color: var(--muted); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px; }
.extra { padding: 30px; }
.extra .tag { color: var(--muted); }
.extra h3 { font-size: 25px; line-height: 1.15; }
.extra p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.extra code { margin-top: auto; display: block; background: var(--sunken); border-radius: var(--r-m); padding: 14px 16px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); line-height: 1.6; overflow-x: auto; white-space: nowrap; }

/* Coverage */
.cover { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: start; scroll-margin-top: 68px; }
.cover .h2 { font-size: clamp(30px, 3.2vw, 40px); }
.cover .lede { font-size: 17px; }
.table { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); }
.row + .row { border-top: 1px solid var(--line); }
.row.later { background: var(--ground); }
.row div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row small { font-size: 13px; color: var(--muted); font-weight: 550; }
.row strong { font-size: 16px; font-weight: 650; }
.badge { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 7px; background: var(--fixed-bg); color: var(--fixed); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--fixed); }
.row.later .badge { background: var(--live-bg); color: var(--live-ink); }
.row.later .badge::before { background: var(--live); }

/* FAQ */
.faq { max-width: 880px; gap: 32px; }
.faq .h2 { font-size: clamp(30px, 3.2vw, 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink-2); transition: transform .2s ease; }
.faq summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 720px; }

/* Closing call to action */
.access { margin-bottom: clamp(64px, 8vw, 104px); scroll-margin-top: 88px; }
.access-box { position: relative; overflow: hidden; background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 40px; align-items: center; }
.access-art { position: absolute; right: -40px; top: -60px; opacity: .12; }
.access-copy { position: relative; display: flex; flex-direction: column; gap: 16px; }
.access-copy h2 { font-family: var(--f-display); font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 750; text-wrap: balance; }
.access-copy p { font-size: 18px; line-height: 1.55; color: color-mix(in oklch, var(--on-accent) 92%, transparent); }
.signup { position: relative; display: flex; flex-direction: column; gap: 12px; background: color-mix(in oklch, var(--on-accent) 10%, transparent); border: 1px solid color-mix(in oklch, var(--on-accent) 22%, transparent); border-radius: var(--r-l); padding: 24px; }
.signup label { font-size: 14px; font-weight: 650; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r-m); border: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--on-accent); }
.signup input:focus { box-shadow: 0 0 0 3px color-mix(in oklch, var(--on-accent) 55%, transparent); }
.signup button { height: 52px; padding: 0 22px; border-radius: var(--r-m); border: 0; background: var(--ink); color: var(--ground); font-weight: 650; font-size: 16px; white-space: nowrap; }
.signup button:disabled { opacity: .7; cursor: default; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 14px; line-height: 1.5; color: var(--on-accent); }
.msg:empty { display: none; }
.msg.ok, .msg.info, .msg.err { background: var(--on-accent); color: var(--ink); border-radius: var(--r-m); padding: 10px 14px; font-weight: 600; }
.msg.ok { color: var(--fixed); }
.msg.err { color: var(--broken); }
.fine { font-size: 13px; color: color-mix(in oklch, var(--on-accent) 90%, transparent); }

/* Footer */
.foot-bar { border-top: 1px solid var(--line); }
.foot-bar .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot-bar .brand { font-size: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); }

@media (max-width: 820px) { .topnav, .hide-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .livedot { animation: none; } .step, .extra, .faq summary i { transition: none; } }
