/* InkHammy — "Ink & Fluff" web styles. Tokens mirror DESIGN.md. */

/* Loaded from CSS, not an HTML <link>: Cloudflare Fonts rewrites HTML Google Fonts
   links into an inline <style> that the site CSP (style-src without inline) blocks. */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800;900&display=swap");

:root {
  --ink: #6B4EFF;
  --ink-deep: #3A22B8;
  --ink-night: #150B3D;
  --lavender: #CFA1FC;
  --lilac: #F1E8FF;
  --cream: #FFF8EF;
  --card: #FFFFFF;
  --fluff: #F28C3A;
  --blush: #FF8FB1;
  --mint: #22C98E;
  --mint-ink: #0B7A53;
  --cherry: #FF4F6E;
  --sky: #3DB7F0;
  --sun: #FFCF3F;
  --text: #150B3D;
  --text-2: #6E6590;
  --text-body: #3B3360;

  --ink-sky: linear-gradient(135deg, #CFA1FC 0%, #8F6BFF 48%, #5442B9 100%);
  --hero-bg:
    radial-gradient(60% 70% at 82% 26%, rgb(207 161 252 / .95) 0%, rgb(207 161 252 / 0) 62%),
    radial-gradient(55% 60% at 4% 100%, rgb(58 34 184 / .85) 0%, rgb(58 34 184 / 0) 70%),
    linear-gradient(160deg, #8F6BFF 0%, #6B4EFF 46%, #5442B9 100%);

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-chip: 14px;
  --r-input: 20px;
  --r-card: 28px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 0 rgb(107 78 255 / .05), 0 22px 50px -24px rgb(58 34 184 / .32);
  --sticker-shadow: drop-shadow(0 10px 20px rgb(107 78 255 / .25));
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --nav-h: calc(80px + env(safe-area-inset-top, 0px));
  --page-top: var(--ink);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  /* Keep Safari's overscroll canvas continuous with the footer. */
  background: var(--ink-night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--text);
  font: 500 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(.doc-hero) { --page-top: var(--lilac); }
body:has(.lost) { --page-top: var(--cream); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.on-dark :focus-visible, .hero :focus-visible, .final :focus-visible, .foot :focus-visible { outline-color: var(--sun); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--ink-night); color: #fff; font-weight: 800; padding: 12px 18px; border-radius: 999px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

main { overflow-x: clip; flex: 1 0 auto; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 120px); position: relative; }
#download { padding-bottom: 0; }
.center { text-align: center; }

/* ---------- Type ---------- */

.h2 {
  font: 700 clamp(2.5rem, 1.3rem + 4.8vw, 5.2rem)/.95 var(--display);
  letter-spacing: -.025em;
  color: var(--ink-night);
}
.lede {
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  font-weight: 600;
  color: var(--text-2);
  max-width: 40ch;
  margin: 1rem 0 0;
}
.center .lede { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 900 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--lilac);
  padding: 7px 14px 7px 7px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.on-dark .eyebrow { background: rgb(255 255 255 / .1); color: var(--lavender); }

.ink-text { color: var(--ink); }
.squiggle-under {
  text-decoration: underline wavy var(--cherry);
  text-decoration-thickness: .07em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}

/* ---------- Buttons ---------- */

.btn {
  --face: var(--ink);
  --base: var(--ink-deep);
  --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--face);
  color: var(--fg);
  font: 700 1.125rem/1 var(--display);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--base), 0 16px 26px -12px rgb(21 11 61 / .55);
  transform: translateY(0);
  transition: transform .18s var(--spring), box-shadow .18s var(--spring), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--base), 0 20px 30px -12px rgb(21 11 61 / .55); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--base), 0 6px 12px -8px rgb(21 11 61 / .5); transition-duration: .06s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font: 800 .68rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn--white { --face: #fff; --base: #D5C8FF; --fg: var(--ink-night); }
.btn--sun { --face: var(--sun); --base: #D9A21A; --fg: var(--ink-night); }
.btn--night { --face: var(--ink-night); --base: #000; --fg: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; box-shadow: 0 4px 0 var(--base), 0 10px 18px -10px rgb(21 11 61 / .5); }
.btn--sm:active { transform: translateY(3px); }
.btn--lg { min-height: 64px; padding: 0 30px; }
.btn[hidden] { display: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 18px 14px; align-items: center; }
.center .cta-row { justify-content: center; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  padding: 12px var(--gutter);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  height: var(--nav-h);
  flex: none;
  /* Safari samples the edge background; theme-color alone is insufficient. */
  background: var(--page-top);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: var(--maxw); height: 56px; margin-inline: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 0 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / .78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 12px 32px -16px rgb(58 34 184 / .45), inset 0 0 0 1px rgb(107 78 255 / .12);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled .nav-inner { background: rgb(255 255 255 / .92); }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1.4rem/1 var(--display); letter-spacing: -.01em;
  color: var(--ink-night); text-decoration: none;
  padding: 4px 8px 4px 0; border-radius: 999px;
}
.brand img { width: 42px; height: 42px; transition: transform .45s var(--spring); }
.brand:hover img { transform: rotate(-14deg) scale(1.12); }
.brand b { color: var(--ink); font-weight: 700; }
.nav-links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 800; font-size: .98rem; color: var(--ink-night); text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--lilac); color: var(--ink); }
.nav .btn { margin-left: 6px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.2rem; }
  .nav .btn { padding: 0 14px; }
}

