/* Fonts, self-hosted (latin subsets, OFL): Inter variable 400–700, JetBrains Mono 400–500 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format('woff2'); }

/* Nemo landing page. Light editorial page with dark "windows". Tokens from tokens.css (brand style guide v1.0). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font-family: var(--font-sans); font-size: var(--t-body-lg); line-height: var(--lh-body-lg); letter-spacing: var(--ls-body-lg);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
img { display: block; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 761px) { .wrap { padding: 0 56px; } } /* room for the depth gauge's reading in the left gutter */
@media (max-width: 600px) { .wrap { padding: 0 var(--s-4); } }

/* Header: sticky, full-bleed bar, contents held in the container (after the style guide's .top) */
html { scroll-padding-top: 52px; }
.top {
  position: sticky; top: 0; z-index: 10; height: 52px;
  background: color-mix(in srgb, var(--bg) 95%, transparent); /* no backdrop blur: it re-blurs every frame the hero 3D renders under it */
  border-bottom: 1px solid var(--border);
}
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.logo img { height: 18px; width: auto; }
.top-left { display: flex; align-items: center; gap: var(--s-6); height: 100%; }
.top-nav { display: flex; gap: var(--s-5); height: 100%; }
.top-nav a {
  display: inline-flex; align-items: center; height: 100%; position: relative;
  font-size: var(--t-ui); font-weight: var(--w-medium); color: var(--text-2); text-decoration: none; transition: color var(--dur-fast) var(--ease);
}
.top-nav a:hover { color: var(--text-1); }
.top-nav a[aria-current="page"] { color: var(--text-1); }
.top-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text-1); }
.top-nav a:focus-visible, .top-cta:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
.top-cta {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-ui); font-weight: var(--w-medium); color: var(--text-2);
  text-decoration: none; padding: 6px 2px; transition: color var(--dur-fast) var(--ease);
}
.top-cta:hover { color: var(--text-1); }
@media (max-width: 600px) { .top-left { gap: var(--s-4); } .top-nav { gap: var(--s-4); } .top-cta span, .top-cta { font-size: 0; gap: 0; } .top-cta svg { width: 18px; height: 18px; } }

/* Depth gauge: a slim dashed ruler in the left gutter; the marker sinks (and the reading grows) as you scroll.
   It lives inside the container's 24 px side padding, so it never overlaps content. */
