/* Self-hosted webfonts.
   Subsets: latin + latin-ext only. Each file carries a unicode-range, so a
   browser fetches latin-ext ONLY if the page actually contains those
   characters - an English page pays nothing for it.
   Inter and JetBrains Mono are VARIABLE fonts: Google serves one identical
   blob for weights 400 and 600 (verified by checksum), so each is declared
   once with a weight RANGE instead of being shipped twice.
   Serving these from our own origin removes the last third-party request:
   no visitor IP reaches Google, and the CSP keeps style-src/font-src 'self'. */

/* JetBrains Mono 400 500 - latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono 400 500 - latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Schibsted Grotesk 400 700 - latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Schibsted Grotesk 400 700 - latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ---------- Tokens ----------
   Light and dark are designed as a pair, not one inverted from the other.
   All text pairings meet WCAG AA (4.5:1); body text sits at 13-17:1,
   avoiding the 21:1 pure black/white extreme that causes glare and halation. */
:root {
  color-scheme: light;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --border: #D5DAE1;
  --field-border: #7B8494;
  --text: #1A1D23;
  --text-2: #4A5261;
  --accent: #F0A43A;
  --accent-hover: #E39422;
  --on-accent: #1A1D23;
  --accent-ink: #8A5200;
  --tint: #FCF1DD;
  --ok: #0B7A63;
  --ok-bg: #E3F4EF;
  --flag: #C97A00;
  --flag-bg: #FCEBC6;
  --focus: #1A1D23;
  --shadow: 0 1px 2px rgba(26, 29, 35, .06), 0 12px 32px -12px rgba(26, 29, 35, .18);

  --syn-kw: #8A3FC4;
  --syn-str: #1D7A3E;
  --syn-ann: #8C6300;
  --syn-com: #646C7A;
  --syn-type: #1D5FB0;
  --gutter: #9098A5;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #13161B;
    --surface: #1B1F26;
    --surface-2: #232830;
    --border: #343B47;
    --field-border: #6E7888;
    --text: #E4E7EB;
    --text-2: #A5ADBA;
    --accent: #F2B455;
    --accent-hover: #F5C274;
    --on-accent: #1A1D23;
    --accent-ink: #F4BF6E;
    --tint: #30281A;
    --ok: #5CCBB0;
    --ok-bg: #1C2E2A;
    --flag: #F2B455;
    --flag-bg: #3A3122;
    --focus: #E4E7EB;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --syn-kw: #CFA7F5;
    --syn-str: #9AD6A2;
    --syn-ann: #E8C27E;
    --syn-com: #8E97A5;
    --syn-type: #8FC3FF;
    --gutter: #6B7483;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13161B;
  --surface: #1B1F26;
  --surface-2: #232830;
  --border: #343B47;
  --field-border: #6E7888;
  --text: #E4E7EB;
  --text-2: #A5ADBA;
  --accent: #F2B455;
  --accent-hover: #F5C274;
  --on-accent: #1A1D23;
  --accent-ink: #F4BF6E;
  --tint: #30281A;
  --ok: #5CCBB0;
  --ok-bg: #1C2E2A;
  --flag: #F2B455;
  --flag-bg: #3A3122;
  --focus: #E4E7EB;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --syn-kw: #CFA7F5;
  --syn-str: #9AD6A2;
  --syn-ann: #E8C27E;
  --syn-com: #8E97A5;
  --syn-type: #8FC3FF;
  --gutter: #6B7483;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem .75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font);
  padding: .9rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--field-border); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-small { padding: .6rem .9rem; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; }
/* The brand lockup already contains the wordmark, so it is sized by height
   and keeps its own aspect ratio. Two classes beat ".logo svg" on specificity. */
