/* ==========================================================================
   SynesoAI — website
   The tokens are those of the application (frontend/src/app/globals.css and
   DESIGN.md): paper, lines, a single gold. Someone who downloads after reading here must not
   get the impression of opening a different product.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../font/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../font/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../font/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../font/newsreader-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 400 600; font-display: swap; }

:root {
  --canvas: #F4F1EA;
  --paper: #FDFCF9;
  --sunken: #EBE7DC;
  --ink-900: #141414;
  --ink-800: #2B2824;
  --ink-700: #46413A;
  --ink-600: #5F594F;
  --ink-500: #6E6758;
  --ink-400: #9A9285;
  --ink-300: #BAB2A3;
  --line: #DCD5C7;
  --line-strong: #CFC7B4;
  --gold-100: #F7EFDC;
  --gold-200: #EFE2C2;
  --gold-500: #D4A848;
  --gold-700: #A57A22;
  --gold-800: #8A6214;
  --ok: #3F6B4A;
  --ok-soft: #E3ECE2;
  --danger: #8F2F2A;
  --danger-soft: #F3E1DD;
  --on-ink: #F4F1EA;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --title: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --editorial: "Newsreader", "Iowan Old Style", Georgia, serif;
  /* Instrument Serif has no Greek: σύνεσις falls back to a system serif that does. */
  --greek: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --radius-card: 14px;
  --radius-control: 11px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #141311; --paper: #1C1A17; --sunken: #23211D;
    --ink-900: #F4F1EA; --ink-800: #E6E1D6; --ink-700: #D3CCBE; --ink-600: #B8B0A1; --ink-500: #A39B8C; --ink-400: #7A7366; --ink-300: #5A544A;
    --line: #2E2B26; --line-strong: #3A362F;
    --gold-100: #2A2418; --gold-200: #3A311F; --gold-500: #D4A848; --gold-700: #C99A3A; --gold-800: #DDB65E;
    --ok: #8DB898; --ok-soft: #1E2A21; --danger: #E08A80; --danger-soft: #2E1C1A; --on-ink: #141311;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink-700);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-200); color: var(--ink-900); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--ink-900); color: var(--on-ink); border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* --- typography -------------------------------------------------------- */
.eyebrow { margin: 0 0 14px; font: 600 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-800); }
.h-display { margin: 0; font: 400 clamp(46px, 7.4vw, 96px)/.98 var(--title); letter-spacing: -.022em; color: var(--ink-900); text-wrap: balance; }
.h-section { margin: 0; font: 400 clamp(36px, 5vw, 60px)/1.04 var(--title); letter-spacing: -.018em; color: var(--ink-900); text-wrap: balance; max-width: 18ch; }
.lead { margin: 18px 0 0; max-width: 62ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-600); text-wrap: pretty; }
.editorial { font-family: var(--editorial); font-style: italic; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --- actions (DESIGN.md §3: one primary per screen) ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--radius-control);
  border: 1px solid transparent; font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink-900); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-800); }
.btn-secondary { background: var(--paper); border-color: var(--line-strong); color: var(--ink-700); }
.btn-secondary:hover { background: var(--sunken); }
.btn-tertiary { background: none; padding-inline: 4px; color: var(--ink-600); }
.btn-tertiary:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 4px; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }

/* --- header ----------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar[data-scrolled] { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); font: 700 14px/1 var(--sans); letter-spacing: .2em; }
.brand-mark { width: 26px; height: 26px; color: var(--ink-900); }
.brand-word .ai, .intro-letter.ai, .measure .ai { font-weight: 300; color: var(--ink-500); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
.nav a { font-size: 13px; font-weight: 600; color: var(--ink-600); text-decoration: none; }
.nav a:hover { color: var(--ink-900); }
@media (max-width: 820px) { .nav { display: none; } .topbar-inner { justify-content: space-between; } }

/* --- intro: σύνεσις → SYNESO ------------------------------------------ */
.intro {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--canvas); color: var(--ink-900); overflow: hidden;
}
.intro[hidden] { display: none; }
.intro-rule { position: absolute; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--gold-700); opacity: .35; transform: scaleX(0); transform-origin: center; }
.intro-rule.top { top: 22vh; }
.intro-rule.bottom { bottom: 22vh; }
.intro-kicker { position: absolute; top: calc(22vh - 34px); left: 0; right: 0; text-align: center; font: 600 11px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-600); opacity: 0; }
.intro-stage { position: relative; width: min(1100px, 100vw - 2 * var(--gutter)); height: 220px; }
.intro-letter { position: absolute; left: 0; top: 0; white-space: pre; line-height: 1; will-change: transform, opacity; backface-visibility: hidden; transform-origin: 50% 60%; }
.intro-letter .strike { position: absolute; left: -8%; right: -8%; top: 52%; height: 2px; background: var(--gold-500); transform: rotate(-58deg) scaleX(0); transform-origin: center; }
.intro-caption { position: absolute; left: 0; right: 0; bottom: calc(22vh + 26px); text-align: center; min-height: 3.2em; }
.intro-caption p { margin: 0; }
.intro-caption .cap-a { font: 600 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-600); }
.intro-caption .cap-b { margin-top: 6px; font: italic 400 clamp(17px, 2vw, 22px)/1.3 var(--editorial); color: var(--ink-700); }
.intro-tagline { position: absolute; left: 0; right: 0; bottom: calc(22vh - 40px); text-align: center; font: 600 12px/1 var(--sans); letter-spacing: .48em; text-transform: uppercase; color: var(--ink-800); }
.intro-tagline span { display: inline-block; opacity: 0; transform: translateY(8px); }
.intro-skip { position: absolute; right: var(--gutter); bottom: 28px; background: none; border: 0; padding: 8px 4px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); cursor: pointer; }
.intro-skip:hover { color: var(--ink-900); }
.measure { position: absolute; visibility: hidden; pointer-events: none; white-space: pre; left: 0; top: 0; }
.w-greek { font: italic 400 clamp(64px, 11vw, 150px)/1 var(--greek); letter-spacing: .01em; }
.w-serif { font: 400 clamp(46px, 8.2vw, 112px)/1 var(--title); letter-spacing: .04em; }
.w-sans { font: 700 clamp(56px, 10vw, 136px)/1 var(--sans); letter-spacing: .015em; }