.depth { position: fixed; left: 5px; top: 76px; bottom: 28px; width: 17px; z-index: 5; pointer-events: none; }
.depth-ticks {
  position: absolute; inset: 0; opacity: .8;
  background:
    repeating-linear-gradient(180deg, var(--border-strong) 0 1.2px, transparent 1.2px 57.6px) left top / 14.4px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--border-strong) 0 1.2px, transparent 1.2px 9.6px) left top / 7.2px 100% no-repeat;
}
.depth-mark { position: absolute; left: 0; right: 0; top: 0; height: 0; will-change: transform; }
.depth-mark::before { content: ""; position: absolute; left: 0; top: -1.2px; width: 17px; height: 2.4px; border-radius: 1px; background: #0F3E6D; }
.depth-val {
  position: absolute; left: 0; top: 8px;
  font-size: 13px; line-height: 16px; color: #0F3E6D; background: var(--bg); padding: 2px 4px 2px 0; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.depth-mark.flip .depth-val { top: auto; bottom: 8px; } /* reading sits below the marker, above it past halfway */
@media (max-width: 760px) { .depth { display: none; } }

/* Type */
h1, h2 { margin: 0; font-weight: var(--w-medium); color: var(--text-1); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.copy { max-width: 640px; }
.copy p { color: var(--text-2); margin: var(--s-4) 0 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
/* Section eyebrows: the one exception to sentence case, so they hold their own above big headings */
.eyebrow {
  display: inline-block; margin-bottom: var(--s-4);
  font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-semibold); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}

/* Sections */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero .copy { max-width: 760px; }
.band { padding-top: clamp(96px, 14vw, 176px); }
.copy + .window { margin-top: clamp(32px, 4vw, 48px); }

/* Windows: the dark underwater frames */
.window {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 16 / 9; background: #06121c; isolation: isolate;
}
.window > canvas, .window > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 700px) { .window { aspect-ratio: 4 / 5; } #decideWin { aspect-ratio: 4 / 3; } }
.window-hero { aspect-ratio: 16 / 8; cursor: grab; }
.window-hero.grabbing { cursor: grabbing; }
@media (max-width: 700px) { .window-hero { aspect-ratio: 4 / 5; } }
.explode-btn { position: absolute; top: var(--s-4); right: var(--s-4); z-index: 2; gap: 6px; }
.btn.btn-tool { height: var(--h-control); padding: 0 10px; font-size: var(--t-ui); background: var(--bg); color: var(--text-1); border-color: var(--border); }
.btn.btn-tool:hover { border-color: var(--border-strong); }
.btn.btn-tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.window.light { background: var(--surface-1); border: 1px solid var(--border); }

.loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: var(--t-caption); color: var(--text-3); }
.window[data-theme="dark"] .loading { color: rgba(241,239,232,.5); }

/* Chips + legends inside windows */
.legend { position: absolute; left: 4%; bottom: 5%; display: flex; gap: var(--s-2); flex-wrap: wrap; z-index: 3; }
.legend-top { top: 5%; bottom: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: var(--r-sm);
  background: rgba(5, 13, 22, 0.72); border: 1px solid rgba(241, 239, 232, 0.12); color: var(--text-1);
  font-size: var(--t-caption); line-height: 1; white-space: nowrap;
}
.chip.mono { font-size: 12px; }
.chip.goal { color: var(--lens-light); border-color: rgba(133,183,235,.35); transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.window.light .chip { background: var(--bg); border-color: var(--border); color: var(--text-2); }
.cad-tag { position: absolute; left: 3%; top: 4%; }

/* See: HUD layer (style guide HUD rules: 4% safe area, corner zones) */
.see-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* a tracking bracket drawn by the page (the perch's is in the footage); JS pins it to video pixels */
.track { position: absolute; }
.track .corner { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(133,183,235,.55); }
.track .corner.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.track .corner.tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.track .corner.bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.track .corner.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.track .tag {
  position: absolute; left: 0; bottom: calc(100% + 6px); display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap;
  font-size: var(--t-caption); padding: 3px 7px; border-radius: var(--r-xs);
  background: rgba(5,13,22,.72); color: var(--text-2); border: 1px solid rgba(241,239,232,.12);
}
.track .tag b { font-weight: var(--w-semibold); color: var(--text-1); }
.track .tag .mono { font-size: 11px; }
@media (max-width: 700px) { .see-img { object-position: 60% 50%; } } /* the perch swims across, so stay a little right of centre */
/* brand grade is baked into see.jpg (exports/grade/bake.sh) */
.hud-layer { position: absolute; inset: 0; font-family: var(--font-sans); z-index: 2; }
.hud-layer .safe { position: absolute; inset: var(--safe, 4%); border: 1px dashed rgba(133, 183, 235, 0.25); border-radius: 4px; }
.hud-layer .zone { position: absolute; display: flex; flex-direction: column; gap: 6px; }
/* equal margins on all sides: --safe / --pad are set from the window's shorter side in JS */
.hud-layer .tl { top: var(--pad, 6%); left: var(--pad, 5%); } .hud-layer .tr { top: var(--pad, 6%); right: var(--pad, 5%); align-items: flex-end; }
.hud-layer .bl { bottom: var(--pad, 6%); left: var(--pad, 5%); } .hud-layer .br { bottom: var(--pad, 6%); right: var(--pad, 5%); align-items: flex-end; }
.hud-logo { height: 14px; width: auto; align-self: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: var(--r-full); font-size: var(--t-caption); font-weight: var(--w-medium); line-height: 1; background: var(--surface-2); color: var(--text-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.acc { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.mono-num { font-variant-numeric: tabular-nums; } /* digits keep their width as the Rec clock ticks */
.hud-layer .chip { height: auto; padding: 6px 10px; gap: 16px; }
.hud-layer .chip.batt { gap: 6px; padding: 4px 8px; color: var(--text-1); }
.hud-layer .chip.batt .mono { font-size: 13px; }
.readout { display: flex; flex-direction: column; gap: 2px; }
.readout .k { font-size: var(--t-micro); color: var(--text-2); font-weight: var(--w-medium); }
.readout .v { font-family: var(--font-mono); font-size: 18px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.readout .v small { font-family: var(--font-sans); font-size: var(--t-caption); color: var(--text-2); margin-left: 3px; }
@media (max-width: 700px) { .hud-layer .zone { transform: scale(.8); } .hud-layer .tl, .hud-layer .bl { transform-origin: left; } .hud-layer .tr, .hud-layer .br { transform-origin: right; } }

/* Why: over-under photo */
.why-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; } /* phones keep Nemo in the crop */

/* Map: looping sonar video (fill in, fade back to the first frame, hold; built by exports/video/map-loop.sh) */
.map-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Decide: satellite base, brand grade, looping route */
.decide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* grade baked into decide.jpg */
#decideSvg { will-change: transform; transform: translateZ(0); } /* own layer: route repaints don't re-blend the photo */

/* Roam: still photo */
.roam-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; } /* keeps the cases in the phone crop */

/* Content pages (Design, Software): one readable column */
.page-hero { padding-top: clamp(48px, 7vw, 96px); }
.page-hero .copy { max-width: 760px; }
.doc { max-width: 720px; }
.doc section { padding-top: clamp(72px, 9vw, 120px); scroll-margin-top: 72px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.doc p { color: var(--text-2); margin: var(--s-4) 0 0; }
.doc p a, .doc li a { color: var(--accent); text-underline-offset: 3px; }
.doc .eyebrow { margin-bottom: var(--s-3); }
.points { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.points li { position: relative; padding-left: 22px; color: var(--text-2); font-size: var(--t-body-lg); }
.points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; border-top: 2px dashed var(--accent); }
.points li b { color: var(--text-1); font-weight: var(--w-medium); }
.toc { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); padding: 0; list-style: none; }
.toc a { display: inline-flex; height: var(--h-control); align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: var(--t-ui); color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text-1); border-color: var(--border-strong); }
/* key figures strip (a table-like exception to the one-column rule) */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); max-width: 960px; }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }
.fig { border-top: 1px solid var(--border-strong); padding-top: var(--s-3); }
.fig .v { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.fig .k { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--text-3); }
@media (max-width: 700px) { .figs, .figs.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { width: 100%; border-collapse: collapse; margin-top: var(--s-5); font-size: var(--t-small); }
.spec th { text-align: left; font-weight: var(--w-medium); color: var(--text-2); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border-strong); }
.spec td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); color: var(--text-1); vertical-align: top; }
.spec td.mono { font-family: var(--font-mono); font-size: 13px; }
.note { margin-top: var(--s-3) !important; font-size: var(--t-small); color: var(--text-3) !important; }
.next { margin-top: clamp(72px, 9vw, 120px); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.next a.btn { margin-top: var(--s-4); text-decoration: none; }
/* Design page: style-guide shell (sticky left nav + one content column) */
.doc-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.side { position: sticky; top: 52px; align-self: start; max-height: calc(100vh - 52px); overflow-y: auto; padding: var(--s-7) 0 var(--s-6); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a { display: block; font-size: var(--t-ui); line-height: var(--lh-ui); color: var(--text-2); padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.side a:hover { background: var(--surface-1); color: var(--text-1); }
.side a.on { background: var(--surface-1); color: var(--text-1); font-weight: var(--w-medium); }
.side a:focus-visible { outline: none; box-shadow: var(--focus); }
.doc-shell .doc { max-width: 960px; padding-bottom: var(--s-9); }
.doc-shell .doc :is(p, h1, h2, .principles, .spec, .figs) { max-width: 760px; }
.doc-shell section { padding-top: var(--s-7); }
.doc-shell section + section { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--border); }
.doc-shell h3.sub { margin: var(--s-6) 0 var(--s-2); font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: var(--w-semibold); color: var(--text-1); }
/* type matches brand/styleguide.html exactly: h1 title1 38, h2 title2 24, body 15/1.6, lead 17/1.6, p ≤ 68ch */
.doc-shell .doc { font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); }
.doc-shell .doc h1 { font-size: var(--t-title1); line-height: var(--lh-title1); letter-spacing: var(--ls-title1); margin-bottom: var(--s-4); }
.doc-shell .doc h2 { font-size: var(--t-title2); line-height: var(--lh-title2); letter-spacing: var(--ls-title2); margin-bottom: var(--s-2); }
.doc-shell .doc p { font-size: var(--t-body); line-height: var(--lh-body); margin: 0 0 var(--s-3); max-width: 68ch; }
.doc-shell .doc p.lede { font-size: var(--t-body-lg); line-height: var(--lh-body-lg); letter-spacing: var(--ls-body-lg); }
.doc-shell .doc .eyebrow { /* as the style guide: sentence case, no underline */
  display: block; font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-medium); color: var(--accent);
  text-transform: none; letter-spacing: var(--ls-ui); text-decoration: none; margin-bottom: var(--s-2); }
