/* MemoryAI — marketing site
   Palette and type are deliberately the app's own: the indigo is Theme.accent
   straight out of the iOS design system, so the site and the product do not
   look like two different things. */

:root {
  --paper:     #FAFAFC;
  --surface:   #FFFFFF;
  --sunk:      #F1F0F6;
  --ink:       #14131A;
  --muted:     #605D6E;
  --hairline:  #E4E2EC;
  --accent:    #3A3699;
  --accent-sunk:#EDECF8;
  /* Six hues, used consistently: indigo is the brand, emerald means "yours",
     amber means "paused", pink and violet carry the trial, teal the details. */
  --c-indigo:  #4F46E5;   /* 5.6:1 on paper */
  --c-violet:  #6D28D9;   /* 7.4 */
  --c-pink:    #BE185D;   /* 5.4 */
  --c-amber:   #B45309;   /* 4.8 */
  --c-teal:    #0F766E;   /* 5.3 */
  --c-emerald: #047857;   /* 4.9 */
  --wash: 14%;
  --good:      #1B6349;
  --warn:      #8A5A12;
  --shadow:    0 1px 2px rgba(20,19,26,.05), 0 8px 24px -12px rgba(20,19,26,.12);

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #111017;
    --surface:   #1A1922;
    --sunk:      #201F2A;
    --ink:       #EFEEF4;
    --muted:     #A6A3B6;
    --hairline:  #2C2A38;
    --accent:    #A9A5F7;
    --accent-sunk:#241F3E;
  --c-indigo:  #A5B4FC;
  --c-violet:  #C4B5FD;
  --c-pink:    #F9A8D4;
  --c-amber:   #FBBF24;
  --c-teal:    #5EEAD4;
  --c-emerald: #6EE7B7;
  --wash: 18%;
    --good:      #77D5AF;
    --warn:      #F0C078;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper:     #111017;
  --surface:   #1A1922;
  --sunk:      #201F2A;
  --ink:       #EFEEF4;
  --muted:     #A6A3B6;
  --hairline:  #2C2A38;
  --accent:    #A9A5F7;
  --accent-sunk:#241F3E;
  --c-indigo:  #A5B4FC;
  --c-violet:  #C4B5FD;
  --c-pink:    #F9A8D4;
  --c-amber:   #FBBF24;
  --c-teal:    #5EEAD4;
  --c-emerald: #6EE7B7;
  --wash: 18%;
  --good:      #77D5AF;
  --warn:      #F0C078;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { 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(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

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

/* ── nav ─────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
.brand svg { display: block; }
nav .links { display: flex; gap: 22px; font-size: 15px; }
nav .links a { color: var(--muted); text-decoration: none; }
nav .links a:hover { color: var(--ink); }

/* ── hero ────────────────────────────────────────────────── */
header.hero { padding: 56px 0 12px; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 16ch;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent); }
.standfirst {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 30px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 10px;
  border: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline);
}
.cta-note { font-size: 14px; color: var(--muted); }

/* ── the worked example ──────────────────────────────────── */
.example {
  margin: 52px 0 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}
.example .panel { display: flex; flex-direction: column; }
.example .snap { margin: auto 0; }
.example .arrow { display: flex; align-items: center; justify-content: center; }
.example .arrow-legacy { color: var(--muted); font-size: 22px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel .label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.snap { font-size: 15px; color: var(--muted); font-style: italic; }
.rows { display: flex; flex-direction: column; gap: 9px; }
.row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.row dt { color: var(--muted); }
.row dd { margin: 0; font-weight: 500; text-align: right; }
.flag {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--hairline);
  font-size: 14.5px; color: var(--good); font-weight: 500;
}

/* ── sections ────────────────────────────────────────────── */
section { padding: 68px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: none; }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -0.02em; line-height: 1.12;
  margin: 0 0 14px; text-wrap: balance;
}
.lede { color: var(--muted); max-width: var(--measure); margin: 0 0 34px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 7px;
}
.card h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ico { color: var(--accent); font-size: 19px; line-height: 1; margin-bottom: 3px; }

