/* Sumery landing skeleton — shared by every product site.
   Only the "Product tokens" block differs between products; the rest is the
   brand's desk scene (work/docs/brand/DESIGN.md §0, §3). Light scene = tools,
   html[data-scene="night"] = games. */

/* ---------- Product tokens: Lepus cyan (DESIGN.md §3) ---------- */
:root {
  --accent: #06b6d4;        /* fills: buttons, markers */
  --accent-text: #0e7490;   /* accent used as text on paper (≥ 4.5:1) */
  --accent-ink: #1b1547;    /* text on an accent fill — cyan needs dark text */
  --accent-soft: rgba(6, 182, 212, 0.16);
  --hue: #22d3ee;           /* icon gradient ends, decoration only */
  --hue-light: #a5f3fc;
}
html[data-scene="night"] {
  --accent: #22d3ee;        /* #1b1547 on it: 9.3:1 */
  --accent-text: #22d3ee;   /* on --wall 10.8:1, on --paper 9.4:1 */
  --accent-soft: rgba(34, 211, 238, 0.16);
}

/* ---------- Brand tokens ---------- */
:root {
  --wall: #f7efe4;
  --wall-deep: #efe3d2;
  --paper: #fffaf3;
  --ink: #2a2740;
  --ink-soft: #5c5675;
  --line: rgba(42, 39, 64, 0.14);
  --line-strong: rgba(42, 39, 64, 0.26);
  --wood: #e4c9a4;
  --wood-deep: #c9a677;
  --night: #0a0c1a;
  --night-2: #1c2044;
  --cream: #fffbf3;
  --ok: #2f7d5b;
  --warn: #b45309;
  --shadow: 0 18px 40px -22px rgba(42, 39, 64, 0.5), 0 2px 6px -2px rgba(42, 39, 64, 0.12);
  --display: "Yuanti SC", "YouYuan", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --w: 1120px;
  color-scheme: light;
}
:root:lang(en) {
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-scene="night"] {
  --wall: #0a0c1a;
  --wall-deep: #121633;
  --paper: #161a38;
  --ink: #fffbf3;
  --ink-soft: #b9b4d4;
  --line: rgba(255, 251, 243, 0.12);
  --line-strong: rgba(255, 251, 243, 0.24);
  --wood: #262b5c;
  --wood-deep: #1c2044;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--accent);
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  overflow-wrap: anywhere;
}
kbd { background: var(--paper); border: 1px solid var(--line-strong); border-bottom-width: 2px; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--wall); z-index: 10; }
.skip:focus { top: 12px; }
.i { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Status strip + header ---------- */
.status {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--wall-deep);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: center;
}
.status-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.top {
  max-width: var(--w); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px;
}
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark-icon { border-radius: 22.5%; }
.mark-text { display: grid; line-height: 1.25; }
.kicker { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.12em; color: var(--ink-soft); }
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.nav ul { display: flex; gap: 4px; }
.nav a, .lang {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--wall-deep); color: var(--ink); }
.lang { border: 1px solid var(--line-strong); color: var(--ink); }
.lang:hover { background: var(--ink); color: var(--wall); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-text { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--w); margin: 0 auto; padding: 48px 24px 96px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}
.eyebrow { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.12em; color: var(--accent-text); text-transform: uppercase; }
.hero h1 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { color: var(--accent-text); }
.lede { margin-top: 22px; max-width: 36em; color: var(--ink-soft); font-size: 1.06rem; }
.lede strong { color: var(--ink); }
.hero .actions { margin-top: 30px; }
.fine { margin-top: 14px; color: var(--ink-soft); font-size: 0.86rem; }
.hero-art { position: relative; }
.hero-art figcaption { margin-top: 14px; text-align: center; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; color: var(--ink-soft); }

/* The desk the product object sits on: wall above, a wooden edge below. */
.desk {
  position: relative; padding: 28px 22px 44px; border-radius: 22px;
  background:
    linear-gradient(to bottom, transparent 0 78%, var(--wood) 78% 94%, var(--wood-deep) 94%),
    radial-gradient(120% 90% at 30% 0%, var(--paper) 0%, transparent 70%);
  border: 1px solid var(--line);
}