/* --- hero -------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; isolation: isolate; }
.hero-graph { position: absolute; inset: -40px 0 auto; height: 620px; width: 100%; z-index: -1; pointer-events: none; }
.hero-graph line { stroke: var(--line-strong); stroke-width: 1; }
.hero-graph circle { fill: var(--paper); stroke: var(--line-strong); }
.hero-graph circle.gold { fill: var(--gold-500); stroke: none; }
.hero .h-display { max-width: 13ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-500); }
.window { margin: clamp(44px, 6vw, 72px) auto 0; max-width: 1080px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px -40px rgba(40, 32, 18, .35); }
.window-bar { display: flex; gap: 7px; align-items: center; height: 36px; padding: 0 14px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window img { width: 100%; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-600); }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg { width: 15px; height: 15px; color: var(--gold-700); }

/* --- sections ----------------------------------------------------------- */
.section { padding: clamp(76px, 11vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0; margin-bottom: clamp(36px, 5vw, 60px); }

/* method: three steps with an image that stays fixed while scrolling */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.method-steps { display: grid; gap: 0; }
.method-step { padding: 30px 0 30px 26px; border-left: 1px solid var(--line); position: relative; transition: border-color .3s; min-height: 44vh; display: flex; flex-direction: column; justify-content: center; }
.method-step::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color .3s, transform .3s var(--ease-out); }
.method-step[data-active] { border-left-color: var(--ink-900); }
.method-step[data-active]::before { background: var(--gold-500); transform: scale(1.5); }
.method-step .num { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--gold-800); }
.method-step h3 { margin: 10px 0 0; font: 400 32px/1.1 var(--title); color: var(--ink-900); }
.method-step p { margin: 12px 0 0; color: var(--ink-600); max-width: 46ch; }
.method-visual { position: sticky; top: 110px; aspect-ratio: 4 / 3.2; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.method-visual figure { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.method-visual figure[data-active] { opacity: 1; transform: none; }
.method-visual img { max-height: 100%; width: auto; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 880px) {
  .method { grid-template-columns: 1fr; }
  .method-visual { display: none; }
  .method-step { min-height: 0; }
  .method-step .inline-shot { display: block; margin-top: 18px; border-radius: 10px; border: 1px solid var(--line); }
}
@media (min-width: 881px) { .method-step .inline-shot { display: none; } }

/* --- features: each card takes an image or a short video ------------------ */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; transition: border-color .2s, transform .35s var(--ease-out); }
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature-card .media { margin: 0; aspect-ratio: 16 / 10; background: var(--sunken); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.feature-card .media img, .feature-card .media video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease-out); }
.feature-card:hover .media img, .feature-card:hover .media video { transform: scale(1.025); }
.feature-card h3 { margin: 20px 22px 0; font: 600 16px/1.3 var(--sans); color: var(--ink-900); }
.feature-card p { margin: 8px 22px 22px; font-size: 14px; color: var(--ink-600); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-600); }
@media (max-width: 860px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { border-top: 2px solid var(--gold-500); padding-top: 12px; }
.feature-list b { color: var(--ink-900); }

/* --- privacy (dark section) ------------------------------------------ */
.privacy { background: #141414; color: #D3CCBE; }
.privacy .h-section, .privacy h3 { color: #F4F1EA; }
.privacy .eyebrow { color: #D4A848; }
.privacy .lead { color: #B8B0A1; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 880px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy ul { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.privacy li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; }
.privacy li svg { width: 18px; height: 18px; color: #D4A848; margin-top: 4px; }
.privacy li b { color: #F4F1EA; font-weight: 600; }
.privacy .fine { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2E2B26; font-size: 13px; color: #A39B8C; }
.privacy .window { border-color: #2E2B26; box-shadow: none; }
.privacy .window-bar { background: #1C1A17; border-color: #2E2B26; }
.privacy .window-bar i { background: #3A362F; }

/* --- pricing -------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: border-color .2s, transform .35s var(--ease-out); }
.plan:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.plan[data-featured] { border-color: var(--ink-900); }
.plan .tag { align-self: flex-start; margin-bottom: 16px; padding: 5px 10px; border-radius: 99px; background: var(--gold-100); color: var(--gold-800); font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.plan h3 { margin: 0; font: 600 17px/1.3 var(--sans); color: var(--ink-900); }
.plan .price { margin: 14px 0 0; font: 400 52px/1 var(--title); color: var(--ink-900); }
.plan .price small { font: 500 14px/1 var(--sans); color: var(--ink-500); margin-left: 4px; }
.plan .note { margin: 10px 0 0; font-size: 14px; color: var(--ink-600); }
.plan ul { display: grid; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; font-size: 14px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; }
.plan li svg { width: 15px; height: 15px; color: var(--gold-700); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.how-buy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
@media (max-width: 860px) { .how-buy { grid-template-columns: 1fr; } }
.how-buy div { border-top: 2px solid var(--gold-500); padding-top: 14px; }
.how-buy h3 { margin: 0; font: 600 15px/1.3 var(--sans); color: var(--ink-900); }
.how-buy p { margin: 6px 0 0; font-size: 14px; color: var(--ink-600); }
.fineprint { margin: 22px 0 0; font-size: 13px; color: var(--ink-500); }

/* --- download, FAQ, closing, footer ---------------------------- */
.download { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; } }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.faq { margin-top: 10px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--gold-700), var(--gold-700)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold-700), var(--gold-700)) center / 1.5px 12px no-repeat; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 22px; max-width: 72ch; color: var(--ink-600); }
.closing { text-align: center; }
.closing .h-section { margin-inline: auto; }
.closing .lead { margin-inline: auto; }
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-500); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }
.footer button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-size: 13px; }
.footer button:hover { color: var(--ink-900); text-decoration: underline; }

/* --- reveal on scroll ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal[data-in] { opacity: 1; transform: none; }
.d-1 { --d: 80ms; } .d-2 { --d: 160ms; } .d-3 { --d: 240ms; } .d-4 { --d: 320ms; } .d-5 { --d: 400ms; }
.mt-sm { margin-top: 10px; } .mt-md { margin-top: 14px; }
.no-js .reveal { opacity: 1; transform: none; }

/* --- inner pages (account, legal) --------------------------------- */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page .h-section { max-width: none; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 6px; font: 600 17px/1.3 var(--sans); color: var(--ink-900); }
.panel p { margin: 0 0 10px; color: var(--ink-600); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; font-size: 14px; }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; color: var(--ink-900); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font: 600 11px/1.4 var(--sans); background: var(--sunken); color: var(--ink-700); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.gold { background: var(--gold-100); color: var(--gold-800); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.notice { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--sunken); font-size: 14px; color: var(--ink-700); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); color: var(--ok); }
.notice.err { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); color: var(--danger); }
.keybox { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.keybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--canvas); font: 12px/1.5 var(--mono); color: var(--ink-800); max-height: 7.5em; overflow: auto; }
.text-input { width: 100%; max-width: 360px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); color: var(--ink-900); font: 15px/1.3 var(--sans); }
.code-input { width: 100%; max-width: 280px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink-900); font: 600 24px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; text-align: center; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 4px 0 16px; font-size: 14px; color: var(--ink-700); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink-900); }
.legal { max-width: 74ch; }
.legal h2 { margin: 36px 0 8px; font: 600 18px/1.3 var(--sans); color: var(--ink-900); }
.legal p, .legal li { color: var(--ink-700); }
.draft { margin: 0 0 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
