/* NekoAI's website: the app's washi-and-sumi world on a page. Tokens follow the app's Washi theme (and its Yoru
   palette by night); every icon is one of the app's own drawings, inlined at build time as SVG symbols. */

@font-face { font-family: "Zen Maru Gothic"; font-weight: 400; font-display: swap; src: url("fonts/zen-maru-gothic-400.woff2") format("woff2"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 500; font-display: swap; src: url("fonts/zen-maru-gothic-500.woff2") format("woff2"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-display: swap; src: url("fonts/zen-maru-gothic-700.woff2") format("woff2"); }
@font-face { font-family: "Klee One"; font-weight: 400; font-display: swap; src: url("fonts/klee-one-400.woff2") format("woff2"); }
@font-face { font-family: "Klee One"; font-weight: 600; font-display: swap; src: url("fonts/klee-one-600.woff2") format("woff2"); }
/* Fallbacks sized close to the real faces, so the swap barely moves a line. */
@font-face { font-family: "Zen Maru Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 98%; ascent-override: 92%; descent-override: 26%; }
@font-face { font-family: "Klee Fallback"; src: local("Georgia"), local("Times New Roman"), local("Noto Serif"); size-adjust: 96%; ascent-override: 90%; descent-override: 24%; }

:root {
  --washi: #F6EEDF;
  --paper: #FFF9EF;
  --paper-deep: #F3E2C6;
  --ink: #3A2420;
  --sumi: #4A2E2A;
  --ink-soft: #6E544C;
  --line: #E6DAC4;
  --kinako: #F0C98E;
  --shu: #D94B35;
  --shu-button: #C2412D;
  --shu-ink: #A32E1C;
  --on-shu: #FFF9EF;
  --gold: #F2C12E;
  --gold-ink: #D4A94A;
  --ai: #2E4A7A;
  --on-ai: #F6F1E7;
  --matcha: #6B8E4E;
  --matcha-ink: #4E6B36;
  --sakura: #F2B8C6;
  --mist: #B8C9E6;
  --wood: #D9A867;
  --bark: #6A463A;
  --focus: #2E4A7A;
  --shadow: 0 1px 0 rgb(74 46 42 / 0.05), 0 18px 40px -22px rgb(74 46 42 / 0.45);
  --shadow-lift: 0 1px 0 rgb(74 46 42 / 0.05), 0 26px 50px -24px rgb(74 46 42 / 0.55);
  --font-text: "Zen Maru Gothic", "Zen Maru Fallback", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-display: "Klee One", "Klee Fallback", "Zen Maru Gothic", serif;
  --step--1: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.45rem + 2.2vw, 3.2rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  --step-5: clamp(3.4rem, 2rem + 7vw, 7.6rem);
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 3.5rem);
  --radius: 22px;
  --dock-room: 104px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --washi: #141A2D;
    --paper: #1C2238;
    --paper-deep: #232B45;
    --ink: #F1E9DA;
    --sumi: #F1E9DA;
    --ink-soft: #B4AA9C;
    --line: #2E3654;
    --shu-button: #E8664E;
    --shu-ink: #F08A74;
    --on-shu: #1C2238;
    --ai: #34406A;
    --on-ai: #F1E9DA;
    --matcha-ink: #9BBE7A;
    --focus: #8FA9DA;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.2), 0 18px 40px -22px rgb(0 0 0 / 0.7);
    --shadow-lift: 0 1px 0 rgb(0 0 0 / 0.2), 0 26px 50px -24px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--dock-room);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--washi);
  /* Washi: a faint fibre noise over the paper colour, fixed so it doesn't swim as you scroll. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }

.icon { width: 1.35em; height: 1.35em; flex: none; vertical-align: -0.3em; }
svg use { pointer-events: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 52px; padding: 0.75em 1.45em;
  border: 0; border-radius: 999px;
  font: 700 var(--step-0) / 1.2 var(--font-text);
  text-decoration: none; cursor: pointer;
  color: var(--on-shu); background: var(--shu-button);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.14), 0 12px 24px -14px rgb(163 46 28 / 0.9);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 120ms ease-out;
}
.button:hover { transform: translateY(-1px); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.14), 0 16px 28px -14px rgb(163 46 28 / 0.95); }
.button:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.14), 0 6px 14px -10px rgb(163 46 28 / 0.9); }
.button-quiet { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 2px var(--sumi), 0 12px 24px -18px rgb(74 46 42 / 0.6); }
.button-quiet:hover { box-shadow: inset 0 0 0 2px var(--sumi), 0 16px 28px -16px rgb(74 46 42 / 0.6); }
.button-quiet:active { box-shadow: inset 0 0 0 2px var(--sumi); }
.button-small { min-height: 44px; padding: 0.55em 1.15em; font-size: var(--step--1); }
.link-button { border: 0; background: none; padding: 6px 2px; font: 700 var(--step--1) var(--font-text); color: var(--shu-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The seals: a hanko-framed slip, the way the app labels its action bubbles. */
.seals { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: auto; padding-top: 18px; }
.seal {
  position: relative; min-height: 44px; padding: 0.45em 1.05em 0.45em 1.4em;
  border: 2px solid var(--shu); border-radius: 8px;
  background: var(--paper); color: var(--shu-ink);
  font: 700 var(--step--1) / 1.2 var(--font-text); cursor: pointer;
  transform: rotate(-1.6deg);
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.seal:nth-child(even) { transform: rotate(1.6deg); }
.seal::before { content: ""; position: absolute; left: 0.55em; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--shu); }
.seal:hover { background: color-mix(in srgb, var(--shu) 10%, var(--paper)); transform: rotate(0deg) translateY(-1px); }
.seal:active { transform: rotate(0deg) translateY(1px); background: color-mix(in srgb, var(--shu) 18%, var(--paper)); }
.seal-red { background: var(--shu-button); border-color: var(--shu-button); color: var(--on-shu); }
.seal-red::before { background: var(--on-shu); }
.seal-red:hover { background: var(--shu); }

/* ---------------------------------------------------------------- header */

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 1.55rem/1 var(--font-display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1.5px var(--line), 0 8px 18px -10px rgb(74 46 42 / 0.6); }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem); max-width: 1240px; margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) var(--gutter) clamp(3rem, 7vw, 6.5rem);
}
.hero h1 { display: grid; gap: 0.25em; }
.wordmark { position: relative; width: fit-content; font-size: var(--step-5); line-height: 0.95; letter-spacing: -0.03em; }
/* Her seal beside her name: vermilion, slightly askew, the way a hanko lands. */
.wordmark::after {
  content: ""; position: absolute; right: -0.62em; top: 0.02em;
  width: 0.32em; height: 0.32em;
  background: var(--shu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='%23FFF9EF'%3E%3Cellipse cx='14' cy='18.5' rx='7' ry='5.6'/%3E%3Cellipse cx='6.2' cy='11' rx='2.8' ry='3.4'/%3E%3Cellipse cx='11' cy='6.6' rx='2.8' ry='3.4'/%3E%3Cellipse cx='17' cy='6.6' rx='2.8' ry='3.4'/%3E%3Cellipse cx='21.8' cy='11' rx='2.8' ry='3.4'/%3E%3C/svg%3E") no-repeat center / 72%;
  border-radius: 6px; transform: rotate(8deg);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-shu) 35%, transparent);
}
.tagline { font-size: var(--step-3); max-width: 15ch; }
.tagline em {
  font-style: normal; white-space: nowrap; padding: 0 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c40-7 92-10 150-8 18 1 30 3 44 5-30 3-78 5-120 6-30 1-56 1-74-3z' fill='%23F2C12E'/%3E%3C/svg%3E") no-repeat 0 82% / 100% 0.42em;
}
.lede { margin-top: 1.4rem; max-width: 34em; font-size: var(--step-1); color: var(--ink-soft); }
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ink-soft); }

