/* Gamebox website. Ported from the design's Gamebox Website / Privacy / Terms /
   Support .dc.html (Claude Design project 795ce4b0). Values are the design's;
   change them there first. Light appearance only, like the app. */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-regular.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-semibold.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("fonts/onest-bold.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("fonts/onest-extrabold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #2E2A24;
  --ink-2: #4A4339;
  --muted: #6B6255;
  --faint: #8A7F70;
  --rule: #BFB4A2;
  --line: #E4DCCD;
  --bg: #F2EDE4;
  --card: #FBF8F3;
  --terracotta: #D9825B;
  --terracotta-dark: #C8704A;
  --terracotta-light: #E7A07C;
  --mustard: #E1B04A;
  --sage: #8FA98A;
  --blue: #7D9BB8;
  --p-blue: #5F84A8;
  --p-green: #6F8E6A;
  --p-gold: #B98A2E;
  --board: #E1C9A4;
  --cell: #F7EEDF;
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(80,60,30,.10);
  --gutter: clamp(20px, 5vw, 48px);
  --wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  overflow-x: clip;
}
a { color: var(--ink); }
a:hover { color: var(--terracotta-dark); }
button { font-family: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
main section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--card); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px; align-items: end; }
.stack { display: flex; flex-direction: column; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--muted { color: var(--faint); }
.h-section { font-size: clamp(40px, 5.6vw, 76px); line-height: .98; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 520px; text-wrap: pretty; }
.card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow-card); }
.blob { position: absolute; pointer-events: none; }
.blob > span { display: block; width: 100%; height: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(242,237,228,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--line); }
.site-nav { max-width: var(--wide); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.site-nav__links { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-nav__links a { text-decoration: none; }
.pill-cta { background: var(--ink); color: var(--card); text-decoration: none; border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 700; }
.pill-cta:hover { background: var(--ink-2); color: var(--card); }

/* Narrow screens: the links fold into a menu under the bar. Without JS,
   nojs.css shows them wrapped instead. */
.menu-btn, .site-nav__menu-cta { display: none; }
@media (max-width: 820px) {
  .site-nav { flex-wrap: nowrap; gap: 12px; position: relative; padding-top: 12px; padding-bottom: 12px; }
  .brand { margin-right: auto; }
  .menu-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; padding: 0; }
  .menu-btn:hover { background: #D9CFBE; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, background .2s; }
  .menu-btn__bars { position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; }
  .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav__links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1.5px); flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1.5px solid var(--line); box-shadow: 0 18px 30px rgba(46,42,36,.12); padding: 4px var(--gutter) 20px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; max-height: calc(100dvh - 70px); overflow-y: auto; }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links > a:not(.pill-cta) { padding: 16px 0; border-bottom: 1.5px solid var(--line); }
  .site-nav__menu-cta { display: flex; justify-content: center; margin-top: 20px; padding: 16px 20px; font-size: 17px; }
}
@media (max-width: 440px) { .site-nav__cta { display: none; } }

