/* retroready.app: the app's design language on the web (docs/design.md): warm cream paper by day,
   switched-off-CRT plum by night, one brand coral and four toy-plastic accents with darker lips,
   Fredoka for what speaks, Nunito for reading, Space Mono for codes printed on an item. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/Fredoka-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/Fredoka-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/Nunito-Regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/Nunito-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url("fonts/SpaceMono-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --paper: #FFF7EC; --surface: #FFFFFF; --raised: #FBEEDC; --line: #EBDCC6; --ink: #241B35; --muted: #6F6480;
  --coral: #FF5B3A; --coral-lip: #D5401F; --sun: #FFC23D; --sun-lip: #DB9A0C; --leaf: #1FAE7A; --leaf-lip: #15875E;
  --sky: #3D8BFD; --sky-lip: #2367D2; --grape: #8B5CF6; --grape-lip: #6B3EDB; --rose: #FF7A9C;
  --art-ink: #241B35; --art-paper: #FFF4DE;
  --link: #C7391A; --tint: 14%; --toward: black;
  --r-s: 10px; --r-m: 18px; --r-l: 26px;
  --display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1160px; --read: 720px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17131F; --surface: #221C2E; --raised: #2D263B; --line: #3B334B; --ink: #EEDFC8; --muted: #B4A9C4;
    --coral: #FF6A4A; --coral-lip: #C2401F; --sun: #FFCA55; --sun-lip: #C58C0E; --leaf: #33C48F; --leaf-lip: #1C8C62;
    --sky: #5B9DFF; --sky-lip: #2F6CD0; --grape: #A27DFF; --grape-lip: #7550DE; --rose: #FF8AA8;
    --link: #FF8A6E; --tint: 13%; --toward: white;
    --art-paper: #ECDCBF; /* the labels' cream, warmer and a little darker at night */
  }
}

/* an accent's soft background and the text that sits on it, as Palette.soft / onSoft do */
.a-coral { --a: var(--coral); --a-lip: var(--coral-lip); }
.a-sun { --a: var(--sun); --a-lip: var(--sun-lip); }
.a-leaf { --a: var(--leaf); --a-lip: var(--leaf-lip); }
.a-sky { --a: var(--sky); --a-lip: var(--sky-lip); }
.a-grape { --a: var(--grape); --a-lip: var(--grape-lip); }
.a-rose { --a: var(--rose); --a-lip: color-mix(in srgb, var(--rose) 78%, black); }
.soft { background: color-mix(in srgb, var(--a) var(--tint), var(--surface)); color: color-mix(in srgb, var(--a) 65%, var(--toward)); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--body); overflow-x: hidden;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .4em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: var(--read); margin-inline: auto; padding-inline: 20px; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 2px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 23px/1 var(--display); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 3px 0 var(--sky-lip); transition: transform .4s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 6px; }
.nav a { font: 700 16px/1 var(--body); color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 12px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--raised); }
@media (max-width: 720px) { .nav a.opt { display: none; } .site-head .btn { display: none; } }

/* ------------------------------------------------------------------ buttons: pressable, with a lip */
.btn { --a: var(--coral); --a-lip: var(--coral-lip); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 18px/1 var(--display); color: #fff; background: var(--a); border: 0; border-radius: var(--r-m);
  padding: 15px 24px 16px; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--a-lip);
  transform: translateY(0); transition: transform .14s var(--ease), box-shadow .14s var(--ease), filter .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--a-lip); text-decoration: none; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--a-lip); transition-duration: .05s; }
.btn.small { font-size: 16px; padding: 11px 16px 12px; border-radius: 14px; box-shadow: 0 4px 0 var(--a-lip); }
.btn.small:active { transform: translateY(4px); }
.btn.quiet { --a: var(--surface); --a-lip: var(--line); color: var(--ink); border: 2px solid var(--line); }
.btn[disabled], .btn.off { --a: var(--raised); --a-lip: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.wide { width: 100%; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 11px 14px; border-radius: 16px; text-decoration: none;
  background: var(--ink); color: var(--paper); box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 55%, var(--paper));
  transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font: 700 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.store b { display: block; font: 600 19px/1.1 var(--display); }
a.store:hover { transform: translateY(-2px); }
/* dark: the labels' warm cream (--art-paper), softer than the inverted ink */
@media (prefers-color-scheme: dark) {
  .store { background: var(--art-paper); color: var(--art-ink); box-shadow: 0 5px 0 color-mix(in srgb, var(--art-paper) 50%, var(--paper)); }
}
.store.soon { cursor: default; }

/* ------------------------------------------------------------------ chips, badges, stickers */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--body); letter-spacing: .09em; text-transform: uppercase;
  padding: 8px 12px 8px 10px; border-radius: 999px; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 30%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--body); padding: 7px 11px; border-radius: 10px; white-space: nowrap; }
