/* 00-tokens.css */
/* Bokumi design tokens: a cozy manga reader. Cream paper, warm brown-black ink, a vermilion hanko, the indigo of the book cover. */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/YoungSerif-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/assets/fonts/ZenMaruGothic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/assets/fonts/ZenMaruGothic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/assets/fonts/ZenMaruGothic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic JP"; src: url("/assets/fonts/ZenMaruGothic-jp-subset.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("/assets/fonts/ShipporiMincho-600-subset.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("/assets/fonts/ShipporiMincho-800-subset.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Dela Gothic One"; src: url("/assets/fonts/DelaGothicOne-subset.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper-50: #fdf8ec;
  --paper-100: #f6ebd5;
  --paper-200: #eddcbc;
  --paper-300: #dfc89f;
  --ink: #2b211b;
  --ink-soft: #4b3b30;
  --ink-faint: #7c695a;
  --espresso: #261c16;
  --espresso-2: #33261d;
  --espresso-3: #45342a;
  --vermilion: #c9452e;
  --vermilion-deep: #a73520;
  --indigo: #25376f;
  --indigo-soft: #3d539b;
  --mikan: #e08a2e;
  --sakura: #f1b7bf;
  --lamp: #f6d79b;
  --cream: #f6ebd5;

  --font-display: "Young Serif", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-ui: "Zen Maru Gothic", "Zen Maru Gothic JP", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sfx: "Dela Gothic One", "Zen Maru Gothic JP", "Hiragino Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --line-w: 3px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.5, .5, 1);
  --nav-h: 72px;
}

/* A section chooses its tone. paper = daylight on a desk; night = reading by the lamp (warm brown, never blue-black). */
[data-tone="paper"], :root {
  --bg: var(--paper-100);
  --bg-2: var(--paper-50);
  --fg: var(--ink);
  --fg-dim: var(--ink-soft);
  --fg-faint: var(--ink-faint);
  --line: rgba(43, 33, 27, .16);
  --line-strong: var(--ink);
  --card: var(--paper-50);
  --card-hi: #fffbf2;
  --accent: var(--vermilion);
  --accent-ink: #fff7e6;
  --link: var(--vermilion-deep);
}
[data-tone="night"] {
  --bg: var(--espresso);
  --bg-2: var(--espresso-2);
  --fg: var(--cream);
  --fg-dim: rgba(246, 235, 213, .76);
  --fg-faint: rgba(246, 235, 213, .5);
  --line: rgba(246, 235, 213, .16);
  --line-strong: rgba(246, 235, 213, .5);
  --card: var(--espresso-2);
  --card-hi: var(--espresso-3);
  --accent: #f0a65a;
  --accent-ink: var(--ink);
  --link: var(--lamp);
}

/* 10-base.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--espresso); }
html:not(.reduce-motion) { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-size: 1.06rem; line-height: 1.7; font-weight: 500;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: var(--vermilion); color: #fff7e6; }
:focus-visible { outline: 3px solid var(--indigo-soft); outline-offset: 3px; border-radius: 6px; }
[data-tone="night"] :focus-visible { outline-color: var(--lamp); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="ja"], .ja { font-family: var(--font-jp); font-weight: 800; }
[data-tone] { color: var(--fg); }

/* Paper: a faint fibre texture over every light surface */
.section[data-tone="paper"]::before, .docs-main::before, .legal-main::before, .page-hero[data-tone="paper"]::before, .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .42  0 0 0 0 .28  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"); }
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); background: var(--bg); color: var(--fg); }
.section > *, .docs-main > *, .legal-main > * { position: relative; z-index: 1; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: .7em; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px currentColor; opacity: .9; margin-right: 3px; }
.display, .h2, .h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
.display { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -.015em; }
.h2 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: -.012em; }
.h3 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.12; letter-spacing: -.005em; }
/* The emphasised words sit on a brush stroke */
.display em, .h2 em, .h3 em { font-style: normal; position: relative; white-space: nowrap; z-index: 0; }
.display em::after, .h2 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .26em; z-index: -1; background: var(--lamp); border-radius: 60% 40% 55% 45% / 80% 70% 90% 80%; transform: rotate(-.8deg); }
.h3 em { color: var(--vermilion-deep); }
[data-tone="night"] .h3 em { color: var(--lamp); }
[data-tone="night"] .display em::after, [data-tone="night"] .h2 em::after { background: var(--vermilion); opacity: .85; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.26rem); line-height: 1.65; color: var(--fg-dim); max-width: 46ch; text-wrap: pretty; font-weight: 500; }
.center { text-align: center; margin-inline: auto; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 84px); max-width: 860px; }
.section-head.center { justify-items: center; }

