/* Tokens: tshirt-brand/DESIGN.md v2 (Indigo + Haldi, pop; provisional Stage 3 draft) */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --text: #15171C; --bg: #F6F6F4; --surface: #FFFFFF; --muted: #545966;
  --line: #15171C; --shadow: #15171C;
  --primary: #26346E; --on-primary: #FFFFFF; --accent: #E3A008;
  --ink: #15171C; --ink-muted: #454A57; --paper: #FFFFFF; --indigo: #26346E;
  --pop-lavender: #C9C3F5; --pop-haldi: #F7D774; --pop-pink: #F9B8C8; --pop-neem: #A9E2C3; --pop-sky: #A7C8F2;
  --success: #1D7044; --error: #B42318;
  --font: "Geist", system-ui, sans-serif;
  --display: "Unbounded", "Geist", system-ui, sans-serif;
  --s-xs: 12px; --s-cap: 14px; --s-body: 16px; --s-lead: 20px; --s-h2: 28px; --s-h1: clamp(30px, 8.4vw, 56px);
  --gutter: 16px; --tap: 44px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px;
  --edge: 2px solid var(--line);
  --lift: 4px 4px 0 var(--shadow); --lift-sm: 2px 2px 0 var(--shadow);
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ECEDF2; --bg: #0E1120; --surface: #171B2E; --muted: #A3A8B8;
    --line: #ECEDF2; --shadow: #000000;
    --primary: #A9B6EC; --on-primary: #0E1120; --accent: #F2B51D;
    --success: #5CC98B; --error: #F7867A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block: 72px 96px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--s-body)/1.5 var(--font);
  padding-bottom: calc(84px + env(safe-area-inset-bottom)); overflow-x: clip; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; max-width: 60ch; }
a { color: var(--primary); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
section { scroll-margin-top: 72px; }
.eyebrow { font-size: var(--s-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: var(--edge); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.mark { font: 800 15px/1 var(--display); letter-spacing: -0.01em; color: var(--text); text-decoration: none;
  min-height: var(--tap); display: inline-flex; align-items: center; }
.pill-link { min-height: var(--tap); padding: 0 18px; display: inline-flex; align-items: center; border: var(--edge);
  border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; box-shadow: var(--lift-sm); }

/* Buttons: outline + hard shadow; pressed moves into the shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; font: 600 var(--s-body) var(--font); text-decoration: none; cursor: pointer;
  border: var(--edge); box-shadow: var(--lift); }
.btn:not(:disabled):active, .pill-link:active, .tile-btn:not(:disabled):active { transform: translate(2px, 2px); box-shadow: var(--lift-sm); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn-wide { width: 100%; justify-content: space-between; padding-right: 8px; }
.arrow { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--ink); border: var(--edge); font-weight: 700; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero: one loud flat field (Birdwingo), sticker */
.layout { display: grid; gap: 28px; padding-block: 20px 8px; }
.hero { position: relative; background: var(--pop-haldi); color: var(--ink); border: 3px solid var(--ink);
  border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--shadow); padding: 28px 20px 22px; display: grid; gap: 12px; }
.hero .eyebrow { color: var(--ink-muted); }
.hero h1 { font-size: var(--s-h1); }
.hero .lead { font-size: 18px; color: var(--ink-muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .btn { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.hero .btn-secondary { background: var(--paper); color: var(--ink); }
.hero .btn-primary { background: var(--indigo); color: var(--paper); }
.sticker { position: absolute; top: -14px; right: 14px; transform: rotate(-6deg); background: var(--surface); color: var(--text);
  border: var(--edge); border-radius: 999px; padding: 6px 12px; font: 700 var(--s-xs)/1 var(--font);
  text-transform: uppercase; letter-spacing: 0.06em; box-shadow: var(--lift-sm); }

/* Studio (Sneakers product-details layout) */
.studio { display: grid; gap: 16px; }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.studio-head h2 { font-size: 24px; margin-top: 4px; }
.seg { display: inline-flex; border: var(--edge); border-radius: 999px; padding: 3px; margin: 0; background: var(--surface); gap: 2px; }
.seg label { position: relative; cursor: pointer; }
.seg span { min-height: var(--tap); min-width: 64px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 1px; }

.stage { position: relative; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 250px) * 0.8)); margin-inline: auto; background: var(--pop-lavender); border: var(--edge); border-radius: var(--r-lg);
  box-shadow: var(--lift); margin-bottom: 26px; }
.poster, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: calc(var(--r-lg) - 2px); }
.poster { object-fit: contain; }
.stage canvas { opacity: 0; touch-action: pan-y; outline: none; }
.stage.live canvas { opacity: 1; }
.stage.live .poster { visibility: hidden; }
.stage[data-mode="free"] canvas { cursor: grab; }
.stage[data-mode="free"] canvas:active { cursor: grabbing; }
.tag { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); font-size: var(--s-xs); font-weight: 700;
  padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.sketch-tag { top: 46px; background: var(--pop-haldi); }
.stage:not([data-sketch="true"]) .sketch-tag { display: none; }
.done { position: absolute; right: 10px; top: 8px; min-height: var(--tap); padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 var(--s-cap) var(--font); cursor: pointer; }
.stage-msg { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px;
  font-size: var(--s-cap); font-weight: 600; text-align: center; }
.stage-msg:empty { display: none; }
/* View pills sit on the bottom edge of the stage, half in and half out */
.views { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); display: flex; gap: 8px;
  border: 0; padding: 0; margin: 0; }
