/* RankOps v2 design system — dark, one accent, no framework. */
:root {
  --bg: #090D0B;
  --bg-raise: #121A15;
  --line: #20302A;
  --text: #F2F5EF;
  --text-dim: #B2BDB3;
  --accent: #A8FF3E;          /* neon green: CTAs, bars, large emphasis (dominant) */
  --accent-press: #8FE62E;
  --accent-ink: #8FE66A;      /* toned green for small text / links (avoids halation) */
  --on-accent: #04170C;       /* ink on a green button */
  --gold: #C7A461;            /* restrained, sparse decoration only */
  --gold-dim: rgba(199,164,97,.4);
  --danger: #f87171;
  --warn: #fbbf24;            /* functional status only, never decoration */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --line-strong: #5F6F65;     /* input borders: >= 3:1 against the field and the card (WCAG 1.4.11) */
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; font-size: 1.0625rem; }
.wrap { max-width: 67.5rem; margin: 0 auto; padding: 0 var(--space-3); }
main { display: block; }
img { max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.25; margin-bottom: var(--space-2); }
h3 { font-size: 1.15rem; }
p + p { margin-top: var(--space-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9,13,11,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem var(--space-3); }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: var(--space-3); align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary { color: var(--on-accent); font-weight: 700; }
.nav-links a.btn-primary:hover { color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem; }
/* phone CTA beside the menu button, so the free map is one tap away after the hero; hidden where the map is no use */
.nav-row .nav-cta-m { display: none; }
@media (max-width: 47.5em) {
  .nav-row { gap: .5rem; }
  .nav-row .nav-cta-m { display: inline-block; margin-left: auto; padding: .72rem .9rem; font-size: .9rem; line-height: 1.5; white-space: nowrap; }
  .no-map-cta .nav-row .nav-cta-m { display: none; }
}
@media (max-width: 24em) { .nav-cta-long { display: none; } }
@media (max-width: 47.5em) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-raise); padding: var(--space-3); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
}

/* buttons — ONE primary weight; it is THE cta */
.btn-primary { display: inline-block; background: var(--accent); color: var(--on-accent); font-family: inherit; font-weight: 700; padding: .9rem 1.6rem; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1.05rem; }
.btn-primary:hover { background: var(--accent-press); text-decoration: none; }
.btn-sm { padding: .62rem 1rem; font-size: .95rem; line-height: 1.6; }
.btn-ghost { display: inline-block; color: var(--text-dim); padding: .9rem 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* sections + components */
section { padding: var(--space-5) 0; }
.hero { padding: var(--space-5) 0 var(--space-4); }
.eyebrow { color: var(--accent-ink); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.lead { font-size: 1.2rem; color: var(--text-dim); max-width: 46rem; margin-top: var(--space-2); }
.speakable { font-size: 1.05rem; }
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.grid-3 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.proof-band { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); }
.proof-band strong { color: var(--accent); font-size: 1.3rem; display: block; }
.price { font-size: 2.2rem; font-weight: 800; }
.price small { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .4rem 0 .4rem 1.7rem; position: relative; }
.check-list li::before { content: "✓"; color: var(--accent-ink); position: absolute; left: 0; font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: var(--space-1); color: var(--text-dim); }
.note { color: var(--text-dim); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); }
th { color: var(--text-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* forms */
input, select, textarea { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .8rem; font-size: 1rem; width: 100%; font-family: var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
input::placeholder, textarea::placeholder { color: #8A968D; opacity: 1; }
.code-out { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: .8rem; max-height: 320px; white-space: pre-wrap; word-break: break-word; }
.faq-row { display: flex; gap: .5rem; margin: .5rem 0; align-items: flex-start; }
.faq-row input, .faq-row textarea { flex: 1; }
.row-del { background: none; border: 0; color: var(--danger); font-size: 1.3rem; cursor: pointer; }
.check-form { display: grid; gap: var(--space-2); max-width: 30rem; }
.nl-form { display: flex; gap: var(--space-1); margin-top: var(--space-1); }

/* score gauge + reveal (track page) */
.gauge-wrap { display: grid; place-items: center; padding: var(--space-3); }
.gauge { position: relative; width: 180px; height: 180px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }
.tier-badge { display: inline-block; padding: .25rem .8rem; border-radius: 99px; background: var(--bg-raise); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.check-row { display: flex; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.check-row.pass::before { content: "✓"; color: var(--accent); font-weight: 700; }
.check-row.gated { color: var(--text-dim); font-style: italic; }
.check-row.gated::before { content: "🔒"; }
.kpi-row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2); text-align: center; }
.kpi strong { display: block; font-size: 1.8rem; color: var(--accent); }
.kpi span { color: var(--text-dim); font-size: .85rem; }
.hidden { display: none !important; }
.status-cited { color: var(--accent); font-weight: 600; }
.status-miss { color: var(--danger); font-weight: 600; }
.status-retry { color: var(--warn); font-weight: 600; }
/* The AI's answer under each tracked prompt: clamped to 3 lines, click to
   toggle the full text. */
.ai-answer { margin: .35rem 0 0; color: var(--text-dim); font-size: .85rem; line-height: 1.5; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-answer.open { display: block; overflow: visible; }
.ai-answer:hover { color: var(--text); }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-2); color: var(--text-dim); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid a { display: block; color: var(--text-dim); padding: .15rem 0; }
.footer-h { font-weight: 700; color: var(--text); margin-bottom: var(--space-1); }
.footer-legal { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: .85rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: all .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── lead board (/track/) ──────────────────────────────────────────────── */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.board-section { padding-top: var(--space-4); }
.board-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.board-title-row .lead { margin-top: .6rem; font-size: 1.05rem; }
.board-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding-bottom: .3rem; }
.btn-outline { border: 1px solid var(--line); border-radius: 8px; padding: .55rem 1rem; min-height: 2.75rem; font-size: .95rem; color: var(--text-dim); background: var(--bg-raise); cursor: pointer; font-family: var(--font); }
.btn-outline:hover { color: var(--text); border-color: var(--text-dim); text-decoration: none; }
.tab-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); margin: 0 .35rem 0 .1rem; vertical-align: middle; }

/* summary tiles */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: var(--space-2); }
.stat { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.stat strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
#st-hot { color: var(--warn); }
#st-sold { color: var(--accent); }

/* toolbar */
.board-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: .8rem; }
.toolbar-right { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.chip-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { background: var(--bg-raise); border: 1px solid var(--line); color: var(--text-dim); border-radius: 99px; padding: .35rem .85rem; font-size: .88rem; cursor: pointer; font-family: var(--font); }
.chip em { font-style: normal; opacity: .7; margin-left: .25rem; font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(168,255,62,.12); border-color: var(--accent); color: var(--accent); }
#board-search { max-width: 16rem; padding: .5rem .9rem; font-size: .92rem; border-radius: 99px; }

/* the table */
/* The board is wider than the page, so it scrolls sideways on desktop. Nobody
   discovers that on their own: .board-scroller is the positioned parent for a
   right-edge fade, toggled by updateBoardScroll() in track.js, paired with the
   #board-hint line. Below 760px the table stops being a table (see the mobile
   block) and neither cue applies. */
.board-scroller { position: relative; }
.board-scroller::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3rem; pointer-events: none; opacity: 0; transition: opacity .2s ease; border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(to right, rgba(18,26,21,0), rgba(18,26,21,.95)); }
.board-scroller.can-scroll-x::after { opacity: 1; }
.board-hint { margin-top: .5rem; }
.board-sort { display: none; }
.board-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: 65vh; background: var(--bg-raise); }
table.board { font-size: .93rem; }
/* Only the 11-column Lead Board needs the wide min-width; the war-room tables
   (2-col leaderboard, tracked prompts) should fit their container instead of
   forcing horizontal scroll that hides the count column. */
