/* =========================================================
   CoachPulse v2 overrides — load AFTER styles.css
   Goal: keep lime/black palette, kill dev-tool tropes,
   add human warmth, soften founder-voice.
   ========================================================= */

/* ---------- 1. Type system: humanist sans, no mono in chrome ---------- */
/* Fonts are now loaded via <link rel="stylesheet"> in index.html — no @import here
   (avoids duplicate fetch and the @import-blocks-render anti-pattern). */

html, body { font-family: "Inter Tight", "Manrope", -apple-system, sans-serif; font-feature-settings: "ss01", "cv11"; }

/* Instrument Serif italic — used sparingly: hero, manifesto, fit columns, final headline.
   Per-section emphasis comes from specific selectors below, not a blanket h2/h3 rule. */
.display em,
.mf-statement em,
.fl-line-2 em,
.fit-ed-em,
.fit-ed-em-muted,
.fit-ed-title em {
  font-family: "Instrument Serif", "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Other section headings keep the em styling sober: same family, normal weight,
   subtle tonal shift instead of full italic-serif treatment. */
.sec-title em,
h2 em,
h3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Eyebrows: drop mono, use small-caps humanist sans */
.eyebrow, .chip, .chip-mono, .mf-eyebrow, .lift-eyebrow, .fit-ed-eyebrow,
.founder-note-eyebrow, .final-eyebrow, .pulse-eyebrow,
.mfd-label, .mfp-c, .mfp-n, .lift-time, .lift-src,
.cmdk-section, .marq-item, .marquee-label,
.p-section-t, .pc-tracker-t, .nm, .tm,
.hero-pill, .stat-card .lab, .fm-l, .pulse-stat-l {
  font-family: "Inter Tight", -apple-system, sans-serif !important;
  letter-spacing: 0.04em !important;
}

/* Tighten up the over-decorated chapter eyebrows */
.mf-eyebrow span:last-child,
.lift-eyebrow span:last-child,
.fit-ed-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em !important;
  color: rgba(255,255,255,0.55);
}

/* The big chapter numerals (01, 02, 04) — unified editorial outline, all three equally subtle. */
.mf-numeral, .section-marker {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(184, 242, 72, 0.18) !important;
  opacity: 1 !important;
}

/* ---------- 2. Hero: less "startup", more human ---------- */
.hero-pill { text-transform: none; letter-spacing: 0.01em !important; font-weight: 500; }

.display {
  letter-spacing: -0.035em;
  line-height: 0.95;
}

/* ---------- 3. Section headings: warmer, less product-y ---------- */
.sec-title em { font-weight: 400; }

/* ---------- 4. Full-bleed pull-quote band ---------- */
/* Reuses the hero video (already cached) as a softened ambient background.
   No fabricated stock photo, no placeholder copy — just a textured backdrop
   for the quote so the section feels intentional. */
