/* ============================================================
   BİLİM VE FİTNESS — tokens
============================================================ */
:root {
  --bg: #0A0C10;
  --bg-raised: #0F1218;
  --card: #13171F;
  --card-border: #1F2530;
  --line: rgba(226, 232, 240, 0.08);

  --accent: #4FD8E6;
  --accent-rgb: 79, 216, 230;
  --accent-soft: rgba(79, 216, 230, 0.12);
  --accent-glow: 0 0 18px rgba(79, 216, 230, 0.28);
  --accent-glow-lg: 0 0 36px rgba(79, 216, 230, 0.32);
  --mint: #8EF5C1;
  --mint-rgb: 142, 245, 193;
  --amber: #E8B04B;

  --text: #D6DCE5;
  --text-dim: #8590A2;
  --heading: #F4F6F9;

  --font-display: 'Geist', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(6rem, 12vw, 10rem);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-grain: 1;
  --z-content: 2;
  --z-header: 50;
  --z-menu: 60;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed film-grain overlay — breaks the digital flatness of the dark surfaces. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

em.serif, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

::selection { background: var(--accent); color: #041417; }

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #041417;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { position: relative; z-index: var(--z-content); }

/* ============================================================
   SHARED — labels, badges, headings, buttons
============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232, 176, 75, 0.08);
  border: 1px solid rgba(232, 176, 75, 0.28);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.4rem;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.section-heading {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 1.1rem;
}
.section-body {
  margin-top: 1.4rem;
  color: var(--text);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  max-width: 52ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #041417;
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  color: var(--heading);
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s ease, gap 0.25s var(--ease-out);
}
.text-link:hover { border-color: var(--accent); gap: 0.7rem; }

/* Scroll progress — scrubbed by app.js */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: calc(var(--z-header) + 1);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.split-word { display: inline-block; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
}
.logo span.amp { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.nav-links {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: var(--heading); background: rgba(255, 255, 255, 0.04); }
.nav-links a[aria-current="page"] { color: var(--heading); background: rgba(255, 255, 255, 0.07); }

.nav-cta {
  font-size: 0.86rem;
  font-weight: 500;
  color: #041417;
  background: var(--accent);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--accent-glow); }
.nav-cta:active { transform: scale(0.98); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--heading);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle span::before { transform: translateY(-5px); }
.nav-toggle span::after { transform: translateY(5px); }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: rotate(45deg); }
.menu-open .nav-toggle span::after { transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgba(10, 12, 16, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-links a {
    font-size: 1.15rem;
    padding: 0.9rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: rgba(10, 12, 16, 0.96); border-bottom-color: var(--line); }
  .nav-toggle { display: grid; }
  .nav-actions { display: flex; align-items: center; gap: 0.6rem; }
}
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ============================================================
   HERO
============================================================ */
.hero-standalone {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-standalone::after {
  /* Ambient light pool behind the cover — single, top-right light source. */
  content: '';
  position: absolute;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  top: -25vmax;
  right: -20vmax;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 60%);
  pointer-events: none;
}
.kinetic-grid-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-inner { position: relative; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--heading);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}
.hero-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0.6);
  animation: pill-ping 2s ease-out infinite;
}
@keyframes pill-ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0.6); }
  100% { box-shadow: 0 0 0 9px rgba(var(--mint-rgb), 0); }
}
.hero-heading {
  margin-top: 1.6rem;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.heading-line { display: block; padding-bottom: 0.06em; }
.heading-line.serif {
  font-size: 1.08em;
  letter-spacing: -0.02em;
  color: var(--accent);
  padding-left: 0.04em;
  padding-right: 0.1em;
  width: fit-content;
  background: linear-gradient(100deg, var(--accent) 10%, var(--mint) 60%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-sheen 6s ease-in-out infinite;
}
@keyframes text-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.heading-line .char { display: inline-block; will-change: transform, filter, opacity; }
.heading-line .char.is-space { width: 0.24em; }

.hero-tagline {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--text);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.hero-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
}
.store-badge, .hero-book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.15;
}
.store-badge small, .hero-book-link small {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--text-dim);
}
.store-badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.hero-book-link {
  border-style: dashed;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.hero-book-link:hover { border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.06); }
