/* ============================================================
   LitLion MD — Shared Stylesheet
   Clinical Blue theme - matches admin portal
   ============================================================ */

/* Inter is the body/UI face. Fraunces (display numerals, .hero-meta .k, .price,
   .trust-item .ti-k) and IBM Plex Mono (eyebrows, .step-n, .footer-col headings)
   are both declared further down this file but were never imported, so every
   rule naming them silently fell back to generic serif/monospace. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fraunces:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #111827;
  --navy-2: #1f2937;
  --navy-deep: #0b1220;
  --gold: #1f5fbf;
  --gold-bright: #5b9bd5;
  --paper: #f3f5f8;
  --paper-2: #f6f8fa;
  --ink: #111827;
  --ink-soft: #6b7280;
  --line: #d9dfe7;
  --line-navy: rgba(31, 95, 191, 0.15);
  --white: #ffffff;
  --primary: #1f5fbf;
  --primary-strong: #174a9c;

  --maxw: 1160px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(31, 95, 191, 0.08);
  --shadow-lg: 0 2px 6px rgba(17, 24, 39, 0.06), 0 20px 50px rgba(31, 95, 191, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
}
.eyebrow--center { text-align: center; display: block; }

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { color: var(--ink-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }

/* ---------- Tagline signature ---------- */
.tagline {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.01em;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  width: 36px; height: 36px;
  display: none;
}
.brand-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-name b { color: var(--gold); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--gold { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(31, 95, 191, 0.2); }
.btn--gold:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(31, 95, 191, 0.3); }
.btn--navy { background: var(--navy); color: white; }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(31, 95, 191, 0.03); }
.btn--ghost-light { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at top right, rgba(31, 95, 191, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 100px 0 110px; }
.hero h1 { color: white; max-width: 20ch; }
.hero h1 .accent { color: var(--gold-bright); }
.hero .lead { color: rgba(255,255,255,0.85); margin-top: 24px; }
.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-tag { margin-top: 44px; font-size: 1.05rem; color: rgba(255,255,255,0.7); }

.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-meta div { padding: 20px 22px; border-right: 1px solid var(--line-navy); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta .k {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-meta .v {
  font-size: 0.82rem;
  color: rgba(247,245,240,0.7);
  margin-top: 8px;
  display: block;
}

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section-head { max-width: 56ch; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; color: var(--navy); }
.section-head p { margin-top: 14px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-paper2 { background: var(--paper-2); }
.bg-navy { background: var(--navy); color: white; }
.bg-navy h2 { color: white; }
.bg-navy p { color: rgba(255,255,255,0.85); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); margin-bottom: 10px; }
.card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

/* ---------- How it works (process steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step { padding: 30px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step-n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.step h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }

/* ============================================================
   DIFFERENTIATOR / VS TABLE
   ============================================================ */
.vs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.vs-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.vs-row h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.vs-row .against {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
  display: block;
}

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card--feature {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card--feature h3 { color: var(--white); }
.price-card--feature .price { color: var(--gold); }
.price-card--feature .price-sub,
.price-card--feature li { color: rgba(247,245,240,0.82); }
.price-flag {
  position: absolute;
  top: -11px; left: 30px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
}
.price-card h3 { color: var(--navy); font-size: 1.25rem; }
.price-tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.price {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.price small { font-size: 1rem; color: var(--ink-soft); font-family: 'Inter'; font-weight: 500; }
.price-sub { font-size: 0.9rem; margin: 12px 0 22px; }
.price-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-card li { font-size: 0.92rem; padding-left: 26px; position: relative; }
.price-card li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}
.price-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 30px;
  font-style: italic;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { text-align: left; padding: 24px; border: 1px solid var(--line-navy); border-radius: var(--radius); }
.trust-item .ti-k { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--gold); margin-bottom: 6px; }
.trust-item .ti-v { font-size: 0.86rem; color: rgba(247,245,240,0.72); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(201,160,92,0.12), transparent 60%),
    var(--navy-deep);
  color: var(--paper);
  border-radius: 6px;
  padding: 60px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); max-width: 22ch; margin: 0 auto 16px; }
.cta-banner p { color: rgba(247,245,240,0.78); max-width: 50ch; margin: 0 auto 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247,245,240,0.7);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line-navy);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { color: rgba(247,245,240,0.6); margin-top: 14px; max-width: 36ch; font-size: 0.9rem; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a { display: block; color: rgba(247,245,240,0.7); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; transition: color 0.18s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line-navy);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(247,245,240,0.5);
}

/* ---------- Flag for Ryan: claims to verify ---------- */
.verify-flag {
  background: rgba(201,160,92,0.08);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
}
.verify-flag strong { color: var(--navy); }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
  padding: 80px 0 72px;
}
.page-head h1 { color: white; max-width: 22ch; }
.page-head .lead { color: rgba(255,255,255,0.85); margin-top: 20px; }

/* ============================================================
   FAQ / PROSE
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; }
.prose p { margin-bottom: 18px; max-width: 68ch; }
.prose h2 { color: var(--navy); margin: 40px 0 16px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { color: var(--ink-soft); margin-bottom: 8px; }

/* ============================================================
   FORM
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,160,92,0.15);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* This block used to be `.nav-links { display: none }` + `.nav-toggle
     { display: block }`, but no page ever contained a .nav-toggle element —
     so on any screen under 860px the article pages lost their navigation
     entirely with nothing to bring it back. The toggle button now exists in
     the markup and drives .is-open (see article.js). The CTA is the last
     nav item and stays visible at all widths. */
  .nav-links li:not(:last-child) { display: none; }
  .nav-links.is-open {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: var(--paper); padding: 20px 28px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open li:not(:last-child) { display: block; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .price-grid, .steps, .hero-meta, .trust, .footer-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta div { border-right: 0; border-bottom: 1px solid var(--line-navy); }
  .hero-meta div:last-child, .step:last-child { border-bottom: 0; }
  .cta-banner { padding: 40px 26px; }
  .section { padding: 60px 0; }
  .form-card { padding: 26px; }
}

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

/* keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
