/* ============================================================
   Ricardo Chen — 财富大师 · 网球大师 · 做多身体
   A hand-built, dependency-free product homepage.
   ============================================================ */

/* ------------------------------
   Fonts
------------------------------ */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/noto-serif-sc-400-sub.woff2?v=20261127") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/noto-serif-sc-600-sub.woff2?v=20261127") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------
   Tokens
------------------------------ */
:root {
  --paper: #f0eee6;
  --paper-2: #f8f6f0;
  --paper-3: #e9e5da;
  --sand: #e3dccd;
  --ink: #141413;
  --ink-2: #2c2c29;
  --ink-3: #5f5b52;
  --muted: #665f54;
  --line: rgba(20, 20, 19, 0.14);
  --line-soft: rgba(20, 20, 19, 0.08);
  --line-strong: rgba(20, 20, 19, 0.26);
  --clay: #d2603a;
  --clay-deep: #9f431f;
  --clay-soft: #e9b9a7;
  --lime: #d7e04b;
  --lime-soft: #eff4a8;
  --forest: #091712;
  --forest-2: #0e211a;
  --forest-3: #142c22;
  --forest-line: rgba(240, 238, 230, 0.14);
  --forest-line-soft: rgba(240, 238, 230, 0.08);
  --mint: #a8d8b9;
  --blue: #6e93c8;
  --green: #4f8b6f;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.76, 0, 0.24, 1);
  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ------------------------------
   Reset & base
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

button,
a { -webkit-tap-highlight-color: transparent; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--clay); color: var(--paper-2); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 4px;
}

.chapter--tennis :focus-visible { outline-color: var(--lime); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

.sprite { overflow: hidden; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 0;
}

/* ------------------------------
   Utilities
------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker { color: var(--clay-deep); letter-spacing: 0.16em; }

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(210, 96, 58, 0.14);
}

.micro {
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.micro--dark { color: #84968b; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}
.chips--dark li {
  border-color: var(--forest-line);
  background: rgba(255, 255, 255, 0.035);
  color: #b9c5bb;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }

.btn--primary {
  background: var(--ink);
  color: var(--paper-2);
  border: 1px solid var(--ink);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: translateY(102%);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { border-color: var(--clay); color: #fff; }
.btn--primary:hover::after { transform: translateY(0); }
.btn--primary:hover .icon:last-child { transform: translateX(3px); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
}
.btn--ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.5); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.76rem; gap: 7px; }
.btn--sm .icon { width: 15px; height: 15px; }

.btn--text {
  padding: 0 4px;
  min-height: 44px;
  color: var(--ink-3);
  border-radius: 0;
}
.btn--text::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn--text:hover { color: var(--ink); }
.btn--text:hover::after { transform: scaleX(1); }
.btn--text:hover .icon { transform: translateX(3px); }

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--clay-deep);
  letter-spacing: -0.01em;
}

.up { color: var(--clay-deep); }
.down { color: var(--green); }
.good { color: #3f7457; }
.mini-card--account .good { color: var(--mint); }
.warn { color: #c4863d; }
.nowrap { white-space: nowrap; }

p { text-wrap: pretty; }

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

/* Paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Cursor */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  display: none;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot {
  width: 5px;
  height: 5px;
  background: var(--clay);
  transition: opacity 0.25s;
}
.cursor__ring {
  width: 34px;
  height: 34px;
  border: 1px solid #fff;
  mix-blend-mode: difference;
  opacity: 0.7;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
.cursor.is-active .cursor__ring { width: 56px; height: 56px; opacity: 1; }
.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__ring { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* Progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--clay), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}
.js .principles .principle:nth-child(2),
.js .feature-grid .feature-card:nth-child(2) { transition-delay: 0.07s; }
.js .principles .principle:nth-child(3),
.js .feature-grid .feature-card:nth-child(3) { transition-delay: 0.14s; }
.js .principles .principle:nth-child(4),
.js .feature-grid .feature-card:nth-child(4) { transition-delay: 0.21s; }
.js .feature-grid .feature-card:nth-child(5) { transition-delay: 0.28s; }
.js .feature-grid .feature-card:nth-child(6) { transition-delay: 0.35s; }

/* ------------------------------
   Intro
------------------------------ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--paper);
  pointer-events: none;
  animation: introLift 0.9s var(--ease-2) 1.15s forwards;
}
.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: introFade 0.6s var(--ease) 0.7s both;
}
.intro__mark { color: var(--ink); }
.intro__mark path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw 0.9s var(--ease) 0.15s forwards;
}
.intro__name {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--ink-3);
}
.intro__meta {
  display: flex;
  gap: 18px;
  font-size: 0.72rem;
  color: var(--muted);
}
.intro__meta span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--clay);
}
.intro__bar {
  width: 150px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.intro__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  animation: introBar 1.15s var(--ease) 0.25s forwards;
}

@keyframes introBar { to { transform: scaleX(1); } }
@keyframes introFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes introLift {
  to { transform: translateY(-101%); visibility: hidden; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.intro-skip .intro { display: none; }
.intro-skip .hero__eyebrow,
.intro-skip .hero__lead,
.intro-skip .hero__cta,
.intro-skip .hero__stats,
.intro-skip .hero__visual { animation-delay: 0s; }
.intro-skip .line { animation-delay: 0.12s; }
.intro-skip .line-mask:nth-child(2) .line { animation-delay: 0.22s; }
.intro-skip .line-mask:nth-child(3) .line { animation-delay: 0.32s; }
.intro-skip .line-mask:nth-child(4) .line { animation-delay: 0.42s; }
.intro-skip .circle-draw path { animation-delay: 0.55s; }
.intro-skip .hero__line-art .draw-path { animation-delay: 0.35s; }
.intro-skip .line-dot { animation-delay: 0.3s; }
.intro-skip .line-dot--end { animation-delay: 1.9s; }

/* ------------------------------
   Navigation
------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  transition: background-color 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(240, 238, 230, 0.78);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-color: var(--line-soft);
}
.nav.is-dark.is-scrolled {
  background: rgba(9, 23, 18, 0.78);
  border-color: var(--forest-line-soft);
}
.nav.is-dark .brand__mark,
.nav.is-dark .brand__word { color: var(--paper); }
.nav.is-dark .nav__links a { color: #9fb0a4; }
.nav.is-dark .nav__links a:hover,
.nav.is-dark .nav__links a.is-current { color: var(--paper); }
.nav.is-dark .nav__links a::after { background: var(--lime); }
.nav.is-dark .btn--ghost { border-color: var(--forest-line); color: var(--paper); background: rgba(255, 255, 255, 0.03); }
.nav.is-dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.nav.is-dark .nav__toggle { border-color: var(--forest-line); }
.nav.is-dark .nav__toggle span { background: var(--paper); }
.nav.is-menu-open,
.nav.is-dark.is-menu-open {
  background: var(--paper);
  border-color: var(--line-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.is-menu-open .brand__mark,
.nav.is-menu-open .brand__word,
.nav.is-dark.is-menu-open .brand__mark,
.nav.is-dark.is-menu-open .brand__word { color: var(--ink); }
.nav.is-menu-open .nav__links a,
.nav.is-dark.is-menu-open .nav__links a { color: var(--ink-3); }
.nav.is-menu-open .btn--ghost,
.nav.is-dark.is-menu-open .btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.18); }
.nav.is-menu-open .nav__toggle,
.nav.is-dark.is-menu-open .nav__toggle { border-color: var(--line); }
.nav.is-menu-open .nav__toggle span,
.nav.is-dark.is-menu-open .nav__toggle span { background: var(--ink); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark { color: var(--ink); transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__word {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  font-size: 0.8rem;
  color: var(--ink-3);
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); }
.mobile-menu a.is-current { color: var(--clay); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__home { white-space: nowrap; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 79;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 72px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 28px var(--pad) 36px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 19, 0.25);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
}
.mobile-menu a span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--clay-deep);
  letter-spacing: 0.12em;
}
.mobile-menu__note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px 0 96px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb--clay {
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  right: -8%;
  top: 2%;
  background: radial-gradient(circle, rgba(210, 96, 58, 0.36), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}
.orb--lime {
  width: 38vw;
  height: 38vw;
  max-width: 560px;
  max-height: 560px;
  left: -10%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(215, 224, 75, 0.26), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 20, 19, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 19, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 55% 42%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 42%, #000 10%, transparent 72%);
  opacity: 0.7;
}

.hero__grid-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.hero__copy { position: relative; z-index: 3; }
.hero__eyebrow { animation: fadeUp 0.9s var(--ease) 1.35s both; }
.hero__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.04em;
}
.line {
  display: block;
  transform: translateY(112%);
  animation: lineUp 1.15s var(--ease) 1.48s forwards;
}
.line-mask:nth-child(2) .line { animation-delay: 1.6s; }
.line-mask:nth-child(3) .line { animation-delay: 1.72s; }
.line-mask:nth-child(4) .line { animation-delay: 1.84s; }
@keyframes lineUp { to { transform: translateY(0); } }

.circled {
  position: relative;
  display: inline-block;
  color: var(--clay);
  font-style: normal;
  padding: 0 0.06em;
  isolation: isolate;
}
.circle-draw {
  position: absolute;
  left: -5%;
  top: -12%;
  width: 110%;
  height: 126%;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}
.circle-draw path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.5s var(--ease) 2.25s forwards;
  opacity: 0.8;
}

.hero__lead {
  max-width: 560px;
  margin-top: 34px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.9;
  color: var(--ink-3);
  animation: fadeUp 0.9s var(--ease) 1.85s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  animation: fadeUp 0.9s var(--ease) 1.95s both;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
  animation: fadeUp 0.9s var(--ease) 2.05s both;
}
.stat dt {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  line-height: 1;
}
.stat__unit {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 2px;
}
.stat__word {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.04;
  min-height: 540px;
  animation: heroVisualIn 1.2s var(--ease) 1.7s both;
  will-change: transform;
}
@keyframes heroVisualIn {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: none; }
}

.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border-radius: 50%;
  border: 1px dashed rgba(20, 20, 19, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit--outer { width: 84%; aspect-ratio: 1; animation: spin 70s linear infinite; }
.orbit--inner { width: 58%; aspect-ratio: 1; border-style: solid; border-color: rgba(20, 20, 19, 0.08); animation: spin 46s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}
.orbit--outer::before { top: 8%; left: 22%; }
.orbit--outer::after { bottom: 14%; right: 16%; background: var(--lime); }
.orbit--inner::before { top: 50%; left: -3px; background: var(--ink); }
.orbit--inner::after { bottom: 4%; left: 26%; background: var(--lime); }

.hero__line-art {
  position: absolute;
  inset: 4% 2% 2% 4%;
  pointer-events: none;
  opacity: 0.9;
}
.hero__line-art svg { width: 100%; height: 100%; }
.hero__line-art .draw-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.4s var(--ease) 2.15s forwards;
}
.line-dot { opacity: 0; animation: dotIn 0.5s var(--ease) 2.1s forwards; }
.line-dot--end { animation-delay: 4.1s; }
@keyframes dotIn { to { opacity: 1; } }

@keyframes float {
  from { transform: translateY(-5px); }
  to { transform: translateY(7px); }
}

.mini-card {
  position: absolute;
  z-index: 3;
  width: 226px;
  padding: 16px 17px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -26px rgba(20, 20, 19, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  will-change: transform;
}
.mini-card--principle { right: 0; top: 8%; animation: float 7.5s ease-in-out -1.2s infinite alternate; }
.mini-card--account {
  left: 0;
  bottom: 7%;
  background: rgba(14, 33, 26, 0.94);
  border-color: var(--forest-line);
  color: var(--paper);
  box-shadow: 0 28px 70px -28px rgba(9, 23, 18, 0.7);
  animation: float 8s ease-in-out -4.4s infinite alternate;
}
.mini-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.mini-card__demo {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.48rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.mini-card--account .mini-card__demo { border-color: var(--forest-line); color: #9fb0a4; }
.mini-card--account .mini-card__top { color: #9fb0a4; }
.mini-card__statement {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.mini-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 0.62rem;
  color: var(--ink-3);
}
.mini-card--account .mini-card__row { color: #b9c5bb; }
.mini-card--account .mini-card__row .muted { color: #9fb0a4; }
.mini-card__row .muted { color: var(--muted); }
.tag {
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}
.tag--lime { background: var(--lime); color: var(--forest); font-weight: 600; }
.mini-bars {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  height: 4px;
}
.mini-bars span { display: block; width: var(--w); border-radius: 999px; background: var(--clay); opacity: 0.85; }
.mini-bars span:nth-child(2) { background: var(--blue); }
.mini-bars span:nth-child(3) { background: var(--green); }
.mini-bars span:nth-child(4) { background: var(--sand); }

.hero__stamp {
  position: absolute;
  right: -2%;
  top: 44%;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.7;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.scroll-cue__line {
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line);
  position: relative;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 60%;
  background: var(--clay);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { top: -60%; }
  60%, 100% { top: 110%; }
}

/* ------------------------------
   Ticker
------------------------------ */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink);
  color: var(--paper);
  padding: 16px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #d9d5c8;
  white-space: nowrap;
}
.ticker i { font-style: normal; color: var(--lime); font-size: 0.7rem; }
/* No-JS fallbacks for content that JS normally reveals or switches. */
html:not(.js) .phone__img { opacity: 1; }
html:not(.js) .phone__img:not(.is-active) { display: none; }
html:not(.js) .ocr-result li { opacity: 1; transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------
   Chapters
------------------------------ */
.chapter {
  position: relative;
  padding: clamp(96px, 12vw, 176px) 0;
  overflow: hidden;
}
.chapter__head { position: relative; z-index: 2; }
.chapter__index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chapter__num { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; color: var(--clay-deep); }
.chapter__slash { color: var(--line-strong); }
.chapter__head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-top: 28px;
}
.chapter__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.4vw, 5.3rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.accent-clay { color: var(--clay); }
.accent-lime { color: var(--lime); }
.chapter__intro p {
  max-width: 540px;
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  line-height: 1.85;
  color: var(--ink-3);
}
.chapter__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.chapter__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.chapter__glow--clay {
  width: 50vw;
  height: 50vw;
  max-width: 720px;
  max-height: 720px;
  right: -14%;
  top: 6%;
  background: radial-gradient(circle, rgba(210, 96, 58, 0.16), transparent 68%);
}

