/* FootyBox website.
   Layout: light pages that alternate paper and white sections, with ink for buttons, type and the footer.
   Brand rule (brand/README.md): floodlight only ever sits on ink, so the accent is ink on light grounds and
   floodlight inside ink elements (footer, sign-up panel, the hero highlight). The visitor's club colour only
   appears on the product itself: the case, the screen and the club chip.
   The --ink-2 / --on-ink ... tokens are the "surface" set: light by default, dark inside footer and .signup. */
:root {
  --ink: #15171C;
  --ink-2: #FFFFFF;
  --ink-3: #EEF0EA;
  --ink-line: #D6D9D1;
  --on-ink: #15171C;
  --on-ink-muted: #5A606A;
  --floodlight: #C8F031;
  --accent: #15171C;
  --on-accent: #FFFFFF;
  --paper: #F3F4F0;
  --paper-2: #E8EAE4;
  --white: #FFFFFF;
  --on-paper: #15171C;
  --on-paper-muted: #5A606A;
  --paper-line: #D6D9D1;
  --live: #E5383B;
  --club: #DB0007;

  --display: "Inter Tight", Inter, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 18px;
  color-scheme: light;
}
footer, .signup {
  --ink-2: #1D2028; --ink-3: #262A33; --ink-line: #30343E; --on-ink: #FFFFFF; --on-ink-muted: #A4AAB6;
  --accent: #C8F031; --on-accent: #15171C; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--on-ink); font: 400 17px/1.6 var(--body); font-feature-settings: "cv11", "ss01"; }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.s-paper :focus-visible { outline-color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---- Sections ---- */
section { padding-block: clamp(56px, 6.5vw, 96px); position: relative; }
main > section:first-child:not(.hero) { padding-top: clamp(32px, 4vw, 56px); }   /* the first block sits close under the header */
.s-ink { background: var(--paper); color: var(--on-ink); }
.s-ink-2 { background: var(--ink-2); color: var(--on-ink); }
.s-paper { background: var(--white); color: var(--on-paper); color-scheme: light; }
.s-white { background: var(--white); color: var(--on-paper); color-scheme: light; }

.eyebrow { display: inline-block; font: 600 15px/1.2 var(--body); color: var(--on-ink-muted); }
.s-paper .eyebrow, .s-white .eyebrow { color: var(--on-paper-muted); }

.h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--on-ink-muted); max-width: 60ch; }
.s-paper .lede, .s-white .lede { color: var(--on-paper-muted); }
.head { display: grid; gap: 12px; max-width: 680px; margin-bottom: clamp(28px, 3.5vw, 44px); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-flood { background: var(--accent); color: var(--on-accent); }
.btn-flood:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-line { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--ink-line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--on-ink-muted); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2A2E38; }
.s-paper .btn-line, .s-white .btn-line { color: var(--on-paper); box-shadow: inset 0 0 0 1.5px var(--paper-line); }
.s-paper .btn-line:hover, .s-white .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--on-paper-muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Chips: small toggles (case finish, views, demo events). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--body); background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); }
.chip:hover { border-color: var(--on-ink-muted); }
.chip[aria-pressed="true"] { background: var(--on-ink); color: var(--ink-2); border-color: var(--on-ink); }
.chip .sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.s-paper .chip, .s-white .chip { background: var(--white); color: var(--on-paper); border-color: var(--paper-line); }
.s-paper .chip:hover, .s-white .chip:hover { border-color: var(--on-paper-muted); }
.s-paper .chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip img { width: 16px; height: 16px; object-fit: contain; }

/* Club select, styled as a chip with the club colour swatch. */
.club-pick { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; background: var(--ink-2); border: 1px solid var(--ink-line); }
.club-pick .sw { width: 20px; height: 20px; border-radius: 50%; background: var(--club); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); flex: none; transition: background-color .3s; }
.club-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-weight: 600; padding-right: 22px; cursor: pointer; min-width: 0; max-width: 100%; }
.club-pick select option { color: #15171C; background: #fff; }
.club-pick::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--on-ink-muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---- Top bar ---- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(243, 244, 240, 0.88);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--ink-line); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-ink-muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--on-ink); }
.bar .btn { margin-left: 4px; gap: 0; white-space: pre-wrap; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-line); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--on-ink); position: relative; transition: transform .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav { display: none; }
  .bar .btn { margin-left: auto; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--ink-line); padding: 8px var(--gutter) 20px; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 17px; color: var(--on-ink); }
}
@media (max-width: 420px) { .bar .btn .long { display: none; } .logo img { height: 28px; } }

