/* ---------------------------------------------------------------------------
   Tokens. Lifted from apps/mobile/src/theme.ts so the site and the app stay one
   brand — `primary`/`authBrand` for the orange surfaces, `#FFC835` for the gold
   italic accent (IntroScreen's `headlineAccent`), `homeBackground` for the warm
   off-white the content sits on.
   --------------------------------------------------------------------------- */
:root {
  --orange:        #FF6A1A;
  --orange-deep:   #ED510A;
  --orange-dark:   #E85A0E;
  --gold:          #FFC835;
  --cream:         #FFF5EE;
  --soft:          #FFF8F1;
  --soft-border:   #FFDBB0;
  --soft-text:     #C74A02;
  --card:          #FFFFFF;
  --card-border:   #F2E7DD;
  --ink:           #1A1A1A;
  --ink-2:         #4A4A4A;
  --muted:         #6B6B6B;
  --live:          #FF4444;
  --radius:        20px;
  --max:           1120px;
  --nav-h:         72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Without this every in-page anchor lands underneath the sticky header. */
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; }
p  { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 15px 26px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:disabled { cursor: default; opacity: .72; }
.btn-light { background: #fff; color: var(--orange-deep); box-shadow: 0 6px 18px rgba(120, 40, 0, .18); }
.btn-light:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(120, 40, 0, .24); }
.btn-solid { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 26, .32); }
.btn-solid:not(:disabled):hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* --- Header ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 106, 26, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: rgba(255, 255, 255, .92); text-decoration: none;
  font-size: 15px; font-weight: 600;
}
.nav-links a:hover { color: #fff; }
@media (max-width: 800px) { .nav-links { display: none; } }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #FF8A3D 0%, var(--orange) 42%, var(--orange-deep) 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
}
/* The two soft discs are the onboarding artboard's shapes, redrawn in CSS. */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 780px; height: 780px; right: -180px; top: -320px; background: rgba(255, 255, 255, .09); }
.hero::after  { width: 520px; height: 520px; left: -220px;  bottom: -260px; background: rgba(255, 255, 255, .07); }

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
/* Stacked, the headline and the signup form come FIRST — the room mock is
   supporting art, and pushing the form below it costs signups. */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 290px; margin-top: 8px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 7px 15px 7px 11px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 200, 53, .7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 200, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 200, 53, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 6.4vw, 68px);
  font-weight: 800;
}
/* IntroScreen splits the headline across two lines: white, then gold italic. */
h1 em { display: block; color: var(--gold); font-style: italic; }

.lede {
  margin-top: 20px; max-width: 30em;
  font-size: clamp(17px, 2vw, 19.5px);
  color: rgba(255, 255, 255, .93);
}

/* --- Waitlist form --------------------------------------------------------- */
.form { margin-top: 30px; max-width: 520px; }
.form-row { display: flex; gap: 10px; }
@media (max-width: 520px) { .form-row { flex-direction: column; } }

.form input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 16px;   /* 16px keeps iOS Safari from zooming on focus */
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
}
.form input[type="email"]::placeholder { color: #9A8B80; }
.form input[type="email"]:focus-visible { outline-offset: 2px; }

/* Visually hidden but still announced — used for the email field's label. */
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Honeypot: off-screen and hidden from assistive tech, so only a bot fills it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .82); }

