@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  /* canvas — alternative's cool near-black */
  --canvas: #080b0d;
  --canvas-2: #0b0f12;
  --surface: rgba(255,255,255,0.022);
  --surface-2: rgba(255,255,255,0.045);
  --elev: #0e1317;
  --line: #202a30;
  --line-soft: #161d22;
  /* ink */
  --ink: #f2f6f4;
  --ink-soft: #c4ccc8;
  --ink-muted: #8b968f;
  --ink-faint: #7a847d;
  /* accent — emerald, subject-grounded (score >=70 green) */
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-ink: #04140d;
  --accent-tint: rgba(16,185,129,0.10);
  --accent-glow: rgba(16,185,129,0.18);
  --warn: #e0b34a;
  --warn-tint: rgba(224,179,74,0.11);
  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --content: 1180px;
  --gutter: clamp(20px, 4vw, 52px);
  --section: clamp(80px, 10vw, 140px);
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { background: var(--accent-tint); color: var(--accent-bright); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  color: var(--accent-ink); background: var(--accent-bright);
  font-weight: 600; transform: translateY(-160%); transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(100%, var(--content)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* brand mark — soft emerald tile from design */
.brand { min-height: 44px; display: inline-flex; width: max-content; align-items: center; gap: 11px; color: var(--ink); font: 600 16px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-bright), var(--accent)); box-shadow: 0 0 20px var(--accent-glow); }
.brand-mark svg { width: 15px; height: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 5px 13px 5px 11px; border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--surface); color: var(--ink-muted);
  font: 500 12.5px/1 var(--body); letter-spacing: .01em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 9px var(--accent-bright); }
.kicker { display: block; margin-bottom: 14px; color: var(--accent); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.section-heading { max-width: 20ch; margin: 0; color: var(--ink); font: 600 clamp(30px, 4.2vw, 48px)/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.section-intro { max-width: 42ch; margin: 0; color: var(--ink-muted); font-size: 17px; }

/* buttons */
.btn {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border: 1px solid transparent; border-radius: 10px;
  font: 600 14.5px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease), color 180ms var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 8px 26px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: #2d3a41; transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; border-radius: 11px; }
.btn-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-muted); font-size: 14px; transition: color 160ms ease; }
.btn-link:hover { color: var(--ink); }

/* ============ header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,11,13,.72); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(12px); }
.nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-muted); font-size: 14px; transition: color 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-glow { position: absolute; top: -180px; left: 8%; width: 680px; height: 460px; pointer-events: none; background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%); filter: blur(24px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: clamp(72px, 10vw, 128px); }
.hero-copy h1 { margin: 0 0 22px; color: var(--ink); font: 600 clamp(38px, 6vw, 66px)/1.02 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.hero-copy h1 .accent { color: var(--accent-bright); }
.hero-lead { max-width: 34ch; margin: 0 0 32px; color: var(--ink-muted); font-size: clamp(17px, 1.7vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.control-note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--ink-faint); font-size: 13.5px; }
.control-note svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--accent-bright); }
.control-note b { color: var(--ink-muted); font-weight: 500; }

/* ============ fit report (hero mock, alternative rail x design mock) ============ */
.fit-report { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--elev), var(--canvas-2)); box-shadow: 0 28px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.015); overflow: hidden; }
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-faint); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fr-live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); }
.fr-live::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 10px var(--accent-bright); content: ''; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.fr-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 20px; border-bottom: 1px solid var(--line-soft); }
.fr-score { width: 74px; height: 74px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); border: 1px solid rgba(16,185,129,.3); color: var(--accent-bright); font: 500 30px/1 var(--mono); }
.fr-role h2 { margin: 0 0 4px; color: var(--ink); font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.fr-role p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.fr-list { list-style: none; padding: 8px 20px 12px; }
.fr-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 9px 0; }
.fr-list .lbl { color: var(--ink-muted); font-size: 13px; }
.fr-bar { display: grid; grid-template-columns: 66px 34px; gap: 10px; align-items: center; }
.fr-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.fr-fill { height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 900ms var(--ease); }
.fr-fill.mid { background: var(--warn); }
.fr-val { font: 500 12px/1 var(--mono); color: var(--ink-soft); text-align: right; }
.fr-val.good { color: var(--accent-bright); }
.fr-val.mid { color: var(--warn); }
.fr-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.fr-pick { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.fr-pick .chk { width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.fr-pick .chk svg { width: 12px; height: 12px; }
.fr-foot .mono { color: var(--ink-faint); font-size: 12px; }

/* ============ section base ============ */
.section { padding-block: var(--section); }
.section + .section, .bordered { border-top: 1px solid var(--line-soft); }

/* ============ problem ============ */
.problem { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 40%); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 88px); align-items: center; }
.problem-lead { color: var(--ink); font: 500 clamp(22px, 2.6vw, 30px)/1.34 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.problem-copy p { margin-top: 20px; color: var(--ink-muted); font-size: 16.5px; }
.stat-list { border-top: 1px solid var(--line-soft); }
.stat-row { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-soft); transition: padding-left 200ms var(--ease); }
.stat-row:hover { padding-left: 8px; }
.stat-row .n { color: var(--accent); font: 500 13px/1 var(--mono); }
.stat-row .t { color: var(--ink-soft); font-size: 15px; }