/* Buttons: inked outline, a hard offset shadow, they press down */
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: var(--h); padding: 0 26px; border-radius: 999px; border: var(--line-w) solid var(--ink);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink); background: var(--paper-50);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s; }
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { --h: 60px; padding: 0 32px; font-size: 1.08rem; }
.btn-primary { background: var(--vermilion); color: #fff7e6; }
.btn-primary:hover { background: #d44c34; }
.btn-soon { cursor: default; background: var(--paper-50); color: var(--ink); border-style: dashed; box-shadow: 4px 4px 0 var(--vermilion); }
.btn-soon:hover { transform: none; box-shadow: 4px 4px 0 var(--vermilion); }
[data-tone="night"] .btn { border-color: var(--cream); box-shadow: 4px 4px 0 var(--cream); }
[data-tone="night"] .btn-ghost, [data-tone="night"] .btn-soon { background: var(--espresso-2); color: var(--cream); }
[data-tone="night"] .btn:hover { box-shadow: 6px 6px 0 var(--cream); }
[data-tone="night"] .btn-soon { box-shadow: 4px 4px 0 var(--vermilion); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--link); border-bottom: 2px solid currentColor; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Navigation: a paper bar with an inked underline */
.nav { position: fixed; z-index: 60; inset: 0 0 auto; height: var(--nav-h); background: var(--paper-100); border-bottom: var(--line-w) solid var(--ink); }
.nav-pill { display: flex; align-items: center; gap: 6px; max-width: calc(var(--wrap) + var(--gutter) * 2); height: 100%; margin-inline: auto; padding: 0 var(--gutter); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-icon { border-radius: 22.4%; box-shadow: 0 0 0 2.5px var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.65rem; line-height: 1; letter-spacing: -.01em; }
.brand-ja { font-family: var(--font-jp); font-weight: 800; font-size: .9rem; opacity: .65; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; margin-right: 14px; }
.nav-links a { padding: 8px 15px; border-radius: 999px; font-size: .96rem; font-weight: 700; color: var(--ink); text-decoration: none; transition: background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--paper-200); }
.nav-toggle { display: none; width: 44px; height: 44px; border: var(--line-w) solid var(--ink); background: var(--paper-50); border-radius: 50%; cursor: pointer; position: relative; margin-left: auto; box-shadow: 2px 2px 0 var(--ink); }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 13px; } .nav-toggle span:last-child { top: 21px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: block; } .nav-cta { display: none; }
  .nav-links { position: absolute; inset: calc(var(--nav-h) + 3px) 0 auto; flex-direction: column; margin: 0; padding: 12px var(--gutter) 22px; background: var(--paper-100); border-bottom: var(--line-w) solid var(--ink);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
  .nav-links a { padding: 14px 6px; font-size: 1.15rem; border-radius: 0; border-bottom: 2px dashed var(--line); }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
}

/* Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Manga devices ---------------------------------------------------------------------------------------------- */
/* A koma panel: a rectangle with a hand-inked edge (the SVG filter wobbles only the border) */
.panel { position: relative; background: var(--card); border-radius: 3px; }
.panel::before { content: ""; position: absolute; inset: 0; border: 4px solid var(--ink); border-radius: 3px; filter: url(#rough); pointer-events: none; z-index: 5; }
[data-tone="night"] .panel::before { border-color: var(--cream); }
.panel-shadow { box-shadow: 7px 7px 0 var(--ink); }
[data-tone="night"] .panel-shadow { box-shadow: 7px 7px 0 rgba(0, 0, 0, .5); }
/* Screentone: ink dots that fade out like a gradation sheet */
.tone { position: absolute; pointer-events: none; z-index: 0; background-image: radial-gradient(circle at center, var(--tone, var(--ink)) 1.3px, transparent 1.6px); background-size: 7px 7px; opacity: .24; }
.tone-b { -webkit-mask-image: linear-gradient(0deg, #000, transparent 90%); mask-image: linear-gradient(0deg, #000, transparent 90%); }
.tone-t { -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.tone-r { -webkit-mask-image: linear-gradient(270deg, #000, transparent 90%); mask-image: linear-gradient(270deg, #000, transparent 90%); }
.tone-l { -webkit-mask-image: linear-gradient(90deg, #000, transparent 90%); mask-image: linear-gradient(90deg, #000, transparent 90%); }
/* Focus lines radiating from the middle: the "look at this" burst */
.focus { position: absolute; pointer-events: none; z-index: 0; inset: 0; opacity: .8;
  background: repeating-conic-gradient(from 0deg at 50% 52%, var(--ink) 0deg .5deg, transparent .5deg 2.3deg, var(--ink) 2.3deg 2.6deg, transparent 2.6deg 5.1deg, var(--ink) 5.1deg 6deg, transparent 6deg 8.8deg);
  -webkit-mask-image: radial-gradient(closest-side at 50% 52%, transparent 40%, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 52%, transparent 40%, #000 74%, transparent 100%); }
[data-tone="night"] .focus { background: repeating-conic-gradient(from 0deg at 50% 52%, var(--cream) 0deg .5deg, transparent .5deg 2.3deg, var(--cream) 2.3deg 2.6deg, transparent 2.6deg 5.1deg, var(--cream) 5.1deg 6deg, transparent 6deg 8.8deg); opacity: .22; }
/* Speech bubble */
.bubble { position: absolute; z-index: 6; display: inline-block; padding: .55em 1.05em; border: 3px solid var(--ink); border-radius: 50% / 62%; background: #fffdf6; color: var(--ink); font-family: var(--font-ui); font-weight: 700; font-size: .95rem; line-height: 1.15; text-align: center; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--r, -3deg)); }
.bubble::after { content: ""; position: absolute; width: 15px; height: 15px; background: #fffdf6; border: 3px solid var(--ink); border-top: 0; border-left: 0; transform: rotate(var(--tail, 45deg)); bottom: -9px; left: var(--tx, 30%); border-radius: 0 0 4px 0; }
/* A narration caption box */
.caption { display: inline-block; padding: .5em .9em; background: var(--lamp); color: var(--ink); border: 3px solid var(--ink); border-radius: 3px; font-weight: 700; font-size: .92rem; box-shadow: 3px 3px 0 var(--ink); }
/* Sound effects, lettered big and black */
.sfx { position: absolute; z-index: 7; font-family: var(--font-sfx); line-height: 1; color: var(--vermilion); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); transform: rotate(var(--r, -8deg)); pointer-events: none; user-select: none; }
/* Onomatopoeia, lettered by hand: scenes.js splits the word into one <b> per kana, each tilted a little, with a cream
   ring and an ink edge, a small accent drawn beside it and an English gloss the way translated manga prints one.
   Hidden until its moment (.is-on), then it pops in letter by letter. */
.oto { --c: var(--vermilion); --ring: #fffaf0; --edge: var(--ink); --fx: var(--ink); --gc: var(--ink); --gring: #fffaf0; position: absolute; z-index: 7; display: inline-block; font-family: var(--font-sfx); font-size: 56px; line-height: 1; white-space: nowrap; color: var(--c); transform: rotate(var(--r, -8deg)); pointer-events: none; user-select: none; }
.oto b { position: relative; display: inline-block; font-weight: 400; margin-inline-end: -.015em; -webkit-text-stroke: .1em var(--ring); paint-order: stroke fill; transform: translateY(var(--gy, 0em)) rotate(var(--gr, 0deg)) scale(calc(var(--gs, 1) * var(--sx, 1)), calc(var(--gs, 1) * var(--sy, 1))); transform-origin: 50% 80%; transition: transform .6s var(--ease-spring) calc(var(--i, 0) * 80ms), opacity .16s linear calc(var(--i, 0) * 80ms); }
.oto b::before { content: attr(data-k); position: absolute; inset: 0; z-index: -1; color: var(--edge); -webkit-text-stroke: .24em var(--edge); text-shadow: .07em .08em 0 rgba(30, 20, 14, .22); }
.js .oto:not(.is-split) { visibility: hidden; }
.oto b.sm { margin-inline: -.1em -.12em; }
.oto-v { writing-mode: vertical-rl; }
.oto b.long { --sx: 1.5; margin-inline: .1em; }
.oto-v b.long { --sx: 1; --sy: 1.6; margin-inline: .26em; }
/* Two more letterings: classic black and white, and hollow letters for the soft sounds */
.oto-ink { --c: var(--ink); }
.oto-hollow b { color: var(--ring); -webkit-text-stroke: .17em var(--c); }
.oto-hollow b::before { -webkit-text-stroke-width: .33em; }
.oto-v b.sm { margin-inline: 0; }
.oto-fx { position: absolute; width: .92em; height: .92em; overflow: visible; fill: none; stroke: var(--fx); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.oto-fx .fill { fill: var(--lamp); stroke-width: 5; }
.oto-fx { transition: opacity .2s linear calc(var(--n, 3) * 80ms + .1s); }
.oto-fx path { stroke-dasharray: 100 120; stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease) calc(var(--n, 3) * 80ms + .1s); }
.oto-gloss { position: absolute; right: 0; top: 100%; margin-top: .14em; writing-mode: horizontal-tb; font: 700 clamp(11px, .24em, 15px)/1 var(--font-ui); font-style: normal; letter-spacing: .05em; color: var(--gc); -webkit-text-stroke: 3.5px var(--gring); paint-order: stroke fill; transform: rotate(calc(var(--r, -8deg) * -.6)); transition: opacity .3s linear calc(var(--n, 3) * 80ms + .2s); }
.oto-v .oto-gloss { right: auto; left: 100%; top: auto; bottom: .1em; margin: 0 0 0 .14em; }
.js .oto:not(.is-on) b { opacity: 0; transform: translateY(calc(var(--gy, 0em) + .3em)) rotate(calc(var(--gr, 0deg) - 18deg)) scale(.3); transition-duration: .28s, .2s; transition-delay: 0s; }
.js .oto:not(.is-on) .oto-fx { opacity: 0; transition-delay: 0s; }
.js .oto:not(.is-on) .oto-fx path { stroke-dashoffset: 100; transition-duration: .2s; transition-delay: 0s; }
.js .oto:not(.is-on) .oto-gloss { opacity: 0; transition-delay: 0s; transition-duration: .15s; }
[data-tone="night"] .oto { --ring: var(--cream); --edge: #150e09; --fx: var(--cream); --gc: var(--cream); --gring: #150e09; }
@media (prefers-reduced-motion: reduce) { .oto b, .oto-fx path, .oto-gloss { transition: none !important; animation: none !important; } }
/* A hanko seal */
.hanko { display: inline-block; padding: .22em .62em .26em; background: var(--vermilion); color: #fff7e6; font-family: var(--font-ui); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 6px; transform: rotate(var(--r, -3deg)); box-shadow: inset 0 0 0 2px rgba(255, 247, 230, .45); }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 2.5px solid var(--ink); background: var(--paper-50); color: var(--ink); }
.chip-gold { background: var(--vermilion); color: #fff7e6; transform: rotate(-2deg); border-color: var(--ink); }
kbd { font-family: var(--font-mono); font-size: .85em; padding: .1em .5em; border-radius: 7px; border: 2px solid var(--ink); background: var(--paper-50); color: var(--ink); }
.card { position: relative; border-radius: 3px; background: var(--card); }

/* Device frame: a warm desert-titanium iPhone. Width comes from --w; the screen is the real app. */
.phone { --w: 320px; position: relative; width: var(--w); font-size: calc(var(--w) / 100); aspect-ratio: 100 / 211.6; transform-style: preserve-3d; will-change: transform; }
.phone-body { position: absolute; inset: 0; border-radius: 14.4em; padding: 2.5em; transform-style: preserve-3d;
  background: linear-gradient(142deg, #e6d6bd 0%, #b19c80 16%, #5f4d3d 46%, #937d63 74%, #dccbb0 100%);
  box-shadow: 0 0 0 .35em var(--ink), 0 3.2em 5em -1.5em rgba(43, 33, 27, .55); }
.phone-body::before, .phone-body::after { content: ""; position: absolute; width: .6em; background: linear-gradient(90deg, #8d7860, #4a3b2f); border-radius: .3em; }
.phone-body::before { left: -.8em; top: 30em; height: 7em; box-shadow: 0 11em 0 #5f4d3d, 0 20em 0 #5f4d3d; }
.phone-body::after { right: -.8em; top: 38em; height: 17em; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 11.9em; overflow: hidden; background: #000; box-shadow: 0 0 0 .4em #0d0906; }
.phone-screen img, .phone-screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 32%, rgba(255, 244, 225, .12) 46%, rgba(255, 255, 255, 0) 58%); background-size: 260% 100%; background-position: var(--glare, 30%) 0; mix-blend-mode: screen; }
.phone .edge { position: absolute; inset: .3em; border-radius: 14em; background: linear-gradient(142deg, #9b8669, #4a3b2f 45%, #7b6750); backface-visibility: hidden; }

/* 20-footer-prose.css */
/* Footer: the lamp-lit end of the book */
.footer { position: relative; padding: clamp(64px, 8vw, 104px) 0 36px; background: var(--espresso); color: var(--cream); border-top: var(--line-w) solid var(--ink); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, var(--vermilion) 14px 28px); opacity: .9; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.footer-brand .brand-name { font-size: 1.9rem; }
.footer .brand { color: var(--cream); } .footer .brand-icon { box-shadow: 0 0 0 2.5px var(--cream); }
.footer-line { margin-top: 18px; color: var(--fg-dim); font-size: .98rem; max-width: 30ch; }
.footer nav { display: grid; gap: 11px; align-content: start; }
.footer nav a { color: var(--fg-dim); text-decoration: none; font-size: .98rem; font-weight: 500; width: fit-content; transition: color .2s; }
.footer nav a:hover { color: var(--lamp); }
.footer-title { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lamp); margin-bottom: 4px; }
.footer-legal { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 2px dashed rgba(246, 235, 213, .28); display: grid; gap: 12px; color: var(--fg-dim); font-size: .92rem; }
.footer-legal strong { color: var(--cream); font-weight: 700; }
.footer-legal a { color: var(--lamp); }
.footer-fine { color: var(--fg-faint); font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Prose: guides, legal pages */
.prose { max-width: 70ch; font-size: 1.06rem; line-height: 1.78; color: var(--fg); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; margin-top: 2.4em; padding-bottom: .3em; border-bottom: 3px solid var(--ink); }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2em; }
.prose h4 { font-size: .95rem; font-weight: 700; margin-top: 1.6em; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-dim); }
.prose .anchor { margin-left: .4em; font-size: .7em; opacity: 0; text-decoration: none; color: var(--fg-faint); transition: opacity .2s; }
.prose :is(h2, h3, h4):hover .anchor { opacity: 1; }
.prose p, .prose li { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .55em; }
.prose ul { list-style: none; } .prose ul li { position: relative; } .prose ul li::before { content: ""; position: absolute; left: -1.15em; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); box-shadow: 0 0 0 2px var(--ink) inset; }
.prose ol { list-style: none; counter-reset: step; padding-left: 0; gap: 14px; }
.prose ol > li { counter-increment: step; position: relative; padding: 16px 18px 16px 66px; border-radius: 3px; background: var(--card-hi); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.prose ol > li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-size: 1.1rem; color: #fff7e6; background: var(--vermilion); border: 3px solid var(--ink); }
.prose strong { font-weight: 700; }
.prose a { font-weight: 700; }
.prose img { border-radius: 3px; border: 3px solid var(--ink); margin-block: 8px; }
.prose hr { border: 0; height: 0; border-top: 3px dashed var(--line); margin-block: 2.4em; }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: .14em .45em; border-radius: 6px; background: var(--paper-200); border: 2px solid var(--line); word-break: break-word; }
.code { position: relative; border-radius: 3px; background: var(--espresso); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.code pre { margin: 0; padding: 18px 96px 18px 20px; overflow-x: auto; }
.code code { padding: 0; border: 0; background: none; color: var(--lamp); font-size: .92rem; line-height: 1.6; white-space: pre; word-break: normal; }
.code-copy { position: absolute; right: 10px; top: 10px; height: 32px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-size: .8rem; font-weight: 700; cursor: pointer; }
.code-copy:hover { background: rgba(246, 235, 213, .14); }
.code-copy.done { color: var(--ink); background: var(--lamp); border-color: var(--lamp); }
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 3px; background: var(--card-hi); box-shadow: 5px 5px 0 var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--line); vertical-align: top; }
.prose th { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); background: var(--lamp); border-bottom: 3px solid var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 16px 20px 16px 22px; border-radius: 3px; border: 3px solid var(--ink); background: var(--lamp); box-shadow: 4px 4px 0 var(--ink); font-size: 1rem; color: var(--ink); }
.callout > * + * { margin-top: .6em; }
.callout-label { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff7e6; background: var(--ink); padding: .15em .7em; border-radius: 99px; margin-bottom: 6px; }
.callout-warning { background: #f7c9b8; } .callout-warning .callout-label { background: var(--vermilion-deep); }
.callout-tip { background: #d9e6c8; }
.callout p:last-child { margin: 0; }

/* Guides layout */
.docs-main, .legal-main { position: relative; padding-top: calc(var(--nav-h) + 32px); background: var(--paper-100); min-height: 70vh; }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 210px; gap: clamp(28px, 4vw, 64px); padding-block: 44px 120px; align-items: start; }
.docs-side, .docs-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 26px; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.docs-group-title { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vermilion-deep); margin-bottom: 10px; }
.docs-side ul, .docs-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.docs-side a, .docs-toc a { display: block; padding: 7px 12px; margin-left: -12px; border-radius: 10px; color: var(--fg-dim); text-decoration: none; font-size: .96rem; font-weight: 700; line-height: 1.35; transition: background .2s, color .2s; }
.docs-side a:hover, .docs-toc a:hover { background: var(--paper-200); color: var(--fg); }
.docs-side a[aria-current] { background: var(--ink); color: var(--paper-50); }
.docs-toc a.active { color: var(--fg); background: var(--lamp); }
.docs-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.015em; margin-top: 14px; text-wrap: balance; }
.docs-lede { margin-top: 18px; font-size: 1.2rem; color: var(--fg-dim); max-width: 52ch; text-wrap: pretty; }
.docs-article .prose { margin-top: 44px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; max-width: 70ch; }
.pager a { display: grid; gap: 4px; padding: 18px 22px; border-radius: 3px; border: 3px solid var(--ink); background: var(--card-hi); text-decoration: none; color: var(--fg); font-weight: 700; box-shadow: 4px 4px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.pager a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pager a span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vermilion-deep); font-weight: 700; }
.pager-next { text-align: right; }
.docs-menu { display: none; }
@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs-aside { display: none; } }
@media (max-width: 800px) {
  /* One column that never grows wider than the screen; the sidebar becomes an "All guides" menu. */
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 18px 90px; }
  .docs > * { min-width: 0; }
  .docs-side { display: none; }
  .docs-menu { display: block; margin-bottom: 30px; }
  .docs-menu summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card-hi); box-shadow: 4px 4px 0 var(--ink); font-weight: 700; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
  .docs-menu summary::-webkit-details-marker { display: none; }
  .docs-menu summary::before { content: ""; width: 18px; height: 13px; flex: none; background: linear-gradient(var(--ink) 0 0) top / 100% 2.5px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 2.5px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 2.5px no-repeat; }
  .docs-menu summary::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
  .docs-menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .docs-menu-step { margin-left: auto; font-size: .8rem; letter-spacing: .06em; color: var(--fg-faint); }
  .docs-menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 12px; padding: 18px 18px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card-hi); box-shadow: 4px 4px 0 var(--ink); }
  .docs-menu-list .docs-group-title { margin-bottom: 6px; }
  .docs-menu-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
  .docs-menu-list a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 9px; color: var(--fg-dim); text-decoration: none; font-size: .92rem; font-weight: 700; line-height: 1.3; }
  .docs-menu-list a[aria-current] { background: var(--ink); color: var(--paper-50); }
  .docs-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .docs-lede { font-size: 1.06rem; }
  .docs-article .prose { margin-top: 32px; }
  .pager { grid-template-columns: 1fr; gap: 14px; margin-top: 52px; }

  .prose { font-size: 1rem; line-height: 1.7; }
  .prose h2 { font-size: 1.8rem; margin-top: 2em; }
  .prose ol > li { padding: 14px 14px 14px 56px; }
  .prose ol > li::before { left: 12px; top: 12px; width: 30px; height: 30px; font-size: 1rem; }
  .callout { padding: 14px 16px; }
  .code pre { padding: 50px 16px 16px; }
  .code code { font-size: .76rem; }

  /* Tables: each row becomes a small stacked card. Tables with three or more columns label their cells. */
  .prose .table-wrap { overflow: visible; }
  .prose table { min-width: 0; font-size: .96rem; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { padding: 12px 16px; border-bottom: 2px solid var(--line); }
  .prose tr:last-child { border-bottom: 0; }
  .prose td, .prose tr:last-child td { padding: 0; border: 0; }
  .prose td:first-child { font-weight: 700; color: var(--fg); }
  .prose td + td { margin-top: 3px; color: var(--fg-dim); }
  .prose .table-wrap:not([data-cols="2"]) td + td::before { content: attr(data-label); display: block; margin-top: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vermilion-deep); }
}

/* Legal */
.legal { padding-block: 56px 130px; }
.legal-head { max-width: 70ch; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 3px solid var(--ink); }
.legal-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .98; letter-spacing: -.015em; margin-top: 16px; text-wrap: balance; }
.legal-meta { margin-top: 16px; color: var(--fg-faint); font-size: .95rem; font-weight: 700; }
.prose-legal { font-size: 1.04rem; }
.prose-legal h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: 2.2em; }
.prose-legal ol > li { padding: 14px 18px 14px 62px; }
.legal-banner { max-width: 70ch; margin-bottom: 38px; padding: 24px 26px; border-radius: 3px; background: var(--espresso); color: var(--cream); border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--vermilion); }
.legal-banner p { font-size: 1.06rem; line-height: 1.6; }
.legal-banner p + p { margin-top: .7em; }
.legal-banner ul { margin: .8em 0 1em; gap: .45em; }
.legal-banner ul li::before { box-shadow: none; }
.legal-banner strong { color: var(--lamp); }

/* 30-home.css */
@property --tc { syntax: "<color>"; inherits: true; initial-value: #d7b899; }

.page-home { --hero-w: clamp(220px, 21vw, 320px); --story-w: clamp(210px, 20vw, 290px); --strip-w: clamp(210px, 20vw, 290px); --themes-w: clamp(210px, 20vw, 290px); }
.stage { position: relative; perspective: 2100px; perspective-origin: 50% 40%; }
.phone-rig { transform-style: preserve-3d; transform: translate3d(0, var(--ty, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--sc, 1)); will-change: transform; }
.phone .edge { transform: translateZ(calc(var(--i) * -1.05px)); }

/* ---------- Intro: the launch animation, ported ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: linear-gradient(180deg, #f4e7cf, #e6cfa9); transition: opacity .55s ease .05s, visibility 0s linear .65s; }
.js.has-intro .intro { display: grid; }
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-stage { position: relative; width: min(78vw, 56vh, 600px); aspect-ratio: 1; margin-top: -8vh; }
/* No width here: each cat's own rule sizes it (.intro-stage, .final-cat). */
.cat { position: relative; aspect-ratio: 1; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.cat-word { position: absolute; left: 0; right: 0; top: 104%; display: grid; justify-items: center; gap: .7em; color: #2a211c; }
.cat-word .jp { display: flex; gap: .38em; font-family: var(--font-jp); font-weight: 800; font-size: clamp(30px, 6.4vw, 54px); line-height: 1; }
.cat-word .jp span { display: inline-block; will-change: transform, opacity; }
.cat-word .lat { font-size: clamp(11px, 1.6vw, 14px); font-weight: 700; letter-spacing: .54em; padding-left: .54em; opacity: .7; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 36px) 0 90px; overflow: clip; background: var(--paper-100); isolation: isolate; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(28px, 5vw, 72px); min-height: calc(100svh - var(--nav-h) - 130px); }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .display { font-size: clamp(2.6rem, 5.3vw, 5rem); max-width: 11em; }
.hero-copy .display em { white-space: normal; }
.hero-copy .lede { max-width: 40ch; }
.hero-fine { font-size: .88rem; color: var(--fg-faint); font-weight: 700; }
.hero-device { position: relative; padding: 90px 12px 0; }
.hero-panel { width: min(100%, 520px); height: min(74svh, 650px); margin-inline: auto; background: var(--paper-50); }
.panel-bg { position: absolute; inset: 0; overflow: hidden; background: var(--paper-50); border-radius: 3px; }
.hero-panel .stage, .device-panel .stage { position: relative; z-index: 6; }
.hero-panel .stage { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: calc(var(--hero-w) * .66 + 28px); clip-path: inset(-400px -120px 4px -120px); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 26px; height: 42px; border: 3px solid var(--ink); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--vermilion); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hb-1 { left: -6%; top: 34%; } .hb-2 { right: -7%; top: 52%; } .hb-3 { left: -3%; bottom: 13%; }
.oto-hero { right: 2%; top: -60px; font-size: clamp(40px, 5vw, 62px); --r: -8deg; }

/* The cat holds the phone the way it holds the book in the icon */
.cat-peek { position: absolute; left: 50%; top: 0; width: 132%; aspect-ratio: 1; transform: translate(-50%, -56.1%); transform-style: preserve-3d; pointer-events: none; }
.cat-peek img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-head { transform: translateZ(-4px); transform-origin: 50% 60%; animation: catbob 6s ease-in-out infinite; clip-path: inset(0 0 14.8% 0); }
.cat-paw { transform: translateZ(10px); transform-origin: 50% 56%; animation: pawpress 6s ease-in-out infinite; }
.cat-paw-r { animation-delay: -.4s; }
@keyframes catbob { 0%, 100% { transform: translateZ(-4px) translateY(0) rotate(0); } 45% { transform: translateZ(-4px) translateY(-.5%) rotate(-.4deg); } 70% { transform: translateZ(-4px) translateY(.3%) rotate(.3deg); } }
@keyframes pawpress { 0%, 100% { transform: translateZ(10px) scale(1, 1); } 45% { transform: translateZ(10px) scale(1.012, .985); } }

/* ---------- Ticker: a strip of tape across the page ---------- */
.ticker-wrap { position: relative; z-index: 8; overflow: hidden; padding-block: 20px; margin-block: -20px; pointer-events: none; }
.ticker { position: relative; overflow: hidden; background: var(--ink); border-block: 4px solid var(--ink); padding-block: 16px; transform: rotate(-1.2deg); margin-inline: -24px; }
.ticker-track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--cream); white-space: nowrap; }
.ticker li::after { content: ""; width: 14px; height: 14px; margin-inline: clamp(24px, 4vw, 50px); border-radius: 50%; background: var(--vermilion); box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--cream); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Pinned scenes ---------- */
.scene { position: relative; background: var(--bg); color: var(--fg); }
.scene-track { position: relative; height: var(--len, 300vh); }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--nav-h); }
.scene-sticky > .wrap { width: 100%; }
.device-panel { position: relative; width: min(100%, 460px); margin-inline: auto; display: grid; place-items: center; padding: clamp(26px, 4svh, 46px) 24px; background: var(--paper-50); }
.story-device .device-panel, .strip-device .device-panel, .themes-device .device-panel { overflow: visible; }

/* Reader: the volume, on a lamp-lit desk */
.reader-scene { background: radial-gradient(70% 70% at 68% 46%, #3b2b20, var(--espresso) 72%), repeating-linear-gradient(90deg, rgba(255, 235, 200, .025) 0 2px, transparent 2px 7px); }
.reader-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.reader-copy { display: grid; gap: 24px; justify-items: start; }
.modes { list-style: none; padding: 0; margin: 14px 0 0; width: 100%; max-width: 480px; border-top: 3px dashed var(--line); }
.modes li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 3px dashed var(--line); font-size: 1rem; }
.modes b { font-weight: 700; color: var(--cream); white-space: nowrap; }
.modes span { color: var(--fg-dim); text-align: right; font-size: .94rem; }
.book-stage { --pw: clamp(130px, 17.5vw, 270px); --ph: calc(var(--pw) * 1.569); position: relative; height: min(76svh, 640px); display: grid; place-items: center; perspective: 2400px; perspective-origin: 50% 30%; }
/* One sound per turn that matters: the first, one in the middle and the last */
.oto-flip { z-index: 9; font-size: clamp(36px, 4.6vw, 64px); }
.oto-flip-lift { right: 3%; top: 7%; --r: -10deg; }
.oto-flip-riffle { left: 50%; top: 33%; translate: -48% 0; --c: var(--lamp); --r: -7deg; font-size: clamp(56px, 7.6vw, 112px); }
.oto-flip-land { left: 20%; bottom: 4%; --c: var(--mikan); --r: 5deg; font-size: clamp(34px, 4vw, 58px); }
.book-cam { position: relative; transform-style: preserve-3d; transform: translate3d(0, var(--ty, 0px), 0) rotateX(var(--rx, 40deg)) rotateY(var(--ry, -6deg)) rotateZ(var(--rz, 0deg)) scale(var(--sc, 1)); will-change: transform; }
.book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d; }
.book-board { position: absolute; inset: -3.4% -3%; border-radius: 6px; transform: translateZ(-16px);
  background: linear-gradient(135deg, #2c4288, #1b2a5c 60%, #223375); box-shadow: 0 0 0 3px var(--espresso) , 0 0 0 5px var(--lamp), 0 40px 80px -10px rgba(0, 0, 0, .8); }
.book-board::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .06), rgba(0, 0, 0, .5)); }
.book-block { position: absolute; top: .6%; height: 98.8%; width: calc(var(--pw) + 7px); transform: translateZ(-9px); background: repeating-linear-gradient(0deg, #ece0c3 0 2px, #cdbf9a 2px 3px); border-radius: 3px; box-shadow: 0 2px 0 #b9aa83; }
.book-block-l { right: 50%; } .book-block-r { left: 50%; }
.book-rest { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform: translateZ(-4px); background: #eadfbf; overflow: hidden; }
.book-rest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-rest-r { left: 50%; } .book-rest-l { right: 50%; }
.book-rest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 24, 8, .38), transparent 18%); }
.book-rest-l::after { background: linear-gradient(270deg, rgba(40, 24, 8, .38), transparent 18%); }
.book-leaves { position: absolute; inset: 0; transform-style: preserve-3d; }
.leaf { position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph); transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #eadfbf; overflow: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-u { transform: rotateY(180deg); }
.face::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #1a0f05; opacity: var(--shade, 0); pointer-events: none; }
.face-d::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(40, 24, 8, .42), rgba(40, 24, 8, .08) 14%, transparent 30%); pointer-events: none; }
.face-u::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(40, 24, 8, .42), rgba(40, 24, 8, .08) 14%, transparent 30%); pointer-events: none; }
.book-spine { position: absolute; left: 50%; top: 0; width: 6px; height: 100%; transform: translateX(-50%) translateZ(2px); background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); pointer-events: none; }
.book-shadow { position: absolute; left: -6%; right: -6%; top: 6%; bottom: -10%; transform: translateZ(-60px); background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(20px); }
.book-credit { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: .78rem; color: var(--fg-faint); font-weight: 700; }

