/* The public landing: the product's own type and palette, on a plain page. */
@font-face { font-family: Jost; src: url('/browser/fonts/Jost-Variable.ttf') format('truetype'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/browser/fonts/SourceSans3-Variable.ttf') format('truetype'); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #0b0f13; --panel: #151b22; --line: #222b35; --line-strong: #2e3945; --field: #0f1318;
  --text: #f2f4f6; --body: #c3cbd3; --muted: #8a95a2; --link: #8ec1ea; --primary: #e8b04b; --primary-ink: #1a1408; --brand: #f2cc34; --error: #f0a48c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--text); font: 16px/1.5 'Source Sans 3', system-ui, sans-serif; }
html { background: var(--bg); }
a { color: var(--link); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 15px; }

/* A scene from a world made here plays behind the whole page, dimmed so the page reads over it. */
.backdrop { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 19, .55), rgba(11, 15, 19, .78) 60%, rgba(11, 15, 19, .9)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .backdrop { display: none; } body { background: var(--bg) url('assets/forest.jpg') center / cover fixed; } }

/* The header keeps to the page's own width: the mark and Sign in line up with the content's edges. */
.site-header { display: flex; align-items: center; gap: 16px; width: min(1248px, 100%); margin: 0 auto; padding: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brand); text-decoration: none; }
.brand:hover { text-decoration: none; }
/* The wordmark sits on the baseline of the tile's M; brand_mark.ts explains the two numbers. */
.brand { --brand-tile: 40px; --brand-word: 24px; }
.brand-mark { flex: none; width: var(--brand-tile); height: var(--brand-tile); fill: var(--brand); }
.brand-mark-letter { fill: #12171d; }
.brand-word { flex: none; position: relative; top: calc(var(--brand-tile) * .1252 - var(--brand-word) * .3017); width: auto; height: var(--brand-word); fill: var(--brand); }
.header-side { display: flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }

.button-primary, .button-quiet { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 12px; font: 700 16px/1 'Source Sans 3', sans-serif; cursor: pointer; }
.button-primary { border: 0; background: var(--primary); color: var(--primary-ink); }
.button-primary:disabled { background: #1c232c; color: #5e6b79; cursor: not-allowed; }
.button-quiet { border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 600; }
.button-quiet:hover { text-decoration: none; border-color: var(--muted); }

.landing { display: grid; gap: 52px; padding: 56px 32px 64px; }
.hero, .pillars, .shared { width: min(1184px, 100%); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 20px; }
h1 { margin: 0; font: 600 54px/1.04 Jost, sans-serif; color: #f6f7f9; }
.lede { margin: 0; max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--body); }
.hero-image { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); display: block; }

.waitlist, .joined { display: grid; gap: 12px; max-width: 30em; padding: 16px 20px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.joined strong { font-size: 18px; }
.joined span { color: var(--body); }
.waitlist label, .waitlist legend { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.waitlist input:not([type=radio]), .waitlist textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 16px/1.4 'Source Sans 3', sans-serif; }
.waitlist textarea { height: auto; padding: 8px 12px; resize: vertical; }
.waitlist input:focus, .waitlist textarea:focus { outline: 2px solid var(--link); outline-offset: -1px; }
.waitlist [aria-invalid=true] { border-color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.waitlist fieldset { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; border: 0; }
.waitlist legend { width: 100%; margin-bottom: 4px; }
.waitlist .choice { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 16px; }
.conditional { display: grid; gap: 12px; }
.conditional[hidden], [hidden] { display: none !important; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 12px; }
.form-note { color: var(--muted); font-size: 14px; }
.form-note.is-error, .word-count.is-error { color: var(--error); }
.word-count { font-size: 13px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillars article { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pillars img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); display: block; }
.pillars h2 { margin: 4px 0 0; font: 600 21px/1.2 Jost, sans-serif; }
.pillars p { margin: 0; color: var(--body); }

.shared { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.shared span { flex: 1; min-width: 16em; color: var(--body); }

@media (max-width: 900px) {
  .hero, .pillars { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 40px; }
  .landing { padding: 32px 16px 48px; }
  .site-header { padding: 16px; }
}
@media (max-width: 600px) {
  .header-side .muted { display: none; }
}
