/* Alta web: shared by every page (landing, privacy, terms).
   Warm black stage, the pod's own orange as the brand, chartreuse ("volt") only
   for live data, traces and "Good set.". Type: Archivo (variable width + weight)
   for everything, Geist Mono for numbers' small print. */

@font-face { font-family: "Archivo"; src: url("../vendor/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../vendor/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0D0A08;
  --night-2: #18110C;
  --night-3: #221811;
  --paper: #F6EEE5;
  --mute: #B0A192;          /* 8.1:1 on --night */
  --faint: #8A7D70;         /* 4.9:1 on --night: small print only */
  --orange: #E8662E;
  --orange-hi: #F4864C;
  --orange-deep: #C2410C;
  --ember: #7E2606;
  --volt: #C8F031;          /* live numbers, traces, "Good set." only */
  --ink-on-orange: #170903; /* 6.3:1 on --orange, 4.9:1 on --orange-deep */
  --gut: clamp(16px, 4vw, 56px);
  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.5 var(--display); font-stretch: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: rgba(232, 102, 46, .45); color: var(--paper); }
.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; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; background: var(--paper); color: var(--night); padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* Film grain over everything: one static SVG noise tile, no animation. */
.grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wordmark { display: block; width: 62px; height: 31px; background: currentColor; -webkit-mask: url("../assets/wordmark.svg") center / contain no-repeat; mask: url("../assets/wordmark.svg") center / contain no-repeat; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 18px; will-change: transform; }
.nav::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(rgba(13, 10, 8, .78), rgba(13, 10, 8, 0)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nav.is-scrolled::before { opacity: 1; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); }
.nav__brand .wordmark { width: 108px; height: 54px; }
@media (max-width: 820px) { .nav__brand .wordmark { width: 92px; height: 46px; } }
.nav__cta { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px/1 var(--display); color: var(--paper); text-decoration: none; padding: 0 16px; border-radius: 12px; background: rgba(246, 238, 229, .09); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s, opacity .3s, transform .45s var(--spring); }
.nav__cta:hover { background: rgba(246, 238, 229, .17); }
.nav__brand, .nav__cta { transition: background .2s, color .25s, opacity .3s, transform .45s var(--spring); }
.nav.is-orange::before { opacity: 0; }
.nav.is-orange .nav__brand { color: var(--ink-on-orange); }
.nav.is-orange .nav__cta { color: var(--ink-on-orange); background: rgba(23, 9, 3, .1); }
.nav.is-orange .nav__cta:hover { background: rgba(23, 9, 3, .18); }
.nav__cta.is-hidden { opacity: 0; transform: scale(.9); pointer-events: none; }

/* ---------- button + waitlist form ---------- */
.btn { position: relative; flex: none; border: 0; cursor: pointer; font: 700 16px/1 var(--display); font-stretch: 104%; color: var(--ink-on-orange); background: var(--orange); padding: 16px 20px; border-radius: 11px; transition: transform .3s var(--spring), background .2s; }
.btn:hover { background: var(--orange-hi); transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn[disabled] { cursor: progress; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(23, 9, 3, .25); border-top-color: var(--ink-on-orange); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.waitlist { position: relative; max-width: 480px; }
.waitlist__row { display: flex; padding: 6px; border-radius: 16px; background: rgba(246, 238, 229, .07); box-shadow: inset 0 0 0 1px rgba(246, 238, 229, .14); transition: box-shadow .2s, background .2s, transform .5s var(--spring); }
.waitlist__row:focus-within { box-shadow: inset 0 0 0 1px rgba(246, 238, 229, .38); background: rgba(246, 238, 229, .09); }
.waitlist__field { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--paper); font: 500 17px var(--display); padding: 0 14px; outline: none; }
.waitlist__field::placeholder { color: var(--faint); }
.waitlist__field[aria-invalid="true"] { color: #FFB59A; }
.waitlist__row:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px #FF8A5C; }
.waitlist__status { min-height: 1.4em; margin: 12px 2px 0; font: 400 13px/1.45 var(--mono); color: var(--faint); }
.waitlist__status.is-error { color: #FFB59A; }
.waitlist__status.is-ok { color: var(--volt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* done: the row collapses into a confirmation chip */
.waitlist.is-done .waitlist__row { display: none; }
.waitlist.is-done .waitlist__status { margin-top: 0; font: 700 19px/1.35 var(--display); color: var(--paper); }
.waitlist.is-done .waitlist__status::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 14px var(--volt); vertical-align: .05em; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; padding: 36px var(--gut) 44px; background: var(--night); color: var(--mute); font: 400 14px/1.4 var(--mono); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .wordmark { color: var(--paper); margin-right: auto; }
.footer a { color: var(--paper); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer a:hover { color: var(--orange-hi); }
.footer__copy { color: var(--faint); }
@media (max-width: 560px) { .footer .wordmark { flex-basis: 100%; } .footer__inner { gap: 4px 22px; } }

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