/* ── ask examples ────────────────────────────────────────── */
.qa { display: flex; flex-direction: column; gap: 1px;
      background: var(--hairline); border: 1px solid var(--hairline);
      border-radius: 12px; overflow: hidden; }
.qa .pair { background: var(--surface); padding: 17px 20px; display: flex;
            flex-direction: column; gap: 5px; }
.qa .q { font-weight: 600; font-size: 15.5px; }
.qa .q::before { content: "“"; color: var(--muted); }
.qa .q::after { content: "”"; color: var(--muted); }
.qa .a { color: var(--muted); font-size: 15px; }

/* ── privacy list ────────────────────────────────────────── */
.plain { list-style: none; margin: 0; padding: 0;
         display: flex; flex-direction: column; gap: 14px; max-width: var(--measure); }
.plain li { padding-left: 26px; position: relative; color: var(--muted); }
.plain li strong { color: var(--ink); font-weight: 600; }
.plain li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ── prose (privacy / support pages) ─────────────────────── */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 24px; margin-top: 42px; }
.prose h3 { font-size: 17px; margin: 28px 0 8px; font-weight: 600; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ── footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--hairline); padding: 34px 0 60px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--muted);
}
footer a { color: var(--muted); }
footer .cols { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .example { grid-template-columns: 1fr; }
  .example .arrow { transform: rotate(90deg); justify-self: center; }
}


/* ---------- pricing: the receipt ────────────────────────────
   There is one plan, so a plan-comparison grid would be two
   columns of nothing. A receipt is the honest shape for a single
   price — and it is the only layout that can show what is NOT on
   the bill, which is most of what people want to know. */

.till {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: 56px;
  align-items: start;
  padding-bottom: 8px;
}
.till .say { padding-top: 6px; }
.till h1 { max-width: 13ch; }
.till .standfirst { margin-bottom: 26px; }

.receipt-shell { filter: drop-shadow(0 16px 32px rgba(20,19,26,.17)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .receipt-shell {
    filter: drop-shadow(0 16px 36px rgba(0,0,0,.65));
  }
}
:root[data-theme="dark"] .receipt-shell {
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.65));
}

/* Torn top and bottom edge. Masked rather than bordered, so the
   teeth cut the card instead of being drawn on top of it. */
.receipt {
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  padding: 36px 26px 30px;
  --t: 16px; --h: 8px;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg)
      50% 100% / var(--t) var(--h) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg)
      50% 0 / var(--t) var(--h) repeat-x,
    linear-gradient(#000 0 0) 50% 50% / 100% calc(100% - 2*var(--h)) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg)
      50% 100% / var(--t) var(--h) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg)
      50% 0 / var(--t) var(--h) repeat-x,
    linear-gradient(#000 0 0) 50% 50% / 100% calc(100% - 2*var(--h)) no-repeat;
}

.receipt .top { text-align: center; margin-bottom: 20px; }
.receipt .top .mark {
  font-family: var(--display); font-size: 21px; font-weight: 600;
  letter-spacing: -.02em; display: block; line-height: 1.2;
}
.receipt .top .sub {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

.rhead {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px;
}
.rrule { border: 0; border-top: 1px dashed var(--hairline); margin: 14px 0; }
.rrule.hard { border-top-style: solid; border-top-color: var(--ink); opacity: .32; }

.rline { display: flex; align-items: baseline; gap: 7px; }
.rline .lbl { white-space: nowrap; }
.rline .dots {
  flex: 1 1 auto; min-width: 10px;
  border-bottom: 1px dotted var(--hairline);
  transform: translateY(-4px);
}
.rline .amt {
  white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted);
}
.rline .qty { color: var(--muted); }
.rline.item .lbl { color: var(--ink); }
.rline.item .amt { color: var(--ink); }
.rline.nil .amt { color: var(--good); }
.rline.nil .lbl { color: var(--muted); }

