/* =========================================================
   Teddy AuthorityMap — polish layer
   Loaded AFTER styles.css and v2-overlay.css.
   Hyper-tunes desktop & mobile separately for Stripe-grade feel.
   Uses existing tokens; no new palette.
   ========================================================= */

/* ---------- Polish-only tokens ----------------------------- */
:root {
  --polish-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --polish-card-rest:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 8px 22px rgba(17, 24, 39, 0.05);
  --polish-card-hover:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 4px rgba(17, 24, 39, 0.05),
    0 18px 38px rgba(17, 24, 39, 0.10);
  --polish-cta:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 16px -4px rgba(204, 128, 102, 0.45),
    0 14px 32px -10px rgba(204, 128, 102, 0.45);
  --polish-cta-hover:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 10px 20px -4px rgba(204, 128, 102, 0.55),
    0 22px 44px -12px rgba(204, 128, 102, 0.55);
}

/* =========================================================
   Focus-visible rescue for the primary CTA
   The shared --ring-focus is a box-shadow that otherwise stomps
   the CTA's lift shadow. Re-stack both so a focused CTA keeps
   its depth AND shows the brand ring.
   ========================================================= */
.button.primary:focus-visible {
  outline: none;
  box-shadow:
    var(--ring-focus),
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 16px -4px rgba(204, 128, 102, 0.45),
    0 14px 32px -10px rgba(204, 128, 102, 0.45);
}

/* =========================================================
   Sidebar — sharper active state, hover affordance
   ========================================================= */
.sidebar {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
}

.nav-link {
  position: relative;
  padding-inline-start: 14px;
  border-radius: 8px;
  transition:
    color 160ms var(--polish-ease),
    background 160ms var(--polish-ease),
    transform 160ms var(--polish-ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 220ms var(--polish-ease);
}

.nav-link:hover::before {
  height: 18px;
}

.nav-link.is-active::before {
  height: 22px;
}

/* Profile-checklist nav pill: stays calm but feels tactile */
.nav-page-link {
  transition:
    background 160ms var(--polish-ease),
    border-color 160ms var(--polish-ease),
    transform 160ms var(--polish-ease),
    box-shadow 160ms var(--polish-ease);
}
.nav-page-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(204, 128, 102, 0.35);
}

/* =========================================================
   Topbar — refined chrome
   ========================================================= */
.topbar {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: box-shadow 220ms var(--polish-ease), border-color 220ms var(--polish-ease);
}

html.is-scrolled .topbar {
  box-shadow:
    0 1px 0 rgba(17, 24, 39, 0.04),
    0 6px 18px -8px rgba(17, 24, 39, 0.08);
}

.client-pill {
  transition:
    border-color 160ms var(--polish-ease),
    background 160ms var(--polish-ease),
    transform 160ms var(--polish-ease);
}
.client-pill:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* topbar reference link → looks like an anchor button */
.topbar-reference-link {
  position: relative;
  transition: color 160ms var(--polish-ease);
}
.topbar-reference-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 160ms var(--polish-ease), transform 220ms var(--polish-ease);
}
.topbar-reference-link:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

/* =========================================================
   Buttons — premium feel, refined motion
   ========================================================= */
.button {
  position: relative;
  isolation: isolate;
}

.button.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0)) padding-box,
    var(--primary) padding-box;
  box-shadow: var(--polish-cta);
  transition:
    transform 200ms var(--polish-ease),
    box-shadow 220ms var(--polish-ease),
    background 200ms var(--polish-ease);
}
.button.primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0)) padding-box,
    var(--primary-700) padding-box;
  box-shadow: var(--polish-cta-hover);
  transform: translateY(-2px);
}
.button.primary:active {
  transform: translateY(0);
  box-shadow: var(--polish-cta);
}

.button.secondary {
  transition:
    transform 200ms var(--polish-ease),
    border-color 200ms var(--polish-ease),
    background 200ms var(--polish-ease),
    box-shadow 220ms var(--polish-ease);
}
.button.secondary:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(17, 24, 39, 0.18);
}

/* =========================================================
   Hero — ambient depth, refined board
   ========================================================= */
.hero-board {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(204, 128, 102, 0.05), transparent 55%),
    var(--paper);
  box-shadow: var(--polish-card-rest);
  transition: box-shadow 240ms var(--polish-ease);
}
.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(204, 128, 102, 0.08), rgba(204, 128, 102, 0));
  height: 2px;
  pointer-events: none;
}

/* Score ring — subtle ambient halo, calmer pulse */
.score-ring {
  position: relative;
  transition: transform 320ms var(--polish-ease), box-shadow 320ms var(--polish-ease);
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(204, 128, 102, 0.16), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 480ms var(--polish-ease);
}
.is-in .score-ring::after,
.score-ring:hover::after {
  opacity: 1;
}

/* Review pool tiles — better hierarchy */
.review-pools {
  font-feature-settings: "tnum" 1, "ss01" 1;
}
.review-pools strong {
  font-size: clamp(1.5rem, 1.1rem + 0.8vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Board grid stat numbers feel more authoritative */
.board-grid strong {
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* Engine strip — interactive engines */
.engine-row li {
  transition:
    transform 200ms var(--polish-ease),
    color 160ms var(--polish-ease);
}
.engine-row li .engine-mark {
  transition:
    transform 220ms var(--polish-ease),
    box-shadow 220ms var(--polish-ease),
    border-color 220ms var(--polish-ease);
}
.engine-row li:hover .engine-mark {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 18px -8px rgba(17, 24, 39, 0.18);
  border-color: var(--line-strong);
}

/* Hero-pills row — give them micro lift on hover */
.live-pill,
.cadence-pill {
  transition: border-color 160ms var(--polish-ease), background 160ms var(--polish-ease), transform 160ms var(--polish-ease);
}
.live-pill:hover,
.cadence-pill:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* =========================================================
   Exec-summary — refined cards with accent rail
   ========================================================= */
.exec-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease),
    border-color 200ms var(--polish-ease);
}
.exec-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 25%, var(--primary) 75%, transparent);
  opacity: 0;
  transition: opacity 220ms var(--polish-ease);
}
.exec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--polish-card-hover);
}
.exec-card:hover::after {
  opacity: 0.55;
}
.exec-card--good::after {
  background: linear-gradient(90deg, transparent, var(--green) 25%, var(--green) 75%, transparent);
}
.exec-card--bad::after {
  background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red) 75%, transparent);
}

/* Readout tiles — tighter, with subtle inset highlight */
.readout-tile {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  transition: transform 200ms var(--polish-ease), box-shadow 240ms var(--polish-ease), border-color 200ms var(--polish-ease);
}
.readout-tile:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 6px 18px -10px rgba(17, 24, 39, 0.12);
}
.readout-tile strong {
  font-feature-settings: "tnum" 1;
}

/* Signal rows — subtler hover, keeps print clean */
.signal-row {
  transition: border-color 160ms var(--polish-ease), background 160ms var(--polish-ease), transform 200ms var(--polish-ease);
}
.signal-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
}

/* =========================================================
   Section bands — softer dividers, better rhythm
   ========================================================= */
.section-band {
  position: relative;
}
.section-band + .section-band::before {
  content: none; /* replace v2's hard rule with our gradient */
}
.section-band + .section-band {
  border-top: 1px solid transparent;
  background-image:
    linear-gradient(to right, transparent, var(--line) 18%, var(--line) 82%, transparent);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top center;
}

/* =========================================================
   Source heatmap — numbered list lift
   ========================================================= */
#source-heatmap ol li,
#source-heatmap .source-item,
#source-heatmap a[href^="#"] {
  transition:
    transform 200ms var(--polish-ease),
    border-color 200ms var(--polish-ease),
    box-shadow 220ms var(--polish-ease);
}
#source-heatmap li:hover,
#source-heatmap .source-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -14px rgba(17, 24, 39, 0.14);
}

/* =========================================================
   Snippet cards — refined depth & motion
   ========================================================= */
.snippet-card {
  transition:
    transform 220ms var(--polish-ease),
    border-color 220ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease);
}
.snippet-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--polish-card-hover);
}

/* =========================================================
   Fix cards (playbook) — better tactile feedback
   ========================================================= */
.fix-card {
  transition:
    transform 220ms var(--polish-ease),
    border-color 200ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease);
}
.fix-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--polish-card-hover);
}

.filter-button {
  transition:
    background 160ms var(--polish-ease),
    color 160ms var(--polish-ease),
    box-shadow 200ms var(--polish-ease);
}
.filter-button:hover {
  box-shadow: 0 4px 10px -6px rgba(17, 24, 39, 0.18);
}

