/* GoStreak marketing site — shared styles.
   Dark-first, mirrors the app's "calm · premium · alive" identity.
   No build step, no framework. Every page is static server-rendered HTML. */

:root {
  --ground: #08060F;
  --surface: #120F22;
  --surface-2: #1A1530;
  --ink: #EDECFA;
  --ink-dim: #9C98BA;
  --ink-faint: #6C688A;
  --line: #241F3A;
  --accent: #9384FF;
  --accent-ink: #08060F;
  --accent-soft: #1C1636;
  --go: #2ED88C;
  --warn: #FFA43A;
  --stop: #FF6E90;
  --maxw: 46rem;
  --wide: 64rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #FBFAFE;
    --surface: #FFFFFF;
    --surface-2: #F1EFF8;
    --ink: #191626;
    --ink-dim: #5C5776;
    --ink-faint: #8B86A5;
    --line: #E5E2F0;
    --accent: #5A48D6;
    --accent-ink: #FFFFFF;
    --accent-soft: #EEEBFB;
    --go: #128A57;
    --warn: #A9660A;
    --stop: #C82F55;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.16;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem); font-weight: 600; line-height: 1.06; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); font-weight: 600; }
p { margin: 0; }
strong { font-weight: 600; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* ---- layout ---- */
.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 0.6rem + 2vw, 2rem);
}
.site.wide { max-width: var(--wide); }

main { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 5rem; display: flex; flex-direction: column; gap: clamp(2.6rem, 2rem + 2vw, 3.8rem); }
section { display: flex; flex-direction: column; gap: 1rem; }
.prose { max-width: 63ch; }
.prose > * + * { margin-top: 0.9rem; }

/* ---- header / nav ---- */
.nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem clamp(1.1rem, 0.6rem + 2vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand b { color: var(--accent); }
.nav-links { display: flex; gap: 1.1rem 1.4rem; flex-wrap: wrap; font-size: 0.92rem; }
.nav-links a { color: var(--ink-dim); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.note { font-size: 0.82rem; color: var(--ink-faint); }

/* ---- hero ---- */
.hero { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.5rem; }
.hero p.stand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-dim);
  max-width: 34ch;
}

/* ---- feature grid ---- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid > .cell { background: var(--surface); padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.cell h3 { font-family: "IBM Plex Sans", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.cell p { font-size: 0.9rem; color: var(--ink-dim); }
.cell .k {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem;
  color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---- callout ---- */
.callout {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.callout .eyebrow { color: var(--accent); }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 34rem; }
caption { text-align: left; font-size: 0.8rem; color: var(--ink-faint); padding: 0.6rem 0.85rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th {
  font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--surface-2);
}
tbody tr:last-child td { border-bottom: none; }
td:first-child, th:first-child { font-weight: 600; }
.yes { color: var(--go); font-weight: 600; }
.no { color: var(--ink-faint); }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 1.6rem; }
.faq .qa { display: flex; flex-direction: column; gap: 0.5rem; }
.faq h2 { font-size: 1.2rem; font-family: "IBM Plex Sans", sans-serif; font-weight: 700; letter-spacing: 0; }
.faq p { color: var(--ink-dim); max-width: 62ch; }

/* ---- glossary ---- */
.terms { display: flex; flex-direction: column; gap: 1.7rem; }
.term { display: flex; flex-direction: column; gap: 0.5rem; }
.term h2 { font-size: 1.15rem; font-family: "IBM Plex Sans", sans-serif; font-weight: 700; letter-spacing: 0; }
.term p { color: var(--ink-dim); max-width: 62ch; }
.term .src { font-size: 0.78rem; color: var(--ink-faint); }

/* ---- misc ---- */
hr { border: none; border-top: 1px solid var(--line); margin: 0; }
.q {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; padding: 0.12rem 0.45rem; color: var(--ink-dim);
  display: inline-block; line-height: 2;
}
.updated { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.04em; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 0.6rem + 2vw, 2rem) 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-faint);
}
.foot a { color: var(--ink-dim); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .cols { display: flex; gap: 1.5rem 2rem; flex-wrap: wrap; }

@media (max-width: 40rem) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
