:root {
  --ink: #14213d;
  --ink-2: #3c4a63;
  --muted: #6b7689;
  --line: #e3e7ee;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #d9622b;
  --accent-ink: #ffffff;
  --accent-soft: #fdf0e8;
  --sky: #2f5d8a;
  --good: #2e7d5b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; font-size: 17px; }
a { color: var(--sky); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: 18px; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 13px 20px; font-weight: 650; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.025em; margin: 18px 0 16px; max-width: 15ch; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

/* signup */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signup input[type=email] { flex: 1 1 240px; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 16px; background: #fff; }
.signup input[type=email]:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* preview card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.preview { padding: 22px; }
.preview h3 { margin: 0 0 4px; font-size: 15px; }
.preview .sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 74px; gap: 10px; align-items: center; font-size: 14px; margin: 9px 0; }
.bar-track { position: relative; height: 10px; background: #eef1f6; border-radius: 99px; }
.bar-band { position: absolute; top: 0; bottom: 0; background: #c9d6e6; border-radius: 99px; }
.bar-mid { position: absolute; top: -3px; width: 3px; height: 16px; background: var(--accent); border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 650; }

/* sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.section-lede { color: var(--ink-2); max-width: 62ch; margin: 0 0 32px; font-size: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; }
.feature h3 { margin: 10px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat { padding: 18px; }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.band { background: var(--ink); color: #fff; }
.band .section-lede, .band p { color: #c9d1de; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 750; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; }
.plan { padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 42px; font-weight: 780; letter-spacing: -.02em; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 0; list-style: none; margin: 18px 0 26px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 17px; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* report page */
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
select { font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
tr.fam td { font-weight: 650; }
tr.lvl td:first-child { padding-left: 30px; color: var(--ink-2); }
tr.locked td { color: transparent; text-shadow: 0 0 9px rgba(20,33,61,.45); user-select: none; }
.lock-note { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 16px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.demo-banner { background: #fff6d6; border: 1px solid #f0dc8c; color: #5c4a00; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.table-wrap { overflow-x: auto; padding: 6px 18px 12px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #e8f3ee; color: var(--good); font-weight: 650; margin-left: 8px; vertical-align: middle; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.prose h1 { font-size: 38px; max-width: none; }
.prose h2 { margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .steps, .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .bar-row { grid-template-columns: 110px 1fr 66px; }
}

/* insights hub */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 26px; }
.subnav a { font-size: 14px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; }
.subnav a:hover { border-color: var(--ink-2); color: var(--ink); }
.ins-section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.ins-section h2 { font-size: 26px; letter-spacing: -.015em; margin: 0 0 4px; }
.ins-section .hint { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.takeaways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.takeaway { padding: 18px; font-size: 16px; line-height: 1.45; border-left: 4px solid var(--accent); }
.idea { padding: 20px; }
.idea h3 { margin: 0 0 6px; font-size: 17px; }
.idea p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.hbar { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 84px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14.5px; }
.hbar .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 12px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--sky); border-radius: 99px; }
.hbar .fill.hot { background: var(--accent); }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.chg { font-size: 12.5px; font-weight: 650; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.chg.up { background: #e8f3ee; color: var(--good); }
.chg.down { background: #f4eded; color: #9b3b3b; }
.chg.flat { background: #eef1f6; color: var(--muted); }
.chg.new { background: var(--accent-soft); color: var(--accent); }
.stack-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 6px 0 10px; }
.stack-bar span { display: grid; place-items: center; font-size: 12px; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pad { padding: 20px 22px; }
td.role { font-weight: 650; }
td .sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f6f8fb; }
.teaser-list { list-style: none; padding: 0; margin: 0; }
.teaser-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) {
  .grid-2, .takeaways { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 74px; }
  .hide-sm { display: none; }
}
td.text, th.text { text-align: left; }

/* states tile map */
.tilemap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.tile { aspect-ratio: 1; border-radius: 6px; border: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; cursor: pointer; position: relative; padding: 0; color: #14213d; font-family: inherit; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tile.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.tile .dot { position: absolute; top: 3px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tile.dark { color: #fff; }
.tile.empty { background: #eef1f6; color: var(--muted); cursor: default; }
.scale { display: inline-block; width: 120px; height: 10px; border-radius: 99px; vertical-align: middle; margin: 0 6px; }
/* builder */
.builder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.builder-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.builder-grid select { width: 100%; }
.big-range { font-size: clamp(30px, 5vw, 44px); font-weight: 780; letter-spacing: -.02em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.copybox { background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0 0 10px; color: var(--ink); }
.compare-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare-row:last-child { border-bottom: 0; }
/* articles */
.article-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-item a { font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.article-item a:hover { color: var(--sky); }
.article-item p { margin: 6px 0 0; color: var(--ink-2); }
.article-item time, .art-date { font-size: 13px; color: var(--muted); }
article h2 { font-size: 22px; margin: 28px 0 8px; }
article table { margin: 10px 0; }
.note { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .builder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { font-size: 10px; } }
.states-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.states-layout > .card:first-child { position: sticky; top: 12px; }
#state-panel table { font-size: 14px; }
#state-panel th, #state-panel td { padding: 8px 8px; }
@media (max-width: 860px) { .states-layout { grid-template-columns: minmax(0, 1fr); } .states-layout > .card:first-child { position: static; } }
.scroll { overflow-x: auto; max-width: 100%; }

/* signup wall + Pro locks */
.wall { position: fixed; inset: 0; background: rgba(20,33,61,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.wall-box { max-width: 520px; width: 100%; padding: 28px; position: relative; }
.wall-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }
.pro-locked { position: relative; }
.pro-locked > *:not(.lock-veil) { filter: blur(5px); pointer-events: none; user-select: none; }
.lock-veil { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.lock-box { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; max-width: 320px; }
.lock-box b { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.lock-box span { font-size: 15px; color: var(--ink); }
.uses-left { font-size: 13px; color: var(--muted); }

/* tool pages */
.builder-grid input, .builder-grid select, textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.builder-grid input { width: 100%; box-sizing: border-box; }
.chk-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; min-height: 32px; }
.chk-cols { columns: 2 260px; margin-top: 10px; }
.chk-group { border: 0; padding: 0; margin: 0 0 12px; break-inside: avoid; }
.chk-group legend { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.chk-group .chk { display: flex; }
.jd-text { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card { color: inherit; text-decoration: none; display: block; transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card h2 { font-size: 19px; margin: 10px 0 6px; }
.tool-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: #e8eef6; color: var(--ink); }
.tag-pro { background: var(--accent); color: #fff; }

/* pro tools */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat-row div { background: #f6f8fb; border-radius: 10px; padding: 12px; }
.stat-row b { display: block; font-size: 22px; }
.stat-row span { font-size: 13px; color: var(--muted); }
th.sortable { cursor: pointer; text-decoration: underline dotted; }
th.sorted { color: var(--accent); }
.ladder { display: grid; gap: 12px; }
.rung-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rung-head h3 { margin: 8px 0 2px; font-size: 19px; }
.rung-pay { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.rung-pay b { font-size: 18px; }
@media (max-width: 560px) { .rung-pay { align-items: flex-start; text-align: left; } }

/* company report */
.findings { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.rp-results { display: grid; gap: 6px; margin-top: 12px; }
.rp-hit { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; flex-wrap: wrap; }
.rp-hit:hover { background: #f6f8fb; }
#rp-q { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.cta-box { background: #fdf6f1; border-color: #f1d9c8; }