/* =========================================================
   Tabular numbers — global polish for stat-heavy UI
   ========================================================= */
.score-ring span,
.exec-summary__refresh b,
.readout-tile strong,
.review-pools strong,
.board-grid strong,
.peer-row strong,
.peer-row b,
[data-count] {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* =========================================================
   ====== MOBILE-FIRST POLISH (≤ 720) ========================
   ========================================================= */
@media (max-width: 720px) {
  /* Bigger touch targets on primary CTAs */
  .button {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 0.98rem;
  }

  .button.primary,
  .button.secondary {
    width: 100%;
    justify-content: center;
  }

  /* Engines wrap nicely on mobile */
  .engine-row {
    gap: 10px 14px;
  }

  /* Hero copy: tighter line-height, no awkward orphans */
  .hero-copy h2 {
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .hero-copy {
    gap: 18px;
  }

  /* Keep score-ring halo subtler on mobile */
  .score-ring::after {
    inset: -6px;
  }

  /* Topbar mobile menu toggle: cleaner look */
  .mobile-nav-toggle {
    border-radius: 10px;
    transition: background 160ms var(--polish-ease), transform 200ms var(--polish-ease);
  }
  .mobile-nav-toggle:active {
    transform: scale(0.97);
  }

  /* Filter buttons row in playbook — hit target & spacing */
  .filter-button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.85rem;
  }

  /* Section dividers on mobile go edge-to-edge */
  .section-band + .section-band {
    background-image:
      linear-gradient(to right, transparent, var(--line) 8%, var(--line) 92%, transparent);
  }

  /* Prevent active-tile hover-lift jitter on touch */
  .exec-card:hover,
  .readout-tile:hover,
  .signal-row:hover,
  .snippet-card:hover,
  .fix-card:hover,
  .nav-page-link:hover,
  .client-pill:hover,
  .live-pill:hover,
  .cadence-pill:hover {
    transform: none;
  }
}

@media (max-width: 430px) {
  .hero-copy h2 {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }
}

/* =========================================================
   Touch devices — hover should never linger
   ========================================================= */
@media (hover: none) {
  .exec-card:hover,
  .readout-tile:hover,
  .signal-row:hover,
  .fix-card:hover,
  .snippet-card:hover,
  .engine-row li:hover .engine-mark,
  .nav-page-link:hover,
  .client-pill:hover {
    transform: none;
    box-shadow: var(--polish-card-rest);
  }
  .button.primary:hover {
    background: var(--primary);
    transform: none;
    box-shadow: var(--polish-cta);
  }
}

/* =========================================================
   Reduced motion — strip transitions & animated halos
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .exec-card,
  .readout-tile,
  .signal-row,
  .snippet-card,
  .fix-card,
  .engine-row li,
  .engine-row li .engine-mark,
  .nav-link,
  .nav-page-link,
  .client-pill,
  .live-pill,
  .cadence-pill,
  .button,
  .button.primary,
  .button.secondary,
  .topbar,
  .topbar-reference-link::after,
  .score-ring,
  .score-ring::after,
  .filter-button {
    transition: none !important;
    animation: none !important;
  }
  .exec-card:hover,
  .readout-tile:hover,
  .signal-row:hover,
  .snippet-card:hover,
  .fix-card:hover,
  .engine-row li:hover .engine-mark,
  .button.primary:hover,
  .button.secondary:hover {
    transform: none !important;
  }
}

/* =========================================================
   Print — keep it clean, no decorative gradients
   ========================================================= */
@media print {
  .nav-link::before,
  .topbar-reference-link::after,
  .score-ring::after,
  .exec-card::after,
  .hero-board::before {
    display: none !important;
  }
  .button.primary {
    box-shadow: none !important;
  }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 2  ░░░░░░░░░░░░░░░
   Targets components pass 1 left alone: SoV bars,
   snippet engine cards, numbered ranks, filter chips,
   skip-link, kicker accents, hero brand-icon float,
   plus light typography rhythm tightening.
   ========================================================= */

/* ---------------------------------------------------------
   1.  SoV / intent / coverage bars
   - Inset shadow on track
   - Gradient + sheen highlight on fill
   - Glow tip emphasis at end of fill
   --------------------------------------------------------- */
.track,
.intent-track,
.coverage-meter {
  position: relative;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0)),
    var(--line) !important;
  box-shadow: inset 0 1px 1px rgba(17, 24, 39, 0.04);
}

.engine-bars .track > span,
.intent-board .intent-track > span,
.track > span,
.intent-track > span {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 35%),
    linear-gradient(90deg, var(--primary-700) 0%, var(--primary) 55%, #cc8066 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 0.5px rgba(204, 128, 102, 0.18),
    0 4px 8px -4px rgba(204, 128, 102, 0.42) !important;
}

/* Subtle right-edge highlight to make the cap pop */
.engine-bars .track > span::after,
.intent-board .intent-track > span::after,
.track > span::after,
.intent-track > span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 100%);
  pointer-events: none;
}

/* Hover the row → bar darkens slightly to mark the inspected datum */
.engine-row:hover .track > span,
.intent-row:hover .intent-track > span {
  filter: brightness(1.04) saturate(1.05);
}

/* ---------------------------------------------------------
   2.  Snippet cards — refined top stripe + engine line
   --------------------------------------------------------- */
.snippet-card {
  position: relative;
}
.snippet-card--before,
.snippet-card--after {
  border-top-color: transparent !important;
}
.snippet-card--before::before,
.snippet-card--after::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  pointer-events: none;
}
.snippet-card--before::before {
  background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red) 82%, transparent);
  box-shadow: 0 1px 12px -2px rgba(220, 38, 38, 0.42);
}
.snippet-card--after::before {
  background: linear-gradient(90deg, transparent, var(--primary) 18%, var(--primary) 82%, transparent);
  box-shadow: 0 1px 12px -2px rgba(204, 128, 102, 0.42);
}
.snippet-engine {
  font-feature-settings: "ss01" 1;
}

/* ---------------------------------------------------------
   3.  Numbered ranks (source-heatmap top-3 list)
   --------------------------------------------------------- */
.top-sources-list .rank {
  background: linear-gradient(160deg, #1f2937 0%, var(--ink) 70%, #0b1220 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(17, 24, 39, 0.18),
    0 4px 14px -8px rgba(17, 24, 39, 0.4);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
  transition: transform 220ms var(--polish-ease), box-shadow 220ms var(--polish-ease);
}

.top-sources-list li:hover .rank {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 8px rgba(17, 24, 39, 0.22),
    0 10px 22px -10px rgba(17, 24, 39, 0.45),
    0 0 0 3px rgba(204, 128, 102, 0.12);
}

/* Insight numbers (.insight-num inside .insight-list) — same family */
.insight-num {
  background: linear-gradient(160deg, #1f2937 0%, var(--ink) 70%, #0b1220 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(17, 24, 39, 0.16);
}

/* ---------------------------------------------------------
   4.  Filter button — premium "is-selected" chip
   --------------------------------------------------------- */
.filter-button.is-selected {
  background:
    linear-gradient(180deg, #1f2937 0%, var(--ink) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 12px -4px rgba(17, 24, 39, 0.28) !important;
}
.filter-button.is-selected:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px -6px rgba(17, 24, 39, 0.34) !important;
}

/* ---------------------------------------------------------
   5.  Section kicker (.utility) — small leading dot
   Scoped to .section-heading so pills/badges aren't affected.
   --------------------------------------------------------- */
.section-heading > .utility,
.section-heading p.utility,
.exec-summary__head .exec-summary__kicker {
  position: relative;
  padding-left: 14px;
}
.section-heading > .utility::before,
.section-heading p.utility::before,
.exec-summary__head .exec-summary__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 128, 102, 0.14);
  transform: translateY(-50%);
}

/* ---------------------------------------------------------
   6.  Skip link — accessible, on-brand, never ugly
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 240ms var(--polish-ease), box-shadow 240ms var(--polish-ease);
  box-shadow: 0 10px 24px -10px rgba(17, 24, 39, 0.4);
}
.skip-link:focus-visible,
.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 4px rgba(204, 128, 102, 0.55),
    0 10px 28px -10px rgba(17, 24, 39, 0.45);
}

/* ---------------------------------------------------------
   7.  Hero brand-icon — gentle ambient float at rest
   --------------------------------------------------------- */
@keyframes polish-icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.hero-brand-icon {
  animation: polish-icon-float 6s ease-in-out infinite;
  will-change: transform;
}

/* ---------------------------------------------------------
   8.  How-to-read details — smoother chevron, hover affordance
   --------------------------------------------------------- */