/* Story */
.story-scene { background: var(--paper-100); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 80px); align-items: center; }
.story-copy { display: grid; gap: 26px; justify-items: start; }
.story-steps { position: relative; width: 100%; min-height: 200px; }
.step { position: absolute; inset: 0 auto auto 0; width: min(100%, 470px); display: grid; gap: 14px; padding: 20px 22px; background: var(--paper-50); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 3px; opacity: 0; transform: translateY(24px) rotate(-.6deg); pointer-events: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.step p { color: var(--fg-dim); font-size: 1.04rem; line-height: 1.6; }
.step em { font-style: normal; color: var(--vermilion-deep); font-weight: 700; }
/* A different sound for each screen the story phone moves to */
.oto-tap { right: -1%; top: 45%; --r: 10deg; font-size: clamp(38px, 4.2vw, 58px); }
.oto-click { left: -4%; top: 15%; --c: var(--mikan); --r: -8deg; font-size: clamp(34px, 3.8vw, 52px); }
.oto-spot { right: 1%; bottom: 13%; --c: var(--vermilion); --r: -5deg; font-size: clamp(36px, 4vw, 54px); }
.story-dots { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.story-dots li { width: 34px; height: 8px; border-radius: 8px; background: var(--paper-300); border: 2px solid var(--ink); transition: background .4s, width .5s var(--ease); }
.story-dots li.is-on { background: var(--vermilion); width: 64px; }
.story-device .stage, .strip-device .stage, .themes-device .stage { display: grid; place-items: center; }
.phone-screen .shot { opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(1.025); }
.phone-screen .shot.is-on { opacity: 1; transform: none; }

/* Strip */
.strip-scene { background: var(--paper-200); }
.strip-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); align-items: center; }
.strip-copy { display: grid; gap: 24px; justify-items: start; }
.oto-swish { left: -4%; top: 30%; --c: var(--indigo-soft); --r: 3deg; font-size: clamp(34px, 4vw, 56px); }
.strip-screen { background: #0b0b0b; }
.strip-screen::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 2.6em; width: 28em; height: 8.4em; transform: translateX(-50%); border-radius: 9em; background: #000; }
.strip { position: absolute; left: 0; top: 0; width: 100%; transform: translate3d(0, var(--sy, 0px), 0); will-change: transform; }
.strip img { position: static !important; width: 100%; height: auto !important; object-fit: initial; display: block; }
.strip-hud { position: absolute; left: 0; right: 0; bottom: 6%; display: grid; justify-items: center; gap: 3.4em; pointer-events: none; z-index: 2; }
.strip-hud span { padding: .5em 1.1em; border-radius: 99em; background: rgba(38, 28, 22, .78); font-size: 4.2em; font-weight: 700; color: var(--cream); line-height: 1.2; }
.strip-hud i { width: 58%; height: .7em; border-radius: 1em; background: rgba(246, 235, 213, .3); overflow: hidden; }
.strip-hud b { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--vermilion); border-radius: inherit; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 6px; }
.ticks li { position: relative; padding-left: 34px; color: var(--fg-dim); font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--vermilion); border: 2.5px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .55em; width: 9px; height: 5px; border-left: 2.5px solid #fff7e6; border-bottom: 2.5px solid #fff7e6; transform: rotate(-45deg); }