/* ---- Hero ---- */
.hero { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 65% at 72% 42%, color-mix(in srgb, var(--club) 12%, transparent), transparent 70%);
  transition: background .6s; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.2vw, 74px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.hero h1 em { display: inline-block; font-style: normal; color: var(--floodlight); background: var(--ink); line-height: 1; padding: .06em .16em .12em; margin-top: .14em; border-radius: .14em; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--on-ink-muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.stage { position: relative; aspect-ratio: 5 / 4; max-width: 100%; }
.hero .stage { aspect-ratio: 4 / 3; width: calc(100% + 6vw); max-width: none; margin-right: -6vw; }
@media (max-width: 900px) { .hero .stage { width: 100%; margin-right: 0; } }

.stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage canvas.gl { opacity: 0; transition: opacity .7s ease; }
.stage.ready canvas.gl { opacity: 1; }
.stage .poster { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 0; position: relative; z-index: 2; color: var(--on-ink-muted); font-size: 14px; }
.stage-bar .chip { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.stage-bar .club-pick { min-height: 36px; }
.stage-bar .chips { gap: 6px; }
.stage-views { position: absolute; top: 6px; right: 6px; z-index: 2; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--ink-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-views .chip { min-height: 30px; padding: 0 12px; font-size: 13px; border-color: transparent; background: transparent; }
.stage-views .chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.drag-hint { font: 500 12px/1 var(--mono); color: var(--on-ink-muted); display: inline-flex; gap: 6px; align-items: center; }
@media (pointer: coarse) { .drag-hint { display: none; } }

/* Facts strip under the hero. */
.facts { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); background: var(--white); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.facts li { padding: 22px 16px; border-left: 1px solid var(--ink-line); display: grid; gap: 4px; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { font: 700 20px/1.1 var(--display); letter-spacing: -0.01em; }
.facts span { font: 500 12px/1.3 var(--mono); color: var(--on-ink-muted); letter-spacing: 0.02em; }
@media (max-width: 1000px) { .facts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts li:nth-child(4) { border-left: 0; padding-left: 0; } .facts li:nth-child(n+4) { border-top: 1px solid var(--ink-line); } }
@media (max-width: 560px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li { border-left: 0 !important; padding-left: 0; border-top: 1px solid var(--ink-line); } .facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ink-line) !important; } .facts li:nth-child(-n+2) { border-top: 0; } }

/* ---- Screen demo ("one glance") ---- */
.demo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .demo { grid-template-columns: minmax(0, 1fr); } }
.panel-wrap { position: relative; }
.panel { position: relative; aspect-ratio: 5 / 3; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px var(--white), 0 0 0 11px var(--paper-line), 0 28px 60px -20px rgba(21, 23, 28, 0.35); }
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.marker { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--ink); color: var(--white);
  font: 600 13px/28px var(--mono); text-align: center; box-shadow: 0 0 0 3px var(--white); pointer-events: none; transition: opacity .3s; z-index: 2; }
.panel-wrap.playing .marker { opacity: 0; }
.try { margin-top: 30px; display: grid; gap: 12px; }
.try-label { font-size: 14px; font-weight: 500; color: var(--on-paper-muted); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: k; }
.keys { gap: 26px; }
.keys li { display: block; }
.keys .k { display: none; }
.keys h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.keys p { color: var(--on-paper-muted); font-size: 16px; }