.doc-shell .doc p.note { font-size: var(--t-caption); }
.doc-shell .points { margin: var(--s-3) 0 var(--s-4); max-width: 68ch; gap: var(--s-2); }
.doc-shell .points li { font-size: var(--t-body); line-height: var(--lh-body); }
.doc-shell .stack { margin-top: var(--s-3); }
.stack.top-down { flex-direction: column; }
.stack.top-down li:not(:first-child)::after { bottom: auto; top: -9px; }
.doc-shell .window { margin: var(--s-6) 0; }
@media (max-width: 860px) {
  .doc-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { top: 52px; z-index: 4; max-height: none; overflow: visible; padding: 0; margin: 0 calc(-1 * var(--s-4)); background: color-mix(in srgb, var(--bg) 95%, transparent); border-bottom: 1px solid var(--border); }
  .side nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px var(--s-4); scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; }
}
/* principles: a checklist box, as in the style guide */
.principles { list-style: none; margin: var(--s-3) 0 var(--s-4); padding: var(--s-2) var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); }
.principles li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-4); padding: var(--s-3) 0; color: var(--text-2); font-size: var(--t-body); line-height: var(--lh-body); }
.principles li + li { border-top: 1px solid var(--border); }
.principles li svg { color: var(--accent); margin-top: 4px; width: 16px; height: 16px; }
.principles li b { display: block; margin-bottom: 2px; color: var(--text-1); font-weight: var(--w-semibold); } /* heading on its own line, description below */
/* explainers: real CAD, animated */
.window.xp { aspect-ratio: 16 / 9; cursor: grab; }
.window.xp:active { cursor: grabbing; }
.xp-modes { position: absolute; top: var(--s-4); right: var(--s-4); display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 2; }
.xp-cap { position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2; height: auto; padding: 6px 10px; white-space: normal; max-width: calc(100% - 32px); line-height: 1.4; transition: opacity var(--dur-base) var(--ease); }
.xp-legend { position: absolute; right: var(--s-4); top: var(--s-4); z-index: 2; display: flex; gap: 6px; } /* top-right, clear of the caption */
.window.light .xp-legend .chip { background: var(--bg); border-color: var(--border); color: var(--text-2); }
.xp-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.xp-legend .dot.b { background: #185FA5; } .xp-legend .dot.g { background: #0B1724; }
@media (max-width: 700px) { .xp-legend { top: var(--s-3); bottom: auto; right: var(--s-3); } }
@media (max-width: 700px) { .window.xp { aspect-ratio: 4 / 3; } .xp-modes { left: var(--s-3); right: var(--s-3); top: var(--s-3); justify-content: flex-start; } }

/* Software: the stack, drawn bottom-up like the real thing */
.stack { list-style: none; margin: var(--s-7) 0 0; padding: 0; max-width: 720px; display: flex; flex-direction: column-reverse; gap: var(--s-2); }
.stack li a {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--s-3); padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color var(--dur-fast) var(--ease);
}
.stack li a:hover { border-color: var(--border-strong); }
.stack .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.stack .t { font-weight: var(--w-medium); color: var(--text-1); font-size: var(--t-body); }
.stack .d { display: block; font-size: var(--t-small); color: var(--text-3); font-weight: var(--w-regular); }
.stack .r { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.stack li:not(:first-child) { position: relative; }
.stack li:not(:first-child)::after { content: ""; position: absolute; left: 38px; bottom: -9px; height: 8px; border-left: 2px dashed var(--border-strong); }
@media (max-width: 600px) { .stack li a { grid-template-columns: 32px 1fr; } .stack .r { display: none; } }

/* Follow along */
.signup { display: flex; gap: var(--s-2); margin-top: var(--s-5); max-width: 440px; }
.signup .input { height: var(--h-large); flex: 1; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--text-1); font: inherit; font-size: var(--t-small); }
.signup .input:hover { border-color: var(--text-3); }
.signup .input:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.signup .input.err { border-color: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: var(--h-large); padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-size: var(--t-small); font-weight: var(--w-medium); line-height: 1; white-space: nowrap; cursor: pointer; transition: background var(--dur-fast) var(--ease); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #0F3E6D; }
.fine { font-size: var(--t-caption) !important; color: var(--text-3) !important; margin-top: var(--s-3) !important; }
.fine.ok { color: var(--ok) !important; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot for bots */
.signup .btn:disabled { opacity: .6; cursor: progress; }
.fine.err { color: var(--danger) !important; }
@media (max-width: 420px) { .signup { flex-direction: column; } }

/* 404 */
.cta-row { margin-top: var(--s-5) !important; }
.cta-row .btn { text-decoration: none; }

/* Footer */
.foot { display: flex; align-items: center; gap: var(--s-3); padding-top: clamp(96px, 12vw, 160px); padding-bottom: var(--s-7); color: var(--text-3); font-size: var(--t-ui); }
.foot img { height: 14px; width: auto; }

/* Reveal on scroll (simple fades) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