.logo .logo-lockup { height: 27px; width: auto; aspect-ratio: 377 / 90; }
.site-footer .logo .logo-lockup { height: 23px; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .975rem; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 440px) {
  .site-header .wrap { gap: .75rem; }
  .header-actions { gap: .5rem; }
  .site-header .btn-small { padding: .6rem .75rem; font-size: .9rem; }
  .logo { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero .lede { max-width: 58ch; margin: 1.5rem auto 0; color: var(--text-2); font-size: clamp(1.075rem, 1.6vw, 1.2rem); }
.hero .ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero .note { margin-top: 1rem; font-size: .9375rem; color: var(--text-2); }

/* ---------- IDE demo ---------- */
.demo {
  max-width: 880px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: .875rem; color: var(--text-2);
}
.demo-tab { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .8125rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-bottom: 2px solid var(--accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: .3rem .7rem; }
.demo-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--syn-type); }
.demo-bar .status { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; }
.demo-bar .status svg { width: 16px; height: 16px; }
.icon-flag { color: var(--flag); }
.icon-ok { color: var(--ok); }
.sprite { position: absolute; }
.code {
  font-family: var(--mono);
  font-size: clamp(.78rem, 1.5vw, .9rem);
  line-height: 1.75;
  padding: 1rem 0 1.25rem;
  overflow-x: auto;
}
.code .l { display: flex; white-space: pre; padding-right: 1.25rem; }
.code .n { flex: 0 0 3.25rem; text-align: right; padding-right: 1.25rem; color: var(--gutter); user-select: none; }
.kw { color: var(--syn-kw); }
.str { color: var(--syn-str); }
.ann { color: var(--syn-ann); }
.com { color: var(--syn-com); font-style: italic; }
.type { color: var(--syn-type); }
.flagged {
  background: var(--flag-bg);
  text-decoration: underline wavy var(--flag);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  border-radius: 3px;
}
.hint, .fixed-note {
  font-family: var(--font);
  white-space: normal;
  margin: .6rem 1.25rem .6rem 3.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  max-width: 62ch;
}
.hint { background: var(--surface-2); border-left: 4px solid var(--flag); }
.hint-head, .fixed-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; }
.hint-head svg, .fixed-head svg { width: 20px; height: 20px; flex: none; }
.hint-head svg { color: var(--flag); }
.hint p { margin-top: .4rem; font-size: .975rem; }
.hint .tech { color: var(--text-2); font-size: .9rem; }
.hint .btn { margin-top: .85rem; }
.fixed-note { background: var(--ok-bg); border-left: 4px solid var(--ok); }
.fixed-head svg { color: var(--ok); }
.fixed-note p { margin-top: .35rem; font-size: .975rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-top: .6rem; }
.code-state[hidden] { display: none; }
.code-state.enter { animation: settle .35s ease-out; }
@keyframes settle { from { opacity: .35; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 62ch; }
.section-head h2 { text-wrap: balance; font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin-top: 1rem; color: var(--text-2); font-size: 1.1rem; }

/* Evidence strip */
.evidence { padding-block: 2.25rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.evidence .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2rem; align-items: center; }
.evidence svg { width: 40px; height: 40px; color: var(--accent-ink); }
.evidence p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 70ch; }
.evidence cite { display: block; margin-top: .35rem; font-style: normal; font-size: .875rem; color: var(--text-2); }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.steps li::before {
  content: counter(step);
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--field-border);
  font-weight: 700; color: var(--text);
}
.steps h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; padding-top: .45rem; }
.steps p { margin-top: .3rem; color: var(--text-2); }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }

/* What it catches: two columns (the risk | its cause). Every row is its own
   grid with the same fr template in the same-width list, so the column edge
   lines up exactly from row to row. Stacks to one column on small screens.
   There is no tier column: every check is in the free plan. */
