/* Buzzydice site. One motif: the die face (a rounded square with pips) is the hero shape,
   the button corner, the stage for the example slides, the FAQ cards and the footer. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url(fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-display: swap; src: url(fonts/schibsted-grotesk-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #0E0C0F;
  --surface: #1C191E;
  --surface-2: #2A262C;
  --ink: #F3F1EF;
  --muted: #BDB5AE;
  --yellow: #FFCC33;
  --pink: #FF5C8A;
  --on-accent: #0E0C0F;
  --brand: linear-gradient(135deg, var(--yellow), var(--pink)); /* taste-skill-ignore: the Buzzydice brand gradient, used only on the die */

  --margin: clamp(16px, 5vw, 96px);
  --gap: 24px;
  --section: clamp(120px, 14vw, 200px);
  --radius: 16px;                 /* the die's corner, used on every button and panel */

  /* Five type sizes for the whole site. Every font-size uses one of them. */
  --step-small: 0.9375rem;                               /* 15px: notes, labels, footer */
  --step-body: 1.125rem;                                 /* 18px: running text */
  --step-lead: 1.5rem;                                   /* 24px: lead lines, card titles */
  --step-head: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);    /* 40-72px: section headings */
  --step-display: clamp(2.75rem, 1rem + 6.4vw, 6.25rem); /* 44-100px: page titles */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: var(--step-body);
  line-height: 1.5; letter-spacing: -0.01em; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--on-accent); }
.skip { position: absolute; left: var(--margin); top: -100px; background: var(--yellow); color: var(--on-accent); padding: 12px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, .display { font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- buttons and the die mark ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: var(--radius); background: var(--ink); color: var(--on-accent); border: 0; cursor: pointer;
  font-weight: 800; font-size: var(--step-body); text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: var(--yellow); }
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--on-accent); color: var(--ink); }
.btn--dark:hover { background: var(--pink); color: var(--on-accent); }

.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.04em; text-decoration: none; }
.mark svg { width: 34px; height: 34px; flex: none; transition: transform var(--t-ui) var(--ease-out); }
.mark:hover svg { transform: rotate(-12deg); }

/* ---------- header ---------- */

.top {
  position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--margin);
}
.top nav { display: flex; gap: 32px; font-weight: 600; font-size: var(--step-small); }
.top nav a { position: relative; text-decoration: none; padding: 8px 0; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.top nav a:hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
.page .top { position: static; }

/* ---------- hero: the die ---------- */

.hero { position: relative; min-height: max(100svh, 680px); overflow: hidden; display: flex; align-items: center; }
.hero__die {
  position: absolute; width: 120vh; height: 120vh; top: calc(55% - 60vh); left: max(58vw, calc(78% - 60vh));
  border-radius: 22%; background: var(--brand); transform: rotate(-8deg);
  animation: die-in 1.4s var(--ease-expo) both, drift 14s ease-in-out 1.4s infinite alternate;
}
.pip { position: absolute; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); }
.pip--tl { left: 15%; top: 15%; } .pip--tr { right: 15%; top: 15%; }
.pip--ml { left: 15%; top: 42.5%; } .pip--mr { right: 15%; top: 42.5%; }
.pip--bl { left: 15%; bottom: 15%; } .pip--br { right: 15%; bottom: 15%; }
.pip--c { left: 42.5%; top: 42.5%; }
.hero .pip { animation: pip-in 600ms var(--ease-out) both; }
.hero .pip:nth-child(2) { animation-delay: 700ms; } .hero .pip:nth-child(3) { animation-delay: 780ms; }
.hero .pip:nth-child(4) { animation-delay: 860ms; } .hero .pip:nth-child(5) { animation-delay: 940ms; }
.hero .pip:nth-child(6) { animation-delay: 1020ms; } .hero .pip:nth-child(1) { animation-delay: 620ms; }

