/*
  marketing.css
  Shared marketing styles for:
  - /
  - /features/

  File order:
  1) Tokens + reset
  2) Shared components/layout
  3) Features/deep-dive components
  4) Landing-page-only additions (hero/proof bar)
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@400;500&family=Geist:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:          #f6f6f3;
  --bg-1:        #ffffff;
  --bg-2:        #f2f3ee;
  --bg-3:        #e8eadf;
  --border:      rgba(17, 24, 39, 0.1);
  --border-hi:   rgba(17, 24, 39, 0.2);
  --text:        #111827;
  --text-2:      #374151;
  --text-3:      #4b5563;
  --accent:      #f97316;
  --accent-dim:  rgba(249,115,22,0.14);
  --accent-glow: rgba(249,115,22,0.3);
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,0.12);
  --blue:        #60a5fa;
  --blue-dim:    rgba(96,165,250,0.12);
  --purple:      #c084fc;
  --purple-dim:  rgba(192,132,252,0.12);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  /* Hero hue control (edit this one value) */
  --hero-hue: 212;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Geist', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.25;
}

.grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner,
.proof-bar-inner,
.integrations-header,
.container,
.footer-inner {
  position: relative;
  z-index: 4;
}

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.1; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
  padding: 0 28px;
  background: rgba(246, 246, 243, 0.72);
  backdrop-filter: blur(12px);
}

nav.scrolled {
  background: rgba(246, 246, 243, 0.9);
  border-color: rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-inner > * {
  min-width: 0;
}

.nav-logo {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.nav-logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg { width: 14px; height: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  min-width: 0;
  justify-content: flex-end;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.btn-ghost:hover { color: var(--text); background: var(--bg-2); }

.btn-primary {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-hero {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-hero-ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-hi);
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-ghost:hover {
  color: var(--text);
  background: var(--bg-2);
}

/* ── Section shared ── */
section { padding: 110px 24px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 4.9vw, 66px);
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 22px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.62;
  max-width: 560px;
}

/* ── FEATURES ── */
.features { background: var(--bg); position: relative; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-1);
  padding: 30px 32px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 90px at 16% 12%, rgba(249,115,22,0.11) 0%, transparent 72%),
    radial-gradient(150px 100px at 86% 14%, rgba(96,165,250,0.1) 0%, transparent 74%),
    linear-gradient(135deg, rgba(192,132,252,0.06) 0%, transparent 40%, rgba(249,115,22,0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  background-size: 110% 110%, 110% 110%, 140% 140%;
  animation: flowPan 14s ease-in-out infinite;
}

.feature-card:hover { background: var(--bg-2); }
.feature-card:hover::before { opacity: 1; }
.feature-card.full { grid-column: span 2; }

.feature-icon {
  width: 34px; height: 34px;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tag-green  { background: var(--green-dim);  color: var(--green); }
.tag-blue   { background: var(--blue-dim);   color: var(--blue); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-orange { background: var(--accent-dim); color: var(--accent); }

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 1px;
}

.feat-mini {
  background: var(--bg-1);
  padding: 18px 22px;
  transition: background 0.2s;
}

.feat-mini:hover { background: var(--bg-2); }
.feat-mini-icon { font-size: 18px; margin-bottom: 8px; }

.feat-mini h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.feat-mini p { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ── HOW IT WORKS ── */
.how { background: var(--bg-1); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border));
}

.step { position: relative; }

.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step:first-child .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: -0.025em; }
.step p  { font-size: 15px; color: var(--text-2); line-height: 1.66; }

/* ── INTEGRATIONS — Marquee ── */
.integrations { background: var(--bg); padding: 96px 0; }

.integrations-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 56px;
}

.marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-outer::before,
.marquee-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.marquee-outer::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee-outer::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

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

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

.marquee-pill {
  flex-shrink: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
  white-space: nowrap;
}

.marquee-pill:hover { border-color: var(--border-hi); background: var(--bg-2); transform: translateY(-2px); }
.marquee-pill-icon { font-size: 26px; line-height: 1; }
.marquee-pill-name { font-size: 13.5px; font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; }

.integration-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
  padding: 0 24px;
}
.integration-more span { color: var(--accent); font-weight: 600; }

/* ── CTA ── */
.cta { background: var(--bg); border-top: 1px solid var(--border); }