.how-to-read {
  transition: border-color 200ms var(--polish-ease), background 200ms var(--polish-ease);
}
.how-to-read:hover {
  border-color: var(--line-strong);
}
.how-to-read__chevron {
  transition: transform 280ms var(--polish-ease), color 200ms var(--polish-ease);
  display: inline-block;
  will-change: transform;
}
.how-to-read[open] .how-to-read__chevron {
  transform: rotate(45deg);
  color: var(--primary);
}

.section-collapsed__chevron {
  transition: transform 280ms var(--polish-ease), background 220ms var(--polish-ease);
  will-change: transform;
}
.section-collapsed[open] > summary .section-collapsed__chevron {
  transform: rotate(45deg);
}
.section-collapsed > summary:hover .section-collapsed__chevron {
  background: var(--primary-100);
}

/* ---------------------------------------------------------
   9.  Typography rhythm — tighten h2 letter-spacing
   --------------------------------------------------------- */
.section-band h2,
.section-heading h2 {
  letter-spacing: -0.028em;
}
.hero-copy h2 {
  letter-spacing: -0.034em;
}
.section-heading > p,
.section-heading p:not(.utility) {
  line-height: 1.5;
}

/* ---------------------------------------------------------
   10.  Tabular nums on review snapshots
   --------------------------------------------------------- */
.reddit-callout strong,
.reddit-callout b,
[data-rating],
.review-snapshot strong {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ---------------------------------------------------------
   11.  Hero board — soft warm aura on huge screens
   --------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero-board {
    box-shadow:
      var(--polish-card-rest),
      0 30px 60px -30px rgba(204, 128, 102, 0.18);
  }
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-2 refinements  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .section-heading > .utility,
  .section-heading p.utility,
  .exec-summary__head .exec-summary__kicker {
    padding-left: 12px;
  }
  .section-heading > .utility::before,
  .section-heading p.utility::before,
  .exec-summary__head .exec-summary__kicker::before {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 2.5px rgba(204, 128, 102, 0.16);
  }

  .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .filter-button {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    padding-inline: 16px;
  }

  .top-sources-list .rank {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 2px 4px rgba(17, 24, 39, 0.16);
  }

  .hero-brand-icon { animation: none; }

  .track,
  .intent-track {
    height: 12px;
  }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-brand-icon,
  .top-sources-list .rank,
  .how-to-read__chevron,
  .section-collapsed__chevron,
  .skip-link,
  .track > span,
  .intent-track > span {
    animation: none !important;
    transition: none !important;
  }
  .top-sources-list li:hover .rank {
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Touch devices  ░░░░
   --------------------------------------------------------- */
@media (hover: none) {
  .top-sources-list li:hover .rank {
    transform: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 2px 4px rgba(17, 24, 39, 0.16);
  }
  .engine-row:hover .track > span,
  .intent-row:hover .intent-track > span {
    filter: none;
  }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .snippet-card--before::before,
  .snippet-card--after::before,
  .section-heading > .utility::before,
  .section-heading p.utility::before,
  .exec-summary__head .exec-summary__kicker::before {
    display: none !important;
  }
  .skip-link { display: none !important; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 3  ░░░░░░░░░░░░░░░
   Status pills, scroll progress, hover/focus parity,
   peer-row chip refinement, draft-card chevron, headshot
   zoom, sidebar transition smoothing.
   ========================================================= */

/* ---------------------------------------------------------
   A.  Scroll progress bar — Stripe-style fixed top indicator
   --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary-700) 0%, var(--primary) 50%, #cc8066 100%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}
@supports (animation-timeline: scroll(root)) {
  .scroll-progress {
    animation: polish-scroll-progress linear forwards;
    animation-timeline: scroll(root);
  }
  @keyframes polish-scroll-progress {
    to { transform: scaleX(1); }
  }
}

/* ---------------------------------------------------------
   B.  Intent status — proper chip with leading dot using currentColor
   The inline color from JS becomes both border + dot color.
   --------------------------------------------------------- */
.intent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.015);
  white-space: nowrap;
  line-height: 1;
}
.intent-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   C.  Reddit callout — depth + tilt on hover
   --------------------------------------------------------- */
.reddit-mark {
  background: linear-gradient(160deg, #cc8066 0%, var(--primary) 70%, var(--primary-700) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 6px 14px -6px rgba(204, 128, 102, 0.45);
  transition: transform 320ms var(--polish-ease), box-shadow 320ms var(--polish-ease);
}
.reddit-callout:hover .reddit-mark {
  transform: rotate(-3deg) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 12px 22px -8px rgba(204, 128, 102, 0.55);
}

/* ---------------------------------------------------------
   D.  Peer row tags — chip refinement
   --------------------------------------------------------- */
.peer-row__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--bg-soft));
  color: var(--muted);
}
.peer-row__tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted-2);
  flex-shrink: 0;
}

.peer-row__tag.is-featured {
  background: linear-gradient(180deg, #cc8066 0%, var(--primary) 70%, var(--primary-700) 100%) !important;
  color: #fff !important;
  border-color: rgba(204, 128, 102, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 6px 14px -8px rgba(204, 128, 102, 0.5);
}
.peer-row__tag.is-featured::before {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

/* Featured peer row — warm gradient bg + left accent rail */
.peer-row.is-featured {
  position: relative;
  background:
    linear-gradient(180deg, rgba(204, 128, 102, 0.07), rgba(204, 128, 102, 0.025)) !important;
}
.peer-row.is-featured::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--primary), #cc8066);
}

/* ---------------------------------------------------------
   E.  Fix-status segmented buttons — refined depth
   --------------------------------------------------------- */
.fix-status__btn {
  transition:
    background 160ms var(--polish-ease),
    border-color 160ms var(--polish-ease),
    transform 160ms var(--polish-ease),
    box-shadow 200ms var(--polish-ease);
}
.fix-status__btn:active {
  transform: scale(0.96);
}
.fix-status__btn.is-selected {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 4px 10px -4px rgba(17, 24, 39, 0.22);
}
.fix-status__btn[data-status="completed"].is-selected {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 4px 10px -4px rgba(22, 163, 74, 0.34);
}

/* ---------------------------------------------------------
   F.  Hover ↔ focus parity — keyboard users see depth too
   --------------------------------------------------------- */
.exec-card:focus-within,
.signal-row:focus-within,
.fix-card:focus-within,
.snippet-card:focus-within,
.readout-tile:focus-within,
.top-sources-list li:focus-within .rank {
  transform: translateY(-2px);
  box-shadow: var(--polish-card-hover);
  border-color: var(--line-strong);
}
.exec-card:focus-within::after {
  opacity: 0.55;
}
.top-sources-list li:focus-within .rank {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 8px rgba(17, 24, 39, 0.22),
    0 10px 22px -10px rgba(17, 24, 39, 0.45),
    0 0 0 3px rgba(204, 128, 102, 0.12);
}

/* ---------------------------------------------------------
   G.  Sidebar — smoother color transition
   --------------------------------------------------------- */
.nav-link {
  transition:
    color 200ms var(--polish-ease),
    background 200ms var(--polish-ease);
}
.nav-link::before {
  transition: height 280ms var(--polish-ease), background 220ms var(--polish-ease);
}

/* ---------------------------------------------------------
   H.  Drafts cards — branded +/x disclosure
   --------------------------------------------------------- */
.draft-card > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding-right: 52px;
}
.draft-card > summary::-webkit-details-marker {
  display: none;
}
.draft-card > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary-700);
  background: rgba(204, 128, 102, 0.08);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 280ms var(--polish-ease), background 220ms var(--polish-ease);
}
.draft-card[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: rgba(204, 128, 102, 0.16);
}
.draft-card > summary:hover::after {
  background: rgba(204, 128, 102, 0.16);
}

/* ---------------------------------------------------------
   I.  Client headshot pill — gentle photo zoom
   --------------------------------------------------------- */
