/* ==========================================================================
   Vocer / 句练 — shared design system
   Palette pulled from the app icon + App Store screenshots:
   deep forest green, warm amber, ivory paper.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  color-scheme: light dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* light */
  --paper: #f1eee5;
  --paper-2: #e7e3d7;
  --surface: #fffdf7;
  --surface-2: #f8f5ec;
  --ink: #0c2620;
  --ink-2: #1d3a33;
  --muted: #5b6b64;
  --faint: #8b968f;
  --line: rgba(15, 61, 53, 0.12);
  --line-2: rgba(15, 61, 53, 0.22);
  --accent: #0f3d35;
  --accent-2: #17564a;
  --on-accent: #fdfaf1;
  --gold: #b8871f;
  --gold-bright: #d9992b;
  --gold-wash: rgba(216, 153, 43, 0.13);
  --accent-wash: rgba(15, 61, 53, 0.07);
  --glass: rgba(255, 253, 247, 0.7);
  --glass-line: rgba(255, 255, 255, 0.55);
  --chip: rgba(255, 253, 247, 0.72);

  --orb-a: rgba(23, 86, 74, 0.28);
  --orb-b: rgba(216, 153, 43, 0.24);
  --orb-c: rgba(120, 170, 150, 0.22);
  --noise-opacity: 0.4;

  --shadow-xs: 0 1px 2px rgba(9, 32, 27, 0.05), 0 2px 8px rgba(9, 32, 27, 0.04);
  --shadow-sm: 0 1px 3px rgba(9, 32, 27, 0.06), 0 8px 22px -10px rgba(9, 32, 27, 0.16);
  --shadow-md: 0 2px 6px rgba(9, 32, 27, 0.05), 0 22px 48px -18px rgba(9, 32, 27, 0.24);
  --shadow-lg: 0 40px 90px -30px rgba(9, 32, 27, 0.42), 0 10px 30px -18px rgba(9, 32, 27, 0.24);

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shell: min(1180px, calc(100% - 40px));
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #080d0c;
    --paper-2: #0d1413;
    --surface: #111a18;
    --surface-2: #16211e;
    --ink: #edeade;
    --ink-2: #d6d2c4;
    --muted: #9aa8a1;
    --faint: #6f7d77;
    --line: rgba(226, 216, 190, 0.13);
    --line-2: rgba(226, 216, 190, 0.24);
    --accent: #7fd2b8;
    --accent-2: #a8e2ce;
    --on-accent: #06231d;
    --gold: #e8b45a;
    --gold-bright: #f0c470;
    --gold-wash: rgba(232, 180, 90, 0.13);
    --accent-wash: rgba(127, 210, 184, 0.08);
    --glass: rgba(17, 26, 24, 0.66);
    --glass-line: rgba(226, 216, 190, 0.09);
    --chip: rgba(237, 234, 222, 0.06);

    --orb-a: rgba(30, 122, 100, 0.3);
    --orb-b: rgba(232, 180, 90, 0.18);
    --orb-c: rgba(60, 140, 120, 0.2);
    --noise-opacity: 0.55;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 8px 22px -10px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 22px 48px -18px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --paper: #080d0c;
  --paper-2: #0d1413;
  --surface: #111a18;
  --surface-2: #16211e;
  --ink: #edeade;
  --ink-2: #d6d2c4;
  --muted: #9aa8a1;
  --faint: #6f7d77;
  --line: rgba(226, 216, 190, 0.13);
  --line-2: rgba(226, 216, 190, 0.24);
  --accent: #7fd2b8;
  --accent-2: #a8e2ce;
  --on-accent: #06231d;
  --gold: #e8b45a;
  --gold-bright: #f0c470;
  --gold-wash: rgba(232, 180, 90, 0.13);
  --accent-wash: rgba(127, 210, 184, 0.08);
  --glass: rgba(17, 26, 24, 0.66);
  --glass-line: rgba(226, 216, 190, 0.09);
  --chip: rgba(237, 234, 222, 0.06);

  --orb-a: rgba(30, 122, 100, 0.3);
  --orb-b: rgba(232, 180, 90, 0.18);
  --orb-c: rgba(60, 140, 120, 0.2);
  --noise-opacity: 0.55;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 8px 22px -10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 22px 48px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

/* ---------- 2. Reset / base --------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

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

section[id],
[id].band {
  scroll-margin-top: calc(var(--header-h) + 22px);
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gold-wash);
  color: var(--ink);
}

/* language panels ------------------------------------------------------- */

[data-lang-panel] {
  display: none;
}