.views label { position: relative; cursor: pointer; }
.views span { min-height: var(--tap); min-width: 72px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: var(--edge); background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--lift-sm); }
.views input:checked + span { background: var(--text); color: var(--bg); }
.views input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.stage[data-mode="free"] .views input:checked + span { background: var(--surface); color: var(--text); }

.studio-grid { display: grid; gap: 16px; }
.stage-col, .controls { display: grid; gap: 16px; align-content: start; min-width: 0; }
.product { display: grid; gap: 4px; }
.product h3 { font-size: 22px; }
.product .desc { color: var(--muted); }

/* 4-tile action row */
.tiles { display: grid; grid-template-columns: 3fr 1fr; gap: 8px; }
.tablist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 84px; padding: 10px 4px;
  border: var(--edge); border-radius: var(--r-md); background: var(--surface); color: var(--text); text-align: center;
  font: inherit; cursor: pointer; box-shadow: var(--lift-sm); }
.tile:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.tile[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tile[aria-selected="true"] small { color: var(--bg); }
.tile .knit { width: 24px; height: 24px; border-radius: 50%; border: var(--edge); object-fit: cover; margin-bottom: 2px; }
.tile b { font-size: var(--s-cap); font-weight: 700; line-height: 1.2; }
.tile small { font-size: var(--s-xs); color: var(--muted); line-height: 1.2; }
.tile .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.tile .dot { width: 22px; height: 22px; border-radius: 50%; border: var(--edge); background: var(--indigo); margin-bottom: 2px; }
.tile-btn { background: var(--pop-lavender); color: var(--ink); border-color: var(--ink); }
.tile-btn small { color: var(--ink-muted); }
.tile-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tile-btn[aria-pressed="true"] small { color: var(--paper); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.swatches legend { font-size: var(--s-cap); color: var(--muted); margin-bottom: 6px; padding: 0; }
.swatches legend b { color: var(--text); font-weight: 600; }
.swatch { position: relative; width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.swatch i { width: 34px; height: 34px; border-radius: 50%; border: var(--edge); display: block; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 4px; }
.note { font-size: var(--s-cap); color: var(--muted); }

/* Option panels under the tabs */
.panel { display: grid; gap: 10px; }
.panel[hidden] { display: none; }
.cards { border: 0; padding: 0 0 6px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; min-width: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.opt { scroll-snap-align: start; }
.cards legend { font-size: var(--s-cap); color: var(--muted); margin-bottom: 8px; padding: 0; }
.cards legend b { color: var(--text); font-weight: 600; }
.opt { position: relative; cursor: pointer; display: grid; }
.opt-body { display: grid; align-content: start; gap: 4px; padding: 12px; min-height: 100%; border: var(--edge); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--lift-sm); }
.opt-body b { font-size: var(--s-body); }
.opt-body small { font-size: var(--s-xs); color: var(--muted); line-height: 1.35; }
.opt-body img { width: 56px; height: 56px; border-radius: var(--r-sm); border: var(--edge); object-fit: cover; margin-bottom: 4px; }
.opt input:checked + .opt-body { background: var(--pop-lavender); color: var(--ink); border-color: var(--ink); box-shadow: var(--lift-sm), inset 0 0 0 1px var(--ink); }
.opt input:checked + .opt-body small { color: var(--ink-muted); }
.opt input:checked + .opt-body b::after { content: " ✓"; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--primary); outline-offset: 2px; }
.opt:active .opt-body { transform: translate(2px, 2px); box-shadow: none; }
/* Room bar: how much room each fit gives (relative, not a measurement) */
.ease { display: block; height: 10px; border: 2px solid currentColor; border-radius: 999px; margin-bottom: 6px; padding: 1px; }
.ease i { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.ease[data-w="1"] i { width: 25%; } .ease[data-w="2"] i { width: 50%; } .ease[data-w="3"] i { width: 75%; } .ease[data-w="4"] i { width: 100%; }
.btn-guide { width: 100%; min-height: var(--tap); }
.btn-guide .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip small { font-size: var(--s-xs); color: inherit; opacity: 1; font-weight: 400; }

/* Room view (phones): full-screen dialog with <model-viewer> and the AR button */
.room-cta { display: grid; gap: 6px; }
.room-cta[hidden] { display: none; }
.btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room { padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; background: var(--surface); color: var(--text); }
.room[open] { display: grid; grid-template-rows: auto 1fr auto; }
.room-stage { position: relative; background: var(--pop-lavender); min-height: 0; }
.room-stage model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.room-stage .tag { z-index: 1; }
.room-foot { display: grid; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: var(--edge); }
.room-msg { font-weight: 600; font-size: var(--s-cap); }
.room-msg:empty { display: none; }
/* Inside <model-viewer>: these also show in the AR camera view (WebXR DOM overlay) */
.mv-progress { position: absolute; left: 24px; right: 24px; top: 50%; height: 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); overflow: hidden; }
.mv-progress[hidden] { display: none; }
.mv-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); transition: width 150ms ease-out; }
.ar-size { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); margin: 0; background: var(--paper); color: var(--ink);
  font-size: var(--s-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.ar-coach { display: none; position: absolute; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); margin: 0;
  width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); font-size: var(--s-cap); font-weight: 600;
  padding: 8px 14px; border-radius: 999px; text-align: center; }