.coach-band {
  position: relative;
  width: 100%;
  min-height: 460px;
  margin: 80px 0 40px;
  overflow: hidden;
  background: #0e1216;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-band-img {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(184,242,72,0.10), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(184,242,72,0.05), transparent 50%),
    linear-gradient(180deg, #0d1115 0%, #14181f 100%);
}
.coach-band-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.coach-band-quote {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
  color: rgba(255,255,255,0.95);
  padding: 80px 24px;
  max-width: 880px;
  margin: 0 auto;
}
.coach-band-quote span {
  display: block;
  margin-top: 22px;
  font-family: "Inter Tight", sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

/* ---------- 5. Replace ⌘K dev-trope with "Ask anything" voice/text capture ---------- */
.askbox {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 22px 22px 18px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top, rgba(184,242,72,0.08), transparent 70%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}
.askbox-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.askbox-mic {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  position: relative;
}
.askbox-mic::before, .askbox-mic::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(184,242,72,0.4);
  animation: ripple 2.4s ease-out infinite;
}
.askbox-mic::after { animation-delay: 1.2s; }
@keyframes ripple {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}
.askbox-text {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}
.askbox-text em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.askbox-caret {
  display: inline-block;
  width: 2px; height: 18px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: -3px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.askbox-examples {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
  justify-content: center;
}
.askbox-examples .ex {
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-family: "Instrument Serif", serif;
  font-style: italic;
}
.askbox-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- 6. De-dashboard the Pulse section ---------- */
.pulse-stage.spot { /* keep existing layout but tone down the metric feel */ }

/* Re-frame the pulse cards from "tickets" to "people" */
.pulse-cell {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: 16px !important;
  padding: 14px 12px !important;
}
.pulse-cell.risk {
  background: rgba(242, 72, 72, 0.05) !important;
  border-color: rgba(242, 72, 72, 0.2) !important;
}
.pulse-cell-n { font-family: "Instrument Serif", serif !important; font-weight: 400 !important; font-size: 22px !important; }
.pulse-cell .pulse-cell-n { font-style: italic; }

/* Soften the big "41 / 100" — fitness-y, not Grafana-y */
.pulse-ring text:first-of-type { font-family: "Instrument Serif", serif !important; font-weight: 400 !important; font-style: italic; }

/* ---------- 7. Soften copy elements that look "infra" ---------- */
.cmdk-foot .cmdk-chip {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  letter-spacing: 0 !important;
}

/* Marquee — keep but humanize font */
.marq-item, .marquee-label span {
  font-family: "Inter Tight", sans-serif !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  font-weight: 500;
  font-size: 18px !important;
}
.marquee-label span { font-size: 11px !important; letter-spacing: 0.2em !important; text-transform: uppercase !important; color: rgba(255,255,255,0.5); }

/* ---------- 8. Founder note: warmer ---------- */
.founder-note p { font-family: "Instrument Serif", serif; font-style: italic; font-size: 22px; line-height: 1.5; color: rgba(255,255,255,0.88); }
.founder-note-sig { font-family: "Inter Tight", sans-serif !important; }

/* ---------- 9. Subtle warmth: tiny warm tint on selected backgrounds ---------- */
.aurora-pocket.lime::before { background: radial-gradient(ellipse at top, rgba(184,242,72,0.08), transparent 70%) !important; }

/* ---------- 10. Buttons: slightly more confident ---------- */
.btn-primary {
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* ---------- 11. Hide the now-unused old shortcuts cmdk widget ---------- */
.shortcuts-block .cmdk { display: none; }

/* ---------- 12. Footer label tweaks ---------- */
.fm-n { font-family: "Instrument Serif", serif !important; font-style: italic; font-weight: 400 !important; }
.fm-l { font-family: "Inter Tight", sans-serif !important; }

/* ---------- 13. Stat card numerals editorial ---------- */
.stat-card .num { font-family: "Instrument Serif", serif !important; font-style: italic; font-weight: 400 !important; }

/* ---------- 13b. Hero video background ---------- */
.hero {
  position: relative;
  isolation: isolate;
  /* Add bottom padding so the gradient fade has room to fully resolve to #0b0e11 */
  padding-bottom: 200px !important;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero-video {
  position: absolute;
  inset: -10% 0 -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 65%;
  opacity: 0.38;
  filter: saturate(0.55) contrast(1.05) brightness(0.8);
  pointer-events: none;
}
/* Single overlay does all the work:
   - Horizontal: dims left side so text reads cleanly
   - Vertical: fades video into pure #0b0e11 by the bottom of hero,
     so the seam with manifesto is invisible. */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* horizontal dim — fades out toward bottom so it doesn't fight the floor */
    linear-gradient(180deg,
      rgba(11,14,17,0) 0%,
      rgba(11,14,17,0) 70%,
      rgba(11,14,17,0.6) 88%,
      rgba(11,14,17,0.95) 95%,
      #0b0e11 100%),
    /* horizontal dim — only in upper area so text reads */
    linear-gradient(90deg, rgba(11,14,17,0.85) 0%, rgba(11,14,17,0.5) 50%, rgba(11,14,17,0.35) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ---------- 14. Hero pill less "tech badge" ---------- */
.hero-pill {
  background: rgba(184,242,72,0.08) !important;
  border: 1px solid rgba(184,242,72,0.2) !important;
  color: var(--accent);
  padding: 8px 14px !important;
  font-size: 12px !important;
}

/* ---------- 14b. Manifesto: kill the lime glow that was creating a seam ---------- */
section.manifesto::before {
  display: none !important;
}
/* Add a soft top fade INSIDE manifesto so it inherits hero's darkness */
section.manifesto {
  background: linear-gradient(180deg, #0b0e11 0%, #0b0e11 240px, transparent 480px) !important;
}

/* ---------- 15. Manifesto pain-rows: vertical timeline of a day ---------- */
/* High-specificity selectors to defeat the original grid layout */
section.manifesto .mf-pains,
section.manifesto .mf-pains.reveal-group {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  margin: 32px auto 0 !important;
  position: relative;
  max-width: 880px;
  width: 100%;
}
/* The vertical timeline spine */
section.manifesto .mf-pains::before {
  content: "";
  position: absolute;
  left: 130px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.12) 8%,
    rgba(255,255,255,0.12) 92%,
    transparent 100%);
  pointer-events: none;
}

section.manifesto .mf-pains .mf-pain {
  display: grid !important;
  grid-template-columns: 110px 24px 1fr auto !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 28px 8px !important;
  border: none !important;
  background: none !important;
  position: relative;
  width: 100%;
  transition: transform 0.4s ease;
}

/* Timeline dot on the spine */
section.manifesto .mf-pains .mf-pain > .mfp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  justify-self: center;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}
section.manifesto .mf-pains .mf-pain:hover > .mfp-dot {
  background: var(--accent);
  transform: scale(1.4);
}

section.manifesto .mf-pains .mfp-n {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1 !important;
  padding: 0 24px 0 0 !important;
  text-align: right;
  background: none !important;
  border: none !important;
}

section.manifesto .mf-pains .mfp-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 0 0 32px !important;
  background: none !important;
  border: none !important;
}
section.manifesto .mf-pains .mfp-t {
  font-size: 21px !important;
  line-height: 1.45 !important;
  color: rgba(255,255,255,0.94) !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
  max-width: 60ch;
  margin: 0 !important;
}
section.manifesto .mf-pains .mfp-c {
  font-family: "Inter Tight", sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.45) !important;
  align-self: center;
  padding: 5px 11px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 100px !important;
  background: rgba(255,255,255,0.02) !important;
  margin: 0 0 0 24px !important;
  white-space: nowrap;
}

/* The "alert" row — Lena, 9 days */
section.manifesto .mf-pains .mf-pain-alert {
  margin-top: 12px !important;
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}
section.manifesto .mf-pains .mf-pain-alert::before {
  content: "";
  position: absolute;
  left: 50px;
  right: 50px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,72,72,0.25), transparent);
}
section.manifesto .mf-pains .mf-pain-alert > .mfp-dot {
  background: #f24848 !important;
  box-shadow: 0 0 0 1px rgba(242,72,72,0.3), 0 0 16px rgba(242,72,72,0.5) !important;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 1px rgba(242,72,72,0.3), 0 0 16px rgba(242,72,72,0.5); }
  50% { box-shadow: 0 0 0 1px rgba(242,72,72,0.5), 0 0 24px rgba(242,72,72,0.8); }
}
section.manifesto .mf-pains .mf-pain-alert .mfp-n {
  color: rgba(242,72,72,0.8) !important;
  font-size: 36px !important;
}
section.manifesto .mf-pains .mf-pain-alert .mfp-t {
  color: #fff !important;
}
section.manifesto .mf-pains .mf-pain-alert .mfp-t b {
  color: #ff6b6b;
  font-weight: 600;
  font-style: italic;
  font-family: "Instrument Serif", serif;
  font-size: 1.1em;
}
section.manifesto .mf-pains .mf-pain-alert .mfp-c {
  color: rgba(242,72,72,0.85) !important;
  border-color: rgba(242,72,72,0.3) !important;
  background: rgba(242,72,72,0.06) !important;
}