.client-pill img {
  transition: transform 320ms var(--polish-ease);
}
.client-pill:hover img,
.client-pill:focus-visible img {
  transform: scale(1.06);
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-3 refinements  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .intent-status {
    font-size: 0.66rem;
    padding: 3px 9px 3px 7px;
  }
  .draft-card > summary {
    padding-right: 48px;
  }
  .draft-card > summary::after {
    right: 14px;
    width: 24px;
    height: 24px;
  }
  .reddit-mark {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 4px 8px -4px rgba(204, 128, 102, 0.36);
  }
  /* Scroll-progress is even thinner on phones for less visual weight */
  .scroll-progress { height: 1.5px; }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    animation: none !important;
    transform: scaleX(0) !important;
  }
  .reddit-callout:hover .reddit-mark,
  .client-pill:hover img,
  .client-pill:focus-visible img,
  .draft-card[open] > summary::after,
  .exec-card:focus-within,
  .signal-row:focus-within,
  .fix-card:focus-within,
  .snippet-card:focus-within,
  .readout-tile:focus-within {
    transform: none !important;
    animation: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Touch devices  ░░░░
   --------------------------------------------------------- */
@media (hover: none) {
  .reddit-callout:hover .reddit-mark,
  .client-pill:hover img {
    transform: none;
  }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .scroll-progress { display: none !important; }
  .intent-status { border: 1px solid currentColor; background: transparent; }
  .reddit-mark { box-shadow: none !important; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 4  ░░░░░░░░░░░░░░░
   Editorial typography & rhythm: hanging quotes, refined
   snippet highlight, animated link underlines, glossary
   rhythm, refined utility tracking, font-feature cascade.
   ========================================================= */

/* ---------------------------------------------------------
   Global text rendering — slight legibility & contextual nums
   --------------------------------------------------------- */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-feature-settings: "ss01" 1, "cv11" 1;
}

/* ---------------------------------------------------------
   Hero h2 — refined hanging punctuation
   Geist doesn't natively hang quotes; nudge with text-indent.
   --------------------------------------------------------- */
.hero-copy h2 {
  hanging-punctuation: first last;
}

/* ---------------------------------------------------------
   Snippet body highlight — amber wash refined to feel like marker
   --------------------------------------------------------- */
.snippet-body strong {
  background: linear-gradient(180deg, transparent 60%, rgba(231, 161, 132, 0.45) 60%, rgba(231, 161, 132, 0.45) 92%, transparent 92%) !important;
  padding: 0 1px;
}

/* Italicized text in snippet body — softer color */
.snippet-body em,
.snippet-body i {
  color: var(--muted);
  font-style: italic;
}

/* ---------------------------------------------------------
   Reddit callout quote — oversized open-quote
   --------------------------------------------------------- */
.reddit-callout h3 {
  position: relative;
}
.reddit-callout h3::before {
  content: "\201C";
  position: absolute;
  left: -0.5em;
  top: -0.25em;
  font-family: "Geist", serif;
  font-size: 2.4em;
  line-height: 1;
  font-weight: 600;
  color: rgba(204, 128, 102, 0.18);
  pointer-events: none;
}

/* The actual h3 text already starts with " — bring it tight to the visual quote */
@media (min-width: 720px) {
  .reddit-callout h3 {
    padding-left: 0.2em;
  }
}

/* ---------------------------------------------------------
   Animated link underlines — body anchor tags only
   Skip nav, buttons, pills, structured components.
   --------------------------------------------------------- */
.exec-card p a,
.section-band p a,
.section-heading p a,
.methodology-line a,
.glossary-drawer a,
.how-to-read__body a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 200ms var(--polish-ease), background-size 320ms var(--polish-ease);
}
.exec-card p a:hover,
.section-band p a:hover,
.section-heading p a:hover,
.methodology-line a:hover,
.glossary-drawer a:hover,
.how-to-read__body a:hover {
  color: var(--primary-700);
  background-image: linear-gradient(var(--primary), var(--primary));
}

/* ---------------------------------------------------------
   Glossary <dl> — better dt/dd rhythm
   --------------------------------------------------------- */
.glossary-drawer dl > div {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.glossary-drawer dl > div:last-child {
  border-bottom: 0;
}
.glossary-drawer dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 6px;
}
.glossary-drawer dt small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.glossary-drawer dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
  max-width: 72ch;
}

/* ---------------------------------------------------------
   Section heading paragraphs — better leading & cap
   --------------------------------------------------------- */
.section-heading > p,
.section-heading p:not(.utility) {
  max-width: 56ch;
  font-size: clamp(0.98rem, 0.93rem + 0.25vw, 1.075rem);
}

/* Hero copy body paragraph — tighter feel */
.hero-copy p {
  max-width: 48ch;
}

/* ---------------------------------------------------------
   Utility labels — tighter tracking at smaller sizes
   Many .utility uses are 11px; 0.16em is too loose there.
   --------------------------------------------------------- */
.utility {
  letter-spacing: 0.14em;
  font-feature-settings: "tnum" 1;
}
/* But preserve the wider track on hero pills where it reads as a brand mark */
.live-pill,
.cadence-pill {
  letter-spacing: 0.18em;
}

/* ---------------------------------------------------------
   Methodology line — refined rhythm & color emphasis
   --------------------------------------------------------- */
.methodology-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 90ch;
}
.methodology-line b {
  color: var(--ink);
  font-weight: 600;
}
.methodology-line small {
  display: block;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--muted-2);
}

/* ---------------------------------------------------------
   In-text emphasis — italic shifts color slightly
   --------------------------------------------------------- */
.section-heading em,
.section-band em,
.exec-card em,
.signal-row em {
  color: var(--ink);
  font-style: italic;
}

/* Bold inside paragraphs — slight color refinement */
.section-heading p strong,
.section-band p strong,
.fix-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Optical h-rhythm — h2 sizes calmer across breakpoints
   --------------------------------------------------------- */
