/* TalkMaxxing website: the app's colours, font and scenery (sky, clouds, rolling hills). */
:root {
  --sunny: #ffc93c;
  --sunny-dark: #e0a800;
  --sunny-light: #fff4d1;
  --navy: #1b2340;
  --navy-muted: #5b6380;
  --ink: #1b2340;
  --teal: #1f8a85;
  --teal-dark: #166662;
  --teal-light: #dff3f1;
  --coral: #e5484d;
  --coral-light: #fde6e6;
  --background: #fffbf0;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: #ece4cc;
  --edge: #d9cfb2;
  --sky-top: #8fd6f4;
  --sky-bottom: #e2f6fc;
  --hill-far: #a9dd8c;
  --hill-mid: #7cc96a;
  --hill-near: #5bb556;
  --grass: #4fae54;
  --grass-dark: #3c9443;
  --trunk: #8a5a3b;
  --leaf: #3f9e4a;
  --cloud: #ffffff;
  --shadow: 0 18px 40px rgba(27, 35, 64, 0.14);
  color-scheme: light;
}

/* Dark colours: used when the visitor picks dark, or when their device is dark and they haven't picked light. */
:root[data-theme="dark"] {
  --sunny-light: #3b3524;
  --navy: #eef1fa;
  --navy-muted: #9aa4c7;
  --teal: #2bb3ac;
  --teal-dark: #1b7f7a;
  --teal-light: #12363b;
  --coral: #ff6b6f;
  --coral-light: #3a1d27;
  --background: #0b1226;
  --surface: #151e3d;
  --surface-glass: rgba(21, 30, 61, 0.78);
  --border: #24305a;
  --edge: #070c1a;
  --sky-top: #0d1735;
  --sky-bottom: #1c2c5c;
  --hill-far: #2c5a3e;
  --hill-mid: #245036;
  --hill-near: #1d432e;
  --grass: #1f4a33;
  --grass-dark: #173a28;
  --trunk: #5a3d2b;
  --leaf: #2a6a3c;
  --cloud: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sunny-light: #3b3524;
    --navy: #eef1fa;
    --navy-muted: #9aa4c7;
    --teal: #2bb3ac;
    --teal-dark: #1b7f7a;
    --teal-light: #12363b;
    --coral: #ff6b6f;
    --coral-light: #3a1d27;
    --background: #0b1226;
    --surface: #151e3d;
    --surface-glass: rgba(21, 30, 61, 0.78);
    --border: #24305a;
    --edge: #070c1a;
    --sky-top: #0d1735;
    --sky-bottom: #1c2c5c;
    --hill-far: #2c5a3e;
    --hill-mid: #245036;
    --hill-near: #1d432e;
    --grass: #1f4a33;
    --grass-dark: #173a28;
    --trunk: #5a3d2b;
    --leaf: #2a6a3c;
    --cloud: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--background);
  overflow-x: hidden;
}

a { color: var(--teal); font-weight: 800; }
img { max-width: 100%; }

h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.2rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--navy-muted); max-width: 60ch; margin: 0 auto; }