/* ---------- Themes ---------- */
.themes { --tc: #d7b899; transition: --tc .7s var(--ease); background: var(--paper-100); }
.themes-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.themes-copy { display: grid; gap: 26px; justify-items: start; }
.theme-now { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 4px 18px; border-left: 6px solid var(--tc); }
.theme-now b { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1.05; }
.theme-now span { color: var(--fg-dim); font-size: .94rem; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.dot { --lb: #eee; --db: #111; --ac: #fc0; position: relative; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; overflow: hidden; background: linear-gradient(135deg, var(--lb) 50%, var(--db) 50%); transition: transform .35s var(--ease-spring), box-shadow .2s; }
.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.dot:hover { transform: scale(1.14) rotate(-6deg); }
.dot[aria-selected="true"] { transform: scale(1.12); box-shadow: 0 0 0 3px var(--paper-100), 0 0 0 6px var(--vermilion); }
.all42 { width: 100%; max-width: 560px; }
.all42 summary { cursor: pointer; font-weight: 700; color: var(--vermilion-deep); list-style: none; display: inline-flex; gap: .5em; align-items: center; border-bottom: 2px solid currentColor; }
.all42 summary::-webkit-details-marker { display: none; }
.all42 summary::after { content: "+"; font-size: 1.2em; transition: transform .3s var(--ease); }
.all42[open] summary::after { transform: rotate(45deg); }
.dots42 { display: grid; grid-template-columns: repeat(auto-fill, 34px); gap: 10px; margin-top: 16px; }
.dots42 .dot { width: 34px; height: 34px; border-width: 2.5px; }
.themes-device .panel-bg { background: color-mix(in srgb, var(--tc) 22%, var(--paper-50)); transition: background .7s var(--ease); }
.themes-device .tone { --tone: var(--tc); opacity: .5; }
.oto-pop { left: -6%; top: 44%; --r: -9deg; font-size: clamp(38px, 4.4vw, 62px); }
.icons-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 11vw, 150px); padding-top: clamp(48px, 6vw, 80px); border-top: 3px dashed var(--line); }
.icons-copy { display: grid; gap: 14px; } .icons-copy p { color: var(--fg-dim); max-width: 44ch; }
.icon-tiles { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.6vw, 20px); perspective: 800px; }
.icon-tiles li { aspect-ratio: 1; border-radius: 22.4%; overflow: hidden; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .5s var(--ease-spring), box-shadow .3s; background: var(--paper-50); }
.icon-tiles li:hover { transform: translate(-3px, -5px) rotate(-3deg); box-shadow: 8px 9px 0 var(--ink); }
.icon-tiles img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- A page of panels ---------- */
.bento-sec { background: var(--paper-200); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.bento .card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(24px, 2.6vw, 34px); min-height: 280px; transition: transform .6s var(--ease); background: var(--paper-50); }
.b-text { display: grid; gap: 10px; justify-items: start; max-width: 40ch; }
.b-text p { color: var(--fg-dim); font-size: 1rem; line-height: 1.55; }
.b-widgets { grid-column: span 7; } .b-sync { grid-column: span 5; } .b-ipad { grid-column: span 8; grid-row: span 2; } .b-track { grid-column: span 4; } .b-down { grid-column: span 4; }
.b-insights { grid-column: span 4; } .b-glass { grid-column: span 4; } .b-lang { grid-column: span 4; } .b-priv { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; }
.b-art { position: relative; }
.b-cat { position: absolute; z-index: 8; right: 7%; top: -112px; width: 200px; aspect-ratio: 1; pointer-events: none; }
.b-cat img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-cat img:first-child { clip-path: inset(0 0 14.8% 0); z-index: 1; } .b-cat img + img { z-index: 8; }
.oto-purr { right: calc(7% + 182px); top: -66px; --c: #e58f9d; --r: -9deg; font-size: clamp(32px, 3vw, 46px); }
.oto-purr.is-on b { animation: purr 2.8s linear calc(1.2s + var(--i) * 40ms) infinite; }
@keyframes purr { 0%, 74%, 100% { translate: 0 0; } 77% { translate: .03em -.03em; } 80% { translate: -.03em .02em; } 83% { translate: .02em .03em; } 86% { translate: -.02em -.02em; } 89% { translate: 0 0; } }
.widget-set { display: flex; gap: 14px; align-items: flex-end; }
.w { position: relative; flex: 1; aspect-ratio: 1; border-radius: 26px; padding: 14px; display: grid; align-content: end; color: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.w b { font-size: 1.9rem; line-height: 1; font-weight: 700; } .w span { font-size: .78rem; opacity: .9; font-weight: 700; }
.w-a { background: #3b2b1e; flex: 1.7; aspect-ratio: 1.7; } .w-a b { font-size: 1.1rem; } .w-a i { position: absolute; inset: 0; background: url("/assets/covers/01-hokusai-manga.webp") center/cover; opacity: .5; }
.w-a b, .w-a span { position: relative; }
.w-b { background: var(--lamp); color: var(--ink); } .w-c { background: var(--indigo-soft); }
.sync-art { display: flex; align-items: center; justify-content: center; height: 120px; }
.dev { width: 54px; height: 96px; border-radius: 14px; border: 3px solid var(--ink); background: var(--paper-100); position: relative; }
.dev::after { content: ""; position: absolute; left: 50%; top: 6px; width: 16px; height: 4px; border-radius: 3px; transform: translateX(-50%); background: var(--ink); }
.dev-b { width: 96px; height: 70px; border-radius: 10px; }
.sync-line { display: flex; gap: 8px; width: 30%; justify-content: center; }
.sync-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); border: 2px solid var(--ink); animation: hop 1.6s ease-in-out infinite; }
.sync-line i:nth-child(2) { animation-delay: .2s; } .sync-line i:nth-child(3) { animation-delay: .4s; }
@keyframes hop { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.b-ipad { overflow: visible; } .b-ipad .b-art { margin: 0 -4% -8%; } .b-ipad img { border-radius: 8px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.4deg); transition: transform .8s var(--ease); }
.b-ipad:hover img { transform: rotate(0deg) translateY(-6px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; } .pills span { padding: 6px 13px; border-radius: 999px; border: 2.5px solid var(--ink); font-size: .85rem; font-weight: 700; background: var(--paper-100); }
.ring-art { width: 112px; height: 112px; color: var(--vermilion); display: grid; place-items: center; }
.ring-art svg { position: absolute; inset: 0; width: 100%; height: 100%; } .ring-art b { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.ring { transition: stroke-dashoffset 1.6s var(--ease) .3s; } .js .rv:not(.in) .ring { stroke-dashoffset: 100; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--mikan); border: 2.5px solid var(--ink); transform-origin: bottom; transition: transform 1.1s var(--ease-spring); }
.js .rv:not(.in) .bars i { transform: scaleY(.05); }
.bars i:nth-child(2) { transition-delay: .06s; } .bars i:nth-child(3) { transition-delay: .12s; } .bars i:nth-child(4) { transition-delay: .18s; } .bars i:nth-child(5) { transition-delay: .24s; } .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .36s; }
.langs { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--font-display); font-size: 1.35rem; color: var(--fg-dim); } .langs span:nth-child(odd) { color: var(--ink); }

