/* ------------------------------------------------------------------
   Revenue Labs (/revenue)
   Inherits tokens, fonts, header, buttons and footer from styles.css.
   One job: get the visitor to the calendar. Headline, video and one
   button share the first screen; the amber is reserved for the button
   and for the leaks in the lead-to-cash path.
   ------------------------------------------------------------------ */

:root {
  --line-strong: #2a4056;
  --rv-section: clamp(72px, 9vw, 128px);
}

html { scrollbar-color: #24394d var(--bg); }

/* Ordered lists here are layout, not prose: drop the browser's numbering and indent */
.rv-path,
.rv-steps { list-style: none; margin: 0; padding: 0; }

/* Buttons: same label everywhere */
.rv-btn { margin-top: 0; }
.rv-btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.rv-btn--left { margin-top: 32px; }
.rv-short { display: none; }

@media (hover: hover) and (pointer: fine) {
  .rv-btn:hover { background: var(--amber-hover); }
}

/* ---------------------------------------------------------------
   Hero: headline, video, button, all in one view
   --------------------------------------------------------------- */

.rv-hero {
  padding: calc(var(--bar) + clamp(20px, 4vh, 56px)) 0 clamp(64px, 8vw, 112px);
  text-align: center;
}

.rv-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.125rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.rv-l { display: block; text-wrap: balance; }

.rv-sub {
  max-width: 32em;
  margin: 20px auto 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text);
  text-wrap: balance;
}

.rv-areas {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.rv-video {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin: 32px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rv-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--panel);
}

.rv-cta { margin-top: 28px; }

/* Stands in for the video until it exists: keeps the button clear of the intro copy */
.rv-spacer { height: clamp(12px, 3vh, 32px); }

.rv-note {
  max-width: 26em;
  margin: 14px auto 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */

.rv-sec {
  padding-block: var(--rv-section);
  border-top: 1px solid var(--line);
}

.rv-sec h2 { max-width: 16em; }

.rv-problem h2 {
  max-width: 17em;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
}

.rv-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.rv-ledger li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}

.rv-after {
  max-width: 32em;
  margin-top: 40px;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text);
}

.rv-after strong { color: var(--white); font-weight: 600; white-space: nowrap; }

/* What I look at */
.rv-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.rv-areas-grid li {
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}

.rv-areas-grid h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}

.rv-areas-grid p {
  max-width: 28em;
  margin-top: 8px;
}

/* How it works */
.rv-how-p {
  max-width: 34em;
  margin-top: 24px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.rv-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
}

.rv-path::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.rv-path li {
  position: relative;
  padding: 36px 24px 0 0;
}

.rv-path li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
}

.rv-path li:last-child::before { background: var(--amber); }

.rv-stage {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.rv-leak {
  position: relative;
  display: block;
  max-width: 14em;
  margin-top: 12px;
  padding-left: 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--amber);
}

.rv-leak::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
}

/* Authored moment: the path draws once, then the leaks appear in order.
   Hidden states apply only when JS is running, so content is visible by default. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv-path:not(.is-in)::before { transform: scaleX(0); }
  .js .rv-path:not(.is-in) li::before { opacity: 0; transform: scale(0.4); }
  .js .rv-path:not(.is-in) .rv-leak { opacity: 0; transform: translateY(6px); }

  .rv-path::before { transition: transform 1100ms var(--ease-out); }
  .rv-path li::before {
    transition: opacity 300ms ease, transform 400ms var(--ease-out);
    transition-delay: calc(var(--k) * 260ms);
  }
  .rv-leak {
    transition: opacity 500ms ease, transform 500ms var(--ease-out);
    transition-delay: calc(var(--k) * 260ms + 220ms);
  }
}

.rv-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 96px);
}

.rv-steps li {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.rv-n {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--amber);
}

.rv-steps h3 {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}

.rv-steps p { max-width: 20em; margin-top: 8px; }

/* About */
.rv-about-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}

.rv-about-body p {
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.7;
}

.rv-about-body p + p { margin-top: 1.1em; }
.rv-about-body strong { color: var(--white); font-weight: 600; }

/* What you actually need: a quiet inversion */
.rv-wants {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.rv-no {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--muted);
  text-wrap: balance;
}

.rv-no + .rv-no { margin-top: 10px; }

.rv-yes {
  max-width: 12em;
  margin-top: clamp(32px, 4vw, 52px);
  font-family: var(--display);
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}

.rv-gets {
  max-width: 26em;
  margin-top: 28px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--text);
}

/* Calendar */
.rv-book {
  padding: var(--rv-section) 0 clamp(64px, 8vw, 112px);
  text-align: center;
}

.rv-book h2 { margin-inline: auto; }

.rv-book-p {
  max-width: 34em;
  margin: 20px auto 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  text-wrap: balance;
}

.rv-cal {
  position: relative;
  width: min(100%, 920px);
  height: 720px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.rv-cal iframe { display: block; width: 100%; height: 100%; border: 0; }

.rv-cal-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.rv-cal-msg[hidden] { display: none; }

.rv-cal-alt { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.rv-cal-alt a { color: var(--text); }

.rv-book-close {
  max-width: 30em;
  margin: 28px auto 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------------------------------------------------------------
   Smaller screens
   --------------------------------------------------------------- */

@media (max-width: 52rem) {
  .rv-ledger,
  .rv-areas-grid { grid-template-columns: 1fr; }
  .rv-steps { grid-template-columns: 1fr; row-gap: 32px; }
  .rv-about-in { grid-template-columns: 1fr; }

  .rv-path { grid-template-columns: 1fr; }
  .rv-path::before { top: 6px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; transform-origin: top; }
  .rv-path li { padding: 0 0 36px 40px; }
  .rv-path li::before { top: 3px; }
  .rv-path li:last-child { padding-bottom: 0; }

  @media (prefers-reduced-motion: no-preference) {
    .js .rv-path:not(.is-in)::before { transform: scaleY(0); }
  }
}

@media (max-width: 30rem) {
  .rv-long { display: none; }
  .rv-short { display: inline; }
  .rv-cal { height: 860px; }
}
