/* 猫立方 · 精致标准款 — redesign preview */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --ink: #1c1e22;
  --ink-2: #555b66;
  --ink-3: #6b717c;
  --line: #e9e5df;
  --orange: #e8862c;
  --orange-ink: #ad5b10;
  --orange-tint: #fdefe1;
  --orange-display: #c8681a;
  --pill: #1c1e22;
  --pill-ink: #ffffff;
  --yes: #237a4a;

  --t-blue: #e4eefb;      --k-blue: #2b67ad;
  --t-lavender: #ece7fb;  --k-lavender: #6447bd;
  --t-peach: #fcecdd;     --k-peach: #974d0c;
  --t-mint: #def3e7;      --k-mint: #237a4a;
  --t-pink: #fbe5ec;      --k-pink: #ae3d64;

  --shadow-sm: 0 1px 2px rgb(28 30 34 / 0.06), 0 4px 12px -4px rgb(28 30 34 / 0.08);
  --shadow-md: 0 2px 4px rgb(28 30 34 / 0.05), 0 18px 36px -16px rgb(28 30 34 / 0.18);
  --phone-shadow: drop-shadow(0 28px 32px rgb(28 30 34 / 0.16)) drop-shadow(0 4px 8px rgb(28 30 34 / 0.08));

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius-xl: clamp(24px, 3vw, 36px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121315; --surface: #1c1d20; --surface-2: #26272b; --ink: #eeeef0; --ink-2: #b4b8bf; --ink-3: #9a9fa8; --line: #2c2e33;
    --orange-ink: #f3a25a; --orange-display: #f3a25a; --orange-tint: #2c2117; --pill: #2a2b2f; --pill-ink: #ffffff; --yes: #7fd3a1;
    --t-blue: #1d2a3b; --k-blue: #8db8ea; --t-lavender: #262140; --k-lavender: #b6a3f0; --t-peach: #2c2622; --k-peach: #f3a25a;
    --t-mint: #1a3126; --k-mint: #7fd3a1; --t-pink: #35202a; --k-pink: #ef9ab7;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-md: 0 18px 36px -16px rgb(0 0 0 / 0.6);
    --phone-shadow: drop-shadow(0 28px 32px rgb(0 0 0 / 0.5));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121315; --surface: #1c1d20; --surface-2: #26272b; --ink: #eeeef0; --ink-2: #b4b8bf; --ink-3: #9a9fa8; --line: #2c2e33;
  --orange-ink: #f3a25a; --orange-display: #f3a25a; --orange-tint: #2c2117; --pill: #2a2b2f; --pill-ink: #ffffff; --yes: #7fd3a1;
  --t-blue: #1d2a3b; --k-blue: #8db8ea; --t-lavender: #262140; --k-lavender: #b6a3f0; --t-peach: #2c2622; --k-peach: #f3a25a;
  --t-mint: #1a3126; --k-mint: #7fd3a1; --t-pink: #35202a; --k-pink: #ef9ab7;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-md: 0 18px 36px -16px rgb(0 0 0 / 0.6);
  --phone-shadow: drop-shadow(0 28px 32px rgb(0 0 0 / 0.5));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: #fff; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 { margin: 0; line-break: strict; text-wrap: balance; }
.display { font-size: clamp(42px, 5.8vw, 76px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; }
.display em { font-style: normal; color: var(--orange-display); }
.h2 { font-size: clamp(31px, 4vw, 50px); font-weight: 600; line-height: 1.18; letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); margin: 18px 0 0; max-width: 32em; }

/* ── Header ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.brand strong { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.brand span { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.site-nav { display: flex; gap: 2px; margin-left: 6px; }
.site-nav a { text-decoration: none; white-space: nowrap; font-size: 15px; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.icon-button:hover { color: var(--ink); background: var(--surface-2); }
.header-cta { margin-left: 6px; }

/* Language switcher injected by i18n.js */
.lang-switcher { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: 500 14px/1 var(--font); color: var(--ink-2); padding: 9px 11px; border-radius: 999px; cursor: pointer; }
.lang-toggle:hover, .lang-switcher.open .lang-toggle { background: var(--surface-2); color: var(--ink); }
.lang-icon-caret { transition: rotate 0.2s var(--ease-out); }
.lang-switcher.open .lang-icon-caret { rotate: 180deg; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; margin: 0; padding: 6px; list-style: none; min-width: 148px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; translate: 0 -4px; transition: opacity 0.18s, translate 0.18s var(--ease-out), visibility 0s linear 0.18s; }
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.18s, translate 0.18s var(--ease-out); }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.lang-menu li:hover { background: var(--surface-2); color: var(--ink); }
.lang-cube-dot { width: 6px; height: 6px; border-radius: 2px; background: var(--line); flex: none; }
.lang-menu li.active { color: var(--orange-ink); font-weight: 600; }
.lang-menu li.active .lang-cube-dot { background: var(--orange); }