@media (max-width: 720px) {
  section.manifesto .mf-pains::before { left: 70px; }
  section.manifesto .mf-pains .mf-pain {
    grid-template-columns: 60px 16px 1fr !important;
    padding: 22px 4px !important;
  }
  section.manifesto .mf-pains .mfp-n { font-size: 22px !important; padding-right: 12px !important; }
  section.manifesto .mf-pains .mfp-body { padding-left: 18px !important; }
  section.manifesto .mf-pains .mfp-t { font-size: 17px !important; }
  section.manifesto .mf-pains .mfp-c { grid-column: 3; margin-left: 18px !important; margin-top: 4px !important; }
  section.manifesto .mf-pains .mf-pain-alert .mfp-n { font-size: 26px !important; }
}


/* =========================================================
   16. Motion — scroll cue, tilt context
   ========================================================= */

/* Hero needs explicit perspective context for tilt to work cleanly */
.hero { perspective: 1400px; }
.phones-stage {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.hero:hover .phones-stage { transition: none; } /* mouse drives, no easing-fight */

/* Section markers + manifesto numeral need to allow translate without
   pushing siblings (transform doesn't affect layout, but we set will-change) */
.mf-numeral,
.section-marker {
  will-change: transform;
}

/* Hero scroll cue ------------------------------------------------- */
.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  animation: hsc-appear 1.4s ease 1.6s forwards;
}
.hero-scroll-cue.is-faded {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px);
}
.hsc-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hsc-track {
  position: relative;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.22), rgba(255,255,255,0.04));
  overflow: hidden;
}
.hsc-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #b8f248);
  box-shadow: 0 0 10px rgba(184, 242, 72, 0.6);
  animation: hsc-drop 2.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes hsc-appear {
  to { opacity: 1; }
}
@keyframes hsc-drop {
  0%   { top: -6px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 38px; opacity: 0; }
}