#board-table { min-width: 1080px; }
#wr-leaderboard td:first-child { white-space: normal; word-break: break-word; }
.board thead th { position: sticky; top: 0; background: var(--bg-raise); z-index: 2; border-bottom: 1px solid var(--line); padding: 0; }
.board thead th button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text-dim); font-family: var(--font); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .65rem .7rem; cursor: pointer; white-space: nowrap; }
.board thead th button:hover { color: var(--text); }
.board th.sort-asc button::after { content: " ↑"; color: var(--accent); }
.board th.sort-desc button::after { content: " ↓"; color: var(--accent); }
.board td { padding: .45rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.board tbody tr:hover { background: rgba(255,255,255,.025); }
.board tbody tr:last-child td { border-bottom: 0; }
.board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.board th.num button { text-align: right; }
.board .dim { color: var(--text-dim); }
.board .issue { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; }
.board .site-link { color: var(--text-dim); }
.board .site-link:hover { color: var(--accent); }
.board-none { padding: var(--space-3); }
.linklike { background: none; border: 0; color: var(--text); font: inherit; font-family: var(--font); font-weight: 600; cursor: pointer; padding: 0; }
.linklike:hover { color: var(--accent); }

/* score + status pills */
.score-pill { display: inline-block; min-width: 2.5rem; text-align: center; padding: .12rem .5rem; border-radius: 99px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.score-pill.s-low { color: var(--danger); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); }
.score-pill.s-mid { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }
.score-pill.s-high { color: var(--accent); border-color: rgba(168,255,62,.4); background: rgba(168,255,62,.1); }
.score-pill.s-none { color: var(--text-dim); }
select.status-pill { width: auto; padding: .28rem .6rem; font-size: .85rem; font-weight: 600; border-radius: 99px; background: var(--bg); cursor: pointer; }
select.status-pill[data-status="hot"] { color: var(--warn); border-color: rgba(251,191,36,.55); }
select.status-pill[data-status="pending"] { color: var(--text-dim); }
select.status-pill[data-status="completed"] { color: var(--text); border-color: var(--text-dim); }
select.status-pill[data-status="sold"] { color: var(--accent); border-color: rgba(168,255,62,.55); }
select.status-pill option { color: var(--text); background: var(--bg-raise); }

/* inline-edit cells */
.cell-edit { background: transparent; border: 1px solid transparent; padding: .3rem .5rem; font-size: .9rem; border-radius: 6px; width: 11rem; }
.cell-edit:hover { border-color: var(--line); }
.cell-edit:focus { background: var(--bg); }
.cell-edit::placeholder { color: var(--text-dim); opacity: .55; font-style: italic; }

/* row menu */
.actions-col { width: 2.6rem; }
.row-actions { text-align: right; }
.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; cursor: pointer; color: var(--text-dim); padding: .1rem .55rem; border-radius: 6px; font-weight: 700; user-select: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover { color: var(--text); background: rgba(255,255,255,.05); }
/* fixed, not absolute: escapes .board-wrap's overflow:auto instead of being
   clipped by it; JS sets left/top from the summary's real viewport rect. */
.row-menu .menu { position: fixed; z-index: 95; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 8px; padding: .3rem; min-width: 10.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.row-menu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: .45rem .7rem; border-radius: 6px; cursor: pointer; font-size: .9rem; font-family: var(--font); }
.row-menu .menu button:hover { background: rgba(255,255,255,.06); }
.row-menu .menu button.danger { color: var(--danger); }
.row-menu .menu-confirm { padding: .4rem .7rem .55rem; margin: 0; font-size: .85rem; color: var(--text-dim); white-space: normal; }

/* audit panel + lead drawer */
.check-panel { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.check-panel.inline { max-width: 34rem; margin-top: var(--space-2); }
.check-panel.over { position: fixed; top: 0; right: 0; bottom: 0; width: min(26rem, 100%); z-index: 70; border-radius: 0; border: 0; border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; overflow-y: auto; }
.check-panel.over.open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.panel-close { background: none; border: 0; color: var(--text-dim); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.panel-close:hover { color: var(--text); }
.field-2 { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.prospect-toggle { display: flex; gap: .5rem; align-items: center; }
.prospect-toggle input { width: auto; }
.empty-intro { max-width: 34rem; margin-top: var(--space-3); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(28rem, 100%); z-index: 80; background: var(--bg-raise); border-left: 1px solid var(--line); overflow-y: auto; padding: var(--space-3); transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.drawer-head h2 { margin-bottom: .2rem; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; }
/* Sticky, not just last-in-the-drawer: on a phone the results ended in nothing
   to do, and the page's "Citation Tracker" button sits behind the backdrop
   while the drawer is open. Negative margins bleed it through .drawer's padding. */
/* bottom is the negative of .drawer's padding, not 0: sticky measures from the
   scrollport's padding edge, so bottom:0 parks it 1.5rem short of the drawer's
   real bottom and leaves a gap under the buttons. */
.drawer-cta { position: sticky; bottom: calc(-1 * var(--space-3)); display: grid; gap: .6rem; margin: var(--space-3) calc(-1 * var(--space-3)) calc(-1 * var(--space-3)); padding: var(--space-3); background: var(--bg-raise); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .board-title-row { align-items: flex-start; }
  #board-search { max-width: 100%; flex: 1; }
  .field-2 { grid-template-columns: 1fr; }
  .toolbar-right { width: 100%; }
  .board-sort { display: block; width: auto; }

  /* No sideways scrolling on a phone: the 11-column board becomes one stacked
     card per lead, every field labelled in place from its td[data-label] (set
     in buildRow). Scoped to #board-table so the war-room leaderboard and the
     tracked-prompts table stay real tables. */
  .board-scroller::after { display: none; }
  /* only the lead board's wrap sheds its frame — the war-room tables keep theirs */
  .board-scroller .board-wrap { overflow: visible; max-height: none; border: 0; background: none; border-radius: 0; }
  #board-table { min-width: 0; display: block; font-size: 1rem; }
  #board-table thead { display: none; }
  #board-table tbody { display: block; }
  #board-table tbody tr { display: block; position: relative; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: .3rem .9rem .5rem; margin-bottom: .7rem; }
  #board-table tbody tr:hover { background: var(--bg-raise); }
  /* separators go between the stacked fields (border-top), not after the last
     one, so no card ends in a dangling rule */
  #board-table td { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; align-items: center; white-space: normal; overflow-wrap: anywhere; padding: .38rem 0; line-height: 1.4; text-align: left; border-bottom: 0; }
  #board-table td + td { border-top: 1px solid var(--line); }
  #board-table td::before { content: attr(data-label); color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
  #board-table td:first-child { padding-right: 2.5rem; }
  #board-table td.num { text-align: left; }
  #board-table td.issue { max-width: none; overflow: visible; text-overflow: clip; }
  #board-table .cell-edit { width: 100%; border-color: var(--line); }
  /* the ⋯ menu pins to the card's top-right instead of taking a labelled row */
  #board-table td.row-actions { position: absolute; top: .5rem; right: .5rem; display: block; padding: 0; border: 0; }
  #board-table td.row-actions::before { content: none; }
  /* tracked prompts on the tracker dashboard: also no sideways scroll */
  #db-prompts td { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .check-panel.over { transition: none; } }

/* ── citation tracker war room ───────────────────────────────────────────── */
.wr-you-row td { color: var(--accent); font-weight: 700; }
.src-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.src-row:last-child { border-bottom: 0; }
.evt-row { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.5; }
.evt-row:last-child { border-bottom: 0; }
.wr-history { display: flex; gap: .28rem; align-items: center; }
.wr-dot { width: .5rem; height: .5rem; border-radius: 50%; flex: none; display: inline-block; }
.wr-dot.cited { background: var(--accent); }
.wr-dot.miss { background: var(--danger); opacity: .6; }
.wr-dot.error { background: var(--warn); opacity: .6; }
.wr-spark-empty { margin-top: .5rem; }

/* ===================================================================
   Refresh 2026-09-11: accessibility states, interaction polish, and the
   marketing component library (ported from the prior sandbox increment,
   retokenized to the new palette). Green dominant, gold sparse, amber
   functional-status only.
   =================================================================== */

/* focus-visible everywhere it matters (was only on form fields) */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-outline:focus-visible,
.chip:focus-visible, .nav-toggle:focus-visible, summary:focus-visible,
select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm);
}
/* button interaction states */
.btn-primary:active { background: var(--accent-press); }
.btn-primary:disabled, button:disabled, .btn-primary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
/* form validation feedback */
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: .9rem; margin-top: var(--space-1); }
.form-ok { color: var(--accent-ink); font-weight: 600; margin-top: var(--space-1); }
/* mobile nav: lock scroll while open, show the active link, keep a tall menu scrollable */
body.nav-open { overflow: hidden; }
.nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 47.5em) { .nav-links { max-height: calc(100vh - 4rem); overflow-y: auto; } }
h4 { font-size: 1rem; line-height: 1.3; }

/* ── hero with a supporting image ─────────────────────────────────────────── */
.hero-split { display: grid; gap: var(--space-4); grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-split .hero-art { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.hero-split .hero-art img { display: block; width: 100%; height: auto; }
/* On phones the form stays FIRST and the screenshot follows it. The art used to take
   order:-1 here, which pushed the signup below a tall image: the exact "it shoves
   everything down" problem the boxed stat band had. Conversion first, proof second. */
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* ── homepage hero: headline, free-map form card, details ─────────────────────
   Sized in rem/em only, so it is the same design at the 16px default (Chrome) and
   at a larger default text size (Comet at 20px): the whole thing scales together.
   Phones and tablets: head, then the FORM CARD, then the details, so the submit
   button sits in the first screen. From 60em: head and details on the left, the
   card on the right spanning both rows, top-aligned and never sticky. */
.home-hero { position: relative; padding: .75rem 0 2.5rem; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; top: -12rem; right: -14rem; width: 52rem; height: 40rem; background: radial-gradient(closest-side, rgba(168,255,62,.07), transparent 72%); pointer-events: none; }
.home-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "details"; gap: 1rem; }
.hh-head { grid-area: head; }
.hh-form { grid-area: form; }
.hh-details { grid-area: details; }
.hh-eyebrow { display: none; }
.home-hero h1 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hero-h1-accent { display: block; color: var(--accent); }
/* the location line lives inside the h1 (local signal) but reads as a quiet subline with a green dot */
.hero-h1-loc { display: block; position: relative; padding-left: 1.1rem; margin-top: .75rem; font-size: .9rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--text-dim); text-wrap: pretty; }
.hero-h1-loc::before { content: ""; position: absolute; left: .05rem; top: .47em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(168,255,62,.15); }
.hh-details .lead { margin-top: 0; font-size: 1.12rem; max-width: 36rem; }
.hero-checks { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.hero-checks li { position: relative; padding-left: 1.85rem; color: var(--text); font-size: 1rem; line-height: 1.45; }
.hero-checks li::before { content: "✓"; position: absolute; left: 0; top: .12em; width: 1.2rem; height: 1.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(168,255,62,.14); color: var(--accent); font-size: .72rem; font-weight: 800; }
.hero-proof { margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .9rem; line-height: 1.5; }
.hero-proof strong { color: var(--text); }
@media (max-width: 26em) { .home-hero h1 { font-size: 1.75rem; } }
@media (min-width: 40em) { .hero-h1-loc { font-size: 1rem; } }
/* the eyebrow pill only in the two-column layout, so a stacked hero (phones, tablets, large text) reaches the form sooner */
@media (min-width: 60em) {
  .hh-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border: 1px solid rgba(168,255,62,.35); border-radius: var(--radius-pill); background: rgba(168,255,62,.06); font-size: .75rem; }
  .home-hero h1 { margin-top: .9rem; }
  .home-hero { padding: 3rem 0 4rem; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(22rem, 27rem); grid-template-areas: "head form" "details form"; grid-template-rows: auto 1fr; column-gap: 3.5rem; row-gap: 1.5rem; align-items: start; }
  .hh-details .lead { font-size: 1.2rem; }
  .hh-form .map-card { max-width: none; }
}

/* ── free map form card (shared partial: homepage hero and /ai-visibility/) ── */
.map-card { max-width: 32rem; gap: .85rem; padding: 1.25rem; border: 1px solid rgba(168,255,62,.35); border-radius: 20px; background: linear-gradient(180deg, #131C16, #0C120E); box-shadow: 0 0 0 1px rgba(168,255,62,.08), 0 24px 60px rgba(0,0,0,.5); }
.hh-form .map-card { max-width: 38rem; }
.map-card-title { font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.map-card-sub { margin-top: .35rem; font-size: .95rem; line-height: 1.45; color: var(--text-dim); }
.map-card label { font-size: .95rem; }
.map-card input[type="text"], .map-card input[type="email"] { height: 3.25rem; padding: 0 .95rem; font-size: 1rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; }
.map-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.map-card .free-map-hint { margin-top: -.45rem; font-size: .875rem; color: var(--text-dim); }
.map-card button { width: 100%; min-height: 3.5rem; margin-top: .2rem; padding: .85rem 1rem; font-size: 1.05rem; font-weight: 800; }
.map-card .map-card-micro { margin-top: 0; font-size: .875rem; line-height: 1.5; color: var(--text-dim); text-align: center; }
.map-card .map-card-alt { margin-top: .1rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.5; color: var(--text-dim); }
.map-card-alt a { font-weight: 600; }
@media (min-width: 40em) { .map-card { padding: 1.75rem; } .map-card button { font-size: 1.1rem; } }
/* very narrow screens (or large text on a phone): drop the sub-line so the submit button stays in the first screen */
@media (max-width: 24em) { .map-card-sub { display: none; } }

/* ── the path: map, then fix, then grow and track; no website goes to the build ── */
.path { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.path-step { position: relative; display: flex; flex-direction: column; padding: 1.35rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
/* connector between steps: vertical on phones, horizontal from 60em (decorative) */
.path-step + .path-step::before { content: ""; position: absolute; left: 2.2rem; top: -1rem; width: 2px; height: 1rem; background: rgba(168,255,62,.45); }
.path-step--free { border-style: dashed; border-color: rgba(168,255,62,.45); }
.path-step--fix { border-color: rgba(168,255,62,.3); }
.path-kicker { display: flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.path-num { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid rgba(168,255,62,.5); border-radius: 50%; background: var(--bg); color: var(--accent); font-size: .9rem; letter-spacing: 0; }
.path-step h3 { margin-top: .8rem; font-size: 1.25rem; }
.path-step .path-price { margin-top: .1rem; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.path-step .path-desc { margin-top: .5rem; font-size: .95rem; color: var(--text-dim); }
.path-step .check-list { margin-top: .75rem; font-size: .92rem; }
.path-step .check-list li { padding: .25rem 0 .25rem 1.5rem; }
.path-cta { margin-top: auto; padding-top: 1.1rem; display: grid; gap: .6rem; }
.path-cta .btn-primary, .path-cta .btn-outline { width: 100%; text-align: center; }
.path-cta .note { font-size: .875rem; }
.path-cta p + p { margin-top: 0; }
.path-call { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; font-size: 1rem; font-weight: 700; color: var(--text); border-color: rgba(168,255,62,.55); text-decoration: none; }
.path-call:hover { border-color: var(--accent); text-decoration: none; }
/* arriving from the map email (/#entity-fix): the card lights up and the call button is the green one */
#entity-fix:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 48px rgba(168,255,62,.12); }
#entity-fix:target .path-call { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.path-row { margin-top: .75rem; }
.path-row + .path-row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.path-row-name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; font-weight: 700; color: var(--text); }
.path-row-name b { font-variant-numeric: tabular-nums; }
.path-row .path-row-desc { margin-top: .3rem; font-size: .92rem; color: var(--text-dim); }
.path-row a, .path-side a { display: inline-block; padding: .6rem 0; font-weight: 600; }
.path-side { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); background: var(--bg-raise); }
.path-side p { flex: 1 1 26rem; margin: 0; font-size: .95rem; color: var(--text-dim); }
.path-side strong { color: var(--text); }
@media (min-width: 60em) {
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-step + .path-step::before { left: -1rem; top: 2.3rem; width: 1rem; height: 2px; }
}

/* ── what lands in your inbox: the list, then a sample of the real email ── */
.inbox-grid { display: grid; gap: 2rem; margin-top: 2rem; align-items: start; }
.inbox-list-title { font-size: 1.1rem; font-weight: 800; }
.inbox-items { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .9rem; counter-reset: inbox; }
.inbox-items li { position: relative; padding-left: 2.6rem; counter-increment: inbox; font-size: .98rem; line-height: 1.5; color: var(--text-dim); }
.inbox-items li::before { content: counter(inbox); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 1px solid rgba(168,255,62,.4); border-radius: 50%; background: rgba(168,255,62,.1); color: var(--accent); font-size: .9rem; font-weight: 800; }
.inbox-items strong { display: block; color: var(--text); }
.inbox-list .note { margin-top: .9rem; }
.sample-email { margin: 0; padding: 1rem; border: 1px dashed rgba(178,189,179,.4); border-radius: 20px; background: linear-gradient(180deg, rgba(18,26,21,.96), rgba(9,13,11,.98)); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.sample-email-kicker { margin-bottom: .75rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.sample-email-body { padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.se-brand { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.sample-email-body .se-biz { margin-top: .2rem; font-size: 1.35rem; font-weight: 800; }
.sample-email-body .se-meta { margin-top: .1rem; font-size: .82rem; color: var(--text-dim); }
.se-score { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }
.se-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.sample-email-body .se-tier { display: inline-block; margin-top: .45rem; padding: .2rem .6rem; border: 1px solid var(--warn); border-radius: var(--radius-pill); color: var(--warn); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.se-num { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.se-num span { font-size: .9rem; font-weight: 600; color: var(--text-dim); }
.se-answers { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.se-answers li { padding: .6rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-dim); }
.se-answers q { display: block; margin-bottom: .2rem; font-size: .9rem; color: var(--text); }
.se-miss { margin-right: .3rem; color: var(--danger); font-weight: 700; }
.se-hit { color: var(--accent-ink); font-weight: 700; }
.se-fixes { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.se-fixes li::marker { color: var(--accent-ink); font-weight: 800; }
.sample-email-body .se-more { margin-top: .6rem; font-size: .8rem; color: var(--text-dim); }
.sample-email-body .se-offer { margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed rgba(168,255,62,.45); border-radius: 12px; font-size: .88rem; color: var(--text-dim); }
.se-offer b { color: var(--text); }
.sample-email-cap { margin-top: .75rem; font-size: .8rem; line-height: 1.5; color: var(--text-dim); }
@media (min-width: 60em) { .inbox-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; } }

/* ── proof: the review and the founder beside the independent report ── */
.proof-grid { display: grid; gap: 2rem; margin-top: 2rem; align-items: start; }
.proof-side .note { margin-top: .9rem; }
.founder-strip { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.founder-strip-k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.founder-strip .founder-strip-name { margin-top: .35rem; font-size: 1.15rem; font-weight: 800; }
.founder-strip .founder-strip-role { margin-top: .1rem; font-size: .9rem; color: var(--text-dim); }
.founder-strip .founder-strip-quote { margin-top: .75rem; font-size: .98rem; line-height: 1.55; color: var(--text); }
.founder-strip .founder-strip-links { margin-top: .4rem; font-size: .92rem; }
.founder-strip-links a { display: inline-block; padding: .6rem 0; }
.proof-pages { margin-top: 1.75rem; }
@media (min-width: 60em) { .proof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; } }

/* ── final ask ── */
.final-cta-box { padding: 3rem 1.5rem; text-align: center; border: 1px solid rgba(168,255,62,.3); border-radius: 24px; background: radial-gradient(ellipse at 50% 0%, rgba(168,255,62,.08), transparent 65%), var(--bg-raise); }
.final-cta-box h2 { max-width: 34rem; margin: 0 auto 1rem; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.final-cta-box .lead { max-width: 36rem; margin: 0 auto 1.75rem; }
.final-cta-box .note { margin-top: 1.1rem; }
/* Crops a screenshot's stale top chrome (old nav) inside the bordered frame without
   touching the data below it. Percentage keeps the crop proportional as the frame scales. */
.hero-art.crop-chrome { overflow: hidden; }
.hero-art.crop-chrome img { margin-top: -5.8%; }

/* pill row */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-3); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: var(--radius-pill); background: var(--bg-raise); border: 1px solid var(--line); font-size: .85rem; color: var(--text-dim); }
.pill.gold { border-color: var(--gold-dim); color: var(--gold); }
.pill.accent { border-color: rgba(168,255,62,.4); color: var(--accent-ink); }

/* full-width banner image */
.banner { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.banner img { display: block; width: 100%; height: auto; }

/* framed screenshot / figure */
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { padding: .8rem 1rem; color: var(--text-dim); font-size: .88rem; border-top: 1px solid var(--line); }
.figure-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.eyebrow.gold { color: var(--gold); }

/* numbered stage strip */
.stage-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stage { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; position: relative; }
.stage .n { font-size: .72rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.stage h4 { font-size: .98rem; margin: .2rem 0 .35rem; }
.stage p { font-size: .82rem; color: var(--text-dim); line-height: 1.45; margin: 0; }
.state { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.stage .state { margin-top: .6rem; }
.state.ok { color: var(--accent-ink); border-color: rgba(168,255,62,.45); background: rgba(168,255,62,.08); }
.state.ready { color: var(--gold); border-color: var(--gold-dim); background: rgba(199,164,97,.08); }
.state.open { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }
.state.locked { color: var(--text-dim); border-color: var(--line); }
.state.miss { color: var(--danger); border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }

/* tracked-prompt mini list */
.prompt-list { display: grid; gap: .6rem; }
.prompt-item { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.prompt-item .q { font-weight: 600; }
.prompt-item .a { color: var(--text-dim); font-size: .88rem; margin-top: .3rem; max-width: 34rem; }
.prompt-item .meta { text-align: right; font-size: .78rem; color: var(--text-dim); white-space: nowrap; }
.prompt-item .meta .state { display: inline-block; margin: 0 0 .3rem; }

/* scorecards row */
.score-row { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.score-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.score-card span { display: block; color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.score-card strong { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: .2rem; }
.score-card.good strong { color: var(--accent); }
.score-card.warn strong { color: var(--warn); }
.score-card.hold strong { color: var(--danger); }

/* fail-closed safety gates */
.gate-panel { display: grid; gap: var(--space-3); grid-template-columns: minmax(220px, .8fr) 1.2fr; align-items: start; }
.gate-lead { background: #000; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.gate-lead .eyebrow { color: var(--danger); }
.gate-list { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; }
.gate { display: flex; justify-content: space-between; gap: .5rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .8rem; font-size: .9rem; }
.gate b { color: var(--text-dim); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .gate-panel { grid-template-columns: 1fr; } .gate-list { grid-template-columns: 1fr; } }

/* visibility loop / process band */
.loop { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: var(--space-2); }
.loop span { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .45rem .9rem; font-size: .9rem; font-weight: 600; }
.loop .arw { color: var(--accent); font-weight: 700; }

/* claim / boundary callouts */
.callout { border-left: 3px solid var(--accent); background: var(--bg-raise); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; }
.callout.warn { border-left-color: var(--warn); }
.callout h4 { margin: 0 0 .3rem; font-size: 1rem; }
.callout p { margin: 0; color: var(--text-dim); }

/* project cards */
.project { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project .thumb { background: #000; border-bottom: 1px solid var(--line); }
.project .thumb img { display: block; width: 100%; height: auto; }
.project .body { padding: var(--space-3); }
.project .tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); font-weight: 700; }
.project h3 { margin: .3rem 0 .5rem; }
.project p { color: var(--text-dim); font-size: .95rem; }

/* founder row */
.founder { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-3); align-items: center; }
.founder img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; text-align: center; } .founder img { margin: 0 auto; } }

/* founder / expert pull quote (restrained gold accent, adds a cited quotation) */
.pullquote { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.5rem; margin: 0; max-width: 46rem; }
.pullquote p { font-size: 1.35rem; line-height: 1.45; color: var(--text); font-weight: 500; margin: 0 0 .7rem; }
.pullquote cite { color: var(--accent-ink); font-style: normal; font-weight: 600; font-size: .95rem; }

/* two-column offer comparison (Guided vs Managed, path A/B) */
.compare-2 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.offer { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; }
.offer.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.offer .tier { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; }
.offer h3 { margin: .3rem 0 .2rem; }
.offer .price { font-size: 1.9rem; }
.offer .price small { font-size: .95rem; color: var(--text-dim); font-weight: 500; }
.offer .who { font-size: .85rem; color: var(--accent-ink); font-weight: 600; margin: .2rem 0 .6rem; }
.offer .cta { margin-top: auto; padding-top: var(--space-2); }

/* ===================================================================
   Entity graph card (eg-), added 2026-09-22 for the free AI Entity Map
   homepage. Namespaced so it never touches the tracker .score-pill or the
   .emap page styles on /ai-visibility/entity-mapping/. Colours come from
   the site tokens above; nothing here redeclares a site token.
   Two required modifiers keep labels honest:
   .eg-card--illustrative  dashed border + "Sample view" kicker (the one disclosure)
   .eg-card--real          solid border + "Measured" kicker + source line
   =================================================================== */
.eg-card { position: relative; margin: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(18,26,21,.96), rgba(9,13,11,.98)); box-shadow: 0 20px 70px rgba(0,0,0,.45); overflow: hidden; }
.eg-card--illustrative { border-style: dashed; border-color: rgba(178,189,179,.35); max-width: 560px; margin-inline: auto; width: 100%; }
.eg-card--real { border-style: solid; border-color: rgba(168,255,62,.35); }
.eg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.eg-head p { margin: 0; }
.eg-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.eg-card--illustrative .eg-kicker { color: var(--gold); }
.eg-card--real .eg-kicker { color: var(--accent-ink); }
.eg-card--real .eg-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.eg-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-top: .15rem; }
.eg-source { font-size: .78rem; color: var(--text-dim); margin-top: .25rem; line-height: 1.4; }
.eg-score { flex: 0 0 auto; padding: .4rem .7rem; border-radius: var(--radius-pill); border: 1px solid rgba(168,255,62,.4); background: rgba(168,255,62,.06); color: var(--accent-ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the graph canvas: nodes are placed by their centre point, and the svg lines
   use the same percentages, so a line always ends inside its node */
.eg-graph { position: relative; height: 360px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: linear-gradient(rgba(168,255,62,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(168,255,62,.035) 1px, transparent 1px), var(--bg); background-size: 28px 28px; }
.eg-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.eg-lines line { stroke: rgba(168,255,62,.45); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.eg-lines .eg-line--strong { stroke: rgba(199,164,97,.6); }
.eg-lines .eg-line--weak { stroke: rgba(248,113,113,.55); stroke-dasharray: 4 4; }
.eg-node { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-align: center; max-width: 38%; padding: .4rem .7rem; border: 1px solid rgba(168,255,62,.3); border-radius: var(--radius-pill); background: var(--bg-raise); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.25; }
.eg-node--main { left: 50%; top: 50%; width: 116px; height: 116px; max-width: none; padding: 0; border-radius: 50%; border-color: var(--accent); background: radial-gradient(circle at 35% 25%, rgba(168,255,62,.22), var(--bg) 75%); color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 0 55px rgba(168,255,62,.18); }
.eg-node--strong { border-color: var(--gold-dim); border-width: 2px; background: rgba(199,164,97,.1); color: #E8D3A6; }
.eg-node--weak { border-color: rgba(248,113,113,.55); border-style: dashed; background: rgba(248,113,113,.08); color: #FFC7C1; }
.eg-n1 { left: 21%; top: 24%; }
.eg-n2 { left: 79%; top: 24%; }
.eg-n3 { left: 21%; top: 76%; }
.eg-n4 { left: 79%; top: 76%; }
.eg-n5 { left: 50%; top: 9%; }
.eg-n6 { left: 50%; top: 92%; }

.eg-legend { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .75rem; color: var(--text-dim); }
.eg-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.eg-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(168,255,62,.5); background: var(--bg-raise); }
.eg-swatch--strong { border: 2px solid var(--gold); background: rgba(199,164,97,.15); }
.eg-swatch--weak { border: 1px dashed var(--danger); background: rgba(248,113,113,.12); }
.eg-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .8rem; }
.eg-metric { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.eg-metric b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.eg-metric span { display: block; font-size: .72rem; color: var(--text-dim); line-height: 1.3; }
.eg-caption { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-dim); line-height: 1.5; }

/* measured variant: stat tiles plus a simple two-bar comparison */
.eg-stats { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.eg-stat { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.eg-stat b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.eg-stat span { display: block; margin-top: .3rem; font-size: .82rem; color: var(--text-dim); line-height: 1.45; }
.eg-bars { margin-top: .9rem; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.eg-bars-title { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.eg-bar-row { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr auto; align-items: center; gap: .7rem; font-size: .88rem; }
.eg-bar-row + .eg-bar-row { margin-top: .5rem; }
.eg-bar-label { font-weight: 700; color: var(--text); }
.eg-bar { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--bg-raise); border: 1px solid var(--line); overflow: hidden; }
.eg-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--accent); }
.eg-bar-value { font-variant-numeric: tabular-nums; color: var(--text); }
.eg-bar-row--muted .eg-bar-label, .eg-bar-row--muted .eg-bar-value { color: var(--text-dim); font-weight: 600; }
.eg-bar-row--muted .eg-bar i { background: var(--text-dim); opacity: .55; }

/* homepage offer ladder: free map, fix, build, growth */
.eg-ladder { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: var(--space-3); }
.eg-tier { display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.eg-tier--free { border-style: dashed; border-color: rgba(168,255,62,.4); }
.eg-tier--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 40px rgba(168,255,62,.08); }
.eg-tier .eg-tier-step { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.eg-tier--featured .eg-tier-step { color: var(--accent-ink); }
.eg-tier h3 { margin: .3rem 0 .1rem; font-size: 1.1rem; }
.eg-tier .eg-tier-price { font-size: 1.6rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; margin: .1rem 0 .5rem; }
.eg-tier-price small { font-size: .9rem; color: var(--text-dim); font-weight: 500; }
.eg-tier p { font-size: .92rem; color: var(--text-dim); margin: 0; }
.eg-tier p + p { margin-top: .6rem; }
.eg-tier .check-list { margin: .6rem 0 0; font-size: .9rem; }
.eg-tier .check-list li { padding: .25rem 0 .25rem 1.5rem; }
.eg-tier-cta { margin-top: auto; padding-top: 1rem; display: grid; gap: .5rem; }
.eg-tier-cta .btn-primary { text-align: center; font-size: 1rem; padding: .8rem 1rem; }
.eg-tier-cta .note { font-size: .8rem; }
.eg-tier-cta p + p { margin-top: 0; }

/* free map form: the partial wraps each input in its label */
.free-map-form label { display: block; font-weight: 600; font-size: .95rem; color: var(--text); }
.free-map-form label input { margin-top: .35rem; font-weight: 400; }
.free-map-form label[hidden] { display: none; }
.free-map-form .free-map-hint { margin-top: -.45rem; font-size: .875rem; }
/* anchor targets clear the sticky nav */
#free-entity-map, #entity-fix, #independent-proof, #how-it-works, #map-sample, #faq { scroll-margin-top: 5rem; }

@media (max-width: 620px) {
  .eg-card { padding: .85rem; }
  .eg-graph { height: 300px; }
  .eg-node { font-size: 11px; padding: .35rem .6rem; }
  .eg-node--main { width: 96px; height: 96px; padding: 0; font-size: 13px; }
}
/* narrow phones: drop the top and bottom satellites and their lines so the
   remaining nodes never overlap between 320 and 480px */
@media (max-width: 480px) {
  .eg-n5, .eg-n6, .eg-lines .eg-l5, .eg-lines .eg-l6 { display: none; }
  .eg-n1, .eg-n2 { top: 22%; }
  .eg-n3, .eg-n4 { top: 78%; }
}
@media (max-width: 400px) {
  .eg-graph { height: 280px; }
  .eg-node--main { width: 84px; height: 84px; font-size: 12px; }
  .eg-node { max-width: 40%; }
  .eg-node--main { max-width: none; }
  .eg-foot { gap: .35rem; }
  .eg-metric { padding: .5rem; }
  .eg-bar-row { grid-template-columns: 1fr auto; }
  .eg-bar-row .eg-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* motion only for visitors who have not asked the OS to reduce it */
@media (prefers-reduced-motion: no-preference) {
  .eg-node--main { animation: eg-pulse 4s ease-in-out infinite; }
  @keyframes eg-pulse { 0%, 100% { box-shadow: 0 0 40px rgba(168,255,62,.14); } 50% { box-shadow: 0 0 64px rgba(168,255,62,.26); } }
  .eg-tier { transition: border-color .2s ease, transform .2s ease; }
  .eg-tier:hover { transform: translateY(-2px); }
}