.rtotal { margin-top: 2px; }
.rtotal .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
}
.rtotal .amt {
  font-family: var(--display); font-size: 30px; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
}
.rtrial { margin-top: 6px; }
.rtrial .amt { color: var(--good); font-weight: 500; }

.rnote {
  font-size: 11px; line-height: 1.75; color: var(--muted);
  text-align: center; margin: 16px 0 0;
}
.rstamp {
  margin: 18px 0 0; text-align: center;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px dashed var(--accent); border-radius: 4px;
  padding: 7px 4px;
}
.barcode {
  height: 42px; margin: 20px 0 6px; opacity: .85;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 13px, transparent 13px 15px);
}
.bcnum {
  text-align: center; font-size: 9.5px; letter-spacing: .34em;
  color: var(--muted); margin: 0;
}

/* The one thing a receipt can say that a pricing table cannot. */
.not-on-bill { margin-top: 2px; }

@media (max-width: 880px) {
  .till { grid-template-columns: 1fr; gap: 34px; }
  .till h1 { max-width: 16ch; }
  .receipt-shell { max-width: 420px; }
}

/* ── the trial band ──────────────────────────────────────── */
.band {
  background: var(--accent-sunk);
  border-radius: 14px;
  padding: 26px 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
}
.band .big {
  font-family: var(--display); font-size: clamp(40px, 7vw, 58px);
  font-weight: 600; line-height: .95; letter-spacing: -.03em; color: var(--accent);
}
.band .big small { display: block; font-size: 12px; font-family: var(--mono);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  color: var(--muted); margin-top: 6px; }
.band p { margin: 0; color: var(--ink); max-width: 54ch; }
.band p + p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 620px) {
  .band { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
}

/* ── what happens at the end, as a two-state thing ───────── */
.states { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .states { grid-template-columns: 1fr; } }
.state {
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 22px; background: var(--surface);
}
.state.keep { border-color: color-mix(in srgb, var(--good) 45%, var(--hairline)); }
.state h3 {
  margin: 0 0 12px; font-size: 12px; font-family: var(--mono);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted);
}
.state ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px; }
.state li { display: grid; grid-template-columns: 18px 1fr; gap: 9px;
  font-size: 15px; align-items: start; }
.state.keep li b { color: var(--good); font-weight: 700; }
.state.stop li b { color: var(--muted); font-weight: 700; }

/* Keeps the left column from being dead space beside a tall receipt. */
.assure {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px; max-width: 46ch;
}
.assure li {
  position: relative; padding-left: 22px;
  color: var(--muted); font-size: 15px; line-height: 1.55;
}
.assure li b { color: var(--ink); font-weight: 600; display: block; }
.assure li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 880px) { .assure { margin-top: 30px; } }


/* ══ colour ═══════════════════════════════════════════════════
   The page was one indigo on off-white and it read like a
   spreadsheet. These are the same six hues throughout, each one
   meaning a consistent thing, so the colour carries information
   rather than just brightening the page. */

/* Soft light behind everything. Fixed, so it does not scroll with
   the content and never sits on top of anything readable. */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58vw 46vh at 10% -6%,
      color-mix(in srgb, var(--c-violet) 34%, transparent), transparent 68%),
    radial-gradient(52vw 44vh at 94% 4%,
      color-mix(in srgb, var(--c-pink) 26%, transparent), transparent 68%),
    radial-gradient(46vw 42vh at 74% 48%,
      color-mix(in srgb, var(--c-amber) 20%, transparent), transparent 66%),
    radial-gradient(50vw 44vh at 6% 78%,
      color-mix(in srgb, var(--c-teal) 22%, transparent), transparent 68%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aurora { opacity: .5; }
}
:root[data-theme="dark"] .aurora { opacity: .5; }

/* Ink over a tinted ground still has to clear contrast, so panels
   stay opaque and only the page behind them is coloured. */
.panel, .card, .state, .receipt, .qa .pair { background: var(--surface); }