/* The app icon: a terracotta tile holding three toys. */
.icon { position: relative; display: block; width: 40px; height: 40px; flex-shrink: 0; border-radius: 22.37%; overflow: hidden; background: linear-gradient(165deg, var(--terracotta-light) 0%, var(--terracotta) 55%, var(--terracotta-dark) 100%); box-shadow: 0 2px 6px rgba(46,42,36,.18); }
.icon span { position: absolute; box-shadow: inset 0 0 0 .4px rgba(255,255,255,.4), 0 1px 2px rgba(30,15,5,.22); }
.icon .i1 { left: 58%; top: 26%; width: 26%; height: 50%; border-radius: 50% 50% 14% 14% / 26% 26% 7% 7%; background: linear-gradient(150deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 48%), rgba(125,155,184,.86); }
.icon .i2 { left: 18%; top: 42%; width: 34%; height: 34%; border-radius: 50%; background: linear-gradient(150deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 48%), rgba(225,176,74,.88); }
.icon .i3 { left: 42%; top: 50%; width: 26%; height: 26%; border-radius: 22%; background: linear-gradient(150deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 48%), rgba(143,169,138,.9); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1.5px solid var(--line); }
.site-footer--home { border-top: 0; }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; padding: 40px var(--gutter) 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer__brand { font-size: 24px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.site-footer [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Store badges ---------- */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: flex; flex-direction: column; justify-content: center; gap: 1px; background: var(--ink); color: var(--card); text-decoration: none; border-radius: 18px; padding: 12px 22px; min-height: 60px; text-align: left; }
.badge:hover { background: var(--ink-2); color: var(--card); }
.badge small { font-size: 12px; font-weight: 600; opacity: .8; }
.badge strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.badge--lg { padding: 12px 24px; min-height: 62px; }
.badge--lg strong { font-size: 21px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--terracotta); }
.hero__grid { position: relative; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero__copy { gap: 26px; }
.hero h1 { font-size: clamp(50px, 8vw, 108px); line-height: .94; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.hero__lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 600; max-width: 520px; text-wrap: pretty; }
.hero__price { font-size: 15px; font-weight: 600; }
.hero__play { align-items: center; gap: 14px; }
.hero__hint { font-size: 15px; font-weight: 600; text-align: center; }

/* Ambient motion: a slow sine bob, off under Reduce Motion. */
@keyframes bob { from { transform: translateY(calc(var(--amp) * -1)); } to { transform: translateY(var(--amp)); } }
.bob { animation: bob 2s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
@media (prefers-reduced-motion: reduce) {
  .bob { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Noughts & Crosses demo ---------- */
.ttt { position: relative; width: 100%; max-width: 430px; background: var(--card); border-radius: 36px; padding: 16px; box-shadow: 0 18px 30px rgba(46,42,36,.18); display: flex; flex-direction: column; gap: 14px; }
.ttt__top { transform: rotate(180deg); }
.banner { height: 64px; border-radius: 22px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--bg); color: var(--muted); }
.banner__av { width: 40px; height: 40px; border-radius: 50%; color: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.banner__text { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.banner--mum .banner__av { background: var(--terracotta-dark); }
.banner--alfie .banner__av { background: var(--p-blue); }
.banner.is-turn { color: var(--card); }
.banner.is-turn .banner__av { box-shadow: 0 0 0 3px var(--card); }
.banner--mum.is-turn { background: var(--terracotta-dark); }
.banner--alfie.is-turn { background: var(--p-blue); }
.ttt__board { background: var(--board); border-radius: 30px; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; box-shadow: inset 0 -6px 0 rgba(120,80,30,.15); }
.cell { position: relative; aspect-ratio: 1; border: 0; border-radius: 24%; background: var(--cell); box-shadow: inset 0 3px 6px rgba(120,80,30,.12); cursor: pointer; padding: 0; overflow: hidden; transition: transform .12s; }
.cell:hover { background: #FFF6E8; }
.cell:active { transform: scale(.94); }
.cell.is-hot::before { content: ""; position: absolute; inset: 0; background: rgba(225,176,74,.45); }
.cell.is-x::after, .cell.is-x > i { content: ""; position: absolute; left: 43%; top: 19%; width: 14%; height: 62%; border-radius: 999px; background: var(--terracotta-dark); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.cell.is-x::after { transform: rotate(45deg); }
.cell.is-x > i { transform: rotate(-45deg); }
.cell.is-o > i { position: absolute; left: 21%; top: 21%; width: 58%; height: 58%; border-radius: 50%; border: clamp(9px, 3vw, 14px) solid var(--p-blue); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.ttt__result { position: absolute; inset: 0; border-radius: 36px; background: rgba(251,248,243,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; }
.ttt__result[hidden] { display: none; }
.ttt__result-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.ttt__result-title { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ttt__result-sub { font-size: 17px; line-height: 1.4; color: var(--muted); max-width: 280px; }
.ttt__score { display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 700; }
.ttt__score .dash { color: var(--rule); }
.ttt__score .av { width: 36px; height: 36px; border-radius: 50%; color: var(--card); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.btn { height: 58px; padding: 0 36px; border: 0; border-radius: 999px; background: var(--ink); color: var(--card); font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .12s; }
.btn:hover { background: var(--ink-2); color: var(--card); }
.btn:active { transform: scale(.94); }

/* ---------- How it works ---------- */
.how { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.step h3 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.step p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); }
.avatars span + span { margin-left: -6px; }
.mini-toggle { display: flex; background: var(--line); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 700; }
.mini-toggle span { padding: 6px 10px; color: var(--muted); }
.mini-toggle span:first-child { background: var(--card); border-radius: 999px; color: var(--ink); }
.how__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; align-items: center; }
.photo { grid-column: span 2; min-width: 0; aspect-ratio: 3 / 2; border-radius: 36px; overflow: hidden; background: var(--line); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .photo { grid-column: auto; } }
.photo--placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; }
.photo--placeholder .scene { position: absolute; inset: 0; }
.photo--placeholder .scene span { position: absolute; border-radius: 50%; }
.figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.figure figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

/* The iPhone in the "Each player's banner faces them" figure, drawn in CSS
   until the real screenshot is in assets/images (see CLAUDE.md). */
.phone { width: 100%; max-width: 240px; aspect-ratio: 9 / 19.5; border-radius: 38px; box-shadow: 0 0 0 9px var(--ink), 0 30px 60px rgba(80,60,30,.2); background: var(--bg); padding: 14% 7% 10%; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; position: relative; overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 32%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: var(--ink); }
.phone .banner { height: 40px; border-radius: 14px; gap: 8px; padding: 0 10px; }
.phone .banner__av { width: 24px; height: 24px; font-size: 11px; }
.phone .banner__text { font-size: 13px; }
.phone .ttt__board { border-radius: 20px; padding: 8px; gap: 6px; }
.phone .cell { cursor: default; }
.phone .cell:active { transform: none; }
.phone .cell.is-o > i { border-width: 6px; }

/* ---------- Games ---------- */
.games { background: var(--card); }
.games__inner { display: flex; flex-direction: column; gap: 36px; }
.games__controls { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 0; cursor: pointer; background: var(--bg); border-radius: 999px; padding: 0 18px; height: 46px; font-size: 15px; font-weight: 600; }
.tab:hover { background: var(--line); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--card); font-weight: 700; }
.seg { display: flex; background: var(--line); border-radius: 999px; padding: 4px; }
.seg button { white-space: nowrap; border: 0; cursor: pointer; background: transparent; color: var(--muted); border-radius: 999px; padding: 0 18px; height: 44px; font-size: 15px; font-weight: 600; }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 2px 6px rgba(80,60,30,.12); }
.games__blurb { font-size: 18px; font-weight: 600; }
@media (max-width: 420px) { .games .seg { width: 100%; } .games .seg button { flex: 1; padding: 0 8px; font-size: 14px; } }
.games__blurb:empty { display: none; }
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 36px 20px; }
.game { display: flex; flex-direction: column; gap: 10px; }
.game[hidden] { display: none; }
.game__tile { height: 180px; border-radius: 96px 96px 22px 22px; display: flex; align-items: center; justify-content: center; }
.game__motif { position: relative; width: 80px; height: 80px; scale: 1.35; }
.game__motif span { position: absolute; display: block; }
.game__meta { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--faint); margin-top: 6px; text-transform: uppercase; }
.game h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.game p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.games[data-level="little"] .rule--bigger,
.games[data-level="bigger"] .rule--little { display: none; }

/* ---------- Family table ---------- */
.table-copy { gap: 22px; }
.points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.45; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points li > span:first-child { width: 14px; height: 14px; flex-shrink: 0; margin-top: 5px; }
.leaderboard { background: var(--card); border-radius: 36px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 18px 30px rgba(46,42,36,.12); display: flex; flex-direction: column; gap: 8px; }
.leaderboard__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.leaderboard__head h3 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.leaderboard__head span { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--faint); }
.leaderboard ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; background: var(--bg); }
.row__rank { font-size: 15px; font-weight: 700; color: var(--faint); width: 18px; text-align: center; }
.row__av { width: 44px; height: 44px; border-radius: 50%; color: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.row__name { flex: 1; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.row__pts { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.leaderboard__note { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Club ---------- */
.club { background: var(--ink); color: var(--card); position: relative; overflow: hidden; }
.club .split { position: relative; }
.club .lede { color: var(--line); }
.club__copy { gap: 22px; }
.plan { background: var(--card); color: var(--ink); border-radius: 36px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; max-width: 460px; width: 100%; justify-self: center; }
.plan .seg button { flex: 1; height: 46px; }
.plan__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan__amount { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan__per { font-size: 18px; font-weight: 600; color: var(--muted); }
.plan__save { background: var(--mustard); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.plan__save[hidden] { display: none; }
.plan__note { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.plan .btn { height: 58px; width: 100%; }
.plan__small { font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- FAQ and accordions ---------- */
.faq { max-width: 900px; display: flex; flex-direction: column; gap: 32px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--card); border-radius: 28px; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 24px; font-size: clamp(18px, 2vw, 21px); font-weight: 700; letter-spacing: -.025em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary > span:first-child { flex: 1; }
.qa__icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; transition: transform .24s, background .24s, color .24s; }
.qa[open] .qa__icon { background: var(--ink); color: var(--card); transform: rotate(45deg); }
.qa p { padding: 0 24px 24px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 720px; }
/* The smaller accordions on Support. */
.qa--sm { border-radius: 24px; }
.qa--sm summary { padding: 20px 22px; font-size: 18px; letter-spacing: -.02em; }
.qa--sm .qa__icon { width: 32px; height: 32px; font-size: 20px; }
.qa--sm[open] .qa__icon { background: var(--line); color: var(--ink); }
.qa--sm p { padding: 0 22px 22px; font-size: 16px; max-width: 680px; }

/* ---------- Download ---------- */
.download { position: relative; overflow: hidden; background: var(--terracotta); }
.download__inner { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.download h2 { font-size: clamp(46px, 7vw, 96px); line-height: .95; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.download p { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; font-weight: 600; max-width: 560px; }
.download .badges { justify-content: center; }

/* ---------- Legal and support pages ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero__inner { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .95; font-weight: 700; letter-spacing: -.04em; max-width: 820px; text-wrap: balance; }
.page-hero p { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; font-weight: 600; max-width: 600px; text-wrap: pretty; }
.doc { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.doc__toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.doc__toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.doc__toc a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.doc__toc a:hover { background: var(--line); color: var(--ink); }
.doc__body { min-width: 0; display: flex; flex-direction: column; gap: 48px; }
/* Below this the contents list stacks above the text rather than squeezing it. */
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; } .doc__body { grid-column: auto; } .doc__toc { position: static; } }
.chip { background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; align-self: flex-start; }
.doc h2.h-doc, .h-doc { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.glance { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px; }
.glance__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.glance__card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.glance__card > span { display: block; width: 36px; height: 36px; }
.glance__card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.glance__card p, .muted { font-size: 15px; line-height: 1.5; color: var(--muted); }
.clause { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--ink); scroll-margin-top: 96px; }
.clause__head { display: flex; align-items: baseline; gap: 14px; }
.clause__num { font-size: 15px; font-weight: 700; color: var(--faint); width: 28px; flex-shrink: 0; }
.clause h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.clause__body { padding-left: 42px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 680px; }
@media (max-width: 480px) { .clause__body { padding-left: 0; } }
.facts { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 18px; }
.facts div div:first-child { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--faint); }
.facts div div:last-child { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.facts > div { display: flex; flex-direction: column; gap: 4px; }

/* Support */
.contact-grid { padding-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.contact { text-decoration: none; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 8px; background: var(--card); box-shadow: var(--shadow-card); }
.contact span:nth-child(1) { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.contact span:nth-child(2) { font-size: 24px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact span:nth-child(3) { font-size: 15px; color: var(--muted); }
.contact--dark { background: var(--ink); color: var(--card); box-shadow: none; }
.contact--dark:hover { background: var(--ink-2); color: var(--card); }
.contact--dark span:nth-child(1) { color: var(--mustard); }
.contact--dark span:nth-child(3) { color: var(--card); opacity: .85; }
.topic { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.topic--refunds { gap: 20px; }
.topic__head { display: flex; align-items: center; gap: 14px; }
.topic__head > span { width: 44px; height: 44px; flex-shrink: 0; }
.topic__head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em; }
.topic__intro { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 680px; }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: stretch; }
.store { padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.store__head { display: flex; align-items: center; gap: 14px; }
.store__head > span { width: 44px; height: 44px; flex-shrink: 0; }
.store__head div { display: flex; flex-direction: column; gap: 2px; }
.store__head small { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.store h3 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.store ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; counter-reset: step; }
.store li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.store li::before { content: counter(step); width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--card); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.store li > span { padding-top: 4px; min-width: 0; overflow-wrap: anywhere; }
.store__notes { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 22px; padding: 16px 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.store .btn { height: 54px; font-size: 16px; margin-top: auto; padding: 0 20px; text-align: center; }
.callout { background: var(--ink); color: var(--card); border-radius: 28px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.callout > span { width: 14px; height: 14px; border-radius: 50%; background: var(--mustard); flex-shrink: 0; margin-top: 6px; }
.callout p { font-size: 16px; line-height: 1.55; }

/* ---------- Shapes and colours used as decoration ---------- */
.circle { border-radius: 50%; }
.squircle { border-radius: 22%; }
.arch { border-radius: 50% 50% 14% 14%; }
.bg-mustard { background: var(--mustard); }
.bg-sage { background: var(--sage); }
.bg-blue { background: var(--blue); }
.bg-terracotta { background: var(--terracotta); }
.bg-terracotta-dark { background: var(--terracotta-dark); }
.bg-p-blue { background: var(--p-blue); }
.bg-p-green { background: var(--p-green); }
.bg-p-gold { background: var(--p-gold); }
.bg-card { background: var(--card); }
