/* Seanime Mobile site. Ink, paper, the app's violet and one yellow. */

@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/dela-gothic-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0b0a1c;
  --ink-2: #15132f;
  --ink-3: #1f1c47;
  --paper: #f4eee1;
  --paper-2: #e6dcc6;
  --violet: #6f5cff;
  --violet-2: #4b3bdc;
  --violet-hi: #8f7fff;
  --v-rgb: 111 92 255;
  --vh-rgb: 140 124 255;
  --ink-rgb: 11 10 28;
  --on-violet: #fff;
  --tone-deep: #2b2178;
  --swatch: #6152df;
  --sun: #ffd938;
  --text: #f6f1e7;
  --dim: rgba(246, 241, 231, .76);
  --line: rgba(246, 241, 231, .16);
  --display: "Dela Gothic One", "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
  --gutter: clamp(16px, 4.4vw, 72px);
  --max: 1280px;
  --cut: clamp(22px, 3vw, 48px);
  --pad: clamp(64px, 7.4vw, 116px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 58px; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100vh;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--text);
  background-color: var(--ink);
  /* seen only where the canvas cannot run */
  background-image: radial-gradient(circle, rgb(var(--v-rgb) / .22) 0 1.5px, transparent 1.6px);
  background-size: 11px 11px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, dl, dd, figure, ol { margin: 0; }
em { font-style: normal; font-weight: 700; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
.is-sun :focus-visible, .is-paper :focus-visible, .wiz__panel :focus-visible, .cmp__table :focus-visible { outline-color: var(--violet-2); }
.desk :focus-visible { outline-color: var(--sun); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
kbd { display: inline-block; min-width: 1.9em; text-align: center; font: 800 .8em/1 var(--body); padding: .42em .5em .4em; border-radius: 7px; border: 1.5px solid currentColor; border-bottom-width: 3px; }

.tone { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
/* paper grain over the dark ground, under everything else */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main, .foot { position: relative; z-index: 1; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.d1, .d2, .d3 { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
.d1 { font-size: clamp(2.3rem, 5.9vw, 5.3rem); line-height: 1.05; }
.d1 .line { display: block; white-space: nowrap; }
.d2 { font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.08; }
.d2--xl { font-size: clamp(2.6rem, 6.6vw, 5.8rem); line-height: .98; }
.d3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--dim); max-width: 34em; }
.d2 + .lead, .d1 + .lead { margin-top: clamp(16px, 1.8vw, 24px); }
.is-paper .lead, .is-sun .lead { color: rgb(var(--ink-rgb) / .8); }
.is-violet .lead { color: rgba(255, 255, 255, .88); }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sun); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.is-sun .link, .is-paper .link, .wiz__panel .link, .keysbox .link { text-decoration-color: var(--violet-2); }
.is-sun .desk .link { text-decoration-color: var(--sun); }
.linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; }
.kicker { margin-bottom: 18px; }

/* word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .14em; margin: -.08em -.02em -.14em; }
.w__i { display: inline-block; } /* no will-change: every word of every heading would keep a layer of its own */

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sun); --fg: var(--ink); --edge: var(--ink); --drop: var(--violet);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 800 1.0625rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: 1.05em 1.55em; border-radius: 999px;
  color: var(--fg); background: var(--bg); border: 2.5px solid var(--edge);
  box-shadow: 5px 5px 0 var(--drop);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
}
/* hover only where a pointer can hover: on touch screens it would stick after a tap */
@media (hover: hover) { .btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--drop); } }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--drop); transition-duration: .06s; }
.btn--sm { font-size: .95rem; padding: .78em 1.15em; box-shadow: 3px 3px 0 var(--drop); }
.btn--sm:hover { box-shadow: 5px 5px 0 var(--drop); }
.btn--ink { --bg: var(--ink); --fg: var(--sun); --edge: var(--ink); --drop: rgb(var(--ink-rgb) / .28); }
.is-paper .btn--ink, .wiz__panel .btn--ink { --drop: var(--violet); }
.btn--sun { --drop: var(--violet); }
.btn--ghost { --bg: transparent; --fg: var(--text); --edge: rgba(246, 241, 231, .5); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: rgba(246, 241, 231, .1); --edge: var(--text); }
.btn--ghost:active { box-shadow: none; }
.btn--ghost-ink { --fg: var(--ink); --edge: var(--ink); }
/* toast for buttons that need a word of explanation (Add to Obtainium off Android) */
.toast { position: fixed; z-index: 90; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: max-content; max-width: min(92vw, 34rem); padding: .9em 1.15em; border-radius: 14px; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); font: 700 .95rem/1.4 var(--body); box-shadow: 5px 5px 0 var(--violet); opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .link { color: var(--ink); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.btn--ghost-ink:hover { background: rgb(var(--ink-rgb) / .08); --edge: var(--ink); }
.rbtn { width: 48px; height: 48px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--ink); background: var(--sun); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--violet); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.rbtn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--violet); }
.rbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--violet); }
.cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: clamp(22px, 2.6vw, 36px); }
.meta { margin-top: 18px; font-size: .95rem; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.meta--ink { color: rgb(var(--ink-rgb) / .8); }
.note { margin-top: 10px; font-size: .95rem; color: rgb(var(--ink-rgb) / .78); max-width: 38em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background-color .35s, box-shadow .35s, padding .35s var(--ease);
}
.nav.is-stuck { background: rgb(var(--ink-rgb)); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.06rem/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 10px; display: block; box-shadow: 0 0 0 1.5px rgba(246, 241, 231, .25); transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 38px); margin-left: auto; margin-right: clamp(8px, 2vw, 28px); }
.nav__links a { text-decoration: none; font-weight: 700; font-size: .98rem; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- devices ---------- */
.phone {
  --r: 40px; --bezel: 9px;
  position: relative; padding: var(--bezel); border-radius: var(--r);
  background: linear-gradient(150deg, #34306a 0%, #0c0b1a 34%, #05040c 70%, #1a1838 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 0 0 1px #000;
}
/* floor shadow: a soft ellipse under the device instead of a boxy drop shadow */
.phone::before {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: -30px; height: 70px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8) 0%, rgba(54, 40, 190, .38) 58%, rgba(54, 40, 190, 0) 100%);
}
.phone__screen { display: block; border-radius: calc(var(--r) - var(--bezel)); overflow: hidden; background: var(--ink); aspect-ratio: 720 / 1488; position: relative; isolation: isolate; }
.phone__screen > video, .phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 26%); }
.phone--land { --r: 30px; --bezel: 9px; }
.phone--land .phone__screen { aspect-ratio: 1440 / 672; }
.phone--md { --r: clamp(22px, 2.4vw, 32px); --bezel: clamp(5px, .55vw, 7px); }
.tablet { --r: clamp(16px, 2vw, 26px); --bezel: clamp(7px, .9vw, 11px); }
.tablet .phone__screen { aspect-ratio: 16 / 10; }
.is-paper .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 0 0 1px #000, 12px 12px 0 rgb(var(--ink-rgb) / .12); }
.is-paper .phone::before { background: radial-gradient(closest-side, rgb(var(--ink-rgb) / .5) 0%, rgb(var(--ink-rgb) / 0) 100%); }
.is-violet .phone::before { background: radial-gradient(closest-side, rgb(var(--ink-rgb) / .75) 0%, rgb(var(--ink-rgb) / 0) 100%); }

