/* ============================================================
   SCORING ZONE — HOMEPAGE v2 (hp-*)
   "Broadcast scoreboard / performance lab"
   Loaded ONLY by index.html. Never link from other pages.
   All selectors are hp-prefixed or scoped to homepage sections
   so shared.css components on other pages are unaffected.
   ============================================================ */

:root {
  /* Scoreboard-sharp geometry */
  --r-card: 10px;
  --r-tile: 6px;
  --r-btn: 8px;
  /* Dark surface ladder (green-tinted near-blacks) */
  --surface-1: #0a120c;
  --surface-2: #0e1811;
  /* Hairlines */
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-green: rgba(34, 197, 94, 0.24);
  /* AA-safe green for text on white chapters (#22c55e fails on white) */
  --green-ink: #15803d;
  /* Near-black ink for text on white chapters */
  --ink: #0d1a10;
}

/* ── Primitives ─────────────────────────────────────────── */

/* Corner-bracket "target" motif — the signature card device */
.hp-bracket { position: relative; }
.hp-bracket::before,
.hp-bracket::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.hp-bracket::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}
.hp-bracket::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
}
.hp-bracket:hover::before,
.hp-bracket:hover::after { opacity: 1; }

/* Billboard display type — Nike/BMW scale, tight leading */
.hp-billboard {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  color: var(--text);
}
.hp-billboard .hp-accent { color: var(--green); }

/* Quiet mono eyebrow (no glow) */
.hp-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: none;
}

/* ── White "studio" chapters ────────────────────────────── */
.hp-studio {
  background: #fbfcfa;
  position: relative;
  overflow: hidden;
}
.hp-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}
.hp-studio > * { position: relative; z-index: 1; }
.hp-studio .mono-label,
.hp-studio .hp-eyebrow {
  color: var(--green-ink);
  text-shadow: none;
}
.hp-studio .hp-billboard { color: var(--ink); }
.hp-studio .section-header h2 { color: var(--ink); text-shadow: none; }
.hp-studio .section-header p { color: #46554a; text-shadow: none; }

/* How It Works as a studio chapter */
.hp-studio .process-step h3 { color: var(--ink); }
.hp-studio .process-step p { color: #52605a; }
.hp-studio .process-num {
  background: #ffffff;
  border-color: var(--green-ink);
  color: var(--green-ink);
}
.hp-studio .process-grid::before { border-top-color: rgba(13, 26, 16, 0.22); }

/* ── Hero refinements (scoped via .hp-hero) ─────────────── */
.hero.hp-hero .display-xl {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hp-hero-sub {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(240, 253, 244, 0.9);
  max-width: 440px;
  margin: 1.4rem 0 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
@media (max-width: 480px) {
  .hp-hero .hero-badge { font-size: 0.62rem; padding: 8px 14px; letter-spacing: 0.12em; }
  .hp-hero-sub { font-size: 1rem; max-width: none; }
}

/* ── Hero "Proof Instrument" layout (scoped via .hp-hero-a) ──
   Proof-led hero: mono eyebrow, typewriter H1, single CTA row, a
   stat band (numbers carry the page), a trust row, and a right column
   pairing the iPad/iPhone composite with a scan-to-download QR block.
   All tokens pulled from shared.css. */
.hp-hero-a .hero-bg-video-overlay {
  background: linear-gradient(180deg,
    rgba(6, 11, 8, 0.45) 0%,
    rgba(6, 11, 8, 0.35) 40%,
    rgba(6, 11, 8, 0.72) 100%);
}
.hp-hero-a .hero-content {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: end;
  gap: 36px;
}
/* Prevent flex/grid min-width:auto blowout (clipped by .hero overflow:hidden) */
.hp-hero-a .hero-content > div { min-width: 0; }
.hp-hero-a .hero-stat { min-width: 0; }

.hp-hero-a .hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.hp-hero-a .hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.7;
}

.hp-hero-a .display-xl {
  font-size: clamp(2.9rem, 7vw, 4.6rem);
  margin: 0 0 18px;
}

.hp-hero-a .hp-hero-sub {
  margin: 0 0 28px;
  max-width: 460px;
  font-size: 1.1rem;
}

.hp-hero-a .hero-ctas {
  gap: 16px;
  align-items: center;
  margin-bottom: 34px;
}

/* Stat band */
.hp-hero-a .hero-stat-band {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border-bright, rgba(255, 255, 255, 0.13));
  max-width: 540px;
}
.hp-hero-a .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-hero-a .hero-stat + .hero-stat {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-hero-a .hero-stat-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hp-hero-a .hero-stat-num.is-green { color: var(--green); }
.hp-hero-a .hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 253, 244, 0.6);
}

/* Trust row */
.hp-hero-a .hero-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.hp-hero-a .hero-trust-stars {
  display: inline-flex;
  gap: 2px;
}
.hp-hero-a .hero-trust-copy {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(240, 253, 244, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Right column: product composite + QR */
.hp-hero-a .hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  /* Lift so the QR row lines up with the stat band on the left */
  padding-bottom: 22px;
}
.hp-hero-a .hero-product {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Nudge the composite down so its base lines up with the CTA buttons.
     Transform (not margin) so the QR block stays aligned to the stat band. */
  transform: translateY(44px);
}
.hp-hero-a .hero-product-glow {
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(circle at 55% 45%,
    rgba(34, 197, 94, 0.17), transparent 66%);
  z-index: 0;
  pointer-events: none;
}
.hp-hero-a .hero-product-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.55));
}