/* ---------- Bring your own ---------- */
.own-sec { background: var(--paper-100); }
.own-sec .section-head { margin-inline: auto; text-align: center; }
.own-sec .lede { max-width: 40em; text-wrap: balance; }
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.own { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 30px); background: var(--paper-50); transition: transform .6s var(--ease); }
.own p { color: var(--fg-dim); font-size: 1rem; line-height: 1.55; }
.own-art { position: relative; height: 156px; margin-bottom: 10px; border-radius: 3px; border: 3px solid var(--ink); overflow: hidden; }
.files-art { background: radial-gradient(rgba(43, 33, 27, .1) 1.3px, transparent 1.8px) 0 0 / 12px 12px, var(--lamp); }
.file { position: absolute; bottom: 20px; left: 50%; width: 66px; height: 88px; margin-left: -33px; padding-bottom: 9px; display: grid; place-items: end center; border: 3px solid var(--ink); border-radius: 6px 18px 6px 6px; background: var(--paper-50); box-shadow: 3px 3px 0 var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); transition: transform .6s var(--ease-spring); }
.file::before { content: ""; position: absolute; left: 9px; right: 9px; top: 11px; height: 34px; border-radius: 3px; border: 2px solid var(--ink); background: var(--c); }
.oto-plop { left: calc(clamp(22px, 2.4vw, 30px) + 14px); top: calc(clamp(22px, 2.4vw, 30px) + 26px); z-index: 9; --r: 4deg; font-size: clamp(26px, 2.4vw, 32px); }
.f-cbz { --c: var(--vermilion); transform: translateX(-70px) rotate(-9deg); }
.f-zip { --c: var(--indigo-soft); bottom: 34px; z-index: 1; transform: rotate(1deg); }
.f-epub { --c: var(--mikan); transform: translateX(70px) rotate(8deg); }
.own:hover .f-cbz { transform: translateX(-78px) translateY(-6px) rotate(-12deg); } .own:hover .f-epub { transform: translateX(78px) translateY(-6px) rotate(11deg); }
/* The files drop onto the shelf as the card arrives (ストン) */
.js .own.rv:not(.in) .file { transform: translate(var(--fx0, 0), -150px) rotate(var(--fr0, 0deg)); }
.f-cbz { --fx0: -70px; --fr0: -28deg; transition-delay: .15s; } .f-zip { --fr0: 14deg; transition-delay: .32s; } .f-epub { --fx0: 70px; --fr0: 26deg; transition-delay: .48s; }
.own.in .file { transition-duration: .8s; } .own.in:hover .file { transition-delay: 0s; transition-duration: .6s; }
.drop-art { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px 8px; padding: 16px 18px; background: radial-gradient(rgba(37, 55, 111, .1) 1.3px, transparent 1.8px) 0 0 / 12px 12px, #e7e6ef; }
.drop-art span { box-shadow: 2px 2px 0 var(--ink); transform: rotate(var(--r, 0deg)); transition: transform .6s var(--ease); }
.drop-art span:nth-child(3n+1) { --r: -3deg; } .drop-art span:nth-child(3n+2) { --r: 2deg; } .drop-art span:nth-child(4) { background: var(--lamp); }
.own:hover .drop-art span { transform: rotate(calc(var(--r, 0deg) * -1)) translateY(-2px); }
.code-art { display: grid; align-content: center; padding: 14px 18px; background: var(--espresso); }
.code-art pre { margin: 0; font-family: var(--font-mono); font-size: .76rem; line-height: 1.6; color: var(--cream); white-space: pre; overflow: hidden; }
.code-art .c { color: rgba(246, 235, 213, .5); } .code-art .k { color: var(--lamp); } .code-art .s { color: var(--sakura); }
.own-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; margin-top: 30px; padding: 18px 24px; border: 3px dashed rgba(43, 33, 27, .32); border-radius: 3px; color: var(--fg-dim); }
.own-foot b { color: var(--ink); }

