@font-face {
  font-family: Plex;
  src: url("/launch/assets/plex-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Plex;
  src: url("/launch/assets/plex-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* The shipped site tokens (apps/site/site.css, premium block), so this page and /account are one Co-Buddy. */
  --bg: #0b0d10;
  --ink: #e6eaef;
  --muted: #a5b3c4;
  --accent: #4ea3ff;
  --on-accent: #06121f;
  --warn: #ff9e8a;
  --amber: #ffb454;
  --sheet: #12161b;
  --scrim: rgba(3, 6, 10, 0.72);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(ellipse 52% 27% at 50% 54%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 82%), var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Plex, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(36px, 7vh, 88px) max(16px, env(safe-area-inset-right)) max(clamp(24px, 4vh, 48px), env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  text-align: center;
}

.masthead { display: flex; justify-content: center; }

.lockup {
  display: block;
  width: clamp(180px, 17vw, 224px);
  height: auto;
}

.message {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 32px 0;
}

.message h1 {
  margin: 0;
  font-size: clamp(42px, 6.15vw, 88px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

/* The horizon line is part of the flow: it sits between the headline and the subtitle and moves with them. */
.horizon {
  width: min(640px, 80%);
  height: 1px;
  margin: 28px 0 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent) 20%, color-mix(in srgb, var(--accent) 40%, transparent) 50%, color-mix(in srgb, var(--accent) 16%, transparent) 80%, transparent);
}

.lede {
  max-width: 580px;
  margin: 28px 0 0;
  text-wrap: balance;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.early {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 9px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.early-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-radius: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.fact-live { color: var(--ink); }

/* Quiet note for sims that are not out yet: small muted text, no pill, no border. */
.fact-later {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.footer a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--muted) 47%, transparent);
  text-underline-offset: 3px;
}

.footer a:hover { color: var(--ink); }
.footer .support-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; line-height: 20px; }
.footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* the community links the generated bare legal pages carry in their footer (same links as the full shell) */
.footer .social { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; }
.footer .icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer .icon-fill { fill: currentColor; stroke: none; }

/* ── The beta list (owner order 2026-10-12): one card under the facts; everything above is untouched. ── */
[hidden] { display: none !important; }

.beta {
  width: min(480px, 100%);
  margin: 44px 0 0;
  padding: 28px 24px 22px;
  border: 1px solid color-mix(in srgb, var(--muted) 28%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  text-align: left;
}

.beta h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.beta-eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.beta-text { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.beta-form { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 0; }

.beta-field { display: flex; flex-direction: column; gap: 6px; }
.beta label, .beta legend { font-size: 14px; font-weight: 600; line-height: 1.4; }
.beta-optional { color: var(--muted); font-weight: 400; }

.beta input[type="email"], .beta input[type="text"], .beta input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.beta input:focus-visible, .beta-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.beta-sims { min-width: 0; margin: 0; padding: 0; border: 0; }
.beta-sims legend { padding: 0; margin-bottom: 8px; }
.beta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.beta-chip { position: relative; display: inline-flex; }
.beta-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.beta-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.beta-chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
.beta-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.beta-consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; color: var(--ink); cursor: pointer; }
.beta-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.beta-consent span { font-size: 14px; line-height: 1.5; }

.beta-turnstile:empty { display: none; }
.beta-status { margin: 0; padding: 10px 14px; border-left: 3px solid var(--warn); border-radius: 4px; background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 14px; line-height: 1.5; }

.beta-button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.beta-button:hover { filter: brightness(1.08); }
.beta-button:disabled { cursor: default; opacity: 0.7; filter: none; }

.beta-small { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.beta-small a { color: var(--muted); text-decoration-color: color-mix(in srgb, var(--muted) 47%, transparent); text-underline-offset: 3px; }
.beta-small a:hover { color: var(--ink); }
.beta-small a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.beta-done { margin: 22px 0 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 16px; font-weight: 600; line-height: 1.5; outline: none; }

/* ── /privacy while the site is gated: the policy alone, in this page's own look (build-site.mjs bareLegalPage). ── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: clamp(36px, 7vh, 88px) 16px clamp(24px, 4vh, 48px); }
.legal-wrap .masthead { margin-bottom: 36px; }
.legal-back { margin: 0 0 24px; font-size: 14px; }
.legal-back a { color: var(--muted); text-underline-offset: 3px; }
.legal-back a:hover { color: var(--ink); }
.legal-bare .legal-page { display: block; min-height: 0; padding: 0; text-align: left; }
.legal-bare .legal-page h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 16px; }
.legal-bare .legal-page h2 { margin: 36px 0 8px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.legal-bare .legal-page h3 { margin: 24px 0 6px; font-size: 17px; line-height: 1.3; }
.legal-bare .legal-page p, .legal-bare .legal-page li { color: var(--ink); line-height: 1.6; }
.legal-bare .legal-page a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-bare .legal-page .table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-bare .legal-page table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-bare .legal-page th, .legal-bare .legal-page td { padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); text-align: left; vertical-align: top; }
.legal-bare .legal-page blockquote { margin: 16px 0; padding: 0 16px; border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--muted); }
.legal-bare .legal-page hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); margin: 28px 0; }

/* ── /invite (owner order 2026-10-13): the invited tester's sign-up and redeem, in this page's own look. Additive only. ── */
.beta-tabs { display: flex; gap: 8px; margin: 18px 0 0; }
.beta-tab { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 22px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.beta-tab[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
.beta-tab:focus-visible, .beta-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.beta-linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.beta-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ── The beta form as a modal (owner order 2026-10-13): one call-to-action under the hero opens the form in a native <dialog>.
   Additive: the .beta card rules above stay for /invite, which still shows the card inline. ── */
.beta-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 232px;
  min-height: 52px;
  margin: 36px 0 0;
  padding: 0 30px;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 10%, var(--bg));
  color: var(--amber);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--amber) 70%, transparent);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.beta-open::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); margin-left: -2px; transition: transform 0.15s ease; }
.beta-open:hover { background: color-mix(in srgb, var(--amber) 20%, var(--bg)); transform: translateY(-1px); }
.beta-open:hover::after { transform: translateX(3px) rotate(45deg); }
.beta-open:active { transform: translateY(0); }
.beta-open:focus-visible, .beta-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.beta-modal {
  position: fixed;
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: min(calc(100vh - 48px), 780px);
  max-height: min(calc(100dvh - 48px), 780px);
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--muted) 32%, transparent);
  border-radius: 20px;
  background: var(--sheet);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
}
.beta-modal[open] { display: flex; flex-direction: column; animation: beta-in 0.2s ease-out; }
.beta-modal::backdrop { background: var(--scrim, rgba(3, 6, 10, 0.72)); backdrop-filter: blur(4px); animation: beta-fade 0.2s ease-out; }
@keyframes beta-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes beta-fade { from { opacity: 0; } }
body:has(.beta-modal[open]) { overflow: hidden; }