/* ============ steps ============ */
.section-head { max-width: 40ch; margin-bottom: 52px; }
.section-head.between { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--line-soft); overflow: hidden; }
.step { background: var(--canvas); padding: 26px 22px; min-height: 210px; display: flex; flex-direction: column; transition: background 200ms var(--ease); }
.step:hover { background: var(--elev); }
.step .num { display: flex; align-items: center; gap: 9px; margin-bottom: auto; color: var(--accent); font: 500 12px/1 var(--mono); }
.step .num::before { width: 22px; height: 1px; background: var(--accent); opacity: .5; content: ''; }
.step h3 { margin: 28px 0 9px; color: var(--ink); font: 600 17px/1.2 var(--display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.58; }

/* ============ features ============ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: border-color 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease); }
.feat:hover { border-color: var(--line); background: var(--surface-2); transform: translateY(-3px); }
.feat .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-tint); }
.feat .ico svg { width: 18px; height: 18px; stroke: var(--accent-bright); }
.feat h3 { margin: 0 0 8px; color: var(--ink); font: 600 16px/1.25 var(--display); letter-spacing: -.02em; }
.feat p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.58; }

/* ============ control strip ============ */
.control-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.control-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas-2); overflow: hidden; }
.control-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-faint); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.control-item { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.control-item:last-child { border-bottom: 0; }
.control-item .tick { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-tint); }
.control-item .tick svg { width: 14px; height: 14px; stroke: var(--accent-bright); }
.control-item h3 { margin: 0 0 3px; color: var(--ink); font: 600 15px/1.3 var(--display); }
.control-item p { margin: 0; color: var(--ink-muted); font-size: 13.5px; }

/* ============ pricing ============ */
.pricing-head { text-align: center; margin-bottom: 52px; }
.pricing-head .section-heading { max-width: none; margin-inline: auto; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 30px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface); }
.plan.featured { border-color: rgba(16,185,129,.32); background: linear-gradient(180deg, var(--accent-tint), transparent 55%); }
.plan .tag { position: absolute; top: -11px; left: 30px; padding: 4px 11px; border-radius: 999px; background: var(--accent-bright); color: var(--accent-ink); font: 600 11px/1 var(--mono); }
.plan .name { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-muted); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan .price { margin: 22px 0 6px; color: var(--ink); font: 600 clamp(36px, 4vw, 46px)/1 var(--display); letter-spacing: -.03em; }
.plan .price span { color: var(--ink-muted); font: 400 15px/1 var(--body); }
.plan .price-note { min-height: 18px; color: var(--ink-faint); font-size: 12.5px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 26px 0 30px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 14px; }
.plan li svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; stroke: var(--accent-bright); }
.plan li.muted { color: var(--ink-faint); }
.plan li.muted svg { stroke: var(--ink-faint); }
.plan .btn { width: 100%; margin-top: auto; }

/* ============ faq ============ */
.faq { max-width: 760px; margin-inline: auto; }
.faq-head { text-align: center; margin-bottom: 40px; }
details { border-bottom: 1px solid var(--line-soft); }
summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--ink); cursor: pointer; list-style: none; font: 500 16.5px/1.35 var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.plus::before, .plus::after { position: absolute; background: var(--ink-muted); border-radius: 2px; content: ''; transition: opacity 200ms ease, background 200ms ease; }
.plus::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.plus::after { top: 2px; left: 9px; width: 2px; height: 16px; }
details[open] summary { color: var(--accent-bright); }
details[open] .plus::after { opacity: 0; }
details[open] .plus::before { background: var(--accent-bright); }
.answer { padding: 0 44px 22px 0; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

/* ============ final cta ============ */
.final { position: relative; text-align: center; overflow: hidden; }
.final-glow { position: absolute; bottom: -220px; left: 50%; transform: translateX(-50%); width: 760px; height: 420px; pointer-events: none; background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%); filter: blur(24px); }
.final-inner { position: relative; }
.final h2 { max-width: 18ch; margin: 0 auto 18px; color: var(--ink); font: 600 clamp(32px, 5vw, 56px)/1.03 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.final h2 .accent { color: var(--accent-bright); }
.final p { max-width: 40ch; margin: 0 auto 32px; color: var(--ink-muted); font-size: 17px; }

/* ============ footer ============ */
.site-footer { padding-block: 36px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-faint); font-size: 13.5px; transition: color 160ms ease; }
.footer-links a:hover { color: var(--ink-soft); }
.copyright { color: var(--ink-faint); font: 400 12px/1 var(--mono); }

