/* ═══════════════════════════════════════════════════════════════
   NOTES — website styles
   Day = warm paper, night = a desk lamp. Tokens on :root.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #F6F3EC;
  --bg-2: #EEE9DE;
  --card: #FFFDF9;
  --card-2: #FBF8F2;
  --ink: #17181C;
  --ink-2: #464953;
  --muted: #777A85;
  --line: #E3DDD0;
  --blue: #2B57E0;
  --blue-2: #1E4FD8;
  --blue-soft: #E4EBFD;
  --nib: #F2A023;
  --hl: #FFE34D;
  --rule: rgba(43, 87, 224, .10);
  --paper: #FFFFFF;
  --paper-line: #C9D8F0;
  --hand: #1E3E9E;
  --shadow-s: 0 1px 2px rgba(23, 24, 28, .06), 0 4px 12px -4px rgba(23, 24, 28, .10);
  --shadow: 0 1px 2px rgba(23, 24, 28, .05), 0 18px 40px -18px rgba(23, 24, 28, .25);
  --shadow-l: 0 2px 6px rgba(23, 24, 28, .06), 0 40px 80px -30px rgba(23, 24, 28, .35);
  --r: 22px;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Caveat", "Kalam", "Segoe Print", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121419; --bg-2: #171A21; --card: #1C1F28; --card-2: #20242E;
    --ink: #ECE9E2; --ink-2: #BDBEC6; --muted: #8A8D98; --line: #2B2F3A;
    --blue: #86A2FF; --blue-2: #6587FF; --blue-soft: rgba(134, 162, 255, .14);
    --rule: rgba(134, 162, 255, .07); --paper: #FBF9F4; --hand: #1E3E9E;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px -4px rgba(0, 0, 0, .5);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121419; --bg-2: #171A21; --card: #1C1F28; --card-2: #20242E;
  --ink: #ECE9E2; --ink-2: #BDBEC6; --muted: #8A8D98; --line: #2B2F3A;
  --blue: #86A2FF; --blue-2: #6587FF; --blue-soft: rgba(134, 162, 255, .14);
  --rule: rgba(134, 162, 255, .07); --paper: #FBF9F4; --hand: #1E3E9E;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px -4px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ─────────────────────────── base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h2 em, h1 em { font-style: italic; color: var(--blue); font-weight: 500; }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
.sr-only { 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: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.hand { font-family: var(--f-hand); }
kbd { font: 600 12px/1 var(--f-body); padding: 4px 7px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.head .lead { margin: 18px auto 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 640px; }
.fine { font-size: 13.5px; color: var(--muted); }
.kicker {
  display: inline-block;
  font: 700 clamp(24px, 2.4vw, 30px)/1 var(--f-hand);
  color: var(--blue);
  margin-bottom: 14px;
  position: relative;
  transform: rotate(-2deg);
}
.kicker::after {
  content: "";
  position: absolute; left: -4%; right: -4%; bottom: -7px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 50 2, 120 2, 198 6' fill='none' stroke='%23F2A023' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ─────────────────────────── buttons ─────────────────────────── */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 24px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background-color .25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-s); }
