/* Rygiene marketing site — warm cream palette, matches the app branding. */

:root {
  --bg: #faf7f2;
  --sand: #f0ebe0;
  --surface: #ffffff;
  --divider: #e8e1d3;
  --tan: #d4a574;
  --tan-deep: #c18a4a;
  --accent: #e8915a;
  --ink: #2d2823;
  --ink-soft: #6b6660;
  --ink-mute: #a39c92;
  --cream: #faf7f2;
  --charcoal: #2d2823;
  --charcoal-deep: #211c18;
  /* Forest-green hero/closing/footer (matches the new logo). */
  --hero-bg: radial-gradient(ellipse 90% 75% at 50% 35%, #1f7a4d 0%, #0d2c1e 100%);
  --green-deep: #0d2c1e;
  --green-deepest: #0a2417;
  --mint: #cdeede;
  /* Brand accents (logo: green hub + amber bolt) — used across the body sections. */
  --brand-green: #1E8A52;
  --brand-green-d: #15693e;
  --brand-amber: #F2A35C;
  --shadow-soft: 0 10px 30px rgba(45, 40, 35, 0.08);
  --shadow-lift: 0 18px 50px rgba(45, 40, 35, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Guard against horizontal overflow on mobile. Decorative blurred glows
   (.showcase-glow, etc.) are fixed-width and centered; on a narrow phone they
   bleed past the right edge, widening the page so full-bleed green sections
   show a cream strip on the right ("top/bottom look off"). Clip it page-wide. */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--cream);
  padding-bottom: 0;
}

/* animated glow behind the hero */
.hero-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(45, 197, 122, 0.45) 0%, rgba(31, 122, 77, 0) 62%);
  filter: blur(18px);
  pointer-events: none;
  animation: float-glow 11s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) translateY(26px) scale(1.06); opacity: 1; }
}

.nav {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: inherit;
}

.nav-mark {
  width: 44px;
  height: 44px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--cream);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand-amber);
  color: #2d1810;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(242, 163, 92, 0.35);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(242, 163, 92, 0.5);
}

/* hero two-column grid */
.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 8px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.1);
  border: 1px solid rgba(250, 247, 242, 0.22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--mint);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d27f;
  box-shadow: 0 0 0 0 rgba(56, 210, 127, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(56, 210, 127, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(56, 210, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 210, 127, 0); }
}

.hero-eyebrow {
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-amber);
}

.hero-headline {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin-top: 10px;
}

.hero-headline .hl {
  color: var(--brand-amber);
  font-style: italic;
}

.hero-sub {
  font-size: 18.5px;
  color: rgba(250, 247, 242, 0.82);
  margin: 20px 0 0;
  max-width: 500px;
}

/* ===== WAITLIST FORM ===== */
.waitlist {
  margin-top: 26px;
}
.waitlist-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--mint);
  margin-bottom: 12px;
}
.waitlist-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.waitlist-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(250, 247, 242, 0.45);
  background: rgba(250, 247, 242, 0.97);
  color: var(--ink);
  font-size: 15px;
}
.waitlist-input::placeholder {
  color: var(--ink-mute);
}
.waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 145, 90, 0.35);
}
.waitlist-btn {
  flex: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #2d1810;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(232, 145, 90, 0.4);
}
.waitlist-btn:hover {
  background: #f2a35c;
  transform: translateY(-1px);
}
.waitlist-btn:active {
  transform: translateY(1px);
}
.waitlist-btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.waitlist-msg {
  font-size: 14px;
  margin-top: 12px;
  min-height: 18px;
  color: rgba(250, 247, 242, 0.7);
}
.waitlist-msg.err {
  color: #ffd9c2;
}
.waitlist-success {
  margin: 16px 0 0;
  max-width: 460px;
  font-size: 17px;
  font-weight: 700;
  color: var(--mint);
}