/* The highlighted words in headings, with a wavy underline like a voice line. */
.say {
  color: var(--teal);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23FFC93C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom / 24px 8px;
  padding-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(4px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 5px 0 var(--teal-dark); }
.btn-teal:active { box-shadow: 0 1px 0 var(--teal-dark); }
.btn-sunny { background: var(--sunny); color: var(--ink); box-shadow: 0 5px 0 var(--sunny-dark); }
.btn-sunny:active { box-shadow: 0 1px 0 var(--sunny-dark); }
.btn-white { background: var(--surface); color: var(--navy); box-shadow: 0 5px 0 var(--edge); }
.btn-white:active { box-shadow: 0 1px 0 var(--edge); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header: a floating pill, like the app's floating bars ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header.is-hidden { transform: translateY(-110%); }
/* Phones: the header is taller and touch scrolling is quick, so it eases away more gently and fades. */
@media (max-width: 720px) {
  .site-header { transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.55s ease; }
  .site-header.is-hidden { opacity: 0; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand img { width: 34px; height: 34px; }
.site-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(27, 35, 64, 0.08);
}
.site-nav a {
  color: var(--navy-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--surface); color: var(--navy); box-shadow: 0 2px 6px rgba(27, 35, 64, 0.1); }
.header-cta { padding: 10px 18px; font-size: 0.95rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(27, 35, 64, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); }
.theme-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } .theme-toggle:hover { transform: none; } }

/* ---------- Scenery ---------- */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.cloud {
  position: absolute;
  width: var(--w, 160px);
  height: auto;
  pointer-events: none;
  animation: drift var(--t, 60s) linear infinite alternate;
}
.cloud path { fill: var(--cloud); }
@keyframes drift { from { translate: -30px 0; } to { translate: 30px 0; } }
.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.hills .far { fill: var(--hill-far); }
.hills .mid { fill: var(--hill-mid); }
.hills .near { fill: var(--hill-near); }
.hills .trunk { fill: var(--trunk); }
.hills .leaf { fill: var(--leaf); }
.hills .leaf-light { fill: var(--hill-mid); }
.hills .flower { fill: var(--sunny); }
.tree { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.tree .trunk { fill: var(--trunk); }
.tree .leaf { fill: var(--leaf); }
.tree .leaf-light { fill: var(--hill-mid); }

/* ---------- Home: hero ---------- */
.hero { margin-top: -70px; padding-top: 120px; }
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 1000px; margin: 0 auto; }
.hero-copy p { font-size: 1.2rem; color: var(--navy-muted); max-width: 46ch; margin: 0 auto 26px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface-glass);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-badge span { background: var(--sunny); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 900; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stage { position: relative; height: clamp(340px, 44vw, 520px); margin-top: 8px; }
.hero-stage .hills { z-index: 1; }
.phones {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 3vw, 40px);
  height: 100%;
}

/* A phone frame around a real app screenshot. */
.phone {
  position: relative;
  width: var(--pw, 250px);
  flex: none;
  border-radius: calc(var(--pw, 250px) * 0.15);
  padding: calc(var(--pw, 250px) * 0.035);
  background: #1b2340;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--pw, 250px) * 0.12);
}
.hero .phone { margin-bottom: -18%; }
.hero .phone.side { --pw: clamp(150px, 20vw, 230px); }
.hero .phone.main { --pw: clamp(190px, 25vw, 280px); margin-bottom: -12%; }
.hero .phone.left { rotate: -8deg; }
.hero .phone.right { rotate: 8deg; }

/* ---------- "Practise for" strip ---------- */
.strip { background: var(--surface); border-bottom: 2px solid var(--border); position: relative; z-index: 3; }
.strip .wrap { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; justify-content: center; padding-top: 18px; padding-bottom: 18px; }
.strip small { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--background);
  border: 2px solid var(--border);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
.section-head { text-align: center; margin-bottom: 44px; }

/* Green "how it works" band, with a hill edge on top. */
.meadow { background: var(--grass); color: #fff; }
.meadow .eyebrow { color: var(--sunny); }
.meadow .lead { color: rgba(255, 255, 255, 0.86); }
.meadow-edge { display: block; width: 100%; height: 60px; margin-bottom: -1px; background: var(--surface); }
.meadow-edge path { fill: var(--grass); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  color: var(--navy);
  border-radius: 24px;
  padding: 14px 14px 24px;
  box-shadow: 0 8px 0 var(--grass-dark);
  overflow: hidden;
}
.step-shot {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sky-bottom);
  margin-bottom: 18px;
}
.step-shot img { width: 100%; height: auto; display: block; }
.step-shot.from-mid img { margin-top: -38%; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sunny);
  color: var(--ink);
  font-weight: 900;
  margin: 0 10px 8px;
}
.step h3, .step p { margin-left: 10px; margin-right: 10px; }
.step h3 { margin-bottom: 6px; }
.step p { margin-top: 0; margin-bottom: 0; color: var(--navy-muted); font-size: 1rem; }