.btn-ink:hover { box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:disabled { opacity: .45; transform: none; cursor: default; }
.btn-play { background: var(--blue-2); color: #fff; box-shadow: 0 10px 30px -10px rgba(30, 79, 216, .7); padding: 0 26px 0 20px; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; font-size: 18px; }
.btn-play small { font-size: 11.5px; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.btn-play.big { --bh: 64px; padding: 0 32px 0 24px; }
.btn.full { width: 100%; }
.round {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line);
  transition: transform .2s var(--spring);
}
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { transform: scale(1.07); }
.chip-btn { border: 0; background: var(--bg-2); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }

/* ─────────────────────────── nav ─────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, box-shadow .3s, transform .35s var(--ease); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--f-display); letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: var(--shadow-s); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--blue-soft); color: var(--blue); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; overflow: hidden; }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; position: absolute; transition: transform .5s var(--spring), opacity .3s; }
.theme-btn .moon { fill: currentColor; stroke: none; transform: translateY(30px) rotate(-40deg); opacity: 0; }
.dark-mode .theme-btn .sun { transform: translateY(-30px) rotate(60deg); opacity: 0; }
.dark-mode .theme-btn .moon { transform: none; opacity: 1; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.nav-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--nib)); border-radius: 2px; }

/* ─────────────────────────── hero ─────────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-paper {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.b1 { width: 520px; height: 520px; right: -120px; top: 4%; background: radial-gradient(circle, rgba(65, 105, 225, .45), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 380px; height: 380px; left: -120px; bottom: -80px; background: radial-gradient(circle, rgba(242, 160, 35, .32), transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.12); } }
.hero-in { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #18B26B; box-shadow: 0 0 0 4px rgba(24, 178, 107, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(24, 178, 107, 0); } }
.hero-title { font-size: clamp(46px, 6.4vw, 86px); margin: 22px 0 22px; line-height: .98; }
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--spring), filter .8s var(--ease); }
.js .hero.ready .hero-title .w { opacity: 1; transform: none; filter: none; }
.find { position: relative; }
.find em { position: relative; z-index: 1; }
.swash { position: absolute; left: -3%; width: 106%; bottom: -.08em; height: .42em; overflow: visible; z-index: 0; }
.swash path { fill: none; stroke: var(--hl); stroke-width: 22; stroke-linecap: round; opacity: .85; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.1s var(--ease) 1.1s; }
.dark-mode .swash path { opacity: .35; }
.hero.ready .swash path { stroke-dashoffset: 0; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; color: var(--ink-2); background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.chips b { color: var(--ink); font-weight: 800; }
.js .hero-sub, .js .hero-cta, .js .chips, .js .pill { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero.ready .pill { opacity: 1; transform: none; }
.js .hero.ready .hero-sub { opacity: 1; transform: none; transition-delay: .5s; }
.js .hero.ready .hero-cta { opacity: 1; transform: none; transition-delay: .65s; }
.js .hero.ready .chips { opacity: 1; transform: none; transition-delay: .8s; }

/* the 3D notebook */
.hero-art { display: grid; place-items: center; }
.desk { position: relative; width: min(290px, 23vw); perspective: 1800px; transition: transform 1.6s cubic-bezier(.6, .02, .2, 1); }
.desk:has(.book3d.open) { transform: translateX(50%); }
.book3d {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -16deg)) rotateZ(2deg);
  transition: transform .9s var(--ease);
}
.b-back { position: absolute; inset: -1.5% -2.5% -1.5% -1%; border-radius: 10px 18px 18px 10px; background: linear-gradient(135deg, #1F3A5F, #142844); transform: translateZ(-14px); box-shadow: var(--shadow-l); }
.b-page {
  position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; overflow: hidden;
  background: #fff; transform: translateZ(-6px);
  box-shadow: inset 10px 0 18px -10px rgba(0, 0, 0, .25), 0 1px 0 rgba(0, 0, 0, .05);
}
.b-page canvas { width: 100%; height: 100%; }
.nib { position: absolute; width: 22px; left: 0; top: 0; transform-origin: 50% 0; pointer-events: none; opacity: 0; transition: opacity .4s; filter: drop-shadow(-6px 10px 8px rgba(0, 0, 0, .25)); }
.nib.on { opacity: 1; }
.b-cover {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(.6, .02, .2, 1);
}
/* opens into a flat spread; the desk slides right by one page so the spread stays centred */
.book3d.open .b-cover { transform: rotateY(-162deg); }
.c-front, .c-inside { position: absolute; inset: 0; border-radius: 6px 16px 16px 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.c-front {
  --cv: #1F3A5F;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 7%, rgba(255, 255, 255, .06) 8%, rgba(0, 0, 0, 0) 12%),
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .14), transparent 60%),
    var(--cv);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow);
}
.c-label { position: absolute; left: 18%; right: 14%; top: 16%; background: #FFFDF6; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.c-label b { font: 600 clamp(26px, 3.4vw, 36px)/1 var(--f-display); color: #1B1B1F; }
.c-label small { font: 600 20px/1.2 var(--f-hand); color: #6D6F78; }
.c-band { position: absolute; top: 0; bottom: 0; right: 13%; width: 12px; background: linear-gradient(90deg, #0d1626, #22324d 50%, #0d1626); box-shadow: 0 0 6px rgba(0, 0, 0, .4); }
.c-inside { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #E9E2D3 0 6px, #E2DACA 6px 12px); display: grid; place-items: center; }
.c-owner { width: 70%; background: #FFFDF6; border-radius: 6px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font: 600 13px/1.3 var(--f-body); color: #6D6F78; transform: rotate(-3deg); display: grid; gap: 2px; }
.c-owner b { font: 700 clamp(22px, 2.4vw, 30px)/1 var(--f-hand); color: #1E3E9E; }
.float { position: absolute; z-index: 3; font-size: 34px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); animation: bob 6s ease-in-out infinite; will-change: transform; }
.float.tag { font: 700 15px/1 var(--f-body); background: #FDE9DD; color: #9a4b1a; padding: 8px 12px; border-radius: 999px; }
.float.card-mini { font: 700 14px/1 var(--f-body); background: var(--card); color: var(--ink); padding: 11px 14px; border-radius: 14px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: pulse-r 1.4s infinite; }
@keyframes pulse-r { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, .0); opacity: .5; } }
.f1 { top: -4%; right: 2%; animation-delay: -1s; }
.f2 { left: -9%; top: 24%; animation-delay: -3s; }
.f3 { right: -6%; bottom: 22%; animation-delay: -2s; }
.f4 { left: -12%; bottom: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--muted); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ─────────────────────────── marquee ─────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card-2); padding: 16px 0; }
.mq-track { display: flex; gap: 28px; width: max-content; animation: mq 50s linear infinite; font: 600 clamp(22px, 2.4vw, 28px)/1 var(--f-hand); color: var(--ink-2); white-space: nowrap; }
.mq-track i { color: var(--nib); font-style: normal; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ─────────────────────────── studio ─────────────────────────── */
.studio { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.studio-card { border-radius: 30px; background: var(--card); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line); padding: 14px; }
#studio-app { display: flex; flex-direction: column; gap: 12px; }
.st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 4px 0; }
.st-group { display: flex; gap: 4px; align-items: center; }
.st-right { margin-left: auto; flex-wrap: wrap; }
.st-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 11px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background-color .2s, color .2s, transform .2s var(--spring); }
.st-btn:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.st-btn:active:not(:disabled) { transform: scale(.94); }
.st-btn:disabled { opacity: .35; cursor: default; }
.st-btn.on { background: var(--blue-soft); color: var(--blue); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.st-select select { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: 600 14px var(--f-body); padding: 0 34px 0 12px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; cursor: pointer; }
.st-papers { display: flex; gap: 6px; }
.st-paper { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(128, 128, 128, .45); transition: transform .2s var(--spring), box-shadow .2s; }
.st-paper.on { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .15), 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--blue); transform: scale(1.06); }
.st-stage { position: relative; height: clamp(400px, 62vh, 640px); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.st-canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.st-stage[data-tool="eraser"] .st-canvas { cursor: none; }
.st-stage[data-tool="lasso"] .st-canvas { cursor: cell; }
.st-stage.reading .st-canvas { cursor: default; }
.st-hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; color: #8A93A3; transition: opacity .5s, transform .5s var(--ease); }
.st-hint .hand { font-size: clamp(34px, 4.4vw, 52px); line-height: 1; color: #9AA6BE; }
.st-hint small { font-size: 14px; margin-top: 10px; }
.st-hint.gone { opacity: 0; transform: scale(.96); }
.st-selmenu { position: absolute; left: 0; top: 0; display: flex; gap: 4px; align-items: center; padding: 5px; border-radius: 14px; background: #1B1B1F; color: #fff; box-shadow: var(--shadow); z-index: 3; }
.st-selmenu[hidden] { display: none; }
.st-selmenu button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: #fff; }
.st-selmenu button:hover { background: rgba(255, 255, 255, .12); }
.st-selcolors { display: flex; gap: 3px; padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, .16); }
.st-selcolors button { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.st-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 20px); opacity: 0; background: #1B1B1F; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); max-width: calc(100% - 32px); text-align: center; z-index: 4; }
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
.st-tray { display: flex; justify-content: center; gap: 4px; padding: 8px 14px 0; border-radius: 24px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: 86px; align-items: flex-end; }
.st-tray::-webkit-scrollbar { display: none; }
.st-pen { flex: none; width: 54px; height: 80px; border: 0; background: transparent; padding: 0 10px; transform: translateY(18px); transition: transform .35s var(--spring); position: relative; }
.st-pen svg { width: 34px; height: 78px; overflow: visible; }
.st-pen:hover { transform: translateY(10px); }
.st-pen.on { transform: translateY(0); }
.st-pen.on::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }
.st-pen[data-tool="tape"], .st-pen[data-tool="eraser"] { margin-left: 8px; }
.st-pen[data-tool="lasso"] { margin-left: 8px; }
.st-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 0 8px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s, padding .3s; }
.st-settings.open { max-height: 200px; opacity: 1; padding: 6px 8px 8px; }
.st-colors { display: flex; flex-wrap: wrap; gap: 7px; }
.st-color { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14); transition: transform .2s var(--spring); }
.st-color:hover { transform: scale(1.12); }
.st-color.on { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14), 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--ink); }
.st-range { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.st-range input { width: 150px; accent-color: var(--blue); }
.st-range output { min-width: 30px; font-variant-numeric: tabular-nums; color: var(--muted); }
.st-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-2); }
.st-seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.st-seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.st-note { font-size: 14px; color: var(--muted); max-width: 560px; }
.studio-tips { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.studio-tips li { font-size: 14.5px; color: var(--ink-2); padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); }
.studio-tips b { color: var(--ink); }
.studio-tips kbd { margin: 0 2px; }