.status { margin-top: 12px; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.status[data-state="error"] { color: #FFE1D2; }

/* Submitted state. The whole row is swapped for a confirmation panel rather
   than leaving a spent button on screen — the point of the form is over, and a
   greyed-out "Joined" button reads as something that failed. */
.done { display: none; align-items: flex-start; gap: 14px; text-align: left;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius); padding: 20px 22px;
}
.form.is-done .form-row,
.form.is-done .form-note,
.form.is-done .status { display: none; }
.form.is-done .done { display: flex; }

.done .tick {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: #7A3B00;
  display: grid; place-items: center; font-size: 20px; font-weight: 800; line-height: 1;
  animation: pop .32s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done .tick { animation: none; } }

.done b { display: block; font-size: 17.5px; font-weight: 800; color: #fff; }
.done span { display: block; margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .9); }
/* Own line, not inline in the sentence — a long address wraps mid-word and
   leaves any trailing punctuation stranded on a line of its own. */
.done span .addr { display: block; margin-top: 6px; font-weight: 700; color: #fff; word-break: break-all; }

/* --- Hero art: a CSS mock of a live audio room ----------------------------- */
.hero-art { width: 100%; max-width: 320px; justify-self: end; }

.phone {
  border-radius: 34px; padding: 10px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 30px 70px rgba(105, 35, 0, .35);
}
.screen {
  border-radius: 26px; overflow: hidden; background: var(--cream);
  color: var(--ink); font-size: 13px; line-height: 1.35;
}
.screen-top {
  background: linear-gradient(135deg, #FF8A3D, var(--orange-deep));
  color: #fff; padding: 14px 15px 18px;
  display: flex; align-items: center; gap: 9px;
}
.screen-top .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(150deg, #FFD98A, var(--gold));
  border: 2px solid rgba(255, 255, 255, .8); flex: none;
}
.screen-top .room { min-width: 0; }
.screen-top .room strong { display: block; font-size: 13.5px; font-weight: 700; }
.screen-top .room span  { font-size: 11.5px; opacity: .85; }
.live-pill {
  margin-left: auto; flex: none;
  background: var(--live); border-radius: 999px;
  padding: 4px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
}

.seats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px;
  padding: 18px 14px 14px; margin-top: -8px;
  background: var(--cream); border-radius: 20px 20px 0 0;
}
.seat { text-align: center; }
.seat i {
  display: block; width: 42px; height: 42px; margin: 0 auto 5px; border-radius: 50%;
  background: #F4E6DA; border: 2px dashed #E4CDBB;
}
.seat b { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.seat.taken i { border-style: solid; border-color: transparent; }
.seat.taken:nth-child(1) i { background: linear-gradient(150deg, #FFD98A, #FF9B3D); }
.seat.taken:nth-child(2) i { background: linear-gradient(150deg, #9BE07A, #3FA63A); }
.seat.taken:nth-child(3) i { background: linear-gradient(150deg, #FFB8A0, #F0673A); }
.seat.taken:nth-child(5) i { background: linear-gradient(150deg, #C4B5FD, #7C6BE0); }
.seat.taken b { color: var(--ink); }
.seat.host i { border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 53, .28); }

.gift-chip {
  margin: 4px 14px 0; padding: 9px 12px; border-radius: 14px;
  background: var(--soft); border: 1px solid var(--soft-border);
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; color: var(--soft-text);
}
.gift-chip em { font-style: normal; margin-left: auto; font-weight: 800; }

.chat { padding: 10px 14px 6px; display: grid; gap: 6px; }
.chat p { font-size: 11.5px; color: var(--ink-2); }
.chat p b { color: var(--orange-deep); font-weight: 700; }

.composer {
  margin: 6px 14px 16px; padding: 9px 14px; border-radius: 999px;
  background: #F2ECE6; color: #9A8B80; font-size: 11.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.composer span:last-child { color: var(--orange); font-weight: 800; }

/* --- Generic sections ------------------------------------------------------ */
section.band { padding: clamp(64px, 10vw, 120px) 0; }
/* White rather than another cream — `--soft` sits too close to `--cream` to
   read as a separate section when the two are stacked. */
section.band-alt { background: var(--card); border-block: 1px solid var(--card-border); }

.head { max-width: 40rem; margin-bottom: 44px; }
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 12px;
}
h2 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 800; }
.head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* --- Feature grid ---------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 26px 30px;
}
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  background: var(--soft); border: 1px solid var(--soft-border);
  display: grid; place-items: center; color: var(--orange-deep);
}
.card .ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 18.5px; font-weight: 800; }
.card p { margin-top: 9px; color: var(--muted); font-size: 15.5px; }

/* --- Steps ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 18px;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 19px; font-weight: 800; }
.step p { margin-top: 9px; color: var(--muted); font-size: 15.5px; }

/* --- FAQ ------------------------------------------------------------------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--orange); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* --- Closing CTA ----------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(140deg, #FF8A3D, var(--orange) 45%, var(--orange-deep));
}
.cta::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); top: -300px; left: 50%; transform: translateX(-50%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.6vw, 46px); }
.cta h2 em { color: var(--gold); font-style: italic; }
.cta p { margin: 18px auto 0; max-width: 34em; color: rgba(255, 255, 255, .93); }
.cta .form { margin-inline: auto; }
.cta .form-note, .cta .status { text-align: center; }

/* --- Footer ---------------------------------------------------------------- */
footer { background: #2A1508; color: rgba(255, 255, 255, .68); font-size: 15px; }
footer .wrap { padding-block: 56px 40px; }
.foot-top {
  display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.foot-brand { max-width: 22rem; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 15px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols h4 {
  margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Padded rather than bare text so the rows are a comfortable tap target. */
.foot-cols a { text-decoration: none; display: inline-block; padding-block: 4px; }
.foot-cols a:hover { color: #fff; }
.foot-bot {
  padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; font-size: 14px; color: rgba(255, 255, 255, .5);
}

/* ===========================================================================
   Legal pages (privacy.html, terms.html)
   =========================================================================== */

.legal-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #FF8A3D, var(--orange) 48%, var(--orange-deep));
  color: #fff; padding: clamp(44px, 6vw, 72px) 0 clamp(48px, 6vw, 76px);
}
.legal-hero::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: 620px; height: 620px; right: -200px; top: -300px; background: rgba(255, 255, 255, .09);
}
.legal-hero .wrap { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; margin: 14px 0 0; }
.legal-hero .updated { margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .88); }

/* One narrow measure for the whole page, hero included, so the page title sits
   on the same left edge as the text under it. ~70ch is the readable limit for
   body text this size — the full 1120px container is far too wide for prose. */
.legal { padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 104px); }
.legal-hero .wrap,
.legal .wrap { max-width: 736px; }

.legal h2 {
  font-size: clamp(22px, 2.6vw, 27px); font-weight: 800;
  margin: 44px 0 14px; padding-top: 4px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18.5px; font-weight: 700; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 9px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--soft-text); text-decoration: underline; text-underline-offset: 2px; }

/* Intro summary above the clauses — plain-language, not a substitute for them. */
.legal .summary {
  background: var(--soft); border: 1px solid var(--soft-border);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 40px;
}
.legal .summary h2 { margin: 0 0 10px; font-size: 19px; }
.legal .summary p, .legal .summary li { font-size: 16px; }

.legal .toc {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px;
}
.legal .toc h2 {
  margin: 0 0 12px; font-size: 13px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--soft-text);
}
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin: 0 0 7px; font-size: 15.5px; break-inside: avoid; }
.legal .toc a { color: var(--ink-2); text-decoration: none; }
.legal .toc a:hover { color: var(--soft-text); text-decoration: underline; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }

/* Data tables (what we collect / who we share with). */
.legal .table-scroll { overflow-x: auto; margin-top: 18px; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 12px 14px;
  border: 1px solid var(--card-border);
}
.legal th { background: var(--soft); font-weight: 700; color: var(--ink); }
.legal td { color: var(--ink-2); background: var(--card); }

.legal .back { display: inline-block; margin-top: 44px; font-weight: 700; color: var(--soft-text); text-decoration: none; }
.legal .back:hover { text-decoration: underline; }

/* Placeholders in the legal text that only the company can fill in — legal
   entity, address, jurisdiction. Highlighted on purpose: an unfilled blank
   should be impossible to miss on a page nobody reads twice. */
.fill {
  background: #FFF3B0; color: #6B4A00; font-weight: 700;
  padding: 1px 6px; border-radius: 5px; border: 1px dashed #D9AE3A;
  white-space: nowrap;
}
