/* ==========================================================================
   Nesio — website. Deep pine, ivory and one amber light.
   The tokens are those of the application (frontend/src/app/globals.css and
   DESIGN.md): paper, graphite, hairlines, one copper. Someone who downloads
   after reading here must not get the impression of opening a different
   product.
   ========================================================================== */

@font-face { font-family: "Syne"; src: url("../font/syne-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@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: "Newsreader"; src: url("../font/newsreader-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 400 600; font-display: swap; }

:root {
  /* Nesio: ivory paper, deep-green ink, one amber light (names are historical). */
  --canvas: #F4F1E6;
  --paper: #FBF9F2;
  --sunken: #EBE6D6;
  --ink-900: #0B1F1A;
  --ink-800: #163029;
  --ink-700: #243F38;
  --ink-600: #37534C;
  --ink-500: #4B665F;
  --ink-400: #7D8F89;
  --stone: #AAB5AE;
  --line: #DDD7C5;
  --line-strong: #C9C0A9;
  --copper-100: #F7EBCF;
  --copper-200: #EED7A6;
  --copper-500: #D8992E;
  --copper-700: #A8700F;
  --copper-800: #7C520B;
  --ok: #1F4D44;
  --ok-soft: #DDE8E3;
  --danger: #8F2F2A;
  --danger-soft: #F3E0DB;
  --on-ink: #F4F1E6;

  /* The scene: the deep-green ground, the same in both themes. */
  --g-900: #071411;
  --g-800: #0B1F1A;
  --g-700: #12291F;
  --g-600: #1F4D44;
  --g-text: #CFCBBD;
  --g-soft: #B9B7AA;

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

  --radius: 10px;
  --radius-control: 8px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0C1B17; --paper: #13271F; --sunken: #091512;
    --ink-900: #EEE9DA; --ink-800: #DCD8CA; --ink-700: #C3C1B4; --ink-600: #A5A89C; --ink-500: #8E938A; --ink-400: #67716B;
    --line: #1F372F; --line-strong: #2C483C;
    --copper-100: #2B2413; --copper-200: #3D3218; --copper-500: #E0A640; --copper-700: #E8B65C; --copper-800: #F0C97E;
    --ok: #8CC2AE; --ok-soft: #142A22; --danger: #E08A80; --danger-soft: #2E1A18; --on-ink: #071411;
    --g-900: #040C0A; --g-800: #071411; --g-700: #0C1D18; --g-600: #1F4D44;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Italian is written before the first paint (assets/lang.js): until then the
   page is laid out but hidden, on its own background, never white. */
html.lang-pending body { visibility: hidden; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-color: var(--line-strong) transparent; accent-color: var(--copper-700); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--ink-700);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; caret-color: var(--copper-700);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-700); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--copper-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; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* --- typography -------------------------------------------------------- */
.h-display { margin: 0; font: 600 clamp(46px, 6.4vw, 100px)/.95 var(--display); letter-spacing: -.035em; color: var(--ink-900); }
.h-section { margin: 0; font: 600 clamp(32px, 4.6vw, 64px)/1.02 var(--display); letter-spacing: -.03em; color: var(--ink-900); text-wrap: balance; max-width: 20ch; }
.h-section .soft { color: var(--ink-400); }
.lead { margin: 22px 0 0; max-width: 58ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-600); text-wrap: pretty; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --- actions: one primary per screen ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; 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);
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.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: transparent; border-color: var(--line-strong); color: var(--ink-800); }
.btn-secondary:hover { background: var(--paper); border-color: var(--ink-400); }
.btn-copper { background: #C98A63; color: #1A1C1B; }
.btn-copper:hover { background: #D49A74; }
.btn-tertiary { background: none; padding-inline: 4px; color: var(--ink-600); }
.btn-tertiary:hover { color: var(--ink-900); text-decoration: underline; }
.btn-danger { background: var(--danger, #9b2c2c); border-color: transparent; color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .text-input { flex: 1 1 260px; }
.text-input-small { padding-block: 4px; font-size: 0.8125rem; max-width: 220px; }
.btn-small { min-height: 38px; padding: 9px 16px; font-size: 13px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.link-quiet { font-size: 13px; font-weight: 600; color: var(--ink-600); text-decoration: none; }
.link-quiet:hover { color: var(--ink-900); }

/* --- header ------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--canvas); 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: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-900); }
/* The lockup: the large S of the mark is the first letter, the rest of the
   name continues from it at cap height. Never the mark plus a second S. */
.brand-word { display: inline-flex; align-items: center; gap: .17em; font: 600 15px/1 var(--display); letter-spacing: .02em; }
.brand-word .s { width: 2.3em; height: 2.3em; margin-right: -.02em; }
.brand-word .s svg { width: 100%; height: 100%; }
.brand-word .o { width: 1.6em; height: .98em; }
.brand-name { font: 600 17px/1 var(--display); letter-spacing: -.01em; margin-left: .25em; }
.brand-word .o svg { width: 100%; height: 100%; overflow: visible; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.nav a { font-size: 13px; font-weight: 600; color: var(--ink-600); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--ink-900); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
@media (max-width: 900px) { .nav { display: none; } .topbar-actions { margin-left: auto; } }
@media (max-width: 420px) { .link-quiet { display: none; } }

/* --- the name, on scroll: σύνεσις → NESIO ------------------------- */
.story { position: relative; }
.story-stage { position: relative; min-height: calc(100svh - 72px); display: grid; justify-items: center; align-content: center; gap: clamp(20px, 3.4vh, 36px); padding: 40px var(--gutter) 72px; text-align: center; overflow: clip; }
.story-word { position: relative; z-index: 1; }
/* The caption sits just above the word it explains, never on it. */
.lockup { display: inline-flex; align-items: center; gap: .13em; font: 600 clamp(40px, 9.2vw, 148px)/1 var(--display); letter-spacing: .01em; color: var(--ink-900); }
.lockup .l-s { width: 2em; height: 2em; margin-right: -.04em; }
.lockup .l-s svg { width: 100%; height: 100%; }
.lockup .l-o { width: .98em; height: .98em; margin-left: .04em; }
.lockup .l-s svg, .brand-word .s svg { overflow: visible; }
.loop-svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 17; stroke-linecap: round; }
.story-end { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.story-tagline { margin: 0; font: 600 clamp(20px, 2.5vw, 32px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink-800); }
.story-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.story-note { margin: 0; font-size: 14px; color: var(--ink-500); }
.story-caption, .story-cue, .story-paths { display: none; }
/* With motion the stage is a scene: caption above, cue below, paths behind. */
.js-story .story-stage { height: 100svh; min-height: 0; padding-top: 72px; }
.js-story .story-caption { display: grid; position: absolute; bottom: calc(100% + 6px); left: 50%; width: max-content; max-width: 90vw; transform: translateX(-50%); margin: 0; font: 500 13px/1.4 var(--mono); color: var(--ink-500); }
.js-story .story-caption .cap { grid-area: 1 / 1; }
.js-story .story-caption .cap + .cap { opacity: 0; }
.story-caption b { font-weight: 500; color: var(--copper-800); }
.js-story .story-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; bottom: 28px; left: 0; right: 0; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-500); }
.story-cue span { width: 1px; height: 36px; background: linear-gradient(var(--copper-500), transparent); transform-origin: top; animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.js-story .story-paths { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.story-paths path { fill: none; stroke-linecap: round; }
.story-paths .sp-a { stroke: var(--copper-500); stroke-width: 2; }
.story-paths .sp-b { stroke: #1F4D44; stroke-width: 2; }
.actor { position: absolute; left: 0; top: 0; z-index: 2; white-space: pre; line-height: 1; pointer-events: none; will-change: transform, opacity; color: var(--ink-900); }
.actor.greek { font-family: var(--greek); font-style: italic; font-weight: 400; }
.actor.latin { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .story-paths .sp-b { stroke: #6E8F8D; } }

/* --- the product ---------------------------------------------------------- */
.product { padding: 0 0 clamp(80px, 11vw, 150px); }
.window { margin: 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 50px 100px -60px rgba(26, 28, 27, .6), 0 2px 6px -2px rgba(26, 28, 27, .12); }
.window-bar { display: flex; gap: 7px; align-items: center; height: 34px; 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-bar span { margin-left: auto; margin-right: auto; padding-right: 44px; font: 500 11px/1 var(--mono); color: var(--ink-500); }
.window img { width: 100%; }
.product-window { max-width: 1120px; margin-inline: auto; transform-origin: 50% 0; }
.product-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-600); }
.product-facts li { display: inline-flex; align-items: center; gap: 10px; }
.product-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper-500); }
.product-facts b { color: var(--ink-900); font-weight: 600; }

/* --- sections ------------------------------------------------------------ */
.method, .pricing-section, .faq-section { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }

/* method: three stages pinned while the two paths converge */
.method-text .h-section { margin-bottom: clamp(32px, 5vw, 56px); }
.method-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.step-tag { margin: 0 0 10px; font: 500 13px/1 var(--mono); color: var(--copper-800); }
.step h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink-900); }
.step p:not(.step-tag) { margin: 12px 0 0; color: var(--ink-600); max-width: 44ch; }
.inline-shot { margin-top: 18px; border-radius: 8px; border: 1px solid var(--line); }
.method-frames { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 80px -56px rgba(26, 28, 27, .5); }
.method-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.method-frames img + img { opacity: 0; }
.method-paths { width: 100%; height: 44px; margin-top: 22px; overflow: visible; }
.method-paths path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.method-paths .m-a { stroke: var(--copper-500); }
.method-paths .m-b { stroke: var(--stone); }
.method-paths .m-c { stroke: var(--copper-500); stroke-width: 2.5; }
.method-progress { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 0; padding: 0; font: 500 12px/1 var(--mono); color: var(--ink-500); }
.method-progress li { transition: color .3s; }
.method-progress li:nth-child(2) { text-align: center; }
.method-progress li:nth-child(3) { text-align: right; }
.method-progress li[data-active] { color: var(--copper-800); }
@media (min-width: 981px) { .inline-shot { display: none; } }
@media (max-width: 980px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-visual { display: none; }
}
/* Desktop with motion: the steps share one place and the stage is pinned. */
.js-pin .method-steps { display: grid; gap: 0; }
.js-pin .method-steps .step { grid-area: 1 / 1; align-self: center; }
.js-pin .method-steps .step + .step { opacity: 0; visibility: hidden; }

/* local-first: a graphite section, the architecture drawn */
.local { padding: clamp(80px, 11vw, 150px) 0; background: var(--g-800); color: var(--g-text); }
.local .h-section { color: #F4F1E6; }
.local .lead { color: var(--g-soft); }
.arch { display: grid; grid-template-columns: minmax(0, 4fr) minmax(80px, 3fr) minmax(0, 4fr); align-items: stretch; margin-top: clamp(40px, 6vw, 72px); }
.arch-box { border: 1px solid var(--g-600); border-radius: 10px; padding: 22px 24px; background: var(--g-700); }
.arch-title { margin: 0 0 12px; font: 600 18px/1.2 var(--display); color: #F4F1E6; }
.arch-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; }
.arch-box ul li { display: flex; gap: 10px; align-items: baseline; }
.arch-box ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #D8992E; transform: translateY(-2px); }
.arch-box p { margin: 0; font-size: 15px; }
.arch-home { border-color: #8E5537; }
.arch-right { display: grid; gap: 18px; grid-template-rows: 1fr auto; }
.arch-box .arch-what { margin-top: 10px; font: 500 13px/1.4 var(--mono); color: #E2B293; }
.arch-server .arch-what { color: var(--g-soft); }
.arch-lines { width: 100%; height: 100%; overflow: visible; }
.arch-lines path { fill: none; vector-effect: non-scaling-stroke; }
.arch-out { stroke: #D8992E; stroke-width: 2; }
.arch-lic { stroke: #6C6A65; stroke-width: 1.5; stroke-dasharray: 4 6; }
.arch-packet { fill: #E2B293; }
.local .fine { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--g-700); font-size: 14px; color: var(--g-soft); max-width: 80ch; }
@media (max-width: 860px) {
  .arch { grid-template-columns: 1fr; gap: 16px; }
  .arch-lines { display: none; }
}

/* pricing: three columns on one ruled line */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-strong); }
.plan { display: flex; flex-direction: column; padding: 32px clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { margin: 0; font: 600 18px/1.2 var(--display); color: var(--ink-900); }
.plan .price { margin: 18px 0 0; font: 600 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; color: var(--ink-900); }
.plan .price small { font: 500 14px/1 var(--sans); letter-spacing: 0; color: var(--ink-500); margin-left: 6px; }
.plan ul { display: grid; gap: 10px; margin: 24px 0 28px; padding: 0; list-style: none; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 10px; height: 1.5px; background: var(--copper-500); transform: translateY(-4px); }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--g-800); color: var(--g-text); border-radius: 10px; border-bottom-color: transparent; }
.plan-featured h3, .plan-featured .price { color: #F4F1E6; }
.plan-featured .price small, .plan-featured .note { color: var(--g-soft); }
.plan-featured li::before { background: #C98A63; }
.plan-featured, .plan-featured + .plan { border-left: 0; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; }
  .plan .note { min-height: 0; }
}
.fineprint { margin: 28px 0 0; font-size: 14px; color: var(--ink-500); }

/* download */
.download { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.download-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.download-mark { width: clamp(72px, 9vw, 120px); color: var(--ink-900); }
.download-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) { .download-inner { grid-template-columns: 1fr; } .download-actions { flex-direction: row; flex-wrap: wrap; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; list-style: none; font: 600 17px/1.35 var(--display); letter-spacing: -.01em; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--copper-700), var(--copper-700)) center / 12px 1.5px no-repeat, linear-gradient(var(--copper-700), var(--copper-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 24px; max-width: 68ch; color: var(--ink-600); }

/* footer: graphite, the wordmark across the page */
.footer { padding: clamp(64px, 8vw, 104px) 0 36px; background: var(--g-900); color: var(--g-soft); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.footer-tagline { margin: 0; font: 600 clamp(28px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -.03em; color: #F4F1E6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols p { margin: 0 0 14px; font: 500 12px/1 var(--mono); color: #C98A63; }
.footer-cols a { display: block; padding: 5px 0; color: var(--g-text); text-decoration: none; }
.footer-cols a:hover { color: #F4F1E6; text-decoration: underline; }
.footer-word { display: block; width: 100%; max-width: 640px; margin: clamp(56px, 8vw, 104px) 0 28px; color: #F4F1E6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid #2F3331; font-size: 13px; }
.footer-bottom button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-size: 13px; }
.footer-bottom button:hover { color: #F4F1E6; text-decoration: underline; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Inner pages keep a compact footer. */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
.footer-inner a { color: var(--g-text); text-decoration: none; }
.footer-inner a:hover { color: #F4F1E6; text-decoration: underline; }
.page + .footer { padding: 36px 0 44px; }


/* --- the cookie choice: a card, bottom right, until the visitor chooses ---- */
.consent-card { position: fixed; right: 24px; bottom: 24px; z-index: 95; width: 360px; max-width: calc(100vw - 32px); padding: 22px 22px 18px; display: grid; gap: 14px; background: var(--paper); color: var(--ink-700); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(26, 28, 27, .55), 0 4px 14px -6px rgba(26, 28, 27, .18); font: 400 14px/1.55 var(--sans); animation: consent-in .5s var(--ease-out) both; }
.consent-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, #1F4D44, #D8992E 55%, #F3DDA9); }
.consent-head { display: flex; align-items: center; gap: 10px; }
.consent-mark { width: 30px; height: 30px; flex: none; color: var(--ink-900); }
.consent-card .consent-title { margin: 0; font: 600 17px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink-900); }
.consent-card .consent-body { margin: 0; color: var(--ink-600); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn { min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink-900); font: 600 14px/1 var(--sans); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.consent-btn:hover { background: var(--ink-900); border-color: var(--ink-900); color: var(--on-ink); }
.consent-actions.single { grid-template-columns: 1fr; }
.consent-primary { background: var(--ink-900); border-color: var(--ink-900); color: var(--on-ink); }
.consent-primary:hover { background: var(--ink-800); border-color: var(--ink-800); }
.consent-status { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-600); }
.consent-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ink-400); }
.consent-dot.on { background: var(--ok); }
.consent-links { margin: 0; display: flex; gap: 16px; font-size: 13px; }
.consent-links a { color: var(--copper-800); }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .consent-card { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .consent-card { animation: none; } }
.consent-gate .btn + .btn { margin-left: 8px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-button:hover { color: #F4F1E6; text-decoration: underline; }
.footer-cols .footer-link { display: block; padding: 5px 0; color: var(--g-text); text-align: left; font-size: 14px; }
.footer-inner .link-button { color: var(--g-text); font-size: 14px; }
.link-button.inline-link { color: var(--copper-800); text-decoration: underline; }
.link-button.inline-link:hover { color: var(--ink-900); }

/* --- inner pages (account, legal) --------------------------------------- */
.page { padding: clamp(48px, 8vw, 104px) 0; }
.page .h-section { max-width: none; }
.page .h-section + .lead, .page .h-section + .legal { margin-top: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 18px; }
.grid-2 > .panel + .panel { margin-top: 0; }
.panel h2 { margin: 0 0 6px; font: 600 18px/1.3 var(--display); 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: 500 12px/1 var(--mono); color: var(--ink-500); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.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, .badge.copper { background: var(--copper-100); color: var(--copper-800); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.notice { padding: 12px 16px; border-radius: 8px; 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: 8px; 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: 8px; background: var(--paper); color: var(--ink-900); font: 15px/1.3 var(--sans); }
.text-input:focus, .code-input:focus { border-color: var(--copper-700); outline: none; box-shadow: 0 0 0 3px var(--copper-100); }
.code-input { width: 100%; max-width: 280px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; 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(--copper-700); }
.legal { max-width: 74ch; }
.legal h2 { margin: 40px 0 10px; font: 600 20px/1.3 var(--display); color: var(--ink-900); }
.legal p, .legal li { color: var(--ink-700); }
.draft { margin: 0 0 28px; }
.mt-sm { margin-top: 10px; } .mt-md { margin-top: 14px; }

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


/* ==========================================================================
   Landing: the promise under the name, the waitlist, the language switch
   ========================================================================== */

/* language switch: two letters, the current one filled */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch button { min-width: 34px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: none; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-500); cursor: pointer; transition: background-color .18s, color .18s; }
.lang-switch button:hover { color: var(--ink-900); }
.lang-switch button[aria-pressed="true"] { background: var(--ink-900); color: var(--on-ink); }
@media (max-width: 560px) { .topbar-actions .btn-small { padding-inline: 12px; } }
@media (max-width: 400px) { .topbar-inner { gap: 12px; } .topbar-actions { gap: 10px; } }

/* the promise under the name */
.story-title { margin: 0; max-width: 30ch; font: 600 clamp(26px, 3.2vw, 44px)/1.06 var(--display); letter-spacing: -.025em; color: var(--ink-900); text-wrap: balance; }
.story-sub { margin: -6px 0 0; max-width: 60ch; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; color: var(--ink-600); text-wrap: pretty; }
.story-end { gap: 18px; }
.story-cue b { font-weight: 500; }
/* The name sits smaller when the promise and the form share its screen. */
.lockup { font-size: clamp(36px, min(8vw, 11.5svh), 132px); }

/* the waitlist form */
.wl-form { width: min(520px, 100%); display: grid; gap: 10px; text-align: left; }
.wl-label { font: 600 13px/1 var(--sans); color: var(--ink-700); }
.wl-row { display: flex; gap: 8px; }
.wl-input { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--paper); color: var(--ink-900); font: 16px/1.3 var(--sans); transition: border-color .18s, box-shadow .18s; }
.wl-input::placeholder { color: var(--ink-400); }
.wl-input:focus { outline: none; border-color: var(--copper-700); box-shadow: 0 0 0 3px var(--copper-100); }
.wl-input[aria-invalid="true"] { border-color: var(--danger); }
.wl-submit { min-height: 50px; flex: none; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--ink-500); cursor: pointer; }
.wl-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--copper-700); }
.wl-consent a { color: var(--copper-800); }
.wl-msg { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--ink-600); }
.wl-msg[data-error] { color: var(--danger); }
@media (max-width: 560px) {
  .wl-row { flex-direction: column; }
  .wl-submit { width: 100%; }
}

/* sent: a drawn tick, the next step, and a way to pass it on */
.wl-done { width: min(520px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center; outline: none; }
.wl-check { width: 48px; height: 48px; fill: none; stroke: var(--copper-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wl-check circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: wl-draw .6s var(--ease-out) forwards; }
.wl-check path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: wl-draw .4s .45s var(--ease-out) forwards; }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }
.wl-done-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-700); }
.wl-done-text b { color: var(--ink-900); overflow-wrap: anywhere; }
.wl-share { display: grid; justify-items: center; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.wl-share-title { margin: 0; font: 600 15px/1.3 var(--display); color: var(--ink-900); }
.wl-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* the notice that answers an email link */
.toast { position: fixed; top: 84px; left: 50%; z-index: 60; display: flex; align-items: center; gap: 12px; width: min(560px, calc(100% - 32px)); padding: 14px 14px 14px 18px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-left: 3px solid var(--copper-500); border-radius: 12px; background: var(--paper); box-shadow: 0 24px 60px -30px rgba(11, 31, 26, .5); animation: toast-in .45s var(--ease-out) both; }
.toast[data-kind="ok"] { border-left-color: var(--ok); }
.toast-text { flex: 1; margin: 0; font-size: 15px; color: var(--ink-800); }
.toast-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--ink-500); cursor: pointer; }
.toast-close:hover { background: var(--sunken); color: var(--ink-900); }
.toast-close svg { width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* the waitlist section: graphite, the mark lit, the form in copper */
.waitlist { padding: clamp(88px, 12vw, 160px) 0; background: var(--g-900); color: var(--g-text); overflow: clip; }
.waitlist-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.waitlist-mark { width: min(100%, 420px); justify-self: center; filter: drop-shadow(0 30px 80px rgba(216, 153, 46, .25)); }
.waitlist .h-section { color: #F4F1E6; }
.waitlist .lead { color: var(--g-soft); margin-bottom: 28px; }
.wl-form-dark .wl-label { color: #E9E4D3; }
.wl-form-dark .wl-input { background: var(--g-800); border-color: #2C483C; color: #F4F1E6; }
.wl-form-dark .wl-input::placeholder { color: #7D8F89; }
.wl-form-dark .wl-input:focus { border-color: #D8992E; box-shadow: 0 0 0 3px rgba(216, 153, 46, .22); }
.wl-form-dark .wl-consent { color: var(--g-soft); }
.wl-form-dark .wl-consent a { color: #E8B65C; }
.wl-form-dark .wl-msg { color: var(--g-soft); }
.wl-form-dark .wl-msg[data-error] { color: #F0A79E; }
.waitlist .wl-done { justify-items: start; text-align: left; }
.waitlist .wl-done-text { color: var(--g-text); }
.waitlist .wl-done-text b { color: #F4F1E6; }
.waitlist .wl-check { stroke: #E8B65C; }
.waitlist .wl-share { border-top-color: #1F372F; justify-items: start; }
.waitlist .wl-share-title { color: #F4F1E6; }
.waitlist .wl-share-row { justify-content: flex-start; }
.waitlist .btn-secondary { color: #F4F1E6; border-color: #2C483C; }
.waitlist .btn-secondary:hover { background: var(--g-800); border-color: #6E8F8D; }
.waitlist-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; font: 500 13px/1.4 var(--mono); color: #C9C0A9; }
.waitlist-facts li { display: inline-flex; align-items: center; gap: 8px; }
.waitlist-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D8992E; }
@media (max-width: 860px) {
  .waitlist-inner { grid-template-columns: 1fr; }
  .waitlist-mark { width: 120px; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .wl-check circle, .wl-check path { animation: none; stroke-dashoffset: 0; } .toast { animation: none; } }

/* The promise and the form are on the first screen from the start; the name
   plays above them as the page scrolls, so no cue is needed. */
.js-story .story-cue { display: none; }

/* A translated text holds the room of the longer language (assets/lang.js). */
.i18n-stack { display: grid; }
.i18n-stack.i18n-inline { display: inline-grid; }
.i18n-stack > span { grid-area: 1 / 1; }
.i18n-ghost { visibility: hidden; pointer-events: none; user-select: none; }
/* In a button the shorter language sits centred in the room of the longer one. */
.btn .i18n-stack { text-align: center; }