.progress {
  position: fixed; inset: 0 0 auto; height: 4px; z-index: 70;
  background: linear-gradient(90deg, var(--ink), var(--blush), var(--sun));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(120px, 13vw, 210px);
  background: var(--hero-bg);
  color: #fff;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero h1 {
  font: 700 clamp(3.2rem, 1.1rem + 7.2vw, 7.6rem)/.9 var(--display);
  letter-spacing: -.03em;
  margin: 0 0 .32em;
  text-shadow: 0 .055em 0 var(--ink-deep), 0 .14em .35em rgb(21 11 61 / .28);
}
.hero h1 .line { display: block; }
.hero h1 .eats { color: var(--sun); display: inline-block; }
.hero h1 .typos { position: relative; display: inline-block; }
.hero h1 .typos svg {
  position: absolute; left: 2%; right: 4%; bottom: -.08em; width: 94%; height: .22em;
  overflow: visible; color: var(--cherry);
}
.hero h1 .typos path { stroke-dasharray: 420; stroke-dashoffset: 0; }
.hero-sub {
  font-size: clamp(1.12rem, .95rem + .7vw, 1.5rem);
  line-height: 1.45;
  font-weight: 700;
  max-width: 33ch;
  margin: 0 0 1.5em;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-meta li {
  font: 800 .88rem/1 var(--body);
  padding: 9px 13px; border-radius: 999px;
  background: rgb(21 11 61 / .2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}

.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-deco .blob { position: absolute; color: #fff; opacity: .1; }
.hero-deco .b1 { width: 46vw; max-width: 640px; left: -14vw; top: 12%; animation: drift 18s ease-in-out infinite alternate; }
.hero-deco .b2 { width: 30vw; max-width: 420px; right: -8vw; bottom: 8%; opacity: .08; animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-deco .b3 { width: 16vw; max-width: 220px; left: 46%; top: 6%; color: var(--ink-deep); opacity: .25; animation: drift 14s ease-in-out infinite alternate; }
.hero-deco .spark { position: absolute; color: var(--sun); animation: twinkle 2.6s ease-in-out infinite; }
.hero-deco .s1 { width: 30px; left: 6%; top: 22%; }
.hero-deco .s2 { width: 18px; left: 44%; top: 70%; animation-delay: .8s; color: #fff; }
.hero-deco .s3 { width: 24px; right: 7%; top: 18%; animation-delay: 1.4s; }
.hero-deco .s4 { width: 14px; right: 40%; top: 14%; animation-delay: .4s; color: var(--blush); }
.hero-deco .drop { position: absolute; border-radius: 50%; background: var(--ink-deep); opacity: .35; }
.hero-deco .d1 { width: 14px; height: 14px; left: 38%; top: 30%; }
.hero-deco .d2 { width: 8px; height: 8px; left: 12%; top: 78%; }
.hero-deco .d3 { width: 10px; height: 10px; right: 30%; bottom: 22%; }

.drips {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  width: 100%; height: clamp(90px, 9.7vw, 200px);
  color: var(--cream); pointer-events: none;
}

/* stage: Hammy + live demo */
.stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.boop {
  position: relative; z-index: 3; display: block;
  width: min(74%, 380px); margin: 0 auto -16%;
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 40%;
  -webkit-tap-highlight-color: transparent;
}
.boop .float { display: block; animation: float 4.8s ease-in-out infinite; }
.boop .breathe { display: block; animation: breathe 2.4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.boop .tilt { display: block; rotate: var(--tilt, 0deg); transition: rotate .5s var(--spring); }
.boop img { width: 100%; filter: var(--sticker-shadow) drop-shadow(0 24px 30px rgb(21 11 61 / .3)); }
.say {
  position: absolute; z-index: 4; left: -4%; top: 4%;
  max-width: 13.5em;
  background: #fff; color: var(--ink-night);
  font: 700 1rem/1.25 var(--display);
  padding: 10px 14px; border-radius: 18px;
  box-shadow: 0 10px 24px -10px rgb(21 11 61 / .5);
  rotate: -6deg;
  pointer-events: none;
}
.say::after {
  content: ""; position: absolute; right: 18px; bottom: -9px;
  border: 10px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.say.pop { animation: pop .45s var(--spring); }

.demo-wrap { position: relative; z-index: 2; rotate: -1.5deg; }
.demo {
  margin: 0;
  background: #fff; color: var(--text);
  border-radius: var(--r-card);
  padding: 16px 18px 14px;
  box-shadow: 0 34px 60px -24px rgb(21 11 61 / .6), 0 0 0 1px rgb(107 78 255 / .1);
}
.demo-top {
  display: flex; align-items: center; gap: 8px;
  padding: 0 44px 12px 0;
  border-bottom: 2px dashed rgb(107 78 255 / .16);
  font: 800 .85rem/1 var(--body); color: var(--text-2);
}
.demo-top .dots { display: flex; gap: 5px; }
.demo-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.demo-top .dots i:nth-child(2) { background: #FEBC2E; }
.demo-top .dots i:nth-child(3) { background: #28C840; }
.demo-top .to { margin-left: 6px; }
.demo-body { position: relative; }
.demo-text {
  position: relative;
  font: 700 clamp(1.15rem, 1rem + .55vw, 1.42rem)/1.6 var(--body);
  margin: 16px 0 14px;
  min-height: 4.8em;
}
.demo-text .t { position: relative; z-index: 1; border-radius: 6px; padding: 0 .06em; transition: background-color .3s, color .3s; }
.typo, .demo-text .t.typo {
  text-decoration: underline wavy var(--cherry);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}
.fixed, .demo-text .t.fixed { background: rgb(34 201 142 / .22); font-weight: 900; }
.hopper {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 46px; height: 46px;
  translate: var(--x, 0) var(--y, 0);
  opacity: 0; scale: .4;
  transition: translate .38s var(--spring), opacity .2s, scale .3s var(--spring);
  pointer-events: none;
}
.hopper.on { opacity: 1; scale: 1; }
.hopper img { width: 100%; filter: drop-shadow(0 6px 8px rgb(58 34 184 / .35)); }
.demo-foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 2px dashed rgb(107 78 255 / .16);
  font: 800 .92rem/1.2 var(--body); color: var(--text-2);
}
.demo-foot img { width: 34px; height: 34px; }
.demo-status { flex: 1; min-width: 0; }
.badge {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px;
  background: var(--cherry); color: #fff;
  font: 900 .95rem/30px var(--body); text-align: center;
  transition: background .3s;
}
.badge.zero { background: var(--mint); }
.badge.bump { animation: pop .35s var(--spring); }
.demo-toast {
  position: absolute; left: 50%; bottom: -26px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--ink-night); color: #fff;
  font: 700 1.05rem/1 var(--display); white-space: nowrap;
  box-shadow: 0 14px 26px -12px rgb(21 11 61 / .7);
  translate: -50% 0; scale: 0; opacity: 0;
  transition: scale .45s var(--spring), opacity .2s;
}
.demo-toast img { width: 40px; height: 40px; }
.demo-toast.show { scale: 1; opacity: 1; }
.demo-pause {
  position: absolute; right: 12px; top: 10px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--lilac); color: var(--ink); cursor: pointer;
  transition: background .2s, transform .2s var(--spring);
}
.demo-pause:hover { background: #E5D8FF; transform: scale(1.08); }
.demo-pause[hidden] { display: none; }
.demo-pause svg { width: 14px; height: 14px; }
.demo-pause .i-play { display: none; }
.demo-pause[aria-pressed="true"] .i-play { display: block; }
.demo-pause[aria-pressed="true"] .i-pause { display: none; }

.splat { position: absolute; z-index: 0; color: var(--ink); pointer-events: none; translate: -50% -50%; opacity: 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
  .stage { margin-top: 8px; }
}
@media (max-width: 520px) {
  .hero .cta-row .btn { flex: 1 1 100%; justify-content: flex-start; padding-left: 28px; }
  .boop { width: 70%; }
  .say { font-size: .9rem; left: -2%; top: 0; max-width: 11em; }
  .demo-toast { font-size: .95rem; }
}

/* ---------- Tapes (marquee) ---------- */

.tapes {
  position: relative; display: grid;
  padding-block: clamp(36px, 6vw, 90px);
  overflow: clip;
}
.tape {
  grid-area: 1 / 1; align-self: center;
  width: 112vw; margin-left: -6vw;
  padding: 16px 0;
  overflow: hidden;
}
.tape--night { background: var(--ink-night); color: #fff; rotate: -3.5deg; z-index: 2; box-shadow: 0 18px 40px -18px rgb(21 11 61 / .6); }
.tape--sun { background: var(--sun); color: var(--ink-night); rotate: 2.5deg; z-index: 1; }
.tape-track {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px);
  width: max-content; margin: 0; padding: 0; list-style: none;
  font: 700 clamp(1.6rem, 1rem + 2.6vw, 3.1rem)/1 var(--display);
  letter-spacing: -.01em;
  animation: marquee 34s linear infinite;
}
.tape--sun .tape-track { animation-direction: reverse; animation-duration: 40s; }
.tapes:hover .tape-track { animation-play-state: paused; }
.tape-track .star { color: var(--sun); font-size: .8em; }
.tape--sun .tape-track .star { color: var(--cherry); }
.tape-track img { width: 1.25em; height: 1.25em; }

/* ---------- Manifesto ---------- */

.manifesto-grid {
  display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px); align-items: start;
}
.manifesto .sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
.manifesto .sticky img { width: 100%; rotate: -5deg; filter: var(--sticker-shadow); }
.manifesto-text {
  font: 600 clamp(1.9rem, 1rem + 3.6vw, 4.1rem)/1.1 var(--display);
  letter-spacing: -.02em;
  color: var(--ink-night);
  margin: 0;
}
.manifesto-text .w { opacity: .14; transition: opacity .35s var(--out); }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .hl-ink { color: var(--ink); }
.manifesto-text .hl-cherry { color: var(--cherry); }
.manifesto-text .hl-mint { color: var(--mint-ink); }
.manifesto-text .hl-fluff { color: #C9661A; }
@media (max-width: 760px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto .sticky { position: static; width: 150px; }
}

/* ---------- Everywhere (devices) ---------- */

.devices {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(36px, 5vw, 64px);
}
.device-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(22px, 3vw, 38px);
}
.device-card > * { flex: none; }
.device-card h3 { padding-right: clamp(64px, 9vw, 110px); }
.device-card .tag { align-self: flex-start; }
.device-card h3 { font: 700 clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem)/1 var(--display); letter-spacing: -.02em; margin-bottom: .35em; }
.device-card > p { font-weight: 600; max-width: 36ch; }
.device-card--mac { background: var(--lilac); }
.device-card--mac > p { color: var(--text-body); }
.device-card--ios { background: var(--ink-night); color: #fff; }
.device-card--ios > p { color: #D6CCF5; }
.device-card .tag {
  display: inline-block; margin-bottom: 14px;
  font: 900 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.device-card--mac .tag { background: #fff; color: var(--ink); }
.device-card--ios .tag { background: rgb(255 255 255 / .1); color: var(--lavender); }
.device-card .corner {
  position: absolute; right: -12px; top: -42px; width: clamp(104px, 11vw, 150px);
  rotate: 10deg; filter: var(--sticker-shadow);
  animation: float 5s ease-in-out infinite;
}
.device-card--ios .corner { rotate: -8deg; animation-delay: -2.4s; }

.mac {
  flex: 1 1 auto !important; display: flex; flex-direction: column;
  margin-top: 24px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 34px 60px -30px rgb(21 11 61 / .5), 0 0 0 1px rgb(21 11 61 / .08);
}
.mac-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: linear-gradient(#FAF8FE, #F0ECF8);
  border-bottom: 1px solid #E6E0F2;
  font: 800 .8rem/1 var(--body); color: #7D769B;
}
.mac-bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mac-bar i:nth-child(2) { background: #FEBC2E; }
.mac-bar i:nth-child(3) { background: #28C840; }
.mac-bar span { flex: 1; text-align: center; padding-right: 50px; }
.mac-row { padding: 9px 18px; border-bottom: 1px solid #F1EDF8; font-size: .9rem; color: #8D86A8; font-weight: 700; }
.mac-row b { color: var(--text); font-weight: 800; }
.mac-body {
  position: relative; flex: 1;
  padding: 18px 18px 22px; min-height: 9.2em;
  font: 700 clamp(1rem, .95rem + .3vw, 1.15rem)/1.65 var(--body);
}
.caret {
  display: inline-block; width: 2px; height: 1.2em; margin-left: 1px;
  background: var(--ink); vertical-align: -.22em;
  animation: blink 1s steps(1) infinite;
}
.ovl {
  display: inline-block; width: 36px; height: 36px; margin-left: 6px;
  vertical-align: -.6em;
  transition: scale .35s var(--spring);
}
.ovl img { width: 100%; height: 100%; }
.ovl.bump { animation: squish .5s var(--spring); }
.sq { text-decoration: underline wavy var(--cherry); text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.fixd { background: rgb(34 201 142 / .22); border-radius: 6px; font-weight: 900; padding: 0 .05em; }
.mac-pop {
  position: absolute; z-index: 3; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px; border-radius: 14px;
  background: #fff; white-space: nowrap;
  font: 800 .88rem/1 var(--body);
  box-shadow: 0 14px 30px -10px rgb(21 11 61 / .45), 0 0 0 1px rgb(107 78 255 / .14);
  opacity: 0; scale: .7; transform-origin: 20% 100%;
  transition: opacity .2s, scale .35s var(--spring);
  pointer-events: none;
}
.mac-pop.show { opacity: 1; scale: 1; }
.mac-pop s { color: var(--cherry); }
.mac-pop .arrow { color: var(--text-2); }
.mac-pop b { color: var(--mint-ink); }
.mac-pop .fix {
  background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 12px;
  box-shadow: 0 3px 0 var(--ink-deep); transition: transform .1s, box-shadow .1s;
}
.mac-pop.press .fix { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-deep); }
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.moods li { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 18px; background: rgb(255 255 255 / .7); font: 800 .78rem/1.1 var(--body); color: var(--text-body); text-align: center; }
.moods img { width: 52px; height: 52px; transition: transform .4s var(--spring); }
.moods li:hover img { transform: scale(1.15) rotate(-6deg); }
.mac-greet { display: block; margin-bottom: .6em; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.apps li {
  background: #fff; color: var(--ink-night);
  font: 800 .88rem/1 var(--body); padding: 9px 13px; border-radius: 999px;
  box-shadow: 0 2px 0 rgb(107 78 255 / .15);
}

.phone {
  position: relative;
  width: min(100%, 296px); aspect-ratio: 296 / 600;
  margin: 26px auto 0;
  padding: 10px;
  background: #0A0520;
  border-radius: 48px;
  box-shadow: 0 0 0 2px #3B2F70, 0 0 0 7px #1F1547, 0 50px 80px -30px rgb(0 0 0 / .8);
}
.screen {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: #F7F4FF; color: var(--text);
  border-radius: 38px; overflow: hidden;
}
.island { position: absolute; z-index: 2; top: 11px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 20px; background: #000; }
.chat-head {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 44px 0 8px; font: 800 .7rem/1 var(--body); color: var(--text-2);
  border-bottom: 1px solid #ECE6F8; background: #FBFAFF;
}
.chat-head .av { width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: #fff; display: grid; place-items: center; font: 700 .9rem var(--display); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 12px 6px; font: 700 .78rem/1.3 var(--body); }
.msg { max-width: 80%; padding: 7px 11px; border-radius: 17px; }
.msg.them { align-self: flex-start; background: #E9E3F8; border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.composer {
  margin: 4px 10px 8px; padding: 8px 12px;
  background: #fff; border: 1px solid #E0D8F3; border-radius: 18px;
  font: 700 .8rem/1.35 var(--body);
}
.composer .caret { height: 1.1em; }
.kb { background: #D5D1DF; padding: 6px 3px 12px; }
.kb-bar { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; }
.kb-ham {
  position: relative; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; padding: 2px;
  box-shadow: 0 1px 0 rgb(0 0 0 / .18);
}
.kb-ham img { width: 100%; height: 100%; border-radius: 50%; }
.kb-badge {
  position: absolute; top: -5px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--cherry); color: #fff;
  border: 2px solid #D5D1DF;
  font: 900 .62rem/15px var(--body); text-align: center;
  transition: background .3s;
}
.kb-badge.ok { background: var(--mint); }
.kb-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: #fff; font: 800 .78rem/1 var(--body);
  box-shadow: 0 1px 0 rgb(0 0 0 / .15);
  transition: transform .12s, background .3s;
}
.kb-chip s { color: var(--cherry); }
.kb-chip b { color: var(--mint-ink); }
.kb-chip .done-label { display: none; color: var(--mint-ink); }
.kb-chip.done .fix-label { display: none; }
.kb-chip.done .done-label { display: inline; }
.kb-chip.press { transform: scale(.92); background: #EFE9FF; }
.tap {
  position: absolute; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(255 255 255 / .55); border: 2px solid rgb(107 78 255 / .6);
  translate: -50% -50%; scale: 0; opacity: 0; pointer-events: none;
}
.tap.go { animation: tap .6s var(--out); }
.keys { display: grid; gap: 8px; }
.krow { display: flex; justify-content: center; gap: 4px; padding: 0 2px; }
.k {
  flex: 1 1 0; max-width: 25px; height: 36px;
  display: grid; place-items: center;
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 0 rgb(0 0 0 / .28);
  font: 500 .92rem/1 system-ui, sans-serif; color: #111;
}
.k.mod { max-width: 36px; flex-basis: 36px; background: #ACA8B8; font-size: .75rem; }
.k.space { max-width: none; flex: 5; font-size: .75rem; }
.k.ret { max-width: none; flex: 2; background: #ACA8B8; font-size: .72rem; }
.krow.mid { padding: 0 14px; }

@media (max-width: 960px) { .devices { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps: Paste. Tap. Flawless. ---------- */

.words-tags { display: flex; flex-wrap: wrap; gap: .12em .22em; justify-content: center; }
.wtag {
  display: inline-block; padding: .04em .26em .1em; border-radius: .26em;
  box-shadow: 0 .07em 0 rgb(21 11 61 / .9);
}
.wtag.a { background: var(--ink); color: #fff; rotate: -3deg; }
.wtag.b { background: var(--fluff); color: var(--ink-night); rotate: 2deg; }
.wtag.c { background: var(--mint); color: var(--ink-night); rotate: -1.5deg; }
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(80px, 9vw, 120px);
  padding: 0; list-style: none;
}
.step {
  position: relative;
  background: var(--card); border-radius: var(--r-card);
  padding: 80px 24px 26px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgb(107 78 255 / .07);
  rotate: var(--tilt, 0deg);
}
.step:nth-child(1) { --tilt: -1.6deg; }
.step:nth-child(2) { --tilt: 1.2deg; }
.step:nth-child(3) { --tilt: -.8deg; }
.step > img {
  position: absolute; top: -78px; left: 10px;
  width: 150px; rotate: -6deg; filter: var(--sticker-shadow);
}
.step:nth-child(2) > img { rotate: 5deg; }
.step-num {
  position: absolute; top: 14px; right: 22px;
  font: 700 4.4rem/1 var(--display); color: var(--lilac);
  -webkit-text-stroke: 2px rgb(107 78 255 / .35);
}
.step h3 { font: 700 2rem/1 var(--display); letter-spacing: -.02em; margin-bottom: .3em; }
.step p { color: var(--text-body); font-weight: 600; margin-bottom: 18px; }
.mini {
  border-radius: var(--r-input); background: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgb(107 78 255 / .14);
  padding: 14px 16px; min-height: 108px;
  font: 700 .98rem/1.55 var(--body); color: var(--text);
}
.mini .paste-chip {
  display: inline-block; margin-bottom: 8px;
  background: var(--ink-night); color: #fff; border-radius: 10px;
  font: 800 .75rem/1 var(--body); padding: 7px 10px;
}
.mini--tap { display: grid; place-items: center; position: relative; }
.mini--tap .btn { pointer-events: none; }
.mini--tap .ring {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; border: 3px solid var(--ink); opacity: 0;
}
.step.in .mini--tap .ring { animation: ring 2.2s var(--out) .6s infinite; }
.mini--done { position: relative; }
.mini--done .copy {
  position: absolute; right: 10px; bottom: 10px;
  background: var(--mint); color: var(--ink-night);
  font: 900 .75rem/1 var(--body); padding: 7px 11px; border-radius: 999px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 100px; max-width: 520px; margin-inline: auto; }
}

/* ---------- Tone switcher ---------- */

.panel-dark {
  position: relative; isolation: isolate; overflow: clip;
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  border-radius: clamp(32px, 4vw, 56px);
  background:
    radial-gradient(50% 60% at 90% 10%, rgb(107 78 255 / .55), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgb(255 143 177 / .22), transparent 70%),
    var(--ink-night);
  color: #fff;
  padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 72px);
}
.panel-dark .h2 { color: #fff; }
.panel-dark .lede { color: #CFC6EE; }
.panel-dark .spark { position: absolute; color: var(--sun); z-index: -1; animation: twinkle 3s ease-in-out infinite; }
.tone-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.draft {
  margin: 28px 0 22px; padding: 16px 18px;
  border-radius: var(--r-input);
  background: rgb(255 255 255 / .06);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .12);
  font-weight: 700; color: #E9E2FF;
}
.draft small {
  display: block; margin-bottom: 6px;
  font: 900 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lavender);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 6px 18px 6px 6px;
  border-radius: 999px; border: 2px solid rgb(255 255 255 / .16);
  background: rgb(255 255 255 / .06); color: #fff;
  font: 800 1.02rem/1 var(--body);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring), box-shadow .25s;
}
.chip img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); border-color: rgb(255 255 255 / .4); }
.chip[aria-pressed="true"] {
  background: #fff; color: var(--ink-night); border-color: #fff;
  box-shadow: 0 5px 0 var(--lavender);
}
.tone-stage { position: relative; display: grid; justify-items: center; }
.tone-ham { width: clamp(180px, 22vw, 270px); filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35)); }
.tone-ham img { width: 100%; }
.tone-ham.squish { animation: squish .55s var(--spring); }
.tone-out {
  position: relative; width: 100%;
  margin-top: -14px;
  background: #fff; color: var(--ink-night);
  border-radius: var(--r-card);
  padding: 22px 24px;
  font: 600 clamp(1.25rem, 1rem + .9vw, 1.7rem)/1.3 var(--display);
  min-height: 5.6em;
  box-shadow: 0 30px 50px -24px rgb(0 0 0 / .6);
}
.tone-out::before {
  content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0;
  border: 13px solid transparent; border-bottom-color: #fff; border-top: 0;
}
.tone-out .lbl {
  display: block; margin-bottom: 8px;
  font: 900 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.tone-out .w { display: inline-block; animation: wordIn .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 28ms); }
@media (max-width: 860px) { .tone-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Typo game ---------- */

.game {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 22vw, 280px);
  gap: clamp(20px, 4vw, 48px); align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: clamp(32px, 4vw, 48px);
  background-color: var(--lilac);
  background-image: radial-gradient(rgb(107 78 255 / .14) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.game-text {
  position: relative;
  font: 600 clamp(1.35rem, 1rem + 1.4vw, 2.1rem)/1.6 var(--display);
  color: var(--ink-night); margin: 0;
}
.typo-btn {
  position: relative; z-index: 1;
  font: inherit; color: inherit; background: none; border: 0; padding: 0 .08em; margin: 0;
  border-radius: 8px; cursor: pointer;
  text-decoration: underline wavy var(--cherry);
  text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-skip-ink: none;
  transition: background .2s, transform .3s var(--spring);
}
.nowrap { white-space: nowrap; }
.typo-btn:hover { background: rgb(255 79 110 / .12); transform: rotate(-2deg) scale(1.05); }
.typo-btn[aria-disabled="true"] { text-decoration: none; background: rgb(34 201 142 / .28); cursor: default; transform: none; }
.game-side { display: grid; justify-items: center; text-align: center; gap: 10px; }
.game-side .ham { width: 100%; filter: var(--sticker-shadow); }
.game-side .ham.squish { animation: squish .55s var(--spring); }
.meter { display: flex; gap: 6px; justify-content: center; }
.meter i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgb(107 78 255 / .3); transition: background .3s, scale .3s var(--spring); }
.meter i.on { background: var(--mint); box-shadow: none; scale: 1.2; }
.game-count { font: 800 1rem/1.2 var(--body); color: var(--text-body); margin: 0; }
.game-win {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 18px 20px; border-radius: var(--r-input);
  background: #fff; box-shadow: var(--shadow-card);
}
.game-win[hidden] { display: none; }
.game-win p { margin: 0; flex: 1 1 260px; font: 700 1.35rem/1.2 var(--display); }
@media (max-width: 720px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game-side { grid-row: 1; grid-template-columns: 110px 1fr; justify-items: start; text-align: left; align-items: center; }
  .game-side .ham { grid-row: span 2; }
  .game-side .meter { justify-content: flex-start; }
}

/* ---------- Sticker wall ---------- */

.wall {
  position: relative; overflow: clip;
  --cols: 5;
  --gap: clamp(4px, 1.2vw, 18px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--gap);
  margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(18px, 3vw, 40px);
  list-style: none;
  border-radius: clamp(32px, 4vw, 48px);
  background-color: #fff;
  background-image: radial-gradient(rgb(107 78 255 / .1) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgb(107 78 255 / .08);
}
.wall > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 190px; }
@media (max-width: 700px) { .wall { --cols: 4; } }
@media (max-width: 480px) { .wall { --cols: 3; } }
.sticker {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: grab;
  rotate: var(--rot, 0deg);
  transition: rotate .45s var(--spring), scale .45s var(--spring);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wall li:nth-child(4n+1) .sticker { --rot: -5deg; }
.wall li:nth-child(4n+2) .sticker { --rot: 4deg; }
.wall li:nth-child(4n+3) .sticker { --rot: -2deg; }
.wall li:nth-child(4n) .sticker { --rot: 6deg; }
.wall li:nth-child(5n) .sticker { --rot: -7deg; }
.sticker .st-in { display: block; }
.sticker img { width: 100%; pointer-events: none; -webkit-user-drag: none; user-select: none; filter: drop-shadow(0 8px 12px rgb(107 78 255 / .22)); }
.sticker:hover { scale: 1.08; z-index: 5; }
.sticker:hover .st-in { animation: wiggle .6s ease-in-out; }
.sticker.dragging { cursor: grabbing; scale: 1.14; rotate: 0deg; z-index: 20; }
.sticker.dragging img { filter: drop-shadow(0 22px 22px rgb(21 11 61 / .3)); }
.sticker .st-in.squish { animation: squish .55s var(--spring); }
.sticker .cap {
  position: absolute; left: 50%; bottom: 2%; z-index: 2;
  translate: -50% 0; scale: .6; opacity: 0;
  background: var(--ink-night); color: #fff; white-space: nowrap;
  font: 700 .88rem/1 var(--display); padding: 7px 11px; border-radius: 999px;
  transition: scale .3s var(--spring), opacity .2s;
  pointer-events: none;
}
.sticker:hover .cap, .sticker:focus-visible .cap, .sticker.talk .cap { scale: 1; opacity: 1; }
.wall-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--text-2); font-weight: 700; }
.wall-foot p { margin: 0; }

/* ---------- Pricing ---------- */

.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center; align-items: center;
  gap: clamp(24px, 3vw, 36px);
  margin-top: clamp(64px, 7vw, 96px);
}
.plan {
  position: relative;
  border-radius: 34px;
  padding: clamp(26px, 3vw, 36px);
  background: var(--card);
  box-shadow: var(--shadow-card), 0 0 0 1px rgb(107 78 255 / .08);
}
.plan h3 { font: 700 1.5rem/1 var(--display); margin-bottom: 18px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; font: 700 clamp(3rem, 2.2rem + 2.6vw, 4.3rem)/1 var(--display); letter-spacing: -.03em; }
.price .per { font: 800 1.1rem/1 var(--body); letter-spacing: 0; opacity: .75; }
.plan .note { font-weight: 800; margin: 10px 0 0; color: var(--text-2); }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 32px; font-weight: 700; color: var(--text-body); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("/assets/check.svg") center / 14px no-repeat;
}
.plan .btn { width: 100%; }
.plan--best {
  background:
    radial-gradient(70% 60% at 100% 0%, rgb(207 161 252 / .6), transparent 70%),
    linear-gradient(155deg, #7656FF 0%, #5442B9 100%);
  color: #fff;
  scale: 1.04;
  box-shadow: 0 40px 70px -30px rgb(58 34 184 / .75), 0 0 0 4px var(--sun);
}
.plan--best li, .plan--best .note { color: #F1EBFF; }
.plan--best .note b { color: var(--sun); }
.ribbon {
  position: absolute; top: -18px; left: 26px;
  background: var(--sun); color: var(--ink-night);
  font: 900 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px;
  box-shadow: 0 4px 0 #D9A21A;
  rotate: -4deg;
}
.plan-crown {
  position: absolute; top: -104px; right: clamp(-26px, -2vw, -6px); width: 150px;
  rotate: 9deg; filter: var(--sticker-shadow);
  animation: float 4.4s ease-in-out infinite;
}
.billing {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none;
}
.billing li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 0 rgb(107 78 255 / .12);
  font-weight: 700; color: var(--text-body); font-size: .95rem;
}
.billing svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--lilac); color: var(--ink); flex: none; }
.fine { text-align: center; color: var(--text-2); font-weight: 600; font-size: .95rem; margin: 18px auto 0; max-width: 60ch; }
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; gap: 72px; }
  .plan--best { scale: 1; order: -1; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: clamp(32px, 5vw, 56px) auto 0; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border-radius: 24px;
  box-shadow: 0 1px 0 rgb(107 78 255 / .06), 0 12px 30px -20px rgb(58 34 184 / .3), 0 0 0 1px rgb(107 78 255 / .07);
  overflow: hidden;
  transition: box-shadow .3s;
}
.faq details[open] { box-shadow: 0 20px 40px -24px rgb(58 34 184 / .45), 0 0 0 2px var(--ink); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 70px 20px 24px;
  font: 700 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.25 var(--display); color: var(--ink-night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 14px no-repeat,
    var(--lilac);
  transition: rotate .35s var(--spring), background-color .3s;
}
.faq details[open] summary::after { rotate: 135deg; }
.faq .ans { padding: 0 24px 22px; color: var(--text-body); font-weight: 600; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Final CTA ---------- */

.final {
  position: relative; isolation: isolate; overflow: clip;
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  border-radius: clamp(32px, 5vw, 64px);
  background: var(--hero-bg);
  color: #fff; text-align: center;
  padding: clamp(40px, 6vw, 84px) clamp(20px, 4vw, 48px) clamp(44px, 6vw, 84px);
}
.final .h2 { color: #fff; text-shadow: 0 .055em 0 var(--ink-deep); }
.final .lede { color: #fff; margin: 1rem auto 30px; }
.final .cta-row { justify-content: center; }
.final .boop { width: clamp(170px, 22vw, 260px); margin: 0 auto 6px; }
.final .spark { position: absolute; color: var(--sun); z-index: -1; animation: twinkle 2.8s ease-in-out infinite; }
.share-line { margin: 26px 0 0; font-weight: 800; }
.linklike {
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: inherit; font: 800 1rem/1.3 var(--body);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  border-radius: 8px;
}

/* ---------- Footer ---------- */

.foot {
  position: relative;
  flex: none;
  /* Clipping even one axis hides the overflowing mascot in WebKit. */
  overflow: visible;
  margin-top: clamp(130px, 14vw, 190px);
  background: var(--ink-night); color: #CFC6EE;
  border-radius: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px) 0 0;
  padding: clamp(52px, 6vw, 84px) 0 calc(36px + env(safe-area-inset-bottom, 0px));
}
.foot-peek {
  --w: clamp(150px, 16vw, 220px);
  position: absolute; right: clamp(20px, 10vw, 160px); bottom: 100%;
  width: var(--w); margin-bottom: calc(var(--w) * -.155);
  filter: drop-shadow(0 -6px 14px rgb(21 11 61 / .2));
}
.foot-peek img { width: 100%; transform-origin: 50% 100%; transition: translate .7s var(--spring); }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.foot .brand { color: #fff; }
.foot .brand b { color: var(--lavender); }
.foot-mail { display: inline-block; margin-top: 14px; padding: 9px 14px; border-radius: 999px; background: rgb(255 255 255 / .08); font-size: .95rem; }
.foot-tag { margin: 14px 0 0; font: 600 1.15rem/1.3 var(--display); color: #fff; max-width: 24ch; }
.foot h2 { font: 900 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #fff; text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--sun); text-decoration: underline; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .92rem; font-weight: 700; color: #A99FCF;
}
.foot-bottom p { margin: 0; }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- Legal / docs ---------- */

.doc-hero {
  position: relative; overflow: clip;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(28px, 5vw, 56px)) 0 clamp(80px, 9vw, 120px);
  background:
    radial-gradient(50% 80% at 100% 0%, rgb(207 161 252 / .55), transparent 70%),
    var(--lilac);
}
.doc-hero .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.doc-hero h1 { font: 700 clamp(2.6rem, 1.5rem + 4.4vw, 5rem)/.95 var(--display); letter-spacing: -.03em; color: var(--ink-night); }
.doc-hero .meta { margin: 14px 0 0; font-weight: 800; color: var(--text-2); }
.doc-hero img { flex: 0 0 clamp(104px, 17vw, 210px); width: clamp(104px, 17vw, 210px); rotate: 6deg; filter: var(--sticker-shadow); margin-bottom: -24px; }
.doc {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), 820px);
  margin: clamp(-64px, -6vw, -40px) auto 0;
  background: var(--card); border-radius: 32px;
  padding: clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgb(107 78 255 / .07);
  color: var(--text-body);
  font-size: 1.05rem; line-height: 1.7;
}
.doc h2 {
  display: flex; align-items: center; gap: 12px;
  font: 700 clamp(1.4rem, 1.2rem + .6vw, 1.75rem)/1.2 var(--display);
  color: var(--ink-night);
  margin: 2.2em 0 .6em;
}
.doc h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 9px -7px 0 -3px var(--blush); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 700 1.2rem/1.3 var(--display); color: var(--ink-night); margin: 1.6em 0 .4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--ink); }
.doc strong { color: var(--ink-night); }
.doc a { font-weight: 800; }
.tldr {
  background: var(--lilac); border-radius: 24px;
  padding: 22px 24px; margin-bottom: 8px;
}
.tldr h2 { margin-top: 0; }
.tldr ul { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: 8px 13px; border-radius: 999px;
  background: var(--cream); box-shadow: inset 0 0 0 1.5px rgb(107 78 255 / .18);
  font: 800 .88rem/1 var(--body); text-decoration: none; color: var(--ink-night);
}
.toc a:hover { background: var(--lilac); color: var(--ink); }
.path {
  display: inline; padding: 2px 8px; border-radius: 8px;
  background: var(--lilac); color: var(--ink-night);
  font-weight: 800; white-space: normal;
}
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px; margin: 0 0 8px; padding: 0; list-style: none;
}
.cards a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 16px; border-radius: 22px;
  background: var(--cream); color: var(--ink-night); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgb(107 78 255 / .14);
  font: 700 1.08rem/1.2 var(--display);
  transition: transform .3s var(--spring), box-shadow .2s;
}
.cards a:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: inset 0 0 0 2px var(--ink); }
.cards img { width: 54px; height: 54px; flex: none; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: .8em; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: .05em;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font: 700 1rem/1 var(--display);
  box-shadow: 0 3px 0 var(--ink-deep);
}
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream); border-radius: 22px; padding: 16px 18px; margin: 1em 0;
  box-shadow: inset 0 0 0 1.5px rgb(242 140 58 / .35);
}
.callout img { width: 56px; flex: none; }
.callout p { margin: 0; }
@media (max-width: 560px) {
  .doc-hero img { margin-bottom: -12px; }
}

/* ---------- 404 ---------- */

.lost {
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center; text-align: center;
  padding: 24px var(--gutter) 80px;
}
.lost img { width: clamp(220px, 34vw, 340px); margin: 0 auto; filter: var(--sticker-shadow); }
.lost h1 { font: 700 clamp(2.6rem, 1.6rem + 4vw, 4.6rem)/.95 var(--display); letter-spacing: -.03em; margin: 8px 0 14px; }
.lost p { font-weight: 700; color: var(--text-2); font-size: 1.15rem; max-width: 34ch; margin: 0 auto 28px; }

/* ---------- FX ---------- */

.fx-layer { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.fx-bit { position: fixed; width: 10px; height: 10px; border-radius: 2px; will-change: transform, opacity; }
.fx-bit.dot { border-radius: 50%; }
.fx-bit.star { width: 14px; height: 14px; border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

.squish, .boop .breathe.squish, .hopper.squish { animation: squish .55s var(--spring); }

/* ---------- Reveal ---------- */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    translate: 0 36px;
    scale: .97;
    transition: opacity .7s var(--out), translate .9s var(--spring), scale .9s var(--spring);
    transition-delay: var(--d, 0ms);
  }
  [data-reveal="pop"] { translate: 0 30px; scale: .6; rotate: -8deg; transition-property: opacity, translate, scale, rotate; }
  [data-reveal].in { opacity: 1; translate: 0 0; scale: 1; }
  [data-reveal="pop"].in { rotate: var(--tilt, 0deg); }
  .hero h1 .typos path { stroke-dashoffset: 420; animation: draw 1.1s var(--out) .5s forwards; }
  .hero h1 .eats { animation: jelly 1s var(--spring) .9s both; }
  .foot-peek img { translate: 0 60%; }
  .foot-peek.in img { translate: 0 0; }
}

/* ---------- Keyframes ---------- */

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes breathe { from { scale: 1; } to { scale: 1.03; } }
@keyframes squish { 0% { scale: 1 1; } 28% { scale: 1.1 .86; } 55% { scale: .95 1.06; } 78% { scale: 1.02 .98; } 100% { scale: 1 1; } }
@keyframes pop { 0% { scale: .6; } 100% { scale: 1; } }
@keyframes twinkle { 0%, 100% { scale: 1; opacity: 1; rotate: 0deg; } 50% { scale: .55; opacity: .5; rotate: 25deg; } }
@keyframes drift { from { translate: 0 0; rotate: 0deg; } to { translate: 4vw 3vw; rotate: 18deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes jelly { 0% { scale: 1; } 30% { scale: 1.18 .85; } 50% { scale: .9 1.1; } 70% { scale: 1.05 .96; } 100% { scale: 1; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -7deg; } 50% { rotate: 6deg; } 75% { rotate: -3deg; } }
@keyframes tap { 0% { scale: .3; opacity: 0; } 35% { scale: 1; opacity: 1; } 100% { scale: 1.5; opacity: 0; } }
@keyframes ring { 0% { scale: .4; opacity: 0; } 25% { opacity: 1; } 70%, 100% { scale: 1.5; opacity: 0; } }
@keyframes wordIn { from { opacity: 0; translate: 0 .4em; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .tape-track { animation: none !important; }
  .caret { animation: none !important; }
}

/* ---------- Decorative sparkle positions ---------- */
.panel-dark .spark { width: 28px; right: 7%; top: 9%; }
.panel-dark .spark.sp2 { width: 16px; right: 13%; top: 17%; color: var(--blush); animation-delay: .9s; }
.final .spark { width: 34px; left: 9%; top: 16%; }
.final .spark.sp2 { width: 20px; left: auto; right: 11%; top: 26%; color: #fff; animation-delay: .7s; }
.final .spark.sp3 { width: 16px; left: 18%; top: auto; bottom: 18%; color: var(--blush); animation-delay: 1.3s; }
.foot a { overflow-wrap: anywhere; }
.lost .boop { width: clamp(220px, 34vw, 340px); margin: 0 auto; }
.lost .cta-row { justify-content: center; }
@media (max-width: 480px) {
  .moods { gap: 4px; }
  .moods li { padding: 8px 2px 6px; font-size: .66rem; border-radius: 14px; }
  .moods img { width: 40px; height: 40px; }
}
.doc .toc, .doc .cards { padding: 0; }
.doc .toc li, .doc .cards li { margin: 0; }
.nav-links a[aria-current="page"] { background: var(--lilac); color: var(--ink); }
.foot a[aria-current="page"] { color: var(--sun); }
