/* Steadion landing page. Plain CSS: no build step, no third-party requests. */

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #eaf1ee;
  --ink: #0e1d19;
  --muted: #44574f;
  --line: rgba(14, 29, 25, 0.12);
  /* App teal is for fills and graphics. Text and links use the darker --accent-ink (AA on every light surface). */
  --accent: #12a594;
  --accent-ink: #0a7266;
  --focus: #0a7266;
  /* From the app icon ("Target Band"). */
  --hero-1: #111827;
  --hero-2: #1e3a2f;
  --band: #22c55e;
  --mint: #4ade80;
  --on-hero: #f2f7f4;
  --on-hero-muted: #b9c9c1;
  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1311;
    --surface: #101c19;
    --surface-2: #16251f;
    --ink: #e9f2ee;
    --muted: #a8b9b1;
    --line: rgba(233, 242, 238, 0.14);
    --accent-ink: #2dd4c4;
    --focus: #2dd4c4;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.skip:focus { top: 12px; }

h1 {
  font: 400 clamp(2.9rem, 7.4vw, 4.6rem) / 1 var(--font-display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--mint); }
h2 {
  font: 400 clamp(2.1rem, 4.6vw, 3.3rem) / 1.05 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 {
  font: 400 clamp(1.7rem, 3vw, 2.3rem) / 1.1 var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.eyebrow {
  font: 600 0.78rem / 1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- Dark bands (hero, privacy, closing) ---------- */
.hero, .band-dark {
  color: var(--on-hero);
  background: linear-gradient(155deg, var(--hero-1), var(--hero-2));
  --focus: var(--mint);
}
.hero a, .band-dark a { color: var(--mint); }
.hero .eyebrow, .band-dark .eyebrow { color: var(--mint); }

/* ---------- Header + hero ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: 22px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.05rem / 1 var(--font-body); letter-spacing: 0.01em;
  color: var(--on-hero); text-decoration: none;
}
.brand img { border-radius: 9px; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% 12%, rgba(74, 222, 128, 0.16), transparent 60%),
    linear-gradient(155deg, var(--hero-1), var(--hero-2));
}
.hero__grid { display: grid; gap: 32px; padding-top: 104px; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.lede { max-width: 36em; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--on-hero-muted); }

.cta { display: grid; gap: 10px; margin-top: 6px; }
.cta__soon {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600; color: var(--on-hero);
}
.cta__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.cta__note { font-size: 0.92rem; color: var(--on-hero-muted); }

/* Phone frame: CSS only, bleeds off the bottom of its container. */
.stage { position: relative; padding-top: 8px; }
.stage__art {
  position: absolute; left: 50%; top: 14%;
  width: 130%; max-width: none; height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
.phone {
  position: relative; z-index: 1;
  width: min(100%, 300px); margin-inline: auto;
  padding: 10px 10px 0;
  background: #0a0d12;
  border-radius: 46px 46px 0 0;
  box-shadow:
    inset 0 0 0 2px #2b3441,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%;
  width: 30%; height: 26px; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}
.phone__screen { border-radius: 36px 36px 0 0; overflow: hidden; background: #fff; }
.phone__screen img { width: 100%; height: auto; }
.stage .phone { width: min(100%, 300px); }

/* Hero motif: a line settles into the target band and lands on a mint dot. */
.trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dot {
  opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4);
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.9));
  animation: pop 0.6s 1.9s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; stroke-dashoffset: 0; }
  .dot { animation: none; opacity: 1; transform: none; }
}

@media (min-width: 920px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center; gap: 56px; padding-top: 128px;
  }
  .hero__copy { padding-bottom: 96px; }
  .stage { align-self: end; }
  .stage .phone { width: min(100%, 400px); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--surface-2); }
.section__head { display: grid; gap: 14px; max-width: 40rem; margin-bottom: clamp(36px, 6vw, 64px); }

.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature__copy { display: grid; gap: 14px; max-width: 32rem; }
.feature__copy p:not(.eyebrow) { color: var(--muted); }

