:root {
  --ink: #092720;
  --green: #13864b;
  --deep: #075c39;
  --lime: #e7ff69;
  --cream: #fffaf0;
  --paper: #fffef9;
  --line: #cdd9ca;
  --muted: #5d6e67;
  --red: #a92d29;
  --red-soft: #fff0ed;
  --orange: #805000;
  --orange-soft: #fff1cc;
  --green-soft: #e2f6dd;
  --shadow: #bdd6be;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 100;
  padding: 11px 15px;
  background: #000;
  color: #fff;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #7047d7; outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 250, 240, .95);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 1000;
  text-decoration: none;
  letter-spacing: -.04em;
}
.brand > span:last-child span { color: var(--green); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-size: 11px;
}
.site-header nav { display: flex; gap: 24px; margin-right: auto; }
.site-header nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.site-header nav a.selected { border-color: var(--green); color: var(--green); }
.coach-cta {
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  box-shadow: 3px 3px 0 var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

main { width: min(1480px, 100%); margin: auto; padding: 0 clamp(16px, 4vw, 64px) 80px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 50px;
  align-items: end;
  padding: 66px 0 38px;
}
.kicker {
  display: block;
  color: var(--deep);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .13em;
}
.hero h1 {
  max-width: 940px;
  margin: 12px 0 20px;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: .9;
  letter-spacing: -.07em;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p {
  max-width: 850px;
  margin: 0;
  color: #38524a;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
}
.hero-rule {
  padding: 27px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1deg);
}
.hero-rule strong { font-size: 21px; letter-spacing: -.04em; }
.hero-rule p { margin: 11px 0 0; font-size: 13px; }

.load-state {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
  padding: 16px 18px;
  border: 1px solid #8fc6a1;
  border-left: 5px solid var(--green);
  border-radius: 11px;
  background: #f0faed;
  color: #355247;
}
.load-state .state-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 1000;
}
.load-state strong { display: block; color: var(--ink); }
.load-state p { margin: 2px 0 0; font-size: 12px; }
.load-state.ready { border-color: #80be96; background: #eff9ea; }
.load-state.not-published { border-color: #d8b36a; border-left-color: var(--orange); background: #fff6dc; color: #684715; }
.load-state.error { border-color: #d6a39f; border-left-color: var(--red); background: var(--red-soft); color: #70231f; }

.strategy-banner {
  overflow: hidden;
  margin: 20px 0;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--shadow);
}
.strategy-banner > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 23px 26px;
  background: var(--ink);
  color: #fff;
}
.strategy-banner h2 { margin: 5px 0 3px; font-size: 27px; letter-spacing: -.04em; }
.strategy-banner header p { margin: 0; color: #d8e5df; font-size: 12px; }
.strategy-status {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid #9be0b9;
  border-radius: 999px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.strategy-picker { min-width: 230px; }
.strategy-picker span {
  display: block;
  margin-bottom: 5px;
  color: #c6d8d0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.strategy-picker select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #789287;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.strategy-picker select:disabled { opacity: .72; }
.strategy-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}
.strategy-facts div { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); }
.strategy-facts div:last-child { border-right: 0; }
.strategy-facts dt { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.strategy-facts dd { margin: 5px 0 0; font-size: 13px; font-weight: 900; overflow-wrap: anywhere; }
.strategy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #f3f6ef;
  color: var(--muted);
  font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.strategy-meta button, .clear-filters {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #96aa9b;
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.kpi-grid article { padding: 19px 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.kpi-grid small { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.kpi-grid strong { display: block; margin: 4px 0 2px; font-size: 29px; letter-spacing: -.04em; }
.kpi-grid span { color: var(--muted); font-size: 10px; }

.board { overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 7px 7px 0 var(--shadow); }
.board-head { display: flex; justify-content: space-between; gap: 24px; padding: 27px 28px; }
.board-head h2 { margin: 8px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.board-head p { margin: 0; color: var(--muted); font-size: 12px; }
.result-count { align-self: center; min-width: 112px; padding: 4px 10px; text-align: right; }
.result-count strong { display: block; font-size: 29px; }
.result-count span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f4f4ed; }
.tabs button {
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs button > span { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 3px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.tabs button b { display: inline-flex; min-width: 23px; justify-content: center; margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: rgba(9, 39, 32, .1); font-size: 9px; }
.tabs button[aria-selected="true"] b { background: var(--lime); color: var(--ink); }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .5fr) minmax(180px, .5fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 28px;
  background: #f4f4ed;
}
.filters label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.filters input, .filters select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #a9b8ad; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.clear-filters { min-height: 44px; }

.interval-panel { padding: 25px 28px 29px; border-bottom: 1px solid var(--line); }
.interval-panel > header { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.interval-panel h3 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.025em; }
.interval-panel header p { max-width: 500px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.interval-chart { display: grid; gap: 7px; }
.interval-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(260px, 1fr) minmax(150px, auto); gap: 14px; align-items: center; min-height: 34px; }
.interval-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.interval-name a { text-decoration-color: #86a493; text-underline-offset: 3px; }
.interval-plot { position: relative; height: 25px; }
.interval-plot::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: #d9dfd7; }
.interval-zero { position: absolute; left: var(--zero); top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .72; }
.interval-whisker { position: absolute; left: var(--low); width: var(--span); top: 11px; height: 3px; border-radius: 3px; background: #516d62; }
.interval-whisker::before, .interval-whisker::after { content: ""; position: absolute; top: -4px; width: 2px; height: 11px; background: inherit; }
.interval-whisker::before { left: 0; }
.interval-whisker::after { right: 0; }
.interval-dot { position: absolute; left: var(--point); top: 7px; width: 11px; height: 11px; margin-left: -5px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.interval-row.caution .interval-dot { background: #f08077; }
.interval-row.useful .interval-dot { background: #72cc7f; }
.interval-row.mixed .interval-dot { background: #f0c25d; }
.interval-value { color: #3d554c; font: 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; white-space: nowrap; }
.interval-axis { display: grid; grid-template-columns: minmax(150px, 220px) minmax(260px, 1fr) minmax(150px, auto); gap: 14px; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.axis-labels { position: relative; height: 17px; }
.axis-labels span { position: absolute; transform: translateX(-50%); }
.axis-labels span:first-child { left: 0; transform: none; }
.axis-labels span:nth-child(2) { left: var(--zero); }
.axis-labels span:last-child { right: 0; transform: none; }

.empty-filter-state { margin: 24px 28px; padding: 18px; border: 1px dashed #9aad9d; border-radius: 9px; background: #fafaf5; }
.empty-filter-state strong { display: block; }
.empty-filter-state p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; max-height: 780px; }
.table-wrap:focus { outline: 3px solid var(--lime); outline-offset: -3px; }
table { width: 100%; min-width: 1390px; border-collapse: collapse; font-size: 12px; }
thead { position: sticky; top: 0; z-index: 3; background: var(--ink); color: #fff; }
th { text-align: left; white-space: nowrap; }
th button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 11px 12px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
th button:hover, th button:focus { background: #174239; }
th i { color: var(--lime); font-style: normal; }
td { padding: 14px 12px; border-bottom: 1px solid #e2e7df; vertical-align: middle; }
tbody tr:hover { background: #f4faee; }
.caller-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.caller-cell img, .avatar-fallback { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--ink); border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: var(--lime); font-size: 10px; font-weight: 1000; }
.caller-cell strong { display: block; font-size: 13px; }
.caller-cell small { display: block; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.rank-line { margin-top: 4px; color: var(--deep); font-size: 9px; font-weight: 900; }
.evidence-pill { display: inline-flex; align-items: center; max-width: 200px; padding: 5px 7px; border: 1px solid currentColor; border-radius: 6px; font-size: 9px; font-weight: 1000; line-height: 1.3; }
.evidence-pill.caution { background: var(--red-soft); color: var(--red); }
.evidence-pill.useful { background: var(--green-soft); color: var(--deep); }
.evidence-pill.mixed { background: var(--orange-soft); color: var(--orange); }
.metric-value { font-weight: 950; }
.metric-value.negative { color: var(--red); }
.metric-value.positive { color: var(--green); }
.cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.money-flow { white-space: nowrap; }
.caller-cards { display: none; }

.limitations { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; margin: 54px 0 22px; padding: 34px; border: 2px solid var(--ink); border-radius: 16px; background: var(--lime); }
.limitations h2 { margin: 8px 0 12px; font-size: 32px; line-height: 1.05; letter-spacing: -.045em; }
.limitations p { margin: 0; font-size: 12px; line-height: 1.6; }
.limitations ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.limitations li { position: relative; padding: 14px 14px 14px 37px; border: 1px solid rgba(9, 39, 32, .34); border-radius: 9px; background: rgba(255, 255, 255, .44); font-size: 11px; }
.limitations li::before { content: "!"; position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--ink); border-radius: 50%; font-size: 9px; font-weight: 1000; }
.methodology-details { overflow: hidden; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.methodology-details summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 64px; padding: 15px 20px; cursor: pointer; }
.methodology-details summary b, .methodology-details summary small { display: block; }
.methodology-details summary small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.methodology-details summary em { color: var(--deep); font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.methodology-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 24px; border-top: 1px solid var(--line); }
.methodology-body h2 { margin: 0 0 12px; font-size: 17px; }
.methodology-body ol { margin: 0; padding-left: 20px; color: #3f584e; font-size: 12px; }
.methodology-body li + li { margin-top: 6px; }
.methodology-body dl { margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.methodology-body dl div { display: grid; grid-template-columns: minmax(110px, .4fr) 1fr; gap: 15px; padding: 9px 11px; }
.methodology-body dl div + div { border-top: 1px solid var(--line); }
.methodology-body dt { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.methodology-body dd { margin: 0; font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 26px clamp(18px, 4vw, 64px); border-top: 2px solid var(--ink); background: var(--ink); color: #d9e5de; font-size: 11px; }
footer p { margin: 0; }
footer a { color: var(--lime); font-weight: 1000; text-decoration: none; }

@media (max-width: 1160px) {
  .strategy-facts { grid-template-columns: repeat(3, 1fr); }
  .strategy-facts div:nth-child(3) { border-right: 0; }
  .strategy-facts div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .limitations { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-rule { max-width: 560px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tabs button:nth-child(2) { border-right: 0; }
  .tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr 1fr; }
  .interval-row, .interval-axis { grid-template-columns: minmax(130px, 190px) minmax(240px, 1fr) minmax(140px, auto); }
}
@media (max-width: 760px) {
  .site-header { gap: 14px; }
  .coach-cta { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(46px, 14vw, 62px); }
  .hero-rule { transform: none; box-shadow: 5px 5px 0 var(--ink); }
  .strategy-banner > header, .strategy-meta, .board-head, .interval-panel > header { display: block; }
  .strategy-picker { margin-top: 17px; }
  .strategy-meta button { width: 100%; margin-top: 10px; }
  .strategy-facts { grid-template-columns: 1fr 1fr; }
  .strategy-facts div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .strategy-facts div:nth-child(2n) { border-right: 0; }
  .strategy-facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .result-count { margin-top: 12px; padding-left: 0; text-align: left; }
  .filters { grid-template-columns: 1fr; }
  .interval-panel header p { margin-top: 8px; }
  .interval-row { grid-template-columns: 1fr; gap: 4px; padding: 9px 0; border-bottom: 1px solid #edf0e9; }
  .interval-name { white-space: normal; }
  .interval-value { text-align: left; }
  .interval-axis { grid-template-columns: 1fr; }
  .interval-axis::before { content: "Chart scale"; color: var(--muted); font: 9px Inter, ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; }
  .table-wrap { display: none; }
  .caller-cards { display: grid; gap: 10px; padding: 18px; }
  .caller-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .caller-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
  .caller-card .caller-cell { min-width: 0; }
  .caller-card-flow { margin: 16px 0 12px; padding: 13px; border-radius: 8px; background: #f5f7f1; }
  .caller-card-flow small { display: block; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
  .caller-card-flow strong { display: block; margin-top: 3px; font-size: 22px; letter-spacing: -.035em; }
  .caller-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .caller-card dl div { min-width: 0; padding-top: 8px; border-top: 1px solid #e8ece6; }
  .caller-card dt { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
  .caller-card dd { margin: 3px 0 0; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
  .limitations { padding: 25px; }
  .limitations ul { grid-template-columns: 1fr; }
  .methodology-body { grid-template-columns: 1fr; }
  footer { display: block; }
  footer a { display: block; margin-top: 12px; }
}
@media (max-width: 480px) {
  main { padding-inline: 13px; }
  .site-header { padding-inline: 14px; }
  .coach-cta { padding-inline: 11px; }
  .hero h1 { font-size: 45px; }
  .load-state { align-items: flex-start; }
  .strategy-facts { grid-template-columns: 1fr; }
  .strategy-facts div, .strategy-facts div:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .strategy-facts div:last-child { border-bottom: 0; }
  .kpi-grid, .tabs { grid-template-columns: 1fr; }
  .tabs button, .tabs button:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs button:last-child { border-bottom: 0; }
  .board-head, .filters, .interval-panel { padding-inline: 18px; }
  .caller-card-head { display: block; }
  .caller-card-head .evidence-pill { margin-top: 11px; }
  .caller-card dl { grid-template-columns: 1fr; }
  .limitations h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; }
  .site-header, .filters, .tabs, .strategy-meta button, .coach-cta { display: none !important; }
  main { width: auto; padding: 20px; }
  .hero { padding-top: 0; }
  .board, .strategy-banner { box-shadow: none; }
  .table-wrap { display: block; max-height: none; overflow: visible; }
  table { min-width: 0; font-size: 9px; }
  .caller-cards { display: none; }
}