.hero__copy { position: relative; z-index: 1; padding: 0 var(--margin); max-width: calc(58vw - 24px); }
.hero h1 { font-size: var(--step-display); }
.line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; animation: rise 900ms var(--ease-expo) both; }
.line + .line > span { animation-delay: 110ms; }
.hero__lead { margin-top: 36px; font-size: var(--step-lead); line-height: 1.35; max-width: 31ch; animation: fade-up 700ms var(--ease-out) 350ms both; }
.hero__act { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; animation: fade-up 700ms var(--ease-out) 450ms both; }
.hero__act p { font-size: var(--step-small); color: var(--muted); max-width: 22ch; }

@keyframes die-in { from { transform: translate(18vw, 6vh) rotate(18deg); } to { transform: rotate(-8deg); } }
@keyframes drift { to { transform: rotate(-5deg) translateY(-1.5vh); } }
@keyframes pip-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- section entrances (only when the script is running) ---------- */

.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > :nth-child(2) { transition-delay: 80ms; }
.js [data-reveal].is-in > :nth-child(3) { transition-delay: 160ms; }
.js [data-reveal].is-in > :nth-child(4) { transition-delay: 240ms; }
.js [data-reveal].is-in > :nth-child(5) { transition-delay: 320ms; }

/* ---------- how it works: drag through the stages ---------- */

.how { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; min-height: 88svh; }
.how__text { background: var(--surface); padding: 72px var(--margin); display: flex; flex-direction: column; gap: 40px; }
.how__text .stage .how__desc { margin-top: 20px; }
.how__stage { background: var(--pink); display: grid; place-items: center; padding: 72px 32px; }
.how__clause { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 24ch; }
.how__desc { max-width: 38ch; }
.stage { display: none; }
.stage.is-active { display: block; animation: fade-in var(--t-ui) ease both; }
.no-js .stage, .how:not(.is-live) .stage { display: block; }
.how:not(.is-live) .how__stage { gap: 24px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.how__slider { grid-column: 1 / -1; padding: 28px var(--margin) 32px; background: var(--surface); }
.how:not(.is-live) .how__slider { display: none; }
.how__slider input { width: 100%; appearance: none; -webkit-appearance: none; height: 32px; background: transparent; cursor: pointer; margin: 0; }
.how__slider input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--surface-2); } /* taste-skill-ignore: flat progress fill of a real range input */
.how__slider input::-moz-range-track { height: 8px; border-radius: 4px; background: var(--surface-2); }
.how__slider input::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--ink); }
.how__slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 9px; background: var(--yellow); transition: transform var(--t-press) var(--ease-out); }
.how__slider input::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--yellow); }
.how__slider input:active::-webkit-slider-thumb { transform: scale(1.15); }
.how__names { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.how__names li:nth-child(2) { text-align: center; } .how__names li:nth-child(3) { text-align: right; }
.how__names button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; font-weight: 600; transition: color var(--t-hover) ease; }
.how__names button:hover, .how__names button[aria-current="step"] { color: var(--ink); }