.hero-book-link img { width: 20px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }

/* App showcase: two phones + floating data chips */
.hero-device {
  position: relative;
  height: 620px;
  justify-self: center;
  width: min(100%, 520px);
}
.hero-aura {
  position: absolute;
  inset: 5% -10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(var(--accent-rgb), 0.38), transparent 55%),
    radial-gradient(circle at 65% 70%, rgba(var(--mint-rgb), 0.24), transparent 55%);
  filter: blur(60px);
  animation: aura-spin 24s linear infinite;
}
.hero-phone.phone-frame {
  position: absolute;
  width: 270px;
}
.hero-phone-back {
  left: 0;
  top: 70px;
  transform: rotate(-9deg) scale(0.88);
  opacity: 0.75;
  filter: saturate(0.8);
}
.hero-phone-front {
  right: 10px;
  top: 0;
  z-index: 2;
  animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
.hero-phone-screen {
  position: relative;
  height: 560px;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem 1.2rem;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(var(--accent-rgb), 0.2), transparent 60%),
    radial-gradient(100% 50% at 0% 100%, rgba(var(--mint-rgb), 0.12), transparent 60%),
    #070A0E;
}
.hero-phone-back .phone-bars { flex: 0 0 200px; }
.coach-home { align-items: stretch; }
.hero-orb {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.hero-orb .coach-orb { width: 150px; height: 150px; }
.hero-orb-caption {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--heading);
}
.hero-mic {
  margin: auto auto 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5);
  animation: mic-ping 2.2s ease-out infinite;
}
.hero-mic span {
  width: 12px;
  height: 20px;
  border-radius: 6px;
  border: 2.5px solid #041417;
  position: relative;
}
.hero-mic span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 2.5px;
  height: 6px;
  margin-left: -1.25px;
  background: #041417;
}
@keyframes mic-ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  100% { box-shadow: 0 0 0 18px rgba(var(--accent-rgb), 0); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(15, 18, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: chip-float 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-chip small { font-size: 0.66rem; color: var(--text-dim); }
.hero-chip strong { font-size: 0.95rem; font-weight: 600; color: var(--heading); }
.chip-score { left: -10px; top: 40px; animation-delay: -1s; }
.chip-score strong {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.chip-load {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  right: -40px;
  top: 118px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--heading);
  animation-delay: -3s;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF5A52; animation: live-pulse 1.2s ease-in-out infinite; }
.chip-plan { left: 20px; bottom: 30px; animation-delay: -4.5s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 1100px) {
  .chip-load { right: -6px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { height: 500px; width: min(100%, 400px); margin-top: 1rem; }
  .hero-phone.phone-frame { width: 220px; }
  .hero-phone-screen { height: 450px; border-radius: 32px; }
  .hero-phone-back { top: 50px; left: -10px; }
  .hero-phone-front { right: 0; }
  .hero-orb { margin-top: 2.2rem; }
  .hero-orb .coach-orb { width: 120px; height: 120px; }
  .hero-orb-caption { font-size: 0.92rem; }
  .chip-score { left: 0; top: 10px; }
  .chip-load { right: -6px; top: 92px; }
  .chip-plan { left: 0; bottom: 10px; }
  .scroll-indicator { display: none; }
}

/* ============================================================
   MARQUEE BAND
============================================================ */
.marquee-wrap {
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.marquee-text {
  display: block;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.35);
  will-change: transform;
}
.marquee-text.is-filled {
  margin-top: 0.5rem;
  margin-left: -40vw;
  color: rgba(var(--accent-rgb), 0.1);
  -webkit-text-stroke: 0;
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  position: relative;
  padding: var(--section-y) 0 calc(var(--section-y) * 1.1);
}
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .section-body { margin-left: auto; margin-right: auto; }

/* --- app section: scroll-driven steps + sticky phone --- */
.section-app { overflow: clip; }
.app-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.feature-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  min-height: 62vh;
  align-content: center;
  padding: 2rem 0 2rem 1.6rem;
  border-left: 1px solid var(--line);
  opacity: 0.32;
  transition: opacity 0.5s ease;
}
.feature-step.is-active { opacity: 1; }
.feature-progress {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--mint));
  transform: scaleY(0);
  transform-origin: top;
}
.feature-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 0.55rem;
  transition: color 0.4s ease;
}
.feature-step.is-active .feature-icon { color: var(--accent); }
.feature-step h4 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.feature-step p {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 38ch;
}