/* QR download block */
.hp-hero-a .hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hp-hero-a .hero-qr-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.hp-hero-a .hero-qr-codes {
  display: flex;
  gap: 18px;
}
.hp-hero-a .hero-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.hp-hero-a .hero-qr-item img {
  width: 78px;
  height: 78px;
  display: block;
  border-radius: 9px;
  background: var(--text);
  padding: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.hp-hero-a .hero-qr-item span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 253, 244, 0.62);
}

@media (max-width: 1024px) {
  .hp-hero-a .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .hp-hero-a .hero-eyebrow,
  .hp-hero-a .hp-hero-sub,
  .hp-hero-a .hero-stat-band,
  .hp-hero-a .hero-trust-row { margin-left: auto; margin-right: auto; }
  .hp-hero-a .hero-stat-band { justify-content: center; }
  .hp-hero-a .hero-trust-row { justify-content: center; }
  .hp-hero-a .hero-right { order: -1; padding-bottom: 0; }
  .hp-hero-a .hero-product { transform: none; }
  .hp-hero-a .hero-product-img { max-width: 480px; }
}
@media (max-width: 640px) {
  .hp-hero-a .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
  .hp-hero-a .hp-hero-sub { max-width: 100%; }
  .hp-hero-a .hero-stat-band { gap: 16px; padding-top: 20px; max-width: 100%; }
  .hp-hero-a .hero-stat + .hero-stat { padding-left: 16px; }
  .hp-hero-a .hero-stat-num { font-size: 2rem; }
  .hp-hero-a .hero-stat-label { font-size: 0.64rem; letter-spacing: 0.1em; }
  .hp-hero-a .hero-ctas { flex-direction: column; align-items: stretch; }
  .hp-hero-a .hero-ctas .btn-border-anim,
  .hp-hero-a .hero-ctas .btn-primary { width: 100%; justify-content: center; }
  .hp-hero-a .hero-trust-row { flex-wrap: wrap; justify-content: center; }
  .hp-hero-a .hero-trust-copy { min-width: 0; }
  .hp-hero-a .hero-product-img { max-width: 340px; }
  /* You can't scan a QR with the phone you're holding — drop it on mobile */
  .hp-hero-a .hero-qr { display: none; }
}

/* ── Statement + spec band (replaces Digital Serenity) ──── */
.hp-statement-section {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  padding: 7rem 0 6.5rem;
}
.hp-statement-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hp-statement {
  max-width: 900px;
}
.hp-statement .hp-billboard { margin: 18px 0 26px; }
.hp-statement-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hp-statement-copy p {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240, 253, 244, 0.72);
  margin: 0;
}
.hp-statement-copy p strong {
  font-weight: 500;
  color: var(--text);
}

/* Spec band — BMW spec-cell row */
.hp-specband {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  margin-top: 56px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
}
.hp-spec-cell {
  padding: 30px 28px 26px;
  border-left: 1px solid var(--hairline);
  min-width: 0;
}
.hp-spec-cell:first-child { border-left: none; }
.hp-spec-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hp-spec-cell--lead .hp-spec-value {
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  color: var(--green);
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.35);
}
.hp-spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}
.hp-spec-note {
  display: block;
  font-size: 0.8rem;
  color: rgba(240, 253, 244, 0.5);
  margin-top: 6px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .hp-specband { grid-template-columns: 1fr 1fr; }
  .hp-spec-cell:nth-child(3) { border-left: none; }
  .hp-spec-cell:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 480px) {
  .hp-specband { grid-template-columns: 1fr; }
  .hp-spec-cell { border-left: none !important; }
  .hp-spec-cell:nth-child(n+2) { border-top: 1px solid var(--hairline); }
}

