/* recopt.app: built on the Agentarius tokens (design/tokens.css); no colours outside them. */
@import url('./design/tokens.css');

:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); --wrap: 1120px; color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { /* same values as .dark in tokens.css */
  --frame:#1f1f1f; --canvas:#171717; --raised:#2a2a2a; --hover:rgba(255,255,255,.06); --pressed:rgba(255,255,255,.1); --line:#2e2e2e; --line-strong:#808080;
  --ink:#ececec; --ink-2:#b4b4b4; --ink-3:#969696; --accent-ink:#a6a6f5; --accent-soft:#24244a; --ok:#6fcf8e; --ok-soft:#18291e; --warn:#e8c15a; --warn-soft:#33291a;
  --bad:#ff9466; --bad-soft:#33201a; --agent-teal:#4fd1bf; --agent-teal-soft:#15302d; --shadow-pop:0 8px 28px rgba(0,0,0,.5); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 500 16px/24px var(--font-sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: var(--radius-sm); }
.skip { position: absolute; left: 16px; top: -64px; background: var(--raised); color: var(--ink); padding: 8px 16px; border-radius: var(--radius-md); z-index: 30; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: var(--radius-sm); transition: background .3s var(--ease), color .3s var(--ease); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-md); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn:active { transform: scale(.96); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }

/* Buttons: 40px, radius 10, one accent button per screen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/20px var(--font-sans); cursor: pointer; text-decoration: none; transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }
.bar .btn { height: 36px; font-size: 14px; }

/* Sections */
section { padding: 96px 0; scroll-margin-top: 56px; }
.eyebrow { display: block; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--accent-ink); margin-bottom: 12px; }
h2 { font-size: 36px; line-height: 44px; font-weight: 700; max-width: 720px; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 680px; margin-top: 16px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
h1 { font-size: 46px; line-height: 50px; font-weight: 800; max-width: 600px; }
.hero .lead { margin-top: 24px; }
.signup { margin-top: 32px; max-width: 480px; }
.signup .row { display: flex; gap: 8px; }
.signup input[type="email"] { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink); font: 500 15px/20px var(--font-sans); }
.signup input[type="email"]:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { font-size: 13px; line-height: 18px; color: var(--ink-3); margin-top: 12px; }
.msg { font-size: 14px; line-height: 20px; margin-top: 8px; min-height: 20px; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--bad); }
.proof { margin-top: 32px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); max-width: 480px; }
.proof b { color: var(--ink); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--agent-teal); margin-top: 6px; flex: none; }

/* Ladder card (real measurement, 6 Nov 2026) */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.ladder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ladder-head h3 { font-size: 15px; line-height: 22px; font-weight: 700; }
.ladder-head span { font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; }
.step .n { font: 500 12px/24px var(--font-mono); color: var(--ink-3); }
.step q { quotes: none; display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.step small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); margin-top: 4px; font-weight: 500; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.no { background: var(--hover); color: var(--ink-2); }
.badge.yes { background: var(--agent-teal-soft); color: var(--agent-teal); }
.step.hit { border-color: var(--agent-teal); }
.ladder-note { font-size: 13px; line-height: 18px; color: var(--ink-3); margin-top: 16px; }

/* How it works */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.three .card h3 { font-size: 20px; line-height: 28px; font-weight: 700; margin: 16px 0 8px; }
.three .card p { color: var(--ink-2); font-size: 15px; line-height: 24px; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* Example */
.example { background: var(--frame); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 48px; }
.stat { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.stat:first-child { border-top: 0; padding-top: 0; }
.stat b { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { color: var(--ink-2); font-size: 15px; line-height: 24px; max-width: 480px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tbl th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-3); padding: 0 12px 8px 0; }
.tbl td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }

/* Benefits */
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.benefit { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.benefit .tile { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.benefit h3 { font-size: 18px; line-height: 28px; font-weight: 700; }
.benefit p { color: var(--ink-2); font-size: 15px; line-height: 24px; margin-top: 4px; max-width: 480px; }
.cover { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: center; }
.cover strong { font-size: 15px; line-height: 22px; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--raised); font-size: 13px; font-weight: 600; color: var(--ink); }
.chip small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }

/* FAQ */
.faq { max-width: 760px; margin-top: 48px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-size: 17px; line-height: 24px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary .ico { transition: transform .5s var(--ease); color: var(--ink-3); }
details[open] summary .ico { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 24px; max-width: 680px; }

/* Final */
.final { background: var(--frame); text-align: center; }
.final h2 { margin-inline: auto; }
.final .signup { margin: 32px auto 0; text-align: left; }
.final .lead { margin-inline: auto; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--ink-3); }
footer a { color: var(--ink-2); }

/* Privacy and 404 */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: 40px; line-height: 48px; margin-bottom: 8px; }
.doc h2 { font-size: 22px; line-height: 30px; margin-top: 40px; max-width: none; }
.doc p, .doc li { color: var(--ink-2); margin-top: 12px; font-size: 16px; line-height: 26px; }
.doc ul { padding-left: 20px; margin: 0; }
.doc .signup { margin-top: 16px; }

@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 48px; }
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 36px; }
  .three, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .signup .row { flex-direction: column; }
  .signup input[type="email"] { flex: none; width: 100%; }
  .signup .btn { width: 100%; }
  .card { padding: 16px; }
  .step { grid-template-columns: 20px 1fr; }
  .step .badge { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .3s linear; }
  * { transition-duration: .01ms !important; }
}