/* --- phone mockup --- */
.app-mockup {
  position: sticky;
  top: calc(50vh - 290px);
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.app-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  top: 50%;
  left: 50%;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.35), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(var(--mint-rgb), 0.25), transparent 55%);
  filter: blur(50px);
  opacity: 0.8;
}
.app-orbit::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--accent-rgb), 0.25);
  filter: none;
}
.phone-frame {
  position: relative;
  width: 290px;
  background: linear-gradient(160deg, #2A3240, #0F1218 40%, #1A202A);
  border-radius: 46px;
  padding: 0.6rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 560px;
  border-radius: 38px;
  padding: 0.8rem 1.1rem 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(100% 50% at 0% 100%, rgba(var(--mint-rgb), 0.14), transparent 60%),
    #070A0E;
}
.phone-notch {
  width: 90px; height: 26px;
  background: #000;
  border-radius: 999px;
  margin: 0 auto;
  flex-shrink: 0;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim); }
.phone-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.phone-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.phone-views { position: relative; flex: 1; }
.phone-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out), visibility 0.5s;
}
.phone-view.is-active { opacity: 1; visibility: visible; transform: none; }

.phone-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.phone-metric span { font-size: 0.72rem; color: var(--text-dim); }
.phone-metric strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.phone-metric em { font-style: normal; font-size: 0.68rem; color: var(--mint); }
.hero-metric {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--mint-rgb), 0.08));
  border-color: rgba(var(--accent-rgb), 0.3);
}
.hero-metric strong {
  font-size: 2.4rem;
  letter-spacing: -0.05em;
  line-height: 1.05;
  background: linear-gradient(90deg, #fff, var(--mint));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.phone-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-height: 120px;
  padding: 0.8rem 0.9rem 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.phone-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--mint), var(--accent) 45%, rgba(var(--accent-rgb), 0.1));
  border-radius: 6px 6px 2px 2px;
  transform-origin: bottom;
}
.phone-bars span:nth-child(6) { box-shadow: 0 0 18px rgba(var(--mint-rgb), 0.5); }

/* plan view */
.phone-plan-head { display: flex; flex-direction: column; gap: 0.1rem; }
.phone-plan-head span { font-size: 0.7rem; color: var(--text-dim); }
.phone-plan-head strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--heading); }
.phone-plan { display: flex; flex-direction: column; gap: 0.55rem; }
.phone-plan li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-plan li:first-child { border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.08); }
.phone-plan i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #041417;
  background: linear-gradient(135deg, var(--accent), var(--mint));
}
.phone-plan b { display: block; font-size: 0.8rem; font-weight: 600; color: var(--heading); }
.phone-plan small { font-size: 0.66rem; color: var(--text-dim); }
.phone-plan .chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--mint);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(var(--mint-rgb), 0.1);
}
.phone-ai-note {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text);
  padding: 0.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--mint-rgb), 0.1));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.phone-ai-note span {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  background: var(--accent);
  color: #041417;
}

