/* Open Field site: the support page and the legal documents. Night Pitch palette (navy neutrals, mint
   accent), the same as the app; light and dark follow the visitor's system. */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #0e1a2b;
  --muted: #4a5a70;
  --subtle: #7a889c;
  --line: #dde4ed;
  --accent: #1e7a57;
  --accent-soft: #e6f5ee;
  --brand: #0e3b2a;
  --mint: #a8e6cf;
  --header-bg: rgba(243, 246, 250, 0.85);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.04), 0 8px 24px rgba(14, 26, 43, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1524;
    --surface: #14223a;
    --text: #e8eef6;
    --muted: #a3b1c6;
    --subtle: #7d8ca3;
    --line: #22324c;
    --accent: #a8e6cf;
    --accent-soft: rgba(168, 230, 207, 0.1);
    --header-bg: rgba(11, 21, 36, 0.85);
    --shadow: none;
  }
}

/* The wordmark's font, served from this site (no third-party font service). SIL Open Font License. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* The wordmark: Barlow Condensed ExtraBold Italic capitals, like the app. */
.wordmark {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-header .wordmark { font-size: 26px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* Document header */
.doc-hero { padding: 56px 0 32px; }
.eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.doc-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.doc-meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

/* Layout: contents on the left on wide screens */
.doc-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
}
.toc { display: none; }
@media (min-width: 960px) {
  .toc { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
}
.toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li, .toc-mobile li { counter-increment: toc; }
.toc a, .toc-mobile a {
  display: flex; gap: 10px; padding: 6px 10px; margin: 0 -10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4;
}
.toc a::before, .toc-mobile a::before { content: counter(toc); min-width: 18px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc-mobile a:hover { color: var(--text); background: var(--accent-soft); }

.toc-mobile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px;
  margin-bottom: 20px;
}
.toc-mobile summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--subtle); font-weight: 400; font-size: 20px; line-height: 1; }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { padding-bottom: 12px; }
@media (min-width: 960px) { .toc-mobile { display: none; } }

/* The document */
.doc { max-width: 720px; }
.doc > p:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text); }
.doc h2 {
  margin: 56px 0 12px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 24px; line-height: 1.25; letter-spacing: -0.01em;
}
.doc h3 { margin: 28px 0 6px; font-size: 18px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--subtle); }

.summary {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 32px;
}
.summary h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 18px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary .fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 24px; margin-top: 12px;
}
.contact-card p { margin: 0; }

/* Support page */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .wordmark { font-size: clamp(56px, 11vw, 96px); display: inline-block; }
.hero .tagline { margin: 14px 0 0; font-size: 14px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); }
.hero .lede { margin: 24px auto 0; max-width: 560px; font-size: 19px; color: var(--muted); }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; padding-bottom: 80px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; color: var(--text); text-decoration: none;
}
a.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .go { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 650; font-size: 15px; }
.steps { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--subtle); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer .wordmark { font-size: 20px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; width: 100%; }

/* Not found */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: 40px; margin: 0 0 12px; }
.not-found p { color: var(--muted); }

@media (max-width: 520px) {
  .site-nav a { padding: 8px 9px; font-size: 14px; }
  .site-header .wordmark { font-size: 22px; }
  .doc-hero { padding-top: 40px; }
}

