/* ============================================================
   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: 600px;
  color: #ffffff;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(231, 135, 36, 0.16), transparent 60%),
    radial-gradient(700px 500px at 5% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-700) 100%);
}
.hf-hero-inner {
  position: relative; z-index: 1;
  padding-top: 84px; padding-bottom: 96px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 26px;
}
.hf-hero h1 .hf-accent { color: var(--orange); }
.hf-hero h1 {
  color: #ffffff; margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.05; max-width: 640px; text-wrap: balance;
}
.hf-lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: #cfe1ec; max-width: 34em; line-height: 1.5; margin: 0; }
.hf-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; margin-top: 8px; }

/* ---------- 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: var(--orange); color: #ffffff; }
.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: #ffffff; font-size: clamp(2.2rem, 3.9vw, 3.5rem); margin: 0 0 18px; }
.hf-cta p { color: rgba(255, 255, 255, 0.88); 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 .btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- 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-hero { min-height: 0; }
  .hf-hero-inner { padding-top: 64px; padding-bottom: 72px; gap: 20px; }
  .hf-hero-art { opacity: 0.5; }
  .hf-hero-art text { display: none; } /* step labels clip at phone widths; the lit rings still tell the story */
  .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-hero-cta .btn, .hf-cta-actions .btn { width: 100%; justify-content: center; }
  .hf-hero-cta, .hf-cta-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Hero flight-path art ---------- */
/* One size at every viewport width and browser zoom: as tall as the hero, as wide as the 1440x684 viewBox
   allows (1263px at the 600px hero), pinned to the right edge. A wider window adds sky on the left instead
   of scaling the drawing up and cropping the horizon off the bottom (the old inset:0 + slice behaviour).
   Narrower than 1263px the box clamps to the hero (max-width) and the SVG's xMidYMid slice centers the
   crop, which is exactly what tablets and phones rendered before. */
.hf-hero-art { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1440 / 684; z-index: 0; pointer-events: none; }
.hf-hero .btn-ghost-light { background: rgba(6, 34, 47, 0.35); }
.hf-hero .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