@media (min-width: 1280px) {
  .section-band h2,
  .section-heading h2 {
    font-size: clamp(1.85rem, 1rem + 1.6vw, 2.6rem);
    line-height: 1.04;
  }
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-4  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .reddit-callout h3 {
    padding-left: 0;
  }
  .reddit-callout h3::before {
    font-size: 2em;
    left: -0.15em;
    top: -0.35em;
  }
  .glossary-drawer dt {
    flex-wrap: wrap;
  }
  .glossary-drawer dd {
    font-size: 0.92rem;
  }
  .methodology-line {
    font-size: 0.74rem;
    line-height: 1.6;
  }
  .utility { letter-spacing: 0.12em; }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion — disable underline transition  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .exec-card p a,
  .section-band p a,
  .section-heading p a,
  .methodology-line a,
  .glossary-drawer a,
  .how-to-read__body a {
    transition: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .reddit-callout h3::before { display: none !important; }
  .glossary-drawer dt small { background: transparent; border: 1px solid #999; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 5  ░░░░░░░░░░░░░░░
   Motion choreography: refined reveal easing, card
   stagger, magnetic CTA, smoother bar fill timing,
   scroll-margin tuning, score-ring entry.
   ========================================================= */

/* ---------------------------------------------------------
   Spring-ier reveal — replace the default ease-out with
   the same overshoot-friendly curve we use for hover lifts.
   --------------------------------------------------------- */
.reveal {
  transform: translateY(22px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   Stagger: when an exec-summary or grid section reveals,
   children cascade in 70ms apart for editorial pacing.
   --------------------------------------------------------- */
.reveal.is-in .exec-summary__grid > .exec-card {
  animation: polish-card-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
  transform: translateY(14px);
}
.reveal.is-in .exec-summary__grid > .exec-card:nth-child(1) { animation-delay: 120ms; }
.reveal.is-in .exec-summary__grid > .exec-card:nth-child(2) { animation-delay: 200ms; }
.reveal.is-in .exec-summary__grid > .exec-card:nth-child(3) { animation-delay: 280ms; }

.reveal.is-in .client-readout > .readout-tile {
  animation: polish-card-rise 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
  transform: translateY(10px);
}
.reveal.is-in .client-readout > .readout-tile:nth-child(1) { animation-delay: 60ms; }
.reveal.is-in .client-readout > .readout-tile:nth-child(2) { animation-delay: 130ms; }
.reveal.is-in .client-readout > .readout-tile:nth-child(3) { animation-delay: 200ms; }
.reveal.is-in .client-readout > .readout-tile:nth-child(4) { animation-delay: 270ms; }

.reveal.is-in .snippet-mock > .snippet-card {
  animation: polish-card-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
  transform: translateY(12px);
}
.reveal.is-in .snippet-mock > .snippet-card:nth-child(1) { animation-delay: 80ms; }
.reveal.is-in .snippet-mock > .snippet-card:nth-child(2) { animation-delay: 160ms; }
.reveal.is-in .snippet-mock > .snippet-card:nth-child(3) { animation-delay: 240ms; }
.reveal.is-in .snippet-mock > .snippet-card:nth-child(4) { animation-delay: 320ms; }

@keyframes polish-card-rise {
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Bar fills — tighten from 1100ms to 880ms with springier curve
   --------------------------------------------------------- */
.score-bar span,
.track span,
.intent-track span,
.clarity-track span {
  transition: width 880ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Stagger bar fills by row inside engine-bars / intent-board */
.engine-bars .engine-row:nth-child(1) .track span,
.intent-board .intent-row:nth-child(1) .intent-track span { transition-delay: 60ms; }
.engine-bars .engine-row:nth-child(2) .track span,
.intent-board .intent-row:nth-child(2) .intent-track span { transition-delay: 120ms; }
.engine-bars .engine-row:nth-child(3) .track span,
.intent-board .intent-row:nth-child(3) .intent-track span { transition-delay: 180ms; }
.engine-bars .engine-row:nth-child(4) .track span,
.intent-board .intent-row:nth-child(4) .intent-track span { transition-delay: 240ms; }
.engine-bars .engine-row:nth-child(5) .track span,
.intent-board .intent-row:nth-child(5) .intent-track span { transition-delay: 300ms; }
.intent-board .intent-row:nth-child(6) .intent-track span { transition-delay: 360ms; }
.intent-board .intent-row:nth-child(7) .intent-track span { transition-delay: 420ms; }
.intent-board .intent-row:nth-child(8) .intent-track span { transition-delay: 480ms; }

/* ---------------------------------------------------------
   Score-ring — gentle scale-in when section reveals
   --------------------------------------------------------- */
.reveal.is-in .score-ring {
  animation: polish-ring-bloom 880ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 200ms;
}
@keyframes polish-ring-bloom {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Magnetic-feel primary CTA — subtle shine sweep
   Uses ::before so we don't collide with hero CTA's ::after arrow.
   --------------------------------------------------------- */
.button.primary {
  overflow: hidden;
  isolation: isolate;
}
.button.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.20) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 0;
}
.button.primary:hover::before {
  animation: polish-cta-shine 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes polish-cta-shine {
  from { left: -150%; }
  to   { left: 150%; }
}
/* Keep the hero arrow above the shine */
.hero-actions .button.primary::after {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   Counter numbers — subtle pop after count finishes (JS adds .is-counted)
   We'll be defensive: if class never set, no harm.
   --------------------------------------------------------- */
[data-count].is-counted {
  animation: polish-count-settle 420ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes polish-count-settle {
  0%   { transform: scale(1); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------------------------------------------------------
   Smooth scroll + extra scroll-margin to clear sticky topbar
   --------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}
section[id],
.section-band[id],
.hero-section[id] {
  scroll-margin-top: 110px;
}

/* ---------------------------------------------------------
   Section reveal — staggered children in playbook grid
   --------------------------------------------------------- */
.playbook-section.reveal.is-in .fix-card {
  animation: polish-card-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
}
.playbook-section.reveal.is-in .fix-card:nth-child(1) { animation-delay: 60ms; }
.playbook-section.reveal.is-in .fix-card:nth-child(2) { animation-delay: 130ms; }
.playbook-section.reveal.is-in .fix-card:nth-child(3) { animation-delay: 200ms; }
.playbook-section.reveal.is-in .fix-card:nth-child(4) { animation-delay: 270ms; }
.playbook-section.reveal.is-in .fix-card:nth-child(5) { animation-delay: 340ms; }
.playbook-section.reveal.is-in .fix-card:nth-child(6) { animation-delay: 410ms; }

/* ---------------------------------------------------------
   Engine row entry stagger
   --------------------------------------------------------- */
.reveal.is-in .engine-bars .engine-row,
.reveal.is-in .intent-board .intent-row {
  animation: polish-row-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
  transform: translateX(-8px);
}
.reveal.is-in .engine-bars .engine-row:nth-child(1) { animation-delay: 80ms; }
.reveal.is-in .engine-bars .engine-row:nth-child(2) { animation-delay: 140ms; }
.reveal.is-in .engine-bars .engine-row:nth-child(3) { animation-delay: 200ms; }
.reveal.is-in .engine-bars .engine-row:nth-child(4) { animation-delay: 260ms; }
.reveal.is-in .engine-bars .engine-row:nth-child(5) { animation-delay: 320ms; }
.reveal.is-in .intent-board .intent-row:nth-child(n+1) { animation-delay: 80ms; }
.reveal.is-in .intent-board .intent-row:nth-child(n+2) { animation-delay: 140ms; }
.reveal.is-in .intent-board .intent-row:nth-child(n+3) { animation-delay: 200ms; }

@keyframes polish-row-rise {
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Top-3 source ranks — slight stagger
   --------------------------------------------------------- */
.reveal.is-in .top-sources-list li {
  animation: polish-row-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
  transform: translateX(-10px);
}
.reveal.is-in .top-sources-list li:nth-child(1) { animation-delay: 100ms; }
.reveal.is-in .top-sources-list li:nth-child(2) { animation-delay: 180ms; }
.reveal.is-in .top-sources-list li:nth-child(3) { animation-delay: 260ms; }

/* ---------------------------------------------------------
   Peer rows — gentle stagger
   --------------------------------------------------------- */
.reveal.is-in .peer-rows .peer-row {
  animation: polish-row-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
}
.reveal.is-in .peer-rows .peer-row:nth-child(1) { animation-delay: 120ms; }
.reveal.is-in .peer-rows .peer-row:nth-child(2) { animation-delay: 220ms; }
.reveal.is-in .peer-rows .peer-row:nth-child(3) { animation-delay: 320ms; }

/* ---------------------------------------------------------
   Focus this-week badge — gentle attention pulse
   --------------------------------------------------------- */
.fix-card[data-focus="this-week"] .badge.action-focus {
  animation: polish-action-pulse 2.6s ease-in-out infinite;
}
@keyframes polish-action-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 128, 102, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(204, 128, 102, 0.18); }
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-5  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  /* Tone down stagger range so mobile doesn't feel slow */
  .reveal.is-in .exec-summary__grid > .exec-card:nth-child(2) { animation-delay: 140ms; }
  .reveal.is-in .exec-summary__grid > .exec-card:nth-child(3) { animation-delay: 200ms; }
  .reveal.is-in .snippet-mock > .snippet-card:nth-child(3) { animation-delay: 180ms; }
  .reveal.is-in .snippet-mock > .snippet-card:nth-child(4) { animation-delay: 240ms; }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion — strip every pass-5 animation  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.is-in .exec-summary__grid > .exec-card,
  .reveal.is-in .client-readout > .readout-tile,
  .reveal.is-in .snippet-mock > .snippet-card,
  .reveal.is-in .score-ring,
  .reveal.is-in .engine-bars .engine-row,
  .reveal.is-in .intent-board .intent-row,
  .reveal.is-in .top-sources-list li,
  .reveal.is-in .peer-rows .peer-row,
  .playbook-section.reveal.is-in .fix-card,
  [data-count].is-counted,
  .fix-card[data-focus="this-week"] .badge.action-focus {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .button.primary::before,
  .button.primary:hover::before { animation: none !important; display: none !important; }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .button.primary::before { display: none !important; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 6  ░░░░░░░░░░░░░░░
   Luxury finishing: selection color, custom scrollbar,
   grain texture, focus-pulse, print URLs, refined cursors,
   disabled states.
   ========================================================= */

/* ---------------------------------------------------------
   Branded text selection
   --------------------------------------------------------- */
::selection {
  background: rgba(204, 128, 102, 0.22);
  color: var(--ink);
}
::-moz-selection {
  background: rgba(204, 128, 102, 0.22);
  color: var(--ink);
}

/* ---------------------------------------------------------
   Custom scrollbar (desktop, webkit + firefox)
   --------------------------------------------------------- */
@media (min-width: 720px) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 24, 39, 0.18) transparent;
  }
  html::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  html::-webkit-scrollbar-track {
    background: transparent;
  }
  html::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.18);
    border-radius: 99px;
    border: 3px solid var(--bg);
    background-clip: padding-box;
    transition: background 200ms var(--polish-ease);
  }
  html::-webkit-scrollbar-thumb:hover {
    background: rgba(204, 128, 102, 0.5);
    background-clip: padding-box;
  }
  html::-webkit-scrollbar-thumb:active {
    background: var(--primary);
    background-clip: padding-box;
  }
  html::-webkit-scrollbar-corner { background: transparent; }
}

/* ---------------------------------------------------------
   Subtle grain texture over the hero — adds analogue warmth
   without affecting readability.
   --------------------------------------------------------- */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------------------------------------------------------
   Keyboard focus pulse — briefly emphasize landing element
   --------------------------------------------------------- */
@keyframes polish-focus-pulse {
  0%   { outline-color: rgba(204, 128, 102, 0.95); outline-offset: 4px; }
  50%  { outline-color: rgba(204, 128, 102, 0.65); outline-offset: 6px; }
  100% { outline-color: rgba(204, 128, 102, 0.95); outline-offset: 4px; }
}

/* Apply only on first focus-visible event for plain anchors/buttons in body */
a:focus-visible,
button:focus-visible {
  scroll-margin-top: 130px;
}

/* ---------------------------------------------------------
   Cursors — interactive affordances
   --------------------------------------------------------- */
[role="button"],
summary,
.fix-card,
.exec-card,
.snippet-card,
.peer-row,
.top-sources-list li {
  cursor: default;
}
.exec-card:hover,
.snippet-card:hover,
.peer-row:hover {
  cursor: default;
}
.button,
.nav-link,
.client-pill,
.live-pill,
.cadence-pill,
.filter-button,
.fix-status__btn,
summary,
[data-tip] {
  cursor: pointer;
}

/* ---------------------------------------------------------
   Disabled state visual
   --------------------------------------------------------- */
button:disabled,
[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.6);
}

/* ---------------------------------------------------------
   Refined "this-week" sticky bar — when visible
   --------------------------------------------------------- */
.this-week-bar {
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, 0.86);
}
.this-week-bar__link {
  position: relative;
  transition: color 160ms var(--polish-ease);
}
.this-week-bar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 200ms var(--polish-ease), transform 280ms var(--polish-ease);
}
.this-week-bar__link:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

/* ---------------------------------------------------------
   Sidebar note pulse — subtle gentle breathing
   --------------------------------------------------------- */
@keyframes polish-status-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}
.status-dot {
  animation:
    v2-pulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite,
    polish-status-breathe 5s ease-in-out infinite;
}

/* ---------------------------------------------------------
   Reveal-on-scroll cancel default browser focus styles inside
   the section for cleanliness (still keep our focus-visible)
   --------------------------------------------------------- */
[tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------
   ░░░░  Mobile pass-6  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  /* Hide custom scrollbar styling — phones already minimal */
  html { scrollbar-width: auto; }
  .hero-section::after { opacity: 0.022; }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation:
      v2-pulse 0s linear infinite,
      polish-status-breathe 0s linear infinite !important;
  }
  .this-week-bar__link::after { transition: none !important; }
}

/* ---------------------------------------------------------
   ░░░░  Print — clean luxury final form  ░░░░
   --------------------------------------------------------- */
@media print {
  /* Show URLs after external/anchor links in body copy */
  .section-band p a[href^="http"]::after,
  .methodology-line a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: #555;
    word-break: break-all;
  }
  .hero-section::after,
  .hero-canvas,
  .hero-aurora { display: none !important; }
  .scroll-progress,
  .skip-link { display: none !important; }
  /* Improve page break behavior */
  .exec-card,
  .fix-card,
  .snippet-card,
  .peer-row { break-inside: avoid; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 7  ░░░░░░░░░░░░░░░
   Secondary surfaces: WSHFC path numbers, sov-matrix table,
   identity-graphic depth, card-more & source-drawer disclosures,
   tooltips, sidebar brand subtle interaction.
   ========================================================= */

/* ---------------------------------------------------------
   1.  WSHFC numbered path — match rank-style depth treatment
   --------------------------------------------------------- */
.wshfc-callout__path li::before {
  background: linear-gradient(160deg, #1f2937 0%, var(--ink) 70%, #0b1220 100%) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(17, 24, 39, 0.18);
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.01em;
  transition: transform 220ms var(--polish-ease), box-shadow 220ms var(--polish-ease);
}
.wshfc-callout__path li:hover::before {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 8px rgba(17, 24, 39, 0.22);
}
.wshfc-callout__path li.is-target::before {
  background: linear-gradient(160deg, #cc8066 0%, var(--primary) 70%, var(--primary-700) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 4px rgba(204, 128, 102, 0.32),
    0 4px 10px -3px rgba(204, 128, 102, 0.45);
}
.wshfc-callout__path li.is-target:hover::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(204, 128, 102, 0.38),
    0 8px 18px -6px rgba(204, 128, 102, 0.55);
}
.wshfc-callout__path li {
  transition: background 200ms var(--polish-ease);
}
.wshfc-callout__path li:hover {
  background: rgba(20, 21, 18, 0.05);
}
.wshfc-callout__path li.is-target:hover {
  background: rgba(204, 128, 102, 0.12);
}

/* ---------------------------------------------------------
   2.  SoV matrix table — refined thead + zebra hover
   --------------------------------------------------------- */
.sov-matrix thead th {
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.12em;
}
.sov-mrow {
  transition: background 160ms var(--polish-ease);
}
.sov-mrow:hover > th,
.sov-mrow:hover > td {
  background: var(--bg-soft);
}
.sov-mrow > th,
.sov-mrow > td {
  transition: background 160ms var(--polish-ease);
}

/* ---------------------------------------------------------
   3.  Identity-graphic + canonical-card — refined depth
   --------------------------------------------------------- */
.canonical-card,
.identity-graphic {
  transition:
    border-color 200ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease),
    transform 220ms var(--polish-ease);
}
.canonical-card:hover,
.identity-graphic:hover {
  border-color: var(--line-strong);
  box-shadow: var(--polish-card-hover);
}

/* Identity graphic confidence chip — subtle dot accent */
.identity-graphic .confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.identity-graphic .confidence::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

/* ---------------------------------------------------------
   4.  Tier-card depth refinement
   --------------------------------------------------------- */
.tier-card {
  transition:
    border-color 200ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease),
    transform 220ms var(--polish-ease);
}
.tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--polish-card-hover);
}