html[data-current-lang="zh"] [data-lang-panel="zh"],
html[data-current-lang="en"] [data-lang-panel="en"],
html:not([data-current-lang]) [data-lang-panel="zh"] {
  display: block;
}

html[lang^="zh"] body {
  letter-spacing: 0.01em;
}

/* ---------- 3. Ambient background --------------------------------------- */

.fx {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
}

.fx__orb--a {
  top: -14vh;
  left: -10vw;
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at 40% 40%, var(--orb-a), transparent 68%);
  animation: drift-a 26s var(--ease-in-out) infinite;
}

.fx__orb--b {
  top: 6vh;
  right: -16vw;
  width: 52vw;
  height: 52vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle at 50% 50%, var(--orb-b), transparent 68%);
  animation: drift-b 32s var(--ease-in-out) infinite;
}

.fx__orb--c {
  bottom: -20vh;
  left: 28vw;
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle at 50% 50%, var(--orb-c), transparent 66%);
  animation: drift-c 38s var(--ease-in-out) infinite;
}

.fx__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 72%);
}

.fx__noise {
  position: absolute;
  inset: -50%;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-7vw, 7vh, 0) scale(0.92); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); }
  50% { transform: translate3d(-5vw, -6vh, 0) scale(1.1); }
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---------- 4. Layout helpers ------------------------------------------- */

.shell,
.topbar__inner,
.footer__inner {
  width: var(--shell);
  margin-inline: auto;
}

.band {
  position: relative;
  padding: clamp(64px, 9vw, 118px) 0;
}

.band--tight {
  padding: clamp(48px, 6vw, 78px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px var(--gold-wash);
  content: "";
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--gold-wash); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

.section-head {
  max-width: 920px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 62ch;
}

.lede {
  color: var(--muted);
}

/* ---------- 5. Reveal on scroll ----------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease) var(--reveal-delay, 0ms),
    filter 0.85s var(--ease) var(--reveal-delay, 0ms);
  filter: blur(6px);
}

.js [data-reveal="left"] { transform: translate3d(-28px, 12px, 0); }
.js [data-reveal="right"] { transform: translate3d(28px, 12px, 0); }
.js [data-reveal="scale"] { transform: scale(0.94) translate3d(0, 18px, 0); }

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- 6. Buttons -------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn--solid:hover {
  background: var(--accent-2);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  border-color: var(--line-2);
  background: var(--chip);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.store-link {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.store-link:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 16px 26px rgba(9, 32, 27, 0.28));
}

.store-link:active { transform: translateY(0) scale(1); }

.store-badge {
  width: auto;
  height: 54px;
}

/* ---------- 7. Header --------------------------------------------------- */

.topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.topbar::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--glass);
  opacity: 0;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: opacity 0.4s var(--ease);
  content: "";
}

.is-scrolled .topbar {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(9, 32, 27, 0.5);
}

.is-scrolled .topbar::before { opacity: 1; }

.topbar__inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--gold-bright));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.is-scrolled .topbar__progress { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: 0 6px 18px -6px rgba(9, 32, 27, 0.5), inset 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.94rem;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav a::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  content: "";
}

.nav a:hover {
  color: var(--ink);
  background: var(--accent-wash);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav__lang {
  margin-left: 6px;
  border: 1px solid var(--line-2);
  background: var(--chip);
  color: var(--ink) !important;
  font-weight: 600;
}

.nav__lang:hover { border-color: var(--accent); }

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-wash);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the toggle shows the theme you will switch TO */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }
.nav-toggle .bars { position: relative; width: 16px; height: 12px; }
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 8. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0 clamp(30px, 4vw, 54px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.6rem, 11vw, 8.4rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

html[lang^="zh"] .hero h1 {
  letter-spacing: -0.01em;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: bottom;
}

.hero h1 .word > span {
  display: inline-block;
  background: linear-gradient(102deg, var(--ink) 12%, var(--accent) 48%, var(--gold) 92%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

.js .hero h1 .word > span {
  transform: translateY(105%);
  animation:
    rise-in 1s var(--ease) forwards var(--rise-delay, 0ms),
    sheen 9s ease-in-out 1.2s infinite;
}

@keyframes rise-in {
  to { transform: translateY(0); }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__sub {
  max-width: 34ch;
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero__copy { min-width: 0; }

.hero__text {
  max-width: 52ch;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.62;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 32px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 14px 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.proof::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-bright);
  content: "";
}

.proof:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: var(--gold-wash);
}

/* screenshot stack ------------------------------------------------------- */

.hero__visual {
  position: relative;
  perspective: 1400px;
}

.shot-stack {
  position: relative;
  height: clamp(400px, 44vw, 560px);
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--ry, 0) * -6deg))
    rotateY(calc(var(--rx, 0) * 9deg));
  transition: transform 0.6s var(--ease);
}

