/* ============================================================================
   Fast Tracking — Refer a Colleague (style-refer.css)
   ----------------------------------------------------------------------------
   File location:  wp-content/themes/astra-child/assets/refer/style-refer.css
   Loaded by:      functions.php on the template-refer-a-colleague.php template.
   Pairs with:     template-refer-a-colleague.php + script-refer.js

   Design language mirrors the homepage (template-home.php / style-home.css):
   the same Fraunces + Inter Tight + JetBrains Mono trio, the same brass-on-
   paper editorial treatment, the same dark ink statement sections. Sections
   that exist on the home (hero, segments-grid, contact-section, stat-feature,
   faq-section) reuse the home class names verbatim so the brand feels
   continuous; this stylesheet redeclares them rather than depending on the
   home stylesheet because each template owns its own page CSS.

   Page-specific additions live in their own blocks at the bottom:
     - .refer-steps         (3-step numbered cards inside the dark §02 section)
     - .refer-share-card    (panel with the Copy-link + Send-by-email controls)
     - .refer-share-btn     (the share controls themselves)
     - .fineprint-section   (paper-warm, numbered plain-English T&Cs in §06)
   ============================================================================ */

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --ink:        #0B2238;
  --ink-deep:   #061826;
  --ink-soft:   #2C3D52;
  --paper:      #F8F6F1;
  --paper-warm: #F0EDE5;
  --paper-deep: #E5E0D5;
  --brass:      #C9986A;
  --brass-deep: #7a5928;
  --rule:       #DDD7C8;
  --text:       #1A2433;
  --text-soft:  #4A5568;
  --text-mute:  #7A8294;
  --white:      #FFFFFF;
  --serif:      'Fraunces', 'Times New Roman', serif;
  --sans:       'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 90px; }
body.ft-refer {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'ss02';
}
body.ft-refer main { overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* GRAIN OVERLAY — paper texture matching the home page */
body.ft-refer::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 1;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ─── Sections — base ───────────────────────────────────────────────────── */
.ft-refer section { padding: 120px 48px; position: relative; }
.ft-refer .container { max-width: 1280px; margin: 0 auto; }
.ft-refer .container-narrow { max-width: 880px; margin: 0 auto; }

.ft-refer .section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 28px;
}
.ft-refer .section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--brass);
}
.ft-refer .section-eyebrow .num {
  font-family: var(--mono); font-weight: 500;
  color: var(--text-mute); letter-spacing: 0.05em;
}

.ft-refer .section-title {
  font-family: var(--serif); font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}
.ft-refer .section-title em {
  font-style: italic; font-weight: 320; color: var(--brass-deep);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.ft-refer .section-lede {
  font-size: 1.1rem; line-height: 1.6;
  color: var(--text-soft);
  max-width: 60ch;
  margin-top: 24px;
}
.ft-refer .section-sub-line {
  font-family: var(--serif); font-style: italic;
  font-weight: 380; font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.18rem; line-height: 1.45;
  color: var(--text-soft);
  max-width: 50ch;
  margin-top: 24px;
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.ft-refer .hero {
  position: relative;
  padding: 96px 48px 120px;
  overflow: hidden;
}
.ft-refer .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1280px; margin: 0 auto;
  gap: 64px;
  align-items: end;
}
@media (min-width: 980px) {
  .ft-refer .hero-grid { grid-template-columns: 1.4fr 0.9fr; }
}

.ft-refer .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 36px;
}
.ft-refer .hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--brass);
}

.ft-refer .hero h1 {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.030em;
  color: var(--ink);
  margin-bottom: 42px;
  max-width: 18ch;
}
.ft-refer .hero h1 em {
  font-style: italic;
  font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--brass-deep);
}

.ft-refer .hero-lede {
  font-size: 1.10rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 50ch;
  margin-bottom: 24px;
  font-weight: 400;
}

.ft-refer .hero-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: 50ch;
  margin-bottom: 40px;
}

.ft-refer .hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 56px;
}