/* ---------------------------------------------------------
   5.  Card-more disclosure — branded +/x rotation
   --------------------------------------------------------- */
.card-more summary::after {
  transition: transform 280ms var(--polish-ease), background 220ms var(--polish-ease), color 200ms var(--polish-ease);
  will-change: transform;
}
.card-more[open] summary::after {
  transform: rotate(45deg);
  background: rgba(204, 128, 102, 0.16);
  color: var(--primary-700);
}
.card-more summary {
  transition: color 160ms var(--polish-ease);
}
.card-more summary:hover {
  color: var(--primary-700);
}

/* ---------------------------------------------------------
   6.  Source-drawer disclosure — same pattern
   --------------------------------------------------------- */
.source-drawer summary {
  transition: background 200ms var(--polish-ease), color 160ms var(--polish-ease);
}
.source-drawer summary::after {
  transition: transform 280ms var(--polish-ease), background 220ms var(--polish-ease), color 200ms var(--polish-ease);
  will-change: transform;
}
.source-drawer[open] summary::after {
  transform: rotate(45deg);
}
.source-drawer summary:hover { color: var(--primary-700); }

/* ---------------------------------------------------------
   7.  Tooltip — refined data-tip chip
   --------------------------------------------------------- */
[data-tip] {
  position: relative;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f2937, var(--ink));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px -10px rgba(17, 24, 39, 0.5);
  line-height: 1.4;
  max-width: 280px;
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before {
  border-bottom-color: var(--ink) !important;
}

/* ---------------------------------------------------------
   8.  Sidebar brand-logo — subtle interaction
   --------------------------------------------------------- */
.brand {
  transition: background 200ms var(--polish-ease);
}
.brand:hover {
  background: var(--bg-soft);
}
.brand-logo {
  transition: transform 480ms var(--polish-ease), filter 320ms var(--polish-ease);
}
.brand:hover .brand-logo {
  transform: scale(1.04) rotate(-2deg);
  filter: drop-shadow(0 4px 10px rgba(204, 128, 102, 0.18));
}

/* ---------------------------------------------------------
   9.  Fix-meta dl rhythm
   --------------------------------------------------------- */
.fix-meta dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.fix-meta dd {
  color: var(--ink);
  line-height: 1.55;
}

/* ---------------------------------------------------------
   10.  Sticky heading — subtle shadow appearance when stuck.
   We use a clever trick: add transparent border that becomes
   a colored shadow via box-shadow-inset on the SCROLL CONTAINER.
   Since detecting stuck without JS is hard, use scroll-driven
   animation where supported (Chromium 115+).
   --------------------------------------------------------- */