/* Mobile: hide cue (mobile users know to scroll, takes vertical space) */
@media (max-width: 720px) {
  .hero-scroll-cue { display: none; }
}

/* Reduced motion: kill the cue animation */
@media (prefers-reduced-motion: reduce) {
  .hsc-dot { animation: none; top: 16px; }
  .hero-scroll-cue { animation: none; opacity: 0.7; }
}

/* =========================================================
   17. Mobile hero — show one phone, fix cropping at 390×844
   ========================================================= */
@media (max-width: 720px) {
  .hero { padding-bottom: 80px !important; }
  .phones-stage { transform: none !important; min-height: 0 !important; }
  .phones-stage .phone.ph-b { display: none; }
  .phones-stage .phone.ph-a {
    margin: 28px auto 0;
    transform: none !important;
  }
  .hero-grid { gap: 12px !important; }
}

/* =========================================================
   18. Accessibility — bump dim text to WCAG-AA-friendly opacity
   ========================================================= */
.hero-note { color: rgba(255,255,255,0.78) !important; }
.founding-fine { color: rgba(255,255,255,0.7) !important; }
.fm-l, .stat-card .lab, .pulse-stat-l {
  color: rgba(255,255,255,0.72) !important;
}
.askbox-hint { color: rgba(255,255,255,0.7) !important; }
.askbox-examples .ex { color: rgba(255,255,255,0.82) !important; }
.pulse-hint { color: rgba(255,255,255,0.72) !important; }
.pulse-grid-head .pulse-legend { color: rgba(255,255,255,0.7) !important; }
.lift-src { color: rgba(255,255,255,0.66) !important; }
.foot-links a { color: rgba(255,255,255,0.7) !important; }
.foot-links a:hover { color: var(--accent) !important; }

/* =========================================================
   19. Founding form — extended fields layout
   ========================================================= */