/* ── Full-bleed photo chapter (Whoop-style) ─────────────── */
.hp-photo {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hp-photo-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
}
.hp-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hp-photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 11, 8, 0.66) 20%, rgba(6, 11, 8, 0.06) 52%, rgba(6, 11, 8, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, transparent 20%);
}
.hp-photo-inner {
  position: relative;
  z-index: 2;
  padding: 7.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.hp-photo-text { max-width: 480px; }
.hp-photo-text > p {
  color: rgba(240, 253, 244, 0.72);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 18px;
}
.hp-photo .hp-billboard { margin-top: 16px; }

.hp-checklist {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  max-width: 470px;
}
.hp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(240, 253, 244, 0.75);
}
.hp-checklist li:last-child { border-bottom: 1px solid var(--hairline); }
.hp-checklist .hp-tick {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1.55;
}

/* Floating data chips over the photo */
.hp-chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hp-chip {
  position: absolute;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline-green);
  background: rgba(8, 15, 10, 0.55);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 16px 20px 15px;
  min-width: 168px;
}
.hp-chip::before,
.hp-chip::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.8;
}
.hp-chip::before { top: -1px; left: -1px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.hp-chip::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }
.hp-chip-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 253, 244, 0.7);
  margin-bottom: 7px;
  white-space: nowrap;
}
.hp-chip-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green-bright);
  text-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
}
.hp-chip-value .hp-chip-dim { opacity: 0.45; font-size: 1.4rem; }
.hp-chip-reward {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  opacity: 0.85;
  margin-top: 7px;
  white-space: nowrap;
}
/* HUD layout: four chips, four stories — loose constellation over the bokeh */
.hp-chip--hcp { top: 32%; right: 40%; }
.hp-chip--x3 { top: 44%; right: 17%; }
.hp-chip--challenges { bottom: 27%; right: 36%; }
.hp-chip--round { bottom: 8%; right: 17%; }
.hp-chip--x3 {
  background: rgba(16, 44, 26, 0.66);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), 0 0 34px rgba(34, 197, 94, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hp-chip--x3::before, .hp-chip--x3::after { opacity: 1; }

/* Scoreboard boot: chips hidden only when JS is running, staggered entrance */
html.hp-js .hp-chips[data-hud] .hp-chip {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
html.hp-js .hp-chips[data-hud].hud-live .hp-chip {
  opacity: 1;
  transform: none;
}
.hp-chips[data-hud].hud-live .hp-chip:nth-child(1) { transition-delay: 0.1s; }
.hp-chips[data-hud].hud-live .hp-chip:nth-child(2) { transition-delay: 0.32s; }
.hp-chips[data-hud].hud-live .hp-chip:nth-child(3) { transition-delay: 0.54s; }
.hp-chips[data-hud].hud-live .hp-chip:nth-child(4) { transition-delay: 0.76s; }
html.hp-js .hp-chips[data-hud] .hp-chip-reward {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
html.hp-js .hp-chips[data-hud] .hp-chip-reward.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.hp-js .hp-chips[data-hud] .hp-chip {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.hp-js .hp-chips[data-hud] .hp-chip-reward { opacity: 1; }
}

/* Round-stats chip: three mini spec cells in a row */
.hp-chip-row { display: flex; gap: 20px; }
.hp-chip-mini-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
}
.hp-chip-mini-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 253, 244, 0.65);
  margin-top: 5px;
}

/* Kicker line — the folded-in gamification headline */
.hp-photo-kicker {
  font-size: 1.18rem !important;
  font-weight: 600;
  color: var(--text) !important;
  margin-top: 18px;
}
.hp-photo-kicker span { color: var(--green-bright); }

@media (max-width: 860px) {
  .hp-photo-media {
    position: relative;
    width: 100%;
    height: 300px;
  }
  .hp-photo-media::after {
    background:
      linear-gradient(0deg, var(--bg) 4%, transparent 40%),
      linear-gradient(180deg, var(--bg) 0%, transparent 26%);
  }
  .hp-photo-inner { padding-top: 4.5rem; padding-bottom: 2rem; }
  .hp-chips {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 24px 4rem;
    pointer-events: auto;
  }
  .hp-chip { position: static; flex: 1 1 150px; }
  .hp-chip-value { font-size: 2rem; }
}

/* ── Feature grid sharpening (scoped to #features) ──────── */
#features .bento-item {
  border-radius: var(--r-card);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
}
#features .bento-item:hover { border-color: var(--hairline-green); }
#features .bento-glow { border-radius: var(--r-card); }
#features .bento-icon { border-radius: var(--r-tile); }
#features .bento-status,
#features .bento-tag { border-radius: 4px; }
#features .bento-item:hover .bento-cta { color: var(--green-bright); }