/* ── Buttons ────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; border: 0; font: 600 16px/1 var(--font); padding: 15px 22px; border-radius: 999px; transition: background-color 0.2s, translate 0.2s var(--ease-out), box-shadow 0.2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { translate: 0 -1px; box-shadow: var(--shadow-md); }
.btn-primary:active { translate: 0 1px; }
.btn-small { padding: 9px 15px; font-size: 14px; }
.btn-small svg { width: 15px; height: 15px; }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 6px; }
.btn-ghost svg { color: var(--orange); transition: translate 0.2s var(--ease-out); }
.btn-ghost:hover svg { translate: 3px 0; }

/* ── Phones ─────────────────────────────────────────── */
.phone { position: relative; width: var(--w, 300px); aspect-ratio: 1470 / 3000; filter: var(--phone-shadow); flex: none; }
.phone .screen { position: absolute; left: 5.1%; top: 2.2%; width: 89.8%; height: 95.6%; object-fit: cover; border-radius: 12.4% / 5.8%; background: #f7f5f1; }
.phone .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── Live pill (widget-style countdown) ─────────────── */
.live-pill { display: flex; align-items: center; gap: 12px; background: var(--pill); color: var(--pill-ink); border-radius: 22px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px -14px rgb(28 30 34 / 0.45); min-width: 270px; }
.live-pill img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.live-pill .what { display: grid; line-height: 1.35; font-size: 14px; min-width: 0; }
.live-pill .what b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.live-pill .what span { color: rgb(255 255 255 / 0.7); font-size: 12px; }
.live-pill .time { margin-left: auto; text-align: right; line-height: 1.15; flex: none; }
.live-pill .time b { display: block; font-size: 24px; font-weight: 700; color: #ffa04a; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.live-pill .time span { font-size: 11px; color: rgb(255 255 255 / 0.7); }

/* ── Cats ───────────────────────────────────────────── */
.cat-walk { position: absolute; left: 0; right: 0; height: 80px; overflow: hidden; pointer-events: none; }
.cat {
  position: absolute; bottom: 0; left: 100%;
  height: var(--h); aspect-ratio: var(--ar);
  background-image: var(--img); background-size: 800% 100%; background-repeat: no-repeat; image-rendering: pixelated;
  animation: cat-frames 0.9s steps(8) infinite, cat-walk var(--dur) linear infinite; animation-delay: 0s, var(--delay);
}
.cat-orange { --img: url(assets/cat-orange.png); --h: 56px; --ar: 312 / 240; --dur: 30s; --delay: -2s; }
.cat-bluewhite { --img: url(assets/cat-bluewhite.png); --h: 40px; --ar: 212 / 152; --dur: 30s; --delay: -12s; }
.cat-white { --img: url(assets/cat-white.png); --h: 62px; --ar: 408 / 312; --dur: 30s; --delay: -22s; }
.cat.in-place { position: relative; left: auto; display: block; animation: cat-frames 0.9s steps(8) infinite; }
@keyframes cat-frames { from { background-position: 0 0; } to { background-position: 114.2857% 0; } }
@keyframes cat-walk { from { left: 100%; } to { left: -130px; } }

/* ── Hero ───────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 96px); }
.slogan { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--orange-ink); margin: 18px 0 0; letter-spacing: 0.04em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { width: 16px; height: 16px; color: var(--orange); }
.hero-stage { position: relative; height: clamp(540px, 52vw, 640px); }
.hero-stage .phone-back { --w: clamp(200px, 19vw, 240px); position: absolute; right: 4%; top: 7%; rotate: 5deg; }
.hero-stage .phone-front { --w: clamp(240px, 23vw, 290px); position: absolute; left: 14%; top: 0; rotate: -3deg; }
.hero-stage .live-pill { position: absolute; left: 0; top: 58%; z-index: 3; }
.hero-stage .cat-walk { bottom: 0; }
.baseline { height: 1px; background: var(--line); }

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }

/* Feature stages */
.stages { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.stage {
  --tint: var(--t-blue); --key: var(--k-blue);
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); background: var(--tint);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) 0;
  min-height: clamp(480px, 48vw, 580px);
}
.stage.flip .stage-copy { order: 2; }
.stage-copy { align-self: center; padding-bottom: clamp(32px, 5vw, 64px); }
.stage .h2 { font-size: clamp(29px, 3.4vw, 44px); }
.stage p.body { color: var(--ink-2); margin: 16px 0 0; max-width: 28em; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.ticks svg { width: 18px; height: 18px; color: var(--key); flex: none; margin-top: 2px; }
.stage-media { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.stage-media .phone { --w: clamp(230px, 23vw, 280px); }
.stage-media .phone + .phone { --w: clamp(200px, 19vw, 240px); margin-left: -14%; margin-top: 14%; rotate: 4deg; z-index: -1; }
.t-blue { --tint: var(--t-blue); --key: var(--k-blue); }
.t-lavender { --tint: var(--t-lavender); --key: var(--k-lavender); }
.t-peach { --tint: var(--t-peach); --key: var(--k-peach); }
.t-mint { --tint: var(--t-mint); --key: var(--k-mint); }
.t-pink { --tint: var(--t-pink); --key: var(--k-pink); }

/* Rules inside the change stage */
.rules { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.rules { gap: 0; border-top: 1px solid color-mix(in srgb, var(--key) 22%, transparent); }
.rules li { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--key) 22%, transparent); font-size: 15px; line-height: 1.55; }
.rules b { display: block; font-size: 13px; color: var(--key); margin-bottom: 2px; }
.scope-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.segmented { display: inline-grid; grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 10px; padding: 3px; }
.segmented button { border: 0; background: transparent; font: 600 13px/1 var(--font); color: var(--ink-2); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.week-dots { display: flex; gap: 8px; align-items: flex-end; font-size: 11px; color: var(--ink-3); }
.week-dots span { display: grid; justify-items: center; gap: 4px; }
.week-dots i { width: 22px; height: 8px; border-radius: 99px; background: var(--line); transition: background 0.3s var(--ease-out); }
.week-dots i.on { background: var(--orange); }

/* More capabilities: plain list */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); margin: clamp(48px, 6vw, 72px) 0 0; }
.more div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.more dt { font-weight: 600; font-size: 16px; }
.more dd { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Film */
.film { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(10px, 1.4vw, 16px); box-shadow: var(--shadow-md); }
.film-media { position: relative; }
.film-play { position: absolute; left: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); width: clamp(52px, 5vw, 68px); height: clamp(52px, 5vw, 68px); border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(28 30 34 / 0.82); color: #fff; box-shadow: 0 12px 30px -10px rgb(28 30 34 / 0.6); transition: scale 0.2s var(--ease-out), background-color 0.2s; }
.film-play:hover { scale: 1.06; background: var(--orange); }
.film-play svg { width: 42%; height: 42%; margin-left: 4px; }
.film-play[hidden] { display: none; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: calc(var(--radius-xl) - 12px); background: #000; }
.film-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 4px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.film-sound { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 600 13px/1 var(--font); padding: 8px 13px; cursor: pointer; }
.film-sound:hover { color: var(--ink); }
.film-sound svg { width: 16px; height: 16px; }
.film-sound[data-sound="off"] .film-sound-wave { display: none; }
.film-sound[data-sound="on"] .film-sound-off { display: none; }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.quote { margin: 0; background: var(--surface); border-radius: 24px; padding: 28px 26px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { margin: 0; font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.5; }
.quote figcaption { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
.quote figcaption b { color: var(--ink); font-size: 15px; }
.quote .src { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quote .src a { color: var(--ink-2); }
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars svg { width: 13px; height: 13px; }
.note { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.privacy-card { position: relative; background: var(--surface); border-radius: var(--radius-xl); padding: clamp(28px, 3.4vw, 44px); box-shadow: var(--shadow-md); }
.privacy-card ul { list-style: none; margin: 0; padding: 0; }
.privacy-card li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.privacy-card li:last-child { border-bottom: 0; }
.privacy-card li span:last-child { font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.privacy-card li .yes { color: var(--yes); }
.privacy-card li svg { width: 16px; height: 16px; }
.privacy-card a { display: inline-block; margin-top: 16px; color: var(--orange-ink); font-weight: 600; }
.privacy-card .perch { position: absolute; right: 32px; bottom: 100%; }

/* Download */
.download { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--orange-tint); padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(100px, 10vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; }
.download-actions .alt { font-size: 14px; color: var(--ink-2); }
.download-actions .alt a { color: var(--orange-ink); font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 26px 0 0; font-size: 14px; }
.specs div { display: grid; }
.specs dt { color: var(--ink-2); font-size: 12px; }
.specs dd { margin: 0; font-weight: 600; }
.qr { display: grid; justify-items: center; gap: 12px; text-align: center; }
.qr div { background: #fff; padding: 14px; border-radius: 20px; box-shadow: var(--shadow-md); }
.qr img { width: 132px; height: 132px; }
.qr p { margin: 0; font-size: 13px; color: var(--ink-2); }
.download .cat-walk { bottom: 0; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; }
.mail { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.mail svg { width: 22px; height: 22px; color: var(--orange); transition: translate 0.25s var(--ease-out); }
.mail:hover svg { translate: 3px -3px; }

/* ── Home ───────────────────────────────────────────── */
.studio-stage { position: relative; height: clamp(500px, 48vw, 600px); }
.studio-stage .phone { --w: clamp(230px, 22vw, 280px); position: absolute; right: 12%; top: 0; rotate: 4deg; }
.studio-stage .live-pill { position: absolute; left: 0; top: 52%; z-index: 2; }
.studio-stage .cat-walk { bottom: 0; }
.crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.crew-member { background: var(--surface); border-radius: 24px; padding: 28px 24px 26px; box-shadow: var(--shadow-sm); display: grid; justify-items: center; text-align: center; gap: 6px; }
.crew-member .portrait { height: 92px; display: grid; place-items: end center; margin-bottom: 10px; }
.crew-member .cat-orange { --h: 70px; }
.crew-member .cat-bluewhite { --h: 52px; }
.crew-member .cat-white { --h: 80px; }
.crew-member h3 { font-size: 20px; font-weight: 600; }
.crew-member p { margin: 0; color: var(--ink-2); font-size: 15px; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 40px); }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--ink-2); font-size: 15px; }
.app-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-lockup img { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.app-lockup strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.app-lockup span { font-size: 13px; color: var(--ink-3); }

/* ── Legal & support pages (nextclass/*.html) ───────── */
.section-shell { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.legal-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(36px, 4.8vw, 58px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.legal-intro { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); margin: 16px 0 0; max-width: 36em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.legal-meta span { display: inline-flex; align-items: center; gap: 8px; }
.legal-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-right: 10px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(32px, 4vw, 56px) 0 clamp(80px, 9vw, 128px); }
.legal-aside { position: sticky; top: 88px; }
.legal-aside > p { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.legal-aside nav { display: grid; gap: 2px; }
.legal-aside nav a { display: block; padding: 7px 12px; margin-left: -12px; border-radius: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-decoration: none; }
.legal-aside nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-content { max-width: 44em; }
.legal-content > p:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 14px; color: var(--ink); }
.legal-content a { color: var(--orange-ink); font-weight: 500; }
.legal-section { padding-top: clamp(28px, 3vw, 40px); scroll-margin-top: 84px; }
.legal-section h2 { font-size: clamp(21px, 2vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 14px; }
.legal-section h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal-section ul { margin: 0 0 16px; padding-left: 1.25em; }
.legal-section li { margin-bottom: 8px; }
.legal-section li::marker { color: var(--orange); }
.legal-note { background: var(--orange-tint); border-radius: 16px; padding: 14px 18px; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .legal-aside { position: static; background: var(--surface); border-radius: 18px; padding: 16px 18px 12px; box-shadow: var(--shadow-sm); }
  .legal-aside nav a { margin-left: -8px; padding: 6px 8px; }
}
@media (max-width: 640px) {
  .legal-meta { flex-direction: column; gap: 2px; }
  .legal-meta span + span::before { display: none; }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; padding: 40px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand strong { font-size: 16px; font-weight: 600; display: block; line-height: 1.2; }
.footer-brand span { font-size: 12px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer-nav a, .footer-meta a { text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover, .footer-meta a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 20px; }
.footer-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.footer-meta img { display: inline-block; width: 15px; height: auto; vertical-align: -2px; margin-right: 4px; }
.footer-social { display: flex; gap: 4px; }
.footer-social a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); border-radius: 999px; }
.footer-social a:hover { color: var(--ink); background: var(--surface-2); }
.footer-social svg { width: 18px; height: 18px; }

/* ── Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { animation: rise 1s var(--ease-out) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { translate: 0 28px; opacity: 0; } }
  .js .reveal .stage-media { transition: translate 0.9s var(--ease-out), opacity 0.9s var(--ease-out); }
  .js .reveal:not(.in) .stage-media { translate: 0 48px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cat { animation: none; left: auto; right: 4%; }
  .cat-bluewhite { right: 40%; }
  .cat-orange { right: 70%; }
  .cat.in-place { right: auto; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .hero-grid, .privacy, .download { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .hero-stage, .studio-stage { max-width: 460px; margin-inline: auto; width: 100%; }
  .stage { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 32px; }
  .stage.flip .stage-copy { order: 0; }
  .stage-copy { padding-bottom: 0; }
  .stage-media { height: clamp(380px, 92vw, 470px); overflow: hidden; margin-inline: calc(-1 * clamp(24px, 5vw, 64px)); }
  .qr { justify-items: start; text-align: left; grid-template-columns: auto 1fr; align-items: center; }
  .crew { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .crew-member { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 18px; align-items: center; }
  .crew-member .portrait { grid-row: span 2; width: 100px; margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { gap: 6px; min-height: 58px; }
  .brand span, .header-cta, .lang-current, .lang-icon-caret { display: none; }
  .site-nav { margin-left: 2px; }
  .site-nav a { padding: 7px 10px; }
  .hero-stage { height: 500px; }
  .hero-stage .phone-front { --w: 224px; left: 6%; }
  .hero-stage .phone-back { --w: 180px; right: 2%; }
  .hero-stage .live-pill { min-width: 0; left: -2px; right: 10%; top: 60%; }
  .studio-stage { height: 470px; }
  .studio-stage .phone { --w: 220px; right: 6%; }
  .studio-stage .live-pill { min-width: 0; right: 14%; }
  .more, .principles { grid-template-columns: minmax(0, 1fr); }
  .privacy-card li { font-size: 15px; }
}
@media (max-width: 860px) {
  .privacy-card { margin-top: 40px; }
}

@media (max-width: 860px) {
  .more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .more div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero-stage, .studio-stage { overflow-x: clip; overflow-y: visible; padding-inline: 8px; margin-inline: -8px; }
}

/* Japanese and Korean headings break at phrase boundaries where supported */
:lang(ja) :is(h1, h2, h3, .slogan), :lang(ko) :is(h1, h2, h3, .slogan) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2, h3, .slogan, p, li) { word-break: keep-all; }

/* ── 404 ────────────────────────────────────────────── */
.not-found { padding-block: clamp(64px, 10vw, 128px) clamp(48px, 7vw, 96px); text-align: center; }
.not-found .lede { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }
.nf-code { margin: 0 0 8px; font-size: clamp(96px, 16vw, 176px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--orange-display); font-variant-numeric: tabular-nums; }
.nf-stage { position: relative; height: 96px; margin-top: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.nf-stage .cat-walk { bottom: 0; }

/* Hero cats walk the full-width baseline, edge to edge */
.hero > .cat-walk { left: 0; right: 0; bottom: 1px; }
.hero > .cat-walk .cat { --dur: 64s; }
.hero > .cat-walk .cat-orange { --delay: -4s; }
.hero > .cat-walk .cat-bluewhite { --delay: -25s; }
.hero > .cat-walk .cat-white { --delay: -46s; }
@media (max-width: 860px) { .hero > .cat-walk .cat { --dur: 32s; } .hero > .cat-walk .cat-orange { --delay: -2s; } .hero > .cat-walk .cat-bluewhite { --delay: -12.5s; } .hero > .cat-walk .cat-white { --delay: -23s; } }

/* Phones: keep the live pill inside the clipped stage (it sat 2px past the clip edge) */
@media (max-width: 640px) {
  .hero-stage .live-pill { left: 8px; right: 8%; }
  .studio-stage .live-pill { left: 8px; right: 12%; }
}