.risks { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.risks li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: .5rem 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.risks strong { font-weight: 600; font-size: 1.075rem; }
.risks .what { color: var(--text-2); }
.risks code { font-family: var(--mono); font-size: .875em; }
.risks-foot { margin-top: 1.25rem; color: var(--text-2); font-size: .975rem; }
@media (max-width: 720px) {
  .risks li { grid-template-columns: 1fr; }
}

/* Local */
.local { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.facts li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .8rem; }
.facts svg { width: 22px; height: 22px; color: var(--ok); margin-top: .15rem; }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--text-2); }
@media (max-width: 820px) { .local { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.wrap-wide { width: min(100% - 2.5rem, 1240px); }

/* Billing toggle: a native radio group styled as a segmented control, so arrow
   keys and screen readers work with no ARIA. The selected segment is marked by
   a --field-border outline (3:1+ non-text contrast in both themes) plus text
   colour, never by background shade alone - the surface shades are too close
   in the dark theme to carry the state on their own. */
.billing {
  position: relative;
  display: inline-flex;
  gap: .25rem;
  margin: 2.5rem 0 0;
  padding: .25rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.billing[hidden] { display: none; }
.billing input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.billing label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  border: 1.5px solid transparent;
  border-radius: calc(var(--radius-md) - 4px);
  font-weight: 600; font-size: .9375rem;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.billing label:hover { color: var(--text); }
.billing input:checked + label { background: var(--surface); color: var(--text); border-color: var(--field-border); }
.billing input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.billing .save {
  font-size: .8125rem; font-weight: 600;
  color: var(--accent-ink); background: var(--tint);
  padding: .15rem .5rem; border-radius: var(--radius-sm);
}
.billing + .plans { margin-top: 1.5rem; }

.plans {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0;
}
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Every card shares the same four rows, so bands, prices and dividers line up across cards */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.plan-title { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: 1.1rem 1rem; }
.plan-title svg { width: 24px; height: 24px; color: var(--accent-ink); }
.plan-title h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-band {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--tint);
  border-block: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  text-align: center;
  padding: 1.1rem 1rem 1.2rem;
}
.plan-band .small { font-size: .9375rem; color: var(--text-2); }
.plan-band .big { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-block: .2rem; text-wrap: balance; }
.plan-price { margin-inline: 1.4rem; padding: 1.5rem 0 1.4rem; border-bottom: 1px solid var(--border); }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price .amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--text-2); font-size: .975rem; line-height: 1.3; }
.price-sub { margin-top: .75rem; color: var(--text-2); font-size: .975rem; }
.price-sub + .price-sub { margin-top: .2rem; }

/* Monthly/Yearly swap, driven purely by which radio is checked.
   Base state (and the fallback for any browser without :has): yearly only. */
.plan-price [data-billing="monthly"] { display: none; }
#pricing:has(#bill-monthly:checked) .plan-price [data-billing="yearly"] { display: none; }
#pricing:has(#bill-monthly:checked) .plan-price .price[data-billing="monthly"] { display: flex; }
#pricing:has(#bill-monthly:checked) .plan-price .price-sub[data-billing="monthly"] { display: block; }
/* The yearly-only "About ... a month" line comes first in the DOM. When it is
   hidden, the next line would inherit the tight sibling gap, so restore the
   normal gap below the price. */
#pricing:has(#bill-monthly:checked) .price-sub[data-billing="yearly"] + .price-sub { margin-top: .75rem; }
.plan-body { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.6rem; }
.checks { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .65rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; font-size: .975rem; }
.checks svg { width: 18px; height: 18px; color: var(--ok); margin-top: .2rem; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-notes { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--text-2); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.5rem; max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--text-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.4rem; color: var(--text-2); max-width: 68ch; }
.faq .answer p + p { margin-top: .75rem; }

/* ---------- Final CTA / waitlist ---------- */
.join { background: var(--surface); border-top: 1px solid var(--border); }
.join-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.join h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.join .sub { margin-top: 1rem; color: var(--text-2); font-size: 1.1rem; }
.form { margin-top: 2rem; display: grid; gap: 1rem; text-align: left; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .4rem; }
.field input, .field select {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-md);
  padding: .8rem .9rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form .btn { width: 100%; padding-block: 1rem; font-size: 1.05rem; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .875rem; color: var(--text-2); text-align: center; }
.form-status { min-height: 1.5rem; text-align: center; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--accent-ink); }

/* ---------- 404 ----------
   Reuses the hero's type scale and buttons; only centres it in the viewport
   and adds the small code label above the heading. */
.notfound { min-height: 62vh; display: grid; align-content: center; }
.notfound-code {
  font-family: var(--mono);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 1rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-row a { color: var(--text-2); }
.legal { font-size: .8125rem; max-width: 90ch; }