/* ---------- Bands (screens 2–6) ---------- */
.band { max-width: var(--w); margin: 0 auto; padding: 88px 24px; }
.band-paper {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  border-block: 1px solid var(--line);
}
.band-head { max-width: 46em; margin-bottom: 40px; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.band-sub { margin-top: 12px; color: var(--ink-soft); }
.band-note { margin-top: 32px; max-width: 60em; color: var(--ink-soft); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.step-n { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.1em; color: var(--accent-text); }
.step h3 { margin-top: 14px; font-size: 1.08rem; line-height: 1.4; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

.bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.bounds li { padding-left: 18px; border-left: 3px solid var(--accent); }
.bounds h3 { font-size: 1.06rem; line-height: 1.45; }
.bounds p { margin-top: 6px; color: var(--ink-soft); font-size: 0.96rem; }

.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.catalog-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.catalog dt { font-weight: 650; font-size: 1.04rem; }
.catalog dt::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--accent); }
.catalog dd { margin-top: 10px; color: var(--ink-soft); font-size: 0.96rem; }

.get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.get-copy p { max-width: 38em; color: var(--ink-soft); }
.get-copy p + p { margin-top: 14px; }
.get-copy .actions { margin-top: 28px; }
.platforms { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; font-size: 0.95rem; }
.platforms th, .platforms td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.platforms thead th { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.platforms tbody tr:last-child th, .platforms tbody tr:last-child td { border-bottom: 0; }
.platforms td { color: var(--accent-text); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { max-width: var(--w); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.86rem; }
.foot-note { margin-top: 6px; font-size: 0.8rem; }
.foot-filing { margin-top: 8px; font-size: 0.78rem; }
.foot-filing a { color: inherit; text-decoration: none; }
.foot-filing a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-art { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 28px; }
  .get { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .bounds, .catalog { grid-template-columns: 1fr; }
  .band { padding-block: 64px; }
}

/* ======================================================================
   Product object: Lepus's route card for the dusk mountain road, and a
   phone lying across it with the two-thumb controls. A drawing, not a
   screenshot — no car appears. Everything below is product-specific
   (src/art.mjs renders the markup; catalog groups come from page.mjs).
   ====================================================================== */
.route {
  position: relative; padding: 12px; border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.route-head { display: grid; gap: 3px; padding: 4px 6px 12px; }
.route-name { display: flex; align-items: center; gap: 8px; font: 600 0.8rem/1.35 var(--mono); }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.route-saved { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.4; }
.route-saved .i { width: 14px; height: 14px; color: var(--accent-text); }
.route-map { position: relative; border-radius: 10px; overflow: hidden; }
.route-svg { display: block; width: 100%; height: auto; }
.route-chip {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 9px; border-radius: 8px;
  background: rgba(10, 12, 26, 0.84); border: 1px solid rgba(34, 211, 238, 0.4);
  font: 500 0.72rem/1.3 var(--mono); color: var(--cream);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.route-lap-label { color: var(--hue-light); }
.route-time { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }
.route-tag {
  align-self: center; padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.route-start {
  position: absolute; transform: translateY(-50%);
  padding: 2px 6px; border-radius: 5px; background: rgba(10, 12, 26, 0.78);
  font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.04em; color: var(--cream); white-space: nowrap;
}

.pad { position: relative; width: min(70%, 318px); margin: -54px -6px 0 auto; transform: rotate(1.6deg); }
.pad-phone {
  container-type: inline-size;
  padding: 6px; border-radius: 26px;
  background: var(--night); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.pad-screen { position: relative; aspect-ratio: 2.1; border-radius: 20px; overflow: hidden; }
.pad-view { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pad-island { position: absolute; left: 2.4%; top: 50%; width: 1.7%; height: 27%; transform: translateY(-50%); border-radius: 99px; background: var(--night); }
.pad-keys { position: absolute; bottom: 7%; display: flex; align-items: flex-end; gap: 2.6cqw; }
.pad-keys--left { left: 7.5%; }
.pad-keys--right { right: 5.5%; }
.pad-stack { display: grid; gap: 2cqw; }
.pad-key {
  display: grid; place-items: center; width: 12.5cqw; height: 12.5cqw; border-radius: 50%;
  background: rgba(10, 12, 26, 0.6); border: 1px solid rgba(255, 251, 243, 0.42);
  color: var(--cream); font: 600 max(10px, 3.3cqw)/1 var(--body);
}
.pad-key .i { width: 46%; height: 46%; stroke-width: 2.2; }
.pad-key--word { width: auto; min-width: 12cqw; height: 9.5cqw; padding: 0 2.6cqw; border-radius: 999px; }
.pad-key--go {
  width: 18cqw; height: 18cqw; background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-size: max(11px, 4.4cqw); letter-spacing: 0.04em;
}
.pad-key.is-held { outline: 2px solid rgba(34, 211, 238, 0.55); outline-offset: 3px; }
.pad-legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px;
  margin-top: 12px; padding: 0 4px; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.4;
}
.pad-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pad-legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* Chinese headings break only at punctuation, never inside a word: at 1440
   the balanced wrap split 照片 and 刹车 across lines. */
:lang(zh-Hans) :is(h1, h2, h3) { word-break: keep-all; }

/* Catalog: cars and maps as two titled groups; the fact line under each name. */
.catalog-group { margin: 34px 0 14px; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.catalog-group:first-child { margin-top: 0; }
.catalog .catalog-meta { margin-top: 10px; font: 500 0.78rem/1.5 var(--mono); color: var(--accent-text); }
.catalog .catalog-meta + dd { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .route-lap { animation: lap-draw 1.6s var(--ease) 0.5s both; }
  .route-here { animation: here-in 0.5s var(--ease) 1.7s both; }
  @keyframes lap-draw { from { stroke-dasharray: 0 100; } }
  @keyframes here-in { from { opacity: 0; } }
}
@media (max-width: 520px) {
  .route { transform: none; }
  .route-chip { top: 6px; right: 6px; gap: 6px; padding: 4px 7px; font-size: 0.66rem; }
  .route-time { font-size: 0.84rem; }
  .pad { width: 100%; margin: 14px 0 0; transform: none; }
}