/* interface fragments: the product's own small panels */
.ui { width: min(440px, 100%); background: var(--ink); color: var(--on-accent); border-radius: var(--radius); padding: 28px; font-size: var(--step-small); line-height: 1.4; }
.ui__title { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.03em; display: flex; gap: 10px; align-items: center; }
.ui__title svg { width: 28px; height: 28px; }
.ui__sub { color: #4A454C; margin-top: 4px; }
.ui__list { margin-top: 20px; display: grid; gap: 10px; }
.ui__list li { display: flex; gap: 10px; align-items: baseline; }
.ui__list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); transform: translateY(-1px); }
.ui__list.no li::before { background: none; border: 2px solid #77707A; }
.ui__head { margin-top: 22px; font-weight: 800; font-size: var(--step-small); }
.ui__btns { display: flex; gap: 10px; margin-top: 24px; }
.ui__btn { flex: 1; min-height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; background: #E6E0DA; }
.ui__btn--go { background: var(--on-accent); color: var(--ink); }
.ui__field { margin-top: 14px; }
.ui__field span { display: block; font-size: var(--step-small); font-weight: 600; color: #4A454C; }
.ui__field b { display: block; margin-top: 4px; background: #E9E3DD; border-radius: 10px; padding: 10px 12px; font-weight: 400; }
.ui__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ui__chips i { font-style: normal; padding: 6px 12px; border-radius: 999px; background: #E9E3DD; font-size: var(--step-small); }
.ui__chips i.on { background: var(--on-accent); color: var(--ink); }
.ui__post { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-top: 18px; align-items: center; }
.ui__post img { border-radius: 10px; }
.ui__status { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--yellow); font-weight: 600; font-size: var(--step-small); }

/* ---------- showcase: six faces ---------- */

.show { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: center; min-height: 100svh; }
.show__list h2 { margin-bottom: 28px; }
.show__intro { max-width: 34ch; margin-bottom: 36px; }
.show__names { display: grid; gap: 4px; }
.show__names button {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; color: var(--muted);
  transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}
.show__names button:hover { color: var(--ink); transform: translateX(6px); }
.show__names button[aria-pressed="true"] { color: var(--ink); }
.show__names button[aria-pressed="true"]::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-left: 0.3em; border-radius: 50%; background: var(--yellow); vertical-align: middle; }
.show__stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 86svh; justify-self: center; width: 100%; }
.show__face { position: absolute; inset: 6%; border-radius: 22%; background: var(--yellow); transform: rotate(4deg); transition: background-color 300ms ease, transform 600ms var(--ease-out); }
.show__stage[data-face="even"] .show__face { background: var(--pink); transform: rotate(-4deg); }
.show__slide { position: relative; width: 58%; border-radius: 14px; overflow: hidden; }
.show__slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.js .show__slide img.is-swapping { animation: shutter 600ms var(--ease-in-out) both; }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
.show__fact { margin-top: 28px; max-width: 34ch; min-height: 4.5em; }
.show__note { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* ---------- different: tiles on a board ---------- */

.diff { margin-top: var(--section); padding: 0 var(--margin); }
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 112px; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile h3 { font-size: var(--step-lead); }
.tile p { font-size: var(--step-small); margin-top: 6px; max-width: 40ch; }
.tile--head { grid-column: 1 / 7; grid-row: 1 / 3; justify-content: flex-start; background: transparent; padding: 0; }
.tile--head h2 { max-width: 12ch; }
.tile--brand { grid-column: 7 / 13; grid-row: 1 / 6; background: var(--surface-2); justify-content: center; }
.tile--facts { grid-column: 1 / 7; grid-row: 3 / 6; background: var(--yellow); color: var(--on-accent); }
.tile--cases { grid-column: 1 / 5; grid-row: 6 / 10; background: var(--pink); color: var(--on-accent); }
.tile--voice { grid-column: 5 / 9; grid-row: 6 / 8; }
.tile--approve { grid-column: 9 / 13; grid-row: 6 / 8; background: var(--surface-2); }
.tile--profile { grid-column: 5 / 13; grid-row: 8 / 10; }

.check { position: absolute; top: 20px; right: 20px; width: min(380px, calc(100% - 40px)); display: grid; gap: 8px; }
.check li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: var(--step-small); }
.check li b { font-weight: 800; }
.check li span { color: #4A454C; display: block; }
.check li em { font-style: normal; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--on-accent); color: var(--ink); }
.check li.cut em { background: #E6E0DA; color: var(--on-accent); }
.check li.cut b { text-decoration: line-through; }

.case { position: absolute; top: 24px; left: 24px; right: 24px; background: var(--ink); border-radius: 14px; padding: 16px; font-size: var(--step-small); }
.case b { display: block; font-size: var(--step-body); letter-spacing: -0.02em; }
.case span { color: #4A454C; }

.toggle { position: absolute; top: 22px; right: 22px; width: 76px; height: 42px; border-radius: 999px; background: var(--yellow); }
.toggle::after { content: ""; position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; background: var(--on-accent); }
.voice { position: absolute; top: 20px; left: 24px; right: 24px; font-size: var(--step-body); color: var(--muted); }
.thumbs { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; }
.thumbs img { width: 88px; height: 110px; object-fit: cover; border-radius: 8px; transition: transform var(--t-ui) var(--ease-out); }
.thumbs img:hover { transform: translateY(-4px); }
.avatars { display: flex; align-items: center; gap: 12px; margin-bottom: auto; }
.avatars i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--yellow); color: var(--on-accent); }
.avatars span { font-weight: 600; }

/* the live thing: pick a brand, see the slide */
.picker { display: grid; grid-template-columns: 1fr minmax(180px, 46%); gap: 24px; align-items: start; }
.picker__controls { display: grid; gap: 16px; }
.picker label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--step-small); cursor: pointer; }
.picker input[type="color"] { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.picker input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.picker input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 12px; }
.picker input[type="color"]::-moz-color-swatch { border: 0; border-radius: 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; position: relative; overflow: hidden; transition: transform var(--t-press) var(--ease-out); }
.presets button:hover { transform: translateY(-2px); }
.presets button:active { transform: scale(0.94); }
.presets button span { position: absolute; inset: 50% 0 0; }
.picker__ratio { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.picker__ratio b { color: var(--ink); white-space: nowrap; }
.slide-wrap { container-type: inline-size; width: 100%; }
.slide { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; padding: 9cqw; display: flex; flex-direction: column; background: #000; color: #fff; transition: background-color 300ms ease; }
.slide__pill { align-self: flex-start; font-size: 3.4cqw; font-weight: 800; letter-spacing: 0.04em; padding: 0.4em 0.8em; border-radius: 0.4em; text-transform: none; }
.slide__head { margin-top: 18cqw; font-size: 9.6cqw; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.slide__sub { margin-top: 7cqw; font-size: 4.6cqw; font-weight: 600; line-height: 1.2; }
.slide__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 3cqw; font-weight: 600; }

/* ---------- FAQ: index cards ---------- */

.faq { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); }
.faq > h2, .cards { grid-column: 3 / 11; }
.faq > h2 { margin-bottom: 56px; }
.cards { display: grid; }
.card { --c: var(--surface); position: relative; margin-top: 8px; padding-top: 44px; }
.card:first-child { margin-top: 0; }
.card:nth-child(3n + 2) { --c: var(--yellow); --t: var(--on-accent); }
.card:nth-child(3n + 3) { --c: var(--pink); --t: var(--on-accent); }
.card__tab {
  position: absolute; top: 0; height: 46px; width: 200px; left: calc(var(--i, 0) * (100% - 200px) / 5);
  background: var(--c); color: var(--t, var(--ink)); border-radius: 14px 14px 0 0; padding: 10px 20px; font-weight: 600; font-size: var(--step-small);
}
.card__body { background: var(--c); color: var(--t, var(--ink)); border-radius: 0 var(--radius) var(--radius) var(--radius); }
.card:not(:first-child) .card__body { border-top-left-radius: var(--radius); }
.card:first-child .card__body { border-top-left-radius: 0; }
.card__q { width: 100%; text-align: left; background: none; border: 0; padding: 24px 28px; cursor: pointer; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 24px; color: inherit; }
.card__q::after { content: "+"; font-weight: 400; font-size: var(--step-lead); line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.card__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.card__a { padding: 0 28px 32px; max-width: 58ch; }
.card__a[hidden] { display: none; }

/* ---------- CTA: the first step, already open ---------- */

.start { margin-top: var(--section); background: var(--yellow); color: var(--on-accent); padding: 96px var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; gap: var(--gap); }
.start__text { grid-column: 1 / 6; }
.start__text h2 { font-size: var(--step-display); }
.start__text p { margin-top: 20px; max-width: 34ch; }
.start__form { grid-column: 7 / 12; justify-self: end; width: min(460px, 100%); background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -20px rgba(14, 12, 15, 0.45); } /* taste-skill-ignore: the open dialog floats above the field */
.start__form h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; }
.start__form label { display: block; margin-top: 22px; font-weight: 600; font-size: var(--step-small); }
.start__form input[type="text"] { display: block; width: 100%; margin-top: 8px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.start__form input[type="text"]:focus-visible { outline-offset: 0; }
.seg { margin: 22px 0 0; padding: 0; border: 0; }
.seg legend { font-weight: 600; font-size: var(--step-small); padding: 0; }
.seg div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; padding: 6px; border-radius: 14px; background: var(--surface-2); }
.seg input { position: absolute; opacity: 0; }
.seg label { margin: 0; text-align: center; padding: 10px 8px; border-radius: 10px; cursor: pointer; font-size: var(--step-small); transition: background-color var(--t-hover) ease; }
.seg input:checked + label { background: var(--ink); color: var(--on-accent); }
.seg input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.start__form .btn { width: 100%; margin-top: 28px; background: var(--yellow); }
.start__form .btn:hover { background: var(--pink); }
.start__form small { display: block; margin-top: 14px; font-size: var(--step-small); color: var(--muted); }

/* ---------- footer: the die, built large ---------- */

.foot { padding: 96px var(--margin) var(--margin); }
.foot__dice { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; }
.foot__dice span { position: relative; aspect-ratio: 1; border-radius: 22%; background: var(--yellow); transition: transform var(--t-ui) var(--ease-out); }
.foot__dice span:nth-child(even) { background: var(--pink); }
.foot__dice span:hover { transform: rotate(-6deg); }
.foot__dice .pip { width: 17%; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); font-size: var(--step-small); }
.foot__brand { grid-column: 1 / 5; }
.foot__brand p { margin-top: 12px; color: var(--muted); max-width: 30ch; }
.foot__links { grid-column: 6 / 9; display: grid; gap: 8px; align-content: start; }
.foot__contact { grid-column: 9 / 13; display: grid; gap: 8px; align-content: start; justify-items: end; text-align: right; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { margin-top: 40px; color: var(--muted); font-size: var(--step-small); }

/* ---------- legal pages ---------- */

.legal { padding: 48px var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.legal__head { grid-column: 1 / 13; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; margin-bottom: 72px; }
.legal__head h1 { font-size: var(--step-display); }
.legal__head p { color: var(--ink); max-width: 40ch; }
.legal__toc { grid-column: 1 / 4; position: sticky; top: 24px; align-self: start; background: var(--surface); border-radius: var(--radius); padding: 24px; }
.legal__toc h2 { font-size: var(--step-body); letter-spacing: -0.02em; }
.legal__toc ol { margin-top: 12px; display: grid; gap: 6px; font-size: var(--step-small); }
.legal__toc a { text-decoration: none; color: var(--muted); }
.legal__toc a:hover { color: var(--ink); }
.legal__body { grid-column: 5 / 12; max-width: 68ch; }
.legal__body section + section { margin-top: 56px; }
.legal__body h2 { font-size: var(--step-lead); letter-spacing: -0.04em; margin-bottom: 18px; scroll-margin-top: 24px; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 14px; }
.legal__body ul { display: grid; gap: 10px; margin-top: 14px; }
.legal__body li { padding-left: 24px; position: relative; }
.legal__body li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 3px; background: var(--yellow); }
.legal__body b { font-weight: 600; }
.legal__body a { text-decoration-color: var(--pink); text-underline-offset: 3px; }

/* ---------- tablet and phone ---------- */

@media (max-width: 1080px) {
  .hero { align-items: flex-start; }
  .hero__die { width: 110vw; height: 110vw; left: -5vw; top: 56svh; }
  .hero__copy { max-width: none; padding-top: 18svh; }
  .tile--head { grid-column: 1 / 13; grid-row: auto / span 2; }
  .tile--brand { grid-column: 1 / 13; grid-row: auto / span 5; }
  .tile--facts { grid-column: 1 / 13; grid-row: auto / span 3; }
  .tile--cases { grid-column: 1 / 7; grid-row: auto / span 4; }
  .tile--voice { grid-column: 7 / 13; grid-row: auto / span 2; }
  .tile--approve { grid-column: 7 / 13; grid-row: auto / span 2; }
  .tile--profile { grid-column: 1 / 13; grid-row: auto / span 2; }
  .board { grid-auto-flow: row dense; }
  .board { grid-auto-rows: 96px; }
  .faq > h2, .cards { grid-column: 1 / 13; }
  .start__text { grid-column: 1 / 13; }
  .start__form { grid-column: 1 / 13; justify-self: start; }
  .legal__head { grid-template-columns: 1fr; }
  .legal__toc { grid-column: 1 / 13; position: static; }
  .legal__body { grid-column: 1 / 13; }
}

@media (max-width: 720px) {
  .top { padding: 20px var(--margin); }
  .top nav a:not(.top__cta) { display: none; }
  .hero { align-items: flex-start; min-height: 100svh; }
  .hero__die { width: 130vw; height: 130vw; left: -15vw; top: 60svh; }
  .hero__copy { max-width: none; padding-top: 15svh; }
  .hero__lead { margin-top: 20px; font-size: var(--step-body); }
  .hero__act { margin-top: 24px; }

  .how { grid-template-columns: 1fr; min-height: 0; }
  .how__stage { min-height: 46svh; padding: 32px 16px; }
  .how__slider { grid-column: 1; grid-row: 2; padding: 20px var(--margin); }
  .how__text { grid-row: 3; padding: 40px var(--margin) 64px; }
  .how__slider input::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }

  .show { grid-template-columns: 1fr; min-height: 0; }
  .show__stage { order: -1; width: 86vw; }
  .show__list h2 { margin-bottom: 20px; }
  .show__names { display: flex; flex-wrap: wrap; gap: 2px 20px; }
  .show__names button { white-space: nowrap; font-size: var(--step-lead); width: auto; }

  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px; }
  .board > .tile { grid-column: 1 / 3; grid-row: auto; min-height: 0; }
  .tile--head { padding-bottom: 16px; }
  .tile--facts, .tile--cases, .tile--voice { padding-top: 18px; }
  .tile .check, .tile .case, .tile .voice { position: static; margin-bottom: 16px; }
  .tile--voice, .tile--approve { grid-column: span 1 !important; }
  .tile--approve { padding-top: 80px; }
  .tile { padding-left: 18px; padding-right: 18px; padding-bottom: 18px; }
  .tile--head { padding: 0 0 16px; }
  .tile--profile { padding-top: 18px; }
  .tile--profile .thumbs { position: static; margin-bottom: 16px; }
  .tile--profile .avatars { margin-bottom: 12px; }
  .picker { grid-template-columns: 1fr; }
  .picker .slide-wrap { order: -1; width: 72%; }
  .check { left: 18px; right: 18px; width: auto; }
  .thumbs { left: 18px; right: auto; }
  .voice { top: 18px; left: 18px; right: 18px; }
  .voice { font-size: var(--step-small); }

  .card__tab { width: 132px; left: calc(var(--i, 0) * (100% - 132px) / 5); padding: 11px 16px; }
  .card__q { padding: 20px; font-size: var(--step-body); }
  .card__a { padding: 0 20px 24px; }

  .start { padding: 56px var(--margin); align-items: start; }
  .start__text { align-self: start; }

  .foot__row { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / 3; }
  .foot__links { grid-column: 1 / 2; }
  .foot__contact { grid-column: 2 / 3; }

  .legal__head { grid-template-columns: 1fr; margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] > * { opacity: 1; transform: none; }
}

/* FAQ tab offsets (set here because the page allows no inline styles) */
.card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; }
.card:nth-child(5) { --i: 4; } .card:nth-child(6) { --i: 5; }
