/* ============================================================
   Homepage — FTA editorial broadsheet.
   Warm paper, serif display, hairline rules, gold as accent.
   Extends the tokens defined in styles.css.
   ============================================================ */

body.home-page {
  overflow: auto;
  height: auto;
  min-height: 100%;
}

/* ---------- Sticky nav ---------- */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.05) blur(8px);
  backdrop-filter: saturate(1.05) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.hp-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { text-decoration: none; }

.hp-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hp-nav-link {
  display: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-2);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.hp-nav-link:hover { color: var(--ink); }

.hp-nav-link--new { color: var(--gold-ink); }

.hp-nav-badge {
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.hp-nav-cta {
  margin-left: 12px;
  padding: 11px 18px;
  font-size: 14px;
  text-decoration: none;
}

@media (min-width: 780px) {
  .hp-nav-link { display: inline-flex; }
}

/* ---------- Shell ---------- */
.hp {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 96px;
}

/* Full-bleed helper */
.hp-band,
.hp-cta {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(56px, 9vw, 104px);
}

.hp-hero-main .eyebrow { animation: hp-rise 500ms var(--ease-out) both; }

.hp-hero-title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  text-wrap: balance;
  animation: hp-rise 640ms var(--ease-out) 80ms both;
}

.hp-hero-title em {
  font-style: normal;
  color: var(--gold-deep);
}

.hp-hero-lede {
  margin: 26px 0 0;
  max-width: 34rem;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--fg-2);
  animation: hp-rise 720ms var(--ease-out) 180ms both;
}

.hp-hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  animation: hp-rise 780ms var(--ease-out) 260ms both;
}

.hp-cta-btn {
  text-decoration: none;
  padding: 15px 26px;
  font-size: 15.5px;
}

.hp-cta-btn svg { transition: transform var(--dur) var(--ease); }
.hp-cta-btn:hover svg { transform: translateX(3px); }

.hp-textlink {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--gold);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.hp-textlink:hover { color: var(--gold-ink); border-color: var(--gold-deep); }

.hp-hero-note {
  margin: 26px 0 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--fg-3);
  animation: hp-rise 840ms var(--ease-out) 340ms both;
}

/* Hero pull-quote (aside) */
.hp-hero-aside { animation: hp-rise 820ms var(--ease-out) 300ms both; }

.hp-quote {
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--gold);
}

.hp-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.32;
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
  text-wrap: balance;
}

.hp-quote figcaption {
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Ridge signature line */
.hp-ridge {
  color: var(--gold);
  opacity: 0.5;
  height: clamp(70px, 9vw, 120px);
  border-bottom: 1px solid var(--rule);
  animation: hp-fade 1000ms var(--ease-out) 260ms both;
}

.hp-ridge svg { width: 100%; height: 100%; display: block; }
.hp-ridge-peak { fill: var(--gold-deep); opacity: 0.9; }

@media (max-width: 820px) {
  .hp-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }
  .hp-quote { padding-left: 20px; }
}

/* ---------- Stats ledger ---------- */
.hp-ledger {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--border-strong);
  border-bottom: 1px solid var(--rule);
}

.hp-ledger-item {
  padding: 26px 24px 24px;
  border-left: 1px solid var(--rule);
}

.hp-ledger-item:first-child { border-left: none; padding-left: 0; }

.hp-ledger-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}

.hp-ledger-unit { color: var(--gold-deep); }

.hp-ledger-label {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 640px) {
  .hp-ledger { grid-template-columns: 1fr 1fr; }
  .hp-ledger-item { padding: 20px 18px; }
  .hp-ledger-item:nth-child(3) { border-left: none; padding-left: 0; }
  .hp-ledger-item:nth-child(1),
  .hp-ledger-item:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ---------- Generic section ---------- */
.hp-section {
  padding: clamp(56px, 8vw, 92px) 0 0;
}

.hp-shead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.hp-shead-idx {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: var(--gold-deep);
  font-variant-numeric: lining-nums;
}

.hp-shead-body { max-width: 46rem; }

.hp-shead-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
  text-wrap: balance;
}

.hp-shead-lede {
  margin: 16px 0 0;
  max-width: 40rem;
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg-2);
}