/* ─────────────────────────── split sections ─────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.split.rev .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B57E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks b { color: var(--ink); }
.split-copy .fine { margin-top: 18px; }

/* ─────────────────────────── notebook / book ─────────────────────────── */
.cover-pick { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cp-label { font: 700 24px/1 var(--f-hand); color: var(--ink-2); }
.cp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-row button { width: 32px; height: 40px; border-radius: 4px 8px 8px 4px; border: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 22%), var(--sw); box-shadow: var(--shadow-s); transition: transform .25s var(--spring); }
.cp-row button:hover { transform: translateY(-4px) rotate(-4deg); }
.cp-row button.on { transform: translateY(-6px); box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--ink); }
.book-zone { display: grid; justify-items: center; gap: 22px; }
.book { position: relative; width: min(600px, 100%); aspect-ratio: 1.42; perspective: 2200px; container-type: inline-size; outline: none; }
.book-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.book.at-cover .book-inner { transform: translateX(-25%); }
.book.at-end .book-inner { transform: translateX(25%); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45, .05, .2, 1); cursor: grab; touch-action: pan-y; }
.leaf.dragging { transition: none; cursor: grabbing; }
.leaf.flipped { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--paper); color: #26272c; }
.face.front { border-radius: 2px 10px 10px 2px; box-shadow: inset 12px 0 16px -12px rgba(0, 0, 0, .28), 0 10px 28px -14px rgba(0, 0, 0, .35); }
.face.back { transform: rotateY(180deg); border-radius: 10px 2px 2px 10px; box-shadow: inset -12px 0 16px -12px rgba(0, 0, 0, .28), 0 10px 28px -14px rgba(0, 0, 0, .35); }
.face .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .18)); opacity: 0; transition: opacity .3s; }
.leaf.turning .face .shade { opacity: 1; }
.face.cover {
  --cv: #1F3A5F;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 7%, rgba(255, 255, 255, .07) 8%, rgba(0, 0, 0, 0) 12%), radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .16), transparent 60%), var(--cv);
  transition: background-color .5s;
}
.face.cover .c-label { top: 18%; left: 16%; right: 16%; padding: 4cqw 4cqw; }
.face.cover .c-label b { font-size: 6cqw; }
.face.cover .c-label small { font-size: 3.6cqw; }
.face.cover .c-band { right: 12%; width: 2cqw; }
.face.endpaper { background: repeating-linear-gradient(45deg, #E9E2D3 0 6px, #E2DACA 6px 12px); }
.pg { position: absolute; inset: 0; padding: 7cqw 4.5cqw 4cqw 5cqw; font-family: var(--f-hand); font-size: 3.5cqw; line-height: 4.2cqw; color: var(--hand); }
.pg.ruled { background: repeating-linear-gradient(180deg, transparent 0 calc(4.2cqw - 1px), #C9D8F0 calc(4.2cqw - 1px) 4.2cqw) 0 6.1cqw / 100% 100% no-repeat, var(--paper); background-origin: border-box; }
.pg.grid { background-image: linear-gradient(#D7E1F2 1px, transparent 1px), linear-gradient(90deg, #D7E1F2 1px, transparent 1px); background-size: 3.4cqw 3.4cqw; background-color: #FBF6E6; }
.pg.dot { background-image: radial-gradient(circle, #B8C2D3 1.1px, transparent 1.4px); background-size: 3.4cqw 3.4cqw; }
.pg.music { background: var(--paper); }
.pg h4 { margin: 0 0 1.2cqw; font: 700 5cqw/1 var(--f-hand); color: #1B1B1F; }
.pg p { margin: 0; }
.pg .red { color: #D93025; }
.pg .green { color: #0F9D58; }
.pg .mark { background: linear-gradient(transparent 35%, rgba(255, 227, 77, .75) 35%, rgba(255, 227, 77, .75) 85%, transparent 85%); padding: 0 .4cqw; }
.pg .todo { display: flex; align-items: center; gap: 1.4cqw; }
.pg .todo i { width: 2.4cqw; height: 2.4cqw; border: .35cqw solid #8A93A3; border-radius: .5cqw; flex: none; position: relative; }
.pg .todo.done i::after { content: "✓"; position: absolute; left: -.2cqw; top: -2.4cqw; font-size: 4.2cqw; color: #0F9D58; }
.pg .todo.done span { text-decoration: line-through; text-decoration-color: #0F9D58; color: #6b7280; }
.pg svg { position: absolute; }
.pg .pnum { position: absolute; bottom: 2cqw; right: 3cqw; font: 600 2cqw/1 var(--f-body); color: #9aa3b2; }
.face.back .pg .pnum { right: auto; left: 3cqw; }
.book-ctrl { display: flex; align-items: center; gap: 16px; }
.book-count { font: 700 15px/1 var(--f-body); color: var(--ink-2); min-width: 90px; text-align: center; }

/* ─────────────────────────── templates ─────────────────────────── */
.templates { background: var(--bg-2); }
.tpl-papers { display: flex; justify-content: center; gap: 10px; margin: -20px 0 34px; }
.tpl-papers button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tpl-papers button i { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(128, 128, 128, .45); }
.tpl-papers button.on { box-shadow: inset 0 0 0 2px var(--blue); color: var(--ink); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.tpl { position: relative; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); padding: 12px; transition: transform .4s var(--spring), box-shadow .3s; }
.tpl:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.tpl canvas { width: 100%; aspect-ratio: 3 / 4; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 2px; }
.tpl-foot b { font-weight: 700; font-size: 15.5px; }
.tpl-foot button { border: 0; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; padding: 7px 11px; border-radius: 999px; white-space: nowrap; transition: transform .2s var(--spring); }
.tpl-foot button:hover { transform: scale(1.05); }

/* ─────────────────────────── search ─────────────────────────── */
.search-demo { border-radius: 28px; background: var(--card); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line); padding: clamp(16px, 2.5vw, 28px); }
.sd-bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-radius: 18px; background: var(--bg-2); }
.sd-bar svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.sd-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 18px var(--f-body); color: var(--ink); outline: none; }
.sd-bar input::placeholder { color: var(--muted); font-weight: 500; }
.sd-count { font-size: 14px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px 20px; }
.sd-chips button { border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: box-shadow .2s, color .2s; }
.sd-chips button:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.sd-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sd-page { position: relative; border-radius: 12px; background: var(--paper); color: var(--hand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 12px 24px -16px rgba(0, 0, 0, .3); padding: 22px 18px 18px 22px; font: 500 22px/30px var(--f-hand); min-height: 300px; background-image: repeating-linear-gradient(180deg, transparent 0 29px, #DDE6F5 29px 30px); background-position: 0 52px; transition: transform .4s var(--spring), opacity .4s, box-shadow .3s; }
.sd-page[lang="hi"] { font-family: "Kalam", var(--f-hand); font-size: 19px; }
.sd-page h4 { margin: 0 0 8px; font: 700 26px/1.1 var(--f-hand); color: #1B1B1F; }
.sd-page .meta { position: absolute; right: 14px; top: 14px; font: 700 11.5px/1 var(--f-body); color: #8A93A3; letter-spacing: .04em; text-transform: uppercase; }
.sd-page.dim { opacity: .38; transform: scale(.97); }
.sd-page.hit { box-shadow: 0 0 0 2.5px var(--blue-2), 0 18px 34px -16px rgba(30, 79, 216, .5); }
.sd-page mark { background: none; color: inherit; position: relative; z-index: 0; }
.sd-page mark::before { content: ""; position: absolute; inset: 14% -4px 4% -4px; background: rgba(255, 227, 77, .85); border-radius: 4px; z-index: -1; transform: skewX(-8deg) scaleX(0); transform-origin: left; animation: hlin .45s var(--ease) forwards; }
@keyframes hlin { to { transform: skewX(-8deg) scaleX(1); } }
.convert { margin-top: 26px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; border-radius: 28px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 36px); }
.convert h3 { font-size: 28px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cv-copy p { color: var(--ink-2); }
.t-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-2); color: #fff; font: 800 18px/1 var(--f-body); }
.t-badge.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; }
.langs { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.langs li { font-size: 13.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); }
.cv-paper { position: relative; border-radius: 14px; background: var(--paper); padding: 34px 26px; min-height: 150px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); background-image: repeating-linear-gradient(180deg, transparent 0 35px, #DDE6F5 35px 36px); overflow: hidden; }
.convert .cv-hand { font: 600 clamp(24px, 2.6vw, 32px)/1.2 var(--f-hand); color: var(--hand); transition: opacity .5s, filter .5s, transform .6s var(--ease); }
.cv-lasso { position: absolute; left: 3%; top: 14px; width: 94%; height: 100px; overflow: visible; pointer-events: none; }
.cv-lasso path { fill: rgba(30, 79, 216, .05); stroke: var(--blue-2); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; opacity: 0; }
.cv-stage.lassoing .cv-lasso path { opacity: 1; animation: ants 1s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -22; } }
.cv-stage.converted .cv-hand { opacity: 0; filter: blur(4px); transform: translateY(-10px); }
.convert .cv-typed { position: absolute; left: 26px; right: 26px; top: 40px; font: 600 clamp(17px, 1.7vw, 20px)/1.4 var(--f-body); color: #1B1B1F; }
.cv-typed:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--blue-2); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cv-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ─────────────────────────── audio ─────────────────────────── */
.audio { background: var(--bg-2); }
.audio-demo { border-radius: 28px; background: var(--card); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line); padding: 16px; }
.ad-page { position: relative; border-radius: 14px; background: var(--paper); padding: 26px 26px 20px 26px; min-height: 320px; background-image: repeating-linear-gradient(180deg, transparent 0 35px, #DDE6F5 35px 36px); background-position: 0 62px; }
.ad-page h4 { font: 700 30px/1 var(--f-hand); color: #1B1B1F; margin: 0 0 12px; }
.ad-ln { display: block; font: 600 clamp(20px, 2vw, 25px)/36px var(--f-hand); color: var(--hand); cursor: pointer; border-radius: 6px; padding: 0 6px; margin: 0 -6px; transition: opacity .4s, background-color .3s; position: relative; width: fit-content; max-width: 100%; }
.ad-ln:hover { background: rgba(30, 79, 216, .07); }
.ad-ln .ad-t { font: 700 11px/1 var(--f-body); color: #8A93A3; margin-left: 8px; opacity: 0; transition: opacity .2s; }
.ad-ln:hover .ad-t { opacity: 1; }
.audio-demo.playing .ad-ln.later { opacity: .22; }
.ad-ln.now { background: rgba(255, 227, 77, .5); }
.ad-ln.now::before { content: "🔊"; position: absolute; left: -26px; top: 0; font-size: 15px; }
.ad-player { display: flex; align-items: center; gap: 14px; padding: 16px 6px 4px; }
.round.big { width: 56px; height: 56px; flex: none; background: var(--blue-2); color: #fff; box-shadow: 0 10px 22px -10px rgba(30, 79, 216, .8); }
.round.big svg { fill: #fff; stroke: none; width: 22px; height: 22px; }
.ad-play .i-pause { display: none; }
.playing .ad-play .i-pause { display: block; }
.playing .ad-play .i-play { display: none; }
.ad-track { position: relative; flex: 1; min-width: 0; }
.ad-wave { height: 40px; display: flex; align-items: center; gap: 2px; }
.ad-wave i { flex: 1; border-radius: 2px; background: var(--line); height: var(--h); transition: background-color .2s, transform .2s; }
.ad-wave i.past { background: var(--blue-2); }
.playing .ad-wave i.past:nth-last-child(n) { animation: none; }
.ad-scrub { position: absolute; left: 0; right: 0; top: 0; height: 40px; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ad-times { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.ad-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-side { display: flex; flex-direction: column; gap: 6px; }
.ad-voice[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }

/* ─────────────────────────── bento ─────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.tile { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; position: relative; transition: transform .45s var(--spring), box-shadow .3s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile > p { color: var(--ink-2); font-size: 15.5px; }
.tile h3 { margin-top: 6px; }
.t-pdf { grid-column: span 2; grid-row: span 2; }
.t-art { height: 170px; border-radius: 14px; background: var(--bg-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.t-pdf .t-art { height: auto; flex: 1; min-height: 300px; }
.mini-canvas { width: 100%; height: 100%; }
/* pdf */
.pdf-art { background: linear-gradient(135deg, #E8EEFC, #F7EEDF); }
.dark-mode .pdf-art { background: linear-gradient(135deg, #1f2a44, #2c2620); }
.pdf-sheet { position: relative; width: min(58%, 300px); aspect-ratio: .76; background: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 12% 10%; display: flex; flex-direction: column; gap: 7%; transform: rotate(-3deg); transition: transform .6s var(--spring); }
.t-pdf:hover .pdf-sheet { transform: rotate(0) scale(1.03); }
.pdf-sheet i { display: block; height: 5%; border-radius: 3px; background: #D8DCE4; }
.pdf-sheet i.s { width: 62%; }
.pdf-hl { position: absolute; left: 8%; top: 30%; height: 9%; width: 0; background: rgba(255, 227, 77, .7); border-radius: 3px; transition: width 1s var(--ease) .3s; }
.pdf-note { position: absolute; right: -26%; top: 54%; font: 700 clamp(22px, 2.4vw, 30px)/1 var(--f-hand); color: #D93025; transform: rotate(-8deg); opacity: 0; transition: opacity .6s .9s; }
.pdf-circle { position: absolute; left: 4%; top: 64%; width: 70%; overflow: visible; }
.pdf-circle path { fill: none; stroke: #D93025; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.2s var(--ease) 1.2s; }
.pdf-badge { position: absolute; left: 16px; top: 16px; font: 800 12px/1 var(--f-body); color: #fff; background: #D93025; padding: 6px 9px; border-radius: 7px; letter-spacing: .06em; }
.in .pdf-hl { width: 72%; }
.in .pdf-note { opacity: 1; }
.in .pdf-circle path { stroke-dashoffset: 0; }
/* layers */
.layers-art { perspective: 600px; }
.ly { position: absolute; width: 58%; height: 52%; border-radius: 10px; background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); display: flex; align-items: flex-end; padding: 10px; font: 700 12.5px/1 var(--f-body); color: var(--ink-2); transform: rotateX(55deg) rotateZ(-30deg) translateZ(calc(var(--z) * 1px)); transition: transform .6s var(--spring); }
.ly.l1 { --z: 0; } .ly.l2 { --z: 26; background: rgba(228, 235, 253, .92); } .ly.l3 { --z: 52; background: rgba(255, 243, 200, .92); }
.dark-mode .ly.l2 { background: rgba(40, 52, 90, .92); } .dark-mode .ly.l3 { background: rgba(80, 70, 30, .92); }
.t-layers:hover .ly.l2 { --z: 46; } .t-layers:hover .ly.l3 { --z: 92; }
/* zoom */
.zoom-art { display: block; place-items: normal; padding: 14px; }
.zm-page { position: relative; height: 54%; border-radius: 8px; background: #fff; background-image: repeating-linear-gradient(180deg, transparent 0 13px, #DDE6F5 13px 14px); }
.zm-box { position: absolute; left: 12%; top: 40%; width: 40%; height: 26%; border: 2px solid #2B57E0; border-radius: 4px; animation: zmove 5s ease-in-out infinite; }
.zm-text { position: absolute; left: 12%; top: 44%; font: 600 11px/1 var(--f-hand); color: var(--hand); }
.zm-strip { margin-top: 10px; height: 38%; border-radius: 8px; background: #fff; border: 2px solid #2B57E0; display: flex; align-items: center; padding: 0 12px; overflow: hidden; font: 700 30px/1 var(--f-hand); color: var(--hand); white-space: nowrap; }
.zm-strip span { animation: zstrip 5s ease-in-out infinite; }
@keyframes zmove { 50% { transform: translateX(60%); } }
@keyframes zstrip { 50% { transform: translateX(-30%); } }
/* tape */
.tape-art { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #FBF6E6; }
.dark-mode .tape-art { background: #2a2720; }
.fc-q { font: 700 24px/1.1 var(--f-hand); color: var(--hand); text-align: center; }
.dark-mode .fc-q { color: #b9c8ff; }
.fc-a { position: relative; border: 0; background: transparent; padding: 6px 16px; }
.fc-ans { font: 700 30px/1 var(--f-hand); color: #0F9D58; }
.fc-tape { position: absolute; inset: -4px -14px; border-radius: 3px; background: repeating-linear-gradient(-45deg, #E9CF84 0 8px, #DDBE6A 8px 12px); box-shadow: 0 2px 4px rgba(0, 0, 0, .18); transform: rotate(-2deg); transform-origin: right top; transition: transform .6s var(--spring), opacity .5s; }
.fc-a.peeled .fc-tape { transform: rotate(-24deg) translate(30%, -60%); opacity: .25; }
.fc-tip { font: 600 12px/1 var(--f-body); color: #8A93A3; }
/* lasso */
.lasso-art svg { position: absolute; inset: 14% 10%; width: 80%; height: 72%; overflow: visible; }
.ants { fill: rgba(30, 79, 216, .05); stroke: #2B57E0; stroke-width: 2; stroke-dasharray: 6 5; animation: ants 1s linear infinite; }
.ls-ink { font: 700 44px/1 var(--f-hand); color: var(--hand); animation: lmove 4s ease-in-out infinite; }
.dark-mode .ls-ink { color: #b9c8ff; }
@keyframes lmove { 0%, 30% { transform: none; } 55%, 80% { transform: translate(14px, -6px) rotate(-4deg) scale(1.08); } 100% { transform: none; } }
/* text */
.tx { font-size: 54px; color: var(--ink); transition: opacity .3s; }
/* organise */
.org-art { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 14px; }
.fold { position: relative; padding: 18px 14px 10px; min-width: 84px; border-radius: 4px 10px 10px 10px; background: var(--f); color: #fff; font: 700 13px/1 var(--f-body); box-shadow: var(--shadow-s); transition: transform .4s var(--spring); }
.fold::before { content: ""; position: absolute; left: 0; top: -7px; width: 40%; height: 9px; border-radius: 5px 5px 0 0; background: var(--f); }
.t-organise:hover .fold:nth-child(1) { transform: translateY(-6px) rotate(-4deg); }
.t-organise:hover .fold:nth-child(3) { transform: translateY(-6px) rotate(4deg); }
.tagc { font: 700 13px/1 var(--f-body); background: #FDE9DD; color: #9a4b1a; padding: 7px 10px; border-radius: 999px; }
.star { font-size: 28px; color: #F2A023; animation: spinstar 4s var(--spring) infinite; }
@keyframes spinstar { 0%, 70% { transform: none; } 85% { transform: scale(1.4) rotate(72deg); } 100% { transform: rotate(72deg); } }
/* widget */
.widget-art { background: linear-gradient(135deg, #5B7FFF, #8E6BFF 60%, #F2A023); }
.wg { width: 64%; border-radius: 20px; background: rgba(255, 255, 255, .92); padding: 14px; display: grid; gap: 8px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); color: #1B1B1F; transition: transform .5s var(--spring); }
.t-widget:hover .wg { transform: scale(1.05) rotate(-1.5deg); }
.wg b { font: 600 18px/1 var(--f-display); }
.wg-btn { font: 700 13px/1 var(--f-body); background: #1E4FD8; color: #fff; padding: 10px; border-radius: 12px; text-align: center; }
.wg-btn.alt { background: #E4EBFD; color: #1E4FD8; }
/* backup */
.backup-art { position: relative; }
.backup-art .zip { font: 800 20px/1 var(--f-body); background: var(--ink); color: var(--bg); padding: 22px 18px; border-radius: 14px; box-shadow: var(--shadow); z-index: 1; }
.backup-art .fl { position: absolute; font-size: 28px; animation: flyin 3.2s ease-in infinite; }
.fl:nth-child(1) { left: 12%; top: 18%; } .fl:nth-child(2) { right: 12%; top: 16%; animation-delay: -.8s; } .fl:nth-child(3) { left: 14%; bottom: 14%; animation-delay: -1.6s; } .fl:nth-child(4) { right: 14%; bottom: 16%; animation-delay: -2.4s; }
@keyframes flyin { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: var(--tx, 0) var(--ty, 0); scale: .3; } }
.fl:nth-child(1) { --tx: 90%; --ty: 80%; } .fl:nth-child(2) { --tx: -90%; --ty: 80%; } .fl:nth-child(3) { --tx: 90%; --ty: -80%; } .fl:nth-child(4) { --tx: -90%; --ty: -80%; }

/* ─────────────────────────── private / PIN ─────────────────────────── */
.pin-demo { display: grid; place-items: center; }
.pin-card { width: min(360px, 100%); border-radius: 34px; background: var(--card); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line); padding: 30px 26px 26px; text-align: center; position: relative; }
.pin-lock { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #FBE3DA; color: #8E3B46; }
.pin-lock svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pin-lock .shackle { transition: transform .5s var(--spring); transform-origin: 16px 10px; }
.pin-card.unlocked .pin-lock .shackle { transform: translateY(-3px) rotate(28deg); }
.pin-card.unlocked .pin-lock { background: #DDF3E6; color: #0F9D58; }
.pin-title { font: 600 22px/1.2 var(--f-display); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 10px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); transition: background-color .15s, transform .25s var(--spring), box-shadow .2s; }
.pin-dots i.f { background: var(--ink); box-shadow: none; transform: scale(1.15); }
.pin-card.bad .pin-dots { animation: shake .45s; }
.pin-card.bad .pin-dots i { background: #E5484D; box-shadow: none; }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.pin-msg { font-size: 14px; color: var(--ink-2); min-height: 44px; }
.psst { display: block; font: 600 18px/1.2 var(--f-hand); color: var(--blue); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 12px 20px; margin-top: 8px; }
.pin-pad button { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--bg-2); font: 600 24px/1 var(--f-body); transition: transform .15s var(--spring), background-color .2s; }
.pin-pad button:active { transform: scale(.9); background: var(--blue-soft); }
.pin-pad button:disabled { opacity: .4; }
.pin-del { font-size: 20px !important; background: transparent !important; }
.pin-open { padding: 10px 0 4px; }
.pin-open .hand { font-size: 28px; color: var(--hand); margin: 14px 0; background: #FBF6E6; padding: 18px; border-radius: 12px; }
.dark-mode .pin-open .hand { color: #23315f; }
.pin-card.unlocked .pin-pad, .pin-card.unlocked .pin-dots, .pin-card.unlocked .pin-msg { display: none; }

/* ─────────────────────────── screens flow ─────────────────────────── */
.screens { overflow: hidden; }
.flow { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px calc(50vw - 140px) 40px; scrollbar-width: none; perspective: 1400px; outline: none; }
.flow::-webkit-scrollbar { display: none; }
.flow figure { flex: none; width: 280px; margin: 0; scroll-snap-align: center; border-radius: 40px; padding: 10px; background: #15161A; box-shadow: var(--shadow-l); transform: rotateY(var(--ry, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); transition: transform .25s ease-out, opacity .25s; cursor: pointer; }
.flow img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 540 / 1161; object-fit: cover; object-position: top; background: #F6F3EC; }
.flow-cap { text-align: center; font: 700 clamp(24px, 2.6vw, 30px)/1.2 var(--f-hand); color: var(--ink-2); min-height: 1.4em; padding: 0 20px; }

/* ─────────────────────────── pro ─────────────────────────── */
.pro { background: var(--bg-2); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { border-radius: 30px; padding: 32px; background: var(--card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); position: relative; display: flex; flex-direction: column; }
.plan h3 { font-size: 26px; }
.plan .price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font: 600 54px/1 var(--f-display); letter-spacing: -.03em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B57E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan li.muted { color: var(--muted); font-size: 14.5px; }
.plan li.muted::before { background: var(--bg-2); }
.pro-plan { background: linear-gradient(160deg, #2348C9, #1B2F7A 70%); color: #fff; box-shadow: 0 30px 60px -24px rgba(30, 60, 180, .6); overflow: hidden; }
.pro-plan::before { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 160, 35, .45), transparent 70%); }
.pro-plan > * { position: relative; }
.pro-plan li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.pro-plan .fine { color: rgba(255, 255, 255, .65); margin-top: 14px; }
.pro-plan .btn-ink { background: #fff; color: #1B2F7A; }
.ribbon { align-self: flex-start; font: 700 26px/1 var(--f-hand); color: #FFD27A; }
.billing { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .12); margin-top: 16px; }
.billing button { border: 0; background: transparent; color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; transition: background-color .25s, color .25s; }
.billing button.on { background: #fff; color: #1B2F7A; }
.pp-per { font-weight: 600; color: rgba(255, 255, 255, .75); }
.pp-amount { display: inline-block; }
.pp-amount.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: translateY(-6px) scale(1.06); } }
.pp-note { font-size: 14.5px; color: #FFD27A; font-weight: 600; min-height: 1.4em; }
/* three plans + the billing switch above them */
.plans.three { grid-template-columns: 1fr 1fr 1.1fr; max-width: 1120px; }
.billing-bar { display: flex; width: max-content; margin: -18px auto 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.billing-bar button { color: var(--ink-2); }
.billing-bar button.on { background: var(--ink); color: var(--bg); }
.basic-plan .pp-note { color: var(--blue); }
.basic-plan .pp-per { color: var(--muted); font-weight: 600; }
.plan .muted-note { color: var(--muted); }
.basic-plan .btn, .pro-plan .btn { margin-top: auto; }
.upgrade-strip { max-width: 1120px; margin: 22px auto 0; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 20px; background: color-mix(in srgb, var(--blue) 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent); }
.upgrade-strip p { color: var(--ink-2); }
.upgrade-strip b { color: var(--ink); }
.us-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; }
.plans-fine { max-width: 820px; margin: 16px auto 0; text-align: center; }

/* ─────────────────────────── AI ─────────────────────────── */
.ai { background: radial-gradient(70% 60% at 85% 20%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%), var(--bg); }
.ai-demo { border-radius: 28px; background: var(--card); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line); padding: 16px; position: relative; }
.aid-page { border-radius: 14px; background: var(--paper); padding: 20px 22px 14px; background-image: repeating-linear-gradient(180deg, transparent 0 33px, #DDE6F5 33px 34px); background-position: 0 54px; }
.aid-page h4 { margin: 0 0 8px; font: 700 28px/1.1 var(--f-hand); color: #1B1B1F; }
.aid-page p { font: 600 clamp(19px, 1.8vw, 23px)/34px var(--f-hand); color: var(--hand); }
.aid-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px; }
.aid-actions button { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; background: var(--bg-2); color: var(--ink-2); transition: background-color .2s, color .2s, transform .2s var(--spring); }
.aid-actions button:hover { transform: translateY(-2px); }
.aid-actions button.on { background: var(--blue-2); color: #fff; }
.aid-out { min-height: 170px; border-radius: 16px; padding: 16px 18px; background: color-mix(in srgb, var(--blue) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent); }
.aid-label { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--blue); margin-bottom: 8px; }
.aid-label .spark { display: inline-block; }
.ai-demo.thinking .spark { animation: sparkle .45s ease-in-out infinite alternate; }
.ai-demo.thinking .aid-text { opacity: .25; }
@keyframes sparkle { to { transform: scale(1.35) rotate(20deg); } }
.aid-text { white-space: pre-line; color: var(--ink); font-size: 15.5px; transition: opacity .2s; }
.aid-card { display: grid; justify-items: center; gap: 6px; perspective: 900px; }
.aid-card[hidden] { display: none; }
.aid-flip { position: relative; width: 100%; height: 118px; border: 0; background: transparent; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.aid-flip.flipped { transform: rotateY(180deg); }
.aid-flip .q, .aid-flip .a { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px 16px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-weight: 700; font-size: 17px; text-align: center; box-shadow: var(--shadow-s); }
.aid-flip .q { background: var(--card); color: var(--ink); }
.aid-flip .a { background: var(--blue-2); color: #fff; transform: rotateY(180deg); font: 700 24px/1.2 var(--f-hand); }
.aid-hint { color: var(--muted); font-size: 12.5px; }
.aid-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ─────────────────────────── faq ─────────────────────────── */
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--blue), var(--shadow-s); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 20px; font-weight: 500; transition: transform .35s var(--spring), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue-soft); color: var(--blue); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* ─────────────────────────── feedback ─────────────────────────── */
.fb-form { display: grid; gap: 16px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 34px); }
.fb-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds span { display: inline-block; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 15px; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.fb-kinds input:checked + span { box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-soft); }
.fb-kinds input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.fld textarea, .fld input { width: 100%; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--ink); font: 500 16px var(--f-body); padding: 12px 14px; resize: vertical; }
.fld textarea:focus, .fld input:focus { outline: none; border-color: var(--blue); }
.fb-status { font-weight: 600; color: var(--blue); min-height: 1.4em; }

/* ─────────────────────────── final ─────────────────────────── */
.final { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0; text-align: center; background: radial-gradient(80% 60% at 50% 100%, rgba(43, 87, 224, .14), transparent 70%), var(--bg); }
.final-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.final-in { position: relative; display: grid; justify-items: center; gap: 20px; }
.final-icon { border-radius: 24px; box-shadow: var(--shadow-l); animation: bob 6s ease-in-out infinite; }
.final h2 { font-size: clamp(38px, 6vw, 76px); max-width: 900px; }

/* ─────────────────────────── footer ─────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: var(--card-2); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-col a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.foot-col a:hover { color: var(--blue); }
.copy { margin-top: 40px; font-size: 13.5px; color: var(--muted); }

/* ─────────────────────────── ink trail ─────────────────────────── */
.ink-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ─────────────────────────── reveal ─────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────── responsive ─────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { display: none; position: fixed; left: 12px; right: 12px; top: 68px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line); }
  .menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: block; }
  .studio-tips { grid-template-columns: 1fr 1fr; }
  .plans.three { grid-template-columns: 1fr 1fr; }
  .plans.three .pro-plan { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero-in, .split, .split.rev, .convert, .plans, .plans.three { grid-template-columns: 1fr; }
  .plans.three .pro-plan { grid-column: auto; }
  .split.rev .split-copy { order: 0; }
  .hero-copy { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-cta, .chips { justify-content: center; }
  .hero-art { margin-top: 20px; }
  .desk { width: min(300px, 40vw); }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-pdf { grid-column: span 2; grid-row: auto; }
  .sd-pages { grid-template-columns: 1fr 1fr; }
  .sd-pages .sd-page:nth-child(3) { grid-column: span 2; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .kbd-tip { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-in { padding: 12px 16px; gap: 10px; }
  .nav-end .btn { display: none; }
  .hero-title { font-size: clamp(42px, 12.5vw, 60px); }
  /* phones: a bigger page; the cover stops near upright and leans off the left edge */
  .desk { width: min(330px, 70vw); margin-left: 14%; }
  .desk:has(.book3d.open) { transform: none; }
  .book3d.open .b-cover { transform: rotateY(-108deg); }
  .f2 { left: -4%; } .f4 { left: -4%; } .f3 { right: -3%; }
  .studio-card { padding: 8px; border-radius: 22px; margin: 0 -6px; }
  .st-bar { gap: 6px; }
  .st-btn span { display: none; }
  .st-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .st-stage { height: 64svh; min-height: 380px; }
  .st-tray { justify-content: flex-start; padding: 8px 8px 0; }
  .st-pen { width: 40px; padding: 0 6px; }
  .st-range input { width: 120px; }
  .studio-tips { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .t-pdf { grid-column: auto; }
  .t-pdf .t-art { min-height: 240px; }
  .sd-pages { grid-template-columns: 1fr; }
  .sd-pages .sd-page:nth-child(3) { grid-column: auto; }
  .sd-page { min-height: 0; }
  .flow { padding: 24px calc(50vw - 115px) 34px; gap: 18px; }
  .flow figure { width: 230px; border-radius: 34px; padding: 8px; }
  .flow img { border-radius: 26px; }
  .plan { padding: 24px; }
  .pin-pad { grid-template-columns: repeat(3, 58px); gap: 10px 18px; }
  .pin-pad button { width: 58px; height: 58px; }
  .tpl-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tpl { padding: 8px; border-radius: 14px; }
  .tpl-foot { flex-direction: column; align-items: flex-start; }
  .tpl-papers { flex-wrap: wrap; }
  .ad-player { flex-wrap: wrap; }
  .ad-side { flex-direction: row; width: 100%; justify-content: flex-end; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────── reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-title .w, .js .hero-sub, .js .hero-cta, .js .chips, .js .pill { opacity: 1; transform: none; filter: none; }
  .ink-trail { display: none; }
}