/* ---------- Privacy ---------- */
.privacy { background: var(--paper-100); padding-block: clamp(72px, 9vw, 130px); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.privacy-text { display: grid; gap: 20px; color: var(--fg-dim); font-size: 1.1rem; padding: 24px 26px; background: var(--paper-50); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 3px; }

/* ---------- Plus: tickets ---------- */
.plus { background: var(--espresso); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: grid; gap: 8px; align-content: start; padding: 34px 30px 30px; border-radius: 4px; background: var(--paper-50); color: var(--ink); border: 4px solid var(--ink); box-shadow: 7px 7px 0 rgba(0, 0, 0, .55); }
.plan::before, .plan::after { content: ""; position: absolute; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: var(--espresso); border: 4px solid var(--ink); }
.plan::before { left: -15px; } .plan::after { right: -15px; }
.plan h3 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }
.price { font-family: var(--font-display); font-size: clamp(3rem, 4.2vw, 4rem); white-space: nowrap; line-height: 1; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; margin-top: 8px; padding-bottom: 18px; border-bottom: 3px dashed var(--line); }
.price small { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-faint); letter-spacing: 0; font-weight: 700; }
.plan-note { color: var(--ink-soft); font-size: .98rem; padding-top: 6px; font-weight: 700; }
.plan-best { background: var(--lamp); transform: translateY(-14px) rotate(-.8deg); box-shadow: 9px 9px 0 var(--vermilion); }
.plan-flag { position: absolute; right: 22px; top: -16px; }
.plan-flag-soft { position: absolute; right: 22px; top: 20px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vermilion-deep); border: 2.5px solid var(--vermilion-deep); transform: rotate(3deg); }
.plans-fine { margin-top: 30px; text-align: center; color: var(--fg-faint); font-size: .9rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--paper-100); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq { display: grid; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 3px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.14rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-50); border: 3px solid var(--ink); font-weight: 700; font-size: 1.2rem; line-height: 1; transition: transform .4s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--vermilion); color: #fff7e6; }
.faq details p { padding: 0 44px 24px 0; color: var(--fg-dim); max-width: 62ch; }