/* Event coverage table. */
.cover { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 860px) { .cover { grid-template-columns: minmax(0, 1fr); } }
.cover h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.12; }
.cover > div > p { margin-top: 12px; color: var(--on-paper-muted); }
.table-wrap { overflow-x: auto; }
.ev { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.ev th { text-align: left; font-size: 14px; font-weight: 500; color: var(--on-paper-muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--paper-line); }
.ev td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.ev td:first-child { font-weight: 500; white-space: nowrap; }
.ev .ic { display: inline-flex; width: 26px; justify-content: center; margin-right: 10px; vertical-align: middle; }
.ev .ic img { height: 20px; width: auto; }
.yes, .no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; }
.yes { background: var(--ink); }
.yes::after { content: ""; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.no { box-shadow: inset 0 0 0 1.5px var(--paper-line); }
.no::after { content: ""; width: 8px; height: 1.5px; background: var(--on-paper-muted); }

/* Between games strip. */
.moments { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 860px) { .moments { grid-template-columns: minmax(0, 1fr); } }
.moment figure { margin: 0; }
.moment img { width: 100%; height: auto; aspect-ratio: 5 / 3; display: block; border-radius: 12px; box-shadow: 0 1px 2px rgba(21,23,28,.06), 0 12px 32px -12px rgba(21,23,28,.25); }
.moment figcaption { margin-top: 18px; display: grid; gap: 2px; }
.moment figcaption b { font: 700 18px/1.2 var(--display); }
.moment figcaption span { color: var(--on-paper-muted); font-size: 15.5px; }
.moment .when { font-size: 14px; font-weight: 500; color: var(--on-paper-muted); }

/* ---- Any match (picker) ---- */
.any { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .any { grid-template-columns: minmax(0, 1fr); } .any .device-col { order: -1; } }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.steps { gap: 22px; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.steps .n { font: 700 16px/1.4 var(--display); color: var(--on-ink-muted); }
.steps b { display: block; font: 700 18px/1.3 var(--display); margin-bottom: 2px; }
.steps span { color: var(--on-ink-muted); font-size: 16px; }

/* The box from just off the front: a render of the real case (tools/render_case_front.html) with a hole where the screen is.
   The live screen sits behind it, bent onto the hole's four corners by main.js (placeScreen). */
.device { position: relative; width: 100%; max-width: 720px; margin-inline: auto; }
.device-stage { position: relative; width: 100%; aspect-ratio: 1400 / 1071; }
.device-stage canvas { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; display: block; max-width: none; touch-action: pan-y; }
.device-render { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; user-select: none; }
.tap-hint { position: absolute; right: 6%; top: -14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 13px/1 var(--body); box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .4s, transform .4s; }
.tap-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--floodlight); animation: pulse 1.6s infinite; }
.tap-hint.gone { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.device-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; min-height: 48px; }   /* fixed height: its buttons come and go, and the column is centred, so the box would jump */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---- Design ---- */
.design { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .design { grid-template-columns: minmax(0, 1fr); } }
.drawing { background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); }
.drawing svg { width: 100%; height: auto; max-height: 440px; display: block; margin-inline: auto; overflow: visible; }
.drawing .cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--on-paper-muted); }
.drawing-tabs { margin-bottom: 18px; }
.dim-line { stroke: var(--on-paper-muted); stroke-width: 1; fill: none; }
.dim-text { font: 500 12px var(--mono); fill: var(--on-paper); }
.dim-ang { font: 600 13px var(--mono); fill: var(--on-paper); }
.case-fill { fill: var(--paper-2); stroke: var(--on-paper); stroke-width: 1.5; }
.face-fill { fill: var(--white); stroke: var(--on-paper); stroke-width: 1.5; }
.win-fill { fill: var(--ink); }
.desk { stroke: var(--on-paper); stroke-width: 1.5; }
.hatch { stroke: var(--paper-line); stroke-width: 1; }
.specs-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.specs-mini { gap: 28px 32px; }
.specs-mini div { display: grid; gap: 6px; }
.specs-mini b { font: 700 clamp(24px, 2.6vw, 30px)/1 var(--display); letter-spacing: -0.03em; }
.specs-mini span { color: var(--on-paper-muted); font-size: 15.5px; }
@media (max-width: 480px) { .specs-mini { grid-template-columns: minmax(0, 1fr); } }