h1 em {
  background: linear-gradient(100deg, var(--c-indigo), var(--c-pink) 60%, var(--c-amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--c-pink);
}

.btn {
  background: linear-gradient(135deg, var(--c-indigo), var(--c-violet) 55%, var(--c-pink));
  color: #fff;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--c-violet) 70%, transparent);
}
.btn.ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c-indigo) 35%, var(--hairline));
  box-shadow: none;
}

/* ── the receipt, in colour ──────────────────────────────── */
.receipt .top { position: relative; padding-bottom: 14px; }
.receipt .top::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--c-indigo), var(--c-violet), var(--c-pink), var(--c-amber), var(--c-teal));
}
.receipt .top .mark {
  background: linear-gradient(100deg, var(--c-indigo), var(--c-violet) 55%, var(--c-pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Each block of the bill gets its own hue, so the eye can tell
   "what you get" from "what you are not charged for" at a glance. */
.rhead { color: var(--c-violet); font-weight: 500; }
.rhead.paid  { color: var(--c-indigo); }
.rhead.free  { color: var(--c-emerald); }

.rline.item .amt { color: var(--c-indigo); font-weight: 500; }
.rline .amt { color: var(--c-teal); }
.rline.nil .amt { color: var(--c-emerald); font-weight: 500; }
.rrule.hard { border-top-color: var(--c-indigo); opacity: .5; }
.rtotal .lbl { color: var(--c-indigo); }
.rtotal .amt {
  background: linear-gradient(100deg, var(--c-indigo), var(--c-pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rtrial .amt { color: var(--c-emerald); }
.rstamp {
  color: var(--c-pink); border-color: color-mix(in srgb, var(--c-pink) 55%, transparent);
  background: color-mix(in srgb, var(--c-pink) var(--wash), transparent);
}
.barcode {
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 13px, transparent 13px 15px);
}

/* Three reassurances, three colours, matching the sections they
   point at further down the page. */
.assure li:nth-child(1)::before { background: var(--c-violet); }
.assure li:nth-child(2)::before { background: var(--c-emerald); }
.assure li:nth-child(3)::before { background: var(--c-teal); }

/* ── the trial band ──────────────────────────────────────── */
.band {
  background: linear-gradient(120deg, var(--c-indigo), var(--c-violet) 45%, var(--c-pink));
  color: #fff;
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c-violet) 85%, transparent);
}
.band .big { color: #fff; }
.band .big small { color: rgba(255,255,255,.75); }
.band p { color: rgba(255,255,255,.94); }
.band p + p { color: rgba(255,255,255,.76); }
.band strong { color: #fff; }

/* ── keeps / pauses ──────────────────────────────────────── */
.state.keep {
  border-color: color-mix(in srgb, var(--c-emerald) 45%, var(--hairline));
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              color-mix(in srgb, var(--c-emerald) 7%, var(--surface));
}
.state.stop {
  border-color: color-mix(in srgb, var(--c-amber) 40%, var(--hairline));
  background: color-mix(in srgb, var(--c-amber) 6%, var(--surface));
}
.state.keep h3 { color: var(--c-emerald); }
.state.stop h3 { color: var(--c-amber); }
.state.keep li b { color: var(--c-emerald); }
.state.stop li b { color: var(--c-amber); }

/* ── section headings get a coloured rule ────────────────── */
section > h2 { position: relative; padding-top: 18px; }
section > h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 44px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-indigo), var(--c-pink));
}
section:nth-of-type(3n+2) > h2::before {
  background: linear-gradient(90deg, var(--c-teal), var(--c-emerald));
}
section:nth-of-type(3n) > h2::before {
  background: linear-gradient(90deg, var(--c-amber), var(--c-pink));
}

/* FAQ questions, marked rather than merely bold. */
.prose h3 { color: var(--ink); position: relative; padding-left: 16px; }
.prose h3::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-violet);
}
.prose h3:nth-of-type(3n+2)::before { background: var(--c-teal); }
.prose h3:nth-of-type(3n)::before   { background: var(--c-amber); }