/* ===== APP STORE BADGE ===== */
.store-cta {
  margin-top: 28px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(250, 247, 242, 0.35);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.store-badge:active {
  transform: translateY(0);
}
.store-badge-apple {
  width: 30px;
  height: 30px;
  flex: none;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.store-badge-small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.85;
}
.store-badge-big {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.store-cta-closing {
  display: flex;
  justify-content: center;
}

.hero-price {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.85);
}
.closing-price {
  text-align: center;
  margin: 16px auto 0;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.7);
}
.stars {
  color: var(--brand-amber);
  letter-spacing: 2px;
  font-size: 15px;
}

/* ===== PHONE MOCKUP ===== */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.hero-phone {
  position: relative;
  width: 290px;
  background: #1b1a18;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255,255,255,0.06) inset;
  animation: phone-bob 6s ease-in-out infinite;
}

@keyframes phone-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(-1deg); }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #1b1a18;
  border-radius: 0 0 16px 16px;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  background: var(--bg);
  border-radius: 33px;
  overflow: hidden;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
}

.rr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.rr-back, .rr-share { color: var(--brand-green); font-size: 18px; }

.rr-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rr-grade-ring {
  position: relative;
  width: 118px;
  height: 118px;
}
.rr-grade-ring svg { width: 118px; height: 118px; transform: rotate(-90deg); }
.rr-ring-bg { fill: none; stroke: #e8e1d3; stroke-width: 9; }
.rr-ring-fg {
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: ring-fill 1.6s ease-out 0.3s forwards;
}
@keyframes ring-fill {
  to { stroke-dashoffset: 26; } /* ~92% */
}
.rr-grade-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 42px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.rr-grade-minus {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 3px;
}
.rr-grade-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-green);
  margin-top: 2px;
}

.rr-map {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 92px;
  border: 1px solid var(--divider);
}
.rr-map svg { width: 100%; height: 100%; display: block; }
.rr-route {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: draw-route 2s ease-out 0.5s forwards;
}
@keyframes draw-route { to { stroke-dashoffset: 0; } }
.rr-flag { animation: pulse-flag 1.8s ease-in-out infinite; }
@keyframes pulse-flag {
  0%, 100% { opacity: 1; r: 7; }
  50%      { opacity: 0.6; r: 9; }
}
.rr-map-pin {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(45, 40, 35, 0.86);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.rr-signals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.rr-signal-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.rr-bar {
  height: 8px;
  background: #e8e1d3;
  border-radius: 999px;
  overflow: hidden;
}
.rr-bar i {
  display: block;
  height: 100%;
  background: var(--brand-green);
  border-radius: 999px;
  transform-origin: left;
  animation: bar-grow 1.3s ease-out 0.6s both;
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: var(--shadow-lift);
  font-size: 12.5px;
  z-index: 4;
}
.float-card strong { display: block; font-size: 13px; }
.float-card span { color: var(--ink-soft); }
.float-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: #fdeede;
}
.float-ic-live { background: #d9f3e6; }
.float-alert {
  top: 64px;
  right: -6px;
  animation: card-float-a 5s ease-in-out infinite;
}
.float-live {
  bottom: 70px;
  left: -10px;
  animation: card-float-b 5.6s ease-in-out infinite;
}
@keyframes card-float-a {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes card-float-b {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* trust strip */
.hero-strip {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 20px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(250, 247, 242, 0.8);
  font-size: 14.5px;
  font-weight: 600;
}
.strip-ic { font-size: 17px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .phone-bob, .hero-phone, .float-card, .hero-pill-dot,
  .rr-ring-fg, .rr-route, .rr-bar i, .rr-flag { animation: none !important; }
  .rr-ring-fg { stroke-dashoffset: 26; }
  .rr-route { stroke-dashoffset: 0; }
  .rr-bar i { transform: none; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 92px 0;
}

.section-sand {
  background: var(--sand);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-green);
  text-align: center;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 18px;
}

.section-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 46px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ===== APP SHOWCASE (single hero screenshot, paired with copy) ===== */
.showcase-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 90%);
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 138, 82, 0.20),
    rgba(242, 163, 92, 0.12) 45%, transparent 72%);
  filter: blur(26px);
  z-index: 0;
}
.showcase-phone {
  position: relative;
  z-index: 1;
  width: 268px;
  background: #1b1a18;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 34px 70px rgba(45, 40, 35, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.4s ease;
}
.showcase-phone:hover {
  transform: translateY(-8px);
}
.showcase-phone img,
.showcase-phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}
/* Card variant of the showcase media — for a text-dense screen (the ride
   summary) that would be illegible shrunk into the phone bezel. A cropped
   highlight shown as a clean white card reads on mobile, where most visitors
   are. Reuses .showcase-media (centering + glow). */