/* Her window: a round marumado with a shoji lattice, the season outside, and a sill to sit on. */
.window { position: relative; margin: 0; display: grid; justify-items: center; }
.window-frame {
  position: relative; width: min(100%, 470px); aspect-ratio: 1; border-radius: 50%;
  padding: clamp(12px, 2.4vw, 20px);
  background: radial-gradient(circle at 30% 25%, #E9BE82, var(--wood) 45%, #B9844C 100%);
  box-shadow: inset 0 0 0 3px rgb(106 70 58 / 0.55), inset 0 -10px 22px rgb(106 70 58 / 0.35), var(--shadow-lift);
}
/* The very top of the round frame, flat enough for a cat: a ledge she can climb up to from the sill. */
.crown { position: absolute; left: 35%; top: 0; width: 30%; height: 16px; }
.window-sky {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, #FBE9CF 0%, #F7D7B0 55%, #F2C79A 100%);
  box-shadow: inset 0 0 0 3px rgb(106 70 58 / 0.6), inset 0 12px 30px rgb(106 70 58 / 0.22);
}
.enso { position: absolute; left: 13%; top: 11%; width: 74%; color: #4A2E2A; opacity: 0.82; }
.sun { position: absolute; left: 50%; top: 42%; width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 40% 38%, #E8664E, var(--shu) 70%); }
.branch { position: absolute; left: -4%; top: 6%; width: 78%; }
.leaf { position: absolute; width: 13%; aspect-ratio: 1; }
.leaf-1 { left: 37%; top: 15%; transform: rotate(-18deg); }
.leaf-2 { left: 56%; top: 25%; width: 11%; transform: rotate(24deg); }
.leaf-3 { left: 18%; top: 54%; width: 9%; transform: rotate(-40deg); }
.leaf-4 { left: 70%; top: 58%; width: 9%; transform: rotate(60deg); }
@media (prefers-reduced-motion: no-preference) {
  .leaf-3 { animation: drift 9s ease-in-out infinite; }
  .leaf-4 { animation: drift 11s ease-in-out -4s infinite reverse; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-40deg); }
  50% { transform: translate(18px, 26px) rotate(-8deg); }
}
.shoji {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background:
    linear-gradient(90deg, transparent calc(33.3% - 2px), #8E6243 calc(33.3% - 2px), #8E6243 calc(33.3% + 2px), transparent calc(33.3% + 2px), transparent calc(66.6% - 2px), #8E6243 calc(66.6% - 2px), #8E6243 calc(66.6% + 2px), transparent calc(66.6% + 2px)),
    linear-gradient(180deg, #8E6243 4px, transparent 4px, transparent calc(50% - 2px), #8E6243 calc(50% - 2px), #8E6243 calc(50% + 2px), transparent calc(50% + 2px)),
    rgb(255 249 239 / 0.86);
}
.sill {
  position: relative; z-index: 1; width: min(108%, 560px); height: 22px; margin-top: -18px;
  border-radius: 6px; background: linear-gradient(180deg, #E3B47A, var(--wood) 40%, #B9844C);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.35), 0 16px 24px -14px rgb(74 46 42 / 0.7);
}
.visit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  margin-top: 22px; padding: 10px 16px; max-width: 440px;
  border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: var(--step--1); color: var(--ink-soft); text-align: center;
}
.visit .icon { width: 1.6em; height: 1.6em; }

/* ---------------------------------------------------------------- sections */

section { scroll-margin-top: 12px; }
.section-head { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 1rem; }
.section-head h2 { font-size: var(--step-4); max-width: 18ch; }
.section-head p { max-width: 42em; color: var(--ink-soft); font-size: var(--step-1); }

.what { padding: clamp(3rem, 7vw, 6rem) 0; }
.bento {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px);
  max-width: 1240px; margin: clamp(2rem, 4vw, 3.5rem) auto 0; padding: 0 var(--gutter);
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden;
  padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow);
}
.tile h3 { font-size: var(--step-2); }
.tile p { color: var(--ink-soft); }
.tile .tip { display: flex; gap: 0.5em; align-items: flex-start; font-size: var(--step--1); color: var(--ink); }
.tile-icon { width: 56px; height: 56px; margin-bottom: 0.25rem; }

.tile-stroll { grid-column: span 4; background: linear-gradient(135deg, var(--paper) 55%, color-mix(in srgb, var(--kinako) 34%, var(--paper))); }
.tile-stroll::after {
  /* Her paw prints wandering off the corner of the card. */
  content: ""; position: absolute; right: 18px; bottom: 14px; width: 210px; height: 70px; opacity: 0.16; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 70' fill='%234A2E2A'%3E%3Cg transform='translate(12 46) rotate(-12)'%3E%3Cellipse cx='0' cy='4' rx='7' ry='6'/%3E%3Ccircle cx='-7' cy='-6' r='3'/%3E%3Ccircle cx='0' cy='-9' r='3'/%3E%3Ccircle cx='7' cy='-6' r='3'/%3E%3C/g%3E%3Cg transform='translate(70 30) rotate(-4)'%3E%3Cellipse cx='0' cy='4' rx='7' ry='6'/%3E%3Ccircle cx='-7' cy='-6' r='3'/%3E%3Ccircle cx='0' cy='-9' r='3'/%3E%3Ccircle cx='7' cy='-6' r='3'/%3E%3C/g%3E%3Cg transform='translate(128 44) rotate(6)'%3E%3Cellipse cx='0' cy='4' rx='7' ry='6'/%3E%3Ccircle cx='-7' cy='-6' r='3'/%3E%3Ccircle cx='0' cy='-9' r='3'/%3E%3Ccircle cx='7' cy='-6' r='3'/%3E%3C/g%3E%3Cg transform='translate(186 24) rotate(14)'%3E%3Cellipse cx='0' cy='4' rx='7' ry='6'/%3E%3Ccircle cx='-7' cy='-6' r='3'/%3E%3Ccircle cx='0' cy='-9' r='3'/%3E%3Ccircle cx='7' cy='-6' r='3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.tile-bubbles { grid-column: span 2; background: linear-gradient(160deg, var(--paper) 50%, color-mix(in srgb, var(--sakura) 40%, var(--paper))); }
.bubble-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.4rem; }
.bubble-row span {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2.5px #3A2420, 0 6px 12px -8px rgb(74 46 42 / 0.7);
}
.bubble-row span:nth-child(odd) { transform: translateY(6px); }
.bubble-row svg { width: 34px; height: 34px; }
.tile-talk { grid-column: span 2; background: linear-gradient(160deg, var(--paper) 50%, color-mix(in srgb, var(--mist) 45%, var(--paper))); }
.tile-chat { grid-column: span 2; background: var(--ai); box-shadow: var(--shadow); }
.tile-chat h3, .tile-chat p { color: var(--on-ai); }
.tile-chat .tile-icon { filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.25)); }
.tile-kumiki { grid-column: span 2; background: linear-gradient(160deg, var(--paper) 45%, color-mix(in srgb, var(--wood) 30%, var(--paper))); }
.kumiki-stack { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; margin-bottom: 0.4rem; }
.kumiki-stack svg { width: 44px; height: 44px; padding: 5px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 2px #3A2420; }
.kumiki-stack svg:nth-child(2) { transform: rotate(4deg) translateY(4px); }
.kumiki-stack svg:nth-child(3) { transform: rotate(-3deg); }
.tile-seasons { grid-column: span 3; background: linear-gradient(160deg, var(--paper) 40%, color-mix(in srgb, var(--shu) 14%, var(--paper))); }
.season-row { display: flex; gap: clamp(8px, 1.4vw, 16px); margin-bottom: 0.3rem; }
.season-row svg { width: clamp(40px, 5vw, 54px); height: clamp(40px, 5vw, 54px); }
.tile-kid { grid-column: span 3; background: linear-gradient(160deg, var(--paper) 45%, color-mix(in srgb, var(--matcha) 22%, var(--paper))); }
.tile-climb { grid-column: span 3; }
.tile-climb::after {
  /* Claw marks in the paper: what she leaves on the glass. */
  content: ""; position: absolute; right: 22px; top: 18px; width: 70px; height: 110px; opacity: 0.22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 110' fill='none' stroke='%234A2E2A' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M10 8c3 30 2 60-2 94'/%3E%3Cpath d='M30 4c3 34 3 66 0 100'/%3E%3Cpath d='M50 8c2 30 1 58-3 90'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tile-slam { grid-column: span 3; background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--gold) 45%, var(--paper)), var(--paper) 55%); }