/* ------------------------------
   Finance showcase
------------------------------ */
.chapter--finance { background: var(--paper); }

.showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}
.showcase__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  text-align: left;
  padding: 21px 4px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  transition: color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.tab:hover { color: var(--ink); padding-left: 8px; }
.tab__num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 4px;
  transition: color 0.35s;
}
.tab__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tab__text small {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}
.tab.is-active { color: var(--ink); }
.tab.is-active .tab__num { color: var(--clay-deep); }
.tab.is-active .tab__text strong { font-weight: 600; }
.tab__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.tab__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
}
.tab.is-active .tab__bar span { animation: tabFill 5.6s linear forwards; }
.showcase:hover .tab.is-active .tab__bar span,
.showcase:focus-within .tab.is-active .tab__bar span { animation-play-state: paused; }
@keyframes tabFill { to { transform: scaleX(1); } }

.showcase__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  perspective: 1200px;
}
.phone-wrap {
  position: relative;
  width: clamp(250px, 25vw, 318px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  z-index: 2;
}
.phone {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}
.phone__frame {
  position: relative;
  padding: 8px;
  border-radius: 52px;
  background: linear-gradient(145deg, #2a2a27, #111110 40%, #1c1c1a);
  box-shadow:
    0 60px 110px -34px rgba(20, 20, 19, 0.45),
    0 20px 40px -20px rgba(20, 20, 19, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone__frame::before,
.phone__frame::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 2px;
  border-radius: 2px;
  background: #2b2b28;
}
.phone__frame::before { top: 18%; height: 8%; }
.phone__frame::after { top: 30%; height: 12%; }
.phone__island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 23px;
  border-radius: 999px;
  background: #050505;
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone__screen {
  position: relative;
  aspect-ratio: 800 / 1740;
  border-radius: 45px;
  overflow: hidden;
  background: #0b0b0a;
}
.phone__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035) translateY(10px);
  transition: opacity 0.65s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.phone__img.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  cursor: zoom-in;
}
.phone__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 18%, transparent 34%);
  mix-blend-mode: screen;
}
.phone__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -34px;
  height: 44px;
  background: radial-gradient(ellipse at center, rgba(20, 20, 19, 0.32), transparent 68%);
  filter: blur(14px);
  z-index: -1;
}
.phone__zoom {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 246, 240, 0.8);
  backdrop-filter: blur(10px);
  font-size: 0.66rem;
  color: var(--ink-3);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}
.phone__zoom .icon { width: 13px; height: 13px; }
.phone-wrap:hover .phone__zoom,
.phone__zoom:focus-visible { opacity: 1; }
.phone__zoom:hover { background: var(--paper-2); }

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -24px rgba(20, 20, 19, 0.35);
  animation: float 7s ease-in-out infinite alternate;
}
.float-chip__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(210, 96, 58, 0.12);
  color: var(--clay-deep);
}
.float-chip__icon .icon { width: 17px; height: 17px; }
.float-chip b { display: block; font-size: 0.72rem; font-weight: 600; line-height: 1.35; }
.float-chip small { display: block; font-size: 0.6rem; color: var(--muted); line-height: 1.4; }
.float-chip--ocr { left: -2%; top: 17%; }
.float-chip--privacy { right: -3%; bottom: 18%; animation-delay: -3.5s; }
.float-chip--privacy .float-chip__icon { background: rgba(79, 139, 111, 0.13); color: var(--green); }

.showcase__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
}
.showcase__caption .micro {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ------------------------------
   Feature grids
------------------------------ */
.feature-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(70px, 9vw, 110px);
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.5);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, background-color 0.45s, box-shadow 0.45s;
}
.feature-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 96, 58, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 0.5s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 96, 58, 0.32);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 30px 60px -40px rgba(20, 20, 19, 0.28);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.feature-card h3 {
  position: relative;
  margin-top: 22px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.feature-card p {
  position: relative;
  margin-top: 9px;
  font-size: 0.84rem;
  line-height: 1.78;
  color: var(--ink-3);
}
.feature-card__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(233, 229, 218, 0.65), rgba(248, 246, 240, 0.25));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.feature-grid--finance .feature-card__visual { height: 192px; }
@media (max-width: 640px) { .feature-grid--finance .feature-card__visual { height: auto; min-height: 112px; } }

