/* Health Defender — Design Tokens (DARK v3)
   Import into any page:  <link rel="stylesheet" href="tokens.css">

   DARK THEME NOTES
   --------------------------------------------------------------
   - Semantic token names (--paper, --ink, --surface, etc.) are retained so
     existing section CSS continues to work. Only the *values* changed.
   - Two dark surface levels:
       --paper      = page base (deepest)
       --paper-alt  = alternating section (very subtle lift)
       --paper-tint = proof / card sections (clearest clinical elevation)
   - Text opacities follow the dark-UI playbook:
       primary  90-95% white
       soft     72%
       muted    48%
   - Lime (#97F500) is the single accent and earns its keep on dark —
     used on CTAs (dark text on lime), eyebrows, hairlines, glows.
   - Navy tokens are preserved for occasional blue moments (icons, medical
     cues) but never used as section backgrounds now; the page IS darker
     than navy.
   --------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cinzel:wght@600;700&display=swap");

:root {
  /* Color — surfaces (dark, "almost pure black" tier).
     Three tiers with only ~3% luminance spread — reads as black everywhere,
     sculpting only kicks in where surfaces meet (trust strip, physicians,
     testimonials, footer). Pure #000 was rejected because it flattens a
     long scroll and makes lime buzz too hot. */
  --paper:       #030509;   /* page base, almost pure black */
  --paper-alt:   #05080F;   /* alternating section, whisper of lift */
  --paper-tint:  #080D17;   /* proof / credentials card, most elevated */
  --surface:     #080D17;   /* default card surface */
  --surface-hi:  #0B1220;   /* hovered / focused card surface */
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Color — ink (text on dark). Always white-based; opacities tuned for
     AA contrast on --paper. Never drop primary below 0.90 — that's the
     line where 40+ eyes start to struggle with backlit dark text. */
  --ink:         rgba(255, 255, 255, 0.95);
  --ink-soft:    rgba(255, 255, 255, 0.72);
  --ink-muted:   rgba(255, 255, 255, 0.48);
  --ink-inverse: #05080F;   /* for text ON accent (dark ink on lime CTA) */

  /* Color — brand (kept, de-prioritized). Navy is no longer a section
     background; it survives as a support color for medical iconography
     and the occasional data-viz moment. */
  --navy:              #2E456C;
  --navy-ink:          #1E2E4E;
  --medical-blue:      #6BA8D1;
  --brand-blue:        #5A9CCC;
  --brand-blue-hover:  #4585B4;
  --brand-blue-soft:   rgba(90, 156, 204, 0.16);

  /* Color — accent (lime, the single hero accent on dark).
     --accent        = base lime, the money color
     --accent-soft   = lighter lime for soft fills / subtle hairlines
     --accent-deep   = muted lime for secondary accents where #97F500 is too loud
     --accent-glow   = rgba of --accent at 35% for button glow / focus rings */
  --accent:         #97F500;
  --accent-soft:    #BEF87A;
  --accent-deep:    #6FBC00;
  --accent-tint:    rgba(151, 245, 0, 0.08);
  --accent-glow:    rgba(151, 245, 0, 0.35);

  /* Type — Inter (variable 400-800) + Cinzel (wordmark only). */
  --font-display:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-wordmark: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;

  /* Size scale — body bumped +1px on dark vs light (17 → 18). Backlit dark
     text reads smaller than it is; this keeps the 40+ demo comfortable. */
  --fs-eyebrow: 12px;
  --fs-caption: 13px;
  --fs-body:    18px;
  --fs-lead:    20px;
  --fs-h3:      19px;
  --fs-h2:      clamp(28px, 3.2vw, 42px);
  --fs-h1:      clamp(34px, 4.6vw, 60px);
  --fs-display: clamp(52px, 7.5vw, 104px);

  --tr-eyebrow: 0.24em;
  --tr-display: -0.02em;
  --tr-heading: -0.01em;
  --tr-button:  0.04em;

  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-body:    1.6;

  /* Spacing (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* Radii */
  --radius-badge:  6px;
  --radius-card:   8px;
  --radius-input:  8px;
  --radius-pill:   999px;

  /* Elevation — on dark, box-shadows read as a thin 1px inner line of light
     (subtle white border-top on elevated surfaces) rather than classic drop
     shadows. Those are what make dark UI feel "sculpted" vs "flat." */
  --shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 18px 42px rgba(0, 0, 0, 0.45);
  --shadow-accent:
    0 0 0 1px rgba(151, 245, 0, 0.18),
    0 10px 28px rgba(151, 245, 0, 0.22);

  /* Layout */
  --container-prose:   960px;
  --container-default: 1200px;
  --container-wide:    1440px;
  --gutter:            clamp(16px, 3vw, 48px);

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 140ms;
  --dur-med:  220ms;
}

/* Reset-ish defaults ---------------------------------------------- */
html { box-sizing: border-box; background: var(--paper); }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* Selection — lime pop on dark. */
::selection { background: var(--accent); color: var(--ink-inverse); }

/* Display / heading helpers --------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--ink    { color: var(--ink-soft); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
  opacity: 0.85;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tr-display);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  color: var(--ink);
}
.h1, .h2 {
  font-family: var(--font-display);
  letter-spacing: var(--tr-heading);
  line-height: var(--lh-snug);
  color: var(--ink);
}
.h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: var(--tr-display); }
.h2 { font-size: var(--fs-h2); font-weight: 700; }
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}

/* Wordmark — Cinzel survives only for the "Fitness Defender" moments
   and the nav-logo fallback. Small-caps + wide-tracked brand treatment. */
.wordmark {
  font-family: var(--font-wordmark);
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Tabular numerals on price / duration / numeric display moments. */
.hero__price,
.stakes__number,
.btn {
  font-variant-numeric: tabular-nums;
}
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: var(--lh-body); }
.meta { font-size: var(--fs-caption); color: var(--ink-muted); }

/* Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--tr-button);
  text-transform: none;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
/* Primary CTA: flat lime, dark ink. Highest-contrast pop on dark.
   No gradient — saturation + contrast do the work, not shading. */
.btn--primary {
  background: var(--accent);
  color: var(--ink-inverse);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-soft);
  box-shadow:
    0 0 0 1px rgba(151, 245, 0, 0.28),
    0 14px 36px rgba(151, 245, 0, 0.32);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(1px); }
.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* Trust chip / category tag -------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-badge);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-badge);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
}

/* Card ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  color: var(--ink);
}
.card:hover {
  background: var(--surface-hi);
  border-color: var(--line-strong);
}

/* Disclaimer band — now an elevated dark panel, not navy-on-white. */
.disclaimer-band {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  padding: var(--sp-6) var(--gutter);
}
.disclaimer-band .h2 { color: var(--ink); }

/* Utility ---------------------------------------------------------- */
.container { max-width: var(--container-default); margin: 0 auto; padding-inline: var(--gutter); }
.container--prose { max-width: var(--container-prose); }
.container--wide { max-width: var(--container-wide); }
.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