@media print {
  .site-header, .toc, .toc-mobile, .site-footer { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc-layout { display: block; }
  .summary, .table-wrap, .contact-card { border-color: #ccc; background: #fff; }
  a { color: #000; }
}

/* ---------------------------------------------------------------------------------------------------
   Landing page (index.html): hero with the beta form, features, organizers, player card, FAQ.
   --------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--mint); color: var(--brand); font-family: inherit; font-size: 16px; font-weight: 650; line-height: 1; text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 122, 87, 0.25);
}
.btn:hover { filter: brightness(1.04); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.site-header .btn-small { margin-left: 8px; }


.landing-hero { display: grid; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
@media (min-width: 960px) { .landing-hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 88px; padding-bottom: 96px; } }
.landing-hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.03em; }
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero .lede { margin: 20px 0 0; font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 230, 207, 0.55), transparent); filter: blur(10px); z-index: 0;
}

.waitlist { margin-top: 32px; max-width: 520px; }
.waitlist form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type="email"], .waitlist input.name {
  flex: 1 1 240px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 16px;
}
.waitlist input.name { flex: 1 1 calc(50% - 5px); min-width: 0; }
.waitlist input[type="email"]:focus, .waitlist input.name:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .note { margin: 12px 0 0; font-size: 14px; color: var(--subtle); }
.waitlist .status { margin: 12px 0 0; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.waitlist .status.ok { color: var(--accent); }
.waitlist .status.err { color: #d14343; }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse .split-visual { order: -1; } }
.split-visual { display: flex; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7a57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 15px; }

.stat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stat-pills span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.stat-pills b { color: var(--text); font-weight: 700; margin-right: 6px; }

.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--subtle); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band {
  margin: 0 0 88px; padding: 56px 32px; border-radius: 28px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #1f6f50 0%, var(--brand) 55%, #071d14 100%);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto; max-width: 520px; color: rgba(255, 255, 255, 0.78); }
.cta-band .waitlist { margin: 28px auto 0; }
.cta-band .waitlist input[type="email"], .cta-band .waitlist input.name { border-color: transparent; }
.cta-band .waitlist .note { color: rgba(255, 255, 255, 0.6); }
.cta-band .waitlist .status.ok { color: var(--mint); }
.cta-band .waitlist .status.err { color: #ffb4b4; }

/* Phone mockups: the app's screens in its dark Night Pitch theme, drawn in HTML. */
.phone {
  position: relative; z-index: 1; width: 300px; aspect-ratio: 9 / 19.5; padding: 11px; border-radius: 50px;
  background: #0a0e14; box-shadow: 0 0 0 2px #2a313c inset, 0 30px 60px rgba(14, 26, 43, 0.28);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 40px; background: #0b1524; color: #e8eef6;
  font-size: 12px; line-height: 1.35;
}
.screen .island { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.screen .status-bar { display: flex; justify-content: space-between; padding: 14px 26px 0; font-weight: 650; font-size: 13px; height: 46px; }
.screen .bar-title { text-align: center; font-weight: 700; font-size: 15px; padding: 2px 0 10px; }
.screen .content { padding: 0 14px; display: grid; gap: 10px; }
.screen .label { font-size: 13px; font-weight: 700; color: #e8eef6; margin: 4px 2px 0; }
.app-card { background: #14223a; border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.app-card .title { font-size: 15px; font-weight: 700; }
.app-card .row { display: flex; align-items: center; gap: 7px; color: #a3b1c6; }
.app-card .row i { width: 12px; height: 12px; border-radius: 3px; background: #2a3c5c; flex: none; }
.app-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.avatars { display: flex; }
.avatars span {
  width: 22px; height: 22px; border-radius: 50%; margin-left: -6px; border: 2px solid #14223a;
  display: grid; place-items: center; font-size: 8px; font-weight: 700; color: #0e3b2a; background: #a8e6cf;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: #ffd3a8; }
.avatars span:nth-child(3) { background: #9fb7e8; }
.avatars em { font-style: normal; color: #a3b1c6; margin-left: 6px; font-size: 11px; align-self: center; }
.pill-btn { background: #a8e6cf; color: #0e3b2a; font-weight: 700; border-radius: 999px; padding: 6px 16px; font-size: 12px; }
.badge-soon { display: inline-block; background: rgba(255, 196, 92, 0.16); color: #ffc45c; font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 999px; }
.vote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vote span { text-align: center; padding: 7px 0; border-radius: 10px; background: #1c2d4a; color: #a3b1c6; font-weight: 700; }
.vote span.on { background: #2f9e6e; color: #fff; }
.mini-rows { background: #14223a; border-radius: 16px; }
.mini-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #22324c; }
.mini-row:last-child { border-bottom: 0; }
.mini-row .date { width: 34px; text-align: center; background: #1c2d4a; border-radius: 8px; padding: 3px 0; font-size: 9px; color: #a3b1c6; line-height: 1.2; }
.mini-row .date b { display: block; font-size: 14px; color: #e8eef6; }
.mini-row .t { font-weight: 650; font-size: 13px; }
.mini-row .s { color: #a3b1c6; font-size: 11px; }
.tab-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 56px; border-radius: 28px;
  background: rgba(30, 44, 68, 0.92); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center;
  font-size: 9px; color: #a3b1c6;
}
.tab-bar span::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 3px; border-radius: 6px; background: #3a4d6e; }
.tab-bar span.on { color: #a8e6cf; }
.tab-bar span.on::before { background: #a8e6cf; }
.team-banner {
  height: 92px; margin: -46px -14px 0; padding-top: 46px;
  background: linear-gradient(180deg, #1c6b4c, #0e3b2a);
  background-image: linear-gradient(90deg, transparent 49.6%, rgba(255,255,255,0.18) 49.6%, rgba(255,255,255,0.18) 50.4%, transparent 50.4%), linear-gradient(180deg, #1c6b4c, #0e3b2a);
}
.team-id { display: flex; align-items: center; gap: 10px; margin-top: -22px; position: relative; }
.crest {
  width: 46px; height: 52px; flex: none; background: #0e3b2a; border: 2px solid #a8e6cf;
  clip-path: polygon(50% 100%, 0 70%, 0 0, 100% 0, 100% 70%); display: grid; place-items: center;
  color: #ffd3a8; font-weight: 800; font-size: 13px; padding-bottom: 6px;
}
.team-id .name { font-size: 16px; font-weight: 800; }
.team-id .sub { color: #a3b1c6; font-size: 11px; }
.attention { display: flex; align-items: center; gap: 8px; }
.attention .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffc45c; flex: none; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: #14223a; border-radius: 14px; padding: 10px 12px; }
.tile b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.tile span { color: #a3b1c6; font-size: 10px; }

/* The player card (gold tier), like the app's. */
.player-card {
  position: relative; z-index: 1; width: 280px; aspect-ratio: 5 / 7; border-radius: 28px; padding: 22px 22px 18px;
  color: #ffe7cf; background: linear-gradient(170deg, #1c4d3a 0%, #0b2a1d 60%, #06170f 100%);
  box-shadow: 0 0 0 1px rgba(255, 211, 168, 0.35) inset, 0 30px 60px rgba(6, 23, 15, 0.45);
  display: grid; grid-template-rows: auto 1fr auto auto; transform: rotate(-3deg);
}
.player-card::after {
  content: ""; position: absolute; inset: 8px; border-radius: 22px; border: 1px solid rgba(255, 211, 168, 0.25); pointer-events: none;
}
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-ovr { font-size: 46px; font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; }
.pc-pos { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: #ffd3a8; margin-top: 4px; }
.pc-tier { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; background: #ffd3a8; color: #0e3b2a; padding: 4px 9px; border-radius: 999px; }
.pc-avatar {
  justify-self: center; align-self: center; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2e9a70, #145a40); display: grid; place-items: center;
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 42px; color: #ffe7cf;
}
.pc-name { text-align: center; font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 30px; letter-spacing: 0.02em; margin: 6px 0 10px; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; padding-top: 10px; border-top: 1px solid rgba(255, 211, 168, 0.3); font-size: 15px; }
.pc-stats div { display: flex; gap: 8px; }
.pc-stats b { min-width: 24px; font-weight: 800; }
.pc-stats span { color: #ffd3a8; font-weight: 700; letter-spacing: 0.06em; }

.section-head .eyebrow { margin: 0 0 10px; font-size: 13px; color: var(--accent); }
.features-2 { align-content: center; }
@media (min-width: 720px) { .features-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features-2 { grid-template-columns: 1fr 1fr; } }

.card-pair { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; }
.card-pair img { position: absolute; width: 62%; height: auto; filter: drop-shadow(0 24px 40px rgba(14, 26, 43, 0.25)); }
.card-pair .card-back { left: 2%; top: 6%; transform: rotate(-8deg); opacity: 0.95; }
.card-pair .card-front { right: 2%; top: 0; transform: rotate(5deg); }
.site-nav a.btn, .site-nav a.btn:hover { color: var(--brand); background: var(--mint); padding: 0 16px; }
.waitlist .status:empty { display: none; }

/* Full-screen pages on the landing page (html.snap): each section fills the screen below the header and a
   scroll snaps to the next. Forced on large screens, where every section fits; gentle on phones, where
   sections are taller than one screen. Phone mockups scale to the screen height so a section fits. */
:root { --header-h: 64px; }
html.snap { scroll-snap-type: y proximity; scroll-padding-top: var(--header-h); }
@media (min-width: 960px) and (min-height: 640px) {
  html.snap { scroll-snap-type: y mandatory; }
}
.page {
  min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start; padding: 48px 0;
}
.page.section { padding: 48px 0; }
.page .landing-hero { padding-top: 0; padding-bottom: 0; width: 100%; }
.snap .site-footer { scroll-snap-align: end; }
.page .phone { width: min(300px, calc((100svh - var(--header-h) - 120px) * 9 / 19.5)); }
.page .card-pair { width: min(420px, 100%, calc(100svh - var(--header-h) - 120px)); }
.page .section-head { margin-bottom: 28px; }
.page-cta .cta-band { margin: 0; padding: 88px 32px; }
.page-cta .cta-band h2 { font-size: clamp(32px, 5vw, 52px); }
.page-cta .cta-band p { font-size: 19px; }
#support .card { padding: 20px 24px; }
.page > .wrap { width: 100%; }
/* The drawn mockup has fixed-size contents: scale the whole phone on shorter screens instead. */
.page .phone.drawn { width: 300px; }
@media (max-height: 860px) { .page .phone.drawn { zoom: 0.88; } }
@media (max-height: 780px) { .page .phone.drawn { zoom: 0.78; } }
@media (max-height: 700px) { .page .phone.drawn { zoom: 0.68; } }

/* Phones: designed for scrolling, not shrunk from the desktop layout. The hero fills the first screen;
   the other sections take their natural height. */
@media (max-width: 719px) {
  html.snap { scroll-snap-type: none; }
  .page:not(#join) { min-height: 0; }
  .page.section { padding: 64px 0; }
  .site-nav a:not(.btn) { display: none; }
  .site-header .btn-small { margin-left: 0; height: 36px; padding: 0 16px; }

  #join { min-height: calc(100svh - var(--header-h)); padding: 36px 0 48px; }
  .landing-hero { gap: 36px; text-align: center; }
  .landing-hero h1 { font-size: 38px; }
  .landing-hero .lede { font-size: 17px; margin-left: auto; margin-right: auto; }
  .waitlist { margin-left: auto; margin-right: auto; }
  .waitlist form { flex-direction: column; }
  .waitlist input[type="email"], .waitlist input.name, .waitlist .btn { flex: none; width: 100%; height: 52px; }
  .waitlist input[type="email"], .waitlist input.name { text-align: center; }
  .page .phone { width: min(250px, 66vw); }
  .page .phone.drawn { width: 300px; zoom: 0.84; }

  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 30px; }
  .section-head p { font-size: 17px; }
  .split { gap: 32px; }
  .split-text { display: contents; }
  #features .split > .split-text > .section-head { order: 1; margin-bottom: 0; }
  #features .split > .split-visual { order: 2; }
  #features .split > .split-text > .features { order: 3; }
  .features { gap: 10px; }
  .feature { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 16px; }
  .feature .icon { grid-row: span 2; width: 40px; height: 40px; margin: 2px 0 0; }
  .feature h3 { font-size: 16px; margin-bottom: 2px; }

  .checks { gap: 12px; margin-top: 20px; }
  .card-pair { width: min(340px, 92vw); }
  .stat-pills { gap: 8px; }
  .stat-pills span { font-size: 13px; padding: 7px 12px; }

  .faq summary { padding: 16px 0; }

  .page-cta { padding: 16px 0 56px; }
  .page-cta .cta-band { padding: 48px 20px; border-radius: 24px; }
  .page-cta .cta-band h2 { font-size: 32px; }
  .page-cta .cta-band p { font-size: 16px; }

  #support .cards { gap: 10px; }
  #support .card { padding: 18px 20px; }
  .card h2 { font-size: 17px; }

  .site-footer { padding: 28px 0 40px; }
  .site-footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
  .site-footer nav { justify-content: center; }
}
.landing-hero h1 span, .landing-hero h1 em { display: block; white-space: nowrap; }

.waitlist .cf-turnstile { width: 100%; }