/* Home page: the same hues on the feature cards and answers. */
.card .ico { color: var(--c-violet); }
.card:nth-child(3n+2) .ico { color: var(--c-teal); }
.card:nth-child(3n) .ico   { color: var(--c-pink); }
.plain li:nth-child(3n+1)::before { background: var(--c-indigo); }
.plain li:nth-child(3n+2)::before { background: var(--c-teal); }
.plain li:nth-child(3n)::before   { background: var(--c-pink); }
.flag { color: var(--c-emerald); }

/* In dark mode the six hues are pastels, chosen to sit on a dark ground. That
   inverts the two places where a hue IS the ground: white text on a pastel
   gradient is unreadable, so those flip to dark ink. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { color: #14131A; }
  :root:not([data-theme="light"]) .band { color: #14131A; }
  :root:not([data-theme="light"]) .band .big { color: #14131A; }
  :root:not([data-theme="light"]) .band .big small { color: rgba(20,19,26,.66); }
  :root:not([data-theme="light"]) .band p { color: rgba(20,19,26,.92); }
  :root:not([data-theme="light"]) .band p + p { color: rgba(20,19,26,.72); }
  :root:not([data-theme="light"]) .band strong { color: #14131A; }
}
:root[data-theme="dark"] .btn { color: #14131A; }
:root[data-theme="dark"] .band { color: #14131A; }
:root[data-theme="dark"] .band .big { color: #14131A; }
:root[data-theme="dark"] .band .big small { color: rgba(20,19,26,.66); }
:root[data-theme="dark"] .band p { color: rgba(20,19,26,.92); }
:root[data-theme="dark"] .band p + p { color: rgba(20,19,26,.72); }
:root[data-theme="dark"] .band strong { color: #14131A; }

/* ── the logo ────────────────────────────────────────────── */
.brand .mark {
  display: block; border-radius: 7px;
  /* The artwork has its own near-black ground, so on a light page it needs a
     hairline to stop it reading as a hole punched in the header. */
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent),
              0 1px 3px rgba(20,19,26,.18);
}

/* ── the small stuff ─────────────────────────────────────── */
.stakes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden;
}
.stakes p {
  margin: 0; background: var(--surface); padding: 18px 20px;
  font-size: 15.5px; line-height: 1.5;
}
.stakes p em { font-style: normal; font-weight: 600; color: var(--c-violet); }
.stakes p:nth-child(3n+2) em { color: var(--c-teal); }
.stakes p:nth-child(3n) em { color: var(--c-pink); }
#stakes h2 { max-width: 20ch; }

/* ── how you actually get it ─────────────────────────────── */
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 20px;
}
.step .n {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, var(--c-indigo), var(--c-violet));
}
.step:nth-child(2) .n { background: linear-gradient(135deg, var(--c-violet), var(--c-pink)); }
.step:nth-child(3) .n { background: linear-gradient(135deg, var(--c-teal), var(--c-emerald)); }
.step h3 { margin: 2px 0 5px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ── the invite form ─────────────────────────────────────── */
.invite { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.invite label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.invite label > span { color: var(--muted); }
.invite label > span b { color: var(--c-pink); }
.invite label > span i { font-style: normal; opacity: .7; }
.invite input, .invite select, .invite textarea {
  font: inherit; font-size: 16px;      /* 16px or iOS zooms the page on focus */
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 13px; width: 100%;
}
.invite textarea { resize: vertical; line-height: 1.5; }
.invite input:focus, .invite select:focus, .invite textarea:focus {
  outline: 2px solid var(--c-indigo); outline-offset: 1px; border-color: transparent;
}
.invite .row2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .invite .row2 { grid-template-columns: 1fr 1fr; } }
.invite button { align-self: flex-start; }
.invite .fineprint { margin: 0; font-size: 13.5px; color: var(--muted); }
/* Spam trap: seen by bots that fill every field, never by a person. */
.invite .hp { position: absolute; left: -9999px; }