/* Our WebXR overlay: the camera view shows through. Root takes drags (turn the tee); controls sit top and bottom. */
.ar-ui { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; background: transparent;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); touch-action: none; }
.ar-ui[hidden], .ar-ui [hidden] { display: none; }
.ar-ui { grid-template-columns: minmax(0, 1fr); }
.ar-ui .ar-coach { max-width: 100%; text-align: center; text-wrap: balance; }
.ar-top { display: flex; justify-content: space-between; align-items: center; }
.ar-ui .ar-size, .ar-ui .ar-coach, .ar-ui .ar-chips { position: static; transform: none; }
.ar-ui .ar-coach { display: block; justify-self: center; }
.ar-ui .ar-coach:empty { display: none; }
.ar-bottom { grid-row: 4; display: grid; justify-items: center; gap: 10px; }
.ar-bottom .btn { min-width: 160px; }
.ar-stuck { display: grid; gap: 8px; justify-items: center; }
.ar-stuck[hidden] { display: none; }
.ar-debug { justify-self: center; margin: 0; padding: 4px 10px; border-radius: 8px; background: rgb(0 0 0 / 0.7); color: #fff;
  font: 12px/1.4 ui-monospace, monospace; }
.ar-debug[hidden] { display: none; }
.ar-chips { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px;
  padding: 5px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--lift-sm); }
.ar-chips button { width: var(--tap); height: var(--tap); padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: var(--c);
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ar-chips button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.ar-chips button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
/* Pinch on the stage: the hint fills as the fingers spread; full = the room opens */
.pinch-hint { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 24px);
  display: grid; gap: 6px; background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: 8px 14px;
  font-size: var(--s-cap); font-weight: 600; text-align: center; pointer-events: none; }
.pinch-hint[hidden] { display: none; }
.pinch-hint i { display: block; height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--paper) 30%, transparent); overflow: hidden; }
.pinch-hint i::before { content: ""; display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: var(--pop-haldi); }

/* Size guide: bottom sheet on phones, centred panel on desktop */
.sheet { padding: 0; border: var(--edge); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); color: var(--text);
  width: 100%; max-width: 100%; max-height: 88dvh; margin: auto auto 0; overflow: hidden; }
.sheet[open] { display: grid; grid-template-rows: auto 1fr; }
.sheet::backdrop { background: rgb(14 17 32 / 0.55); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: var(--edge); }
.sheet-head h2 { font-size: 20px; }
.sheet-close { min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: var(--edge); background: var(--surface); color: var(--text);
  font: 600 var(--s-cap) var(--font); cursor: pointer; flex: 0 0 auto; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 32px; }
