@font-face {
  font-family: Bricolage;
  src: url("/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* Cashmew tokens from docs/design/tokens.json (Clean gallery light + warm Orange Dark) */
:root {
  color-scheme: light dark;
  --page: light-dark(#f7f7f4, #1a1411);
  --surface: light-dark(#ffffff, #241b15);
  --tray: light-dark(#efeee9, #241b15);
  --slip: light-dark(#fffdf9, #2b211a);
  --slip-line: light-dark(#e3d4c2, #463729);
  --line: light-dark(#e2e1db, #3a2d23);
  --ink: light-dark(#1c140e, #f6ece1);
  --muted: light-dark(#56584f, #c2ae9a);
  --pending: light-dark(#878982, #9a826b);
  --bar: light-dark(#1c140e, #34281f);
  --on-bar: light-dark(#fffaf4, #f6ece1);
  --on-bar-muted: #c2ae9a;
  --accent: light-dark(#ff8a3d, #ff9a52);
  --on-accent: #1c140e;
  --stamp: light-dark(#cc5f12, #f2a46a);
  --focus: light-dark(#2f5fa0, #8fb5f2);
  --slip-tint: light-dark(rgba(255, 138, 61, 0.16), rgba(255, 154, 82, 0.16));
  --slip-curl: light-dark(rgba(120, 90, 60, 0.06), rgba(0, 0, 0, 0.24));
  --slip-shadow: light-dark(
    drop-shadow(0 0.5px 0.7px rgba(23, 19, 15, 0.28)) drop-shadow(2px 10px 8px rgba(23, 19, 15, 0.14)),
    drop-shadow(0 0 0.8px rgba(246, 236, 225, 0.16)) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.50))
  );
  --mini-shadow: light-dark(
    drop-shadow(0 1px 1.2px rgba(23, 19, 15, 0.20)) drop-shadow(0 6px 10px rgba(23, 19, 15, 0.07)),
    drop-shadow(0 0 0.6px rgba(246, 236, 225, 0.12)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.36))
  );
  --bar-shadow: light-dark(
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10)
  );
  --bar-drop: light-dark(
    0 12px 26px rgba(23, 19, 15, 0.20),
    0 14px 30px rgba(0, 0, 0, 0.45)
  );
  --display: Bricolage, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --serif: Georgia, "Songti SC", "Songti TC", "Hiragino Mincho ProN", "AppleMyungjo", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --settle: cubic-bezier(.2, .75, .25, 1);
  --hero-cat: 128px;
  --bar-cat: 164px;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

:root[data-appearance=light] { color-scheme: light; }
:root[data-appearance=dark] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance]) { color-scheme: dark; }
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
body { overflow-wrap: break-word; }
:lang(ko) { word-break: keep-all; }
:lang(zh), :lang(ja), :lang(ko) { line-break: strict; }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; top: -90px; z-index: 10; padding: 12px 16px; background: var(--surface); border-radius: 0 0 12px 12px; }
.skip:focus { top: 0; }
.swatch-input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }

.wrap { width: min(1160px, 100%); margin: auto; padding-inline: clamp(20px, 4.5vw, 56px); }
.meta, .paper-label { font: 600 11px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--pending); }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand-mark {
  display: block;
  width: 136px;
  height: 24px;
  background: var(--ink);
  mask: url("/art/cashmew.svg") left center / contain no-repeat;
}

.preferences { display: flex; align-items: center; gap: 6px; }
select { min-height: 38px; border: 0; background: transparent; border-radius: 10px; font-size: 14px; }
select:focus:not(:focus-visible) { outline: none; }

/* Custom Cashmew Language Popover */
.language-menu { position: relative; }
.language-menu summary {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 11px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap; list-style: none; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .75; transition: transform .18s ease;
}
.language-menu[open] summary { background: var(--surface); color: var(--ink); }
.language-menu[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.language-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 144px; list-style: none; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: light-dark(0 12px 30px rgba(23, 19, 15, .12), 0 14px 32px rgba(0, 0, 0, .48));
}
.language-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px; padding: 0 11px; border-radius: 8px;
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: background .14s ease, color .14s ease;
}
.language-menu [aria-current="page"] { font-weight: 650; color: var(--ink); }
.language-menu [aria-current="page"]::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
footer .language-menu ul { top: auto; bottom: calc(100% + 6px); right: auto; left: 0; }

#appearance {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 0; border-radius: 999px; color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
#appearance[aria-pressed=true] { background: var(--surface); color: var(--ink); }
#appearance[aria-pressed=true] svg { transform: rotate(180deg); }
#appearance svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; transition: transform .2s ease; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 16px; margin-left: 4px;
  border-radius: 999px; background: var(--bar); color: var(--on-bar);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: var(--bar-shadow); transition: transform .15s ease, opacity .15s ease;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

@media (hover: hover) {
  :is(.language-menu summary, #appearance):hover {
    background: var(--surface); color: var(--ink);
  }
  .language-menu a:hover {
    background: var(--page); color: var(--ink);
  }
}

/* Headings */
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
html:not(:lang(en)) :is(h1, h2, h3) { text-wrap: auto; }
h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.06; letter-spacing: -.035em; margin: 20px 0 18px; }
h1 .headline-sub { display: block; color: var(--muted); font-weight: 600; margin-top: .08em; }
html:not(:lang(en)) h1 { font-size: clamp(36px, 4.3vw, 56px); line-height: 1.22; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.03em; }
html:not(:lang(en)) h2 { line-height: 1.24; letter-spacing: -.02em; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 5vw, 68px) 0 clamp(44px, 6vw, 76px);
}
.platform {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted);
}
.platform::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 34ch; color: var(--muted); text-wrap: pretty; }
.actions { margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--pending); }

/* Download CTA — Live & Coming Soon */
.download { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.store-badge {
  display: inline-flex; align-items: center; padding: 2px; border-radius: 10px;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: .92; }
.store-badge img { display: block; height: 46px; width: auto; }

.qr-card {
  display: none; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.qr-card .download-qr { display: block; width: 52px; height: 52px; border-radius: 8px; }
.qr-card span { font-size: 12px; font-weight: 500; color: var(--muted); max-width: 9ch; line-height: 1.3; }
@media (min-width: 860px) {
  .qr-card { display: inline-flex; }
}

.coming-soon { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--bar); color: var(--on-bar);
  font-size: 15px; font-weight: 600;
  box-shadow: var(--bar-shadow), var(--bar-drop);
}
.soon-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.25);
}
.soon-notify {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline;
  transition: color .15s ease;
}
.soon-notify:hover { color: var(--ink); }
.coming-soon.compact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
}