.founding-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px !important;
  margin-top: 8px;
  padding: 22px !important;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.founding-form input,
.founding-form select {
  width: 100% !important;
  padding: 14px 16px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.founding-form input:focus,
.founding-form select:focus {
  outline: none;
  border-color: var(--accent) !important;
  background: rgba(184,242,72,0.04) !important;
}
.founding-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 40px !important;
}
.founding-form .full { grid-column: 1 / -1; }
.founding-form button[type="submit"] { grid-column: 1 / -1; padding: 16px !important; font-size: 15px !important; }

@media (max-width: 540px) {
  .founding-form { grid-template-columns: 1fr; }
}

/* Inline error/success state for forms */
.form-error {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #ff6b6b;
  margin-top: -2px;
}
.form-success-card {
  grid-column: 1 / -1;
  padding: 24px;
  background: rgba(184,242,72,0.06);
  border: 1px solid rgba(184,242,72,0.25);
  border-radius: 16px;
  text-align: left;
}
.form-success-card .fs-title {
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.form-success-card .fs-body {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.8);
}
.form-success-card .fs-spot {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* =========================================================
   20. Spots-claimed live counter pill
   ========================================================= */
.spots-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  margin-left: 12px;
  border-radius: 100px;
  background: rgba(184,242,72,0.08);
  border: 1px solid rgba(184,242,72,0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.spots-pill .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: spots-pulse 2.4s ease-in-out infinite;
}
@keyframes spots-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Hide the literal photo-band placeholder if any old override leaks through */
.coach-band-img::after { content: none !important; }

/* ---------- 25. Language switcher (nav) ----------
   Tiny EN · UA pill that lives next to the primary nav CTA.                  */
.nav-right { display: flex !important; align-items: center; gap: 14px; }
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
}
.nav-lang a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 160ms ease;
}
.nav-lang a:hover { color: rgba(255, 255, 255, 0.9); }
.nav-lang a.is-active {
  color: var(--accent);
  font-weight: 700;
}
.nav-lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}
@media (max-width: 540px) {
  .nav-lang { font-size: 11px; gap: 6px; }
  .nav-right { gap: 10px; }
}

/* ---------- 22. Sticky CTA bar (desktop) + floating pill (mobile) ----------
   Slides in once user scrolls past ~70% of the hero. Below 540px the bar
   hides and a floating pill takes over.                                       */
.sticky-cta {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(11, 14, 17, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-inner {
  padding: 10px 28px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}
.sticky-cta-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.sticky-cta-logo .logo-glyph.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sticky-cta-logo .logo-glyph.sm img {
  width: 24px;
  height: 24px;
  display: block;
}
.sticky-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.sticky-cta-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.sticky-cta-meta [data-spots-counter] {
  color: var(--accent);
  font-weight: 700;
}
.btn.btn-sm {
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 100px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .sticky-cta-logo span { display: none; }
  .sticky-cta-meta { font-size: 10px; }
}
@media (max-width: 540px) {
  .sticky-cta { display: none; }
}

.floating-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  text-align: center;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(184, 242, 72, 0.25),
              0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 540px) {
  .floating-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .floating-cta { transition: none; }
}

/* ---------- 23. Mid-page CTA (after Pulse, before Marquee) ----------
   Quiet conversion beat — does not compete with the manifesto tone. Subtle
   lime radial halo from the top.                                              */
.mid-cta {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at center top,
      rgba(184, 242, 72, 0.07) 0%,
      transparent 70%);
}
.mid-cta-inner {
  max-width: 640px !important;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.mid-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(184, 242, 72, 0.3);
  background: rgba(184, 242, 72, 0.06);
  border-radius: 100px;
}
.mid-cta-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.mid-cta-headline {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px 0;
  color: #fff;
}
.mid-cta-headline em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.mid-cta-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 32px 0;
}
.mid-cta-sub [data-spots-counter] {
  color: var(--accent);
  font-weight: 700;
}
.btn.btn-lg {
  padding: 16px 28px !important;
  font-size: 15px !important;
}
.mid-cta-meta {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .mid-cta { padding: 70px 0 60px; }
  .mid-cta-sub { font-size: 15px; }
}