.badge.solid { background: var(--a); color: #fff; box-shadow: 0 3px 0 var(--a-lip); }
/* dark: solid accents muted toward the page so white text reads (coral: ~3:1 -> ~4.7:1) */
@media (prefers-color-scheme: dark) {
  .badge.solid, .step .n { background: color-mix(in srgb, var(--a) 72%, var(--paper)); box-shadow: 0 3px 0 color-mix(in srgb, var(--a-lip) 72%, var(--paper)); }
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a); }
/* a region keeps one colour everywhere: PAL sky, NTSC-J coral, NTSC-U grape, NTSC-K sun, region-free leaf */
.r-pal { --a: var(--sky); --a-lip: var(--sky-lip); }
.r-ntsc-j { --a: var(--coral); --a-lip: var(--coral-lip); }
.r-ntsc-u { --a: var(--grape); --a-lip: var(--grape-lip); }
.r-ntsc-k { --a: var(--sun); --a-lip: var(--sun-lip); }
.r-free { --a: var(--leaf); --a-lip: var(--leaf-lip); }

/* the product-code label sticker: Space Mono on cream, a barcode, a yellow offset shadow */
.label { display: inline-flex; align-items: center; gap: 12px; background: var(--art-paper); color: var(--art-ink);
  border: 2.5px solid var(--art-ink); border-radius: 12px; padding: 9px 14px 9px 10px; box-shadow: 5px 5px 0 var(--sun); }
.label .bars { width: 26px; height: 32px; background: repeating-linear-gradient(90deg, var(--art-ink) 0 2px, transparent 2px 4px, var(--art-ink) 4px 5px, transparent 5px 7px, var(--art-ink) 7px 10px, transparent 10px 11px); }
.label small { display: block; font: 700 9px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.label b { display: block; font: 700 17px/1.2 var(--mono); letter-spacing: .02em; }
code { font: 700 .86em/1 var(--mono); }
.code-chip { display: inline-block; background: var(--art-paper); color: var(--art-ink); border: 1.5px solid var(--art-ink);
  border-radius: 6px; padding: 3px 6px 2px; box-shadow: 2px 2px 0 var(--sun); white-space: nowrap; font-size: .8em; }
/* dark: the colour-coded offset shadows muted toward the page, like the solid pills */
@media (prefers-color-scheme: dark) {
  .label { box-shadow: 5px 5px 0 color-mix(in srgb, var(--sun) 72%, var(--paper)); }
  .code-chip { box-shadow: 2px 2px 0 color-mix(in srgb, var(--sun) 72%, var(--paper)); }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 48px 0 40px; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.2px, transparent 1.3px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, black 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); margin-bottom: 20px; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--coral); }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .2em; z-index: -1; border-radius: 99px;
  background: color-mix(in srgb, var(--sun) 70%, transparent); transform-origin: left; animation: swipe .9s .5s var(--ease) both; }
@keyframes swipe { from { transform: scaleX(0); } }
.lede { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 33em; margin: 0 0 30px; }
.fine { font-size: 15px; color: var(--muted); margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span::before { content: "✓"; color: var(--leaf); font-weight: 800; margin-right: 6px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 640px; }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
  background: conic-gradient(from 120deg, var(--sun), var(--coral), var(--grape), var(--sky), var(--leaf), var(--sun)); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.float { position: absolute; z-index: 3; animation: bob 5.5s ease-in-out infinite; }
.float.b { animation-duration: 6.5s; animation-delay: -2s; }
.float.c { animation-duration: 7s; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hero-art .hero-mascot { width: 168px; left: -14px; bottom: 40px; }
.hero-mascot img { display: block; width: 100%; cursor: pointer; }
.hero-art .label { right: -6px; top: 92px; rotate: 4deg; }
.hero-art .badge-a { left: 26px; top: 70px; rotate: -6deg; }
.hero-art .badge-b { right: 10px; bottom: 150px; rotate: 5deg; }
.mascot.hop { animation: hop .6s var(--ease); }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-34px) scale(.96, 1.04); } 62% { transform: translateY(0) scale(1.06, .94); } 100% { transform: translateY(0) scale(1, 1); } }