/* ---------------------------------------------------------------- screens */

.screens { padding: clamp(2rem, 6vw, 5rem) 0; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: clamp(14px, 2vw, 26px);
  max-width: 1240px; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 8px var(--gutter) 28px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; display: grid; gap: 14px; }
.gallery img {
  width: 100%; border-radius: 28px; background: var(--paper-deep);
  box-shadow: 0 0 0 7px #2A1C19, 0 0 0 8.5px #5A403A, var(--shadow-lift);
}
.gallery figcaption { font-size: var(--step--1); color: var(--ink-soft); padding: 0 4px; }

/* ---------------------------------------------------------------- plans */

.plans { padding: clamp(3rem, 7vw, 6rem) 0; }
.plan-list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px);
  max-width: 1240px; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--gutter); list-style: none;
}
.plan {
  display: flex; flex-direction: column; gap: 0.55rem; padding: 1.5rem 1.3rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow);
}
.plan h3 { font-size: var(--step-1); display: grid; gap: 0.15em; }
.plan .jp { font-size: 0.72em; color: var(--ink-soft); font-weight: 400; letter-spacing: 0.08em; }
.plan .price { display: grid; gap: 0.2em; font-size: var(--step--1); color: var(--ink-soft); }
.plan .price strong { font: 600 var(--step-3) / 1 var(--font-display); color: var(--ink); }
.plan > p:last-child { color: var(--ink-soft); font-size: var(--step--1); }
.plan-icon {
  width: 64px; height: 64px; padding: 9px; margin-bottom: 0.3rem; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2.5px #3A2420, 0 8px 16px -10px rgb(74 46 42 / 0.7);
}
.plan-tester { background: color-mix(in srgb, var(--matcha) 16%, var(--paper)); box-shadow: inset 0 0 0 2px var(--matcha), var(--shadow); }
.plan-tester .price strong { color: var(--matcha-ink); }
.fineprint { max-width: 1240px; margin: 1.5rem auto 0; padding: 0 var(--gutter); font-size: var(--step--1); color: var(--ink-soft); }