/* ---------- speech bubbles ---------- */
.bubble {
  --rot: -7deg;
  position: absolute; z-index: 3; rotate: var(--rot);
  font: 400 clamp(.86rem, 1.2vw, 1.1rem)/1.18 var(--display); text-align: center; white-space: nowrap;
  padding: 1.15em 1.45em 1.2em; color: var(--ink);
  background: radial-gradient(circle, rgb(var(--ink-rgb) / .2) 0 1.1px, transparent 1.3px) 0 0 / 6px 6px, var(--sun);
  background-clip: padding-box;
  border: 2.5px solid var(--ink); border-radius: 52% 48% 50% 50% / 56% 54% 46% 44%;
  box-shadow: 5px 5px 0 var(--ink);
}
.bubble::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 100% at 30% 20%, var(--bub, var(--sun)) 46%, transparent 78%); z-index: -1; }
.bubble::after { content: ""; position: absolute; width: 1.1em; height: 1.1em; background: var(--bub, var(--sun)); border: solid var(--ink); border-width: 0 2.5px 2.5px 0; bottom: -.55em; left: 62%; transform: rotate(45deg) skew(14deg, 14deg); }
.bubble { isolation: isolate; }
.bubble--a { left: -27%; bottom: 8%; }
.bubble--b { --rot: 6deg; --bub: var(--paper); left: 112%; top: 71%; background-color: var(--paper); }
.bubble--b::after { left: 18%; }
.bubble--d { --rot: -6deg; left: -3%; top: -12%; }
.bubble--c { --rot: 8deg; --bub: var(--violet); right: 8%; top: -11%; background-color: var(--violet); color: #fff; }
.bubble--c::after { left: 24%; }

/* ---------- speed lines ---------- */
.speed {
  position: absolute; left: 50%; top: 50%; width: min(190%, 980px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(246, 241, 231, 0) 0deg 2.3deg, rgba(246, 241, 231, .2) 2.3deg 2.85deg, rgba(246, 241, 231, 0) 2.85deg 7deg),
    repeating-conic-gradient(from 1.4deg, rgba(255, 217, 56, 0) 0deg 9.2deg, rgba(255, 217, 56, .3) 9.2deg 9.7deg, rgba(255, 217, 56, 0) 9.7deg 13deg),
    repeating-conic-gradient(from .6deg, rgb(var(--v-rgb) / 0) 0deg 4.1deg, rgb(var(--v-rgb) / .5) 4.1deg 5deg, rgb(var(--v-rgb) / 0) 5deg 11deg);
  -webkit-mask: radial-gradient(closest-side, transparent 0 30%, #000 52%, rgba(0, 0, 0, .5) 78%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 0 30%, #000 52%, rgba(0, 0, 0, .5) 78%, transparent 100%);
  animation: spin 180s linear infinite;
}
.speed--soft { opacity: .55; width: min(150%, 900px); }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: clamp(92px, 11vh, 124px) 0 clamp(40px, 6vh, 76px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 46%, rgb(var(--v-rgb) / .34), rgb(var(--v-rgb) / 0) 70%), linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 60%, rgb(var(--ink-rgb) / .7) 100%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__next { margin-top: 14px; }
.hero__next a { display: inline-flex; align-items: center; gap: .45em; padding: 6px 0 5px; font-weight: 800; font-size: .98rem; color: var(--sun); text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 100% 2px no-repeat; }
.hero__next svg { transition: transform .3s var(--ease); }
.hero__next a:hover svg { transform: translateX(5px); }
.hero__copy { position: relative; z-index: 2; }
.hero .lead { max-width: 30em; }
.device-hint { margin-top: 8px; font-size: .95rem; font-weight: 700; color: var(--text); }
.device-hint a { text-decoration-color: var(--sun); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.live { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.live li { font-size: .9rem; font-weight: 600; line-height: 1; padding: .6em .9em; border-radius: 999px; background: rgb(var(--v-rgb) / .2); box-shadow: inset 0 0 0 1.5px rgb(var(--v-rgb) / .65); font-variant-numeric: tabular-nums; }
.live li:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5em; border-radius: 50%; background: #5dea8f; animation: live 2.2s ease-out infinite; }
.live b { font-weight: 800; color: var(--sun); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(93, 234, 143, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(93, 234, 143, 0); } }
.unofficial { margin-top: 18px; display: inline-flex; font-size: .9rem; font-weight: 700; letter-spacing: .01em; padding: .5em .95em; border-radius: 999px; background: rgba(246, 241, 231, .09); box-shadow: inset 0 0 0 1.5px var(--line); }
.unofficial a { margin-left: .3em; text-decoration-color: var(--sun); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.hero__stage { position: relative; display: grid; place-items: center start; perspective: 1500px; min-height: 420px; padding-left: 5%; }
.hero__device { --pw: min(clamp(236px, 23.6vw, 344px), calc((100svh - 178px) * .484)); position: relative; width: var(--pw); transform-style: preserve-3d; }
.phone--hero { --r: clamp(34px, 3.4vw, 46px); --bezel: 10px; rotate: 4deg; }
/* the tablet stands behind the phone and runs off the right edge: more of the app in the first screen */
.tablet--hero { --r: 26px; --bezel: 10px; position: absolute; width: calc(var(--pw) * 2.2); left: 40%; top: 1%; transform: translateZ(-130px) rotate(-5deg); }
.tablet--hero::before { display: none; }

/* ---------- drawings ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the cat looks over an edge: its chin line sits on the edge, the paws hang over it */
.peek { position: absolute; z-index: 1; bottom: 100%; width: var(--pk, 120px); height: auto; translate: 0 10.6%; pointer-events: none; overflow: visible; transition: translate .5s var(--ease); }
.peek--hero { --pk: 21%; left: 44%; }
.doodle { position: absolute; z-index: 2; pointer-events: none; overflow: visible; }
/* stickers: die-cut vinyl with a white edge, halftone print and a strip of gloss */
.sticker {
  position: relative; display: inline-block; isolation: isolate;
  font: 400 .88rem/1 var(--display); letter-spacing: .01em; padding: .72em 1.05em .76em; color: var(--ink); rotate: -3deg;
  border: 2px solid var(--ink); border-radius: 12px;
  background: radial-gradient(circle, rgb(var(--ink-rgb) / .22) 0 1px, transparent 1.25px) 0 0 / 6px 6px, linear-gradient(165deg, #ffe97a 0%, var(--sun) 52%, #f3c110 100%);
  box-shadow: 0 0 0 4px #fffdf7, 0 0 0 5.5px var(--ink), 6px 9px 0 4px rgb(var(--ink-rgb) / .34);
  transition: rotate .3s var(--ease), translate .3s var(--ease);
}
.sticker::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 10px; background: linear-gradient(100deg, var(--stk, var(--sun)) 34%, transparent 86%); }
.sticker::after { content: ""; position: absolute; z-index: -1; left: 7px; right: 34%; top: 4px; height: 34%; border-radius: 8px 8px 60% 60%; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none; }
@media (hover: hover) { .sticker:hover { rotate: 1deg; translate: 0 -2px; } }
.sticker--violet { --stk: var(--violet); color: #fff; background: radial-gradient(circle, rgba(255, 255, 255, .3) 0 1px, transparent 1.25px) 0 0 / 6px 6px, linear-gradient(165deg, var(--violet-hi) 0%, var(--violet) 52%, var(--violet-2) 100%); }
.sticker--violet::after { background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0)); }
.star { position: absolute; z-index: 3; width: var(--s, 30px); aspect-ratio: 1; background: var(--sun); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 3.4s ease-in-out infinite; transform: translateZ(40px); }
.star--1 { right: -14%; top: 7%; }
.star--2 { --s: 18px; right: -3%; top: 1%; animation-delay: -1.2s; background: var(--paper); }
.star--3 { --s: 22px; left: -14%; top: 3%; animation-delay: -2.1s; background: var(--violet); }
@keyframes twinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .55; opacity: .55; } }

/* ---------- ticker ---------- */
.band { position: relative; z-index: 3; overflow: clip; padding: 2.6vw 0 3.4vw; margin-top: -1.6vw; }
.ticker { width: 106vw; margin-left: -3vw; rotate: -1.7deg; background: var(--sun); color: var(--ink); border-block: 2.5px solid var(--ink); box-shadow: 0 9px 0 rgba(0, 0, 0, .35); overflow: hidden; overflow: clip; }
.ticker__track { display: flex; width: max-content; animation: tick 44s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; font: 400 clamp(1.05rem, 2.1vw, 1.85rem)/1 var(--display); padding: .72em 0 .72em 1.15em; white-space: nowrap; }
.ticker__track span::after { content: ""; width: .62em; height: .62em; margin-left: 1.15em; background: var(--ink); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- chapters ---------- */
.chapter { position: relative; padding: var(--pad) 0; overflow: clip; }
.chapter--field { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-block: calc(var(--pad) + var(--cut) * .6); }
.chapter--field.cut-alt { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
.is-paper { background: var(--paper); color: var(--ink); }
.is-violet { background: var(--violet-2); color: #fff; }
.is-sun { background: var(--sun); color: var(--ink); }
/* screentone on the colour fields */
.chapter--field::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, currentColor 0 1.7px, transparent 1.8px), radial-gradient(circle, currentColor 0 1.7px, transparent 1.8px);
  background-size: 10px 10px; background-position: 0 0, 5px 5px; opacity: .13;
  -webkit-mask: linear-gradient(118deg, #000 0%, transparent 34%, transparent 64%, #000 100%);
          mask: linear-gradient(118deg, #000 0%, transparent 34%, transparent 64%, #000 100%);
}
.is-violet::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 50% 62%, rgb(var(--vh-rgb) / .75), rgb(var(--vh-rgb) / 0) 70%); }
.chapter > .wrap { position: relative; z-index: 1; }

.ghost { position: absolute; z-index: 0; left: -1vw; top: clamp(8px, 2vw, 32px); font: 400 clamp(6.5rem, 22vw, 20rem)/.82 var(--display); white-space: nowrap; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(246, 241, 231, .1); pointer-events: none; user-select: none; }
.ghost--ink { -webkit-text-stroke: 0; color: rgb(var(--ink-rgb) / .07); left: auto; right: -3vw; top: auto; bottom: -4vw; }

.facts { margin-top: clamp(20px, 2.4vw, 32px); }
.facts > div { display: grid; gap: 2px; padding: .9rem 0; border-top: 2px solid color-mix(in srgb, currentColor 20%, transparent); }
.facts > div:last-child { border-bottom: 2px solid color-mix(in srgb, currentColor 20%, transparent); }
.facts dt { font-weight: 800; }
.facts dd { opacity: .84; }
.chips { list-style: none; padding: 0; margin: clamp(16px, 2vw, 24px) 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chips li { font-weight: 700; font-size: .92rem; line-height: 1; padding: .62em .95em; border-radius: 999px; box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 36%, transparent); }

.wide-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 4vw, 72px); align-items: end; }
.wide-head .lead { margin-top: 0; }

/* ---------- two-column chapters: text and a cluster of devices that fills its column ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4.4vw, 72px); align-items: center; }
.duo--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.duo--flip .duo__text { order: 2; }
.duo__media { position: relative; min-width: 0; }
.cluster { padding-block: 5%; }
.cl-main { width: 84%; }
.cluster--land .cl-main { rotate: -2deg; }
.cluster--tab .cl-main { rotate: -1.5deg; }
.cl-side { position: absolute; z-index: 2; right: 0; top: 50%; width: 27.5%; translate: 0 -47%; rotate: 4deg; }
.fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 24px); align-items: start; padding-block: 3% 5%; }
.fan > :nth-child(1) { rotate: -3deg; }
.fan > :nth-child(2) { margin-top: 13%; }
.fan > :nth-child(3) { rotate: 3deg; margin-top: 4%; }
.doodle--onigiri { width: clamp(56px, 6vw, 88px); left: -3%; bottom: -3%; rotate: -10deg; filter: drop-shadow(4px 4px 0 rgb(var(--ink-rgb) / .9)); }

.stagebox { margin-top: clamp(24px, 3vw, 40px); perspective: 1800px; }
.tablet--big { --r: clamp(18px, 2.6vw, 36px); --bezel: clamp(7px, 1.1vw, 15px); width: min(100%, 1060px); margin-inline: auto; transform-origin: 50% 100%; }

/* ---------- tour ---------- */
.tour { padding-top: clamp(28px, 3vw, 44px); }
.tour__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 48px); align-items: end; }
.tour__head .d2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.tour__head .lead { font-size: 1.0625rem; }
.keys { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; font-size: .92rem; color: var(--dim); }
.keys li { display: inline-flex; align-items: center; gap: 6px; }
.keys__ico { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 800; line-height: 1; }
.keys__ico--tap::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(255, 217, 56, .3); }
.tour__side { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }
.tour__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: .55em; font: 700 .85rem/1 var(--body); white-space: nowrap; padding: .64em .8em; border-radius: 11px; cursor: pointer; color: var(--text); background: rgba(21, 19, 47, .82); border: 2px solid rgba(246, 241, 231, .2); transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--ease), box-shadow .18s var(--ease); }
.tab b { font: 400 .7rem/1 var(--display); opacity: .6; }
.tab:hover { border-color: var(--sun); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--sun); border-color: var(--ink); box-shadow: 3px 3px 0 var(--violet); transform: translate(-1px, -1px); }
.tour__stage {
  position: relative; margin-top: clamp(22px, 2.6vw, 34px); display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); align-items: stretch;
  padding: clamp(18px, 2.4vw, 34px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; overflow: clip; /* clip: a focused button must never scroll the stage inside itself */
  background: radial-gradient(70% 90% at 72% 50%, rgb(var(--v-rgb) / .36), rgb(var(--v-rgb) / 0) 70%), rgba(15, 13, 36, .9);
  border: 2px solid rgba(246, 241, 231, .16); box-shadow: 10px 10px 0 rgba(75, 59, 220, .55);
}
.tour__caption .d3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.tour__text { margin-top: 10px; font-size: .98rem; line-height: 1.5; color: var(--dim); }
.tour__caption .chips { margin-top: 14px; gap: 6px 8px; }
.tour__caption .chips li { font-size: .86rem; }
.tour__nav { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.tour__live { font-size: .88rem; font-weight: 700; color: var(--dim); }
.tour__devices { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.4vw, 36px); min-height: clamp(420px, 41vw, 584px); touch-action: pan-y; }
.tslot { position: relative; z-index: 1; margin: 0; }
.tslot--phone { --r: clamp(26px, 2.8vw, 36px); flex: none; width: clamp(200px, 19vw, 270px); }
.tslot--wide { flex: 1 1 0; min-width: 0; max-width: 760px; }
.tslot--phone:first-of-type { rotate: -1.5deg; }
.tslot + .tslot { rotate: 1.5deg; }
.tslot.is-in { animation: slot .5s var(--ease) both; }
.tslot.is-in + .tslot.is-in { animation-delay: .07s; }
@keyframes slot { from { opacity: 0; transform: translateY(26px) scale(.965); } }
/* the tabs inside the recording are real buttons: bottom bar on phones, side rail on tablets */
.hots { position: absolute; z-index: 2; display: grid; }
.hots--bar { left: 0; right: 0; bottom: 0; height: 7.6%; grid-template-columns: repeat(6, 1fr); }
.hots--rail { left: 0; top: 9.4%; width: 6.9%; height: 57.4%; grid-template-rows: repeat(6, 1fr); }
.hot { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.hot:disabled { cursor: default; }
/* tap zones over the real tab bar: invisible at rest (no boxes over the app), a soft glow on hover, a thin ring only for keyboard focus */
.hot::after { content: ""; position: absolute; inset: 10% 12%; border-radius: 12px; background: radial-gradient(closest-side, rgba(246, 241, 231, .16), transparent); opacity: 0; transition: opacity .2s; }
@media (hover: hover) { .hot:not(:disabled):hover::after { opacity: 1; } }
.hot:focus-visible { outline: none; }
.hot:focus-visible::after { opacity: 1; background: none; box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, .7); }