/* the phone: a real app screen, scrolling on its own */
.phone { --pw: 286px; position: relative; width: calc(var(--pw) + 22px); padding: 11px; border-radius: 48px; background: var(--art-ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 30%, transparent), 0 30px 60px -20px rgba(36, 27, 53, .45), 0 10px 0 #110c1a; z-index: 2; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 86px; height: 24px; border-radius: 99px; background: var(--art-ink); z-index: 3; }
.screen { position: relative; width: var(--pw); height: calc(var(--pw) * 2.2214); border-radius: 38px; overflow: hidden; background: var(--paper); }
.screen img { display: block; width: 100%; height: auto; }
.screen.scroll img { animation: tour 26s var(--ease) infinite; }
.phone:hover .screen.scroll img { animation-play-state: paused; }
@keyframes tour { 0%, 10% { transform: translateY(0); } 72%, 84% { transform: translateY(calc(-100% + var(--pw) * 2.2214)); } 100% { transform: translateY(0); } }
.beam { position: absolute; left: 0; right: 0; height: 90px; top: -90px; z-index: 2; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sky) 35%, transparent) 70%, var(--sky) 96%, transparent);
  opacity: .5; animation: beam 4.2s 1s ease-in-out infinite; }
@keyframes beam { 0% { top: -90px; } 55%, 100% { top: 105%; } }
@media (prefers-color-scheme: dark) { .beam { mix-blend-mode: screen; } }
.screen.scroll .beam { display: none; }
.phone.small { --pw: 250px; }

