/* ============================================================
   money.css — the money-narrative pitch page overlay.
   Loads after base.css + measured.css. Keeps the measured
   design language; breaks the cinema layout for pitch density.
   ============================================================ */

/* --- hero: fit the new H1, add a CTA row --- */
.money-page .hero h1 {
  font-size: clamp(50px, 6.25vw, 96px);
  max-width: 13ch;
}

/* The CTA row below means the sub is no longer :last-child, so the
   system's hero-sub sizing misses it. Re-apply the spec. */
.money-page .hero-copy > p {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  max-width: 610px;
}

.hero-cta {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-top: 38px;
}

.hero-cta a {
  border: 1px solid currentColor;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  padding: 14px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-cta a.is-primary {
  background: var(--amber);
  border-color: var(--ink);
  color: var(--ink);
}

.hero-cta a.is-primary:hover {
  background: var(--ink);
  color: var(--amber);
}

.hero-cta a.is-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.hero-cta a.is-ghost:hover {
  border-color: var(--ink);
}

/* --- coaching plate: true full-bleed background, content stays
       on the shared panel grid (the stock half-breakout drifts
       left on wide windows) --- */
.money-page {
  overflow-x: clip;
}

.money-page .outcome-chapter.coaching {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* --- heading parity: the stacked variant (celebration) matches
       the paced headings' size --- */
.money-page .chapter-heading.is-stacked h2 {
  font-size: clamp(56px, 5.5vw, 84px);
}

/* --- density: pitch sections run tighter than story chapters --- */
.money-page .outcome-chapter {
  padding: clamp(52px, 5vw, 78px) 0;
}

.money-page .proof-row {
  min-height: 0;
}

.money-page .proof-row > div,
.money-page .retention-proof > div {
  padding: clamp(40px, 4.2vw, 66px);
}

/* --- flipped evidence rows (stage left, copy right) --- */
.retention-proof.is-flipped > .product-stage {
  border-left: 0;
  border-right: 1px solid var(--ink);
  order: -1;
}

/* --- meet band: reveal-as-band, one dense viewport max --- */
.meet-band {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--paper-2);
  border-bottom: 1px solid var(--ink);
  padding: clamp(52px, 5vw, 78px) max(24px, 5vw);
}

.meet-band .meet-grid {
  margin: 0 auto;
  max-width: 1450px;
}

.meet-band h2 {
  font-size: clamp(40px, 4vw, 60px);
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin: 0 0 22px;
}

.meet-band .athlete-results-label {
  font-size: clamp(14px, 1.15vw, 17px);
}

.meet-band .athlete-meet-copy ul {
  font-size: clamp(16px, 1.25vw, 20px);
}

/* --- dial nav: the three promises, pinned under the tab bar
       so they stay on screen the whole way down --- */
.dial-nav {
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(18, 26, 38, 0.1);
  display: flex;
  font-family: var(--mono);
  gap: clamp(14px, 2vw, 30px);
  overflow-x: auto;
  padding: 12px clamp(14px, 1.6vw, 22px);
  position: sticky;
  top: 82px;
  z-index: 29;
}

.dial-nav-label {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dial-nav a {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.55;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.dial-nav a b {
  color: var(--accent);
  font-weight: 400;
  margin-right: 5px;
}

.dial-nav a:hover {
  opacity: 0.85;
}

.dial-nav a.is-active {
  border-bottom: 2px solid var(--accent);
  opacity: 1;
  padding-bottom: 2px;
}

.dn-short {
  display: none;
}

@media (max-width: 900px) {
  .dial-nav {
    top: 101px;
  }
}

/* Mobile: compact labels, no horizontal scroll */
@media (max-width: 720px) {
  .dial-nav {
    gap: 10px;
    justify-content: space-between;
    overflow-x: visible;
    padding: 11px 14px;
  }

  .dial-nav-label {
    display: none;
  }

  .dn-long {
    display: none;
  }

  .dn-short {
    display: inline;
  }
}

/* --- cross links: hand off to the athlete + how tabs --- */
.cross-links {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  margin: clamp(64px, 7vw, 110px) auto 0;
  max-width: 1450px;
}

.cross-links button {
  align-items: baseline;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(18, 26, 38, 0.1);
  cursor: pointer;
  display: grid;
  gap: 6px 16px;
  grid-template-columns: auto 1fr auto;
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px);
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.cross-links button:hover {
  background: var(--ink-2);
  color: var(--paper);
}

.cross-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.cross-links b {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  font-style: italic;
  letter-spacing: -0.04em;
}

.cross-links p {
  font-family: var(--mono);
  font-size: 13px;
  grid-column: 2;
  line-height: 1.5;
  margin: 0;
  opacity: 0.72;
}

.cross-arrow {
  align-self: center;
  font-size: 22px;
  grid-column: 3;
  grid-row: 1 / 3;
}

@media (max-width: 720px) {
  .cross-links {
    grid-template-columns: 1fr;
  }
}

/* --- engine row: the nudge video as a message-media cell --- */
.engine-stage .message-player video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.retention-proof.is-flipped > .engine-stage {
  order: -1;
}

/* --- film review: thumbnails of real athlete clips --- */
.film-grid {
  display: grid;
  gap: 20px;
  padding: 18px;
}

.film-day-label {
  color: #64748b;
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.film-thumbs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.film-clip {
  margin: 0;
}

.film-frame {
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid #1e293b;
  box-shadow: 3px 3px 0 #94a3b8;
  overflow: hidden;
  position: relative;
}

.film-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.film-play {
  border-bottom: 9px solid transparent;
  border-left: 15px solid rgba(255, 255, 255, 0.92);
  border-top: 9px solid transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
}

.film-clip figcaption {
  color: #1e293b;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  margin-top: 7px;
}

.film-clip figcaption b {
  font-weight: 600;
}

.film-more {
  align-self: start;
  aspect-ratio: 16 / 9;
  border: 1px dashed #94a3b8;
  color: #64748b;
  display: grid;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  place-items: center;
  text-transform: uppercase;
}

/* --- dial heads: the three chapter markers, scaled to be
       unmissable while scrolling --- */
.dial-head {
  border-top: 4px solid var(--ink);
  margin: clamp(84px, 9vw, 140px) auto clamp(18px, 2vw, 26px);
  max-width: 1450px;
  padding-top: clamp(26px, 2.8vw, 40px);
}

.dial-head:first-child {
  margin-top: clamp(36px, 4vw, 60px);
}

.dial-num {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  text-transform: uppercase;
}

.dial-head h2 {
  font-size: clamp(70px, 8.5vw, 132px);
  letter-spacing: -0.07em;
  line-height: 0.88;
  margin: 0;
}

.dial-head .dial-blurb {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.5;
  margin: clamp(22px, 2.4vw, 34px) 0 0;
  max-width: 720px;
}

@media (max-width: 900px) {
  .retention-proof.is-flipped > .product-stage {
    border-right: 0;
    order: 0;
  }

  .retention-proof.is-flipped > .engine-stage {
    order: 0;
  }

  .hero-cta {
    flex-wrap: wrap;
  }
}

/* ============================================================
   2026-07-30: Facundo consistency pass
   1 · looser display tracking  2 · flat grounds (no rules)
   3 · border law (1px ink rules; accent bar = dial heads only)
   4 · cell law (footage = dark plate, app UI = light stage)
   5 · quiet CTA band
   ============================================================ */

/* 1 · display tracking, one notch looser everywhere */
.money-page .hero h1,
.money-page .dial-head h2,
.money-page .closing h2 {
  letter-spacing: -0.035em;
}

.money-page .chapter-heading h2,
.money-page .whisper h2,
.money-page .meet-band h2,
.money-page .outcomes-head h2 {
  letter-spacing: -0.03em;
}

.money-page .retention-proof h3,
.money-page .proof-row h3,
.money-page .meet-grid h3,
.money-page .coach-timeline h3,
.money-page .how-stack h3,
.money-page .money-claim h3,
.money-page .demo-cta p {
  letter-spacing: -0.03em;
}

.money-page .cross-links b {
  letter-spacing: -0.025em;
}

/* 2 · flat grounds: ruled/grid textures off */
.money-page .hero::before {
  content: none;
}

.money-page .outcomes {
  background: var(--paper-2);
}

.money-page .meet-band {
  background: var(--paper-2);
}

.money-page .closing {
  background: var(--ink-2);
}

/* 3 · border law */
.money-page .chapter-heading::before {
  content: none;
}

.money-page .dial-head {
  border-top-width: 1px;
  position: relative;
}

.money-page .dial-head::before {
  background: var(--accent);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: -2px;
  width: clamp(72px, 8vw, 120px);
}

.money-page .whisper {
  border-top: 1px solid var(--ink);
}

/* 4 · cell law: app UI on light stages, footage on flat dark */
.money-page .phone-stage,
.money-page .device-ledger,
.money-page .social-proof {
  background: #eceff3;
  border-left: 1px solid var(--ink);
}

.money-page .proof-row.is-reversed .phone-stage,
.money-page .proof-row.is-reversed .device-ledger,
.money-page .proof-row.is-reversed .social-proof {
  border-left: 0;
  border-right: 1px solid var(--ink);
}

.money-page .device-ledger .desktop-shot,
.money-page .device-ledger .phone-shot {
  border-color: var(--ink);
}

.money-page .phone-stage .iphone-mock {
  box-shadow:
    10px 12px 0 rgba(18, 26, 38, 0.16),
    0 0 0 1px rgba(18, 26, 38, 0.35);
}

.money-page .briefing-stage {
  background: #eceff3;
}

/* athlete tab: the proof-row figures outrank .phone-stage in
   measured.css, so re-assert the cell law at higher specificity */
.money-page .athlete-proof .proof-row figure {
  background: #eceff3;
  border-left: 1px solid var(--ink);
}

.money-page .athlete-proof .proof-row.is-reversed figure {
  border-left: 0;
  border-right: 1px solid var(--ink);
}

.money-page .message-media {
  background: var(--ink-2);
}

/* 5 · quiet CTA band (amber slab retired) */
.money-page .demo-cta {
  background: none;
  border-bottom: 0;
  border-top: 1px solid var(--ink);
  padding: clamp(24px, 2.6vw, 36px) 0;
}

.money-page .demo-cta p {
  font-size: clamp(24px, 2.4vw, 34px);
}

.money-page .demo-cta a {
  background: var(--amber);
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
}

.money-page .demo-cta a:hover {
  background: var(--ink);
  color: var(--amber);
}

/* ============================================================
   Experiment (?cycle=1): Facundo's word cycler on dial 2.
   Not active without the query flag.
   ============================================================ */
.cycle-slot {
  display: inline-block;
  transition: width 320ms cubic-bezier(0.2, 0.75, 0.25, 1);
  vertical-align: bottom;
  white-space: nowrap;
}

.cycle-slot .cycle-text {
  color: var(--accent);
  display: inline-block;
  transition: opacity 200ms ease, transform 200ms ease;
}

.cycle-slot.is-out .cycle-text {
  opacity: 0;
  transform: translateY(0.35em);
}

.cycle-meas {
  pointer-events: none;
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
}

/* Cycling header runs a notch smaller so every word holds one line */
.money-page #join h2.is-cycling {
  font-size: clamp(58px, 7.2vw, 112px);
}

/* Ledger phone gets the standard iPhone shell (the bare .phone-shot
   screenshot read as a frameless rectangle on the light stage) */
.ledger-phone {
  bottom: 3vw;
  position: absolute;
  right: 3vw;
  width: min(26%, 240px);
}

.money-page .device-ledger .iphone-mock {
  box-shadow:
    10px 12px 0 rgba(18, 26, 38, 0.16),
    0 0 0 1px rgba(18, 26, 38, 0.35);
}
