/* ============================================================
   MedBill Auditor — shared stylesheet
   Fonts: Clash Display (Fontshare), Hanken Grotesk + Geist Mono (Google)
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --green:        #00A676;
  --green-light:  #16C68E;
  --green-glow:   rgba(0, 166, 118, 0.18);
  --black:        #0D0D0D;
  --charcoal:     #1A1A2E;
  --charcoal-2:   #12122A;
  --gold:         #F4C542;
  --gold-dim:     rgba(244, 197, 66, 0.15);
  --red:          #E63946;
  --red-dim:      rgba(230, 57, 70, 0.12);
  --white:        #F8F9FA;
  --white-60:     rgba(248, 249, 250, 0.6);
  --white-30:     rgba(248, 249, 250, 0.3);
  --white-10:     rgba(248, 249, 250, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-green: rgba(0, 166, 118, 0.3);

  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-mono:    'Geist Mono', monospace;

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       0.55s;
  --max-w:     1160px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric background layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 75% -5%,  rgba(0, 166, 118, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 15% 95%,  rgba(244, 197, 66, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 50%,  rgba(0, 166, 118, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Faint grid that fades out */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page-wrap { position: relative; z-index: 1; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem);  letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--green-light);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white-60);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-60);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black) !important;
  background: var(--green);
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--green-light) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 64px;
    flex-direction: column;
    justify-content: center;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(20px);
    gap: 2.5rem;
    font-size: 1.3rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateX(0);
    pointer-events: all;
  }
  .nav-links a { color: var(--white); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-headline { margin-bottom: 1.5rem; }
.hero-headline em {
  font-style: normal;
  color: var(--green-light);
}
.hero-lead { margin-bottom: 2.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 166, 118, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-60);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.hero-trust {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-30);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-eyebrow, .hero-lead { margin-inline: auto; }
  .hero-eyebrow { display: flex; justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
}

/* ── Bill Widget ─────────────────────────────────────────── */
.bill-widget-wrap {
  position: relative;
}
.bill-widget-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,166,118,0.12), transparent 70%);
  pointer-events: none;
}

.bill-widget {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #16162e 0%, #0f1225 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(0,166,118,0.12),
    0 24px 80px rgba(0,0,0,0.5),
    0 2px 12px rgba(0,0,0,0.3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.bill-header {
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.bill-provider {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.bill-meta { color: var(--white-30); font-size: 0.7rem; }

.bill-cols {
  display: grid;
  grid-template-columns: 68px 1fr 80px 28px;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  color: var(--white-30);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bill-row {
  display: grid;
  grid-template-columns: 68px 1fr 80px 28px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.25s, opacity 0.25s;
  opacity: 0.5;
}
.bill-row .code { color: var(--white-60); }
.bill-row .desc { color: var(--white-60); font-size: 0.75rem; }
.bill-row .amount { text-align: right; color: var(--white); }
.bill-row .status-icon { text-align: center; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; }

.bill-row.scanned { opacity: 1; }

.bill-row.clean {
  background: rgba(0, 166, 118, 0.07);
}
.bill-row.clean .status-icon {
  opacity: 1;
  color: var(--green-light);
}
.bill-row.clean .status-icon::after { content: '✓'; }

.bill-row.flagged {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.2);
}
.bill-row.flagged .code,
.bill-row.flagged .desc { color: var(--red); }
.bill-row.flagged .amount { color: var(--red); }
.bill-row.flagged .status-icon {
  opacity: 1;
  color: var(--red);
}
.bill-row.flagged .status-icon::after { content: '⚑'; }

.bill-flag-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
  opacity: 0;
  transition: opacity 0.3s 0.15s;
  white-space: nowrap;
}
.bill-row.flagged .bill-flag-label { opacity: 1; }

/* Scan line */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green-light) 40%, var(--green-light) 60%, transparent 100%);
  box-shadow: 0 0 12px 4px rgba(22, 198, 142, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

@keyframes scanDown {
  0%   { top: 80px; opacity: 1; }
  92%  { opacity: 0.9; }
  100% { top: calc(100% - 80px); opacity: 0; }
}

.bill-widget.scanning .scan-line {
  animation: scanDown 1.8s var(--ease) forwards;
}

.bill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.total-charged { color: var(--white-60); font-size: 0.75rem; }
.total-charged strong { color: var(--white); }
.recovery-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.recovery-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.recovery-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  min-width: 80px;
  text-align: right;
}

/* ── Stats Strip ─────────────────────────────────────────── */
.stats-strip {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green-light);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--white-60);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section headers ─────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--white-60); max-width: 56ch; }

/* ── Problem Cards ───────────────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.problem-card {
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}
.problem-card:hover {
  border-color: rgba(230,57,70,0.3);
  transform: translateY(-3px);
}
.problem-icon {
  width: 44px;
  height: 44px;
  background: var(--red-dim);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.problem-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.problem-card p  { font-size: 0.9rem; color: var(--white-60); }

@media (max-width: 768px) { .problems-grid { grid-template-columns: 1fr; } }

/* ── How-it-works preview ────────────────────────────────── */
.how-preview-section { background: rgba(26, 26, 46, 0.3); }
.steps-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps-preview::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.3% + 1rem);
  right: calc(33.3% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent 45%, transparent 55%, var(--green));
  pointer-events: none;
}
.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}
.step-card:hover {
  border-color: var(--border-green);
  transform: translateY(-3px);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--green-light);
  margin-bottom: 1rem;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.875rem; color: var(--white-60); }

@media (max-width: 768px) {
  .steps-preview { grid-template-columns: 1fr; }
  .steps-preview::before { display: none; }
}

/* ── Privacy trust strip ─────────────────────────────────── */
.trust-section {
  background: rgba(0, 166, 118, 0.04);
  border-top: 1px solid var(--border-green);
  border-bottom: 1px solid var(--border-green);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.trust-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  background: rgba(0,166,118,0.1);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item h4 { font-size: 0.95rem; }
.trust-item p  { font-size: 0.8rem; color: var(--white-60); }

@media (max-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}
.pricing-card {
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(0,166,118,0.12) 0%, rgba(0,166,118,0.04) 100%);
  border-color: var(--border-green);
  box-shadow: 0 0 0 1px var(--border-green), 0 20px 60px rgba(0,166,118,0.15);
}
.pricing-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.pricing-price sub {
  font-size: 1rem;
  font-weight: 500;
  vertical-align: super;
  font-family: var(--font-body);
}
.pricing-cadence {
  font-size: 0.8rem;
  color: var(--white-60);
  margin-bottom: 1.5rem;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--white-60);
}
.pricing-features li::before {
  content: '✓';
  color: var(--green-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.final-cta h2 { margin-bottom: 1.25rem; }
.final-cta p  { color: var(--white-60); max-width: 52ch; margin-inline: auto; margin-bottom: 2.5rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  background: rgba(13,13,13,0.6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--white-60);
  max-width: 24ch;
  margin-bottom: 1rem;
}
.footer-contact a {
  display: block;
  font-size: 0.8rem;
  color: var(--white-30);
  transition: color 0.2s;
  margin-bottom: 0.25rem;
}
.footer-contact a:hover { color: var(--green-light); }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--white-60);
  transition: color 0.2s;
  margin-bottom: 0.6rem;
}
.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--white-30);
  line-height: 1.6;
  max-width: 80ch;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--white-30);
}
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--white-60); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Reveal animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── How It Works page ───────────────────────────────────── */
.hiw-hero {
  padding-top: 140px;
  padding-bottom: 4rem;
}
.hiw-hero h1 { margin-block: 1rem; max-width: 18ch; }

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.hiw-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.hiw-step-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green-light);
  opacity: 0.3;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hiw-step-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.hiw-step-content p  { color: var(--white-60); max-width: 56ch; margin-bottom: 1rem; }

.hiw-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.hiw-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--white-60);
}
.hiw-detail-list li::before {
  content: '→';
  color: var(--green-light);
  flex-shrink: 0;
}

.hiw-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 1rem;
}

.hiw-callout {
  background: rgba(0, 166, 118, 0.07);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}
.hiw-callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.hiw-callout p { font-size: 0.875rem; color: var(--white-60); margin: 0; }

@media (max-width: 640px) {
  .hiw-step { grid-template-columns: 1fr; }
  .hiw-step-num { font-size: 2.5rem; opacity: 0.5; }
}

/* ── Legal pages (privacy, terms) ────────────────────────── */
.legal-hero {
  padding-top: 140px;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-block: 0.75rem; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-30);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
  padding-block: 3rem;
}

.legal-toc {
  position: sticky;
  top: 90px;
}
.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.legal-toc ol li a {
  display: block;
  font-size: 0.82rem;
  color: var(--white-60);
  padding: 0.35rem 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 0 6px 6px 0;
}
.legal-toc ol li a:hover {
  color: var(--green-light);
  border-left-color: var(--green-light);
}

.legal-content { min-width: 0; }
.legal-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.legal-section h2 .sec-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green-light);
  background: rgba(0,166,118,0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.legal-section p {
  font-size: 0.925rem;
  color: var(--white-60);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.legal-section ul,
.legal-section ol {
  margin-left: 1.25rem;
  margin-bottom: 0.9rem;
}
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li {
  font-size: 0.925rem;
  color: var(--white-60);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-block: 1.25rem;
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--white-10);
}
.legal-table td {
  padding: 0.8rem 1rem;
  color: var(--white-60);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: var(--white-10); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-green { color: var(--green-light); }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--red); }

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scan-line { display: none; }
}