.shot {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: transform 0.7s var(--ease), box-shadow 0.5s var(--ease);
}

.shot img,
.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the source assets are App Store shots; frame just the device */
  object-position: 50% 86%;
}

.shot::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), transparent 40%);
  opacity: 0.6;
  pointer-events: none;
  content: "";
}

html[data-theme="dark"] .shot::after,
html:not([data-theme="light"]) .shot::after { opacity: 0.5; }

.shot--front {
  z-index: 3;
  top: 0;
  left: 50%;
  width: clamp(240px, 28vw, 330px);
  aspect-ratio: 647 / 1055;
  transform: translate3d(-50%, 0, 70px);
}

.shot--mid {
  z-index: 2;
  top: 46px;
  right: -2%;
  width: clamp(180px, 21vw, 240px);
  aspect-ratio: 647 / 1055;
  transform: translate3d(0, 0, 20px) rotate(5deg);
  opacity: 0.96;
}

.shot--back {
  z-index: 1;
  top: 62px;
  left: -4%;
  width: clamp(170px, 20vw, 226px);
  aspect-ratio: 647 / 1055;
  transform: translate3d(0, 0, 0) rotate(-6deg);
  opacity: 0.9;
}

.shot-stack:hover .shot--front { transform: translate3d(-50%, -10px, 90px); }
.shot-stack:hover .shot--mid { transform: translate3d(14px, -4px, 30px) rotate(7deg); }
.shot-stack:hover .shot--back { transform: translate3d(-14px, -4px, 10px) rotate(-8deg); }

/* ---------- 9. A/B loop demo strip -------------------------------------- */

.loopdemo {
  position: relative;
  width: var(--shell);
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: 22px clamp(18px, 3vw, 30px) 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
}

.loopdemo__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loopdemo__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  color: var(--gold);
  font-weight: 700;
}

.loopdemo__badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  content: "";
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.wave-track {
  position: relative;
  height: clamp(62px, 9vw, 96px);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
}

.wave i {
  flex: 1 1 auto;
  min-width: 2px;
  height: calc(var(--h, 0.4) * 100%);
  border-radius: 3px;
  background: var(--line-2);
  transform-origin: 50% 50%;
  transition: background-color 0.4s var(--ease);
  animation: bar-breathe 2.4s var(--ease-in-out) infinite;
  animation-delay: var(--d, 0s);
}

.wave i.in-loop {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 12px -2px var(--gold-wash);
}

@keyframes bar-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.66); }
}

.loop-region {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: var(--a, 34%);
  width: calc(var(--b, 62%) - var(--a, 34%));
  border-left: 1.5px solid var(--gold-bright);
  border-right: 1.5px solid var(--gold-bright);
  border-radius: 4px;
  background: var(--gold-wash);
  pointer-events: none;
}

.marker {
  position: absolute;
  top: -26px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-bright);
  color: #21160a;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px -4px rgba(216, 153, 43, 0.8);
}

.marker--a { left: var(--a, 34%); }
.marker--b { left: var(--b, 62%); }

.playhead {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 0 10px -1px var(--ink);
  animation: sweep 3.6s linear infinite;
}

.playhead::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  content: "";
}

@keyframes sweep {
  0% { left: var(--a, 34%); opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: var(--b, 62%); opacity: 0; }
}

.loopdemo__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- 10. Marquee -------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__row {
  display: flex;
  width: max-content;
  gap: 0;
  animation: slide 34s linear infinite;
}

.marquee:hover .marquee__row { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
}

.marquee__group span::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0.7;
  content: "";
}

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 11. Feature rows -------------------------------------------- */

.features {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.feature::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 0%),
    var(--gold-wash),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  content: "";
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.feature:hover::before { opacity: 1; }

.feature--flip { grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr); }
.feature--flip .feature__copy { order: 2; }
.feature--flip .feature__visual { order: 1; }

.feature__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker b {
  padding-right: 9px;
  border-right: 1px solid var(--line-2);
  color: var(--gold);
  font-weight: 700;
}

.feature h3 {
  font-size: clamp(1.5rem, 2.9vw, 2.1rem);
}

.feature__copy > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 56ch;
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 0.97rem;
  font-weight: 500;
}

.ticks li svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gold-wash);
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.shot-card {
  position: relative;
  width: min(272px, 100%);
  aspect-ratio: 647 / 1055;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.shot-card::after {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-16deg);
  transition: left 0.9s var(--ease);
  pointer-events: none;
  content: "";
}