/* Hero Scene: Siri + Receipt + Animated Orange Cat */
.hero-visual { display: flex; justify-content: center; }
.scene { display: grid; justify-items: center; gap: 14px; width: min(100%, 356px); }
.spoken {
  width: min(100%, 326px); position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 14px;
  padding: 2px 4px;
}
.spoken small { grid-column: 1 / -1; font: 600 13px/1.35 var(--sans); color: var(--muted); }
.spoken q { font: italic 600 clamp(21px, 2vw, 28px)/1.2 var(--serif); letter-spacing: -.02em; }
html:not(:lang(en)) .spoken q { font-style: normal; font-family: var(--display); font-weight: 700; }
.spoken .voice-line { width: 52px; height: 22px; margin: 0; }
.voice-line { display: block; width: 42px; height: 18px; color: var(--stamp); fill: currentColor; }
.voice-line rect { transform-box: fill-box; transform-origin: center; }

.cast {
  width: min(100%, 326px);
  position: relative;
  isolation: isolate;
  padding-top: 76px;
  filter: var(--slip-shadow);
  transform: rotate(-2deg);
  transform-origin: 50% 80%;
  cursor: pointer;
}

/* Cat rig (shared by Hero & Stage) */
.cat-rig, .cat-paws { pointer-events: none; user-select: none; }
.cat-rig { position: absolute; overflow: visible; }
.cat-rig img, .cat-rig video, .cat-rig canvas {
  display: block; width: 100%; height: auto;
}
.cat-rig .cat-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.cat-rig.is-playing .cat-poster { opacity: 0; }
.cat-paws { position: absolute; height: auto; z-index: 2; }

/* Hero cat sits on top-right edge of receipt paper (below 4.3px top punch holes so belly line never peeks through) */
.hero-cat, .hero-paws {
  width: calc(var(--hero-cat) * 1.7231);
  top: calc(76px - var(--hero-cat) * 0.6157 + 6px);
  right: calc(14px - var(--hero-cat) * 0.3060);
}
.hero-cat { z-index: 0; }
.hero-paws { z-index: 2; }
.cast .paper { position: relative; z-index: 1; }