.showcase-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transition: transform 0.4s ease;
}
.showcase-card:hover {
  transform: translateY(-8px);
}
.showcase-card img {
  display: block;
  width: 100%;
  height: auto;
}
/* Coaching section reuses the showcase phone frame to hold the replay video. */
.coach-media-video {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

/* ===== APP GALLERY (real screenshots) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.gallery-phone {
  width: 208px;
  max-width: 100%;
  background: #1b1a18;
  border-radius: 38px;
  padding: 9px;
  box-shadow: 0 24px 50px rgba(45, 40, 35, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.4s ease;
}
.gallery-phone:hover { transform: translateY(-8px); }
.gallery-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}
.gallery-item figcaption {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  max-width: 208px;
}
@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 38px; }
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.step-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eafaf1, #d4f0e0);
  color: var(--brand-green-d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-ic svg { width: 27px; height: 27px; }

.step-num {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-amber);
  font-weight: 800;
  font-size: 14px;
}

.step h3,
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p,
.feature p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ===== SCORE SHOWCASE ===== */
.score-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.score-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 10px 0 16px;
}
.score-lead {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 22px;
}
.score-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.score-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}
.check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 1px;
}

/* three pillars (replaces the old A–F grade ladder) */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 6px solid var(--brand-green);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }
.pillar-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #eafaf1, #d4f0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.pillar-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 3px;
}
.pillar-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pillars-foot {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* reversed two-column (media on the left) */
.score-wrap-rev .coach-media { order: -1; }

/* coaching media: a real photo with the replay card floating over its corner */
.coach-media {
  position: relative;
}
.coach-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lift);
  background: linear-gradient(150deg, #1f7a4d, #0d2c1e);
}
.coach-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  color: rgba(250, 247, 242, 0.82);
}
.coach-ph-ic { font-size: 42px; }
.coach-ph-txt { font-size: 14px; font-weight: 600; line-height: 1.5; }
.coach-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* standalone replay mockup — centered in its column (no photo behind it) */
.coach-media .replay-card {
  max-width: 420px;
  margin: 0 auto;
}

/* ===== REPLAY MOCKUP CARD ===== */
.replay-card {
  background: #14120f;
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-lift);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.replay-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 320 / 230;
}
.replay-map svg { width: 100%; height: 100%; display: block; }
.replay-puck {
  position: absolute;
  left: 10.9%;
  top: 87%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) scaleX(-1);
  border-radius: 50%;
  border: 3px solid #3DBE73;
  background: #faf7f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  animation: puck-move 7s ease-in-out infinite;
}
/* keyframes trace the street-grid route (viewBox 320x230 -> %); ease-in-out
   per segment makes the bike scrub speed into each corner; ring color follows
   the green/yellow/red speed band */