/* ---- Setup ---- */
.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); counter-reset: s; }
@media (max-width: 900px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.setup li { list-style: none; background: transparent; border: 0; padding: 0; display: grid; gap: 18px; align-content: start; }
.setup img { width: 100%; height: auto; aspect-ratio: 5 / 3; display: block; border-radius: 12px; box-shadow: 0 1px 2px rgba(21,23,28,.06), 0 12px 32px -12px rgba(21,23,28,.25); }
.setup .t { display: grid; gap: 6px; }
.setup .t .n { font-size: 14px; font-weight: 500; color: var(--on-ink-muted); }
.setup .t b { font: 700 19px/1.25 var(--display); letter-spacing: -0.015em; }
.setup .t span { color: var(--on-ink-muted); font-size: 16px; }
.setup-ol { margin: 0; padding: 0; }
.notes { margin-top: 32px; max-width: 72ch; color: var(--on-ink-muted); font-size: 15.5px; }
.notes span { display: inline-flex; gap: 10px; align-items: baseline; }
.notes span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }

/* ---- Specs ---- */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 5vw, 72px); }
@media (max-width: 800px) { .spec-grid { grid-template-columns: minmax(0, 1fr); } }
.spec-grid dl { margin: 0; }
.spec-grid .row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 2fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--paper-line); }
.spec-grid dt { font-size: 15px; font-weight: 500; color: var(--on-paper-muted); }
.spec-grid dd { margin: 0; font-size: 16px; }
.spec-grid dd small { display: block; color: var(--on-paper-muted); font-size: 14.5px; margin-top: 2px; }

/* ---- Pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1060px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-line); }
.tier.lead { background: var(--ink-2); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier .tag { justify-self: start; font: 600 13px/1 var(--body); padding: 7px 10px; border-radius: 999px; background: var(--ink-3); color: var(--on-ink-muted); }
.tier.lead .tag { background: var(--ink); color: var(--floodlight); }
.tier h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font: 800 54px/1 var(--display); letter-spacing: -0.04em; }
.price s { color: var(--on-ink-muted); font-size: 16px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--on-ink-muted); font-size: 15px; align-content: start; }
.tier li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.tier li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--on-ink-muted); }
.tier.lead li::before { background: var(--accent); }
.left { font-size: 14px; color: var(--on-ink-muted); }
.after { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed var(--ink-line); color: var(--on-ink-muted); font-size: 15px; }
.after b { color: var(--on-ink); font-weight: 600; }
.included { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .included { grid-template-columns: minmax(0, 1fr); } }
.included div { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.included b { font: 700 18px/1.3 var(--display); }
.included span { color: var(--on-ink-muted); font-size: 15.5px; }

/* ---- Sign-up ---- */
.signup { background: var(--ink); color: var(--on-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .signup { grid-template-columns: minmax(0, 1fr); } }
.signup h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.signup p { margin-top: 16px; font-size: 18px; max-width: 46ch; }
.form { display: grid; gap: 12px; }
.form label { font-size: 14px; font-weight: 600; }
.field { display: grid; gap: 8px; }
.form input, .form select { width: 100%; min-height: 54px; border-radius: 14px; border: 1.5px solid transparent; background: #fff; padding: 0 16px; font-size: 17px; color: var(--ink); }
.form input:focus, .form select:focus { outline: 3px solid var(--floodlight); outline-offset: 1px; }
.form .btn { min-height: 56px; width: 100%; font-size: 17px; }
.form .fine { font-size: 13.5px; line-height: 1.5; }
.form .fine { color: var(--on-ink-muted); }
.form .fine a { color: var(--on-ink); }
.form-msg { font-weight: 600; font-size: 15.5px; min-height: 1.5em; }
.form-done { display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: var(--ink-3); color: var(--on-ink); }
.form-done b { font: 700 22px/1.2 var(--display); }

/* ---- FAQ ---- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq-head { position: sticky; top: 100px; align-self: start; display: grid; gap: 18px; }
@media (max-width: 860px) { .faq-head { position: static; } }
.qa details { border-top: 1px solid var(--paper-line); }
.qa details:last-child { border-bottom: 1px solid var(--paper-line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 18.5px/1.35 var(--display); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--on-paper), var(--on-paper)) center / 12px 1.5px no-repeat, linear-gradient(var(--on-paper), var(--on-paper)) center / 1.5px 12px no-repeat; transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 44px 24px 0; color: var(--on-paper-muted); display: grid; gap: 10px; max-width: 68ch; }
.qa .a a { color: var(--on-paper); }

/* ---- Footer ---- */
footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 72px 40px; border-top: 1px solid var(--ink-line); font-size: 15px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .brand-col { grid-column: 1 / -1; } }
.foot h4 { margin: 0 0 14px; font: 600 14px/1 var(--body); color: var(--on-ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-ink); }
.foot .brand-col img { height: 30px; width: auto; }
.foot .brand-col p { margin-top: 16px; max-width: 36ch; }
.mail { font-family: var(--mono); font-size: 13.5px; user-select: all; overflow-wrap: anywhere; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13.5px; }
.legal p { max-width: 80ch; }

/* ---- Inner pages (help, security, privacy) ---- */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin-top: 18px; }
.page-hero .lede { margin-top: 18px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 14.5px; }
.toc a { text-decoration: none; color: var(--on-paper-muted); padding: 6px 0; }
.toc a:hover { color: var(--on-paper); }
.prose { max-width: 70ch; display: grid; gap: 16px; font-size: 17px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.1; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 12px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #3D424B; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--on-paper); }
.prose code { font: 500 0.88em var(--mono); background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.prose figure { margin: 8px 0; }
.prose figure img { width: 100%; height: auto; aspect-ratio: 5 / 3; border-radius: 10px; box-shadow: 0 0 0 7px var(--white), 0 0 0 8px var(--paper-line); }
.prose figcaption { margin-top: 16px; font-size: 14.5px; color: var(--on-paper-muted); }
.callout { padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--paper-line); }
.callout b { color: var(--on-paper); }
.tbc { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--floodlight); vertical-align: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.chip:disabled { opacity: .4; cursor: default; }

/* ---- Shop ---- */
.btn-lg { min-height: 58px; font-size: 17px; padding: 0 28px; }
.basket-btn { position: relative; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--ink-line); background: transparent; color: var(--on-ink); cursor: pointer; }
.basket-btn svg { width: 20px; height: 20px; }
.basket-btn b { font: 600 13px/1 var(--mono); }
.basket-btn.has { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.bar .btn + .basket-btn { margin-left: -14px; }
@media (max-width: 980px) { .bar .basket-btn { margin-left: 0; } }

.buy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .buy { grid-template-columns: minmax(0, 1fr); } }
.buy-visual { position: sticky; top: 100px; padding: 8px 8px 18px; border-radius: var(--radius);
  background: radial-gradient(90% 80% at 50% 30%, color-mix(in srgb, var(--case, var(--club)) 10%, var(--ink-2)), var(--ink-2)); border: 1px solid var(--ink-line); }