/* ------------------------------------------------------------------ code marquee */
.marquee { overflow: hidden; padding: 22px 0 30px; border-block: 2px dashed var(--line); background: var(--raised);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee ul { display: flex; gap: 26px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 48s linear infinite; }
.marquee li { display: flex; align-items: center; gap: 12px; }
.marquee li .label { box-shadow: 4px 4px 0 var(--a, var(--sun)); }
@media (prefers-color-scheme: dark) { .marquee li .label { box-shadow: 4px 4px 0 color-mix(in srgb, var(--a, var(--sun)) 72%, var(--paper)); } }
.marquee .what { font: 700 15px/1.3 var(--body); color: var(--muted); max-width: 12em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { padding: 100px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.section-head p { font-size: 20px; color: var(--muted); margin: 0; }
.alt { background: var(--raised); border-block: 2px solid var(--line); }

.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-l); box-shadow: 0 4px 0 var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.step { padding: 30px 26px 28px; position: relative; transition: transform .35s var(--spring); }
.step:hover { transform: translateY(-6px) rotate(-.6deg); }
.step .art { width: 104px; height: 104px; object-fit: contain; margin-bottom: 14px; transition: transform .5s var(--spring); }
.step:hover .art { transform: scale(1.08) rotate(-4deg); }
.step .n { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  font: 600 19px/1 var(--display); color: #fff; background: var(--a); box-shadow: 0 4px 0 var(--a-lip); }
.step h3 { font-size: 25px; }
.step p { margin: 0; color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 2px dashed var(--line); }
.feature.flip .feature-art { order: -1; }
.feature-art { display: grid; place-items: center; position: relative; }
.feature h3 { font-size: clamp(30px, 3.6vw, 42px); }
.feature p { color: var(--muted); font-size: 19px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.well { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 800 16px/1 var(--body); }
.ticks b { display: block; }
.ticks span { color: var(--muted); font-size: 17px; }

.regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.region { padding: 22px 20px; text-align: left; transition: transform .35s var(--spring); }
.region:hover { transform: translateY(-5px); }
.region .badge { margin-bottom: 12px; font-size: 16px; }
.region p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.honest { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: center; padding: 36px 40px; }
.honest img { width: 140px; }
.honest h2 { font-size: 34px; }
.honest ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

/* cards for guides and posts */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: 0 10px 0 var(--line); text-decoration: none; }
.tile .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--raised); border-bottom: 2px solid var(--line); }
.tile .icon { width: 74px; height: 74px; object-fit: contain; margin: 22px 22px 0; transition: transform .5s var(--spring); }
.tile:hover .icon { transform: rotate(-6deg) scale(1.08); }
.tile .body { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile h3 { font-size: 23px; margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.tile .meta { margin-top: auto; padding-top: 8px; font: 700 13px/1.3 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.more { text-align: center; margin-top: 34px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-m); box-shadow: 0 3px 0 var(--line); interpolate-size: allow-keywords; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 600 20px/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--coral); border-bottom: 3px solid var(--coral); rotate: 45deg; transition: rotate .3s var(--spring), margin .3s; }
.faq details[open] summary::after { rotate: 225deg; margin-top: -3px; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p { margin: 0 0 .6em; }

.cta { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 52px 56px; overflow: hidden;
  background: color-mix(in srgb, var(--sun) 22%, var(--surface)); border-color: color-mix(in srgb, var(--sun) 60%, var(--line)); box-shadow: 0 6px 0 var(--sun-lip); }
.cta h2 { font-size: clamp(32px, 4vw, 48px); }
.cta p { color: var(--muted); margin: 0 0 24px; font-size: 19px; }
.cta .mascot { width: 190px; }

/* ------------------------------------------------------------------ reading pages (guides, posts, legal) */
.crumbs { font: 700 14px/1.4 var(--body); color: var(--muted); margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.doc-head { padding: 52px 0 26px; }
.doc-head h1 { font-size: clamp(36px, 5.4vw, 58px); }
.doc-head .lede { margin-bottom: 18px; }
.doc-head .icon { width: 92px; height: 92px; object-fit: contain; float: right; margin: 0 0 12px 20px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 700 14px/1.3 var(--body); color: var(--muted); }
.meta-row .badge { font-size: 13px; }
.hero-img { margin: 10px auto 0; max-width: 1000px; padding-inline: 20px; }
.hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }
.hero-img figcaption, figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.doc-body { display: grid; grid-template-columns: 220px minmax(0, var(--read)); gap: 56px; justify-content: center; padding: 30px 20px 40px; }
.doc-body.solo { grid-template-columns: minmax(0, var(--read)); }
.toc { position: sticky; top: 92px; align-self: start; font-size: 15px; }
.toc b { display: block; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--coral); }
@media (max-width: 980px) { .doc-body { grid-template-columns: minmax(0, var(--read)); } .toc { display: none; } }

.prose { font-size: 18.5px; line-height: 1.72; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 32px; margin: 2em 0 .5em; }
.prose h3 { font-size: 23px; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li + li { margin-top: .35em; }
.prose strong { font-weight: 800; }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--r-m); }
.callout { --a: var(--sky); margin: 0 0 1.6em; padding: 20px 24px; border-radius: var(--r-m); background: color-mix(in srgb, var(--a) var(--tint), var(--surface));
  border: 2px solid color-mix(in srgb, var(--a) 40%, var(--line)); box-shadow: 0 4px 0 color-mix(in srgb, var(--a) 40%, var(--line)); }
.callout p:last-child { margin: 0; }
.callout strong:first-child { color: color-mix(in srgb, var(--a) 70%, var(--toward)); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: 0 4px 0 var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; }
.prose th { font: 700 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; background: var(--raised); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.cite { font: 800 11px/1 var(--body); margin-left: 1px; }
.cite a { text-decoration: none; display: inline-block; min-width: 17px; padding: 3px 4px 2px; border-radius: 6px; text-align: center;
  color: var(--sky-lip); background: color-mix(in srgb, var(--sky) var(--tint), var(--surface)); }
@media (prefers-color-scheme: dark) { .cite a { color: var(--sky); } }
.cite a:hover { background: var(--sky); color: #fff; }
.prose h2#sources ~ ol { font-size: 15px; line-height: 1.55; color: var(--muted); }
.prose h2#sources ~ ol li { padding: 6px 8px; border-radius: 10px; transition: background .4s; }
.prose li:target { background: color-mix(in srgb, var(--sun) 30%, transparent); }
.made { margin-top: 2.4em; padding: 18px 20px; border-radius: var(--r-m); background: var(--raised); font-size: 15px; color: var(--muted); }
.made b { color: var(--ink); }
.aside-cta { margin: 2.6em 0 0; padding: 26px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.aside-cta img { width: 96px; }
.aside-cta h3 { margin: 0 0 6px; font-size: 24px; }
.aside-cta p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.aside-cta .row { display: flex; flex-wrap: wrap; gap: 12px; }
.legal .prose h2 { font-size: 24px; margin-top: 1.6em; }
.legal .prose { font-size: 17px; }

.page-head { padding: 56px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-head .lede { margin: 0 auto; }
.page-head .art { width: 110px; margin-bottom: 8px; }

/* ------------------------------------------------------------------ the free scan page */
.tool { max-width: 860px; margin: 0 auto; padding: 32px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slot { position: relative; display: grid; place-items: center; text-align: center; gap: 6px; aspect-ratio: 4 / 3; border-radius: var(--r-l);
  border: 2.5px dashed var(--line); background: var(--raised); cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s, transform .3s var(--spring); }
.slot:hover, .slot.drag { border-color: var(--sky); background: color-mix(in srgb, var(--sky) 8%, var(--raised)); transform: translateY(-3px); }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot img.art { width: 70px; pointer-events: none; }
.slot b { font: 600 20px/1.2 var(--display); pointer-events: none; }
.slot span { font-size: 14px; color: var(--muted); pointer-events: none; }
.slot img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slot .x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 800 18px/1 var(--body); box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 55%, black); }
@media (prefers-color-scheme: dark) {
  .slot .x { background: var(--art-paper); color: var(--art-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--art-paper) 50%, var(--paper)); }
}
.tool-foot { margin-top: 22px; display: grid; gap: 12px; }
.tool-note { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
.scanning { display: none; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 26px; margin-top: 22px; }
.scanning.on { display: grid; }
.scanning .stack { position: relative; width: 120px; height: 120px; }
.scanning .stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 3px solid var(--surface); box-shadow: 0 4px 0 var(--line); }
.scanning .stack img:nth-child(2) { rotate: 8deg; translate: 14px 4px; }
.scanning .stack .beam { opacity: .8; animation-duration: 1.8s; animation-delay: 0s; border-radius: 16px; }
.scanning .line { font: 600 21px/1.3 var(--display); min-height: 1.3em; }
.scanning .line.swap { animation: lineIn .45s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); } }
.scanning .mascot { width: 70px; }

.result { margin-top: 26px; display: none; }
.result.on { display: block; animation: pop .55s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.res-hero { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; padding: 26px; }
.res-hero .photo { width: 132px; aspect-ratio: 1; border-radius: 18px; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 5px 0 var(--line); rotate: -3deg; }
.res-hero h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 4px; }
.res-hero .sub { color: var(--muted); margin: 0 0 12px; }
.res-hero .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.res-block { padding: 22px 24px; margin-top: 16px; }
.res-block h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 12px; }
.res-block h3 .well { width: 32px; height: 32px; }
.res-block ul { margin: 0; padding-left: 20px; }
.res-block li + li { margin-top: 6px; }
.res-block .warn { color: var(--coral-lip); }
@media (prefers-color-scheme: dark) { .res-block .warn { color: var(--coral); } }
.res-more { margin-top: 18px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: color-mix(in srgb, var(--grape) var(--tint), var(--surface)); border-color: color-mix(in srgb, var(--grape) 40%, var(--line)); box-shadow: 0 5px 0 color-mix(in srgb, var(--grape) 40%, var(--line)); }
.res-more h3 { font-size: 26px; margin: 0 0 8px; }
.res-more ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.res-more img { width: 120px; }
.notice { display: none; margin-top: 22px; padding: 22px 24px; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.notice.on { display: grid; animation: pop .45s var(--spring); }
.notice img { width: 72px; }
.notice p { margin: 0; }
.notice b { font: 600 21px/1.3 var(--display); display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------------ footer */
.site-foot { margin-top: 40px; padding: 56px 0 40px; border-top: 2px dashed var(--line); font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font: 800 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 6px 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { margin: 12px 0 0; max-width: 30em; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }

/* ------------------------------------------------------------------ reveal on scroll (only with JS, only with motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee ul { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul li[aria-hidden] { display: none; }
}

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 980px) {
  .hero-grid, .feature, .cta, .honest { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-copy .stores, .hero-copy .fine { justify-content: center; }
  .hero-art { min-height: 600px; }
  .feature { gap: 30px; text-align: center; }
  .feature.flip .feature-art { order: 0; }
  .feature .ticks { text-align: left; max-width: 520px; margin-inline: auto; }
  .regions { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .cta { text-align: center; padding: 40px 26px; }
  .cta .stores { justify-content: center; }
  .cta .mascot { margin: 0 auto; width: 150px; }
  .honest { text-align: center; padding: 30px 24px; }
  .honest img { margin: 0 auto; }
  .honest ul { text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding: 68px 0; }
  .hero-art { min-height: 540px; }
  .phone { --pw: 236px; border-radius: 42px; }
  .screen { border-radius: 32px; }
  .hero-art .hero-mascot { width: 118px; left: -6px; bottom: 26px; }
  .hero-art .label { right: -10px; top: 60px; scale: .85; }
  .hero-art .badge-b { right: -4px; }
  .slots { grid-template-columns: 1fr; }
  .tool { padding: 20px; }
  .res-hero { grid-template-columns: 1fr; text-align: center; }
  .res-hero .photo { margin: 0 auto; }
  .res-hero .badges { justify-content: center; }
  .res-more { grid-template-columns: 1fr; }
  .res-more img { display: none; }
  .aside-cta { grid-template-columns: 1fr; text-align: center; }
  .aside-cta img { margin: 0 auto; }
  .aside-cta .row { justify-content: center; }
  .doc-head .icon { width: 64px; height: 64px; }
  .prose { font-size: 17.5px; }
}