/* ============ login ============ */
.auth { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100dvh; }
.auth-aside { position: sticky; top: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 44px clamp(36px, 4vw, 56px); background: linear-gradient(160deg, #0c0f12, var(--canvas) 58%); border-right: 1px solid var(--line-soft); }
.auth-glow { position: absolute; top: -140px; left: -90px; width: 520px; height: 520px; pointer-events: none; background: radial-gradient(circle at center, var(--accent-glow), transparent 60%); filter: blur(18px); }
.auth-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .6; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 28% 38%, #000, transparent 74%); mask-image: radial-gradient(ellipse at 28% 38%, #000, transparent 74%); }
.auth-aside > *:not(.auth-glow):not(.auth-grid-bg) { position: relative; }
.auth-mid { max-width: 27em; }
.auth-mid h1 { margin: 0 0 22px; color: var(--ink); font: 600 clamp(28px, 3vw, 38px)/1.14 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.auth-mid h1 .accent { color: var(--accent-bright); }
.auth-sample { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.auth-sample-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 16px; }
.auth-sample-score { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); border: 1px solid rgba(16,185,129,.3); color: var(--accent-bright); font: 500 18px/1 var(--mono); }
.auth-sample-title strong { display: block; color: var(--ink); font: 600 14px/1.3 var(--display); }
.auth-sample-title span { color: var(--ink-faint); font-size: 12.5px; }
.auth-sample-status { padding: 5px 9px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-bright); font: 500 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.auth-foot { display: flex; align-items: center; gap: 9px; color: var(--ink-faint); font-size: 12.5px; }
.auth-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-bright); }

.auth-main { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-card { width: 100%; max-width: 396px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.auth-back { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 13px; transition: color 160ms ease; }
.auth-back:hover { color: var(--ink); }
.auth-back svg { width: 15px; height: 15px; }
.mobile-brand { display: none; }
.auth-card h2 { margin: 0 0 8px; color: var(--ink); font: 600 clamp(24px, 3vw, 30px)/1.12 var(--display); letter-spacing: -.025em; }
.auth-lede { margin: 0 0 30px; color: var(--ink-muted); font-size: 14.5px; }

.btn-google { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.btn-google:hover { background: rgba(255,255,255,.06); border-color: #2d3a41; }
.btn-google svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-faint); font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.divider::before, .divider::after { flex: 1; height: 1px; background: var(--line-soft); content: ''; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--ink-faint); pointer-events: none; }
.field input { width: 100%; min-height: 50px; padding: 0 44px 0 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); caret-color: var(--accent-bright); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { border-color: rgba(16,185,129,.5); box-shadow: 0 0 0 3px var(--accent-tint); }
.field .toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: none; border-radius: 8px; cursor: pointer; }
.field .toggle svg { width: 17px; height: 17px; stroke: var(--ink-faint); transition: stroke 160ms ease; }
.field .toggle:hover svg { stroke: var(--ink-soft); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -2px 0 22px; }
.remember { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink-muted); font-size: 13.5px; cursor: pointer; user-select: none; }
.remember input { position: absolute; width: 0; height: 0; opacity: 0; }
.remember .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background 160ms ease, border-color 160ms ease; }
.remember .box svg { width: 11px; height: 11px; stroke: var(--accent-ink); opacity: 0; transition: opacity 160ms ease; }
.remember input:checked + .box { background: var(--accent); border-color: var(--accent); }
.remember input:checked + .box svg { opacity: 1; }
.remember input:focus-visible + .box { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.forgot { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-bright); font-size: 13px; font-weight: 500; transition: opacity 160ms ease; }
.forgot:hover { opacity: .8; }
.auth-submit { width: 100%; }

.auth-switch { margin: 26px 0 0; text-align: center; color: var(--ink-muted); font-size: 14px; }
.auth-switch a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-bright); font-weight: 500; }
.auth-legal { max-width: 34ch; margin: 32px auto 0; color: var(--ink-faint); font-size: 12px; line-height: 1.6; text-align: center; }
.auth-legal a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--ink-soft); }

/* ============ scroll reveal — content visible without JS ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid, .control-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head.between { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .mobile-brand { display: flex; }
  .auth-topbar { justify-content: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-actions .btn-link { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .fr-top { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fr-fill { transition: none; }
  .fr-live::before { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn-primary:hover, .btn-ghost:hover, .feat:hover, .stat-row:hover { transform: none; }
}