/* ---------- Final ---------- */
.final { position: relative; background: var(--espresso); }
.final-track { height: var(--len, 240vh); position: relative; }
.final-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding-top: var(--nav-h); }
.final-sticky::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(246, 235, 213, .5) 1.3px, transparent 1.6px); background-size: 8px 8px; opacity: .14; -webkit-mask-image: radial-gradient(60% 60% at 50% 38%, #000, transparent 72%); mask-image: radial-gradient(60% 60% at 50% 38%, #000, transparent 72%); }
.final-inner { --cw: min(46vw, 38svh, 360px); position: relative; display: grid; gap: 22px; justify-items: center; }
.final-cat { width: var(--cw); margin-bottom: 4px; }
.oto-mew { left: calc(50% + var(--cw) * .2); top: calc(var(--cw) * .1); --c: var(--lamp); --r: 9deg; font-size: clamp(30px, 3.4vw, 48px); }
.final-inner .display { font-size: clamp(2.8rem, 7vw, 6rem); }
.final-inner .lede { opacity: var(--lede, 1); }
.final-inner .btn-row, .final-inner .hero-fine { opacity: var(--cta, 1); transform: translateY(calc((1 - var(--cta, 1)) * 18px)); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { padding-bottom: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { gap: 18px; }
  .hero-copy .display { font-size: clamp(2.7rem, 12.5vw, 4.2rem); }
  .hero-copy .lede { font-size: 1.02rem; }
  .hero-copy .btn-ghost { display: none; }
  .hero-fine { font-size: .8rem; }
  .hero-device { padding-top: 64px; }
  .hero-panel { height: 440px; }
  .hero-panel .stage { padding-top: calc(var(--hero-w) * .66 + 20px); }
  .page-home { --hero-w: min(52vw, 230px); --story-w: min(40vw, 22svh); --strip-w: min(40vw, 22svh); --themes-w: min(50vw, 230px); }
  .hb-1 { left: -2%; top: 34%; } .hb-2 { right: -2%; top: 50%; } .hb-3 { left: 0; bottom: 8%; } .bubble { font-size: .82rem; }
  .reader-grid, .story-grid, .strip-grid { grid-template-columns: 1fr; gap: 6px; }
  .reader-copy { gap: 10px; } .modes { display: none; } .reader-copy .lede { font-size: .98rem; }
  .reader-copy .h2, .story-copy .h2, .strip-copy .h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .book-stage { --pw: 41vw; height: 48svh; }
  .story-device { order: -1; } .story-copy { gap: 12px; } .story-steps { min-height: 150px; } .step { width: 100%; padding: 14px 16px; } .step p { font-size: .96rem; } .step .h3 { font-size: 1.35rem; }
  .strip-device { order: 0; } .strip-copy .lede, .ticks { display: none; } .strip-copy { gap: 8px; order: -1; }
  .device-panel { padding: 16px 12px; width: min(100%, 360px); }
  .scene-sticky { justify-content: flex-start; padding-top: calc(var(--nav-h) + 8px); }
  .story-scene .eyebrow, .strip-scene .eyebrow { display: none; }
  .themes-grid, .icons-row, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .themes-device { order: -1; } .icon-tiles { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: 1fr; gap: 26px; } .bento .card, .b-ipad { grid-column: auto !important; grid-row: auto !important; } .b-priv { flex-direction: column; align-items: flex-start; }
  .b-cat { right: 6%; top: -98px; width: 170px; }
  .oto-purr { display: none; } /* no room beside the cat under the heading */
  .oto-hero { right: 0; top: -44px; } .oto-flip { font-size: clamp(28px, 8vw, 40px); } .oto-flip-riffle { font-size: clamp(44px, 12vw, 64px); } .oto-tap { right: 2%; font-size: 34px; } .oto-click { left: -2%; font-size: 30px; } .oto-spot { right: 8%; font-size: 32px; }
  .oto-swish { left: 1%; font-size: 30px; } .oto-pop { left: -2%; font-size: 36px; }
  .own-grid { grid-template-columns: 1fr; gap: 26px; max-width: 520px; margin-inline: auto; }
  .drop-art { gap: 8px 6px; padding: 12px; } .drop-art span { padding: 5px 11px; font-size: .8rem; }
  .plans { grid-template-columns: 1fr; max-width: 420px; gap: 28px; } .plan-best { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-track, .final-track { height: auto !important; }
  .scene-sticky, .final-sticky { position: static; height: auto; min-height: 0; padding-block: calc(var(--nav-h) + 40px) 80px; }
  .ticker-track, .cat-head, .cat-paw, .scroll-cue span, .sync-line i, .oto-purr.is-on b { animation: none; }
  .step { position: relative; opacity: 1; transform: none; margin-bottom: 28px; } .story-steps { min-height: 0; }
  .oto-flip:not(.oto-flip-lift) { display: none; }
  .js.has-intro .intro { display: none; }
}

/* 50-pages.css */
/* Inner pages: Plus, FAQ, support, guides hub, changelog, 404 */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px); background: var(--bg); color: var(--fg); overflow: clip; isolation: isolate; }
.page-hero[data-tone="paper"] { background: var(--paper-100); }
.page-hero[data-tone="night"] { background: var(--espresso); }
.page-hero[data-tone="night"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, rgba(246, 235, 213, .5) 1.3px, transparent 1.6px); background-size: 8px 8px; opacity: .14; -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent); mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent); }
.page-hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 24px; }
.page-hero .display { font-size: clamp(2.8rem, 7vw, 5.8rem); }
.page-hero-sm { padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero-sm .display { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero .lede { max-width: 54ch; }

/* Plus */
.plans-hero { width: 100%; margin-top: 18px; }
.plans-hero .plan { text-align: left; }
.plus-features { background: var(--paper-200); }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pf { display: grid; gap: 12px; align-content: start; padding: clamp(26px, 3vw, 36px); min-height: 200px; background: var(--paper-50); }
.pf p { color: var(--fg-dim); max-width: 46ch; }
.pf-k { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vermilion-deep); }
.compare-sec { background: var(--paper-100); }
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 3px; background: var(--paper-50); box-shadow: 6px 6px 0 var(--ink); }
.compare { width: 100%; border-collapse: collapse; font-size: 1.02rem; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 2px solid var(--line); vertical-align: top; }
.compare th { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--lamp); border-bottom: 3px solid var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 24%; }
.compare td.y { color: var(--vermilion-deep); font-weight: 700; } .compare td.n { color: var(--fg-faint); }
.two-note { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.note { padding: 28px; border-radius: 3px; background: var(--espresso); color: var(--cream); display: grid; gap: 10px; align-content: start; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--vermilion); }
.note p { color: rgba(246, 235, 213, .8); }

