/* ===============================================================
   CitelyMed — landing page styles
   Visual skeleton: Mist (minimal, huge whitespace, narrow column).
   Content DNA: PharmaGEO (data widgets, leaderboard, stat blocks).
   =============================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --navy:      #0c2c66;
  --accent:    #1c5fd6;
  --accent-2:  #2f74ef;
  --bg:        #f4f8fe;
  --white:     #ffffff;
  --slate:     #5b6470;
  --ink:       #1a2230;
  --line:      #e3ebf6;

  /* Tier colors (subtle) */
  --tier-leader:     #1c5fd6;
  --tier-strong:     #2f9e7a;
  --tier-average:    #8a7320;
  --tier-challenger: #8a8f99;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  /* Spacing rhythm */
  --section-pad: 180px;   /* desktop vertical breathing room */
  --maxw-narrow: 720px;
  --maxw-wide:   1080px;
  --radius:      18px;
  --radius-sm:   10px;
  --shadow-card: 0 30px 70px -32px rgba(12, 44, 102, 0.28);
  --shadow-soft: 0 18px 50px -28px rgba(12, 44, 102, 0.22);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding-inline: 24px;
}
.container-narrow { max-width: var(--maxw-narrow); }
.container-wide   { max-width: var(--maxw-wide); }

/* ---------- Wordmark + glyph ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
}
.wordmark-text {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
.wordmark-text strong { color: var(--accent); font-weight: 700; }
.wordmark-sm .wordmark-text { font-size: 16px; }

.glyph rect { fill: var(--accent); }
.glyph rect:nth-child(1) { fill: #9db8e8; }
.glyph rect:nth-child(2) { fill: #5e8ae0; }
.glyph rect:nth-child(3) { fill: var(--accent); }
.glyph rect:nth-child(4) { fill: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(28, 95, 214, 0.7);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(28, 95, 214, 0.75);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: #c9d8f0;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Shared section type ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 22px;
}
.eyebrow.accent { color: var(--accent); }

.display {
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--navy);
}

.lede {
  margin-top: 26px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--slate);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--navy);
}
.section-title.centered { text-align: center; }

.section-sub {
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--slate);
  max-width: 60ch;
}
.centered + .section-sub { margin-inline: auto; text-align: center; }

/* Mist-style understated caption under a visual */
.caption-under {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--slate);
  letter-spacing: -0.01em;
}

/* ===============================================================
   TOP BAR
   =============================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(244, 248, 254, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(227, 235, 246, 0.7);
}

/* ===============================================================
   ATMOSPHERIC GRADIENT (the Mist "hand background" equivalent)
   Soft, abstract blue → white. Used behind hero + closing CTA.
   =============================================================== */
.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(28, 95, 214, 0.16) 0%, rgba(28, 95, 214, 0) 55%),
    radial-gradient(90% 60% at 12% 8%,  rgba(47, 116, 239, 0.12) 0%, rgba(47, 116, 239, 0) 50%),
    radial-gradient(90% 70% at 90% 18%, rgba(12, 44, 102, 0.10) 0%, rgba(12, 44, 102, 0) 55%),
    linear-gradient(180deg, #eaf2fe 0%, var(--bg) 60%, var(--bg) 100%);
}

/* ===============================================================
   ANNOUNCEMENT STRIP (above the sticky bar; scrolls away)
   =============================================================== */
.announce {
  background: linear-gradient(90deg, var(--navy), #16407f);
  color: #cfe0fb;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 9px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.4;
}
.announce-inner p { color: #cfe0fb; }
.announce-inner strong { color: #fff; font-weight: 600; }
.announce-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 9px;
  flex: none;
}

/* ---------- Top bar actions ---------- */
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--accent); }

/* ===============================================================
   1 · HERO — centered (Mist), with a simulated AI-answer visual
   =============================================================== */