/* ---------- 24. FAQ accordion ----------
   Native <details>/<summary> with custom chevron + lime tint on open.        */
.faq {
  padding: 100px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.faq-inner {
  max-width: 820px !important;
  margin: 0 auto;
  padding: 0 28px;
}
.faq-head {
  text-align: center;
  margin-bottom: 50px;
}
.faq-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.faq-head .eyebrow .mf-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.faq-head .sec-title {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
}
.faq-head .sec-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}
.faq-item[open] {
  border-color: rgba(184, 242, 72, 0.22);
  background: rgba(184, 242, 72, 0.025);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(184, 242, 72, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  transition: transform 200ms ease, background 200ms ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(184, 242, 72, 0.18);
}
.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 720px) {
  .faq { padding: 70px 0 60px; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-answer { padding: 0 18px 16px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-icon { transition: none; }
}

/* ---------- 26. Section-head ↔ feat-alt separation ----------
   When a chapter title (.section-head.left) is followed by the first feature
   row (.feat-alt) in the same section, both blocks share the same eyebrow
   + headline + description pattern. Without a delimiter the eye reads them
   as one continuous block. Adds a subtle accent-tinted hairline that fades
   from edges, plus a small top label, to mark "chapter intro → feature 01".
*/
.section-head.left:has(+ .feat-alt) {
  margin-bottom: 32px;
}
.section-head.left + .feat-alt {
  position: relative;
  padding-top: 80px;
  margin-top: 0;
}
.section-head.left + .feat-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184, 242, 72, 0.18) 35%,
    rgba(184, 242, 72, 0.32) 50%,
    rgba(184, 242, 72, 0.18) 65%,
    transparent 100%);
  pointer-events: none;
}
@media (max-width: 720px) {
  .section-head.left + .feat-alt {
    padding-top: 56px;
  }
}

/* ---------- 27. Pulse ring glow breathing room ----------
   The pulse ring's SVG filter renders a soft glow that extends beyond the
   220×220 viewport. Default SVG overflow + the parent `.pulse-stage`
   `overflow:hidden` were clipping the top of that glow. Allow the SVG to
   render outside its own box, and pad the wrapper so the glow has room
   inside the card frame.
*/
.pulse-ring {
  overflow: visible;
}
.pulse-ring-wrap {
  padding: 28px 16px 20px !important;
}
@media (max-width: 720px) {
  .pulse-ring-wrap { padding: 20px 8px 16px !important; }
}

/* ---------- 28. Lift timeline cell padding ----------
   `.lift-moment` shipped with `padding: 28px 20px 28px 0`. The 0-left meant
   each cell's text started flush against the previous cell's right border —
   particularly noticeable on the UA build where headlines run wider. Add
   symmetrical horizontal padding so text breathes inside each column.
*/
.lift-moment {
  padding: 28px 22px !important;
}
@media (max-width: 720px) {
  .lift-moment { padding: 24px 18px !important; }
}

/* ---------- 29. Manifesto margin notes — slight size bump ----------
   Side notes ("РЕАЛЬНІСТЬ" / "ПОЧУТО") read too small next to the huge
   serif statement. Bump 1–2px each so they remain marginal but legible.
*/
.mf-note-tag { font-size: 11px !important; }
.mf-note p { font-size: 16px !important; line-height: 1.5 !important; }
.mf-note-quote p { font-size: 22px !important; line-height: 1.3 !important; }
.mf-note-src { font-size: 12px !important; }
@media (max-width: 720px) {
  .mf-note p { font-size: 15px !important; }
  .mf-note-quote p { font-size: 19px !important; }
}

/* =========================================================
   Phone mockup images (replaces CSS-built screens)
   ========================================================= */