@keyframes puck-move {
  0%   { left: 10.9%; top: 87.0%; border-color:#3DBE73; }
  20%  { left: 10.9%; top: 52.2%; border-color:#3DBE73; }
  52%  { left: 51.6%; top: 52.2%; border-color:#E6B53C; }
  69%  { left: 51.6%; top: 23.9%; border-color:#D24B3E; }
  100% { left: 90.6%; top: 23.9%; border-color:#D24B3E; }
}
.replay-readout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 140px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.replay-mph { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; }
.replay-unit { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.replay-flag {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 700;
  color: #d24b3e;
  margin-top: 2px;
}
.replay-note {
  position: absolute;
  top: 33%;
  left: 48%;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #fff;
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.replay-scrub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px 6px;
}
.replay-play {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.replay-strip {
  position: relative;
  flex: 1;
  height: 30px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(61,190,115,0.5) 0 2px,
    transparent 2px 7px
  );
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% 60%;
}
.replay-strip i {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  margin-left: -1px;
}
.replay-strip b {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 20px;
  background: #D24B3E;
  margin-left: -1.5px;
  border-radius: 1px;
}
.replay-handle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(255,255,255,0.9);
  margin-left: -1px;
}
.replay-handle::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E6B53C;
  border: 2.5px solid #fff;
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--tan);
}
.feature-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff3e6, #fde2c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 16px;
}

/* ===== STORY ===== */
.story-quote {
  max-width: 720px;
  margin: 8px auto 0;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.story-mark {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -86px auto 22px;
  box-shadow: var(--shadow-lift);
  border: 4px solid var(--surface);
  overflow: hidden;
}
.story-mark-logo { width: 46px; height: 46px; }
/* a real headshot fills the circle, sitting over the default logo */
.story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-quote blockquote p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 16px;
  text-align: center;
}
.story-quote blockquote p strong { color: var(--brand-green); }
.story-quote figcaption {
  text-align: center;
  margin-top: 6px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-mute);
}

/* ===== CLOSING / CTA ===== */
.closing {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--cream);
  padding: 88px 0;
  text-align: center;
}
.closing-glow { top: -30%; opacity: 0.7; }
.closing-inner {
  position: relative;
  z-index: 2;
}

.closing-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.closing-sub {
  color: rgba(250, 247, 242, 0.78);
  font-size: 17.5px;
  margin: 14px auto 0;
  max-width: 540px;
}

.waitlist-closing {
  display: flex;
  justify-content: center;
}
.waitlist-closing .waitlist-row { margin: 0 auto; }
.waitlist-closing .waitlist-msg { text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-deepest);
  color: rgba(250, 247, 242, 0.6);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-weight: 800;
  color: var(--cream);
  font-size: 17px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--tan);
}

.footer-copy {
  font-size: 13px;
}

.footer-fineprint {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 14px 24px 0;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.45);
  text-align: center;
}

/* ===== SHARED SUB-PAGE HERO (support / press / privacy) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--cream);
  padding: 0 0 64px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 0;
  text-align: center;
}

.page-hero .hero-inner {
  padding-top: 24px;
}

.page-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-top: 24px;
}

.page-sub {
  font-size: 17px;
  color: rgba(250, 247, 242, 0.78);
  margin: 14px auto 0;
  max-width: 540px;
}

.support-card {
  max-width: 720px;
  margin: -44px auto 0;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  z-index: 3;
}

.support-card h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
}

.support-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.support-card a.email {
  display: inline-block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tan-deep);
  text-decoration: none;
}

.support-card a.email:hover {
  color: var(--accent);
}

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--tan-deep);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.faq-item .faq-body a {
  color: var(--tan-deep);
  font-weight: 600;
}

.faq-item .faq-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.faq-item .faq-body li {
  margin: 6px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
    padding-top: 24px;
  }
  .hero-copy { max-width: 580px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .waitlist-row { margin: 0 auto; }
  .hero-trust { justify-content: center; }
  .hero-phone-wrap { min-height: 0; margin-top: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .score-wrap { grid-template-columns: 1fr; gap: 36px; }
  .score-title { text-align: center; }
  .score-copy .eyebrow { text-align: center !important; }
  .score-lead { text-align: center; }
  /* single-hero screenshot: shrink + center under the copy when stacked */
  .showcase-media, .coach-media-video { min-height: 0; margin-top: 8px; }
  .showcase-phone { width: 232px; }
  #screens .score-list { align-items: center; }
  /* standalone replay mockup, centered */
  .coach-media { max-width: 440px; margin: 0 auto; }
  .coach-media .replay-card { width: 100%; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 40px;
  }
  .hero-sub {
    font-size: 16.5px;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nav-links { gap: 14px; }
  .nav-link { display: none; }
  .nav-link[href="support.html"] { display: inline; }
  .waitlist-row { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .hero-headline { font-size: 34px; }
  .float-card { display: none; }
  .story-quote { padding: 34px 24px; }
  .story-quote blockquote p { font-size: 16px; }
}