/* Finance card visuals */
.mini-scan { width: 100%; max-width: 210px; position: relative; padding: 6px 0; }
.mini-scan__row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(20, 20, 19, 0.12);
}
.mini-scan__row span { height: 5px; border-radius: 999px; background: rgba(20, 20, 19, 0.14); }
.mini-scan__row span:first-child { width: 82%; }
.mini-scan__row span:last-child { background: rgba(210, 96, 58, 0.24); }
.mini-scan__beam {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0;
  height: 28px;
  border-top: 1.5px solid var(--clay);
  background: linear-gradient(180deg, transparent, rgba(210, 96, 58, 0.15));
  animation: miniScan 3.6s ease-in-out infinite;
}
@keyframes miniScan {
  0%, 10% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(76px); opacity: 1; }
  85%, 100% { transform: translateY(76px); opacity: 0; }
}
.spark { width: 100%; max-width: 220px; color: var(--clay); }
.spark__line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: sparkDraw 2.4s var(--ease) infinite;
}
@keyframes sparkDraw {
  0% { stroke-dashoffset: 320; }
  55%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -320; }
}
.market-chips { display: flex; gap: 5px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.market-chips span {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.58rem;
  color: var(--ink-3);
}
.donut {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(var(--clay) 0 25.9%, var(--blue) 25.9% 46.8%, var(--green) 46.8% 61.6%, var(--sand) 61.6% 100%);
  display: grid;
  place-items: center;
  position: relative;
  animation: donutIn 1.4s var(--ease) both;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--paper-2);
}
.donut span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.donut small { font-size: 0.55rem; }
@keyframes donutIn { from { transform: rotate(-40deg) scale(0.86); opacity: 0; } }
.donut-legend { margin-top: 12px; display: grid; gap: 4px; width: 100%; max-width: 200px; }
.donut-legend li { display: flex; align-items: center; gap: 7px; font-size: 0.6rem; color: var(--ink-3); }
.dot { width: 6px; height: 6px; border-radius: 2px; display: inline-block; }
.dot--clay { background: var(--clay); }
.dot--blue { background: var(--blue); }
.dot--green { background: var(--green); }
.cash-pills { display: flex; gap: 8px; }
.cash-pill {
  padding: 6px 11px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.cash-pill--cny { color: var(--clay-deep); border-color: rgba(210, 96, 58, 0.3); }
.cash-pill--hkd { color: #6b5fae; border-color: rgba(107, 95, 174, 0.3); }
.cash-pill--usd { color: #3f74a8; border-color: rgba(63, 116, 168, 0.3); }
.cash-bars { display: flex; gap: 3px; width: 100%; max-width: 210px; margin-top: 14px; height: 6px; }
.cash-bars span { width: var(--w); border-radius: 999px; background: var(--clay); }
.cash-bars span:nth-child(2) { background: #8b7fc7; }
.cash-bars span:nth-child(3) { background: #6e93c8; }
.visual-note { margin-top: 10px; font-size: 0.58rem; color: var(--muted); letter-spacing: 0.03em; }
.dividend-bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 86px;
  padding-top: 10px;
}
.dividend-bars span {
  position: relative;
  display: block;
  width: 26px;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--clay), rgba(210, 96, 58, 0.55));
  animation: barGrow 1.1s var(--ease) both;
  transform-origin: bottom;
}
.dividend-bars span:nth-child(2) { animation-delay: 0.1s; }
.dividend-bars span:nth-child(3) { animation-delay: 0.2s; }
.dividend-bars span:nth-child(4) { animation-delay: 0.3s; }
.dividend-bars i {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.52rem;
  color: var(--muted);
}
@keyframes barGrow { from { transform: scaleY(0); } }
.widget-mock {
  width: 168px;
  padding: 12px 13px;
  border-radius: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 35px -22px rgba(20, 20, 19, 0.4);
  transform: rotate(-4deg);
  transition: transform 0.4s var(--ease);
}
.feature-card:hover .widget-mock { transform: rotate(0); }
.widget-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  color: var(--ink-3);
}
.widget-mock__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.widget-mock__ring {
  width: 62px;
  height: 62px;
  margin: 10px auto;
  border-radius: 50%;
  background: conic-gradient(var(--clay) 0 62%, rgba(20, 20, 19, 0.09) 62% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.widget-mock__ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--paper-2);
}
.widget-mock__ring span { position: relative; z-index: 1; font-family: var(--serif); font-size: 0.95rem; }
.widget-mock__ring small { font-size: 0.5rem; }
.widget-mock__rows { display: grid; gap: 3px; font-size: 0.55rem; color: var(--muted); }
.widget-mock__rows span { display: flex; justify-content: space-between; gap: 8px; }

/* ------------------------------
   OCR demo
------------------------------ */
.ocr-demo {
  position: relative;
  z-index: 2;
  margin-top: clamp(70px, 9vw, 110px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(248, 246, 240, 0.7);
  box-shadow: 0 40px 90px -60px rgba(20, 20, 19, 0.35);
  overflow: hidden;
}
.ocr-demo::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 96, 58, 0.14), transparent 68%);
  pointer-events: none;
}
.ocr-demo__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.ocr-demo__head h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ocr-demo__copy {
  max-width: 390px;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ink-3);
}
.ocr-demo__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  margin-top: 36px;
}
.ocr-source {
  position: relative;
  height: 336px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 20px 45px -34px rgba(20, 20, 19, 0.4);
}
.ocr-source__bar,
.ocr-result__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(233, 229, 218, 0.45);
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.ocr-source__dots { display: inline-flex; gap: 4px; margin-right: 7px; }
.ocr-source__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.ocr-rows { padding: 14px 15px; }
.ocr-row {
  display: grid;
  grid-template-columns: 1.5fr 0.55fr 0.75fr;
  gap: 10px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px dashed rgba(20, 20, 19, 0.13);
  font-size: 0.74rem;
  opacity: 0.55;
  transition: opacity 0.35s, background 0.35s, box-shadow 0.35s;
}
.ocr-row span { display: flex; flex-direction: column; gap: 1px; font-weight: 500; }
.ocr-row small { font-size: 0.58rem; font-weight: 400; color: var(--muted); }
.ocr-row b { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-3); text-align: right; }
.ocr-row.is-lit {
  opacity: 1;
  background: rgba(210, 96, 58, 0.07);
  box-shadow: inset 2px 0 0 var(--clay);
}
.ocr-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58px;
  border-top: 1.5px solid var(--clay);
  background: linear-gradient(180deg, transparent, rgba(210, 96, 58, 0.14));
  box-shadow: 0 0 24px rgba(210, 96, 58, 0.2);
  opacity: 0;
  pointer-events: none;
}
.ocr-demo.is-running .ocr-scan { animation: ocrScan 5.2s var(--ease) infinite; }
@keyframes ocrScan {
  0% { transform: translateY(36px); opacity: 0; }
  8% { opacity: 1; }
  62% { transform: translateY(270px); opacity: 1; }
  72%, 100% { transform: translateY(270px); opacity: 0; }
}
.ocr-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--clay);
}
.ocr-flow span { font-family: var(--mono); font-size: 0.51rem; letter-spacing: 0.16em; color: var(--muted); }
.ocr-result {
  height: 336px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px -34px rgba(20, 20, 19, 0.4);
}
.ocr-result__time { color: var(--clay-deep); font-family: var(--mono); font-size: 0.58rem; }
.ocr-result ul { padding: 8px 14px; flex: 1; }
.ocr-result li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(20, 20, 19, 0.11);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.ocr-demo.is-running .ocr-result li.is-in { opacity: 1; transform: none; }
.check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
}
.check .icon { width: 11px; height: 11px; }
.ocr-result li > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ocr-result li b { font-size: 0.72rem; font-weight: 600; }
.ocr-result li small { font-size: 0.57rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocr-result li em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 0.56rem; color: var(--green); }
.ocr-result__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
}
.ocr-result__action .icon { width: 16px; height: 16px; }
.ocr-demo > .micro { position: relative; z-index: 1; margin-top: 14px; }

/* ------------------------------
   Number bands
------------------------------ */
.number-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(70px, 9vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.number-band__item {
  padding: 30px 22px 30px 0;
  border-right: 1px solid var(--line);
}
.number-band__item:not(:first-child) { padding-left: 26px; }
.number-band__item:last-child { border-right: 0; }
.number-band__item strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.number-band__item strong small {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--clay-deep);
  letter-spacing: 0.02em;
}
.number-band__item > span {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.number-band--tennis { border-color: var(--forest-line); }
.number-band--tennis .number-band__item { border-color: var(--forest-line); }
.number-band--tennis .number-band__item strong { color: var(--paper); }
.number-band--tennis .number-band__item strong small { color: var(--lime); }
.number-band--tennis .number-band__item > span { color: #9fb0a4; }
.number-band__footnote { margin-top: 14px; }

/* ------------------------------
   Privacy strip
------------------------------ */
.privacy-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  margin-top: clamp(70px, 9vw, 100px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-3);
  overflow: hidden;
}
.privacy-strip::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  pointer-events: none;
}
.privacy-strip__title h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.privacy-strip__copy { position: relative; z-index: 1; }
.privacy-strip__copy > p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--ink-3);
  max-width: 620px;
}
.path-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 20px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-3);
  word-break: break-all;
}
.path-chip .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--clay-deep); }
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.76rem;
  color: var(--ink-2);
  transition: color 0.3s, border-color 0.3s;
}
.inline-link .icon { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.inline-link:hover { color: var(--clay-deep); border-color: var(--clay); }
.inline-link:hover .icon { transform: translate(2px, -2px); }
.inline-link--dark { color: #d7e0d3; border-color: var(--forest-line); }
.inline-link--dark:hover { color: var(--lime); border-color: var(--lime); }
.privacy-strip--dark {
  background: var(--forest-2);
  border-color: var(--forest-line);
}
.privacy-strip--dark::after { background: radial-gradient(circle, rgba(215, 224, 75, 0.07), transparent 70%); }
.privacy-strip--dark .kicker { color: var(--lime); }
.privacy-strip--dark h3 { color: var(--paper); }
.privacy-strip--dark .privacy-strip__copy > p { color: #b3c0b6; }
.privacy-strip--dark .path-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--forest-line);
  color: #c9d2c7;
}
.privacy-strip--dark .path-chip .icon { color: var(--lime); }

/* ------------------------------
   Tennis
------------------------------ */
.chapter--tennis {
  background: var(--forest);
  color: var(--paper);
  padding-top: clamp(120px, 14vw, 200px);
}
.tennis__court {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: var(--lime);
  opacity: 0.2;
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 76%);
  pointer-events: none;
}
.tennis__court svg { width: 100%; height: 100%; }
.tennis__glow {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 780px;
  max-height: 780px;
  right: -16%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 224, 75, 0.1), transparent 68%);
  filter: blur(70px);
  pointer-events: none;
}
.chapter__head--dark .chapter__index { color: #93a398; }
.chapter__head--dark .chapter__num { color: var(--lime); }
.chapter__head--dark .chapter__slash { color: rgba(240, 238, 230, 0.24); }
.chapter__head--dark .chapter__title { color: var(--paper); }
.chapter__head--dark .chapter__intro p { color: #b3c0b6; }

.browser-showcase {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 6vw, 74px);
}
.browser {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: #0b1511;
  overflow: hidden;
  box-shadow: 0 70px 140px -50px #000, 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 18px;
  background: #0e1a15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #31433a; }
.browser__dots i:first-child { background: #5b3a31; }
.browser__dots i:nth-child(2) { background: #5b5431; }
.browser__dots i:nth-child(3) { background: #31523d; }
.browser__url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #a9b8ad;
  letter-spacing: 0.03em;
}
.browser__url .icon { width: 11px; height: 11px; color: var(--lime); }
.browser__url span { color: #8a9c90; }
.browser__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.browser__badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215, 224, 75, 0.12); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(215, 224, 75, 0.1); }
  50% { box-shadow: 0 0 0 7px rgba(215, 224, 75, 0.02); }
}
.browser__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050b08;
}
.browser__zoom {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.browser__zoom:focus-visible { outline-offset: -4px; }
.browser__zoom img {
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
}
.browser-showcase figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 4px 0;
  font-size: 0.76rem;
  color: #a9b8ad;
}
.browser-showcase figcaption .micro { color: #71857a; }

/* Phase panel */
.phase-panel {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--forest-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.022);
}
.phase-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.phase-panel .kicker { color: var(--lime); }
.phase-panel h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--forest-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  flex: 0 0 auto;
}
.segmented__btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #9fb0a4;
  transition: background 0.3s, color 0.3s;
}
.segmented__btn.is-active { background: var(--lime); color: var(--forest); font-weight: 600; }
.phases {
  display: grid;
  grid-template-columns: repeat(var(--phase-cols, 7), minmax(0, 1fr));
  gap: 7px;
  margin-top: 28px;
}
.phase {
  position: relative;
  padding: 16px 12px 14px;
  border-top: 2px solid var(--forest-line);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.phase__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #8a9c90;
  transition: color 0.4s;
}
.phase__name {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper);
  transition: color 0.4s;
}
.phase__desc {
  display: block;
  margin-top: 6px;
  font-size: 0.64rem;
  line-height: 1.55;
  color: #8fa095;
  transition: color 0.4s;
}
.phase.is-active {
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-5px);
}
.phase.is-active .phase__num,
.phase.is-active .phase__name,
.phase.is-active .phase__desc { color: var(--forest); }
.phase-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: #8fa095;
}
.phase-note .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--lime); }