@supports (animation-timeline: scroll(nearest)) {
  .sticky-heading {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background 220ms var(--polish-ease), -webkit-backdrop-filter 220ms var(--polish-ease), backdrop-filter 220ms var(--polish-ease);
  }
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-7  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .wshfc-callout__path li::before {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 2px 4px rgba(17, 24, 39, 0.14);
  }
  [data-tip]:hover::after,
  [data-tip]:focus-visible::after {
    font-size: 10.5px;
    max-width: 240px;
  }
  /* Sidebar logo zoom disabled on mobile (sidebar is hidden anyway) */
  .brand:hover .brand-logo { transform: none; }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wshfc-callout__path li::before,
  .wshfc-callout__path li.is-target::before,
  .canonical-card,
  .identity-graphic,
  .tier-card,
  .card-more summary::after,
  .source-drawer summary::after,
  .brand-logo {
    transition: none !important;
  }
  .wshfc-callout__path li:hover::before,
  .canonical-card:hover,
  .identity-graphic:hover,
  .tier-card:hover,
  .brand:hover .brand-logo {
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Touch devices  ░░░░
   --------------------------------------------------------- */
@media (hover: none) {
  .wshfc-callout__path li:hover::before,
  .canonical-card:hover,
  .identity-graphic:hover,
  .tier-card:hover,
  .brand:hover .brand-logo {
    transform: none;
  }
  [data-tip]:hover::after,
  [data-tip]:hover::before {
    display: none;
  }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .wshfc-callout__path li::before {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #999;
    box-shadow: none !important;
  }
  .wshfc-callout__path li.is-target::before {
    background: #000 !important;
    color: #fff !important;
  }
  [data-tip]::after,
  [data-tip]::before { display: none !important; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 8  ░░░░░░░░░░░░░░░
   Exec-card icons, insight cards, heatmap cells, mobile
   hamburger, glossary trigger, topbar h1 micro-typography.
   ========================================================= */

/* ---------------------------------------------------------
   1.  Exec-card icons — gradient + inset highlight + glow
   --------------------------------------------------------- */
.exec-card__icon {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)) !important;
  background-blend-mode: overlay;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 10px -2px rgba(0, 0, 0, 0.12);
  transition: transform 220ms var(--polish-ease), box-shadow 240ms var(--polish-ease);
}
.exec-card--good .exec-card__icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(160deg, #16a34a 0%, #15803d 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px -2px rgba(22, 163, 74, 0.32);
}
.exec-card--bad .exec-card__icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(160deg, #dc2626 0%, #991b1b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px -2px rgba(220, 38, 38, 0.32);
}
.exec-card--action .exec-card__icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(160deg, #2563eb 0%, #1e3a8a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px -2px rgba(37, 99, 235, 0.32);
}
.exec-card:hover .exec-card__icon {
  transform: scale(1.06);
}

/* ---------------------------------------------------------
   2.  Insight-list articles — refined hover + numbered chip
   --------------------------------------------------------- */
.insight-list article {
  transition:
    transform 220ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease),
    border-color 200ms var(--polish-ease);
}
.insight-list article:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--polish-card-hover);
}
/* Numbered chip in insight list — refined gradient (warmer than rank) */
.insight-list .insight-num {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(160deg, #cc8066 0%, var(--primary) 70%, var(--primary-700) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 4px rgba(204, 128, 102, 0.22),
    0 6px 14px -6px rgba(204, 128, 102, 0.4);
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.01em;
  transition: transform 220ms var(--polish-ease), box-shadow 220ms var(--polish-ease);
}
.insight-list article:hover .insight-num {
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 8px rgba(204, 128, 102, 0.28),
    0 10px 20px -8px rgba(204, 128, 102, 0.5);
}

/* ---------------------------------------------------------
   3.  Heatmap cells — refined hover with shadow ring
   --------------------------------------------------------- */
.heatmap-cell {
  transition:
    filter 200ms var(--polish-ease),
    transform 220ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease) !important;
}
.heatmap-cell:hover {
  filter: brightness(1.08) saturate(1.06) !important;
  transform: scale(1.04) !important;
  box-shadow:
    0 6px 16px -6px rgba(17, 24, 39, 0.24),
    0 0 0 2px rgba(204, 128, 102, 0.18) !important;
}

/* ---------------------------------------------------------
   4.  Mobile nav hamburger — refined animation curve
   --------------------------------------------------------- */
.mobile-nav-toggle span {
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 200ms var(--polish-ease) !important;
}
.mobile-nav-toggle:hover span {
  background: var(--primary);
}
.mobile-nav-toggle[aria-expanded="true"] {
  background: var(--primary-100) !important;
}
.mobile-nav-toggle[aria-expanded="true"] span {
  background: var(--primary);
}

/* ---------------------------------------------------------
   5.  Glossary drawer — branded summary with chevron
   --------------------------------------------------------- */
.glossary-drawer {
  transition: border-color 200ms var(--polish-ease), box-shadow 240ms var(--polish-ease);
}
.glossary-drawer:hover {
  border-color: var(--line-strong);
}
.glossary-drawer > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 44px 4px 4px;
  list-style: none;
  font-weight: 600 !important;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 160ms var(--polish-ease);
}
.glossary-drawer > summary::-webkit-details-marker {
  display: none;
}
.glossary-drawer > summary::before {
  content: "Glossary";
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: rgba(204, 128, 102, 0.08);
  border: 1px solid rgba(204, 128, 102, 0.18);
  border-radius: 999px;
}
/* Hide the original "Glossary —" prefix text by truncating via flex order */
.glossary-drawer > summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary-700);
  background: rgba(204, 128, 102, 0.08);
  transition: transform 280ms var(--polish-ease), background 220ms var(--polish-ease);
}
.glossary-drawer[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: rgba(204, 128, 102, 0.16);
}
.glossary-drawer > summary:hover {
  color: var(--primary-700);
}
.glossary-drawer > summary:hover::after {
  background: rgba(204, 128, 102, 0.16);
}

/* ---------------------------------------------------------
   6.  Topbar h1 — micro-typography refinement
   --------------------------------------------------------- */
.topbar h1 {
  letter-spacing: -0.025em;
  font-feature-settings: "ss01" 1, "cv11" 1;
}

/* ---------------------------------------------------------
   7.  This-week-bar refined chrome
   --------------------------------------------------------- */
.this-week-bar {
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.this-week-bar__kicker {
  position: relative;
  padding-left: 14px;
}
.this-week-bar__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 128, 102, 0.14);
  transform: translateY(-50%);
}

/* ---------------------------------------------------------
   8.  Pilot takeaways insight-list (wedge pilot bottom 4) —
   reuse insight-list styling but match section context
   --------------------------------------------------------- */
.pilot-takeaways .insight-list article {
  padding: 18px 18px 14px 18px;
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-8  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .glossary-drawer > summary {
    padding-right: 40px;
  }
  .glossary-drawer > summary::after {
    width: 26px;
    height: 26px;
  }
  .insight-list article {
    padding-left: 56px;
  }
  .insight-list .insight-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 16px;
    left: 14px;
  }
  /* Hamburger touch target */
  .mobile-nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .exec-card__icon,
  .insight-list article,
  .insight-list .insight-num,
  .heatmap-cell,
  .glossary-drawer,
  .glossary-drawer > summary::after,
  .mobile-nav-toggle span {
    transition: none !important;
    animation: none !important;
  }
  .exec-card:hover .exec-card__icon,
  .insight-list article:hover,
  .insight-list article:hover .insight-num,
  .heatmap-cell:hover {
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Touch devices  ░░░░
   --------------------------------------------------------- */
@media (hover: none) {
  .exec-card:hover .exec-card__icon,
  .insight-list article:hover,
  .insight-list article:hover .insight-num,
  .heatmap-cell:hover { transform: none !important; }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .exec-card__icon,
  .insight-list .insight-num {
    box-shadow: none !important;
    background: #000 !important;
    color: #fff !important;
  }
  .glossary-drawer > summary::after,
  .glossary-drawer > summary::before { display: none !important; }
  .heatmap-cell { box-shadow: none !important; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 9  ░░░░░░░░░░░░░░░
   Bucket badges, fix-time chips, badge.action-focus,
   how-to-read body, engine-mark depth, failure-cards,
   section-collapsed open body, metric-strip rhythm.
   ========================================================= */

/* ---------------------------------------------------------
   1.  Bucket badges — leading currentColor dot, refined depth
   --------------------------------------------------------- */
.badge.fix-now,
.badge.needs-approval,
.badge.defer {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  border: 1px solid currentColor;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.badge.fix-now::before,
.badge.needs-approval::before,
.badge.defer::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.badge.fix-now {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.18), rgba(22, 163, 74, 0.10));
  border-color: rgba(22, 163, 74, 0.28);
}
.badge.needs-approval {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.10));
  border-color: rgba(217, 119, 6, 0.28);
}
.badge.defer {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.08));
  border-color: rgba(124, 58, 237, 0.26);
}

/* ---------------------------------------------------------
   2.  Action-focus badge — premium "this week" with attention pulse
   --------------------------------------------------------- */