.hero {
  position: relative;
  padding-top: clamp(60px, 8vh, 96px);
  padding-bottom: clamp(64px, 9vh, 104px);
  overflow: hidden;
  text-align: center;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .cta-row { margin-top: 38px; }

.container-mid { max-width: 760px; }

/* ---------- Simulated AI answer panel (hero visual) ---------- */
.answer-mock {
  margin: 60px auto 0;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.answer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.answer-q-icon { display: inline-flex; color: var(--accent); margin-top: 1px; flex: none; }
.answer-q-icon svg { width: 20px; height: 20px; }
.answer-q {
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.answer-engines {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 3vw, 28px) 0;
}
.ae-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.ae-tab.is-active {
  color: var(--accent);
  border-color: rgba(28, 95, 214, 0.35);
  background: rgba(28, 95, 214, 0.06);
}
.answer-body { padding: 18px clamp(20px, 3vw, 28px) 4px; }
.answer-body > p { font-size: 15px; color: var(--slate); }
.answer-cites {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cite {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cite-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4d2e8; flex: none; }
.cite-you {
  border-color: rgba(28, 95, 214, 0.4);
  background: rgba(28, 95, 214, 0.05);
  font-weight: 600;
  color: var(--navy);
}
.cite-check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
}
.cite-flag {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(28, 95, 214, 0.1);
  border-radius: 999px; padding: 3px 9px;
  white-space: nowrap;
}
.answer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(20px, 3vw, 28px);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--slate);
}
.answer-foot strong { color: var(--navy); }
.answer-trend { font-weight: 700; color: var(--tier-strong); font-variant-numeric: tabular-nums; }
.answer-trend.gap { color: #c0492f; }

/* Gap (not-cited) row in the answer mock */
.cite-missing {
  border-color: rgba(192, 73, 47, 0.4);
  background: rgba(192, 73, 47, 0.05);
  font-weight: 600;
  color: #8a3a2a;
}
.cite-x {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: #c0492f; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.flag-gap { color: #c0492f; background: rgba(192, 73, 47, 0.1); }

/* "you" marker on the focal brand's leaderboard row */
.lb-you {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(28, 95, 214, 0.1);
  border-radius: 999px; padding: 2px 7px;
  margin-left: 8px;
}

/* ===============================================================
   2 · REPUTATION CONSOLE (horizontal recompose of the snapshot)
   =============================================================== */
.console-section { padding-block: var(--section-pad); }
.console-section .section-title,
.console-section .section-sub { text-align: center; }
.console-section .section-sub { margin-inline: auto; margin-bottom: 56px; }

.console {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.console-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.console-label strong { color: var(--slate); font-weight: 500; }

.console-grid {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 40px) clamp(20px, 3vw, 32px);
}
.console-ring { display: flex; justify-content: center; }
.console-metrics { display: grid; gap: 16px; min-width: 0; }
.console-engines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.console-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* ---- shared dashboard atoms (used by the console) ---- */
.snapshot-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tier-strong);
  box-shadow: 0 0 0 4px rgba(47, 158, 122, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.tier-badge {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tier-strong);
  background: rgba(47, 158, 122, 0.12);
  border-radius: 999px; padding: 5px 12px;
  white-space: nowrap;
}
.badge-average {
  color: var(--tier-average);
  background: rgba(138, 115, 32, 0.12);
}

/* Circular score ring */
.ring { position: relative; width: 150px; height: 150px; flex: none; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 12; }
.ring-fill {
  fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round;
  /* C = 2·π·78 ≈ 490; start empty, JS sweeps to target */
  stroke-dasharray: 490; stroke-dashoffset: 490;
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-score {
  font-size: 48px; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ring-cap {
  margin-top: 4px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate);
}

/* Sub-metric progress bars */
.bar-top {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 8px;
}
.bar-label { font-size: 14px; color: var(--slate); }
.bar-val {
  font-size: 16px; font-weight: 700; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.bar-track { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
/* fill animates once the console scrolls into view */
.is-visible .bar-fill { width: var(--w); }
.fill-purple { background: linear-gradient(90deg, #7c5cff, #9b86ff); }
.fill-blue   { background: linear-gradient(90deg, var(--accent), #5e8ae0); }
.fill-green  { background: linear-gradient(90deg, #2f9e7a, #58c39e); }

/* Per-engine score chips */
.echip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 14px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.echip-ic { display: inline-flex; }
.echip-ic svg { width: 16px; height: 16px; }
.echip-score {
  margin-top: 5px; font-size: 22px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.echip-name { font-size: 12px; color: var(--slate); }

/* Trending atoms — now inline in the console footer */
.trending-key {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 10px; font-weight: 700; color: var(--slate); flex: none;
}
.trending-q {
  flex: 1 1 240px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.35;
}
.trend-tag {
  font-size: 12px; font-weight: 700; color: #c2611f;
  background: rgba(240, 150, 40, 0.14);
  border-radius: 999px; padding: 4px 11px; flex: none;
}

/* ===============================================================
   ENGINES WE AUDIT — coverage strip (repositioned, relabelled)
   =============================================================== */
.coverage {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 30px;
}
.coverage-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
}
.coverage-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.coverage-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 30px);
}
.coverage-list li { display: inline-flex; align-items: center; gap: 8px; }
.coverage-list li svg { width: 18px; height: 18px; flex: none; }
.coverage-list li span {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ---------- Hero / console responsive ---------- */
@media (max-width: 820px) {
  .console-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: stretch;
  }
  .console-ring { order: -1; }
  .console-metrics, .console-engines { width: 100%; max-width: 460px; margin-inline: auto; }
  .console-engines { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .answer-mock { margin-top: 44px; }
  .answer-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cite-flag { display: none; }
  .console-engines { grid-template-columns: repeat(2, 1fr); }
}

/* ===============================================================
   3 · CITATION-SHARE LEADERBOARD (auto-scroll marquee)
   =============================================================== */
.leaderboard-section { padding-bottom: var(--section-pad); }
.leaderboard-section .section-title { text-align: center; }
.leaderboard-section .section-sub {
  margin-inline: auto;
  text-align: center;
  margin-bottom: 46px;
}

.ticker {
  position: relative;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ticker-track {
  /* Animation set in JS-friendly class; duration via CSS var */
  animation: scroll-up var(--ticker-duration, 32s) linear infinite;
}
/* Pause on hover or keyboard focus */
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

@keyframes scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); } /* list is duplicated → seamless */
}

.ticker-list { list-style: none; margin: 0; padding: 0; }

.lb-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.lb-name {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lb-share {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: right;
}
.lb-trend {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: right;
}
.lb-trend.up   { color: var(--tier-strong); }
.lb-trend.down { color: #c0492f; }
.lb-trend.flat { color: var(--tier-challenger); }

.lb-tier {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  min-width: 92px;
  text-align: center;
}
.tier-leader     { color: var(--tier-leader);     background: rgba(28, 95, 214, 0.1); }
.tier-strong     { color: var(--tier-strong);     background: rgba(47, 158, 122, 0.12); }
.tier-average    { color: var(--tier-average);    background: rgba(138, 115, 32, 0.12); }
.tier-challenger { color: var(--tier-challenger); background: rgba(138, 143, 153, 0.14); }

/* ===============================================================
   4 · WHY GEO MATTERS — STAT BAND
   =============================================================== */
.stat-section {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: var(--section-pad);
}
.stat-section .section-title,
.stat-section .section-sub { text-align: center; }
.stat-section .section-sub { margin-inline: auto; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: clamp(52px, 8vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-text {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink);
  max-width: 30ch;
  margin-inline: auto;
}
.stat-source {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--slate);
  opacity: 0.85;
}

/* ===============================================================
   5 · PRODUCT WALKTHROUGH (Mist stacked frames)
   =============================================================== */
.walkthrough { padding-block: var(--section-pad); }
.walkthrough .section-title { margin-bottom: 110px; }

.feature {
  margin: 0 0 var(--section-pad);
  text-align: center;
}
.feature:last-child { margin-bottom: 0; }

.feature-cap {
  margin-top: 40px;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.45;
  color: var(--slate);
  max-width: 38ch;
  margin-inline: auto;
  letter-spacing: -0.01em;
}
.feature-step {
  color: var(--navy);
  font-weight: 700;
  margin-right: 6px;
}

/* --- Placeholder product mockups (replaced with real screenshots) --- */
.mockup {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
}
.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mockup-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d4deee;
}
.mockup-body { padding: 30px clamp(22px, 4vw, 40px); min-height: 230px; }

/* generic skeleton bits */
.mk-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e9f0fb, #dde8f8);
}
.mk-line.w-40 { width: 40%; } .mk-line.w-45 { width: 45%; }
.mk-line.w-50 { width: 50%; } .mk-line.w-55 { width: 55%; }
.mk-line.w-60 { width: 60%; } .mk-line.w-65 { width: 65%; }
.mk-line.w-70 { width: 70%; } .mk-line.w-72 { width: 72%; }
.mk-line.w-80 { width: 80%; } .mk-line.w-85 { width: 85%; }

/* Audit mockup */
.mockup-audit .mk-line.w-70 { margin-bottom: 22px; }
.mk-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.mk-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
}
.mk-bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), #7aa6ee);
}
.mk-bar.w-80 { width: 80%; } .mk-bar.w-72 { width: 72%; }
.mk-bar.w-60 { width: 60%; } .mk-bar.w-55 { width: 55%; }

/* Analyze mockup */
.mk-reason {
  display: grid;
  grid-template-columns: 14px 1fr 36px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mk-reason:last-child { border-bottom: 0; }
.mk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mk-count {
  font-size: 14px; font-weight: 700; color: var(--navy);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* Recommend mockup */
.mk-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.mk-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--accent);
  position: relative;
}
.mk-box::after {
  content: "✓";
  position: absolute; inset: 0;
  color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.mk-code {
  margin-top: 8px;
  background: #0c1730;
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.mk-codeline { height: 10px; border-radius: 5px; background: #2a3c63; }
.mk-codeline.w-45 { width: 45%; } .mk-codeline.w-60 { width: 60%; }
.mk-codeline.w-75 { width: 75%; }

/* Track mockup */
.mk-chart {
  width: 100%;
  height: 150px;
}
.mk-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-legend { margin-top: 18px; }

/* ===============================================================
   6 · COMPARISON TABLE
   =============================================================== */
.compare-section {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: var(--section-pad);
}
.compare-section .section-title,
.compare-section .section-sub { text-align: center; }
.compare-section .section-sub { margin-inline: auto; margin-bottom: 56px; }

.table-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--line);
}
.compare tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}
.compare .row-head { text-align: left; }

/* Highlight our column */
.compare .col-us {
  background: rgba(28, 95, 214, 0.05);
}
.compare thead .col-us {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mark { font-weight: 700; font-size: 17px; }
.mark.yes { color: var(--tier-strong); }
.mark.no  { color: var(--tier-challenger); font-size: 20px; }
.mark.partial {
  color: var(--tier-average);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===============================================================
   7 · PLAYBOOK / RESEARCH CTA
   =============================================================== */
.playbook-section { padding-block: var(--section-pad); }

.playbook-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.playbook-copy .section-title { margin-top: 6px; }
.playbook-copy .section-sub { margin-bottom: 28px; }

.playbook-list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.playbook-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 16px;
}
.playbook-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(28, 95, 214, 0.15);
  box-shadow: inset 0 0 0 4px var(--accent);
}

/* Report cover placeholder */
.playbook-cover { display: flex; justify-content: center; }
.cover {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  padding: 36px 32px;
  color: #eaf2ff;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(47, 116, 239, 0.55) 0%, rgba(47, 116, 239, 0) 55%),
    linear-gradient(160deg, #14387f 0%, var(--navy) 55%, #081d49 100%);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.cover .glyph-lg { margin-bottom: auto; }
.cover .glyph-lg rect:nth-child(1) { fill: #7fa3e6; }
.cover .glyph-lg rect:nth-child(2) { fill: #a9c4f3; }
.cover .glyph-lg rect:nth-child(3) { fill: #cfe0fb; }
.cover .glyph-lg rect:nth-child(4) { fill: #ffffff; }
.cover-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: #9db9ee;
  margin-bottom: 14px;
}
.cover-title {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}
.cover-foot {
  margin-top: 22px;
  font-size: 13px;
  color: #9db9ee;
}

/* ===============================================================
   7b · THE ENGAGEMENT — productized one-time offer card
   =============================================================== */
.offer-section { padding-block: var(--section-pad); }
.offer-section .section-title,
.offer-section .section-sub { text-align: center; }
.offer-section .section-sub { margin-inline: auto; margin-bottom: 48px; }

.offer-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 44px);
}
.offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.offer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.offer-price { display: flex; align-items: baseline; gap: 10px; }
.offer-amount {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}
.offer-term {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.offer-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.offer-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.55;
}
.offer-list li strong { color: var(--ink); font-weight: 600; }
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(28, 95, 214, 0.15);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.offer-card .btn { width: 100%; }
.offer-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
}

/* ===============================================================
   8 · CLOSING CTA
   =============================================================== */
.closing {
  position: relative;
  text-align: center;
  padding-block: var(--section-pad);
  overflow: hidden;
}
.closing .atmosphere {
  background:
    radial-gradient(110% 90% at 50% 110%, rgba(28, 95, 214, 0.18) 0%, rgba(28, 95, 214, 0) 55%),
    linear-gradient(180deg, var(--bg) 0%, #eaf2fe 100%);
}
.closing .container { position: relative; z-index: 1; }
.closing .cta-row { margin-top: 34px; }

/* ===============================================================
   FOOTER
   =============================================================== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--slate);
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 13px; color: var(--slate); }

/* ===============================================================
   SCROLL REVEAL (fade + rise). Toggled by IntersectionObserver.
   =============================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===============================================================
   RESPONSIVE
   =============================================================== */
@media (max-width: 880px) {
  :root { --section-pad: 110px; }

  .playbook-grid { grid-template-columns: 1fr; }
  .playbook-cover { order: -1; }
  .cover { max-width: 300px; }

  .stat-grid { gap: 56px; margin-top: 56px; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --section-pad: 84px; }

  .container { padding-inline: 18px; }

  .ticker { height: 360px; }
  .lb-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name share"
      "tier trend";
    gap: 6px 14px;
    padding: 16px 18px;
  }
  .lb-name  { grid-area: name; }
  .lb-share { grid-area: share; }
  .lb-tier  { grid-area: tier; justify-self: start; min-width: 0; }
  .lb-trend { grid-area: trend; text-align: right; }

  .cta-row .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===============================================================
   REDUCED MOTION — disable all non-essential animation
   =============================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .snapshot-dot { animation: none; }
  * { scroll-behavior: auto !important; }
}