/* FAQ page */
.faq-page-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; }
.faq-toc a { padding: 9px 14px; margin-left: -14px; border-radius: 12px; color: var(--fg-dim); text-decoration: none; font-weight: 700; font-size: .98rem; transition: background .2s, color .2s; }
.faq-toc a:hover { background: var(--lamp); color: var(--fg); }
.faq-cols { display: grid; gap: 12px; max-width: 800px; }
.faq-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin: 46px 0 8px; }
.faq-h:first-child { margin-top: 0; }
@media (max-width: 860px) { .faq-page-grid { grid-template-columns: 1fr; } .faq-toc { position: static; grid-auto-flow: column; overflow-x: auto; margin-bottom: 8px; } .faq-toc a { white-space: nowrap; margin-left: 0; } }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sup { display: grid; gap: 14px; align-content: start; padding: 32px; background: var(--paper-50); }
.sup p, .sup li { color: var(--fg-dim); }
.sup .btn { justify-self: start; margin-top: 6px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Guides hub */
.hub-h { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--vermilion-deep); margin: 48px 0 16px; }
.hub-h:first-child { margin-top: 0; }
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hub-card { display: grid; gap: 10px; align-content: start; padding: 28px; text-decoration: none; color: var(--fg); background: var(--paper-50); min-height: 190px; transition: transform .2s var(--ease); }
.hub-card.panel::before { transition: transform .2s var(--ease); }
.hub-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.hub-card p { color: var(--fg-dim); font-size: 1rem; }
.hub-n { font-family: var(--font-display); font-size: 1.1rem; color: var(--vermilion-deep); }

/* Changelog */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 0; border-left: 3px dashed var(--ink); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 0; padding-bottom: 56px; position: relative; }
.timeline time { font-size: .92rem; font-weight: 700; color: var(--fg-dim); padding-top: 8px; }
.tl-body { position: relative; padding-left: 40px; display: grid; gap: 14px; }
.tl-body::before { content: ""; position: absolute; left: -9px; top: 12px; width: 15px; height: 15px; border-radius: 50%; background: var(--vermilion); border: 3px solid var(--ink); }
.tl-body ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--fg-dim); }
.tl-body li { display: block; padding: 0 0 0 20px; position: relative; } .tl-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--vermilion); }
.tl-body b { color: var(--fg); font-weight: 700; }
@media (max-width: 700px) { .timeline::before { left: 5px; } .timeline li { grid-template-columns: 1fr; } .timeline time { padding: 0 0 8px 28px; } .tl-body { padding-left: 28px; } .tl-body::before { left: -2px; } }

.nf { min-height: 80vh; display: grid; align-items: center; }

/* Guide figures: real screens in a manga panel */
.shot-fig { position: relative; display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; margin: 2.2em 0 !important; padding: 44px 24px 30px; border-radius: 3px; overflow: hidden; background: var(--paper-50); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.shot-fig::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 55%, var(--ink) 0deg .45deg, transparent .45deg 2.6deg, var(--ink) 2.6deg 3deg, transparent 3deg 6deg); opacity: .5; -webkit-mask-image: radial-gradient(closest-side at 50% 55%, transparent 38%, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 55%, transparent 38%, #000 80%, transparent 100%); pointer-events: none; }
.shot-fig .shot { position: relative; display: grid; justify-items: center; gap: 22px; }
.shot-fig .phone { transform: rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease); }
.shot-fig .shot:nth-child(even) .phone { transform: rotateY(8deg) rotateX(3deg); }
.shot-fig:hover .phone { transform: none; }
.shot-fig span { perspective: 1400px; display: block; }
.shot-fig figcaption { font-size: .9rem; font-weight: 700; color: var(--ink); text-align: center; max-width: 24ch; background: var(--lamp); border: 2.5px solid var(--ink); padding: 3px 10px; }

@media (max-width: 1000px) {
  .pf-grid, .two-note, .support-grid, .hub { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--nav-h) + 40px); }
}