/* ── Challenge cards sharpened ──────────────────────────── */
#drills .challenge-card {
  border-radius: var(--r-card);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
}
#drills .challenge-card:hover { border-color: var(--hairline-green); }
#drills .challenge-pill {
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-bright);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
#drills .challenge-pill--mid {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 253, 244, 0.8);
  border-color: rgba(255, 255, 255, 0.16);
}
#drills .challenge-pill--hard {
  background: var(--green);
  color: #04140a;
  border-color: var(--green);
  font-weight: 700;
}

/* ── Testimonial wall (white studio) ────────────────────── */
.hp-quotes {
  columns: 3 300px;
  column-gap: 16px;
  margin-top: 3.5rem;
}
.hp-quote {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid rgba(13, 26, 16, 0.1);
  border-radius: var(--r-card);
  padding: 28px 28px 24px;
  position: relative;
}
.hp-quote::before,
.hp-quote::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.65;
}
.hp-quote::before { top: -1px; left: -1px; border-top: 2px solid var(--green-ink); border-left: 2px solid var(--green-ink); }
.hp-quote::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--green-ink); border-right: 2px solid var(--green-ink); }
.hp-quote-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #22301f;
  margin: 0;
}
.hp-quote-text--lg { font-size: 1.22rem; line-height: 1.5; font-weight: 500; }
.hp-quote-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-top: 18px;
}
.hp-quote-role {
  display: block;
  font-size: 0.78rem;
  color: #5c6a5e;
  margin-top: 4px;
}
.hp-quote--photo {
  padding: 0;
  border: none;
  overflow: hidden;
  background: var(--bg);
}
.hp-quote--photo::before,
.hp-quote--photo::after { display: none; }
.hp-quote--photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.hp-quote--photo .hp-quote-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 24px 20px;
  background: linear-gradient(0deg, rgba(4, 10, 6, 0.92) 0%, rgba(4, 10, 6, 0.55) 55%, transparent 100%);
}
.hp-quote--photo .hp-quote-name { color: var(--green-bright); margin-top: 0; }
.hp-quote--photo .hp-quote-role { color: rgba(240, 253, 244, 0.75); }
.hp-quote--stat {
  background: var(--surface-1);
  border-color: var(--hairline);
  text-align: left;
}
.hp-quote--stat::before { border-color: var(--green); }
.hp-quote--stat::after { border-color: var(--green); }
.hp-quote--stat .hp-quote-name { color: var(--green-bright); }
.hp-quote--stat .hp-quote-role { color: rgba(240, 253, 244, 0.6); }

/* ── Testimonials — two-column with fan-out scroll reveal ─ */
.tb-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.tb-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.tb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}
.tb-rail .display-lg { margin: 0; }
.tb-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0;
}
.tb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0.25rem;
}
.tb-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.tb-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text);
}
.tb-stat-value .tb-plus { color: var(--green); }
.tb-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.tb-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Fan-out reveal: cards start stacked in a pile, then slide DOWN to reveal all as you scroll */
.tb-scroller {
  position: relative;
  height: 200vh; /* scroll span over which the cards fan out */
}
.tb-pin {
  position: sticky;
  top: 96px;
}
.tb-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tb-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  transition: border-color 0.3s ease;
  will-change: transform;
}
.tb-card:hover { border-color: var(--card-border-hover); }
.tb-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tb-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--green-bright);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
/* Photo avatars — image fills the avatar shape (square source, no crop) */
.tb-avatar { overflow: hidden; }
.tb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.tb-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.tb-title {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tb-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
}
.tb-score {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.tb-stars { display: flex; gap: 2px; }
.tb-stars svg { width: 15px; height: 15px; display: block; }
.tb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 18px 0 14px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.tb-badge svg { width: 13px; height: 13px; flex: 0 0 auto; }
.tb-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(240, 253, 244, 0.72);
  margin: 0;
}

@media (max-width: 900px) {
  .tb-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .tb-rail { position: static; top: auto; }
  .tb-card { position: static; transform: none !important; }
  .tb-stack { gap: 1.25rem; }
  .tb-scroller { height: auto; }
  .tb-pin { position: static; }
}
@media (max-width: 420px) {
  .tb-stat { padding: 14px 8px; }
  .tb-stat-value { font-size: 1.5rem; }
}