.ft-refer .btn-primary,
.ft-refer .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft-refer .btn-primary {
  background: var(--ink); color: var(--white);
  border-radius: 100px;
  letter-spacing: -0.005em;
}
.ft-refer .btn-primary:hover {
  background: var(--ink-deep); transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(11, 34, 56, 0.3);
}
.ft-refer .btn-primary::after {
  content: '→'; font-size: 1.1em;
  transition: transform 0.22s ease;
}
.ft-refer .btn-primary:hover::after { transform: translateX(4px); }
.ft-refer .btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  letter-spacing: -0.005em;
}
.ft-refer .btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Trust strip — reused from home, no animated counters needed */
.ft-refer .trust {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.ft-refer .trust span { position: relative; }
.ft-refer .trust span:not(:last-child)::after {
  content: '·';
  position: absolute; right: -20px;
  color: var(--brass);
  font-weight: 700;
}
.ft-refer .trust .num {
  font-family: var(--serif);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.ft-refer .reading-time {
  display: inline-block;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* HERO CARD */
.ft-refer .hero-card {
  position: relative;
  padding: 48px 44px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(11,34,56,0.04), 0 24px 60px -20px rgba(11,34,56,0.12);
}
.ft-refer .hero-card::before {
  content: '';
  position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}
.ft-refer .hero-card-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.ft-refer .hero-card-title {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.6rem;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 18px;
}
.ft-refer .hero-card-title em {
  font-style: italic; color: var(--brass-deep);
  font-weight: 360; font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.ft-refer .hero-card-body {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.ft-refer .hero-card-rule {
  height: 1px; background: var(--rule);
  margin: 24px 0;
}
.ft-refer .hero-card-detail {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--text-soft);
}
.ft-refer .hero-card-detail:last-child { margin-bottom: 0; }
.ft-refer .hero-card-detail strong { color: var(--ink); font-weight: 500; }

/* ─── §01 — SEGMENTS (How It Works) ─────────────────────────────────────── */
.ft-refer .segments-section {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ft-refer .segments-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden;
  margin-top: 72px;
}
@media (min-width: 880px) {
  .ft-refer .segments-grid { grid-template-columns: repeat(3, 1fr); }
}
.ft-refer .segment {
  background: var(--white);
  padding: 48px 36px;
  display: flex; flex-direction: column;
  transition: background 0.25s ease;
}
.ft-refer .segment:hover { background: var(--paper); }
.ft-refer .segment-num {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--brass-deep); letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.ft-refer .segment h3 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.5rem; letter-spacing: -0.016em; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
.ft-refer .segment p {
  font-size: 0.96rem; line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.ft-refer .segment-callout {
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  color: var(--brass-deep);
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 24px 0 32px;
  letter-spacing: -0.005em;
}
.ft-refer .segment-link {
  margin-top: auto;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: gap 0.22s ease, color 0.22s ease;
}
.ft-refer .segment-link:hover { gap: 14px; color: var(--brass-deep); border-bottom-color: var(--brass); }

/* ─── §02 — REFER A COLLEAGUE (dark statement section) ──────────────────── */
.ft-refer .rooms-section {
  background: var(--ink);
  color: var(--white);
  padding: 140px 48px;
  position: relative;
  overflow: hidden;
}
.ft-refer .rooms-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,152,106,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(201,152,106,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.ft-refer .rooms-section .container { position: relative; z-index: 1; }
.ft-refer .rooms-section .section-eyebrow { color: var(--brass); }
.ft-refer .rooms-section .section-eyebrow::before { background: var(--brass); }
.ft-refer .rooms-section .section-eyebrow .num { color: rgba(255,255,255,0.5); }
.ft-refer .rooms-section .section-title { color: var(--white); }
.ft-refer .rooms-section .section-title em { color: var(--brass); }
.ft-refer .rooms-section .section-sub-line { color: rgba(255,255,255,0.78); }

/* Three-step grid — sits inside the dark section */
.ft-refer .refer-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 72px;
}
@media (min-width: 880px) {
  .ft-refer .refer-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.ft-refer .refer-step {
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.ft-refer .refer-step:hover {
  border-color: rgba(201,152,106,0.5);
  background: rgba(201,152,106,0.06);
}
.ft-refer .refer-step-num {
  font-family: var(--serif); font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-style: italic;
  font-size: 2.6rem; line-height: 1;
  color: var(--brass);
  margin-bottom: 20px;
  font-feature-settings: 'tnum', 'lnum';
}
.ft-refer .refer-step h3 {
  font-family: var(--serif); font-weight: 440;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.32rem; letter-spacing: -0.014em; line-height: 1.3;
  color: var(--white);
  margin-bottom: 14px;
}
.ft-refer .refer-step p {
  font-size: 0.96rem; line-height: 1.6;
  color: rgba(255,255,255,0.74);
}

/* Share card — copy link + email controls */
.ft-refer .refer-share-card {
  margin-top: 64px;
  padding: 40px 44px;
  background: rgba(201,152,106,0.08);
  border-left: 2px solid var(--brass);
  border-radius: 0 6px 6px 0;
  max-width: 760px; margin-left: auto; margin-right: auto;
  position: relative;
}
.ft-refer .refer-share-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}
.ft-refer .refer-share-controls {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}

.ft-refer .refer-share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 500;
  background: var(--brass);
  color: var(--ink);
  border: 1px solid var(--brass);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.005em;
  position: relative;
}
.ft-refer .refer-share-btn:hover {
  background: var(--white); color: var(--ink);
  border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.3);
}
.ft-refer .refer-share-btn-secondary {
  background: transparent;
  color: var(--brass);
  border: 1px solid rgba(201,152,106,0.5);
}
.ft-refer .refer-share-btn-secondary:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.ft-refer .refer-share-btn-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ft-refer .refer-share-btn-feedback {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-left: 4px;
}
.ft-refer .refer-share-btn.is-copied .refer-share-btn-feedback {
  opacity: 1;
}
.ft-refer .refer-share-note {
  font-family: var(--sans); font-size: 0.86rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

/* ─── §03 — CONTACT (form section) ──────────────────────────────────────── */
.ft-refer .contact-section {
  background: var(--ink);
  color: var(--white);
  padding: 140px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ft-refer .contact-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,152,106,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,152,106,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.ft-refer .contact-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
.ft-refer .contact-section .section-eyebrow {
  color: var(--brass);
  justify-content: center;
}
.ft-refer .contact-section .section-eyebrow::before { background: var(--brass); }
.ft-refer .contact-section .section-eyebrow .num { color: rgba(255,255,255,0.5); }

.ft-refer .contact-title {
  font-family: var(--serif); font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1; letter-spacing: -0.034em;
  color: var(--white);
  margin: 24px 0 32px;
}
.ft-refer .contact-title em {
  font-style: italic; color: var(--brass); font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.ft-refer .contact-lede {
  font-family: var(--serif); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.18rem; line-height: 1.55;
  color: rgba(255,255,255,0.86);
  margin-bottom: 16px;
  max-width: 56ch; margin-left: auto; margin-right: auto;
}
.ft-refer .contact-meta {
  font-family: var(--mono); font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  line-height: 1.7;
}

.ft-refer .contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 40px;
  text-align: left;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
  margin-bottom: 32px;
}
.ft-refer .contact-form-wrap::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: var(--brass); border-radius: 0 0 3px 3px;
}

/* WPForms overrides — match the home page treatment */
.ft-refer .contact-form-wrap .wpforms-container { font-family: var(--sans) !important; }
.ft-refer .contact-form-wrap .wpforms-field-label-inline svg,
.ft-refer .contact-form-wrap .wpforms-field-label svg,
.ft-refer .contact-form-wrap label svg { display: none !important; }
.ft-refer .contact-form-wrap .wpforms-field-label,
.ft-refer .contact-form-wrap label {
  font-family: var(--sans) !important;
  font-size: 0.84rem !important; font-weight: 500 !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-soft) !important;
  margin-bottom: 8px !important;
}
.ft-refer .contact-form-wrap input[type="text"],
.ft-refer .contact-form-wrap input[type="email"],
.ft-refer .contact-form-wrap input[type="tel"],
.ft-refer .contact-form-wrap input[type="url"],
.ft-refer .contact-form-wrap select,
.ft-refer .contact-form-wrap textarea {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  background: var(--white) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
  color: var(--ink) !important;
  width: 100% !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ft-refer .contact-form-wrap input:focus,
.ft-refer .contact-form-wrap select:focus,
.ft-refer .contact-form-wrap textarea:focus {
  outline: none !important;
  border-color: var(--brass) !important;
  box-shadow: 0 0 0 3px rgba(201,152,106,0.18) !important;
}
.ft-refer .contact-form-wrap textarea { min-height: 140px; resize: vertical; }
.ft-refer .contact-form-wrap .wpforms-field { margin-bottom: 20px !important; padding: 0 !important; }
.ft-refer .contact-form-wrap button[type="submit"],
.ft-refer .contact-form-wrap .wpforms-submit {
  font-family: var(--sans) !important;
  font-size: 0.96rem !important; font-weight: 500 !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 16px 32px !important;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ft-refer .contact-form-wrap button[type="submit"]:hover,
.ft-refer .contact-form-wrap .wpforms-submit:hover {
  background: var(--ink-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(11,34,56,0.3);
}

.ft-refer .contact-fallback {
  display: inline-flex; flex-wrap: wrap; gap: 6px 14px;
  justify-content: center; align-items: baseline;
  font-family: var(--sans); font-size: 0.94rem;
  color: rgba(255,255,255,0.7);
}
.ft-refer .contact-fallback a {
  color: var(--brass);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,152,106,0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ft-refer .contact-fallback a:hover { color: var(--white); border-color: var(--white); }
.ft-refer .contact-fallback-hours {
  color: rgba(255,255,255,0.45);
  font-family: var(--mono);
  font-size: 0.82rem;
}

/* ─── §04 — STAT FEATURE ────────────────────────────────────────────────── */
.ft-refer .stat-feature {
  background: var(--ink);
  color: var(--paper-warm);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ft-refer .stat-feature::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(201,152,106,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.ft-refer .stat-feature-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
.ft-refer .stat-feature-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brass);
}
.ft-refer .stat-feature-figure {
  font-family: var(--serif);
  font-size: clamp(96px, 16vw, 192px);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  line-height: 1; letter-spacing: -0.04em;
  color: var(--white);
  font-feature-settings: 'tnum';
  margin-bottom: 32px;
}
.ft-refer .stat-feature-figure em {
  font-style: normal;
  font-size: 0.32em;
  color: var(--brass);
  vertical-align: super;
  margin-left: 6px;
  font-weight: 400;
}
.ft-refer .stat-feature-line {
  font-family: var(--serif); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  line-height: 1.45; letter-spacing: -0.012em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 18px;
  max-width: 36ch; margin-left: auto; margin-right: auto;
}
.ft-refer .stat-feature-line em {
  font-style: italic; color: var(--brass);
  font-weight: 320; font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.ft-refer .stat-feature-attr {
  font-family: var(--mono); font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}

/* ─── §05 — FAQ ─────────────────────────────────────────────────────────── */
.ft-refer .faq-section {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}
.ft-refer .faq-grid {
  display: grid; grid-template-columns: 1fr; gap: 64px;
  margin-top: 0;
}
@media (min-width: 980px) {
  .ft-refer .faq-grid { grid-template-columns: 1fr 2fr; gap: 96px; }
}
.ft-refer .faq-aside {
  position: sticky; top: 110px;
  align-self: start;
}
.ft-refer .faq-aside p {
  font-size: 1rem; line-height: 1.65;
  color: var(--text-soft);
  margin-top: 24px;
}
.ft-refer .faq details { border-bottom: 1px solid var(--rule); }
.ft-refer .faq details:first-child { border-top: 1px solid var(--rule); }
.ft-refer .faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  font-family: var(--serif); font-weight: 440;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.16rem; line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease;
}
.ft-refer .faq summary:hover { color: var(--brass-deep); }
.ft-refer .faq summary::-webkit-details-marker { display: none; }
.ft-refer .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--brass-deep);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft-refer .faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat;
}
.ft-refer .faq-answer {
  padding: 0 48px 28px 0;
  font-family: var(--sans); font-size: 0.98rem; line-height: 1.7;
  color: var(--text-soft);
  max-width: 64ch;
}

/* ─── §06 — FINE PRINT (T&Cs) ───────────────────────────────────────────── */
.ft-refer .fineprint-section {
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.ft-refer .fineprint-section .section-lede {
  margin-bottom: 56px;
}
.ft-refer .fineprint-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: fineprint;
}
.ft-refer .fineprint-list li {
  counter-increment: fineprint;
  padding: 24px 0 24px 64px;
  border-top: 1px solid var(--rule);
  position: relative;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-soft);
}
.ft-refer .fineprint-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.ft-refer .fineprint-list li::before {
  content: counter(fineprint, decimal-leading-zero);
  position: absolute;
  left: 0; top: 24px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brass-deep);
  letter-spacing: 0.05em;
}
.ft-refer .fineprint-list li strong {
  color: var(--ink);
  font-weight: 500;
}
.ft-refer .fineprint-list li em {
  font-style: italic;
  color: var(--ink);
}
.ft-refer .fineprint-list li a {
  color: var(--brass-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  transition: color 0.2s ease;
}
.ft-refer .fineprint-list li a:hover { color: var(--ink); }
.ft-refer .fineprint-footnote {
  margin-top: 40px;
  font-family: var(--sans); font-style: italic;
  font-size: 0.96rem;
  color: var(--text-mute);
  text-align: center;
}
.ft-refer .fineprint-footnote a {
  color: var(--brass-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  font-style: normal;
  font-weight: 500;
  transition: color 0.2s ease;
}
.ft-refer .fineprint-footnote a:hover { color: var(--ink); }

/* ─── HERO IMAGE SECTION ────────────────────────────────────────────────── */
/* Sits between the Hero (text + credibility card) and §01 (How It Works).
   Editorial brand statement — no caption, the image speaks. Mirrors the
   home page's hero-image-section treatment so the brand feels continuous. */

.ft-refer .hero-image-section {
  padding: 0 0 clamp(56px, 8vw, 120px);
  background: transparent;
}

.ft-refer .hero-image-figure {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 clamp(20px, 4vw, 56px);
}

.ft-refer .hero-image-figure img {
  display: block;
  width: 100%;
  height: auto;
  /* Lock aspect ratio to prevent CLS while the image loads.
     Matches the source webp's native 16:9 ratio (1600x900). */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow:
    0 30px 60px -28px rgba(20, 14, 8, 0.18),
    0 6px 14px -6px rgba(20, 14, 8, 0.08);
}

@media (max-width: 700px) {
  .ft-refer .hero-image-section {
    padding: 0 0 clamp(36px, 9vw, 64px);
  }
  .ft-refer .hero-image-figure {
    padding: 0 16px;
  }
  .ft-refer .hero-image-figure img {
    border-radius: 3px;
    box-shadow:
      0 16px 32px -18px rgba(20, 14, 8, 0.20),
      0 3px 8px -3px rgba(20, 14, 8, 0.08);
  }
}

/* ─── Scroll animations ─────────────────────────────────────────────────── */
.ft-refer .fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft-refer .fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ft-refer section { padding: 80px 24px; }
  .ft-refer .hero { padding: 48px 24px 80px; }
  .ft-refer .faq-aside { position: static; }
  .ft-refer .hero-card { padding: 36px 28px; }
  .ft-refer .rooms-section { padding: 96px 24px; }
  .ft-refer .refer-step { padding: 28px 24px; }
  .ft-refer .refer-share-card { padding: 28px; }
  .ft-refer .refer-share-controls { flex-direction: column; align-items: stretch; }
  .ft-refer .refer-share-btn { justify-content: center; }
  .ft-refer .contact-section { padding: 96px 24px; }
  .ft-refer .contact-form-wrap { padding: 28px 24px; }
  .ft-refer .stat-feature { padding: 80px 24px; }
  .ft-refer .stat-feature-eyebrow { margin-bottom: 28px; }
  .ft-refer .stat-feature-line { margin-bottom: 14px; }
  .ft-refer .fineprint-list li { padding: 20px 0 20px 48px; }
  .ft-refer .fineprint-list li::before { top: 20px; }
  .ft-refer .trust { gap: 14px 28px; padding-top: 28px; }
  .ft-refer .trust .num { font-size: 17px; }
  .ft-refer .reading-time { margin-top: 22px; padding-top: 22px; font-size: 11px; }
}