/* Tactile Receipt Paper — authentic in BOTH Light and Dark */
.paper {
  --edge:
    radial-gradient(circle at 50% 0, transparent 3.8px, #000 4.3px) top / 12px 5px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 10px) no-repeat,
    radial-gradient(ellipse 6.6px 7px at 50% 0, #000 94%, transparent) bottom / 14px 7px repeat-x;
  position: relative;
  background: linear-gradient(transparent 86%, var(--slip-curl)), var(--slip);
  color: var(--ink);
  mask: var(--edge);
  padding: 22px 20px 26px;
  isolation: isolate;
}
.paper::before {
  content: ""; position: absolute; inset: 0;
  background: url("/art/fiber.png");
  opacity: .58; mix-blend-mode: multiply; z-index: -1; pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance=light]) .paper::before { opacity: .11; mix-blend-mode: soft-light; }
}
:root[data-appearance=dark] .paper::before { opacity: .11; mix-blend-mode: soft-light; }

.paper-label { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; }
.day {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0 10px; border-bottom: 1px dashed var(--slip-line);
}
.day b { font: 800 56px/.88 var(--display); letter-spacing: -.06em; }
.day time { font: 500 12px/1.35 var(--mono); color: var(--muted); }

.entry, .total {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0; font-size: 15px;
  border-bottom: 1px dotted var(--slip-line);
}
.entry img { width: 32px; height: 32px; flex: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance=light]) .entry img { filter: brightness(.86) saturate(.92); }
}
:root[data-appearance=dark] .entry img { filter: brightness(.86) saturate(.92); }

.entry strong, .total strong { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry strong { font-weight: 700; }
.spoken-entry {
  padding-left: 10px;
  background: linear-gradient(90deg, var(--slip-tint), transparent);
  box-shadow: -3px 0 0 var(--stamp);
}
.entry:nth-last-child(3) { border-bottom-style: dashed; }
.total { border: 0; align-items: baseline; margin: 4px 0 10px; }
.total strong { font: 800 24px/1 var(--display); }
.end {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--slip-line); padding-top: 10px;
}
.seal { display: block; width: 50px; height: auto; aspect-ratio: 1; rotate: 9deg; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance=light]) .end .seal { mix-blend-mode: normal; filter: brightness(1.42) saturate(.76); }
}
:root[data-appearance=dark] .end .seal { mix-blend-mode: normal; filter: brightness(1.42) saturate(.76); }

/* Shared Chapter Spacing */
.chapter { padding-block: clamp(44px, 5.5vw, 76px); border-top: 1px solid var(--line); scroll-margin: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head .lede, .section-head .price-note { max-width: 38ch; color: var(--muted); font-size: 15px; margin: 0; }
.lede { margin-top: 14px; max-width: 36ch; color: var(--muted); }

/* Section 2: Methods (4 clean cards + iPhone chip strip) */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.method {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start;
  padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.method dt { display: contents; }
.method b { font: 700 18px/1.3 var(--display); letter-spacing: -.015em; }
.method dd { grid-column: 2; font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.tool {
  display: grid; place-items: center; grid-row: span 2;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--page); color: var(--ink);
}
.tool svg, .mic svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}

.iphone-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 18px; padding: 14px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.siri-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding-right: 12px; border-right: 1px solid var(--line);
}
.siri-chip small { font-size: 13px; font-weight: 600; color: var(--muted); }
.siri-chip .voice-line { width: 28px; }
.chip-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.chip-list li {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
  background: var(--page);
}