/* ---------- feature finder ---------- */
.finder__bar { margin-top: clamp(26px, 3.2vw, 44px); display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; }
.field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: box-shadow .2s; }
.field:focus-within { box-shadow: 4px 4px 0 var(--violet); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 600 1rem var(--body); color: inherit; }
.field input::placeholder { color: color-mix(in srgb, currentColor 58%, transparent); }
.field svg { flex: none; }
.field--dark { background: var(--ink-2); color: var(--text); border-color: rgba(246, 241, 231, .3); box-shadow: 4px 4px 0 var(--violet-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: 700 .93rem/1 var(--body); padding: .68em 1em; border-radius: 999px; cursor: pointer; background: transparent; border: 2px solid var(--ink); transition: background-color .2s, color .2s; }
.filter:hover { background: rgb(var(--ink-rgb) / .08); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--sun); }
.finder__count { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cards { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 15px 16px 14px; border-radius: 18px; background: #fffdf7; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
@media (hover: hover) { .card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--violet); } }
.card h3 { font: 400 1.02rem/1.2 var(--display); }
.card p { font-size: .92rem; line-height: 1.42; color: rgb(var(--ink-rgb) / .82); }
.tag { font: 800 .76rem/1 var(--body); color: var(--violet-2); }
.more { margin-top: auto; align-self: flex-start; padding: 8px 0 2px; border: 0; background: none; cursor: pointer; font: 800 .9rem/1 var(--body); text-decoration: underline; text-decoration-color: var(--violet-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.more:hover { text-decoration-color: currentColor; }
.cards__all { display: none; }
.finder__empty { margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: rgb(var(--ink-rgb) / .07); font-weight: 600; }

/* ---------- gallery ---------- */
.strip__nav { display: flex; gap: 10px; margin-top: 16px; }
.strip { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: clamp(30px, 3.6vw, 52px) var(--gutter) clamp(40px, 4.4vw, 60px); scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.strip:focus-visible { outline-offset: -6px; }
.shot { flex: none; width: clamp(168px, 17vw, 236px); padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: center; transition: transform .3s var(--ease); }
.shot--wide { width: clamp(300px, 37vw, 540px); }
.shot .phone { display: block; --r: clamp(20px, 2.2vw, 30px); --bezel: clamp(5px, .5vw, 7px); }
.shot .tablet { --r: clamp(14px, 1.6vw, 22px); --bezel: clamp(6px, .7vw, 9px); }
.shot:nth-child(odd) { rotate: -1.5deg; }
.shot:nth-child(even) { rotate: 1.5deg; }
.shot:focus-visible { transform: translateY(-8px); rotate: 0deg; }
@media (hover: hover) { .shot:hover { transform: translateY(-8px); rotate: 0deg; } }

/* ---------- compare ---------- */
.cmp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4.4vw, 72px); align-items: center; }
.cmp__verdict { margin-top: 20px; padding: 16px 20px; border-radius: 18px; background: rgb(var(--ink-rgb) / .3); max-width: 34em; }
.cmp__table { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.35; }
.cmp th, .cmp td { padding: .82em 1em; text-align: left; vertical-align: top; border-top: 2px solid rgb(var(--ink-rgb) / .12); }
.cmp thead th { border-top: 0; font: 400 1.05rem/1.2 var(--display); background: var(--ink); color: var(--paper); }
.cmp thead th small { display: block; font: 600 .78rem/1.3 var(--body); opacity: .75; }
.cmp thead th:last-child { background: var(--sun); color: var(--ink); }
.cmp tbody th { width: 31%; font-weight: 800; }
.cmp tbody td:last-child { background: rgba(255, 217, 56, .24); font-weight: 600; }
.cmp td.yes::before, .cmp td.no::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .45em; vertical-align: -.18em; border-radius: 50%; background: var(--violet-2); -webkit-mask: none; }
.cmp td.yes::before { background: var(--violet-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/></svg>") center / 100% no-repeat; }
.cmp td.no::before { background: rgb(var(--ink-rgb) / .5) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' d='M7.5 7.5l9 9M16.5 7.5l-9 9'/></svg>") center / 100% no-repeat; }

/* ---------- get started: the setup assistant ---------- */
.start__head { position: relative; }
.doodle--box { width: clamp(78px, 8vw, 118px); right: 3%; bottom: calc(100% - 6px); rotate: 7deg; filter: drop-shadow(5px 5px 0 rgba(75, 59, 220, .9)); }
.wiz { margin-top: clamp(36px, 4.4vw, 60px); display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: clamp(20px, 3.2vw, 52px); align-items: start; }
.wiz__progress b { font: 400 1.1rem/1.2 var(--display); }
.wiz__bar { display: block; height: 12px; margin-top: 10px; border-radius: 9px; background: rgba(246, 241, 231, .14); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.wiz__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--sun) 0 10px, #f3c110 10px 20px); transition: width .6s var(--ease); }
.wiz__steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; counter-reset: step; }
.wiz__steps li { counter-increment: step; }
.wiz__steps button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 11px 14px; border-radius: 18px; cursor: pointer; background: rgba(21, 19, 47, .86); border: 2px solid rgba(246, 241, 231, .18); transition: background-color .2s, border-color .2s, transform .18s var(--ease), box-shadow .18s var(--ease); }
.wiz__steps button:hover { border-color: var(--sun); }
.wiz__steps button[aria-current="step"] { background: var(--violet-2); border-color: var(--text); box-shadow: 4px 4px 0 var(--sun); transform: translate(-2px, -2px); }
.wiz__steps b { display: block; font-weight: 800; line-height: 1.25; }
.wiz__steps small { display: block; font-size: .86rem; color: var(--dim); }
.wiz__tick { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid currentColor; font: 400 .95rem/1 var(--display); font-style: normal; }
.wiz__tick::before { content: counter(step); }
.is-done > .wiz__tick { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.is-done > .wiz__tick::before { content: ""; width: 14px; height: 8px; border: solid var(--ink); border-width: 0 0 3.2px 3.2px; rotate: -45deg; translate: 0 -2px; }
.seg { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; }
.seg__label { font-weight: 700; color: var(--dim); margin-right: 4px; }
.seg button { font: 700 .88rem/1 var(--body); padding: .6em .9em; border-radius: 999px; cursor: pointer; background: transparent; border: 2px solid rgba(246, 241, 231, .3); }
.seg button[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.wiz__reset { margin-top: 16px; font-size: .92rem; }
.wiz__panels { position: relative; }
.peek--card { --pk: clamp(96px, 10vw, 140px); right: 9%; }
.wiz__panels:hover .peek--card { translate: 0 5%; }
.wiz__panel { position: relative; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 28px; padding: clamp(20px, 3vw, 40px); box-shadow: 10px 10px 0 var(--violet); }
.wiz__panel + .wiz__panel { margin-top: 28px; }
.js .wiz__panel:not(.is-on) { display: none; }
.js .wiz__panel + .wiz__panel { margin-top: 0; }
.wiz__panel.is-on { animation: slot .45s var(--ease) both; }
.wiz__panel h3 { display: flex; align-items: center; gap: .55em; font: 400 clamp(1.3rem, 2.2vw, 1.85rem)/1.15 var(--display); }
.wiz__no { flex: none; width: 1.75em; height: 1.75em; display: grid; place-items: center; font-size: .82em; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); rotate: -8deg; }
.wiz__panel p { margin-top: 12px; max-width: 64ch; }
.mini { margin: 18px 0 0; padding: 14px 18px 14px 2.4em; display: grid; gap: 8px; border-radius: 18px; background: rgb(var(--ink-rgb) / .07); }
.mini li::marker { font-weight: 800; }
.wiz__qr { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 14px; }
.wiz__foot { margin-top: 22px; padding-top: 18px; border-top: 2px solid rgb(var(--ink-rgb) / .16); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 30px; margin: 0; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 9px; background: #fff; cursor: pointer; transition: background-color .2s; }
.check input:checked { background: var(--violet-2); }
.check input:checked::after { content: ""; width: 13px; height: 7px; border: solid #fff; border-width: 0 0 3.2px 3.2px; rotate: -45deg; translate: 0 -2px; }
.wiz__cheer { padding: 12px 16px; border-radius: 14px; background: var(--sun); border: 2.5px solid var(--ink); }
.js [data-for] { display: none; }
html[data-device="android"] [data-for="android"], html[data-device="ios"] [data-for="ios"] { display: block; }
html[data-device="desktop"] .wiz__qr[data-for="desktop"] { display: grid; }
html[data-device="desktop"] .market__qr[data-for="desktop"] { display: block; }

.market { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.market__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 800; margin-top: 18px !important; }
.market__link { margin-top: 0 !important; padding: 15px 18px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; cursor: text; }
.market__link code { font: 600 clamp(.94rem, 1.4vw, 1.14rem)/1.5 var(--mono); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.market__row { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.btn--copy { --drop: var(--violet); position: relative; min-width: 10.4em; font-size: clamp(1.05rem, 1.5vw, 1.22rem); padding: 1em 1.6em; }
.btn--copy .ico--done, .btn--copy.is-copied .ico--copy { display: none; }
.btn--copy.is-copied { --bg: var(--ink); --fg: var(--sun); }
.btn--copy.is-copied .ico--done { display: block; }
.burst { position: absolute; right: -82px; top: -44px; width: 112px; aspect-ratio: 1; display: grid; place-items: center; background: var(--violet); color: #fff; rotate: 9deg; scale: .2; opacity: 0; pointer-events: none; transition: scale .45s cubic-bezier(.34, 1.56, .64, 1), opacity .12s; }
.burst b { font: 400 .92rem/1 var(--display); rotate: -4deg; }
.is-copied .burst { scale: 1; opacity: 1; }
.market__hint { display: inline-flex; align-items: flex-end; gap: 6px; font: 400 .9rem/1 var(--display); color: var(--violet-2); rotate: -4deg; transition: opacity .2s; }
.market__hint svg { width: 62px; height: auto; scale: -1 1; translate: 0 6px; order: -1; }
.is-copied ~ .market__hint { opacity: 0; }
.market__status { min-height: 1.6em; font-weight: 800; color: var(--violet-2); }
.market__nojs { display: none; font-weight: 700; }
html:not(.js) .market__nojs { display: block; }
html:not(.js) .market__row, html:not(.js) .market__status { display: none; }
.market__by { font-size: .92rem; color: rgb(var(--ink-rgb) / .78); }
.market__qr .qr__code { padding: 14px; } /* the quiet zone a scanner needs around the code */
.market__qr { width: 236px; padding: 6px 6px 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.market__qr p { margin-top: 8px; font-size: .82rem; line-height: 1.35; }
.qr__code { aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.wiz__qr .qr__code { border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 10px; }
.qr__code svg { width: 100%; height: 100%; display: block; }

/* ---------- download and release data ---------- */
.get { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.desk { position: relative; background: var(--ink); color: var(--text); border: 2.5px solid var(--ink); border-radius: 28px; padding: clamp(18px, 2.6vw, 34px); box-shadow: 10px 10px 0 rgb(var(--ink-rgb) / .28); }
.desk__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.desk__head h3 { font: 400 1.35rem/1.2 var(--display); }
.desk__state { display: inline-flex; align-items: center; gap: .55em; font-size: .88rem; font-weight: 600; color: var(--dim); }
.desk__state.is-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #5dea8f; animation: live 2.2s ease-out infinite; }
.desk__grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5px; border-radius: 16px; overflow: hidden; background: rgba(246, 241, 231, .2); border: 1.5px solid rgba(246, 241, 231, .2); }
.desk__grid > div { padding: 13px 16px 14px; background: var(--ink-2); }
.desk__grid dt { font-size: .8rem; font-weight: 700; color: var(--dim); }
.desk__grid dd { margin-top: 4px; font: 400 clamp(1.1rem, 1.8vw, 1.55rem)/1.2 var(--display); font-variant-numeric: tabular-nums; }
.sha { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); border: 1.5px solid rgba(246, 241, 231, .2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.sha__label { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; color: var(--dim); }
.sha__label small { font-weight: 600; opacity: .8; }
.sha code { font: 600 .86rem/1.45 var(--mono); color: var(--sun); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.log { margin-top: 18px; }
.log h4 { font: 400 1.08rem/1.2 var(--display); margin-bottom: 8px; }
.log > p { margin-top: 12px; font-size: .92rem; font-weight: 700; }
.rel { border-top: 1.5px solid rgba(246, 241, 231, .2); }
.rel summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: .78rem 0; font-weight: 800; }
.rel summary::-webkit-details-marker { display: none; }
.rel summary::after { content: "+"; font: 400 1.1rem/1 var(--display); color: var(--sun); margin-left: auto; }
.rel[open] summary::after { content: "–"; }
.rel summary small { font-size: .86rem; font-weight: 600; color: var(--dim); }
.rel__body { padding: 0 0 1rem; display: grid; gap: 6px; font-size: .94rem; color: var(--dim); max-height: 22rem; overflow: auto; overscroll-behavior: contain; }
.rel__body h5 { margin-top: 6px; font: 800 .95rem/1.3 var(--body); color: var(--text); }
.rel__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.desk__fallback { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 96px; }
.faq__head .field { margin-top: clamp(20px, 2.4vw, 30px); max-width: 26rem; }
.faq__count { margin-top: 12px; font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; }
.faq__card { margin-top: 20px; padding: 18px 20px; border-radius: 20px; background: rgba(21, 19, 47, .86); border: 2px solid var(--line); max-width: 26rem; display: grid; gap: 10px; color: var(--dim); }
.faq__card strong { color: var(--text); }
.qa { border-top: 2px solid var(--line); }
.qa:last-of-type { border-bottom: 2px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 1.2rem 0; font: 700 clamp(1.08rem, 1.5vw, 1.32rem)/1.3 var(--body); transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--sun); }
.qa summary i { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: transform .4s var(--ease), background-color .25s, color .25s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: currentColor; border-radius: 2px; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { transform: rotate(45deg); background: var(--sun); color: var(--ink); box-shadow: none; }
.qa.is-closing summary i { transform: none; background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--line); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 3.4rem 1.5rem 0; color: var(--dim); max-width: 62ch; }
.faq__empty { padding: 1.4rem 0; font-weight: 600; }

/* ---------- footer ---------- */
.foot { padding: clamp(48px, 7vw, 100px) 0 36px; overflow: clip; background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0), rgb(var(--ink-rgb) / .86) 40%); }
.foot__mark { font: 400 8.3vw/.92 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.foot__mark span { display: inline-block; }
.foot__row { position: relative; margin-top: clamp(28px, 4vw, 56px); padding-top: 28px; border-top: 2px solid var(--line); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 88px); }
.foot__about p { color: var(--dim); font-size: .95rem; max-width: 36em; }
.foot__about p + p { margin-top: 8px; }
.foot__about .foot__unofficial { color: var(--text); font-weight: 800; font-size: 1.05rem; }
.foot__unofficial a { text-decoration-color: var(--sun); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-content: start; }
.foot__links a { text-decoration: none; font-weight: 700; width: fit-content; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 2.5px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 3px; }
.foot__links a:hover { background-size: 100% 2.5px; }
.peek--foot { --pk: clamp(64px, 5.4vw, 78px); right: 7%; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: inherit; background: none; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 4, 12, .93); }
.lb { width: 100vw; height: 100vh; height: 100dvh; margin: 0; padding: clamp(12px, 2vw, 28px); grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 24px); color: var(--text); overflow: hidden; }
.lb[open] { display: grid; }
.lb__fig { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 12px; touch-action: pan-y; }
.lb__fig img { display: block; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: clamp(14px, 2vw, 26px); border: 2.5px solid rgba(246, 241, 231, .3); box-shadow: 10px 10px 0 var(--violet-2); }
.lb__fig figcaption { text-align: center; font-weight: 600; max-width: 46em; padding-bottom: 4px; }
.lb__fig figcaption b { font: 400 .9rem/1 var(--display); color: var(--sun); margin-right: .5em; }
.lb__close { position: absolute; right: clamp(12px, 2vw, 28px); top: clamp(12px, 2vw, 28px); z-index: 2; }
.keysbox { width: min(92vw, 520px); padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 10px 10px 0 var(--violet); }
.keysbox h2 { font: 400 1.5rem/1.2 var(--display); }
.keysbox dl { margin: 16px 0 20px; display: grid; gap: 2px; }
.keysbox dl > div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 12px; align-items: center; padding: .55rem 0; border-top: 2px solid rgb(var(--ink-rgb) / .12); }
.keysbox :focus-visible { outline-color: var(--violet-2); }

/* ---------- motion start states (only while the script is alive) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(30px); }
.motion [data-intro], .motion [data-pop] { opacity: 0; }
.motion [data-split] { visibility: hidden; }
.motion.ready [data-split] { visibility: visible; }
.motion .w__i { transform: translateY(112%); }
/* if the script never arrives, everything shows itself after three seconds */
.motion:not(.ready) [data-reveal], .motion:not(.ready) [data-intro], .motion:not(.ready) [data-pop], .motion:not(.ready) [data-split] { animation: show .01s 3s forwards; }
@keyframes show { to { opacity: 1; transform: none; visibility: visible; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finder__bar { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .finder__count { grid-column: 1 / -1; }
  .market__hint { display: none; }
  .bubble--b { left: 96%; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding-top: 92px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  /* phone in front on the left, the whole tablet behind it on the right */
  .hero__stage { min-height: 0; padding: 0; place-items: stretch; perspective: none; }
  .hero__device { --pw: min(41vw, 220px); width: 100%; height: calc(var(--pw) * 2.1 + 14px); max-width: 560px; margin-inline: auto; }
  .phone--hero { --r: 26px; --bezel: 6px; position: absolute; z-index: 2; left: 1%; bottom: 6px; width: var(--pw); rotate: -3deg; }
  .tablet--hero { --r: 16px; --bezel: 6px; left: auto; right: -1%; top: 9%; width: 74%; transform: rotate(3deg); }
  .peek--hero { left: 56%; }
  .bubble--a { left: 47%; top: auto; bottom: 27%; }
  .bubble--b { left: auto; right: 0; top: auto; bottom: 3%; }
  .star--1 { right: 2%; top: -2%; } .star--2 { right: 14%; top: 2%; } .star--3 { left: 30%; top: 4%; }
  .ghost { font-size: 30vw; top: 6px; }
  .ghost ~ .wrap { padding-top: 10vw; }
  .ghost--ink ~ .wrap { padding-top: 0; }
  .wide-head, .tour__head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .duo, .cmp, .get, .faq, .wiz { grid-template-columns: 1fr; }
  .duo--flip .duo__text { order: 0; }
  .duo__media { margin-top: 12px; }
  .tablet--big { width: 100%; }
  /* tour: tabs scroll sideways, devices on top, caption under them */
  .tour__side { display: contents; }
  .tour__tabs { order: -2; display: flex; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: center; border-radius: 999px; padding-inline: 1em; }
  .tour__stage { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 14px 20px; box-shadow: 6px 6px 0 rgba(75, 59, 220, .55); }
  .tour__devices { order: -1; flex-wrap: wrap; min-height: 0; padding-bottom: 12px; gap: 14px 12px; }
  .tslot--wide { flex: 1 1 100%; max-width: none; order: -1; }
  .tslot--phone { width: calc(50% - 8px); max-width: 250px; }
  .tour__devices[data-mix="1"] .tslot--phone { width: 58%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 12px 12px 11px; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
  .card h3 { font-size: .92rem; }
  .card p { font-size: .86rem; }
  .cards.is-short .card:nth-child(n+9) { display: none; }
  .cards__all { display: inline-flex; margin-top: 18px; }
  .finder__bar { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .cmp table { font-size: .88rem; }
  .cmp th, .cmp td { padding: .7em .65em; }
  .cmp__table { border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .wiz__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .wiz__steps button { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; border-radius: 14px; }
  .wiz__steps small { display: none; }
  .wiz__steps button { padding-inline: 2px; }
  .wiz__steps b { font-size: .66rem; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .wiz__steps button[aria-current="step"] { transform: none; box-shadow: 0 4px 0 var(--sun); }
  .doodle--box { right: 0; bottom: auto; top: -58px; width: 74px; }
  .peek--foot { display: none; }
  .faq__head { position: static; }
  .faq__head .field, .faq__card { max-width: none; }
  .foot__row { grid-template-columns: 1fr; }
  .foot { padding-top: 36px; }
  .is-sun.chapter--field { padding-bottom: calc(60px + var(--cut)); }
  .foot__mark { font-size: 10.6vw; }
  .lb { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb__fig { grid-column: 1 / -1; }
  .lb__prev { justify-self: end; } .lb__next { justify-self: start; grid-column: 2; grid-row: 2; }
  .lb__prev { grid-column: 1; grid-row: 2; }
}
@media (max-width: 560px) {
  .brand span { font-size: .95rem; }
  .cta .btn { width: 100%; }
  .qa__body p { padding-right: 0; }
  .speed { width: 210%; }
  .unofficial { font-size: .84rem; }
  .btn--copy { width: 100%; }
  .burst { right: -4px; top: -46px; width: 96px; }
  .wiz__panel { border-radius: 22px; box-shadow: 6px 6px 0 var(--violet); padding: 18px 16px 20px; }
  .wiz__foot .btn { width: 100%; }
  .market { grid-template-columns: 1fr; }
  .market__link { padding: 13px 14px; }
  .desk { border-radius: 22px; padding: 16px 14px 18px; }
  .desk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sha { grid-template-columns: 1fr; }
  .cl-main { width: 86%; }
  .cl-side { width: 31%; }
  /* three phones would be thumbnails here: they become a row to swipe through, each large enough to read */
  .fan { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 36px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan > .phone:nth-child(n) { flex: 0 0 60%; margin-top: 0; rotate: none; scroll-snap-align: center; }
  .bubble--d { left: 0; top: -7%; } .bubble--c { right: 4%; top: -6%; }
  .keysbox dl > div { grid-template-columns: 5.2rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hots.is-hint .hot:not(:disabled)::after { opacity: .5; }
}