.phone-screen .phone-mock {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
}
/* Dynamic Island — sits over the mockup's status-bar gap */
.phone-screen .phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 10;
  pointer-events: none;
}
.client-phones .phone-screen .phone-notch {
  width: 78px;
  height: 22px;
  top: 9px;
}

/* =========================================================
   Mobile fixes — overflow & overlap issues at ≤540px
   ========================================================= */
@media (max-width: 540px) {
  /* 1. Hero form: stack input + button vertically so the button isn't clipped. */
  .hero-form {
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: none !important;
    padding: 8px !important;
  }
  .hero-form input {
    text-align: left;
  }
  .hero-form button[type="submit"] {
    width: 100%;
    padding: 14px 18px !important;
  }

  /* 2. Client-side editorial header: the inline 2-col grid (chip + h3 / paragraph)
        collapses to a single column. */
  .client-side > div[style*="grid-template-columns"] {
    display: block !important;
    margin-bottom: 40px !important;
  }
  .client-side > div[style*="grid-template-columns"] > p {
    margin-top: 18px !important;
    font-size: 16px !important;
  }
  .client-side h3 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  /* 3. Pulse stats row: 3 columns at full font cuts off "Trend / Тренд за 7 днів".
        Move the third stat onto its own row. */
  .pulse-meta {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .pulse-meta .pulse-stat:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .pulse-stat-l { font-size: 11px !important; }

  /* 4. Pulse grid header: legend wraps under the title instead of clipping right. */
  .pulse-grid-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .pulse-legend {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 5. Pulse alert: "Draft message" / "Підготувати" button drops below the text. */
  .pulse-alert {
    flex-wrap: wrap;
    padding: 14px !important;
  }
  .pulse-alert-text { flex: 1 1 calc(100% - 22px); }
  .pulse-alert .btn-ghost-sm {
    flex: 1 1 100%;
    margin-left: 22px;
  }

  /* 6. Floating CTA at the bottom covers the last bit of content — add safe space. */
  body { padding-bottom: 80px; }
}

/* =========================================================
   Follow-up survey modal — opens after hero/final email submit
   ========================================================= */
.survey-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.survey-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.survey-modal .sm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.survey-modal .sm-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface-solid);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 32px 28px 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(12px) scale(0.98);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.survey-modal.is-visible .sm-card {
  transform: translateY(0) scale(1);
}
.survey-modal .sm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 140ms ease, color 140ms ease;
}
.survey-modal .sm-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.survey-modal .sm-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: none;
  word-break: break-all;
}
.survey-modal .sm-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.survey-modal .sm-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  margin: 0 0 22px;
}
.survey-modal .sm-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.survey-modal .sm-form input[type="text"],
.survey-modal .sm-form select,
.survey-modal .sm-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 10px;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.survey-modal .sm-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.survey-modal .sm-form textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.4;
}
.survey-modal .sm-form input[type="text"]:focus,
.survey-modal .sm-form select:focus,
.survey-modal .sm-form textarea:focus {
  border-color: var(--accent);
  background: rgba(184, 242, 72, 0.04);
}
.survey-modal .sm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.survey-modal .sm-skip {
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
}
.survey-modal .sm-skip:hover { color: var(--text-dim); }
.survey-modal .sm-form button[type="submit"] {
  padding: 12px 22px;
  font-size: 14px;
}
.survey-modal .sm-thanks {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  padding: 30px 10px 10px;
}
body.sm-open { overflow: hidden; }
@media (max-width: 540px) {
  .survey-modal { padding: 16px; }
  .survey-modal .sm-card { padding: 28px 20px 20px; border-radius: 18px; }
  .survey-modal .sm-title { font-size: 19px; }
}

/* "Use a different email" reset link inside success card */
.success-reset,
.form-success-card .success-reset {
  display: inline-block;
  margin-top: 14px;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  padding: 4px 0;
  cursor: pointer;
  transition: color 140ms ease;
}
.success-reset:hover { color: rgba(255, 255, 255, 0.85); }