/* Section 3: Week Slips */
.days {
  list-style: none; padding: 24px 18px 22px;
  background: var(--tray); border: 1px solid var(--line); border-radius: 22px;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;
}
.days li { min-width: 0; filter: var(--mini-shadow); }
.mini { padding: 16px 12px 20px; display: flex; flex-flow: column; min-height: 142px; }
.mini b { font: 800 clamp(28px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -.05em; margin-top: 4px; }
.mini-total {
  border-top: 1px dotted var(--slip-line); padding-top: 9px; margin-top: auto;
  font: 600 13px/1 var(--mono); color: var(--muted); white-space: nowrap;
}
.mini .seal {
  width: 22px; position: absolute; right: 8px; top: 14px;
  background: var(--stamp); mask: url("/art/review-paw.svg") center / contain no-repeat;
  mix-blend-mode: normal;
}
.days li:last-child .mini {
  background: var(--bar); color: var(--on-bar);
}
.days li:last-child .mini::before { opacity: .06; }
.days li:last-child .meta,
.days li:last-child .mini-total { color: var(--on-bar-muted); border-color: rgba(255, 255, 255, .18); }
.days li:last-child .seal { background: var(--accent); }

/* Section 4: Four Cats Interactive Theme Switcher */
.themes {
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(28px, 5vw, 52px);
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.swatches label {
  min-height: 42px; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 0 14px; font-size: 14px; font-weight: 600;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.swatches label::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--swatch); border: 1px solid rgba(0, 0, 0, .18);
}
[for="cat-orange"] { --swatch: #ff8a3d; }
[for="cat-tuxedo"] { --swatch: #b5d45c; }
[for="cat-ragdoll"] { --swatch: #f2a7b8; }
[for="cat-siamese"] { --swatch: #8db0dc; }
.swatch-input:checked + label { border-color: var(--ink); background: var(--slip); }
.swatch-input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 3px; }
.cat-hint { margin-top: 14px; font-size: 13px; color: var(--pending); }

/* Theme stage uses exact docs/design/tokens.json per-cat palettes */
.sample { min-width: 0; }
.theme-stage {
  --stage-bg: light-dark(#f3e3d2, #1a1411);
  --stage-bar: light-dark(#1c140e, #34281f);
  --stage-on-bar: light-dark(#fffaf4, #f6ece1);
  --stage-on-bar-muted: #c2ae9a;
  --stage-accent: light-dark(#ff8a3d, #ff9a52);
  --stage-on-accent: #1c140e;
  --stage-border: light-dark(#ead8c2, #3a2d23);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px) clamp(28px, 3.6vw, 40px);
  border-radius: 26px;
  background: var(--stage-bg);
  border: 1px solid var(--stage-border);
  transition: background .28s ease, border-color .28s ease;
}
.themes:has(#cat-tuxedo:checked) .theme-stage {
  --stage-bg: light-dark(#f2f2ef, #0f0f0f);
  --stage-bar: light-dark(#141414, #2b2b2b);
  --stage-on-bar: light-dark(#ffffff, #f2f3f0);
  --stage-on-bar-muted: light-dark(#a3a59c, #b4b6ae);
  --stage-accent: #b5d45c;
  --stage-on-accent: #111111;
  --stage-border: light-dark(#ddddd7, #2e2e2e);
}
.themes:has(#cat-ragdoll:checked) .theme-stage {
  --stage-bg: light-dark(#eceaf0, #181a24);
  --stage-bar: light-dark(#3f4763, #31354a);
  --stage-on-bar: light-dark(#ffffff, #eef0f8);
  --stage-on-bar-muted: light-dark(#cdd1e0, #c3c9de);
  --stage-accent: #f2a7b8;
  --stage-on-accent: #242a3d;
  --stage-border: light-dark(#dedbe6, #33374a);
}
.themes:has(#cat-siamese:checked) .theme-stage {
  --stage-bg: light-dark(#dccfbd, #2a221c);
  --stage-bar: light-dark(#33221a, #45362c);
  --stage-on-bar: light-dark(#faf3ea, #f6ebdf);
  --stage-on-bar-muted: light-dark(#d0b89f, #cfb8a2);
  --stage-accent: light-dark(#8db0dc, #9dbbe3);
  --stage-on-accent: #1c2230;
  --stage-border: light-dark(#e0d2bf, #4a3d33);
}

/* Per-cat canvas geometry so all 4 sit pixel-locked on the bar ledge */
.ledge {
  --cw: 1.7231; --cl: 0.6157; --cp: 0.3060;
  position: relative; max-width: 440px;
  margin: 112px auto 14px;
  isolation: isolate;
}
.themes:has(#cat-tuxedo:checked) .ledge { --cw: 1.3178; --cl: 0.6050; --cp: 0.2890; }
.themes:has(#cat-ragdoll:checked) .ledge { --cw: 1.3946; --cl: 0.6360; --cp: 0.3658; }
.themes:has(#cat-siamese:checked) .ledge { --cw: 1.4212; --cl: 0.6456; --cp: 0.3859; }

.bar-cat, .bar-paws {
  width: calc(var(--bar-cat) * var(--cw));
  top: calc(var(--bar-cat) * var(--cl) * -1 + 2px);
  left: calc(2px - var(--bar-cat) * var(--cp));
  transform: scaleX(-1);
}
.bar-cat { z-index: 0; pointer-events: auto; cursor: pointer; }
.bar-paws { z-index: 2; pointer-events: none; }

.record {
  position: relative; z-index: 1;
  border-radius: 999px; min-height: 54px; padding: 5px 6px 5px 22px;
  background: color-mix(in srgb, var(--stage-bar) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--stage-on-bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px;
  box-shadow: var(--bar-shadow), var(--bar-drop);
  transition: background .25s ease;
}
.record-placeholder { color: var(--stage-on-bar-muted); }
.mic {
  border: 0; border-radius: 50%; width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--stage-accent); color: var(--stage-on-accent);
  transition: background .25s ease, transform .14s ease;
}
.mic:hover { transform: scale(1.05); }
.mic:active { transform: scale(.95); }

/* Section 5: Privacy & Philosophy (Calm Elevated Stationery Card — No Harsh Black Slab!) */
.privacy { border-top: 0; padding-block: clamp(20px, 3vw, 36px); }
.privacy-card {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: start;
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.privacy-promise {
  margin-top: 14px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45;
  color: var(--ink); font-weight: 500;
}
.privacy-copy p { color: var(--muted); margin-bottom: 12px; max-width: 44ch; }
.privacy-links {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px;
  padding-top: 16px; border-top: 1px dashed var(--slip-line);
}
.text-link {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 40px; font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--pending);
}
.text-link:hover { text-decoration-color: var(--ink); }

/* Section 6: Pricing */
.prices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start; gap: clamp(20px, 4vw, 44px);
}
.plan-free {
  padding: 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.lifetime {
  padding: 28px clamp(22px, 3vw, 36px) 32px;
  filter: var(--slip-shadow);
}
.plan h3 { font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }
.currency-menu { position: relative; }
.currency-menu summary {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 30px; padding: 0 9px; border-radius: 999px;
  background: var(--page); border: 1px solid var(--slip-line);
  font: 600 12.5px/1 var(--mono); color: var(--muted);
  list-style: none; cursor: pointer;
  transition: color .14s ease, border-color .14s ease;
}
.currency-menu summary::-webkit-details-marker { display: none; }
.currency-menu summary::after {
  content: ""; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .75; transition: transform .16s ease;
}
.currency-menu[open] summary { color: var(--ink); border-color: var(--muted); }
.currency-menu[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.currency-menu ul {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 112px; list-style: none; padding: 5px; margin: 0; border-top: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: light-dark(0 12px 28px rgba(23, 19, 15, .14), 0 14px 32px rgba(0, 0, 0, .50));
}
.currency-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: 32px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; font: 600 13px/1 var(--mono); color: var(--muted);
  text-align: left; transition: background .12s ease, color .12s ease;
}
.currency-option:hover { background: var(--page); color: var(--ink); }
.currency-option[aria-pressed="true"] { color: var(--ink); }
.currency-option[aria-pressed="true"]::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.amount { font: 800 clamp(40px, 4.4vw, 58px)/1.12 var(--display); letter-spacing: -.045em; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.plan-desc, .lifetime .term { font-size: 14.5px; color: var(--muted); }
.lifetime .term { margin-bottom: 14px; }
.lifetime > ul {
  padding: 14px 0 0 1.2em; margin: 0;
  border-top: 1px dashed var(--slip-line);
  font-size: 15px; line-height: 1.65;
}
.lifetime > ul li::marker { color: var(--stamp); }

.pricing-foot {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px;
}
.req-note { font-size: 13.5px; color: var(--pending); }
.feedback { font-size: 14px; color: var(--muted); }
.feedback a { font-weight: 600; color: var(--ink); }
.feedback p + p { margin-top: 4px; }
.feedback .in-app { font-size: 13.5px; color: var(--pending); }

/* Footer */
footer {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between;
  gap: 12px 24px; border-top: 1px solid var(--line);
  padding: 22px 0 36px; margin-top: 24px;
}
footer .store { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
footer a { min-height: 40px; display: inline-flex; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; color: var(--muted); }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* Letter (/why/) & Text Pages (/privacy/, /support/, /guides/, etc.) */
.letter article { max-width: 780px; margin: auto; padding: 36px 0 64px; }
.letter h1 { font: 700 clamp(36px, 5vw, 58px)/1.12 var(--display); max-width: 16ch; }
.letter-intro, .signoff { max-width: 62ch; }
.letter-intro p, .signoff p { margin: 16px 0; }
.letter-intro p:first-child { font-size: 20px; line-height: 1.5; color: var(--ink); }
.letter-systems, .signoff { padding: 28px 0; border-top: 1px solid var(--line); }
.letter h2 { font-size: 28px; margin-bottom: 12px; }
.letter-systems .utterances p { font-size: 20px; font-weight: 600; margin-top: 10px; }
.utterances h3 { font-size: 14px; color: var(--muted); font-weight: 600; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 16px; }
.features div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.features dt { font-weight: 700; }
.features dd { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.comparison { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 24px 0 18px; }
.comparison th, .comparison td { text-align: start; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.comparison th:first-child { padding-left: 0; width: 40%; }
.comparison th:last-child, .comparison td { padding-right: 0; }
.comparison thead th { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.comparison tbody th { font-weight: 600; font-size: 16px; }
.comparison tbody td { color: var(--muted); font-size: 15px; }
.return { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.return:hover { color: var(--ink); }
.signature { font-style: italic; font-family: var(--serif); margin-top: 16px; }

.text-page { width: min(100%, 720px); margin: auto; padding-block: clamp(32px, 5vw, 64px); }
.text-page h1 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 0; }
.text-page h2 { font-size: clamp(20px, 2.5vw, 26px); margin: 30px 0 10px; }
.text-page p + p { margin-top: 12px; }
.text-page ul { padding-inline-start: 1.25em; }
.text-page li { margin-block: 8px; }
.press-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 18px 0; }
.press-icon-card {
  display: grid; justify-items: center; gap: 12px; padding: 22px 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.press-icon-card img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.press-icon-card figcaption { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.guide-next {
  margin-top: 44px; padding: 24px 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
}
.guide-next h2 { font-size: 18px; margin: 0 0 12px; }
.guide-next ul { margin: 0; }
.guide-nav {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--slip-line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.guide-nav a { text-decoration: none; }
.guide-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Gentle entrance & organic voice waveform motion (only when reduced-motion is off) */
@media (prefers-reduced-motion: no-preference) {
  .cast { animation: settle .42s var(--settle) both; }
  .cast .seal { animation: press .22s var(--settle) .35s both; }
  @keyframes settle { from { opacity: 0; translate: 0 8px; } }
  @keyframes press { from { transform: scale(1.12); } }

  .voice-line rect { animation: wave-breathe 1.5s ease-in-out infinite alternate; }
  .voice-line rect:nth-child(1) { animation-duration: 1.35s; animation-delay: -.2s; }
  .voice-line rect:nth-child(2) { animation-duration: 1.15s; animation-delay: -.6s; }
  .voice-line rect:nth-child(3) { animation-duration: 1.45s; animation-delay: -.1s; }
  .voice-line rect:nth-child(4) { animation-duration: 1.05s; animation-delay: -.8s; }
  .voice-line rect:nth-child(5) { animation-duration: 1.30s; animation-delay: -.35s; }
  .voice-line rect:nth-child(6) { animation-duration: 1.20s; animation-delay: -.95s; }
  .voice-line rect:nth-child(7) { animation-duration: 1.40s; animation-delay: -.5s; }
  .voice-line rect:nth-child(8) { animation-duration: 1.10s; animation-delay: -.15s; }
  .voice-line rect:nth-child(9) { animation-duration: 1.50s; animation-delay: -.7s; }
  @keyframes wave-breathe {
    0% { transform: scaleY(.42); opacity: .72; }
    100% { transform: scaleY(1.06); opacity: 1; }
  }
}

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .themes { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 700px) {
  :root { --hero-cat: 108px; --bar-cat: 120px; }
  .wrap { padding-inline: 16px; }
  .top { min-height: 62px; gap: 10px; }
  .brand-mark { width: 116px; height: 21px; }
  .top nav { display: none; }
  .preferences { margin-left: auto; border-left: 0; padding-left: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .siri-chip { border-right: 0; padding-right: 0; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 10px; }
  .mini { padding: 12px 8px 14px; min-height: 112px; }
  .mini .seal { width: 16px; top: 10px; right: 6px; }
  .prices { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .ledge { margin-top: 84px; }
  .cast { padding-top: 66px; }
  .hero-cat, .hero-paws { top: calc(66px - var(--hero-cat) * 0.6157 + 6px); }
  footer { align-items: flex-start; flex-direction: column; }
}