.cta-box {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -96px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background:
    radial-gradient(230px 130px at 50% 52%, rgba(249,115,22,0.12) 0%, rgba(249,115,22,0.06) 40%, transparent 74%),
    radial-gradient(170px 90px at 24% 42%, rgba(96,165,250,0.08) 0%, transparent 76%),
    radial-gradient(160px 80px at 76% 38%, rgba(192,132,252,0.08) 0%, transparent 78%);
  pointer-events: none;
  background-size: 120% 120%, 120% 120%, 120% 120%;
  animation: flowPan 18s ease-in-out infinite, flowBreath 10s ease-in-out infinite;
}

.cta-box h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-box p { font-size: 17px; color: var(--text-2); margin-bottom: 40px; line-height: 1.65; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 12.5px; color: var(--text-3); }

/* ── PRICING ── */
.pricing {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(360px 180px at 14% 30%, rgba(249,115,22,0.055) 0%, transparent 70%),
    radial-gradient(360px 180px at 86% 72%, rgba(96,165,250,0.05) 0%, transparent 72%),
    radial-gradient(280px 160px at 48% 42%, rgba(192,132,252,0.035) 0%, transparent 72%),
    repeating-linear-gradient(135deg, rgba(17,24,39,0.022) 0 1px, transparent 1px 22px);
  opacity: 0.5;
  background-size: 120% 120%, 120% 120%, 120% 120%, 100% 100%;
  animation: flowPan 24s ease-in-out infinite;
}

.price-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: border-color 0.2s;
}

.price-card:hover { border-color: var(--border-hi); }

.price-card.featured { background: var(--bg-2); border-color: var(--accent); position: relative; }

