/* VerdaWorld — verdaworld.app
   Colours follow the game: the dark teal of its screens, the mint of its
   buttons, the gold of its stars. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg-top: #0E4A43;
  --bg: #0A2322;
  --bg-deep: #071A19;
  --panel: #0F2B2A;
  --panel-2: #173C3A;
  --panel-3: #1F524E;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #F3FBF7;
  --text: #C6DBD3;
  --muted: #8DA9A0;
  --accent: #00E5A0;
  --accent-ink: #04231B;
  --gold: #FFD54F;
  --warn: #FF8A80;
  --ground: #2E6A47;
  --ground-alt: #2A6242;

  --display: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 24px;
  --max: 1120px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.024em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }
.note { font-size: 0.9rem; color: var(--muted); }

/* ── Page backdrop ─────────────────────────────────────────────────────── */

.backdrop {
  background:
    radial-gradient(1100px 620px at 50% -140px, rgba(0, 229, 160, 0.17), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg) 620px, var(--bg-deep) 1100px);
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 38, 35, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 12px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; color: var(--text); text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current='page'] { color: var(--ink); }
.site-nav .nav-cta {
  margin-left: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.site-nav .nav-cta:hover { background: #3DF0B8; color: var(--accent-ink); }

/* ── Buttons and badges ────────────────────────────────────────────────── */

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores a { display: block; border-radius: 9px; transition: transform 0.15s, filter 0.15s; }
.stores a:hover { transform: translateY(-2px); filter: brightness(1.12); }
.stores img { height: 50px; width: auto; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(0, 229, 160, 0.09); border: 1px solid rgba(0, 229, 160, 0.3);
  font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.pill b {
  padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
a.pill:hover { background: rgba(0, 229, 160, 0.16); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { padding: clamp(32px, 4.5vw, 60px) 0 clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .lead { margin-top: 22px; }
.hero-copy .stores { margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: 0.95rem; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-demo { justify-self: end; width: 100%; max-width: 388px; }
.hero-demo-caption { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ── The playable level ────────────────────────────────────────────────── */

.demo {
  position: relative;
  padding: 18px;
  min-height: 560px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.03);
  color: var(--ink);
  container-type: inline-size;
}
.demo noscript img { border-radius: 16px; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.demo-level { font-weight: 700; font-size: 1.02rem; }
.demo-tag {
  padding: 2px 9px; border-radius: 999px;
  background: rgba(0, 229, 160, 0.14); color: var(--accent);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.demo-ghost {
  padding: 7px 12px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.demo-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.demo-ghost:disabled { opacity: 0.35; cursor: default; }
.demo-ghost.selected { border-color: var(--warn); color: var(--warn); background: rgba(255, 138, 128, 0.1); }

.demo-score { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.demo-pop { display: flex; align-items: baseline; gap: 8px; }
.demo-pop-num {
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.demo-pop-unit { font-size: 0.9rem; color: var(--muted); }
.demo-stars { text-align: right; }
.demo-star-row { display: inline-flex; gap: 3px; }
.demo-star { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 7; stroke-linejoin: round; transition: fill 0.2s; }
.demo-star.on { fill: var(--gold); }
.demo-star-row.pop .demo-star.on { animation: star-pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.demo-star-row.pop .demo-star:nth-child(2) { animation-delay: 0.09s; }
.demo-star-row.pop .demo-star:nth-child(3) { animation-delay: 0.18s; }
@keyframes star-pop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
.demo-star-note { margin-top: 2px; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.demo-meter { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.demo-meter-fill { height: 100%; width: 0; border-radius: 4px; background: var(--gold); transition: width 0.35s ease; }

.demo-readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.demo-readout { padding: 7px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid transparent; }
.demo-readout.short { border-color: var(--warn); }
.demo-readout.short .demo-readout-value { color: var(--warn); }
.demo-readout-label { display: block; font-size: 0.7rem; color: var(--muted); }
.demo-readout-value { display: block; font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.demo-advice {
  min-height: 3.1em; margin-top: 10px; padding-left: 26px;
  font-size: 0.88rem; line-height: 1.4; color: var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD54F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.7.6 1.1 1.4 1.1 2.2h5c0-.8.4-1.6 1.1-2.2A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E") no-repeat 0 1px / 18px 18px;
}
.demo-advice.refused { color: var(--warn); }

.demo-board-wrap { position: relative; margin-top: 8px; }
.demo-board {
  display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr);
  border-radius: 14px; overflow: hidden;
  background: var(--ground);
}
.demo-tile {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer;
  background: var(--ground);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.demo-tile.alt { background: var(--ground-alt); }
.demo-tile:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.demo-tile:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); z-index: 1; border-radius: 0; }
.demo-tile.hint::after {
  content: ''; position: absolute; inset: 9%; border-radius: 16%;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  animation: hint-pulse 1.5s ease-in-out infinite;
}
@keyframes hint-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1); } }
.demo-building { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.demo-building.placed { animation: place 0.22s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes place { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }
.demo-tile.unserved .demo-building { opacity: 0.45; }
.demo-tile.shake { animation: shake 0.3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.demo-cap {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  padding: 0 0.55em; border-radius: 999px;
  background: rgba(16, 38, 36, 0.9); color: #fff;
  font-size: 11px; font-size: clamp(9px, 3.1cqw, 13px); font-weight: 800; line-height: 1.5;
  font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap;
}
.demo-cap.up { color: #8CF5B0; }
.demo-cap.down { color: #FFCC80; }
.demo-cap.empty { color: #FFB4A9; }

.demo-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 14px; }
.demo-confetti i {
  position: absolute; top: -14px; width: 7px; height: 12px; border-radius: 2px;
  animation: fall 2s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--drift, 0), 430px) rotate(var(--spin, 360deg)); opacity: 0; }
}

.demo-actions { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.demo-tool-note { flex: 1; min-width: 0; min-height: 2.7em; font-size: 0.8rem; line-height: 1.35; color: var(--muted); display: flex; align-items: center; }
.demo-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.demo-tool {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 7px; border-radius: 14px; cursor: pointer;
  background: var(--panel-2); border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.demo-tool:hover { background: var(--panel-3); }
.demo-tool.selected { background: var(--panel-3); border-color: var(--accent); }
.demo-tool-icon { width: 34px; height: 34px; }
.demo-tool-name { font-size: 0.8rem; font-weight: 700; }
.demo-tool-cost { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-tool.dear .demo-tool-cost { color: var(--warn); }
.demo-tool-count { position: absolute; top: 5px; right: 8px; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.demo-after {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(0, 229, 160, 0.1); border: 1px solid rgba(0, 229, 160, 0.3);
  font-size: 0.88rem; line-height: 1.4; color: var(--ink);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 18px; }
.section.alt { background: linear-gradient(180deg, rgba(23, 60, 58, 0.34), rgba(23, 60, 58, 0.12)); border-block: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.narrow-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.split > .media { justify-self: center; }

.phone { width: 100%; max-width: 320px; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.5)); }
.phone.wide { max-width: 420px; }
figure.shot figcaption { margin-top: 18px; font-size: 0.9rem; color: var(--muted); text-align: center; max-width: 320px; margin-inline: auto; }
figure.shot .phone { margin-inline: auto; }

/* Promise strip under the hero */
.promises { border-block: 1px solid var(--line); background: rgba(7, 26, 25, 0.5); }
.promises ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.promises li { padding: 26px 20px; border-left: 1px solid var(--line); }
.promises li:first-child { border-left: 0; padding-left: 0; }
.promises strong { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.promises span { display: block; margin-top: 4px; font-size: 0.93rem; color: var(--muted); line-height: 1.45; }

/* Numbered basics */
.basics { display: grid; gap: 22px; counter-reset: basic; }
.basics li { position: relative; padding-left: 52px; counter-increment: basic; }
.basics li::before {
  content: counter(basic); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  font-family: var(--display); font-weight: 800; color: var(--accent);
}
.basics strong { display: block; color: var(--ink); font-size: 1.08rem; }

/* The pieces */
.pieces-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(48px, 7vw, 80px) 0 20px; }
.pieces-title p { font-size: 0.93rem; color: var(--muted); }
.pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.piece { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.piece svg { width: 56px; height: 56px; margin-bottom: 14px; }
.piece svg.ground { border-radius: 10px; }
.piece h4 { font-family: var(--display); font-size: 1.08rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.piece p { margin-top: 6px; font-size: 0.93rem; line-height: 1.5; color: var(--text); }
.piece .catch { color: #FFCC80; }
.pieces.ground-row { margin-top: 14px; }

/* Check list */
.ticks { display: grid; gap: 16px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 229, 160, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300E5A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks strong { color: var(--ink); }

.duo { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 28px); }
.duo figure { flex: 1 1 0; min-width: 0; max-width: 290px; }
.duo figure:nth-child(2) { margin-top: 56px; }

/* Daily */
.share-card {
  margin-top: 30px; max-width: 26rem; padding: 16px 18px; border-radius: 18px 18px 18px 4px;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  font-size: 0.98rem; line-height: 1.5; color: var(--ink);
}
.share-card .stars { color: var(--gold); letter-spacing: 0.08em; }
.share-card .link { color: var(--accent); }
.share-note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* Free and extras */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.card { padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: var(--panel); border: 1px solid var(--line); }
.card.free { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(160deg, rgba(0, 229, 160, 0.13), rgba(15, 43, 42, 0.9) 55%); border-color: rgba(0, 229, 160, 0.32); }
.card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.card > p { margin-top: 10px; }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.chapters li { padding: 14px 12px; border-radius: 14px; background: rgba(7, 26, 25, 0.55); border: 1px solid var(--line); }
.chapters b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.02rem; }
.chapters span { display: block; margin-top: 3px; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.extras { display: grid; gap: 18px; margin-top: 22px; }
.extras li { padding-top: 18px; border-top: 1px solid var(--line); }
.extras li:first-child { border-top: 0; padding-top: 0; }
.extras b { display: block; color: var(--ink); font-size: 1.05rem; }
.extras span { display: block; margin-top: 2px; font-size: 0.95rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.swatches i {
  --a: #2E6A47; --b: #2A6242;
  position: relative; width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  background: conic-gradient(var(--a) 0 25%, var(--b) 0 50%, var(--a) 0 75%, var(--b) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.fair { margin-top: 28px; padding: 18px 22px; border-radius: 18px; border: 1px dashed var(--line-strong); color: var(--ink); font-size: 1.02rem; }
.fair b { color: var(--accent); }

/* The level list, peeking out of the bottom of the free card */
.peek {
  flex: 1; min-height: 190px; max-height: 300px; margin: 30px auto calc(-1 * clamp(22px, 3vw, 34px)); width: min(100%, 340px); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.peek img { width: 100%; }

/* Returning players */
.returning { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.returning ul { display: grid; gap: 14px; }

/* FAQ */
.faq { max-width: 50rem; }
.lead a { color: var(--accent); text-underline-offset: 3px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 40px 22px 0; max-width: 44rem; }
.faq a { color: var(--accent); }

/* Download */
.download { text-align: center; }
.download .box {
  padding: clamp(40px, 7vw, 80px) 24px; border-radius: 34px;
  background:
    radial-gradient(700px 300px at 50% 0, rgba(0, 229, 160, 0.2), transparent 70%),
    linear-gradient(180deg, #11413C, var(--panel));
  border: 1px solid rgba(0, 229, 160, 0.28);
}
.download img.app-icon { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 20px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.download p { margin: 16px auto 0; max-width: 32rem; }
.download .stores { justify-content: center; margin-top: 30px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.93rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand span { font-size: 1.05rem; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer .legal-line { width: 100%; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; line-height: 1.55; }

/* ── Legal pages ───────────────────────────────────────────────────────── */

.doc-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.doc-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.doc-head .updated { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.doc-head .lead { margin-top: 20px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block-end: clamp(64px, 8vw, 104px); }
.toc { position: sticky; top: 92px; font-size: 0.9rem; }
.toc h2 { font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: 44rem; }
.prose .summary { padding: 22px 24px; margin-bottom: 40px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-strong); }
.prose .summary h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 12px; padding: 0; border: 0; }
.prose .summary ul { margin-bottom: 0; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; }
.prose tbody th { min-width: 8.5rem; }
.prose thead th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.caps { font-size: 0.95rem; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost .board { display: grid; grid-template-columns: repeat(3, 56px); gap: 0; margin: 0 auto 32px; width: max-content; border-radius: 12px; overflow: hidden; }
.lost .board svg, .lost .board i { width: 56px; height: 56px; background: var(--ground); }
.lost .board i:nth-child(even) { background: var(--ground-alt); }
.lost p { margin-top: 16px; }
.button {
  display: inline-block; margin-top: 28px; padding: 12px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.button:hover { background: #3DF0B8; }

/* ── Motion ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-demo { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-demo { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Smaller screens ───────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises ul { grid-template-columns: repeat(2, 1fr); }
  .promises li:nth-child(3) { border-left: 0; padding-left: 0; }
  .promises li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .split.narrow-media, .offer, .returning { grid-template-columns: minmax(0, 1fr); }
  .hero-demo { justify-self: center; }
  .split > .media { order: 2; }
  .site-nav a:not(.nav-cta) { display: none; }
  .pieces-title { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .demo { padding: 14px; border-radius: 24px; min-height: 0; }
  .demo-pop-num { font-size: 2.2rem; }
  .demo-tool-note { font-size: 0.76rem; }
  .stores img { height: 46px; }
  .pieces { grid-template-columns: minmax(0, 1fr); }
  .piece { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
  .piece svg { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .promises ul { grid-template-columns: minmax(0, 1fr); }
  .promises li { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .promises li:first-child { border-top: 0; }
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .duo figure:nth-child(2) { margin-top: 28px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  /* Tables read as stacked entries on a phone */
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .prose th, .prose td { padding: 0; border: 0; }
  .prose tbody th { margin-bottom: 4px; font-size: 1rem; }
  .prose td + td { margin-top: 6px; color: var(--muted); }
  .faq details p { padding-right: 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