.beta-sheet { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 28px 24px 24px; }
.beta-modal .beta { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.beta-modal .beta-eyebrow, .beta-modal .beta h2 { padding-right: 44px; }
.beta-modal .beta-consent { min-height: 44px; }
.beta-modal .beta-turnstile { max-width: 100%; overflow: hidden; }

.beta-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.beta-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .beta-open, .beta-open::after { transition: none; }
  .beta-modal[open], .beta-modal::backdrop { animation: none; }
}
/* ── The pages a mail links to (owner order 2026-10-13): /verify, /unsubscribe, /beta/confirm in this page's own look. Additive only. ── */
.message.message-compact h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.04em; }
.message.message-compact h1:focus { outline: none; }   /* the script moves focus to the title when the state changes; it is not a control */
.message-compact .beta { margin-top: 32px; }
.message-compact .beta-form { margin-top: 0; }
.message-compact .lede { max-width: 480px; }
.mail-open { margin: 28px 0 0; }
a.beta-button { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none; }
a.beta-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #f6f7f9; --ink: #12161b; --muted: #526174; --accent: #1b5fa7; --on-accent: #ffffff; --warn: #a63a1b; --amber: #8a5300; --sheet: #ffffff; --scrim: rgba(18, 22, 27, 0.5); }
  body { background: radial-gradient(ellipse 52% 27% at 50% 54%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 82%), var(--bg); }
}

@media (max-width: 600px) {
  .page { padding-top: clamp(42px, 8vh, 68px); }
  .message h1 { font-size: clamp(42px, 11.8vw, 64px); }
  .message.message-compact h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .horizon { margin-top: 22px; }
  .lede { max-width: 340px; margin-top: 22px; }
  .early { margin-top: 24px; padding: 9px 16px; font-size: 14px; }
  .facts { margin-top: 24px; }
  .footer { font-size: 11px; }
  .beta { margin-top: 36px; padding: 24px 18px 20px; }
  .beta-open { width: 100%; max-width: 340px; margin-top: 32px; }
}

/* Phones: the modal is a bottom sheet that fills the screen (a sliver of backdrop stays on top as the way out). */
@media (max-width: 480px) {
  .beta-modal {
    inset: auto 0 0 0;
    width: 100%;
    max-height: none;
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px - env(safe-area-inset-top, 0px));
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
  }
  .beta-modal.is-done { height: auto; }
  .beta-modal[open] { animation-name: beta-up; }
  @keyframes beta-up { from { transform: translateY(24px); opacity: 0; } }
  .beta-sheet { padding: 24px max(16px, env(safe-area-inset-right)) max(24px, calc(16px + env(safe-area-inset-bottom))) max(16px, env(safe-area-inset-left)); scroll-padding-bottom: 24px; }
  .beta-close { top: 8px; right: max(8px, env(safe-area-inset-right)); }
}