/* Tennis feature cards */
.feature-card--dark {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--forest-line);
}
.feature-card--dark::before { background: radial-gradient(circle, rgba(215, 224, 75, 0.1), transparent 68%); }
.feature-card--dark:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(215, 224, 75, 0.32);
  box-shadow: 0 30px 60px -40px #000;
}
.feature-card--dark h3 { color: var(--paper); }
.feature-card--dark p { color: #a9b5ac; }
.feature-card--dark .feature-card__num { color: #6f8276; }
.feature-card--dark .feature-card__visual {
  background: linear-gradient(145deg, rgba(215, 224, 75, 0.06), rgba(255, 255, 255, 0.015));
  border-color: var(--forest-line-soft);
}

.detect-frame {
  position: relative;
  width: 170px;
  height: 104px;
  border: 1px solid rgba(215, 224, 75, 0.28);
  border-radius: 12px;
  background: radial-gradient(circle at 60% 40%, rgba(215, 224, 75, 0.1), transparent 60%);
}
.detect-frame::before,
.detect-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--lime);
  border-style: solid;
}
.detect-frame::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.detect-frame::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.detect-frame__line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 224, 75, 0.4), transparent);
  animation: detectLine 3.4s ease-in-out infinite;
}
@keyframes detectLine {
  0%, 100% { transform: translateY(-26px); opacity: 0; }
  20%, 80% { opacity: 1; }
  50% { transform: translateY(26px); }
}
.detect-tag {
  position: absolute;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(215, 224, 75, 0.12);
  border: 1px solid rgba(215, 224, 75, 0.28);
  color: var(--lime);
  font-size: 0.52rem;
  white-space: nowrap;
}
.detect-tag--1 { left: 18%; top: 22%; }
.detect-tag--2 { right: 8%; top: 42%; }
.detect-tag--3 { left: 30%; bottom: 16%; }
.detect-frame__beat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(215, 224, 75, 0.5);
  animation: beat 2.2s ease-out infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(215, 224, 75, 0.4); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(215, 224, 75, 0); }
}
.metric-bars { width: 100%; max-width: 220px; display: grid; gap: 9px; }
.metric-bars span { display: grid; grid-template-columns: 52px 1fr 28px; gap: 8px; align-items: center; }
.metric-bars i { font-style: normal; font-size: 0.56rem; color: #a9b5ac; }
.metric-bars b {
  display: block;
  width: var(--w);
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime), #a8b83b);
  transform-origin: left;
  animation: barGrowX 1.3s var(--ease) both;
}
.metric-bars span:nth-child(2) b { animation-delay: .12s; }
.metric-bars span:nth-child(3) b { animation-delay: .24s; }
.metric-bars span:nth-child(4) b { animation-delay: .36s; }
@keyframes barGrowX { from { transform: scaleX(0); } }
.metric-bars em { font-style: normal; font-family: var(--mono); font-size: 0.55rem; color: var(--lime); text-align: right; }
.feature-card__visual--radar { color: var(--lime); }
.radar { width: 180px; height: 164px; }
.radar__shape {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: radarDraw 2s var(--ease) both;
}
@keyframes radarDraw { to { stroke-dashoffset: 0; } }
.radar__dot { animation: dotIn 0.4s ease both 1.4s; }
.grade-badge {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--forest);
  transform: rotate(4deg);
}
.grade-badge span { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.grade-badge small { font-size: 0.44rem; letter-spacing: 0.04em; }
.advice-list { display: grid; gap: 7px; width: 100%; max-width: 230px; }
.advice-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--forest-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.56rem;
  color: #b9c5bb;
}
.advice-list__prio {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(215, 224, 75, 0.12);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.48rem;
}
.advice-list li > span:nth-child(2) { flex: 1; line-height: 1.45; }
.advice-list .icon { width: 11px; height: 11px; color: #6f8276; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 240px; }
.plan-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid var(--forest-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.plan-grid b { font-family: var(--mono); font-size: 0.52rem; color: var(--lime); }
.plan-grid i { font-style: normal; font-size: 0.52rem; color: #b9c5bb; line-height: 1.3; }
.plan-grid em { display: block; height: 3px; border-radius: 99px; background: rgba(215, 224, 75, 0.3); margin-top: 2px; }
.plan-grid span:nth-child(2) em { background: rgba(215, 224, 75, 0.5); }
.plan-grid span:nth-child(3) em { background: rgba(215, 224, 75, 0.7); }
.plan-grid span:nth-child(4) em { background: var(--lime); }
.replay-strip {
  position: relative;
  display: flex;
  gap: 5px;
  width: 100%;
  max-width: 240px;
}
.replay-strip span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid var(--forest-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.replay-strip span.is-active { border-color: var(--lime); background: rgba(215, 224, 75, 0.1); }
.replay-strip i { font-style: normal; font-family: var(--mono); font-size: 0.5rem; color: #6f8276; }
.replay-strip b { font-size: 0.5rem; font-weight: 400; color: #b9c5bb; }
.replay-strip span.is-active i,
.replay-strip span.is-active b { color: var(--lime); }
.replay-strip__playhead {
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 18%;
  background: var(--lime);
  animation: replayPlayhead 5s ease-in-out infinite alternate;
}
@keyframes replayPlayhead { to { left: 82%; } }
.replay-keys { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 0.5rem; color: #8a9c90; }
.replay-keys kbd {
  padding: 1px 5px;
  border: 1px solid var(--forest-line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.48rem;
  color: #b9c5bb;
}

/* Report */
.report-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 130px);
}
.report-showcase__copy h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.report-showcase__copy > p:not(.kicker):not(.micro) {
  max-width: 430px;
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #a9b5ac;
}
.report-showcase__copy .micro { margin-top: 18px; }
.report-card {
  position: relative;
  padding: 13px;
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: 0 50px 100px -40px #000;
  transform: rotate(1.4deg);
  transition: transform 0.5s var(--ease);
}
.report-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 90px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(215, 224, 75, 0.72);
  opacity: 0.85;
}
.report-card:hover { transform: rotate(0) translateY(-4px); }
.report-card__button { display: block; width: 100%; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.report-card img { width: 100%; height: auto; }
.report-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-3);
}
.report-card figcaption .micro { color: var(--muted); }

/* Terminal */
.terminal {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: clamp(70px, 9vw, 110px) auto 0;
  border: 1px solid var(--forest-line);
  border-radius: 16px;
  background: #06100b;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px #000;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #71857a;
  letter-spacing: 0.04em;
}
.terminal__dots { display: flex; gap: 5px; }
.terminal__dots i { width: 7px; height: 7px; border-radius: 50%; background: #263a2f; }
.terminal__badge { margin-left: auto; color: var(--lime); letter-spacing: 0.12em; }
.terminal__body {
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 2;
  color: #b9c5bb;
  white-space: pre-wrap;
  overflow-x: auto;
}
.t-prompt { color: var(--lime); }
.t-cmd { color: var(--paper); }
.t-out { display: block; color: #8fb79d; }
.t-link { display: block; color: var(--lime); }
.t-cursor { color: var(--lime); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal__note { padding: 0 24px 16px; }

/* Gallery */
.gallery {
  position: relative;
  z-index: 2;
  margin-top: clamp(80px, 10vw, 130px);
}
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.gallery__head .kicker { color: var(--lime); }
.gallery__head h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--paper);
}
.gallery__head > p {
  max-width: min(430px, 100%);
  font-size: 0.8rem;
  line-height: 1.8;
  color: #a9b5ac;
}
.gallery__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  align-items: start;
}
.gallery__note { margin-top: 24px; }
.gallery__item:nth-child(even) { transform: translateY(18px); }
.gallery__item button {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
  box-shadow: 0 30px 60px -34px #000;
}
.gallery__item button:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 224, 75, 0.45);
  box-shadow: 0 40px 70px -30px #000;
}
.gallery__item img { width: 100%; height: auto; }
.gallery__item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 4px 0;
}
.gallery__item figcaption b { font-size: 0.72rem; font-weight: 500; color: var(--paper); }
.gallery__item figcaption span { font-size: 0.6rem; color: #7d9084; }

/* Light gallery (finance iPhone Duo) */
.gallery--light .gallery__head .kicker { color: var(--clay-deep); }
.gallery--light .gallery__head h3 { color: var(--ink); }
.gallery--light .gallery__head > p { color: var(--ink-3); }
.gallery--light .gallery__item button {
  background: var(--paper-3);
  border-color: var(--line);
  box-shadow: 0 26px 55px -38px rgba(20, 20, 19, 0.38);
}
.gallery--light .gallery__item button:hover {
  border-color: rgba(210, 96, 58, 0.45);
  box-shadow: 0 36px 65px -38px rgba(20, 20, 19, 0.42);
}
.gallery--light .gallery__item figcaption b { color: var(--ink); }
.gallery--light .gallery__item figcaption span { color: var(--muted); }
.gallery--light .gallery__note { color: var(--muted); }

/* iPhone Duo contact sheet: mixed portrait / landscape plates */
.gallery--duo .gallery__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--duo .gallery__item button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(260px, 30vw, 440px);
  padding: 10px;
}
.gallery--duo .gallery__item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* ============================================================
   iPhone Duo shells for the Duo gallery
   Opt-in via .gallery--framed. The existing data-zoom button
   becomes the chassis, so the image keeps its own aspect ratio
   and is never cropped. The chassis mirrors .phone__frame.
   --duo-h     = max screen height
   --duo-ratio = served WebP width / height; caps the chassis width
   ============================================================ */
.duo-device {
  --duo-h: clamp(300px, 38vw, 440px);
  --duo-ratio: 0.6870;      /* 900 / 1310  - source 1398 / 2034 */
  --duo-bezel: 8px;
  --duo-radius: clamp(34px, 3.6vw, 52px);
}
.duo-device--inner-landscape {
  --duo-h: clamp(220px, 32vw, 360px);
  --duo-ratio: 1.4213;      /* 1400 / 985   - source 2853 / 2007 */
  --duo-radius: clamp(18px, 2.6vw, 36px);
}
.duo-device--inner-portrait {
  --duo-h: clamp(300px, 38vw, 440px);
  --duo-ratio: 0.7031;      /* 900 / 1280   - source 2007 / 2853 */
  --duo-radius: clamp(24px, 3vw, 44px);
}
/* The cover screen folds against a straight hinge spine: its left
   corners are square, the free (right) edge keeps the large radius. */
.duo-device--outer {
  --duo-hinge-radius: clamp(2px, 0.45vw, 5px);
}

.gallery--duo.gallery--framed .gallery__item button.duo-device {
  position: relative;
  display: block;
  width: min(100%, calc(var(--duo-h) * var(--duo-ratio) + var(--duo-bezel) * 2));
  height: auto;
  margin-inline: auto;
  padding: var(--duo-bezel);
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: var(--duo-radius);
  background-color: transparent;
  background-image:
    linear-gradient(#0b0b0a, #0b0b0a),
    linear-gradient(145deg, #2a2a27, #111110 40%, #1c1c1a);
  background-origin: content-box, border-box;
  background-clip: content-box, border-box;
  box-shadow:
    0 60px 110px -34px rgba(20, 20, 19, 0.45),
    0 20px 40px -20px rgba(20, 20, 19, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.gallery--duo.gallery--framed .gallery__item button.duo-device > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: calc(var(--duo-radius) - var(--duo-bezel));
}
.gallery--duo.gallery--framed .gallery__item button.duo-device--outer {
  border-radius:
    var(--duo-hinge-radius) var(--duo-radius)
    var(--duo-radius) var(--duo-hinge-radius);
}
.gallery--duo.gallery--framed .gallery__item button.duo-device--outer > img {
  border-radius:
    0 calc(var(--duo-radius) - var(--duo-bezel))
    calc(var(--duo-radius) - var(--duo-bezel)) 0;
}
.gallery--duo.gallery--framed .gallery__item button.duo-device:hover,
.gallery--duo.gallery--framed .gallery__item button.duo-device:focus-visible {
  border-color: transparent;
  box-shadow:
    0 70px 120px -34px rgba(20, 20, 19, 0.5),
    0 24px 44px -20px rgba(20, 20, 19, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.gallery--duo.gallery--framed .gallery__item figcaption {
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
}
.gallery--duo.gallery--framed .gallery__item:nth-child(even) { transform: none; }

/* Outer screen: the real Duo has no top-center pill. Its Dynamic Island
   runs vertically along one side and surfaces live activities; these
   captures have none, so no island is drawn. A front camera sits in
   the top-right corner — draw only that punch-hole over the screenshot. */
.gallery--framed .duo-device--outer::before {
  content: "";
  position: absolute;
  top: calc(var(--duo-bezel) + 2.6%);
  right: calc(var(--duo-bezel) + 8.2%);
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 42%, #38405a 0 8%, #151823 10% 28%, #050506 30% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}
.gallery--framed .duo-device--outer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0 18%,
    #2b2b28 18% 26%,
    transparent 26% 30%,
    #2b2b28 30% 42%,
    transparent 42% 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Inner screens: hinge ticks in the bezel, never over the UI. */
.gallery--framed .duo-device--inner-landscape::before,
.gallery--framed .duo-device--inner-landscape::after,
.gallery--framed .duo-device--inner-portrait::before,
.gallery--framed .duo-device--inner-portrait::after {
  content: "";
  position: absolute;
  background: rgba(240, 238, 230, 0.22);
  z-index: 2;
  pointer-events: none;
}
.gallery--framed .duo-device--inner-landscape::before,
.gallery--framed .duo-device--inner-landscape::after {
  left: 50%;
  width: 1px;
  height: var(--duo-bezel);
}
.gallery--framed .duo-device--inner-landscape::before { top: 0; }
.gallery--framed .duo-device--inner-landscape::after { bottom: 0; }
.gallery--framed .duo-device--inner-portrait::before,
.gallery--framed .duo-device--inner-portrait::after {
  top: 50%;
  width: var(--duo-bezel);
  height: 1px;
}
.gallery--framed .duo-device--inner-portrait::before { left: 0; }
.gallery--framed .duo-device--inner-portrait::after { right: 0; }

/* ------------------------------
   Principles
------------------------------ */
.chapter--principles { background: var(--paper); }
.principles__head { position: relative; z-index: 2; }
.principles__head .chapter__title { margin-top: 24px; max-width: 900px; }
.principles__lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink-3);
}
.principles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(50px, 6vw, 80px);
}
.principle {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.principle__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  color: var(--clay-deep);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.principle:hover .principle__icon { transform: rotate(-6deg) translateY(-3px); background: var(--paper-2); }
.principle__icon svg { width: 34px; height: 34px; }
.principle__num {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.principle h3 { margin-top: 8px; font-size: 1.08rem; font-weight: 600; }
.principle p { margin-top: 8px; font-size: 0.82rem; line-height: 1.75; color: var(--ink-3); }

/* ------------------------------
   Maker
------------------------------ */
.chapter--maker {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
  padding-bottom: clamp(100px, 12vw, 170px);
}
.maker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.maker__copy .chapter__title { margin-top: 26px; font-size: clamp(2.5rem, 4.6vw, 4.6rem); }
.maker__lead {
  max-width: 520px;
  margin-top: 24px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--ink-3);
}
.maker__lead--small { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.maker__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.maker__visual {
  position: relative;
  min-height: 520px;
}
.maker__rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  max-width: 90%;
}
.maker__rings span {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(20, 20, 19, 0.16);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.maker__rings span:nth-child(2) { inset: 15%; border-style: solid; border-color: rgba(20, 20, 19, 0.07); animation-duration: 40s; animation-direction: reverse; }
.maker__rings span:nth-child(3) { inset: 30%; border-style: dashed; border-color: rgba(210, 96, 58, 0.18); animation-duration: 28s; }
.maker__icon {
  position: absolute;
  z-index: 2;
  width: clamp(130px, 14vw, 176px);
  padding: 10px;
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -34px rgba(20, 20, 19, 0.45);
  backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease);
}
.maker__icon img { width: 100%; border-radius: 26px; }
.maker__icon span {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.52rem;
}
.maker__icon--finance { left: 5%; top: 17%; transform: rotate(-7deg); }
.maker__icon--tennis { right: 5%; bottom: 15%; transform: rotate(6deg); }
.maker__icon--health {
  left: 50%;
  top: 4%;
  width: clamp(112px, 12vw, 150px);
  transform: translateX(-50%) rotate(2deg);
}
.maker__icon--finance:hover { transform: rotate(-2deg) translateY(-6px); }
.maker__icon--tennis:hover { transform: rotate(1deg) translateY(-6px); }
.maker__icon--health:hover { transform: translateX(-50%) rotate(1deg) translateY(-6px); }
.maker__line {
  position: absolute;
  inset: 8% 6%;
  width: 88%;
  height: 84%;
  color: rgba(20, 20, 19, 0.4);
}
.maker__line .draw-path { stroke-dasharray: 700; stroke-dashoffset: 700; }
.maker__visual.is-inview .maker__line .draw-path { animation: draw 1.8s var(--ease) 0.3s forwards; }
.maker__caption {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: var(--ink-3);
}
.maker__caption span { color: var(--muted); font-size: 0.5rem; }

/* ------------------------------
   Products
------------------------------ */
.chapter--products { background: var(--paper); }
.products__head h2 { margin-top: 26px; }
.products__head > p:not(.chapter__index) {
  max-width: 580px;
  margin-top: 22px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink-3);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(46px, 6vw, 70px);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.product-card:hover { transform: translateY(-7px); box-shadow: 0 40px 80px -40px rgba(20, 20, 19, 0.35); }
.product-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 96, 58, 0.2), transparent 68%);
  opacity: 0;
  transition: opacity 0.5s;
}
.product-card:hover::before { opacity: 1; }
.product-card--finance { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.product-card--tennis { background: var(--forest-2); color: var(--paper); border: 1px solid var(--forest-line); }
.product-card--tennis::before { background: radial-gradient(circle, rgba(215, 224, 75, 0.14), transparent 68%); }
.product-card--health { background: #262624; color: var(--paper); border: 1px solid rgba(240, 238, 230, 0.14); }
.product-card--health::before { background: radial-gradient(circle, rgba(217, 119, 87, 0.18), transparent 68%); }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.product-card__top img { border-radius: 18px; box-shadow: 0 16px 36px -18px rgba(20, 20, 19, 0.5); }
.product-card__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.45s var(--ease), background 0.35s, color 0.35s;
}
.product-card__arrow .icon { width: 18px; height: 18px; }
.product-card:hover .product-card__arrow { transform: translateX(5px); background: var(--ink); color: var(--paper); }
.product-card--tennis .product-card__arrow { border-color: var(--forest-line); color: var(--paper); }
.product-card--tennis:hover .product-card__arrow { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.product-card--health .product-card__arrow { border-color: rgba(240, 238, 230, 0.16); color: var(--paper); }
.product-card--health:hover .product-card__arrow { background: var(--clay); border-color: var(--clay); color: #fff; }
.product-card__index {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.product-card--tennis .product-card__index { color: #7d9084; }
.product-card--health .product-card__index { color: #a39c90; }
.product-card h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
}
.product-card__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}
.product-card__flow span { color: var(--clay); }
.product-card--tennis .product-card__flow { color: #d7e0d3; }
.product-card--tennis .product-card__flow span { color: var(--lime); }
.product-card--health .product-card__flow { color: #ded8cc; }
.product-card--health .product-card__flow span { color: var(--clay-soft); }
.product-card__desc { margin-top: 10px; max-width: 440px; font-size: 0.84rem; line-height: 1.8; color: var(--ink-3); }
.product-card--tennis .product-card__desc { color: #a9b5ac; }
.product-card--health .product-card__desc { color: #b6afa3; }
.product-card .chips { margin-top: 18px; }
.product-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.product-card--tennis .product-card__link { border-top-color: var(--forest-line); color: #9fb0a4; }
.product-card--health .product-card__link { border-top-color: rgba(240, 238, 230, 0.12); color: #a39c90; }
.product-card--health .chips li { border-color: rgba(240, 238, 230, 0.14); background: rgba(255, 255, 255, 0.035); color: #c9c2b6; }
.product-card__link .icon { width: 14px; height: 14px; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.product-card:hover .product-card__link .icon { transform: translateX(4px); }
.product-foot {
  position: relative;
  z-index: 2;
  margin-top: clamp(30px, 4vw, 48px);
}

/* ------------------------------
   Footer
------------------------------ */
.footer {
  background: #0a0a09;
  color: var(--paper);
  border-top: 1px solid rgba(240, 238, 230, 0.1);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 50px;
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(46px, 6vw, 70px);
}
.footer .brand__mark { color: var(--paper); }
.footer .brand__word { font-size: 1.7rem; }
.footer__brand > p { margin-top: 14px; font-family: var(--serif); font-size: 1.1rem; color: #a8aaa0; }
.footer__nav { display: flex; gap: clamp(30px, 5vw, 70px); }
.footer__nav > div { display: flex; flex-direction: column; gap: 9px; }
.footer__nav span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: #8a8c83;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__nav a { font-size: 0.82rem; color: #c9c7bd; transition: color 0.3s; }
.footer__nav a:hover { color: var(--lime); }
.footer__legal { display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.footer__legal p { font-size: 0.7rem; line-height: 1.75; color: #85877e; }
.footer__legal a {
  color: #c9c7bd;
  border-bottom: 1px solid rgba(201, 199, 189, 0.35);
  transition: color 0.3s;
}
.footer__legal a:hover { color: var(--lime); }
.footer__bottom { border-top: 1px solid rgba(240, 238, 230, 0.09); padding: 18px 0; }
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  color: #8a8c83;
}
.footer__icp {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #b4b6ac;
  white-space: nowrap;
  transition: color 0.3s;
}
.footer__icp:hover { color: var(--lime); }

/* ------------------------------
   Lightbox
------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  padding: max(40px, 5vw);
  background: rgba(6, 10, 7, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 40px 100px -30px #000;
  object-fit: contain;
}
.lightbox__figure figcaption {
  font-size: 0.78rem;
  color: #b9c5bb;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.lightbox__close .icon,
.lightbox__nav .icon { width: 18px; height: 18px; }
.lightbox__close { position: absolute; top: 24px; right: 24px; }
.lightbox__nav--prev { justify-self: start; }
.lightbox__nav--next { justify-self: end; }

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 1180px) {
  .hero__title { font-size: clamp(3.4rem, 7.6vw, 6.4rem); }
  .hero__visual { min-height: 480px; }
  .mini-card { width: 208px; }
  .showcase { grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr); gap: 40px; }
  .float-chip--ocr { left: 0; }
  .float-chip--privacy { right: 0; }
}

@media (max-width: 1024px) {
  .hero { padding-top: 116px; }
  .hero__grid-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 760px; }
  .hero__visual { width: min(620px, 100%); margin: 8px auto 0; min-height: 500px; }
  .scroll-cue { display: none; }

  .chapter__head-grid { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .chapter__intro p { max-width: 640px; }

  .showcase { grid-template-columns: 1fr; gap: 46px; }
  .showcase__tabs { order: 2; display: grid; grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 24px; }
  .tab { border-top: 1px solid var(--line); }
  .tab:nth-child(-n+2) { border-top: 0; }
  .showcase__stage { order: 1; min-height: 660px; }
  .phone-wrap { width: min(300px, 70vw); }
  .float-chip--ocr { left: 6%; top: 8%; }
  .float-chip--privacy { right: 6%; bottom: 14%; }
  .showcase__caption { bottom: -52px; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-band__item { border-bottom: 1px solid var(--line); }
  .number-band--tennis .number-band__item { border-bottom-color: var(--forest-line); }
  .number-band__item:nth-child(2n) { border-right: 0; }
  .number-band__item:nth-child(n+3) { border-bottom: 0; }

  .ocr-demo__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ocr-demo__body { grid-template-columns: 1fr; gap: 16px; }
  .ocr-flow { flex-direction: row; justify-content: center; gap: 10px; }
  .ocr-flow svg { transform: rotate(90deg); width: 32px; }
  .ocr-source, .ocr-result { height: auto; min-height: 300px; }

  .privacy-strip { grid-template-columns: 1fr; gap: 26px; }

  .phases,
  .phase-panel .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-showcase { grid-template-columns: 1fr; gap: 40px; }
  .report-showcase__copy { max-width: 620px; }
  .report-card { max-width: 640px; margin-inline: auto; }
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery__head > p { width: 100%; max-width: 430px; }
  .gallery__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery--duo .gallery__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item:nth-child(4), .gallery__item:nth-child(5) { transform: none; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card--health { grid-column: 1 / -1; min-height: 0; }

  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .maker { grid-template-columns: 1fr; gap: 30px; }
  .maker__copy { max-width: 680px; }
  .maker__visual { min-height: 480px; width: min(600px, 100%); margin-inline: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card--health { grid-column: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  html:not(.js) .nav__inner { height: auto; min-height: 64px; flex-wrap: wrap; padding-block: 10px; row-gap: 8px; }
  html:not(.js) .nav__links { display: flex; flex-wrap: wrap; gap: 8px 18px; order: 3; width: 100%; }
  html:not(.js) .nav__toggle { display: none; }
  .nav__home span { display: none; }
  .nav__home { padding: 0 12px; }
  .hero__title { font-size: clamp(3rem, 12vw, 5rem); }
  .hero__stats { gap: 26px; }
  .hero__visual { min-height: 430px; }
  .mini-card { width: 188px; padding: 13px 14px; }
  .hero__stamp { display: none; }
  .mini-card--principle { right: -2%; top: 2%; }
  .mini-card--account { left: -2%; bottom: 2%; }

  .showcase__tabs { grid-template-columns: 1fr; }
  .tab:nth-child(2) { border-top: 1px solid var(--line); }
  .showcase__stage { min-height: 600px; }
  .float-chip--ocr { left: 0; top: 4%; }
  .float-chip--privacy { right: 0; bottom: 10%; }

  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-panel .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-panel__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .browser-showcase figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .browser__viewport { aspect-ratio: 4 / 3; }
  .browser__viewport img { height: 100%; margin-top: 0; object-position: 18% center; }

  .gallery__track {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .gallery__item { flex: 0 0 min(56vw, 240px); scroll-snap-align: start; transform: none !important; }
  .gallery__track::-webkit-scrollbar { height: 4px; }
  .gallery__track::-webkit-scrollbar-thumb { background: var(--forest-line); border-radius: 99px; }

  /* Duo shells: keep the wider chassis usable inside the scroll row. */
  .duo-device { --duo-bezel: 6px; }
  .gallery--duo.gallery--framed .gallery__item { flex: 0 0 min(66vw, 250px); }
  .gallery--duo.gallery--framed .gallery__track {
    padding-top: 8px;
    padding-bottom: 26px;
  }
  .gallery--duo.gallery--framed .gallery__item button.duo-device {
    box-shadow:
      0 28px 52px -26px rgba(20, 20, 19, 0.42),
      0 10px 20px -14px rgba(20, 20, 19, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  .gallery--duo.gallery--framed .gallery__item button.duo-device:hover {
    transform: none;
    box-shadow:
      0 28px 52px -26px rgba(20, 20, 19, 0.42),
      0 10px 20px -14px rgba(20, 20, 19, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .footer__nav { justify-content: space-between; }
  .footer__bottom .container { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 82px; }
  .nav__inner { height: 64px; }
  .mobile-menu { inset: 64px 0 auto; min-height: calc(100dvh - 64px); }
  .hero { padding: 104px 0 72px; min-height: auto; }
  .hero__title { font-size: clamp(2.85rem, 13.5vw, 4.2rem); }
  .hero__lead { margin-top: 26px; font-size: 0.94rem; line-height: 1.85; }
  .hero__cta { margin-top: 28px; gap: 12px; }
  .hero__cta .btn { min-height: 48px; }
  .hero__stats { margin-top: 40px; gap: 22px; }
  .stat dd { font-size: 1.7rem; }
  .hero__visual { min-height: 400px; margin-top: 10px; }
  .mini-card--principle { right: -2%; top: 1%; }
  .mini-card--account { left: -2%; bottom: 0; }
  .mini-card { width: 168px; padding: 11px 12px; border-radius: 14px; }
  .mini-card__top { font-size: 0.54rem; }
  .mini-card__row { font-size: 0.53rem; }
  .orbit { display: none; }

  .ticker { padding: 12px 0; }
  .ticker span { font-size: 0.72rem; }

  .chapter { padding: 82px 0; }
  .chapter--tennis { padding-top: 110px; }
  .chapter__title { font-size: clamp(2.35rem, 10.5vw, 3.2rem); }
  .chapter__index { font-size: 0.6rem; letter-spacing: 0.12em; }
  .chapter__intro p { font-size: 0.92rem; }

  .showcase__stage { min-height: 540px; }
  .phone-wrap { width: min(252px, 68vw); }
  .phone__frame { padding: 6px; border-radius: 44px; }
  .phone__screen { border-radius: 39px; }
  .phone__island { top: 15px; height: 19px; }
  .float-chip { display: none; }
  .showcase__caption { flex-direction: column; gap: 4px; bottom: -58px; font-size: 0.7rem; }
  .showcase__caption .micro { padding-left: 0; border-left: 0; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 62px; }
  .feature-card { min-height: 0; padding: 22px; }
  .feature-card__visual { min-height: 112px; }
  .feature-card h3 { margin-top: 18px; }
  .feature-card p { font-size: 0.82rem; }

  .ocr-demo { padding: 22px 18px; border-radius: 22px; }
  .ocr-demo__body { margin-top: 24px; }
  .ocr-row { grid-template-columns: 1.4fr 0.5fr 0.7fr; font-size: 0.68rem; }
  .ocr-result li small { white-space: normal; }
  .ocr-source, .ocr-result { min-height: 0; }
  .ocr-rows { padding: 10px; }
  .ocr-result ul { padding: 6px 10px; }

  .number-band { margin-top: 62px; }
  .number-band__item { padding: 22px 14px 22px 0; }
  .number-band__item:not(:first-child) { padding-left: 16px; }
  .number-band__item strong { font-size: 2rem; }
  .number-band__item > span { font-size: 0.66rem; }

  .privacy-strip { padding: 24px 20px; border-radius: 22px; }
  .privacy-strip__title h3 { font-size: 1.7rem; }
  .privacy-strip__copy > p { font-size: 0.82rem; }
  .path-chip { font-size: 0.58rem; }

  .browser__bar { height: 38px; padding: 0 12px; gap: 10px; }
  .browser__dots i { width: 7px; height: 7px; }
  .browser__url { font-size: 0.55rem; padding: 4px 10px; }
  .browser__badge { display: none; }
  .browser-showcase figcaption { font-size: 0.68rem; }

  .phase-panel { padding: 20px 16px; border-radius: 20px; }
  .phase { padding: 12px 10px; }
  .phase__name { font-size: 0.82rem; }
  .phase__desc { font-size: 0.6rem; }

  .report-showcase { margin-top: 70px; gap: 30px; }
  .report-showcase__copy h3 { font-size: 2.4rem; }
  .report-card { padding: 9px; }
  .report-card::before { width: 70px; height: 20px; top: -10px; }

  .terminal { margin-top: 60px; border-radius: 14px; }
  .terminal__body { padding: 18px 16px; font-size: 0.66rem; }
  .terminal__note { padding: 0 16px 14px; }

  .gallery { margin-top: 70px; }
  .gallery__head h3 { font-size: 2rem; }

  .principles { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .principle { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .principle__icon { grid-row: span 3; width: 56px; height: 56px; }
  .principle__num { margin-top: 0; }
  .principle h3 { margin-top: 3px; }
  .principle p { margin-top: 4px; }

  .maker { gap: 20px; }
  .maker__visual { min-height: 380px; }
  .maker__icon { width: 116px; border-radius: 26px; padding: 8px; }
  .maker__icon--health { width: 104px; top: 1%; }
  .maker__icon img { border-radius: 20px; }
  .maker__caption { bottom: -2%; }

  .product-card { min-height: 0; padding: 24px 20px; border-radius: 22px; }
  .product-card__top img { width: 60px; height: 60px; border-radius: 15px; }
  .product-card__arrow { width: 38px; height: 38px; }
  .product-card__desc { font-size: 0.8rem; }
  .product-card__link { padding-top: 20px; font-size: 0.56rem; }

  .footer__nav { gap: 40px; }
  .footer__bottom .container { font-size: 0.48rem; }

  .lightbox { grid-template-columns: 1fr; padding: 20px; }
  .lightbox__nav { position: absolute; bottom: 22px; }
  .lightbox__nav--prev { left: 22px; }
  .lightbox__nav--next { right: 22px; }
  .lightbox__figure img { max-height: 72vh; }
  .lightbox__figure figcaption { padding-bottom: 48px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.7rem; }
  .hero__visual { min-height: 360px; }
  .hero__stats { gap: 16px; }
  .stat dd { font-size: 1.5rem; }
  .mini-card { width: 154px; padding: 10px 11px; }
  .mini-card--account .mini-card__demo { display: none; }
}

.touch-only { display: none; }

@media (hover: none) {
  .phone__zoom { display: none; }
  .touch-only { display: inline; }
}

/* ------------------------------
   Reduced motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .intro { display: none; }
  .cursor { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .line { transform: none; }
  .circle-draw path,
  .hero__line-art .draw-path,
  .maker__line .draw-path { stroke-dashoffset: 0; }
  .line-dot { opacity: 1; }
  .ticker__track,
  .orb { animation: none !important; }
  .tab__bar span { transform: scaleX(1); }
}

/* ------------------------------
   Print
------------------------------ */
@media print {
  .nav, .intro, .cursor, .progress, .grain, .scroll-cue, .ticker, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .chapter { padding: 40px 0; }
  .chapter--tennis, .chapter--products, .footer { background: #fff !important; color: #000 !important; }
  .chapter--tennis, .chapter--tennis *, .footer, .footer *,
  .product-card--tennis, .product-card--tennis *,
  .mini-card--account, .mini-card--account * { color: #000 !important; }
  .chapter--tennis, .footer, .product-card--tennis, .mini-card--account { background: #fff !important; border-color: #ccc !important; }
}

/* ------------------------------
   Legal pages (privacy policy)
------------------------------ */
.legal-hero {
  position: relative;
  overflow: clip;
  padding: clamp(132px, 16vw, 190px) 0 clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
.legal-hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -12%;
  width: min(720px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 96, 58, 0.12), transparent 68%);
  pointer-events: none;
}
.legal-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: min(520px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 224, 75, 0.18), transparent 70%);
  pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
}
.legal-hero__title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8.4vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.legal-hero__title em {
  font-style: italic;
  color: var(--clay-deep);
}
.legal-hero__lead {
  max-width: 620px;
  margin-top: 28px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.9;
  color: var(--ink-3);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.legal-meta span { display: inline-flex; align-items: baseline; gap: 8px; }
.legal-meta b { font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.legal-stamp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.legal-stamp strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
}
.legal-stamp span + span { border-top: 1px solid var(--line-soft); padding-top: 8px; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  justify-content: center;
  gap: clamp(36px, 7vw, 96px);
  padding: clamp(48px, 7vw, 84px) 0 clamp(84px, 10vw, 124px);
}
.legal-toc { position: sticky; top: 104px; align-self: start; }
.legal-toc__title {
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-3);
  transition: color 0.25s;
}
.legal-toc a:hover { color: var(--clay-deep); }
.legal-toc a span {
  flex: 0 0 auto;
  padding-top: 1px;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--muted);
}
.legal-toc__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.66rem;
  line-height: 1.7;
  color: var(--muted);
}
.legal-article { min-width: 0; }

.legal-summary {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 24px;
  background: var(--forest);
  color: var(--paper);
}
.legal-summary::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -52%;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 224, 75, 0.16), transparent 68%);
  pointer-events: none;
}
.legal-summary > * { position: relative; z-index: 1; }
.legal-summary .kicker { color: var(--lime); }
.legal-summary h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.legal-summary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin-top: 26px;
}
.legal-summary li {
  position: relative;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #c7d2c9;
}
.legal-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.legal-section {
  margin-top: clamp(36px, 4.6vw, 56px);
  padding-top: clamp(36px, 4.6vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 108px;
}
.legal-section__head { display: flex; align-items: baseline; gap: 16px; }
.legal-section__num {
  flex: 0 0 auto;
  padding-top: 0.42em;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--clay-deep);
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.legal-section h3 {
  margin-top: 30px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.legal-section p {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-3);
}
.legal-section h2 + p { margin-top: 18px; }
.legal-section ul,
.legal-section ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.legal-section li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-3);
}
.legal-section ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.76em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.72;
}
.legal-section ol { counter-reset: legal-item; }
.legal-section ol > li { counter-increment: legal-item; }
.legal-section ol > li::before {
  content: counter(legal-item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--clay-deep);
}
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section code {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 0.82em;
  overflow-wrap: anywhere;
}
.legal-section a {
  color: var(--clay-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--ink); }

.legal-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--clay);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.36);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink-3);
}
.legal-note strong { color: var(--ink); }

.legal-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.32);
  -webkit-overflow-scrolling: touch;
}
.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.65;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.legal-table th {
  background: rgba(233, 229, 218, 0.46);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { color: var(--ink); font-weight: 500; }
.legal-table .is-none { color: var(--muted); }
.legal-table-hint { display: none; }

.legal-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}
.legal-contact p { margin: 0; font-size: 0.86rem; line-height: 1.7; color: var(--ink-3); }
.legal-contact a {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--clay-deep);
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.legal-contact a:hover { color: var(--ink); }

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(36px, 4.6vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted);
}
.legal-foot a { color: var(--clay-deep); }
.legal-foot a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .legal-hero__grid { grid-template-columns: 1fr; }
  .legal-stamp { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.28);
  }
  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
  }
  .legal-toc__note { display: none; }
}

@media (max-width: 640px) {
  .legal-hero { padding-top: 108px; }
  .legal-hero__title { font-size: clamp(2.85rem, 14vw, 4rem); }
  .legal-hero__lead { font-size: 0.94rem; line-height: 1.85; }
  .legal-summary { padding: 24px 20px; border-radius: 20px; }
  .legal-summary ul { grid-template-columns: 1fr; gap: 10px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-section h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .legal-section p { font-size: 0.88rem; }
  .legal-section li { font-size: 0.86rem; }
  .legal-table { min-width: 560px; }
  .legal-table-hint { display: block; margin-top: 12px; font-size: 0.72rem; color: var(--muted); }
  .legal-contact { align-items: flex-start; }
}

@media print {
  .legal-page .nav,
  .legal-page .grain,
  .legal-page .progress,
  .legal-page .cursor,
  .legal-page .legal-toc,
  .legal-page .footer { display: none !important; }
  .legal-page,
  .legal-page main { background: #fff !important; color: #000 !important; }
  .legal-hero { padding: 0 0 24px; border-color: #bbb !important; }
  .legal-hero::before,
  .legal-hero::after { display: none; }
  .legal-hero__title,
  .legal-hero__title em,
  .legal-section h2,
  .legal-section h3,
  .legal-section p,
  .legal-section li,
  .legal-section strong { color: #000 !important; }
  .legal-layout { display: block; padding: 24px 0 0; }
  .legal-summary {
    border: 1px solid #bbb;
    background: #fff !important;
    color: #000 !important;
  }
  .legal-summary .kicker,
  .legal-summary h2,
  .legal-summary li { color: #000 !important; }
  .legal-summary li::before { background: #000; }
  .legal-section { break-inside: avoid-page; }
}

/* ============================================================
   做多身体 · HealthMaster
   ============================================================ */
.chapter--health {
  background:
    radial-gradient(circle at 82% 4%, rgba(217, 119, 87, 0.1), transparent 30%),
    linear-gradient(180deg, var(--paper) 0%, #ece7db 100%);
}
.showcase--health .showcase__stage::before {
  content: "";
  position: absolute;
  width: min(510px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(20, 20, 19, 0.14);
  pointer-events: none;
}
.showcase--health .showcase__stage::after {
  content: "";
  position: absolute;
  width: min(390px, 64%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.14), transparent 68%);
  pointer-events: none;
}
.showcase--health .phone-wrap,
.showcase--health .showcase__caption { z-index: 2; }
.float-chip--haptic { left: -10%; top: 10%; }
.float-chip--local { right: -2%; bottom: 17%; animation-delay: -3.2s; }
.float-chip--local .float-chip__icon { background: rgba(126, 166, 220, 0.16); color: #4f6f9b; }

/* Apple Watch band */
.watch-showcase {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: clamp(80px, 10vw, 128px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(240, 238, 230, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 119, 87, 0.18), transparent 32%),
    radial-gradient(circle at 8% 96%, rgba(126, 166, 220, 0.1), transparent 34%),
    #191816;
  color: var(--paper);
}
.watch-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(240, 238, 230, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}
.watch-showcase > * { position: relative; z-index: 1; }
.watch-showcase__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.96fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.watch-showcase .kicker { color: var(--clay-soft); }
.watch-showcase__head h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.watch-showcase__head > p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: #b9b2a6;
}
.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 48px);
}
.watch-figure { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.watch-shell {
  position: relative;
  width: min(196px, 100%);
  aspect-ratio: 374 / 446;
  padding: 7%;
  border-radius: 24%;
  background: linear-gradient(145deg, #45443f 0%, #0b0b0a 42%, #262521 72%, #111110 100%);
  box-shadow:
    0 36px 60px -30px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 3px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.watch-figure:hover .watch-shell {
  transform: translateY(-6px);
  box-shadow:
    0 46px 74px -30px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 0 3px rgba(0, 0, 0, 0.55);
}
.watch-shell::before {
  content: "";
  position: absolute;
  right: -4.5%;
  top: 25%;
  width: 5%;
  height: 12%;
  border-radius: 4px;
  background: linear-gradient(180deg, #4a4944, #24231f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.watch-shell::after {
  content: "";
  position: absolute;
  right: -3%;
  top: 43%;
  width: 3%;
  height: 9%;
  border-radius: 3px;
  background: #302f2b;
}
.watch-shell__screen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 19%;
  overflow: hidden;
  background: #000;
}
.watch-shell__screen img { width: 100%; height: 100%; object-fit: cover; }
.watch-shell__screen button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.watch-caption { text-align: center; }
.watch-caption b { display: block; font-size: 0.74rem; font-weight: 500; color: var(--paper); }
.watch-caption span { display: block; margin-top: 3px; font-size: 0.6rem; color: #918a7e; }

/* Watch notification mock */
.watch-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 13% 9% 11%;
  background: #000;
  color: var(--paper);
  font-family: var(--sans);
}
.watch-mock__time {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  color: #b9b3a6;
}
.watch-mock__card {
  margin-block: auto;
  padding: 11% 9%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: linear-gradient(160deg, #34322e, #242320);
  box-shadow: 0 10px 24px -12px #000;
}
.watch-mock__app {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.36rem, 0.55vw, 0.46rem);
  letter-spacing: 0.08em;
  color: #a8a195;
}
.watch-mock__app i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #d97757;
}
.watch-mock__card strong {
  display: block;
  margin-top: 7%;
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.7vw, 1.25rem);
  font-weight: 500;
  line-height: 1.1;
}
.watch-mock__card p {
  margin-top: 5%;
  font-size: clamp(0.42rem, 0.66vw, 0.55rem);
  line-height: 1.5;
  color: #c3bcb0;
}
.watch-mock__actions { display: flex; gap: 6%; margin-top: 11%; }
.watch-mock__actions span {
  flex: 1;
  padding: 6% 4%;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(0.36rem, 0.55vw, 0.46rem);
  text-align: center;
  color: #d8d2c7;
}
.watch-mock__actions span:first-child { background: #d97757; color: #1b1a18; font-weight: 600; }

/* Rhythm / reminder timeline */
.rhythm {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin-top: clamp(70px, 9vw, 108px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.5);
  overflow: hidden;
}
.rhythm::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.14), transparent 68%);
  pointer-events: none;
}
.rhythm > * { position: relative; z-index: 1; }
.rhythm h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rhythm__copy > p {
  max-width: 430px;
  margin-top: 16px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--ink-3);
}
.rhythm__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rhythm__facts span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.rhythm__visual {
  padding: 26px 22px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(233, 229, 218, 0.72), rgba(248, 246, 240, 0.4));
}
.rhythm__track { position: relative; height: 58px; }
.rhythm__baseline {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 1px;
  background: var(--line-strong);
}
.rhythm__pip {
  position: absolute;
  top: 24px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-3);
  transform: translateX(-50%);
}
.rhythm__pip.is-major {
  top: 22px;
  width: 13px;
  height: 13px;
  border-color: var(--clay);
  background: var(--clay);
}
.rhythm__pulse {
  position: absolute;
  top: 19px;
  left: 0;
  width: 19px;
  height: 19px;
  border: 2px solid var(--clay);
  border-radius: 50%;
  background: rgba(210, 96, 58, 0.2);
  transform: translateX(-50%);
  animation: rhythmPulse 7.2s linear infinite;
}
@keyframes rhythmPulse {
  0% { left: 0%; opacity: 0; }
  7% { opacity: 1; }
  93% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.rhythm__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rhythm__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--muted);
}
.rhythm__note .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--clay-deep); }

/* Health feature-card visuals */
.feature-grid--health .feature-card__visual { height: 192px; }
.health-rings { display: flex; align-items: center; gap: 18px; }
.health-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 106px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#7ea6dc 0 33%, #e79a7e 33% 66%, #8fc4a4 66% 76%, #ded9cc 76% 100%);
}
.health-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--paper-2);
}
.health-ring b {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.health-legend { display: flex; flex-direction: column; gap: 7px; font-size: 0.62rem; color: var(--ink-3); }
.health-legend span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.health-legend i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.reminder-mini { width: 100%; max-width: 230px; }
.reminder-mini__head { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--mono); font-size: 0.54rem; color: var(--muted); }
.reminder-mini__head b { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; color: var(--ink); }
.reminder-mini__track { position: relative; height: 34px; margin-top: 8px; }
.reminder-mini__track::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line-strong); }
.reminder-mini__track i {
  position: absolute;
  top: 12px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(210, 96, 58, 0.45);
  border-radius: 50%;
  background: var(--paper-2);
  transform: translateX(-50%);
}
.reminder-mini__track i.is-on { background: var(--clay); border-color: var(--clay); }
.reminder-mini__pulse {
  position: absolute;
  top: 8px;
  left: 0;
  width: 19px;
  height: 19px;
  border: 2px solid var(--clay);
  border-radius: 50%;
  background: rgba(210, 96, 58, 0.16);
  transform: translateX(-50%);
  animation: rhythmPulse 5.6s linear infinite;
}
.reminder-mini__labels { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 0.5rem; color: var(--muted); }
.quicklog-mini { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 228px; }
.quicklog-mini span {
  display: grid;
  grid-template-columns: 20px 1fr 58px 20px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.62);
  font-size: 0.56rem;
  color: var(--ink-3);
}
.quicklog-mini i { width: 8px; height: 8px; border-radius: 50%; }
.quicklog-mini em { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quicklog-mini em::before { content: ""; display: block; width: var(--w, 50%); height: 100%; border-radius: inherit; background: var(--clay); }
.quicklog-mini b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(210, 96, 58, 0.12); color: var(--clay-deep); font-weight: 500; }
.heatmap-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; max-width: 218px; }
.heatmap-mini i { aspect-ratio: 1; border-radius: 4px; background: var(--clay); opacity: var(--o, 0.12); }
.heatmap-mini__labels { display: flex; justify-content: space-between; width: 100%; max-width: 218px; margin-top: 9px; font-family: var(--mono); font-size: 0.5rem; color: var(--muted); }
.sync-mini { display: flex; align-items: center; gap: 12px; }
.sync-mini__phone {
  position: relative;
  width: 38px;
  height: 66px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.66);
}
.sync-mini__phone::before { content: ""; position: absolute; top: 5px; left: 50%; width: 9px; height: 2px; border-radius: 9px; background: var(--line-strong); transform: translateX(-50%); }
.sync-mini__watch {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.66);
}
.sync-mini__watch::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--clay); }
.sync-mini__link { position: relative; width: 58px; border-top: 1px dashed var(--clay); }
.sync-mini__link::after {
  content: "⇄";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 5px;
  background: var(--paper-2);
  font-size: 0.72rem;
  color: var(--clay-deep);
}
.alarm-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 218px;
  padding: 14px 15px;
  border-radius: 14px;
  background: linear-gradient(145deg, #302e2a, #1b1a18);
  color: var(--paper);
  box-shadow: 0 18px 34px -24px rgba(20, 20, 19, 0.6);
}
.alarm-mini__bell {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(217, 119, 87, 0.18);
  color: #e79a7e;
  flex: 0 0 auto;
}
.alarm-mini__bell .icon { width: 17px; height: 17px; }
.alarm-mini b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; line-height: 1.1; }
.alarm-mini small { display: block; margin-top: 4px; font-size: 0.56rem; color: #a8a195; }

/* Legal policy switcher */
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.legal-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.legal-switch a:hover { border-color: var(--line-strong); color: var(--ink); }
.legal-switch a.is-current { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.legal-switch a.is-current::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.legal-scope {
  margin-top: 18px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .float-chip--haptic { left: 0; top: 5%; }
  .float-chip--local { right: 0; bottom: 12%; }
}

@media (max-width: 1024px) {
  .rhythm { grid-template-columns: 1fr; gap: 28px; }
  .rhythm__copy > p { max-width: 620px; }
  .watch-showcase__head { grid-template-columns: 1fr; gap: 14px; }
  .watch-showcase__head > p { max-width: 620px; }
  .watch-grid { gap: 18px; }
  .watch-shell { width: min(170px, 100%); }
}

@media (max-width: 820px) {
  .watch-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    scrollbar-width: thin;
  }
  .watch-figure { flex: 0 0 min(46vw, 190px); scroll-snap-align: start; }
  .watch-shell { width: 100%; }
  .showcase--health .float-chip--haptic { left: 0; top: 6%; }
  .showcase--health .float-chip--local { right: 0; bottom: 12%; }
}

@media (max-width: 640px) {
  .watch-showcase { border-radius: 22px; padding: 24px 18px; }
  .watch-showcase__head h3 { font-size: 2rem; }
  .watch-figure { flex-basis: min(54vw, 180px); }
  .rhythm { padding: 24px 18px; border-radius: 22px; }
  .rhythm h3 { font-size: 1.9rem; }
  .rhythm__visual { padding: 20px 14px 16px; }
  .feature-grid--health .feature-card__visual { height: auto; min-height: 150px; }
  .health-ring { width: 92px; }
  .health-legend { font-size: 0.58rem; }
  .legal-switch { gap: 6px; }
  .legal-switch a { padding: 7px 11px; font-size: 0.56rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rhythm__pulse,
  .reminder-mini__pulse { display: none; }
}

@media print {
  .watch-showcase,
  .rhythm,
  .feature-grid--health,
  .showcase--health { display: none !important; }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card--health { grid-column: 1 / -1; min-height: 0; }
}