/* load view */
.phone-ring { position: relative; width: 190px; margin: 0.4rem auto 0; }
.phone-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 10; }
.ring-value {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.15s;
}
.phone-view.is-active .ring-value { stroke-dashoffset: 78; }
.phone-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.phone-ring-label strong { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.05em; color: var(--heading); line-height: 1; }
.phone-ring-label span { margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }
.phone-zone {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--mint);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--mint-rgb), 0.1);
  border: 1px solid rgba(var(--mint-rgb), 0.25);
}
.zone-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.phone-view[data-view="2"] .phone-metric { margin-top: auto; }

.phone-tabs { display: flex; justify-content: center; gap: 6px; padding-top: 0.2rem; }
.phone-tabs span {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.4s var(--ease-out), background 0.4s ease;
}
.phone-tabs span.is-active { width: 22px; background: linear-gradient(90deg, var(--accent), var(--mint)); }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-mockup { position: relative; top: 0; order: -1; }
  .app-orbit { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
  .feature-step { min-height: 0; padding: 1.6rem 0 1.6rem 1.4rem; opacity: 1; }
  .feature-step:not(.is-active) .feature-icon { color: var(--text-dim); }
  .feature-step.is-active .feature-progress { transform: scaleY(1); transition: transform 0.4s var(--ease-out); }
}
@media (max-width: 380px) {
  .phone-frame { width: 260px; }
  .phone-screen { height: 520px; }
}

/* --- AI coach: full-screen pinned theater --- */
.section-coach {
  position: relative;
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
}
.coach-intro {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.coach-intro .section-label::before { display: none; }
.coach-intro .section-body { margin-left: auto; margin-right: auto; max-width: 56ch; }

.coach-pin { position: relative; }
.coach-theater {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #040608;
}
.coach-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(var(--accent-rgb), 0.18), transparent 70%),
    radial-gradient(40% 40% at 30% 70%, rgba(var(--mint-rgb), 0.08), transparent 70%),
    radial-gradient(40% 40% at 75% 25%, rgba(232, 176, 75, 0.06), transparent 70%);
}
.coach-bg::after {
  /* faint measurement grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
}

/* viewfinder */
.coach-viewfinder {
  position: absolute;
  inset: clamp(5rem, 9vh, 6rem) clamp(1rem, 4vw, 3.5rem) clamp(4.5rem, 9vh, 6rem);
  opacity: 0;
  pointer-events: none;
}
.vf-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(var(--mint-rgb), 0.85);
  filter: drop-shadow(0 0 6px rgba(var(--mint-rgb), 0.6));
}
.vf-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.vf-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.vf-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.vf-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.vf-rec, .vf-meta {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--heading);
}
.vf-rec { left: 48px; }
.vf-rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A52; animation: live-pulse 1.2s ease-in-out infinite; }
.vf-meta { right: 48px; color: var(--text-dim); }
.vf-scan {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(var(--mint-rgb), 0.12));
  border-bottom: 1px solid rgba(var(--mint-rgb), 0.55);
  animation: vf-scan 3.2s ease-in-out infinite;
}
@keyframes vf-scan {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 90px); }
}