/* ---------------------------------------------------------------- testers */

.testers { padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.testers-card {
  position: relative; overflow: hidden; max-width: 1240px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: calc(var(--radius) + 10px); color: var(--on-ai); background-color: #2E4A7A;
  /* Seigaiha, the overlapping waves, in a faint lighter indigo. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40' fill='none' stroke='%23F6F1E7' stroke-opacity='.08' stroke-width='2'%3E%3Cpath d='M0 40a20 20 0 0 1 40 0M8 40a12 12 0 0 1 24 0M16 40a4 4 0 0 1 8 0M40 40a20 20 0 0 1 40 0M48 40a12 12 0 0 1 24 0M56 40a4 4 0 0 1 8 0M-20 20a20 20 0 0 1 40 0M-12 20a12 12 0 0 1 24 0M-4 20a4 4 0 0 1 8 0M20 20a20 20 0 0 1 40 0M28 20a12 12 0 0 1 24 0M36 20a4 4 0 0 1 8 0M60 20a20 20 0 0 1 40 0M68 20a12 12 0 0 1 24 0M76 20a4 4 0 0 1 8 0'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-lift);
}
.testers-card h2 { font-size: var(--step-4); }
.testers-card > p { margin-top: 1rem; max-width: 38em; font-size: var(--step-1); color: color-mix(in srgb, var(--on-ai) 88%, transparent); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgb(246 241 231 / 0.08); box-shadow: inset 0 0 0 1.5px rgb(246 241 231 / 0.16); }
.step-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #FFF9EF; }
.step-icon svg { width: 34px; height: 34px; }
.testers-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.testers-card .button { --shu-button: #D94B35; color: #FFF9EF; }
.testers-card .button-quiet { color: #3A2420; background: #FFF9EF; box-shadow: 0 12px 24px -16px rgb(0 0 0 / 0.6); }
.testers-card :focus-visible { outline-color: #F2C12E; }

/* ---------------------------------------------------------------- footer */

.foot { max-width: 1240px; margin: 0 auto; padding: 2rem var(--gutter) 1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 2rem; align-items: center; border-top: 1.5px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot nav a { font-weight: 700; color: var(--shu-ink); text-underline-offset: 3px; }
.foot-small { grid-column: 1 / -1; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------------------------------------------------------------- the dock (the nav bar she walks on) */

.dock {
  position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 20px 40px -20px rgb(74 46 42 / 0.55);
  max-width: calc(100vw - 24px);
}
.dock-item {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; color: var(--ink); font: 700 var(--step--1) / 1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms ease-out;
}
.dock-item:hover { background: color-mix(in srgb, var(--kinako) 28%, var(--paper)); }
.dock-item[aria-pressed="true"] { background: color-mix(in srgb, var(--shu) 14%, var(--paper)); color: var(--shu-ink); }
.dock-rule { width: 1.5px; height: 26px; margin: 0 4px; background: var(--line); }

/* ---------------------------------------------------------------- the cat's layers */

#kinako-stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }
#kinako-touch { position: fixed; inset: 0; z-index: 61; pointer-events: none; }
#kinako-touch > * { position: absolute; left: 0; top: 0; pointer-events: auto; }
.kinako-hit-cat { cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.kinako-hit-cat:active { cursor: grabbing; }
.kinako-hit-speech { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kinako-bubble { border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kinako-bubble:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; border-radius: 50%; }
#kinako-play { position: fixed; inset: 0; z-index: 62; display: none; cursor: crosshair; touch-action: none; }
.play-bar {
  position: fixed; z-index: 63; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%);
  display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); font-weight: 700; font-size: var(--step--1);
  max-width: calc(100vw - 24px);
}
html.playing .play-bar { display: flex; }
html.cat-hidden #kinako-stage, html.cat-hidden #kinako-touch, html.cat-hidden #kinako-play { display: none !important; }
html.no-cat .cat-only, html.no-cat #kinako-stage, html.no-cat #kinako-touch { display: none !important; }

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 1080px) {
  .plan-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-tester { grid-column: span 3; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .window { order: 2; }
  .window-frame { width: min(86vw, 420px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-stroll, .tile-seasons, .tile-kid, .tile-climb, .tile-slam { grid-column: span 2; }
  .tile-bubbles, .tile-talk, .tile-chat, .tile-kumiki { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: minmax(210px, 42%); }
}

@media (max-width: 680px) {
  :root { --dock-room: 96px; }
  .bento { grid-template-columns: 1fr; }
  .tile-bubbles, .tile-talk, .tile-chat, .tile-kumiki { grid-column: span 1; }
  .tile-stroll, .tile-seasons, .tile-kid, .tile-climb, .tile-slam { grid-column: span 1; }
  .plan-list { grid-template-columns: 1fr; }
  .plan-tester { grid-column: span 1; }
  .plan { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: start; }
  .plan-icon { grid-row: span 3; }
  .plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15em 0.45em; }
  .gallery { grid-auto-columns: 68%; }
  .foot { grid-template-columns: 1fr; }
  /* The dock becomes a tab bar: icons over short labels, everything in one row. */
  .dock { left: 8px; right: 8px; transform: none; justify-content: space-between; border-radius: 22px; max-width: none; gap: 0; }
  .dock-item { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 56px; padding: 4px 2px; border-radius: 16px; font-size: 0.6875rem; white-space: normal; text-align: center; line-height: 1.1; }
  .dock-item .icon { width: 24px; height: 24px; }
  .dock-rule { display: none; }
  .wordmark::after { right: -0.58em; }
}

@media (max-width: 400px) {
  .hero-actions .button { flex: 1 1 100%; justify-content: center; }
  .top .button-small { padding-inline: 0.9em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .seal, .seal:nth-child(even) { transform: none; }
}

@media (forced-colors: active) {
  .seal, .button, .dock-item { border: 2px solid ButtonText; }
}