@media (max-width: 900px) { .buy-visual { position: static; } }
#buyVisual { --case: var(--club); }
.buy-stage { aspect-ratio: 4 / 3; }
.buy-caption { margin-top: 6px; text-align: center; font-size: 14px; color: var(--on-ink-muted); }
.buy-box { display: grid; gap: 22px; }
.buy-title { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--ink-line); }
.buy-title h3 { font-size: 30px; font-weight: 800; }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.buy-price b { font: 800 48px/1 var(--display); letter-spacing: -0.04em; }
.buy-price span { color: var(--on-ink-muted); font-size: 15px; }
.buy-box .field { display: grid; gap: 10px; }
.buy-box label, .buy-box .label { font-size: 14px; font-weight: 600; color: var(--on-ink); }
.buy-box small { color: var(--on-ink-muted); font-size: 14px; }
.buy-box input, .select-wrap select { width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--on-ink); padding: 0 16px; font-size: 16.5px; }
.buy-box input:focus, .select-wrap select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; font-weight: 600; }
.select-wrap select option { color: #15171C; background: #fff; }
.select-wrap::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border: solid var(--on-ink-muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.finish-groups { display: grid; gap: 10px; }
.finish-more { font-size: 13px; color: var(--on-ink-muted); margin-top: 4px; }
.finish-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.finish-pick button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); font: 500 15px/1.2 var(--body); text-align: left; }
.finish-pick button:hover { border-color: var(--on-ink-muted); }
.finish-pick button[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.finish-pick button:disabled { opacity: .5; cursor: default; }
.finish-pick .fp-text small { display: block; font-size: 12px; font-weight: 400; color: var(--on-ink-muted); margin-top: 2px; }
.finish-pick .sw { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--club); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
@media (max-width: 420px) { .finish-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.buy-total { color: var(--on-ink-muted); font-size: 15px; }
.buy-total b { color: var(--on-ink); font: 700 22px/1 var(--display); margin-left: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink-line); border-radius: 999px; background: var(--ink-2); }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--on-ink); font-size: 20px; cursor: pointer; border-radius: 999px; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font: 600 16px/1 var(--mono); }
.stepper-sm button { width: 34px; height: 34px; font-size: 17px; }
.buy-box .form-msg { min-height: 0; margin-top: -10px; color: var(--accent); }
.buy-box .form-msg:empty { display: none; }
.buy-notes { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--ink-line); display: grid; gap: 10px; color: var(--on-ink-muted); font-size: 15px; }
.buy-notes li { position: relative; padding-left: 20px; }
.buy-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.buy-notes a { color: var(--on-ink); }
.ks-cta { margin-top: 24px; }