/* ---------- The path teaser ---------- */
.path-section { background: linear-gradient(180deg, var(--sky-bottom), var(--background)); overflow: hidden; }
.path-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.path-card {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 55%);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}
.path-card svg.path-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.path-line { fill: none; stroke: #f3e2b5; stroke-width: 26; stroke-linecap: round; }
.path-dash { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 2 14; stroke-linecap: round; opacity: 0.9; }
.stone { transform-box: fill-box; transform-origin: center; transition: transform 0.6s cubic-bezier(.3, 1.6, .5, 1), opacity 0.4s ease; }
.js .stone { transform: scale(0.2); opacity: 0; }
.stone.on { transform: scale(1); opacity: 1; }
.stone .shield { fill: var(--sunny); stroke: var(--sunny-dark); stroke-width: 3; }
.stone.locked .shield { fill: #d9d4c4; stroke: #bdb6a2; }
.stone .tick { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.stone text { font: 900 13px Nunito, sans-serif; fill: var(--ink); }
.path-label {
  position: absolute;
  left: 18px;
  top: 18px;
  background: var(--sunny);
  color: var(--ink);
  border-radius: 14px;
  padding: 8px 14px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--sunny-dark);
}
.path-label small { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Try it: spot the filler words ---------- */
.try {
  margin-top: 56px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--edge);
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.try img.mascot { width: 110px; animation: bob 2.6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
.try h3 { font-size: 1.5rem; margin-bottom: 4px; }
.try p { margin: 0 0 16px; color: var(--navy-muted); }
.words { display: flex; flex-wrap: wrap; gap: 8px; }
.word {
  font: inherit;
  font-weight: 800;
  color: var(--navy);
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  border-radius: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.word:hover { transform: translateY(-2px); }
.word.found { background: var(--coral-light); border-color: var(--coral); color: var(--coral); }
.word.miss { animation: shake 0.35s ease; }
@keyframes shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.try-status { margin-top: 14px; font-weight: 900; min-height: 1.6em; color: var(--navy-muted); }
.try-status.done { color: var(--teal); }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 10vw, 110px); }
.feature-row.flip .feature-media { order: 2; }
.feature-media {
  position: relative;
  border-radius: 32px;
  padding: 36px 20px 0;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.feature-media .hills { z-index: 0; }
.feature-media .phone { --pw: clamp(170px, 20vw, 230px); position: relative; z-index: 1; margin-bottom: -28%; }
.feature-media .phone.tilt-l { rotate: -5deg; }
.feature-media .phone.tilt-r { rotate: 5deg; margin-bottom: -36%; }
.feature-copy p { color: var(--navy-muted); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.metric {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
}
.metric small { display: block; font-size: 0.8rem; color: var(--navy-muted); font-weight: 800; }
.metric strong { font-size: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Games ---------- */
.games-section { background: var(--surface); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.games-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.game {
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 5px 0 var(--edge);
  transition: transform 0.2s ease;
}
.game:hover { transform: translateY(-4px) rotate(-0.5deg); }
.game-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 10px;
  background: var(--tint, var(--sunny-light));
}
.game h3 { font-size: 1.05rem; margin-bottom: 4px; }
.game p { margin: 0; font-size: 0.92rem; color: var(--navy-muted); line-height: 1.45; }
.games-phones { position: sticky; top: 100px; display: flex; justify-content: center; }
.games-phones .phone { --pw: 210px; }
.games-phones .phone + .phone { margin-left: -70px; margin-top: 80px; rotate: 6deg; }
.games-phones .phone:first-child { rotate: -4deg; z-index: 1; }
.tease { margin-top: 22px; text-align: center; color: var(--navy-muted); font-weight: 800; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--background), var(--sky-bottom)); overflow: hidden; }
.sparkle { position: absolute; width: 46px; color: var(--sunny); animation: spin 14s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; position: relative; }
.plan {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 8px 0 var(--edge);
  display: flex;
  flex-direction: column;
}
.plan.best { border: 3px solid var(--teal); box-shadow: 0 8px 0 var(--teal-dark); }
.plan-badge {
  position: absolute;
  top: -16px;
  right: 22px;
  background: var(--sunny);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--sunny-dark);
}
.plan h3 { font-size: 1.3rem; margin-bottom: 2px; }
.plan .plan-note { color: var(--navy-muted); font-size: 0.95rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 2px; }
.price strong { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.price span { color: var(--navy-muted); font-weight: 800; }
.per-month { margin: 0; color: var(--teal); font-weight: 900; min-height: 1.6em; }
.plan .ticks { margin: 18px 0 24px; flex: 1; font-size: 0.98rem; }
.plan .btn { width: 100%; }
.plan-peek {
  position: absolute;
  right: -78px;
  bottom: 20px;
  width: 110px;
  rotate: 12deg;
  animation: wave 2.4s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes wave { from { rotate: 8deg; } to { rotate: 18deg; } }
.small-print { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 0.9rem; color: var(--navy-muted); }

/* ---------- Call to action + newsletter ---------- */
.cta-wrap { background: linear-gradient(180deg, var(--sky-bottom), var(--background)); padding: 30px 0 70px; }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(120deg, var(--teal) 0%, #3fae7d 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.08);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 0 18px; color: rgba(255, 255, 255, 0.9); max-width: 52ch; }
.cta .mascot { width: 150px; position: relative; z-index: 1; animation: bob 2.6s ease-in-out infinite alternate; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.store {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  padding: 8px 16px;
  border-radius: 12px;
  background: #0b1226;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}
.store small { font-size: 0.7rem; font-weight: 800; opacity: 0.75; }

.signup form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-weight: 800;
  color: #1b2340;
  background: #fff;
  border: 0;
  border-bottom: 4px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 12px 16px;
}
.signup input[type="email"]:focus { outline: 3px solid var(--sunny); }
.signup .signup-message { margin: 12px 0 0; font-weight: 900; min-height: 1.6em; }
.signup .signup-message.is-ok { color: var(--sunny); }
.signup .signup-message.is-error { color: #fff; text-decoration: underline wavy var(--sunny); }
.signup .signup-small { font-size: 0.82rem; margin: 4px 0 0; color: rgba(255, 255, 255, 0.85); }
.signup .signup-small a { color: #fff; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Text pages (privacy, terms, support…) ---------- */
.page-hero { margin-top: -70px; padding: 130px 0 120px; text-align: center; }
.page-hero h1 { position: relative; z-index: 2; margin-bottom: 6px; }
.page-hero p { position: relative; z-index: 2; margin: 0; color: var(--navy-muted); font-weight: 800; }
.page-hero .hills { z-index: 1; }
.doc-card {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: -70px auto 70px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 48px);
}
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.5em; }
.doc .updated { color: var(--navy-muted); margin-top: 0; }
.doc li { margin-bottom: 0.4em; }
.doc > :first-child { margin-top: 0; }
.callout {
  background: var(--sunny-light);
  border: 2px solid var(--sunny);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--border); }
th { font-weight: 900; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 28px; }
.footer-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-card .brand { background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.footer-card p { color: var(--navy-muted); font-size: 0.95rem; margin: 10px 0 0; }
.footer-card h4 { margin: 4px 0 10px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-card ul a { color: var(--navy-muted); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.footer-card ul a:hover { color: var(--teal); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--navy-muted); font-size: 0.85rem; padding: 16px 8px 0; }

/* ---------- Scroll reveals: things rise in, one after another ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="pop"] { transform: scale(0.7); transition-timing-function: ease, cubic-bezier(0.3, 1.5, 0.5, 1); }
.js [data-reveal="rise"] { transform: translateY(160px); transition-duration: 0.9s, 1.4s; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .stone { transform: none; opacity: 1; }
  .cloud, .try img.mascot, .cta .mascot, .plan-peek, .sparkle { animation: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .games-layout { grid-template-columns: 1fr; }
  .games-phones { display: none; }
  .plan-peek { display: none; }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .path-grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .footer-card { grid-template-columns: 1fr 1fr; }
  .footer-card > :first-child { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; }
  .cta .mascot { display: none; }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; justify-content: space-between; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 6px 10px; font-size: 0.9rem; }
  .hero, .page-hero { margin-top: -140px; padding-top: 170px; }
  .hero .phone.side { --pw: 140px; }
  .hero .phone.main { --pw: 180px; }
  .hero .phone.left { margin-right: -60px; }
  .hero .phone.right { margin-left: -60px; }
  .sparkle { display: none; }
  .try { grid-template-columns: 1fr; text-align: center; }
  .try img.mascot { width: 84px; margin: 0 auto; }
  .words { justify-content: center; }
  .feature-media { min-height: 360px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .games-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .feature-media .phone.tilt-r { display: none; }
  .header-cta { display: none; }
  .footer-card { grid-template-columns: 1fr; }
}
