/* spellkitty.com. The app's tokens (docs/01-design-spec.md) carry the brand: indigo, the purple gradient, amber.
   Soft pastel washes live behind the kitty only. Surfaces are flat: white cards with a hairline; a shadow is
   kept for what you press and for the pieces of the app itself (tiles, the round's card). */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff") format("woff"); font-weight: 500 800; font-display: swap; }

:root {
  color-scheme: light;
  --sky-top: #e0e0fc;
  --sky-bottom: #f7f2ff;
  --page: #fbfaff;
  --soft: #f4f1ff;
  --ink: #2f3550;
  --ink-2: #4f5674;
  --ink-mid: #4a526b;
  --line: rgba(74, 82, 107, .12);
  --accent: #6670ff;
  --accent-700: #4046c2;
  --accent-200: #d9dcff;
  --accent-100: #eceeff;
  --accent-900: #241f66;
  --grad: linear-gradient(180deg, #9e66f2, #6670ff);
  --rose-500: #ff949e;
  --rose-900: #330f1a;
  --pink: #ffb3e0;
  --butter: #ffe9a3;
  --mint: #a6f0d2;
  --skyb: #a8dcff;
  --lilac: #d4b8ff;
  --magic: linear-gradient(100deg, #e0449a 0%, #9c4df2 55%, #6670ff 100%);
  --night: linear-gradient(180deg, #1f1a4d 0%, #322a82 55%, #4a43ad 100%);
  --scene-correct: linear-gradient(180deg, #1a1247 0%, #3d298c 60%, #7a5cf2 100%);
  --scene-wrong: linear-gradient(180deg, #290f24 0%, #4a1830 55%, #7a2432 100%);
  --press: 0 6px 16px rgba(102, 112, 255, .28);
  --app-card: 0 12px 32px rgba(70, 70, 140, .12);
  --tile: 0 4px 10px rgba(115, 128, 166, .18);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --display: "Bricolage", ui-rounded, system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --page-w: 1120px;
  --gutter: 32px;
  --section: clamp(80px, 10vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 500 17px/1.6 var(--body); color: var(--ink); background: var(--page); overflow-x: hidden; }
img, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-700); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
.magic { background: var(--magic); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 800 13px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 20px; }
.eyebrow.light { color: var(--accent-200); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.fine { font-size: 14px; color: var(--ink-2); margin-top: 32px; }
.fine.center { text-align: center; }

.wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.wrap.narrow { max-width: 800px; }
section { position: relative; padding: var(--section) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }
.sky { background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.sky-soft { background: var(--soft); }

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora i:nth-child(1) { background: var(--pink); left: -160px; top: -200px; }
.aurora i:nth-child(2) { background: var(--mint); right: -180px; bottom: -220px; opacity: .45; }
.aurora i:nth-child(3) { background: var(--skyb); right: 18%; top: -260px; opacity: .4; }

.bar { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.bar.scrolled { background: rgba(251, 250, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 800 22px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.bar nav { display: flex; gap: 28px; margin-left: auto; }
.bar nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar nav a:hover { color: var(--accent); }
.sound-toggle { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-mid); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .off, .muted .sound-toggle .on { display: none; }
.muted .sound-toggle .off { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 28px; border-radius: 18px; border: 0;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; font: 800 17px/1 var(--body); white-space: nowrap;
  box-shadow: var(--press); transition: transform .18s var(--spring), background .2s;
}
.btn:hover { background: #5961f5; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 22px; height: 22px; margin-top: -2px; }
.btn.small { height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; box-shadow: none; }
.btn.white { background: #fff; color: var(--accent-900); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--accent-100); font: 800 12px/1 var(--body); letter-spacing: .02em; color: var(--accent-900); }

.tiles { display: flex; gap: 9px; }
.tile {
  width: 58px; height: 73px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--tile);
  display: grid; place-items: center; font: 800 30px/1 var(--display); color: var(--ink); flex: none;
  transition: border-color .2s, background .25s, color .25s;
}
.tile.active { border: 2.5px solid var(--accent); }
.tile.pop { animation: tilepop .34s var(--spring); }
@keyframes tilepop { 0% { transform: scale(.6) translateY(10px); } 100% { transform: none; } }
.tile.done { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(102, 112, 255, .3); }
.tile.flip { animation: flip .5s ease both; }
@keyframes flip { 50% { transform: rotateY(90deg); } }
.tiles.shake { animation: shake .42s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* The hero is the first screen: it fills it, its content in the middle, the proof strip on its bottom edge */
.hero { padding: 0; overflow: hidden; min-height: calc(100svh - 76px); display: flex; flex-direction: column; }
.hero > .wrap { flex: 1; width: 100%; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.hero .lead { margin: 24px 0 36px; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.stage { position: relative; display: grid; justify-items: center; gap: 20px; }
.kitty-box { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.kitty-box canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kitty-box .fallback { position: absolute; left: 12%; top: 12%; width: 76%; opacity: 0; transition: opacity .4s; pointer-events: none; }
.kitty-box.failed .fallback { opacity: 1; }
.kitty-box.failed canvas { visibility: hidden; }
.hint {
  position: absolute; right: 2%; top: 14%; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--accent-900);
  font: 800 15px/1.2 var(--display); border: 1px solid var(--line); pointer-events: none; transition: opacity .4s, scale .4s;
  animation: hint 3.4s ease-in-out infinite;
}
.hint.gone { opacity: 0; scale: .7; }
@keyframes hint { 50% { transform: translateY(-4px) rotate(2deg); } }
.toys { display: flex; gap: 10px; position: relative; z-index: 2; }
.toy {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; font: 700 15px/1 var(--body); color: var(--ink); transition: transform .18s var(--spring), border-color .2s;
}
.toy svg { width: 20px; height: 20px; color: var(--accent); }
.toy:hover { border-color: var(--accent-200); transform: translateY(-2px); }
.toy:active { transform: scale(.96); }
.toy.on { border-color: var(--accent); background: var(--accent-100); }
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.spark { position: absolute; width: 18px; height: 18px; color: #fff; animation: spark 1.3s ease-out forwards; }
.spark svg { width: 100%; height: 100%; }
@keyframes spark { 0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; } 40% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(var(--s, 1)) rotate(140deg); opacity: 0; } }
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; z-index: 80; }

.proof { position: relative; z-index: 1; padding: 0 0 28px; }
.proof-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 14px 40px; }
.proof-row li { display: flex; align-items: center; gap: 12px; }
.proof-row svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.proof-row b { display: block; font: 800 15px/1.3 var(--display); color: var(--ink); }
.proof-row span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px 32px 36px; display: grid; grid-template-columns: 112px 1fr; column-gap: 24px; row-gap: 10px; align-items: start; }
.benefit img { grid-row: span 2; width: 112px; }
.benefit h3 { align-self: end; }
.benefit p { color: var(--ink-2); grid-column: 2; }

.try .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.try-copy .lead { margin-top: 16px; }
.try-copy .note { margin-top: 20px; font-size: 15px; color: var(--ink-2); padding-left: 16px; border-left: 3px solid var(--accent-200); }
.card-stage {
  position: relative; padding: 24px; min-height: 560px; display: flex; flex-direction: column; align-items: center; overflow: hidden; outline: none;
  background: linear-gradient(180deg, #ffffff, #f7f4ff); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--app-card);
}
.card-stage:focus-visible { box-shadow: 0 0 0 3px var(--accent), var(--app-card); }
.round-bar { width: 100%; display: flex; justify-content: flex-end; }
.pip { position: absolute; left: 20px; top: 20px; width: 100px; height: 100px; border-radius: 24px; background: #f1ecff; border: 2.5px solid var(--accent); overflow: hidden; z-index: 2; }
.pip canvas { position: absolute; width: 150px; height: 150px; left: -25px; top: -16px; pointer-events: none; }
.pip-badge { position: absolute; left: 106px; top: 106px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; display: grid; place-items: center; z-index: 3; }
.pip-badge svg { width: 14px; height: 14px; color: #fff; }
.say { margin: 20px 0 0 120px; align-self: stretch; min-height: 76px; }
.say .word-said { font: 800 28px/1.1 var(--display); }
.say .def { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.big-letter {
  font: 800 160px/1 var(--display); height: 180px; display: grid; place-items: center; margin: 8px 0 12px;
  background: linear-gradient(180deg, #c58bff, #6670ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-letter.in { animation: letterin .45s var(--spring); }
.big-letter:empty { background: none; color: rgba(102, 112, 255, .16); }
.big-letter:empty::after { content: "?"; }
@keyframes letterin { from { transform: scale(.3) rotate(-12deg) translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.card-stage .tiles { justify-content: center; }
.controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; }
.small-btn { width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--ink-mid); }
.small-btn svg { width: 26px; height: 26px; }
.hold {
  width: 116px; height: 116px; border-radius: 40px; border: 0; background: var(--accent); box-shadow: var(--press); color: #fff;
  display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; font: 800 15px/1 var(--body);
  transition: transform .2s var(--spring); user-select: none; -webkit-user-select: none; touch-action: none;
}
.hold svg { width: 40px; height: 40px; }
.hold .wave { display: none; gap: 4px; align-items: center; height: 40px; }
.hold .wave i { width: 5px; border-radius: 3px; background: #fff; animation: bar .6s ease-in-out infinite alternate; }
.hold .wave i:nth-child(1) { height: 12px; } .hold .wave i:nth-child(2) { height: 22px; animation-delay: -.2s; }
.hold .wave i:nth-child(3) { height: 34px; animation-delay: -.4s; } .hold .wave i:nth-child(4) { height: 18px; animation-delay: -.1s; }
.hold .wave i:nth-child(5) { height: 28px; animation-delay: -.5s; } .hold .wave i:nth-child(6) { height: 12px; animation-delay: -.3s; }
.hold .wave i:nth-child(7) { height: 20px; animation-delay: -.6s; }
@keyframes bar { to { transform: scaleY(.4); } }
.hold.on { background: var(--grad); transform: scale(1.04); box-shadow: 0 0 0 10px rgba(102, 112, 255, .25); }
.hold.on .mic, .hold.on .lbl { display: none; }
.hold.on .wave { display: flex; }
.tip { margin-top: 20px; min-height: 24px; font-size: 15px; color: var(--ink-2); text-align: center; max-width: 30em; }
.tip.shimmer {
  color: transparent; background: linear-gradient(90deg, var(--ink-2) 0%, var(--ink-2) 35%, #b58cff 50%, var(--ink-2) 65%, var(--ink-2) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.type-input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; bottom: 40px; border: 0; padding: 0; font-size: 16px; }

.scene { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 32px 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 5; }
.scene.show { opacity: 1; visibility: visible; }
.scene-kitty { width: 132px; margin-bottom: 4px; }
.scene.show .scene-kitty, .scene.show h3 { animation: letterin .5s var(--spring); }
.scene.correct { background: var(--scene-correct); }
.scene.correct h3 { font-size: 48px; color: var(--accent-200); }
/* Day-lit, as the app since D-108: the sky with a rose wash, dark ink, the missed tile in deep rose. */
.scene.wrong { background: linear-gradient(180deg, #fbe1e8, #f7f2ff); }
.scene.wrong h3 { font-size: 40px; color: #7a2432; }
.scene.wrong p { color: var(--ink-2); }
.scene.wrong .tiles .tile { background: rgba(255, 255, 255, .6); color: var(--ink); border: 1px solid var(--line); }
.scene.wrong .tiles .tile.miss { background: rgba(255, 148, 158, .22); border: 2px solid #7a2432; color: #7a2432; }
.scene p { color: rgba(255, 255, 255, .86); font-size: 15px; }
.scene .tiles .tile { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; width: 46px; height: 58px; font-size: 24px; border-radius: 14px; }
.scene .tiles .tile.miss { border: 2px solid var(--rose-500); color: var(--rose-500); }
.scene .btn { margin-top: 12px; min-width: 220px; }
.scene.wrong .btn { color: var(--rose-900); border: 1px solid var(--line); }
.scene.done { background: linear-gradient(180deg, #ffffff, #f3eeff); }
.scene.done h3 { font-size: 44px; }
.scene.done p { color: var(--ink-2); }
.scene.done .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.scene.done .btn { min-width: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .lead { margin-top: 16px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 0 50px; min-height: 32px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 11px; background: var(--accent-100); color: var(--accent-700); font: 800 16px/32px var(--display); text-align: center; }
.steps b { color: var(--ink); }
.list-cta { margin-top: 32px; }
.aside { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.list-figure { margin: 0; position: relative; padding-top: 88px; }
.list-figure .peek { position: absolute; width: 132px; right: 14%; top: 0; z-index: 0; }
.list-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--app-card); }
.list-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.list-card header b { font: 800 26px/1.2 var(--display); }
.list-card ol { margin: 0; padding: 0; list-style: none; counter-reset: w; }
.list-card li { counter-increment: w; position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); font-weight: 800; }
.list-card li:first-child { border-top: 0; }
.list-card li::before { content: counter(w); position: absolute; left: 0; color: var(--accent); }
.list-card li span { font-weight: 500; color: var(--ink-2); }
.list-card li span::before { content: " · "; }
.scan { display: flex; gap: 18px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.scan img { width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.scan p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.scan b { color: var(--ink); }

.bees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bee { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; }
.bee-tag { font: 800 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 12px; }
.bee h3 { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 12px; border-radius: 12px; background: var(--soft); font: 800 14px/1 var(--display); }
.bee.yours { background: var(--grad); border-color: transparent; }
.bee.yours .bee-tag, .bee.yours h3 { color: #fff; }
.bee.yours .chips span { background: rgba(255, 255, 255, .18); color: #fff; }

.safe { background: var(--night); color: #fff; overflow: hidden; }
.safe h2 { color: #fff; }
.safe .lead { color: rgba(255, 255, 255, .82); margin-top: 20px; }
.safe .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.stars i.big { width: 12px; height: 12px; background: none; color: rgba(255, 255, 255, .85); }
.stars i.big svg { width: 100%; height: 100%; }
.label { margin: 40px 0 0; max-width: 420px; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px 24px; }
.label-head { font: 800 13px/1 var(--body); letter-spacing: .04em; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.label-title { display: flex; align-items: center; gap: 10px; font: 800 22px/1.2 var(--display); margin-top: 16px; }
.label-title svg { width: 26px; height: 26px; color: var(--accent); }
.label-text { margin-top: 6px; color: var(--ink-2); }
.label figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.safe-side { display: grid; gap: 32px; }
.sleeper { position: relative; display: grid; justify-items: center; }
.sleeper .kitty-box { width: min(100%, 300px); }
.z { position: absolute; top: 18%; right: 26%; font: 800 26px/1 var(--display); color: rgba(255, 255, 255, .85); animation: zz 3.2s ease-in-out infinite; pointer-events: none; z-index: 2; }
.z:nth-of-type(2) { right: 20%; top: 10%; font-size: 20px; animation-delay: -1.1s; }
.z:nth-of-type(3) { right: 15%; top: 3%; font-size: 15px; animation-delay: -2.2s; }
.sleeper.awake .z { opacity: 0 !important; animation: none; }
@keyframes zz { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -24px); } }
.shh { font: 800 14px/1.2 var(--body); color: rgba(255, 255, 255, .8); margin-top: 4px; }
.guards { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.guards li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78); font-size: 16px; }
.guards b { color: #fff; display: block; font: 800 18px/1.3 var(--display); margin-bottom: 4px; }
.policy { font-size: 15px; color: rgba(255, 255, 255, .82); }
.policy a { color: #fff; font-weight: 800; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.plan-tag { font: 800 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 12px; }
.plan h3 { font-size: 28px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234046c2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plan.pro { background: linear-gradient(160deg, #fbf3ff, #efeaff); padding-right: 168px; }
.plan.pro .plan-tag { color: #8a4bd8; }
.plan-kitty { position: absolute; width: 132px; right: 24px; bottom: 20px; }

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 800 18px/1.35 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); rotate: 45deg; transition: rotate .2s, margin .2s; }
.faq details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.faq details p { color: var(--ink-2); padding-bottom: 22px; }

.last { text-align: center; overflow: hidden; }
.last .wrap { display: grid; justify-items: center; }
.last-kitty { width: 168px; margin-bottom: 24px; }
.last h2 { margin-bottom: 32px; max-width: 14em; }
.last .cta-note { margin-top: 16px; }

footer.foot { padding: 40px 0 56px; color: var(--ink-2); font-size: 14px; }
footer.foot .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer.foot a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
footer.foot a:hover { color: var(--accent); }
footer.foot small { display: block; max-width: 460px; line-height: 1.5; }

.page-hero { position: relative; padding: 0; overflow: hidden; }
.page { max-width: 760px; margin: 0 auto; padding: 16px var(--gutter) 96px; position: relative; z-index: 1; }
.page h1 { font-size: clamp(38px, 6vw, 56px); margin: 16px 0 24px; }
.page h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: 0; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page section { padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.page section + section { margin-top: 12px; }
.page .meta { font-weight: 800; color: var(--ink); }
.page-kitty { width: 120px; margin-top: 24px; }
.article .lead { margin-bottom: 24px; }
.article .steps { margin-top: 12px; }
.article .chips { margin-top: 16px; }
.article .scan { border-top: 0; padding-top: 4px; }
.cta-card { margin-top: 24px; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 36px 28px !important; background: linear-gradient(160deg, #fbf3ff, #efeaff) !important; }
.cta-card h2 { font-size: 26px; }
.article .list-card { box-shadow: none; padding: 4px 0 0; border: 0; }
.article .scan img { width: 132px; height: 132px; }
.grade-links { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-links a { padding: 8px 12px; border-radius: 12px; background: var(--soft); font-weight: 800; text-decoration: none; }
.grade-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grade-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--soft); text-decoration: none; color: var(--ink); }
.grade-list a b { font: 800 20px/1.2 var(--display); }
.grade-list a span { color: var(--ink-2); font-size: 14px; }
.list-page .list-card { box-shadow: none; }
.list-page .list-card li { font-size: 19px; }
.list-page .lead { margin-top: 24px; }
.list-page .cta-row { margin-top: 24px; }
.list-page .fine { margin-top: 16px; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .bees { grid-template-columns: repeat(2, 1fr); }
  .proof-row { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .sound-toggle { margin-left: auto; }
  .hero > .wrap, .try .wrap, .split, .safe .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: 0; }
  .hero > .wrap { gap: 0; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin-top: 8px; }
  .hero h1 { order: 2; }
  .stage { order: 3; margin: 28px 0 8px; }
  .hero .lead { order: 4; margin: 28px 0 28px; }
  .cta-row { order: 5; }
  .kitty-box { width: min(76vw, 380px); }
  .benefit-grid, .plans { grid-template-columns: 1fr; }
  .card-stage { max-width: 520px; width: 100%; margin: 0 auto; }
  .list-figure { max-width: 520px; }
  .safe-side { order: -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: 16px; }
  .bar .wrap { height: 64px; gap: 10px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .cta-row .btn { width: 100%; }
  .toys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
  .toy { flex-direction: column; justify-content: center; height: 64px; padding: 0; border-radius: 18px; font-size: 13px; gap: 4px; }
  .toy svg { width: 22px; height: 22px; }
  .proof-row { justify-content: start; grid-template-columns: 1fr; gap: 14px; }
  .proof { padding-bottom: 36px; }
  .section-head { margin-bottom: 40px; }
  .benefit { grid-template-columns: 84px 1fr; padding: 24px; column-gap: 18px; }
  .benefit img { width: 84px; grid-row: auto; }
  .benefit p { grid-column: 1 / -1; }
  .tile { width: 46px; height: 60px; font-size: 25px; border-radius: 14px; }
  .tiles { gap: 6px; }
  .card-stage { padding: 16px 12px 24px; min-height: 540px; border-radius: 28px; }
  .pip { left: 12px; top: 12px; width: 88px; height: 88px; border-radius: 22px; }
  .pip canvas { width: 132px; height: 132px; left: -22px; top: -14px; }
  .pip-badge { left: 88px; top: 88px; }
  .say { margin: 14px 0 0 104px; }
  .say .word-said { font-size: 24px; }
  .big-letter { font-size: 130px; height: 150px; }
  .controls { gap: 16px; }
  .hold { width: 104px; height: 104px; border-radius: 36px; }
  .small-btn { width: 58px; height: 58px; }
  .scene .btn { min-width: 0; width: 100%; }
  .list-card { padding: 22px; }
  .list-figure .peek { width: 112px; right: 10%; top: 12px; }
  .bees { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .plan.pro { padding: 28px 24px 150px; }
  .plan-kitty { width: 112px; right: 20px; bottom: 16px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* /make (D-78): a list typed on the site, its link and its QR. The fields are the app's rules; see assets/make.js. */
.field { display: block; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field > span { display: block; font: 800 15px/1.3 var(--body); color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; font: 500 17px/1.5 var(--body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 16px; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 300px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-200); }
.field input::placeholder, .field textarea::placeholder { color: #9aa0b8; opacity: 1; }
.help { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.page .warn { color: #a3365a; font-weight: 700; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.status p { font-size: 14px; line-height: 1.45; }
.status .which { display: block; font-weight: 500; color: var(--ink-2); }
.share-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 28px; align-items: start; margin-top: 20px; }
.qr-box { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); overflow: hidden; display: grid; place-items: center; }
.qr-box.dense { width: 240px; height: 240px; }
.qr-box svg { width: 100%; height: 100%; }
.qr-box .empty { font-size: 14px; color: var(--ink-2); text-align: center; padding: 24px; }
.qr-box + .help { max-width: 240px; }
.share-actions { display: grid; gap: 10px; min-width: 0; }
.share-actions .btn { width: 100%; }
.share-row { display: flex; gap: 10px; }
.share-row .btn { flex: 1 1 auto; min-width: 0; padding-left: 16px; padding-right: 16px; }
.btn.off { opacity: .45; pointer-events: none; }
.link-text {
  font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); background: var(--soft); border-radius: 12px;
  padding: 10px 12px; word-break: break-all; overflow-wrap: anywhere; max-height: 7.5em; overflow-y: auto; -webkit-user-select: all; user-select: all;
}
@media (max-width: 560px) {
  .share-grid { grid-template-columns: 1fr; justify-items: center; }
  .share-actions { width: 100%; }
}