/* pose */
.coach-pose {
  position: absolute;
  left: 50%;
  top: 50%;
  height: min(56vh, 520px);
  aspect-ratio: 200 / 340;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.coach-pose svg { display: block; width: 100%; height: 100%; overflow: visible; }
.coach-pose .pose-bones line {
  stroke: var(--mint);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(var(--mint-rgb), 0.85));
}
.coach-pose .pose-head { fill: none; stroke: var(--mint); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(var(--mint-rgb), 0.85)); }
.coach-pose .pose-joints circle { fill: #fff; stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 1)); }
.coach-pose .pose-arc { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.coach-pose .pose-arc.knee { stroke: var(--accent); }
.coach-pose .pose-arc.hip { stroke: var(--amber); }

.hud-read {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(7, 10, 14, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  white-space: nowrap;
  opacity: 0;
}
.hud-read small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.hud-read b { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
.hud-read.warn { border-color: rgba(232, 176, 75, 0.55); }
.hud-read.warn b { color: var(--amber); }
.hud-read::before {
  /* leader line toward the joint */
  content: '';
  position: absolute;
  top: 50%;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), transparent);
}
.r-knee { right: calc(100% - 28%); top: 62%; }
.r-knee::before { left: 100%; }
.r-depth { left: calc(43% + 50px); top: 74%; }
.r-depth::before { right: 100%; }
.r-hip { left: calc(69% + 48px); top: 50%; }
.r-hip::before { right: 100%; background: linear-gradient(270deg, rgba(232, 176, 75, 0.9), transparent); }

/* gauge */
.coach-gauge {
  position: absolute;
  right: clamp(2rem, 12vw, 12rem);
  top: 50%;
  width: clamp(150px, 18vw, 240px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0;
}
.coach-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 8; }
.gauge-value { fill: none; stroke: url(#gaugeGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; filter: drop-shadow(0 0 8px rgba(var(--mint-rgb), 0.6)); }
.gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-label strong {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.gauge-label span { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

/* orb (shared base styles: also used by the hero phone) */
/* Siri-like orb */
.coach-orb {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: #04070A;
  box-shadow:
    0 0 60px rgba(var(--accent-rgb), 0.45),
    0 0 120px rgba(var(--mint-rgb), 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
  animation: orb-breathe 2.4s ease-in-out infinite;
}
.coach-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), transparent 32%);
  mix-blend-mode: screen;
}
.coach-orb .blob {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 45%;
  mix-blend-mode: screen;
  filter: blur(14px);
  opacity: 0.9;
}
.coach-orb .b1 { background: radial-gradient(circle at 30% 50%, var(--accent), transparent 60%); animation: blob-a 5s linear infinite; }
.coach-orb .b2 { background: radial-gradient(circle at 70% 40%, var(--mint), transparent 60%); animation: blob-b 6.5s linear infinite; }
.coach-orb .b3 { background: radial-gradient(circle at 50% 75%, #3D7BFF, transparent 55%); animation: blob-a 7.5s linear infinite reverse; opacity: 0.6; }
.coach-orb .b4 { background: radial-gradient(circle at 55% 30%, var(--amber), transparent 50%); animation: blob-b 9s linear infinite reverse; opacity: 0.45; }
@keyframes blob-a {
  0% { transform: translate(-8%, -5%) rotate(0deg); }
  50% { transform: translate(-2%, 4%) rotate(180deg); }
  100% { transform: translate(-8%, -5%) rotate(360deg); }
}
@keyframes blob-b {
  0% { transform: translate(-4%, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-10%, -6%) rotate(-180deg) scale(1.1); }
  100% { transform: translate(-4%, 0) rotate(-360deg) scale(1); }
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.06); }
  55% { transform: scale(0.97); }
  75% { transform: scale(1.04); }
}
.coach-wave { display: flex; align-items: center; gap: 4px; height: 26px; }
.coach-wave span {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--mint), var(--accent));
  animation: wave 1.1s ease-in-out infinite;
}
.coach-wave span:nth-child(2) { animation-delay: -0.9s; }
.coach-wave span:nth-child(3) { animation-delay: -0.3s; }
.coach-wave span:nth-child(4) { animation-delay: -0.7s; }
.coach-wave span:nth-child(5) { animation-delay: -0.2s; }
.coach-wave span:nth-child(6) { animation-delay: -0.6s; }
.coach-wave span:nth-child(7) { animation-delay: -0.4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* orb stage */
.coach-orb-stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 40%;
  width: clamp(200px, 26vw, 320px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.coach-orb-stage .coach-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-shadow:
    0 0 100px rgba(var(--accent-rgb), 0.5),
    0 0 220px rgba(var(--mint-rgb), 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
}
.coach-orb-stage .coach-orb .blob { filter: blur(24px); }
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  animation: orb-ripple 3.6s ease-out infinite;
}
.orb-ring:nth-child(2) { animation-delay: 1.2s; }
.orb-ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes orb-ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.coach-orb-stage .coach-wave {
  position: absolute;
  left: 50%;
  top: calc(100% + 1.6rem);
  transform: translateX(-50%);
  height: 34px;
  gap: 5px;
}
.coach-orb-stage .coach-wave span { width: 5px; }
.coach-orb-stage .coach-wave span:nth-child(8) { animation-delay: -0.5s; }
.coach-orb-stage .coach-wave span:nth-child(9) { animation-delay: -0.8s; }

/* subtitles */
.coach-subs {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(5.5rem, 13vh, 8rem);
  width: min(90%, 900px);
  min-height: 6rem;
  transform: translateX(-50%);
}
.coach-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--heading);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
}
.coach-line:not([data-line="0"]) { opacity: 0; }
.coach-line .split-word { display: inline-block; }
.coach-reply {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1rem);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  border-radius: 20px 20px 6px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #041417;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  box-shadow: 0 20px 40px -14px rgba(var(--accent-rgb), 0.6);
  opacity: 0;
}
.coach-reply span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(4, 20, 23, 0.85);
  color: var(--mint);
}