/* ── Slimmed signup card ────────────────────────────────── */
.hp-signup-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 44px 44px 40px;
}
@media (max-width: 640px) { .hp-signup-card { padding: 28px 22px 26px; } }

/* Dark sections nested inside the studio wrapper keep light text */
#latest-news .section-header h2 { color: var(--text); }
#latest-news .section-header p { color: var(--text-muted); }
#latest-news .mono-label { color: var(--green); }

/* ── Video frame sharpened ──────────────────────────────── */
.hp-video-frame {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--hairline-green);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.08);
}

/* ── Blog band atmosphere (moved from the old serenity
      <style> block — the blog section reuses these classes) ─ */
@keyframes dsh-word-appear {
  0% { opacity: 0; transform: translateY(30px) scale(0.8); filter: blur(10px); }
  50% { opacity: 0.8; transform: translateY(10px) scale(0.95); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes dsh-grid-draw {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  50% { opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 0.15; }
}
@keyframes dsh-pulse-glow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}
@keyframes dsh-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  25% { transform: translateY(-10px) translateX(5px); opacity: 0.6; }
  50% { transform: translateY(-5px) translateX(-3px); opacity: 0.4; }
  75% { transform: translateY(-15px) translateX(7px); opacity: 0.8; }
}
.dsh-grid-line {
  stroke: rgba(34, 197, 94, 0.3);
  stroke-width: 0.5;
  opacity: 0;
  stroke-dasharray: 5 5;
  stroke-dashoffset: 1000;
  animation: dsh-grid-draw 1s ease-out forwards;
  animation-duration: 0.5s;
}
.dsh-detail-dot {
  fill: var(--green);
  opacity: 0;
  animation: dsh-pulse-glow 1.5s ease-in-out infinite;
}
.dsh-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  opacity: 0;
  animation: dsh-word-appear 0.25s ease-out forwards;
}

/* ── Motion guard ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dsh-grid-line, .dsh-detail-dot, .dsh-corner { animation: none; opacity: 0.15; }
  .hp-bracket::before, .hp-bracket::after, .hp-chip { transition: none; }
}

/* ============================================================
   FEATURED CHALLENGES — carousel (.fc-*)  [scoped to #drills]
   Manual crossfade carousel: details left, phone stage right.
   ============================================================ */
#drills .fc-carousel {
  margin: 2.5rem auto 0;
  max-width: 1000px;
  position: relative;
}

#drills .fc-viewport {
  position: relative;
  min-height: 540px;
}

#drills .fc-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 430px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
#drills .fc-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Left: details */
#drills .fc-details { max-width: 460px; }
#drills .fc-tagrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
#drills .fc-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
#drills .fc-title {
  color: var(--text);
  margin: 0 0 16px;
}
#drills .fc-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 40ch;
}
#drills .fc-meta {
  gap: 28px;
  margin: 0 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
#drills .fc-cta { min-width: 220px; }

/* Right: phone stage */
#drills .fc-stage {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#drills .fc-glow {
  position: absolute;
  width: 62%;
  height: 78%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* Locked green glow — never colour-shifts (per brand rule) */
  background: radial-gradient(ellipse at center,
              rgba(34, 197, 94, 0.42) 0%,
              rgba(34, 197, 94, 0.16) 44%,
              transparent 74%);
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}
#drills .fc-phone {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
/* Normalise apparent device size — the 2nd/3rd source PNGs have more
   canvas padding, so scale them up to match the first phone's body. */
#drills .fc-slide[data-index="1"] .fc-phone { transform: scale(1.13); }
#drills .fc-slide[data-index="2"] .fc-phone { transform: scale(1.11); }

/* Controls */
#drills .fc-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
}
#drills .fc-arrow {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
#drills .fc-arrow:hover {
  border-color: var(--hairline-green);
  background: var(--surface-2);
  transform: translateY(-1px);
}
#drills .fc-arrow svg { width: 18px; height: 18px; }
#drills .fc-dots {
  display: flex;
  gap: 10px;
  margin-right: auto;
}
#drills .fc-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
#drills .fc-dot.is-active {
  background: var(--green);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}
#drills .fc-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
#drills .fc-counter b { color: var(--green-bright); font-weight: 500; }

@media (max-width: 900px) {
  #drills .fc-viewport { min-height: 0; }
  #drills .fc-slide {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    transform: none;
  }
  #drills .fc-slide:not(.is-active) { display: none; }
  #drills .fc-details { max-width: 100%; order: 1; }
  #drills .fc-stage { order: 2; height: 440px; }
  #drills .fc-cta { width: 100%; }
  #drills .fc-nav { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  #drills .fc-slide { transition: none; }
}