.feature:hover .shot-card {
  transform: translateY(-6px) rotateX(4deg) rotateY(-5deg) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feature--flip:hover .shot-card {
  transform: translateY(-6px) rotateX(4deg) rotateY(5deg) scale(1.02);
}

.feature:hover .shot-card::after { left: 120%; }

/* ---------- 12. Trust --------------------------------------------------- */

.trust {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(900px circle at 12% -10%, var(--accent-wash), transparent 62%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md);
}

.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.trust h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.trust__grid > div > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 58ch;
}

.trust__cards {
  display: grid;
  gap: 12px;
}

.trust-card {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--chip);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.trust-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
  content: "";
}

.trust-card:hover {
  transform: translateX(4px);
  border-color: var(--line-2);
}

.trust-card:hover::before { transform: scaleX(1); }

.trust-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-wash);
  color: var(--accent);
}

.trust-card__icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-card strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.trust-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- 13. FAQ ------------------------------------------------------ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.faq-item[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.14rem);
  font-weight: 620;
  letter-spacing: -0.015em;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-item summary .sign {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.faq-item summary .sign::before,
.faq-item summary .sign::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

.faq-item summary .sign::before {
  width: 11px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.faq-item summary .sign::after {
  width: 1.6px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.faq-item[open] summary .sign {
  transform: rotate(180deg);
  border-color: var(--gold-bright);
  background: var(--gold-wash);
}

.faq-item[open] summary .sign::after { transform: translate(-50%, -50%) scaleY(0); }

/* padding lives on .faq-item__inner so the body height can animate to 0 */

/* ---------- 14. CTA ------------------------------------------------------ */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px circle at 88% 10%, rgba(216, 153, 43, 0.3), transparent 58%),
    linear-gradient(135deg, #0f3d35, #06231d 62%);
  color: #f2efe5;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.cta::before {
  position: absolute;
  z-index: -1;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(216, 153, 43, 0.16) 60deg,
    transparent 140deg,
    rgba(127, 210, 184, 0.14) 220deg,
    transparent 320deg
  );
  filter: blur(38px);
  animation: spin 22s linear infinite;
  content: "";
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.cta::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
  content: "";
}

.cta .eyebrow { color: rgba(242, 239, 229, 0.72); }
.cta .eyebrow::before { background: var(--gold-bright); }

.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: #fdfaf1;
}

.cta p:not(.eyebrow) {
  margin-top: 16px;
  max-width: 50ch;
  color: rgba(242, 239, 229, 0.76);
  font-size: 1.05rem;
}

.cta__actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.cta__note {
  color: rgba(242, 239, 229, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ---------- 15. Footer --------------------------------------------------- */

.footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(38px, 5vw, 60px) 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 34ch;
}

.footer__brand p {
  color: var(--faint);
  font-size: 0.92rem;
}

.footer__col strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__col a {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer__col a::after {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
  content: "";
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__col a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.86rem;
}

/* ---------- 16. Back to top --------------------------------------------- */

.to-top {
  position: fixed;
  z-index: 70;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  pointer-events: none;
}

.is-deep .to-top {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-3px);
}

.to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 17. Legal pages ---------------------------------------------- */

.legal-hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(26px, 3vw, 40px);
}

.legal-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 740;
  letter-spacing: -0.04em;
}

.legal-hero__title {
  background: linear-gradient(100deg, var(--ink) 20%, var(--accent) 70%, var(--gold) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-hero__sub {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  font-size: 0.86rem;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease);
}

.meta-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.meta-chip b {
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.meta-chip a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.meta-chip a:hover { text-decoration: underline; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.copy-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-wash);
}

.copy-btn.is-done {
  border-color: var(--gold-bright);
  background: var(--gold-wash);
  color: var(--gold);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* summary block ---------------------------------------------------------- */

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 2.4vw, 26px);
  margin-bottom: clamp(36px, 5vw, 58px);
}

.lead-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px circle at 8% -20%, var(--accent-wash), transparent 60%),
    linear-gradient(158deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md);
}

.lead-card > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.lead-card > p:first-of-type {
  margin-top: 0;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.6;
}

.notice svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facts {
  display: grid;
  gap: 12px;
  align-content: start;
}

.fact {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--chip);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.fact::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.5s var(--ease);
  content: "";
}

.fact:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.fact:hover::before { transform: scaleY(1); }

.fact strong {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact span,
.fact a {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.55;
}

.fact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.fact a:hover { text-decoration: underline; }

/* doc layout ------------------------------------------------------------- */

.doc-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 70px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xs);
}

.toc > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toc__list {
  position: relative;
  display: grid;
  gap: 1px;
  padding-left: 13px;
}

