/* ============================================================
   ReversePilot — homepage ("Flagship" direction, 2026-09)
   Loaded only by templates/marketing/home.html via extra_head.
   Tokens come from styles.css :root. Class prefix: .hf-
   ============================================================ */

/* Header styling is site-wide now (styles.css, Flagship theme). */

/* ---------- Shared bits ---------- */
.hf-btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; font-weight: 700; }
.hf-btn-white { background: #ffffff; color: var(--navy); }
.hf-btn-white:hover { background: var(--navy-25); color: var(--navy-700); }
.hf-kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
}
.hf-hero h1, .hf-statements h2, .hf-lifecycle h2, .hf-features h2, .hf-cta h2 { letter-spacing: -0.03em; font-weight: 800; }

/* ---------- Hero ---------- */
.hf-hero { position: relative; overflow: hidden; min-height: 650px; color: #ffffff; background: var(--navy-900); }
.hf-hero-inner {
  position: relative; z-index: 1; min-height: 650px;
  padding-top: 66px; padding-bottom: 58px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px;
}
.hf-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 460px; }
.hf-hero-eyebrow {
  margin-bottom: 24px; color: #a9c0cc;
  font-family: var(--font-body); font-weight: 600; font-size: 11px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase;
}
.hf-hero h1 .hf-accent { color: var(--orange); }
.hf-hero h1 { color: #ffffff; margin: 0 0 28px; font-size: 76px; line-height: 1.04; letter-spacing: -0.05em; font-weight: 700; }
.hf-lede { font-size: 18px; line-height: 1.65; color: #b8cdd7; max-width: 440px; margin: 0; }
.hf-hero-cta { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.hf-hero-cta .btn-accent { gap: 18px; }
.hf-hero-link { font-size: 14px; color: #d7e5ec; white-space: nowrap; }
.hf-hero-link span { margin-left: 12px; }
.hf-hero-link:hover { color: #ffffff; }
.hf-hero-cta a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.hf-hero-foot { width: 100%; max-width: 425px; margin: 34px 0 0; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, 0.125); color: #87a4b3; font-size: 12px; letter-spacing: 0.02em; }

/* ---------- Three statements ---------- */
.hf-statements { background: var(--white); }
.hf-statements-grid {
  padding-top: 96px;
  padding-bottom: 104px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
}
.hf-statement { display: flex; flex-direction: column; gap: 16px; }
.hf-numeral {
  font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1;
  letter-spacing: -0.04em; color: var(--orange);
}
.hf-statement h2 { font-size: 1.9rem; margin: 0; }
.hf-statement p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ---------- Lifecycle ---------- */
.hf-lifecycle { background: var(--navy-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hf-lifecycle-grid {
  padding-top: 104px; padding-bottom: 104px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start;
}
.hf-lifecycle-intro { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; position: sticky; top: calc(var(--site-header-height) + 32px); }
.hf-lifecycle-intro h2 { font-size: clamp(2rem, 3.3vw, 3rem); margin: 0; }
.hf-lifecycle-intro p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0; }
.hf-lifecycle-intro .btn { margin-top: 8px; }
.hf-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; }
.hf-timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.hf-timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 24px; padding-bottom: 36px; }
.hf-timeline li:last-child { padding-bottom: 0; }
.hf-timeline li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); border: 5px solid var(--navy-50); box-shadow: 0 0 0 1px var(--line-2);
  box-sizing: border-box;
}
.hf-timeline-body { display: flex; flex-direction: column; gap: 6px; }
.hf-timeline h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0; }
.hf-timeline h3 a { color: var(--ink); }
.hf-timeline h3 a:hover { color: var(--navy); }
.hf-timeline p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.hf-features { background: var(--white); padding: 104px 0; }
.hf-features-head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin-bottom: 48px; }
.hf-features-head h2 { font-size: clamp(2rem, 3.3vw, 3rem); margin: 0; }
.hf-features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.hf-feature { padding: 28px 0 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hf-feature:nth-child(n+4) { border-bottom: 1px solid var(--line); }
.hf-feature h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
.hf-feature p { color: var(--muted); font-size: 1rem; margin: 0; }
.hf-feature .link-arrow { font-size: 0.93rem; font-weight: 700; margin-top: 2px; }

/* ---------- Live integrations band ---------- */
.hf-live { background: var(--navy-900); color: #ffffff; }
.hf-live-inner { padding: 56px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hf-live-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.hf-live-list li {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  color: #cfe1ec; white-space: nowrap;
}
.hf-live-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; color: #cfe1ec; border-bottom: 1px solid transparent; }
.hf-live-more:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* ---------- Savings teaser (volume slider → /savings-calculator/) ---------- */
.hf-savings { background: var(--navy-25); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hf-savings-inner {
  padding-top: 88px; padding-bottom: 88px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.hf-savings-copy h2 { font-size: clamp(2rem, 3.3vw, 3rem); margin: 0 0 16px; }
.hf-savings-copy p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin: 0; }
.hf-savings-calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.hf-savings-field { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hf-savings-field label { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.hf-savings-field output { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hf-savings-total { margin: 22px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.hf-savings-total > span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-600); }
.hf-savings-total strong { display: block; margin: 6px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.035em; color: var(--navy); font-variant-numeric: tabular-nums; }
.hf-savings-total small { display: block; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) {
  .hf-savings-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
}

/* ---------- Final CTA ---------- */
.hf-cta { background: #EAF2F6; color: var(--navy); }
.hf-cta-grid {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
}
.hf-cta h2 { color: var(--navy); font-size: clamp(2.2rem, 3.9vw, 3.5rem); margin: 0 0 18px; }
.hf-cta p { color: #3E5868; font-size: 1.2rem; max-width: 50ch; margin: 0; }
.hf-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.hf-cta .hf-btn-white { background: var(--navy); color: #ffffff; }
.hf-cta .hf-btn-white:hover { background: var(--navy-700); color: #ffffff; }
.hf-cta .btn-ghost-light { color: var(--navy); border-color: var(--navy); }
.hf-cta .btn-ghost-light:hover { background: var(--navy-50); color: var(--navy-700); border-color: var(--navy-700); }
.hf-cta .btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hf-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .hf-feature:nth-child(n+4) { border-bottom: none; }
  .hf-feature:nth-child(n+5) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hf-lifecycle-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .hf-lifecycle-intro { position: static; }
  .hf-cta-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
  .hf-cta-actions { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .hf-statements-grid { padding-top: 80px; padding-bottom: 80px; grid-template-columns: 1fr; gap: 40px; }
  .hf-statement h2 { font-size: 1.6rem; }
  .hf-features { padding: 80px 0; }
  .hf-features-grid { grid-template-columns: 1fr; }
  .hf-feature:nth-child(n+5) { border-bottom: none; }
  .hf-feature:last-child { border-bottom: 1px solid var(--line); }
  .hf-live-inner { padding: 48px 24px; }
  .hf-live-list { gap: 10px 24px; }
  .hf-live-list li { font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .hf-cta-actions .btn { width: 100%; justify-content: center; }
  .hf-cta-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Hero product scene ---------- */
/* A light app window over the navy hero holding the home_hero vignette. Its height comes from text, not images,
   so nothing shifts once fonts load beyond the normal text reflow. */
.hf-hero-visual { position: relative; min-width: 0; }
.hf-hero-visual::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231, 135, 36, 0.22), transparent);
}
.hf-app {
  position: relative; z-index: 1; max-width: 540px; margin-left: auto;
  background: #ffffff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hf-app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--navy-50); border-bottom: 1px solid var(--line); }
.hf-app-dots { display: inline-flex; gap: 6px; }
.hf-app-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hf-app-title { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; color: var(--muted); }
.hf-app .vg { max-width: none; padding: 22px 26px 24px; }
@media (max-width: 1000px) {
  .hf-hero h1 { font-size: 60px; }
}
@media (max-width: 900px) {
  .hf-hero-inner { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .hf-app { margin: 0 auto; }
}
@media (max-width: 700px) {
  .hf-hero, .hf-hero-inner { min-height: 0; }
  .hf-hero-inner { padding-top: 42px; padding-bottom: 48px; gap: 40px; }
  .hf-hero-eyebrow { font-size: 9px; letter-spacing: 0.12em; margin-bottom: 22px; }
  .hf-hero h1 { font-size: 54px; letter-spacing: -0.046em; margin-bottom: 23px; }
  .hf-lede { font-size: 16px; line-height: 1.6; }
  .hf-hero-cta { flex-direction: column; align-items: flex-start; gap: 17px; margin-top: 25px; width: 100%; }
  .hf-hero-cta .btn { width: 100%; justify-content: center; }
  .hf-hero-link { font-size: 13px; }
  .hf-hero-foot { max-width: none; margin-top: 23px; padding-top: 15px; font-size: 11px; }
  .hf-app .vg { padding: 18px 14px 20px; }
}
/* Phones: four rail stops get ~75px each, so the stage names shrink and their detail lines drop. */
@media (max-width: 480px) {
  .hf-app .vg-stop strong { font-size: 11px; letter-spacing: -0.01em; }
  .hf-app .vg-stop small { display: none; }
}
@media (max-width: 380px) {
  .hf-app .vg-stop strong { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .hf-hero h1 { font-size: 46px; }
}