/* Basket: a drawer from the right. */
.basket { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); max-width: 100%; padding: 0; border: 0;
  background: var(--white); color: var(--on-ink); display: none; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.18); }
.basket[open] { display: flex; animation: slide-in .25s ease; }
.basket::backdrop { background: rgba(21, 23, 28, 0.35); backdrop-filter: blur(3px); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.basket-head { display: flex; align-items: center; justify-content: space-between; padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 20px; border-bottom: 1px solid var(--ink-line); }
.basket-head h2 { font-size: 22px; font-weight: 800; }
.basket-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-line); background: transparent; color: var(--on-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.basket-items { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1 1 auto; }
.basket-items li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "sw text price" ". step remove"; gap: 10px 14px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); align-items: center; }
.line-sw { grid-area: sw; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); align-self: start; margin-top: 2px; }
.line-text { grid-area: text; display: grid; gap: 2px; min-width: 0; }
.line-text b { font-weight: 600; overflow-wrap: anywhere; }
.line-text span { color: var(--on-ink-muted); font-size: 14px; }
.line-price { grid-area: price; font-weight: 600; align-self: start; }
.basket-items .stepper { grid-area: step; justify-self: start; }
.line-remove { grid-area: remove; background: none; border: 0; color: var(--on-ink-muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.basket-empty { padding: 32px 24px; color: var(--on-ink-muted); flex: 1 1 auto; }
.basket-foot { padding: 20px 24px 8px; border-top: 1px solid var(--ink-line); display: grid; gap: 12px; }
.basket-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.basket-sub b { font: 800 26px/1 var(--display); }
.basket-note { color: var(--on-ink-muted); font-size: 14px; }
.basket-foot .btn { width: 100%; }
.basket-foot .form-msg { color: var(--accent); font-size: 14.5px; min-height: 0; }
.basket-more { margin: 4px 24px calc(20px + env(safe-area-inset-bottom, 0px)); background: none; border: 0; color: var(--on-ink-muted); text-decoration: underline; cursor: pointer; font-size: 15px; }
.prose a.btn { color: var(--white); text-decoration: none; justify-self: start; }

/* ---- Pages ---- */
.nav a[aria-current="page"] { color: var(--on-ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.more { margin-top: clamp(28px, 3vw, 40px); }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .teaser { grid-template-columns: minmax(0, 1fr); } }
.teaser-screen { position: relative; aspect-ratio: 5 / 3; max-width: 100%; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 10px var(--white), 0 0 0 11px var(--paper-line), 0 30px 60px -20px rgba(0,0,0,.6); }
.teaser-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.specs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .specs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band { grid-template-columns: minmax(0, 1.6fr) auto; }
.band-cta { justify-self: end; }
@media (max-width: 860px) { .band-cta { justify-self: start; } }

/* Preview switcher (never shown on the live site): see js/page.js. */
.preview-switch { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); font: 500 13px/1 var(--body); }
.preview-switch span { padding: 0 8px 0 10px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #A4AAB6; }
.preview-switch button { border: 0; border-radius: 999px; padding: 9px 12px; background: transparent; color: #fff; cursor: pointer; font: inherit; }
.preview-switch button:hover { background: #262A33; }
.preview-switch button[aria-pressed="true"] { background: var(--floodlight); color: var(--ink); }
.preview-switch button:focus-visible { outline: 2px solid var(--floodlight); outline-offset: 2px; }
@media (max-width: 420px) { .preview-switch span { display: none; } }