.panel {
  position: relative; overflow: hidden;
  display: grid; justify-items: center;
  padding: 36px 24px 0;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.panel::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: 34%; height: 26%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.16) 14%, rgba(34, 197, 94, 0.16) 86%, transparent);
}
.panel--dark { border-color: transparent; background: linear-gradient(155deg, var(--hero-1), var(--hero-2)); padding-bottom: 36px; }
.panel--dark::before { display: none; }

.illo { position: relative; width: min(100%, 400px); height: auto; }
.illo__num { font: 700 44px var(--font-body); fill: var(--mint); }
.illo__unit { font: 500 13px var(--font-body); fill: #9fb3aa; }
.illo__lab { font: 600 13px var(--font-body); fill: #0d1b17; }

@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature--flip .feature__copy { order: 2; }
}

.rule {
  position: relative; height: 12px; margin: clamp(56px, 8vw, 96px) auto 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.22) 10%, rgba(34, 197, 94, 0.22) 90%, transparent);
  border-radius: 999px;
}
.rule::after {
  content: ""; position: absolute; right: 9%; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--band); box-shadow: 0 0 14px rgba(34, 197, 94, 0.7);
}

/* Details grid */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tile {
  display: grid; gap: 10px; align-content: start;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
}
.tile h3 { font: 600 1.1rem / 1.3 var(--font-body); letter-spacing: 0; }
.tile p { color: var(--muted); font-size: 1rem; }
/* Stroke styling lives here, not in the sprite: a <use> instance inherits from the <use> element. */
.icon {
  width: 28px; height: 28px; color: var(--accent-ink);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Privacy band */
.facts { display: grid; gap: 28px; margin-top: 40px; }
.fact { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid rgba(74, 222, 128, 0.5); }
.fact h3 { font: 600 1.1rem / 1.3 var(--font-body); letter-spacing: 0; color: var(--on-hero); }
.fact p { color: var(--on-hero-muted); }
.band-dark .note { margin-top: 32px; color: var(--on-hero-muted); }
.band-dark .note a { font-weight: 600; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* FAQ */
.faq-layout { display: grid; gap: 32px 72px; }
.faq-layout .section__head { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
@media (min-width: 860px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); align-items: start; }
}
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: transform 0.2s; }
}
details p { padding: 0 22px 20px; color: var(--muted); }

/* Closing CTA + footer */
.closing { padding-block: clamp(64px, 9vw, 104px) 48px; }
.final__inner { display: grid; gap: 24px; justify-items: start; padding-bottom: clamp(40px, 6vw, 64px); }
.footer__inner {
  display: grid; gap: 18px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-hero-muted); font-size: 0.92rem;
}
.footer__disclaimer { max-width: 52rem; }
.footer__inner nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__inner nav a { display: inline-block; padding: 8px 0; font-weight: 600; }
.footer__inner small { font-size: 0.85rem; }
.footer__inner nav a[aria-current="page"] { text-decoration-thickness: 3px; }

/* ---------- Document pages (privacy, support) ---------- */
/* The absolute .site-header sits over this band, hence the top padding. */
.doc-head { padding-block: 116px clamp(36px, 6vw, 56px); }
.doc-head .wrap { display: grid; gap: 10px; }
.doc-head h1 { font-size: clamp(2.4rem, 6.4vw, 3.6rem); }
.doc-head__meta { color: var(--on-hero-muted); font-size: 0.95rem; }

.doc { width: min(100% - 40px, 46rem); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc > * + * { margin-top: 1.1em; }
.doc h2 { margin-top: 2.2em; font: 400 clamp(1.7rem, 3vw, 2.1rem) / 1.15 var(--font-display); letter-spacing: -0.005em; }
.doc h2 + * { margin-top: 0.6em; }
.doc h3 { margin-top: 1.7em; font: 600 1.05rem / 1.4 var(--font-body); }
.doc h3 + * { margin-top: 0.4em; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5em; }
.doc strong { font-weight: 650; }

.closing--slim { padding-block: clamp(40px, 6vw, 56px) 48px; }
.closing--slim .footer__inner { padding-top: 0; border-top: 0; }