.badge.action-focus {
  background: linear-gradient(180deg, rgba(204, 128, 102, 0.18), rgba(204, 128, 102, 0.10)) !important;
  color: var(--primary-700) !important;
  border: 1px solid rgba(204, 128, 102, 0.28);
  padding-left: 8px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.badge.action-focus::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------
   3.  Fix-time chip — refined gradient + tabular nums
   --------------------------------------------------------- */
.fix-card .fix-time {
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border: 1px solid var(--line);
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.005em;
  padding: 4px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------
   4.  Hero engine-mark — refined depth on the engine icons
   --------------------------------------------------------- */
.engine-mark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    var(--bg-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(17, 24, 39, 0.06);
  transition:
    transform 220ms var(--polish-ease),
    box-shadow 220ms var(--polish-ease),
    border-color 220ms var(--polish-ease);
}
.engine-row li:hover .engine-mark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 14px -6px rgba(17, 24, 39, 0.18),
    0 0 0 2px rgba(204, 128, 102, 0.12);
}

/* ---------------------------------------------------------
   5.  How-to-read body — refined typography & rhythm
   --------------------------------------------------------- */
.how-to-read__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 18px;
}
.how-to-read__col {
  position: relative;
  padding-left: 14px;
}
.how-to-read__col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(204, 128, 102, 0.2));
  border-radius: 2px;
}
.how-to-read__col p.utility {
  margin: 0 0 10px;
  color: var(--primary-700);
}
.how-to-read__col ul,
.how-to-read__col ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.how-to-read__col li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.how-to-read__col li b {
  color: var(--ink);
  font-weight: 600;
}
.how-to-read__pointer {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------
   6.  Failure-card receipts — refined hover lift
   --------------------------------------------------------- */
.failure-card.receipt {
  transition:
    transform 220ms var(--polish-ease),
    box-shadow 240ms var(--polish-ease),
    border-color 200ms var(--polish-ease);
}
.failure-card.receipt:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--polish-card-hover);
}

/* ---------------------------------------------------------
   7.  Section-collapsed open body — fade in heatmap panel
   --------------------------------------------------------- */
.section-collapsed[open] > .panel,
.section-collapsed[open] > div {
  animation: polish-section-fade-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes polish-section-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   8.  Metric-strip — refined rhythm
   --------------------------------------------------------- */
.metric-strip {
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.metric-strip > div {
  position: relative;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 200ms var(--polish-ease);
}
.metric-strip > div:hover {
  background: var(--bg-soft);
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-9  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .how-to-read__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .how-to-read__col {
    padding-left: 12px;
  }
  .badge.fix-now,
  .badge.needs-approval,
  .badge.defer,
  .badge.action-focus {
    padding: 0 10px 0 8px;
    font-size: 10.5px;
  }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .engine-mark,
  .failure-card.receipt,
  .metric-strip > div {
    transition: none !important;
  }
  .engine-row li:hover .engine-mark,
  .failure-card.receipt:hover {
    transform: none !important;
  }
  .section-collapsed[open] > .panel,
  .section-collapsed[open] > div {
    animation: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Touch devices  ░░░░
   --------------------------------------------------------- */
@media (hover: none) {
  .engine-row li:hover .engine-mark,
  .failure-card.receipt:hover,
  .metric-strip > div:hover {
    transform: none !important;
    background: transparent;
  }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .badge.fix-now,
  .badge.needs-approval,
  .badge.defer,
  .badge.action-focus {
    background: transparent !important;
    border: 1px solid currentColor !important;
    box-shadow: none !important;
  }
  .fix-card .fix-time {
    background: transparent !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .how-to-read__col::before { display: none !important; }
}

/* =========================================================
   ░░░░░░░░░░░░░░░  POLISH — PASS 10  ░░░░░░░░░░░░░░░
   Snippet cites & stamps, identity confidence pills,
   topic chips, panel titles, sidebar typography.
   ========================================================= */

/* ---------------------------------------------------------
   1.  Snippet cite pills — refined depth + leading dot
   --------------------------------------------------------- */
.snippet-cite-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border: 1px solid currentColor;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 200ms var(--polish-ease), border-color 200ms var(--polish-ease);
}
.snippet-cite-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}
.snippet-cite-pill:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.snippet-cite-pill--strong {
  background: linear-gradient(180deg, rgba(204, 128, 102, 0.16), rgba(204, 128, 102, 0.08)) !important;
  border-color: rgba(204, 128, 102, 0.28) !important;
}
.snippet-cite-pill--weak {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.10), rgba(220, 38, 38, 0.04)) !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
}
.snippet-cite-pill--missing {
  background: linear-gradient(180deg, var(--bg-soft), #ffffff) !important;
  border-color: var(--line) !important;
}
.snippet-cite-pill--missing::before {
  opacity: 0.4;
}

/* ---------------------------------------------------------
   2.  Snippet stamps (False / Projected) — refined tracking
   --------------------------------------------------------- */
.snippet-stamp {
  letter-spacing: 0.24em;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-feature-settings: "tnum" 1;
}
.snippet-stamp--false {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.16), rgba(220, 38, 38, 0.08)) !important;
}
.snippet-stamp--projected {
  background: linear-gradient(180deg, rgba(204, 128, 102, 0.16), rgba(204, 128, 102, 0.08)) !important;
}

/* ---------------------------------------------------------
   3.  Identity confidence pills — refined gradient depth
   --------------------------------------------------------- */
.identity-graphic .confidence {
  padding: 0 12px 0 10px;
  border: 1px solid currentColor;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  font-feature-settings: "tnum" 1;
  transition: transform 200ms var(--polish-ease);
}
.identity-graphic.fragmented .confidence.low {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.16), rgba(220, 38, 38, 0.08)) !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
}
.identity-graphic.aligned .confidence.high {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0.08)) !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
}

/* ---------------------------------------------------------
   4.  Buyer-proof topic chips — refined hover lift
   --------------------------------------------------------- */
.chip {
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #ffffff, var(--bg-soft)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 200ms var(--polish-ease),
    border-color 200ms var(--polish-ease),
    box-shadow 220ms var(--polish-ease);
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 10px -4px rgba(17, 24, 39, 0.12);
}
.chip i {
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary-100);
  font-feature-settings: "tnum" 1;
  font-size: 0.85em;
}

/* Chip-source meta row — refined */
.chip-source {
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.chip-rating {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ---------------------------------------------------------
   5.  Panel-title — refined typography rhythm
   --------------------------------------------------------- */
.panel-title h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-feature-settings: "ss01" 1;
}
.panel-title span {
  font-family: var(--font-mono);
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  font-feature-settings: "tnum" 1;
  color: var(--muted-2);
}

/* ---------------------------------------------------------
   6.  Sidebar — refined brand + note typography
   --------------------------------------------------------- */
.brand strong,
.brand b {
  letter-spacing: -0.018em;
}
.sidebar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--bg-soft));
  line-height: 1.4;
}

/* ---------------------------------------------------------
   7.  Hero "Tested across the leading search engines" label —
   refined uppercase tracking
   --------------------------------------------------------- */
.engine-strip-label {
  letter-spacing: 0.14em;
  font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------
   ░░░░  Mobile pass-10  ░░░░
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .snippet-cite-pill {
    padding: 3px 9px 3px 7px;
    font-size: 10.5px;
  }
  .snippet-stamp { letter-spacing: 0.2em; }
  .chip {
    padding: 5px 11px;
  }
  .sidebar-note {
    padding: 8px 10px;
  }
}

/* ---------------------------------------------------------
   ░░░░  Reduced motion  ░░░░
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .snippet-cite-pill,
  .chip,
  .identity-graphic .confidence {
    transition: none !important;
  }
  .snippet-cite-pill:hover,
  .chip:hover {
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Touch devices  ░░░░
   --------------------------------------------------------- */
@media (hover: none) {
  .snippet-cite-pill:hover,
  .chip:hover {
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   ░░░░  Print  ░░░░
   --------------------------------------------------------- */
@media print {
  .snippet-cite-pill,
  .snippet-stamp,
  .identity-graphic .confidence,
  .chip {
    box-shadow: none !important;
    background: transparent !important;
    border: 1px solid currentColor !important;
  }
}

/* ------------------------------------------------------------------
   Sample disclosure banner — only present in the /sample demo build.
   Sits at the very top of <body>, above the .app-shell.
   ------------------------------------------------------------------ */
.sample-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6f4316;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1de 100%);
  border-bottom: 1px solid #f3d8a3;
}
.sample-banner-tag {
  flex: none;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  color: #8a4b00;
  background: #ffe5b8;
  border: 1px solid #f3c98a;
}
.sample-banner-copy { flex: 1; }
@media (max-width: 640px) {
  .sample-banner { padding: 10px 14px; font-size: 0.75rem; }
}
@media print {
  .sample-banner { display: none !important; }
}