.toc__list::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  content: "";
}

.toc__list::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: var(--toc-h, 0px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--accent));
  transform: translateY(var(--toc-y, 0px));
  opacity: 0;
  transition: transform 0.45s var(--ease), height 0.45s var(--ease), opacity 0.3s var(--ease);
  content: "";
}

.toc__list.is-ready::after { opacity: 1; }

.toc__list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.toc__list a:hover {
  color: var(--ink);
  background: var(--accent-wash);
  transform: translateX(2px);
}

.toc__list a.is-active {
  color: var(--ink);
  font-weight: 620;
}

.doc { min-width: 0; }

.doc section {
  scroll-margin-top: calc(var(--header-h) + 26px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.doc section + section {
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 44px);
}

.doc h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.doc h2 .num {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0.75;
}

.doc h3 {
  margin-top: 26px;
  font-size: 1.1rem;
}

.doc p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
  max-width: 74ch;
}

.doc p strong { color: var(--ink-2); }

.doc a {
  color: var(--accent);
  font-weight: 550;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  max-width: 74ch;
}

.doc-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.doc-list li::before {
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--gold-wash);
  content: "";
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.tag:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: var(--gold-wash);
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background:
    radial-gradient(500px circle at 0% 0%, var(--accent-wash), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-xs);
}

.callout svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.callout span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* matrix table ----------------------------------------------------------- */

.matrix-wrap {
  margin-top: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.matrix {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.matrix thead th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
}

.matrix td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
  vertical-align: top;
}

.matrix td:first-child {
  color: var(--ink-2);
  font-weight: 600;
}

.matrix tbody tr {
  transition: background-color 0.3s var(--ease);
}

.matrix tbody tr:hover { background: var(--accent-wash); }
.matrix tbody tr:last-child td { border-bottom: 0; }

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

.doc-foot {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.doc-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.doc-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--ink) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.pill-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-wash);
}

.pill-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.pill-link:hover svg { transform: translateX(3px); }

/* ---------- 18. Responsive ----------------------------------------------- */

@media (max-width: 1040px) {
  .doc-layout { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 940px) {
  :root { --shell: min(720px, calc(100% - 32px)); }

  .hero__inner,
  .trust__grid,
  .summary-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero__visual { order: -1; }
  .shot-stack { height: clamp(350px, 62vw, 470px); }

  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__copy,
  .feature--flip .feature__visual { order: initial; }

  .feature__visual { justify-content: flex-start; }
  .shot-card { width: min(268px, 78%); }

  .cta__actions { justify-items: start; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .doc-layout { grid-template-columns: 1fr; }

  .toc {
    position: static;
    padding: 16px 18px;
  }

  .toc__list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    display: grid;
    padding-left: 0;
  }

  .toc__list::before,
  .toc__list::after { display: none; }

  .toc__list a { border: 1px solid var(--line); }

  .matrix { min-width: 0; }
  .matrix thead { display: none; }

  .matrix,
  .matrix tbody,
  .matrix tr,
  .matrix td { display: block; width: 100%; }

  .matrix tbody tr {
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .matrix tbody tr:last-child { border-bottom: 0; }

  .matrix td {
    padding: 8px 16px;
    border: 0;
  }

  .matrix td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .matrix td:first-child {
    padding-top: 16px;
    font-family: var(--font-display);
    font-size: 1.02rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: 100% 0;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease),
      visibility 0.35s;
    visibility: hidden;
  }

  .topbar__inner { position: relative; }

  .nav-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav a {
    height: 44px;
    justify-content: flex-start;
    font-size: 1rem;
  }

  .nav a::after { display: none; }
  .nav__lang { margin: 6px 0 0; justify-content: center !important; }
}

@media (max-width: 620px) {
  :root { --shell: min(560px, calc(100% - 26px)); }

  body { font-size: 16px; }

  .hero h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
  .shot-stack { height: 350px; }
  .shot--front { width: 200px; }
  .shot--mid { width: 152px; right: 0; }
  .shot--back { width: 144px; left: 0; }

  .loopdemo { border-radius: var(--r-md); }
  .footer__inner { grid-template-columns: 1fr; }
  .doc-foot { padding: 20px; }
  .lead-card, .trust, .feature { border-radius: var(--r-lg); }
}

/* ---------- 19. Motion preferences --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .js .hero h1 .word > span { transform: none; }
  .fx__orb { animation: none; }
}

@media print {
  .fx, .topbar, .to-top, .footer, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 20. Accordion body (animated) -------------------------------- */

.faq-item__body { overflow: hidden; }

.faq-item__inner {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item__inner a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 10px;
  left: 50%;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }
