/* ==========================================================================
   Charity Buddy · Landing Page
   ========================================================================== */

/* -- Design tokens -------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #101827;
  --navy-2: #1a2236;       /* slightly lighter for layered cards on navy */
  --navy-3: #243049;       /* card border on navy */
  --offwhite: #FAFAF7;
  --cyan: #10ADEA;
  --cyan-hover: #0e9ad1;
  --orange: #F7901E;
  --light-blue: #8BDEFF;
  --white: #ffffff;

  /* Type colors */
  --text-dark: #0f172a;
  --text-muted-dark: #475569;
  --text-on-navy: #e7ecf3;
  --text-muted-on-navy: #97a3b8;

  /* Borders */
  --border-light: #e7e1d3;
  --border-on-navy: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 24px rgba(15, 23, 42, 0.06);
  --shadow-card-navy: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-cta: 0 10px 30px rgba(16, 173, 234, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html, body { height: auto; }
body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* -- Type system -- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: inherit;
}
.h1 { font-size: clamp(40px, 6.4vw, 72px); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); }
.h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.015em; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--text-muted-dark); }
.on-navy .lede { color: var(--text-muted-on-navy); }

/* -- Layout helpers -- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--navy { background: var(--navy); color: var(--text-on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--off { background: var(--offwhite); color: var(--text-dark); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background 280ms var(--ease-out), backdrop-filter 280ms, box-shadow 280ms, border-color 280ms;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container); margin-inline: auto;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 36px; height: 36px; object-fit: contain; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--white);
  transition: color 200ms var(--ease-out);
}
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-on-navy);
  opacity: 0.85;
  transition: opacity 160ms, color 200ms;
}
.nav__links a:hover { opacity: 1; }
.nav__cta { margin-left: 8px; }

/* Sign-in link in nav */
.nav__signin {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-on-navy);
  opacity: 0.9;
  padding: 8px 4px;
  margin-left: 8px;
  white-space: nowrap;
  transition: color 200ms, opacity 200ms;
}
.nav__signin:hover { opacity: 1; color: var(--cyan); }
.nav.is-scrolled .nav__signin { color: var(--text-dark); }
.nav.is-scrolled .nav__signin:hover { color: var(--cyan); }
@media (max-width: 880px) {
  .nav__signin { display: none; }
}

/* Scrolled state · when past hero */
.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-light);
}
.nav.is-scrolled .nav__wordmark { color: var(--text-dark); }
.nav.is-scrolled .nav__links a { color: var(--text-dark); }

/* Mobile nav */
.nav__toggle { display: none; }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    color: var(--white);
  }
  .nav.is-scrolled .nav__toggle { color: var(--text-dark); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 180ms var(--ease-out), background 180ms, color 180ms, box-shadow 220ms;
  will-change: transform;
}
.btn--primary {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(16, 173, 234, 0.28);
}
.btn--primary:hover { background: var(--cyan-hover); transform: scale(1.02); box-shadow: var(--shadow-cta); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--text-on-navy);
  padding: 13px 6px;
  font-weight: 500;
  letter-spacing: 0;
}
.section--off .btn--ghost { color: var(--text-dark); }
.btn--ghost:hover { color: var(--cyan); }
.btn--ghost .arrow { transition: transform 180ms var(--ease-out); }
.btn--ghost:hover .arrow { transform: translateX(3px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn:focus-visible { outline: 3px solid var(--light-blue); outline-offset: 2px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--text-on-navy);
  padding-top: clamp(120px, 14vw, 160px);
  padding-bottom: clamp(80px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* Subtle dot grid for visual texture, hidden behind content */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(139, 222, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(60% 60% at 70% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(60% 60% at 70% 50%, black, transparent 70%);
  z-index: -1;
}
.hero__inner {
  display: grid; gap: clamp(40px, 6vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero__copy { max-width: 620px; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--white);
}
.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-muted-on-navy);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

/* Hero entrance animation hooks (JS-driven) */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.fade-up.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO VISUALIZATION
   ========================================================================== */
.viz {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 520;
  max-width: 560px;
  margin-inline: auto;
}
.viz__svg { width: 100%; height: 100%; overflow: visible; }
.viz-card {
  cursor: default;
  transition: filter 220ms var(--ease-out);
}
.viz-card rect.card-bg {
  fill: var(--navy-2);
  stroke: var(--navy-3);
  stroke-width: 1;
  transition: stroke 220ms, filter 220ms;
}
.viz-card.is-highlight rect.card-bg {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 0 rgba(16, 173, 234, 0));
}
.viz-card text.name { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; fill: var(--white); }
.viz-card text.meta { font-family: var(--font-body); font-weight: 500; font-size: 10.5px; fill: var(--text-muted-on-navy); }
.viz-card .badge {
  font-family: var(--font-body); font-weight: 600; font-size: 8.5px; letter-spacing: 0.06em;
  fill: var(--cyan);
}
.viz-line {
  stroke: var(--light-blue);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.45;
  stroke-linecap: round;
  transition: stroke-width 200ms, opacity 200ms, stroke 200ms;
}
.viz-line.is-highlight {
  stroke: var(--cyan);
  stroke-width: 2.4;
  opacity: 1;
}
.viz-dot {
  fill: var(--orange);
  filter: drop-shadow(0 0 6px rgba(247, 144, 30, 0.6));
}

/* Line draw-in animation: dasharray controlled in JS */
.viz-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.viz-line.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-out); }

/* ==========================================================================
   SOCIAL PROOF STRIP
   ========================================================================== */
.proof {
  padding-block: clamp(48px, 6vw, 72px);
  background: var(--offwhite);
  border-bottom: 1px solid var(--border-light);
}
.proof__label {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted-dark);
  margin-bottom: 28px;
  font-weight: 500;
}
.proof__label strong { color: var(--text-dark); font-weight: 700; }
.proof__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
  align-items: center; justify-items: center;
  filter: grayscale(1) opacity(0.55);
}
.proof__logos svg { height: 24px; width: auto; }
@media (min-width: 720px) {
  .proof__logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .proof__logos { grid-template-columns: repeat(6, 1fr); }
}

/* ==========================================================================
   PROBLEM SECTION · Editorial two-column with massive stat
   ========================================================================== */
.problem {
  position: relative;
}
.problem__grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .problem__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.problem__stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.problem__stat sup {
  font-size: 0.45em;
  font-weight: 700;
  vertical-align: top;
  margin-left: 2px;
}
.problem__stat-caption {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-dark);
  max-width: 360px;
}
.problem__stat-source {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted-dark);
  letter-spacing: 0.04em;
}
.problem__copy h2 { margin-bottom: 22px; }
.problem__copy p + p { margin-top: 16px; }
.problem__copy p { color: var(--text-muted-dark); font-size: 17px; }
.problem__copy strong { color: var(--text-dark); font-weight: 600; }

/* ==========================================================================
   HOW IT WORKS · 4-step flow with field officer app
   ========================================================================== */
.how__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.how__head h2 { color: var(--white); }

.how__steps {
  list-style: none;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  padding: 0;
  counter-reset: step;
}

@media (min-width: 720px) {
  .how__steps {
    grid-template-columns: 1fr 1fr;
  }
  .step--featured { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .how__steps {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
  .step--featured { grid-column: auto; }
}

.step {
  position: relative;
  background: var(--navy-2);
  border: 1px solid var(--border-on-navy);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}
.step__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(16, 173, 234, 0.10);
  color: var(--cyan);
}
.step h3 { color: var(--white); }
.step p { color: var(--text-muted-on-navy); font-size: 15.5px; line-height: 1.55; }
.step p strong { color: var(--white); font-weight: 700; }

/* Step 2 · field officer app, featured */
.step--featured {
  background: linear-gradient(180deg, var(--navy-2), #1f2842);
  border: 1px solid rgba(16, 173, 234, 0.25);
  box-shadow: inset 0 0 0 1px rgba(16, 173, 234, 0.08);
}
.step--featured .step__num { color: var(--cyan); }
.step--featured::before {
  content: "FIELD APP";
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--orange);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(247, 144, 30, 0.12);
  border: 1px solid rgba(247, 144, 30, 0.3);
}
/* ==========================================================================
   FEATURES · legacy (selectors retained but section removed)
   ========================================================================== */
.features__head {
  display: grid; gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.features__head h2 { color: var(--white); }
.features__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  /* Asymmetric layout · top row 60/40, bottom row 40/60 (zigzag) */
  .features__grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas:
      "a a"
      "b b"
      "c c"
      "d d";
  }
  .features__grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas:
      "a b"
      "c d";
  }
  .feature--a { grid-area: a; }
  .feature--b { grid-area: b; }
  .feature--c { grid-area: c; }
  .feature--d { grid-area: d; }
}
@media (min-width: 1100px) {
  .features__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "a a b b"
      "c d d d";
  }
}
.feature {
  background: var(--navy-2);
  border: 1px solid var(--border-on-navy);
  border-radius: var(--r-lg);
  padding: 30px 30px 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
}
.feature__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(16, 173, 234, 0.10);
  color: var(--cyan);
}
.feature h3 { color: var(--white); }
.feature p { color: var(--text-muted-on-navy); font-size: 15.5px; line-height: 1.55; }
.feature::after {
  /* Subtle corner accent */
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(closest-side, rgba(16, 173, 234, 0.10), transparent 70%);
  pointer-events: none;
}
.feature--c::after { background: radial-gradient(closest-side, rgba(247, 144, 30, 0.12), transparent 70%); }

/* ==========================================================================
   DASHBOARD PREVIEW
   ========================================================================== */
.preview { background: var(--offwhite); }
.preview__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.preview__head .eyebrow { color: var(--cyan); }
.preview__frame {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(16, 24, 39, 0.18), 0 4px 12px rgba(16, 24, 39, 0.06);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transform: perspective(1800px) rotateX(0.2deg);
}
.preview__frame svg { display: block; width: 100%; height: auto; }

/* ==========================================================================
   TRUST COLUMNS
   ========================================================================== */
.trust { background: var(--navy); }
.trust__grid {
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
}
.trust__col {
  border-top: 2px solid var(--cyan);
  padding-top: 24px;
}
.trust__col:nth-child(2) { border-top-color: var(--orange); }
.trust__col:nth-child(3) { border-top-color: var(--light-blue); }
.trust__col h3 { color: var(--white); margin-bottom: 14px; }
.trust__col p { color: var(--text-muted-on-navy); font-size: 15.5px; }

/* ==========================================================================
   BY THE NUMBERS · sourced editorial stats band
   ========================================================================== */
.btn-section { background: var(--offwhite); }
.btn-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.btn-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 760px)  { .btn-grid { grid-template-columns: repeat(3, 1fr); } }
.btn-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.btn-card--accent {
  background: var(--navy);
  color: var(--text-on-navy);
  border-color: var(--navy);
}
.btn-card--accent .btn-caption { color: var(--text-on-navy); }
.btn-card--accent .btn-source  { color: var(--text-muted-on-navy); border-top-color: var(--border-on-navy); }
.btn-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}
.btn-stat .pct {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: 0.05em;
  margin-left: 1px;
}
.btn-caption {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 500;
}
.btn-source {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted-dark);
}
.btn-note {
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  color: var(--text-dark);
  max-width: 720px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   TESTIMONIAL (legacy · selectors retained but section removed)
   ========================================================================== */
.tt { background: var(--offwhite); }
.tt__inner { max-width: 980px; margin-inline: auto; text-align: left; }
.tt__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.tt__quote .underline-orange {
  position: relative;
  white-space: nowrap;
}
.tt__quote .underline-orange::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 6px;
  background: var(--orange);
  border-radius: 4px;
  opacity: 0.92;
  z-index: -1;
}
.tt__attr {
  margin-top: 30px;
  display: flex; align-items: center; gap: 14px;
  font-size: 14.5px;
  color: var(--text-muted-dark);
}
.tt__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #3FC8E3, #1456D3);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white);
}
.tt__attr strong { color: var(--text-dark); font-weight: 700; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing { background: var(--offwhite); border-top: 1px solid var(--border-light); }
.pricing__head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 28px; }
.pricing__toggle {
  display: inline-flex; align-items: center; gap: 0;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  margin-bottom: 36px;
}
.pricing__toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted-dark);
  transition: background 200ms, color 200ms;
}
.pricing__toggle button.is-active {
  background: var(--navy);
  color: var(--white);
}
.pricing__toggle .save {
  font-size: 11px;
  margin-left: 6px;
  color: var(--orange);
  font-weight: 700;
}
.pricing__toggle button.is-active .save { color: var(--orange); }

.pricing__grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .pricing__grid { grid-template-columns: repeat(4, 1fr); }
}
.tier {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.tier--featured {
  background: var(--navy);
  color: var(--text-on-navy);
  border-color: var(--navy);
  box-shadow: 0 24px 60px rgba(16, 24, 39, 0.22);
}
.tier__badge {
  position: absolute; top: -12px; left: 22px;
  background: var(--orange); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.tier__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.tier--featured .tier__name { color: var(--white); }
.tier__limit { font-size: 13px; color: var(--text-muted-dark); }
.tier--featured .tier__limit { color: var(--text-muted-on-navy); }
.tier__price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  margin-block: 4px;
}
.tier__price .amount {
  font-size: 40px; font-weight: 800; letter-spacing: -0.025em;
  color: var(--text-dark);
}
.tier--featured .tier__price .amount { color: var(--white); }
.tier__price .unit { font-size: 13px; color: var(--text-muted-dark); }
.tier--featured .tier__price .unit { color: var(--text-muted-on-navy); }
.tier__implied { font-size: 12px; color: var(--text-muted-dark); }
.tier--featured .tier__implied { color: var(--text-muted-on-navy); }
.tier__features { display: grid; gap: 10px; margin-top: 6px; }
.tier__features li {
  font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-muted-dark);
}
.tier--featured .tier__features li { color: var(--text-on-navy); }
.tier__features li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 2px;
  background-color: var(--cyan);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9.55 17.6 4 12.05l1.4-1.4 4.15 4.15 9.05-9.05 1.4 1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9.55 17.6 4 12.05l1.4-1.4 4.15 4.15 9.05-9.05 1.4 1.4z'/></svg>") center / contain no-repeat;
}
.tier__cta { margin-top: auto; }
.tier__cta .btn { width: 100%; justify-content: center; }
.tier--featured .tier__cta .btn--ghost { color: var(--white); }

.enterprise {
  margin-top: 22px;
  background: linear-gradient(120deg, var(--offwhite), #fff8e9 70%);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .enterprise { grid-template-columns: 1fr auto; }
}
.enterprise__copy h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.enterprise__copy p { font-size: 14px; color: var(--text-muted-dark); margin-top: 4px; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta {
  background: var(--navy);
  color: var(--text-on-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 15% 80%, rgba(16, 173, 234, 0.18), transparent 70%),
    radial-gradient(30% 50% at 85% 20%, rgba(247, 144, 30, 0.14), transparent 70%);
  z-index: -1;
}
.cta__inner { max-width: 820px; margin-inline: auto; }
.cta h2 { color: var(--white); margin-bottom: 18px; }
.cta .lede { margin-bottom: 32px; color: var(--text-muted-on-navy); }
.cta__small {
  margin-top: 18px; font-size: 13px; color: var(--text-muted-on-navy);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy);
  color: var(--text-muted-on-navy);
  padding-block: 56px 32px;
  border-top: 1px solid var(--border-on-navy);
}
.footer__grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer__brand img { width: 160px; height: auto; }
.footer__tag { font-size: 14px; line-height: 1.55; color: var(--text-muted-on-navy); }
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { font-size: 14px; color: var(--text-muted-on-navy); }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-start; justify-content: space-between;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--border-on-navy);
  font-size: 13px;
}
@media (min-width: 720px) {
  .footer__bottom { flex-direction: row; align-items: center; }
}
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted-on-navy);
  transition: background 200ms, color 200ms;
}
.footer__socials a:hover { background: rgba(255,255,255,0.10); color: var(--white); }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   FOCUS & A11Y
   ========================================================================== */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.nav__links a:focus-visible { outline-color: var(--light-blue); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 14px;
  background: var(--cyan); color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 200; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .reveal { opacity: 1 !important; transform: none !important; }
  .viz-line { stroke-dashoffset: 0 !important; }
}