.sheet-body > * + * { margin-top: 12px; }
.sheet-body > h3 { margin-top: 24px; }
.sheet-body h3 { font-size: 16px; }
.sheet-body p, .sheet-body li { font-size: 15px; }
.sheet-body ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.callout { background: var(--pop-haldi); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 10px 12px; max-width: none; }
.table-wrap { overflow-x: auto; border: var(--edge); border-radius: var(--r-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: var(--s-cap); font-variant-numeric: tabular-nums; }
.table-wrap th, .table-wrap td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--muted); white-space: nowrap; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th { background: var(--pop-lavender); color: var(--ink); }
.sources { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Status: Relay-style pop cards */
.status { padding-block: 40px 40px; display: grid; gap: 6px; }
.status h2 { font-size: var(--s-h2); margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.facts div { color: var(--ink); border: var(--edge); border-color: var(--ink); border-radius: var(--r-md); padding: 14px;
  display: grid; gap: 6px; align-content: start; min-height: 96px; }
.facts dt { font-size: var(--s-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.facts dd { margin: 0; font: 800 16px/1.2 var(--display); letter-spacing: -0.01em; }
.pop-pink { background: var(--pop-pink); } .pop-neem { background: var(--pop-neem); }
.pop-sky { background: var(--pop-sky); } .pop-haldi { background: var(--pop-haldi); }

/* Waitlist: lavender band, outlined form card */
.join { background: var(--pop-lavender); color: var(--ink); border-block: var(--edge); border-color: var(--ink); padding-block: 36px 44px; }
.join-inner { display: grid; gap: 20px; }
.join-head { display: grid; gap: 8px; }
.join-head .eyebrow { color: var(--ink-muted); }
.join-head h2 { font-size: var(--s-h2); }
.join-head p:last-child { color: var(--ink-muted); }
form { background: var(--surface); color: var(--text); border: var(--edge); border-color: var(--ink); border-radius: var(--r-lg);
  box-shadow: 6px 6px 0 var(--ink); padding: 20px 16px; display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field > label, fieldset > legend { font-weight: 600; padding: 0; }
.hint { font-size: var(--s-cap); color: var(--muted); font-weight: 400; }
input[type="email"] { width: 100%; min-height: 52px; padding: 0 14px; font: 400 16px var(--font); color: var(--text);
  background: var(--bg); border: var(--edge); border-radius: var(--r-sm); }
input[type="email"]::placeholder { color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; min-height: var(--tap); min-width: var(--tap); justify-content: center; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
  border: var(--edge); border-radius: 999px; cursor: pointer; font-weight: 500; background: var(--surface); box-shadow: var(--lift-sm); }
.chip:has(input:checked) { background: var(--text); color: var(--bg); font-weight: 700; }
.chip:has(input:checked)::before { content: "✓"; }
.chip:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-weight: 600; }
.msg:empty { display: none; }
.msg.ok { color: var(--success); } .msg.err { color: var(--error); }
.small { font-size: var(--s-cap); color: var(--muted); }

/* Phone sticky CTA (thumb zone) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: var(--edge); }
.buybar[hidden] { display: none; }

footer { border-top: var(--edge); padding: 24px 0 32px; color: var(--muted); font-size: var(--s-cap); }
footer .wrap { display: grid; gap: 10px; }
footer p { max-width: 70ch; }

@media (max-width: 599px) {
  .stage { aspect-ratio: 1 / 1; }
}
@media (min-width: 600px) {
  .cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; }
}
@media (min-width: 720px) {
  .studio-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .stage-col { position: sticky; top: 76px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .buybar { display: none; }
  .layout { gap: 48px; padding-block: 40px 16px; }
  .hero { padding: 40px 40px 32px; }
  .hero h1 { font-size: 48px; max-width: 18ch; }

  .studio-head h2 { font-size: 28px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .join-inner { grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
  form { padding: 28px; }
  .sheet { max-width: 640px; border-radius: var(--r-lg); margin: auto; max-height: 85dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .pill-link, .tile-btn, .views span, .seg span { transition: transform .12s, box-shadow .12s, background-color .15s, color .15s; }
  .stage canvas { transition: opacity .3s; }
}

/* Privacy and 404 pages */
body.plain { padding-bottom: 0; }
.page { padding-block: 32px 48px; display: grid; gap: 24px; }
.stack { display: grid; gap: 12px; }
.h-page { font-size: var(--s-h2); }
.h-sub { font-size: var(--s-lead); }