/* chapters */
.coach-chapters {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  transform: translateX(-50%);
  margin: 0;
  padding: 0 0 0.9rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(90%, 560px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dim);
}
.coach-chapters li { opacity: 0.45; }
.coach-chapters li:first-child { opacity: 1; color: var(--heading); }
.chapters-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.chapters-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transform: scaleX(0.25);
  transform-origin: left;
}

@media (max-width: 900px) {
  .coach-intro { text-align: left; }
  .coach-intro .section-body { margin-left: 0; }
  .coach-orb-stage { top: 38%; width: min(58vw, 240px); }
  .coach-pose { height: min(42vh, 360px); top: 44%; }
  .hud-read { padding: 0.4rem 0.6rem; }
  .hud-read b { font-size: 1rem; }
  .hud-read::before { width: 22px; }
  .r-knee { right: calc(100% - 25%); }
  .r-hip { left: 78%; }
  .r-depth { display: none; }
  .coach-gauge { right: 1.4rem; top: 58%; width: 92px; transform: none; }
  .gauge-label strong { font-size: 1.8rem; }
  .gauge-label span { display: none; }
  .vf-meta { display: none; }
  .vf-rec { top: auto; bottom: 12px; left: 44px; }
  .coach-line { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .coach-reply { font-size: 0.88rem; }
}

/* --- stats band --- */
.section-stats {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value { display: flex; align-items: baseline; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 7vw, 6rem);
  letter-spacing: -0.05em;
  color: var(--heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--accent);
  margin-left: 0.15rem;
}
.stat-label {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat { border-left: none; padding: 0 0 2rem; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* --- book content showcase: 3D tilted column wall --- */
.section-showcase { overflow: hidden; }
.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.book-wall {
  position: relative;
  width: 100%;
  height: min(78vh, 720px);
  margin-top: 3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-wall-inner {
  display: flex;
  gap: 1.2rem;
  transform: rotateX(18deg) rotateY(-10deg) rotateZ(12deg);
  transform-style: preserve-3d;
}
.book-col {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: book-col-scroll 26s linear infinite;
}
.book-col.reverse { animation-direction: reverse; }
.book-wall:hover .book-col { animation-play-state: paused; }
@keyframes book-col-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-50% - 0.6rem)); }
}
.wall-card {
  background: linear-gradient(180deg, #151A22, #11151C);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 40px -18px rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease;
}
.wall-card:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.wall-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  line-height: 1;
}
.wall-card h4 {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.wall-card p {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.wall-fade { position: absolute; pointer-events: none; }
.wall-fade-top { top: 0; left: 0; right: 0; height: 22%; background: linear-gradient(to bottom, var(--bg), transparent); }
.wall-fade-bottom { bottom: 0; left: 0; right: 0; height: 22%; background: linear-gradient(to top, var(--bg), transparent); }
.wall-fade-left { top: 0; left: 0; bottom: 0; width: 12%; background: linear-gradient(to right, var(--bg), transparent); }
.wall-fade-right { top: 0; right: 0; bottom: 0; width: 12%; background: linear-gradient(to left, var(--bg), transparent); }

/* --- team: horizontal marquee --- */
.section-team { background: var(--bg-raised); border-top: 1px solid var(--line); overflow: hidden; }
.team-marquee {
  position: relative;
  margin-top: 3.5rem;
  overflow: hidden;
}
.team-track {
  display: flex;
  gap: 1.5rem;
  width: fit-content;
  animation: team-scroll 36s linear infinite;
}
.team-marquee:hover .team-track { animation-play-state: paused; }
@keyframes team-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.75rem)); }
}
.team-tile {
  position: relative;
  flex-shrink: 0;
  width: 290px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.team-tile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.8s var(--ease-out);
}
.team-tile:hover .team-tile-photo { filter: grayscale(0) brightness(1); transform: scale(1.06); }
.team-tile-caption {
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.team-tile-caption h4 { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.team-tile-caption p {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-fade { position: absolute; top: 0; bottom: 0; width: 10%; pointer-events: none; z-index: 1; }
.team-fade-left { left: 0; background: linear-gradient(to right, var(--bg-raised), transparent); }
.team-fade-right { right: 0; background: linear-gradient(to left, var(--bg-raised), transparent); }

@media (max-width: 768px) {
  .book-wall { height: 62vh; }
  .book-col { width: 170px; }
  .team-tile { width: 230px; }
}

/* --- beta CTA --- */
#beta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
#beta .kinetic-grid-canvas {
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}
.beta-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 28px;
  background: rgba(15, 18, 24, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 100px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -40px rgba(var(--accent-rgb), 0.35);
}
.beta-panel .section-label::before { display: none; }
.beta-panel .badge { margin-left: auto; margin-right: auto; }
.beta-panel .section-body { margin-left: auto; margin-right: auto; }

.beta-form { margin-top: 2.4rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.form-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row:focus-within { border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1); }
#beta-email {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1.1rem;
}
#beta-email::placeholder { color: var(--text-dim); }
#beta-email:focus { outline: none; }
.beta-form button { padding: 0.85rem 1.4rem; }
.beta-form.is-submitted .form-row { opacity: 0.55; pointer-events: none; }
.beta-form.is-invalid .form-row { border-color: #E5736B; }
.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.form-note.is-success { color: var(--accent); }
.form-note.is-error { color: #E5736B; }

@media (max-width: 560px) {
  .form-row { flex-direction: column; border-radius: 18px; }
  .beta-form button { width: 100%; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  gap: 0.4rem 1.8rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.footer-dot { color: var(--accent); }
.footer-credit { margin-left: auto; color: var(--text); }
.footer-credit strong { font-weight: 500; color: var(--heading); }
@media (max-width: 560px) { .footer-credit { margin-left: 0; width: 100%; } }

/* ============================================================
   SUBPAGES — shared hero spacing
============================================================ */
.page-main { padding-top: var(--header-h); }

/* ============================================================
   REDUCED MOTION
============================================================ */
@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;
  }
  /* Book wall / team marquee: slow, contained, user-requested — kept alive under reduced-motion. */
  .book-col { animation-duration: 26s !important; animation-iteration-count: infinite !important; }
  .team-track { animation-duration: 36s !important; animation-iteration-count: infinite !important; }
}

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

[data-split] { perspective: 600px; }

/* Subpage scroll reveals (site.js toggles .is-visible via IntersectionObserver) */
.js-reveal .reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), border-color 0.3s ease, transform 0.4s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s;
}
.js-reveal .reveal.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; translate: none; }
}