.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-tier {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-dollar { font-size: 20px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.price-num { font-size: 48px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.price-period { font-size: 13px; color: var(--text-3); }

.price-limit {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 26px;
  margin-top: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.price-limit strong { color: var(--accent); font-weight: 600; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
}

.price-features li::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--green-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5L6.5 11.5L3 8' stroke='%2322c55e' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-plan { display: block; width: 100%; text-align: center; padding: 11px; border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; }
.btn-plan-outline { background: transparent; border: 1px solid var(--border-hi); color: var(--text-2); }
.btn-plan-outline:hover { background: var(--bg-2); color: var(--text); }
.btn-plan-accent { background: var(--accent); color: #fff; }
.btn-plan-accent:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-plan-dark { background: var(--bg-3); border: 1px solid var(--border-hi); color: var(--text); }
.btn-plan-dark:hover { background: var(--bg-2); }

.perk-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.perk-row:last-child { border-bottom: none; }
.perk-row .perk-icon { font-size: 16px; flex-shrink: 0; }

.pricing-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pricing-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-grid-3-auto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.pricing-feature-grid-2 { max-width: 960px; margin: 16px auto 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-toggle-wrap { display: flex; align-items: center; justify-content: center; background: var(--bg-1); border: 1px solid var(--border-hi); border-radius: 10px; padding: 4px; margin: 40px auto 0; width: fit-content; gap: 2px; }

.ptoggle-btn { padding: 9px 24px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-3); cursor: pointer; transition: all 0.2s; border: none; background: transparent; white-space: nowrap; }
.ptoggle-btn.active { background: var(--bg-3); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.pricing-coach-nudge { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--text-3); }
.pricing-coach-nudge button { background: none; border: none; color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.pricing-panel { display: none; margin-top: 40px; }
.pricing-panel.active { display: block; }

/* ── FOOTER ── */
footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: 60px 24px 36px; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { max-width: 260px; }
.footer-logo { font-size: 17px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-tagline { font-size: 13.5px; color: var(--text-3); line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; transition: all 0.2s; }
.social-btn:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-hi); }
.footer-col h5 { font-size: 12px; font-family: 'DM Mono', monospace; font-weight: 500; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-3); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 12.5px; color: var(--text-3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12.5px; color: var(--text-3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-1 { animation: fadeUp 0.65s ease both; }
.animate-2 { animation: fadeUp 0.65s 0.1s ease both; }
.animate-3 { animation: fadeUp 0.65s 0.2s ease both; }
.animate-4 { animation: fadeUp 0.65s 0.3s ease both; }
.animate-5 { animation: fadeUp 0.65s 0.4s ease both; }

/* ── Audience panels ── */
.aud-panel { display: none; }
.aud-panel.visible { display: block; }
.hero-aud { transition: opacity 0.2s; }
.coach-only { display: none; }
body.coach-mode .coach-only { display: block; }
body.coach-mode .athlete-only { display: none; }

.hero-panel-label { display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.label-individual { background: var(--blue-dim); color: var(--blue); }
.label-coach { background: var(--accent-dim); color: var(--accent); }

.coach-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
body.coach-mode .coach-mode-badge {
  opacity: 1;
  visibility: visible;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-inner { height: 60px; gap: 14px; }
  .nav-right { min-width: 0; }
  .coach-mode-badge { width: 88px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.full { grid-column: span 1; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .pricing-grid-3-auto { grid-template-columns: 1fr; }
  .pricing-feature-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .proof-bar-inner { gap: 16px; }
  .proof-divider { display: none; }
  .marquee-outer::before, .marquee-outer::after { width: 60px; }
}

@media (max-width: 680px) { .pricing-grid-2 { grid-template-columns: 1fr; } }

@media (max-width: 1080px) {
  .nav-inner { grid-template-columns: auto 1fr; gap: 14px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 20px; }
  nav { padding: 0 14px; }
  .pricing-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .btn-ghost { padding: 6px 10px; }
  .btn-primary { padding: 7px 12px; }
  .features-row { grid-template-columns: 1fr; }
  .marquee-outer::before, .marquee-outer::after { width: 40px; }
  .coach-mode-badge { display: none; }
}

/* ── Page-specific styles ── */

.page-hero {
  padding: 140px 24px 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background:
    radial-gradient(320px 180px at 50% 22%, rgba(249,115,22,0.11) 0%, rgba(249,115,22,0.05) 44%, transparent 74%),
    radial-gradient(220px 130px at 30% 44%, rgba(96,165,250,0.07) 0%, transparent 74%),
    radial-gradient(210px 120px at 70% 36%, rgba(192,132,252,0.065) 0%, transparent 76%);
  pointer-events: none;
  background-size: 120% 120%, 120% 120%, 120% 120%;
  animation: flowPan 20s ease-in-out infinite, pageHeroFloat 16s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(120deg, rgba(17,24,39,0.02) 0 1px, transparent 1px 24px);
  opacity: 0.35;
}

.page-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--text-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-3); }

.page-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--text);
  max-width: 760px;
  margin-bottom: 20px;
}

.page-hero h1 em { font-style: italic; color: var(--accent); }

.page-hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Table of contents */
.toc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.toc-link {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.toc-link:hover { color: var(--text); border-color: var(--border-hi); background: var(--bg-2); }

/* ── Deep-dive section layout ── */
.deep { background: var(--bg); }
.deep + .deep { background: var(--bg-1); }
.deep:nth-child(odd) { background: var(--bg); }
.deep:nth-child(even) { background: var(--bg-1); }

.deep-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.deep-inner.reverse { grid-template-columns: 1fr 380px; }
.deep-inner.reverse .deep-text { order: 1; }
.deep-inner.reverse .deep-visual { order: 2; }

.deep-text { padding-top: 8px; }

.deep-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.deep-text h2 em { font-style: italic; color: var(--accent); }

.deep-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.deep-text p:last-of-type { margin-bottom: 0; }

/* Detail list inside deep sections */
.detail-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.detail-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-icon.green  { background: var(--green-dim); }
.detail-icon.blue   { background: var(--blue-dim); }
.detail-icon.orange { background: var(--accent-dim); }
.detail-icon.purple { background: var(--purple-dim); }

.detail-list li strong { color: var(--text); font-weight: 600; }

/* ── Visual mock panels ── */
.deep-visual {
  position: sticky;
  top: 88px;
}

.mock-panel {
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.mock-header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red    { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green  { background: #28c840; }

.mock-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  margin-left: 6px;
  letter-spacing: 0.06em;
}

.mock-body { padding: 20px; }

/* sync status rows */
.sync-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--bg-3);
  font-size: 13px;
  color: var(--text-2);
}

.sync-row:last-child { margin-bottom: 0; }
.sync-icon { font-size: 18px; flex-shrink: 0; }
.sync-info { flex: 1; }
.sync-name { font-weight: 600; color: var(--text); font-size: 13px; }
.sync-time { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.sync-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
}
.sync-badge.live { background: rgba(34,197,94,0.15); color: var(--green); }
.sync-badge.ok   { background: var(--bg-2); color: var(--text-3); }

/* habit tracker mock */
.habit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.habit-row:last-child { border-bottom: none; }
.habit-name { flex: 1; color: var(--text); font-weight: 500; }
.habit-streak { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--accent); }

.habit-dots { display: flex; gap: 4px; }
.hdot {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--bg-3);
}
.hdot.done { background: var(--green); }
.hdot.today { background: var(--accent); }

/* metric cards mock */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card {
  background: var(--bg-3);
  border-radius: 10px;
  padding: 14px;
}

.metric-label { font-size: 11px; color: var(--text-3); margin-bottom: 4px; font-family: 'DM Mono', monospace; letter-spacing: 0.06em; }
.metric-value { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.metric-sub { font-size: 11px; color: var(--green); margin-top: 4px; }

/* mini chart bars */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 12px; }
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--bg-3);
  transition: background 0.2s;
}
.bar.accent { background: var(--accent); opacity: 0.8; }
.bar.hi     { background: var(--accent); }

/* form analysis mock */
.score-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.score-num { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; }
.score-lbl { font-size: 9px; font-family: 'DM Mono', monospace; color: var(--text-3); letter-spacing: 0.08em; }

.form-metric { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.form-metric:last-child { border-bottom: none; }
.form-metric-label { color: var(--text-2); }
.form-metric-bar { flex: 1; height: 4px; background: var(--bg-3); border-radius: 2px; margin: 0 12px; }
.form-metric-fill { height: 4px; border-radius: 2px; background: var(--accent); }
.form-metric-val { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-3); }

/* report mock */
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.report-week { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-3); letter-spacing: 0.08em; }
.report-score { font-size: 28px; font-weight: 700; color: var(--green); letter-spacing: -0.04em; }

.report-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.report-row:last-child { border-bottom: none; }
.report-cat { color: var(--text-2); }
.report-val { font-weight: 600; color: var(--text); }
.report-delta { font-size: 11px; color: var(--green); margin-left: 6px; }

/* ── FAQ ── */
.faq { background: var(--bg-1); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 48px;
}

.faq-item {
  background: var(--bg-1);
  padding: 28px 32px;
  transition: background 0.2s;
}

.faq-item:hover { background: var(--bg-2); }

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.faq-a {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 900px) {
  .deep-inner, .deep-inner.reverse { grid-template-columns: 1fr; gap: 40px; }
  .deep-inner.reverse .deep-text { order: 0; }
  .deep-inner.reverse .deep-visual { order: 0; }
  .deep-visual { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
}
/* Landing page: hero + proof bar */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow: clip;
  padding: 130px 24px 88px;
  background:
    radial-gradient(1120px 500px at 50% -120px, hsla(var(--hero-hue), 95%, 68%, 0.5) 0%, hsla(var(--hero-hue), 95%, 68%, 0.2) 38%, rgba(255,255,255,0) 74%),
    linear-gradient(180deg, hsla(var(--hero-hue), 100%, 93%, 0.54) 0%, rgba(246,246,243,0.92) 52%, rgba(246,246,243,1) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 800px;
  height: 500px;
  background:
    radial-gradient(340px 200px at 50% 48%, hsla(var(--hero-hue), 74%, 60%, 0.14) 0%, hsla(var(--hero-hue), 74%, 60%, 0.05) 42%, transparent 74%),
    radial-gradient(220px 140px at 28% 56%, hsla(var(--hero-hue), 88%, 66%, 0.085) 0%, transparent 76%),
    radial-gradient(220px 140px at 72% 44%, rgba(192,132,252,0.06) 0%, transparent 78%),
    radial-gradient(300px 160px at 52% 60%, rgba(249,115,22,0.05) 0%, transparent 78%);
  pointer-events: none;
  background-size: 120% 120%, 120% 120%, 120% 120%;
  animation: flowPan 22s ease-in-out infinite, heroFloat 15s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    conic-gradient(from 210deg at 50% 52%, rgba(17,24,39,0.02), transparent 36%, rgba(17,24,39,0.012) 64%, transparent 88%),
    repeating-linear-gradient(140deg, rgba(17,24,39,0.015) 0 1px, transparent 1px 22px);
  opacity: 0.28;
}

.hero-scenery {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-scenery::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(150px 90px at 50% 34%, rgba(255,255,255,0.74) 0%, rgba(255,255,255,0.2) 52%, transparent 82%),
    radial-gradient(520px 240px at 10% 62%, rgba(17,24,39,0.028), transparent 72%),
    radial-gradient(520px 240px at 90% 64%, rgba(17,24,39,0.032), transparent 74%);
  opacity: 0.84;
}

.hero-scenery::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 52%;
  background: linear-gradient(180deg, rgba(246,246,243,0) 0%, rgba(246,246,243,0.75) 52%, rgba(246,246,243,1) 100%);
}

.hero-mountain {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  background: linear-gradient(180deg, hsla(var(--hero-hue), 42%, 66%, 0.34) 0%, hsla(var(--hero-hue), 34%, 61%, 0.2) 100%);
  filter: blur(0.12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.hero-mountain.m1 {
  height: 41%;
  clip-path: polygon(0% 100%, 0% 78%, 6% 70%, 12% 73%, 19% 60%, 27% 66%, 34% 54%, 40% 58%, 47% 48%, 54% 55%, 62% 44%, 69% 50%, 76% 40%, 84% 47%, 91% 36%, 100% 44%, 100% 100%);
  opacity: 0.86;
}

.hero-mountain.m2 {
  height: 34%;
  clip-path: polygon(0% 100%, 0% 84%, 10% 76%, 18% 80%, 26% 70%, 36% 74%, 46% 65%, 57% 71%, 67% 60%, 77% 67%, 88% 58%, 100% 64%, 100% 100%);
  opacity: 0.66;
}

.hero-mountain.m3 {
  height: 28%;
  clip-path: polygon(0% 100%, 0% 88%, 14% 82%, 24% 86%, 35% 78%, 47% 84%, 60% 76%, 73% 82%, 86% 74%, 100% 79%, 100% 100%);
  opacity: 0.5;
}

@keyframes flowPan {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
  }
  50% {
    background-position: 8% 6%, 92% 12%, 48% 88%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
  }
}

@keyframes flowBreath {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 0.68; }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -55%) scale(1); }
  50% { transform: translate(-50%, -51%) scale(1.03); }
}