/* ---------- Ruled lists (pains, payoffs) ---------- */
.hp-ruled {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-ruled-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .hp-ruled-item {
    grid-template-columns: 56px minmax(0, 20rem) 1fr;
  }
  .hp-ruled-item .hp-ruled-text { display: contents; }
  .hp-ruled-item .hp-ruled-text h3 { margin: 0; }
}

.hp-ruled-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--gold-deep);
  font-variant-numeric: lining-nums;
}

.hp-ruled-mark {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
}

.hp-ruled-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}

.hp-ruled-text p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 40rem;
}

/* ---------- Feature grid ---------- */
.hp-features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.hp-feature {
  padding: 30px 30px 32px;
  background: var(--paper);
}

.hp-feature-mark {
  display: inline-grid;
  place-items: center;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.hp-feature-title {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}

.hp-feature-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}

@media (max-width: 640px) {
  .hp-features { grid-template-columns: 1fr; }
  .hp-feature { padding: 26px 22px; }
}

/* ---------- Dark contrast band (the deal) ---------- */
.hp-band {
  margin-top: clamp(64px, 9vw, 108px);
  padding: clamp(60px, 9vw, 104px) 40px;
  background: var(--ink-pure);
  color: #C7C3B8;
}

.hp-band-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.eyebrow--onink { color: var(--gold); }
.eyebrow--onink::before { background: var(--gold); }

.hp-band-title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12;
  color: #FBF7EC;
  text-wrap: balance;
  max-width: 18ch;
}

.hp-band-cols {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
}

.hp-band-cols p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #B4B0A5;
}

.hp-band-punch {
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(228, 173, 37, 0.35);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.28;
  letter-spacing: var(--tracking-snug);
  color: var(--gold);
  max-width: 26ch;
  text-wrap: balance;
}

@media (max-width: 720px) {
  .hp-band-cols { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Steps (how it works) ---------- */
.hp-steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.hp-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.hp-step-num {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.hp-step:hover .hp-step-num { background: var(--gold); color: var(--ink); }

.hp-step-text h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}

.hp-step-text p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 44rem;
}

.hp-trust {
  margin: 28px 0 0;
  max-width: 46rem;
  font-size: 14px;
  line-height: 1.62;
  color: var(--fg-3);
}

/* ---------- Final CTA (ink band bookend) ---------- */
.hp-cta {
  margin-top: clamp(72px, 10vw, 120px);
  padding: clamp(60px, 9vw, 104px) 40px;
  background: var(--ink-pure);
  color: #C7C3B8;
  text-align: center;
}

.hp-cta .eyebrow { justify-content: center; }

.hp-cta-title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  color: #FBF7EC;
  text-wrap: balance;
}

.hp-cta-lede {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: 17px;
  line-height: 1.6;
  color: #B4B0A5;
}

.hp-cta-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.hp-cta-note {
  margin: 24px 0 0;
  font-size: 13.5px;
  color: #8F8B80;
}

.hp-cta-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.hp-cta-link:hover { border-bottom-color: var(--gold); }

/* ---------- Footer ---------- */
.hp-footer {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}

.hp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hp-footer-text { text-align: right; }

.hp-footer-text p {
  margin: 0;
  font-size: 13px;
  color: var(--fg-3);
}

.hp-footer-tag {
  margin-top: 4px !important;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-ink) !important;
}

@media (max-width: 560px) {
  .hp-footer-inner { flex-direction: column; align-items: flex-start; }
  .hp-footer-text { text-align: left; }
}

/* ---------- Motion ---------- */
@keyframes hp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hp-fade {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

@media (max-width: 560px) {
  .hp { padding: 0 22px 72px; }
  .hp-nav-inner { padding: 12px 22px; }
  .hp-band, .hp-cta { padding-left: 22px; padding-right: 22px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero-main .eyebrow,
  .hp-hero-title,
  .hp-hero-lede,
  .hp-hero-actions,
  .hp-hero-note,
  .hp-hero-aside,
  .hp-ridge { animation: none; opacity: 1; transform: none; }
  .hp-ridge { opacity: 0.5; }
}