@keyframes pageHeroFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 900px) {
  .hero-sub { font-size: 18px; }
  .hero-prompt-main { font-size: clamp(18px, 3.2vw, 24px); }
}

@media (max-width: 640px) {
  section { padding: 80px 20px; }
  .hero { padding: 112px 20px 64px; min-height: 86vh; }
  .hero-sub { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
  .hero-prompt-card { max-width: 100%; min-height: 156px; padding: 16px 14px 12px; border-radius: 14px; }
  .hero-prompt-main { height: 62px; font-size: 17px; line-height: 1.35; }
  .hero-prompt-row { gap: 10px; }
  .hero-prompt-send { min-width: 74px; height: 36px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card::before,
  .cta-box::before,
  .pricing::before,
  .page-hero::before,
  .hero::before {
    animation: none !important;
  }
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  place-items: center;
}

.hero-aud {
  width: min(980px, 100%);
  text-align: center;
}

.hero h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 400;
  color: var(--text);
  max-width: 980px;
  line-height: 1.08;
  margin: 0 auto 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-2);
  max-width: 980px;
  line-height: 1.45;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-prompt-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 18px;
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,248,246,0.92) 100%);
  box-shadow:
    0 18px 48px rgba(17, 24, 39, 0.08),
    0 2px 0 rgba(255,255,255,0.65) inset,
    0 0 0 1px rgba(17,24,39,0.05) inset;
  backdrop-filter: blur(6px);
  min-height: 182px;
}

.hero-prompt-main {
  height: 92px;
  text-align: left;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.32;
  color: #1f2937;
  letter-spacing: -0.012em;
  padding: 6px 4px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.hero-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: -0.14em;
  animation: heroCaretBlink 1.1s steps(1, end) infinite;
}

.hero-prompt-row {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-prompt-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-prompt-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-prompt-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-prompt-send:hover {
  transform: translateY(-1px);
  background: #0b1320;
  box-shadow: 0 10px 20px rgba(17,24,39,0.2);
}

.hero-note {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.02em;
}

@keyframes heroCaretBlink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--bg-1);
}

.proof-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
}

.proof-label {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.3;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@media (max-width: 900px) {
  .proof-divider {
    display: none;
  }

  .proof-bar-inner {
    gap: 16px;
  }
}
