:root {
  --ink: #102622;
  --ink-2: #26413b;
  --paper: #f3efe5;
  --paper-2: #fcfaf5;
  --line: rgba(16, 38, 34, 0.18);
  --line-strong: rgba(16, 38, 34, 0.46);
  --teal: #08716f;
  --teal-dark: #075451;
  --mint: #b8e0d2;
  --lime: #d9f36c;
  --orange: #ff7a4f;
  --red: #d8493f;
  --blue: #4c75d9;
  --yellow: #f2c94c;
  --muted: #6c7772;
  --shadow: 8px 8px 0 rgba(16, 38, 34, 0.12);
  --radius: 2px;
  --display: "Unbounded", "Arial Narrow", sans-serif;
  --body: "Onest", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(184, 224, 210, 0.55), transparent 28rem),
    radial-gradient(circle at 95% 15%, rgba(217, 243, 108, 0.22), transparent 26rem),
    var(--paper);
  font-family: var(--body);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(16, 38, 34, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 34, 0.026) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(18px, 3vw, 50px);
  color: var(--paper-2);
  background: rgba(16, 38, 34, 0.96);
  border-bottom: 1px solid rgba(243, 239, 229, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  transform: rotate(-7deg);
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: rgba(252, 250, 245, 0.6);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-tab {
  padding: 10px 12px;
  border: 0;
  color: rgba(252, 250, 245, 0.62);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav-tab:hover,
.nav-tab.is-active {
  color: var(--paper-2);
  background: rgba(252, 250, 245, 0.09);
}

.nav-tab.is-active::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--lime);
  border-radius: 50%;
}

.snapshot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding-left: 18px;
  border-left: 1px solid rgba(252, 250, 245, 0.18);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(217, 243, 108, 0.12);
}

.snapshot b,
.snapshot small {
  display: block;
}

.snapshot b {
  font-size: 0.76rem;
}

.snapshot small {
  margin-top: 3px;
  color: rgba(252, 250, 245, 0.52);
  font-size: 0.68rem;
}

main {
  width: min(1560px, calc(100% - 40px));
  margin: 0 auto;
}

.view {
  padding: clamp(44px, 6vw, 90px) 0 100px;
  animation: view-in 360ms ease both;
}

.view[hidden] {
  display: none !important;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.masthead,
.section-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
}

.eyebrow,
.section-index {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.masthead h1,
.section-hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: var(--display);
  font-size: clamp(2.65rem, 6vw, 6.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.masthead h1 span,
.section-hero h1 span {
  color: var(--teal);
}

.masthead-meta,
.hero-note {
  padding: 18px 0 4px 22px;
  border-left: 3px solid var(--orange);
  color: var(--ink-2);
}

.masthead-meta p {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.hero-note {
  margin: 0;
  line-height: 1.65;
}

.decision-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  gap: 32px;
  align-items: stretch;
  margin: 0 0 70px;
  padding: 0;
  overflow: hidden;
  color: var(--paper-2);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.decision-label {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  color: var(--ink);
  background: var(--lime);
}

.decision-label span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.decision-label strong {
  font-family: var(--display);
  font-size: 2.8rem;
  letter-spacing: -0.06em;
}

.decision-copy {
  align-self: center;
  padding: 26px 0;
}

.decision-copy h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
  line-height: 1.15;
}

.decision-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(252, 250, 245, 0.68);
  line-height: 1.65;
}

.decision-proof {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 10px 16px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.055);
}

.decision-proof span {
  color: rgba(252, 250, 245, 0.6);
  font-size: 0.8rem;
}

.decision-proof b {
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.1rem;
}

.decision-proof b.down {
  color: #ff9d80;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 64px 0 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.section-heading h2,
.panel h3,
.source-panel h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.045em;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.8rem);
}

.section-heading > p,
.muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.text-link {
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  position: relative;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

.kpi-card::after {
  content: attr(data-index);
  position: absolute;
  right: 10px;
  top: 6px;
  color: rgba(16, 38, 34, 0.08);
  font-family: var(--display);
  font-size: 3.8rem;
}

.kpi-card.accent {
  background: var(--mint);
}

.kpi-card.warning {
  background: #f9e6df;
}

.kpi-label {
  position: relative;
  z-index: 1;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kpi-value {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 3rem);
  letter-spacing: -0.06em;
}

.kpi-note {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.overview-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.overview-grid-bottom {
  margin-top: 58px;
}

.panel {
  position: relative;
  padding: 24px;
  background: rgba(252, 250, 245, 0.91);
  border: 1px solid var(--line-strong);
}

.panel-wide {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel h3,
.source-panel h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
}

.panel-signal {
  color: var(--paper-2);
  background: var(--ink);
}

.panel-signal .section-index {
  color: var(--lime);
}

.signal-tag {
  padding: 7px 10px;
  color: var(--paper-2);
  background: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.channel-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 120px minmax(180px, 1.3fr) repeat(3, minmax(90px, 0.7fr)) minmax(240px, 1.45fr);
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  background: var(--paper-2);
}

.channel-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 0.76rem;
}

.platform-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
}

.platform-dot.google {
  background: var(--blue);
}

.platform-dot.tiktok {
  background: var(--ink);
  box-shadow: 3px 0 0 var(--orange);
}

.channel-content,
.channel-takeaway {
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.45;
}

.channel-metric {
  display: grid;
  gap: 3px;
}

.channel-metric small {
  color: var(--muted);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.channel-metric b {
  font-family: var(--display);
  font-size: 0.88rem;
}

.channel-takeaway {
  padding-left: 14px;
  border-left: 2px solid var(--orange);
}

.line-chart {
  min-height: 235px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(252, 250, 245, 0.13);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.chart-area {
  fill: rgba(217, 243, 108, 0.1);
}

.chart-point {
  fill: var(--ink);
  stroke: var(--lime);
  stroke-width: 3;
}

.chart-label {
  fill: rgba(252, 250, 245, 0.56);
  font-family: var(--body);
  font-size: 11px;
}

.chart-value {
  fill: var(--paper-2);
  font-family: var(--display);
  font-size: 11px;
}

.panel-note {
  margin: 12px 0 0;
  padding-top: 16px;
  color: rgba(252, 250, 245, 0.66);
  border-top: 1px solid rgba(252, 250, 245, 0.16);
  font-size: 0.82rem;
  line-height: 1.55;
}

.panel-note b {
  color: var(--lime);
}

.action-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.creative-action {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.creative-action:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(16, 38, 34, 0.12);
}

.creative-action.scale {
  background: #e2f3df;
}

.creative-action.replace,
.creative-action.stop {
  background: #f9e3dc;
}

.creative-action.fix {
  background: #f8edc9;
}

.action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.verdict-badge,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid currentColor;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.creative-action h3 {
  margin: 24px 0 12px;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.35;
}

.action-metrics {
  display: flex;
  gap: 22px;
  margin-top: auto;
}

.action-metrics span {
  display: grid;
  gap: 3px;
}

.action-metrics small {
  color: var(--muted);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.action-metrics b {
  font-family: var(--display);
  font-size: 1rem;
}

.creative-action p {
  margin: 15px 0 0;
  padding-top: 14px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.48;
}

.stack-chart {
  min-height: 305px;
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  align-items: end;
  gap: 16px;
  padding: 30px 10px 0;
  border-bottom: 1px solid var(--line-strong);
}

.stack-column {
  display: grid;
  grid-template-rows: 25px 240px 28px;
  align-items: end;
  text-align: center;
}

.stack-total {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
}

.stack-track {
  align-self: end;
  width: min(78px, 80%);
  height: var(--bar-height);
  min-height: 8px;
  display: flex;
  flex-direction: column-reverse;
  justify-self: center;
  border: 1px solid var(--ink);
  background: rgba(16, 38, 34, 0.04);
}

.stack-segment {
  width: 100%;
}

.stack-segment.meta {
  background: var(--teal);
}

.stack-segment.tiktok {
  background: var(--orange);
}

.stack-segment.google {
  background: var(--blue);
}

.stack-month {
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  background: var(--teal);
}

.legend-swatch.tiktok {
  background: var(--orange);
}

.legend-swatch.google {
  background: var(--blue);
}

.next-step-panel {
  display: flex;
  flex-direction: column;
  color: var(--paper-2);
  background: var(--teal-dark);
}

.next-step-panel .section-index {
  color: var(--lime);
}

.priority-list {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: priorities;
}

.priority-list li {
  counter-increment: priorities;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 15px 0;
  color: rgba(252, 250, 245, 0.72);
  border-bottom: 1px solid rgba(252, 250, 245, 0.14);
  font-size: 0.84rem;
  line-height: 1.45;
}

.priority-list li::before {
  content: "0" counter(priorities);
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.72rem;
}

.button-primary,
.button-secondary {
  width: fit-content;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  background: var(--lime);
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.next-step-panel .button-primary {
  margin-top: auto;
}

.section-hero {
  margin-bottom: 54px;
}

.creative-toolbar {
  position: sticky;
  top: 76px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) auto auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(243, 239, 229, 0.92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}

.search-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
}

.search-field input:focus {
  border-color: var(--teal);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--paper-2);
  background: var(--ink);
}

.creative-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.mini-stat {
  padding: 12px 14px;
  background: rgba(252, 250, 245, 0.76);
  border-left: 4px solid var(--teal);
}

.mini-stat b,
.mini-stat small {
  display: block;
}

.mini-stat b {
  font-family: var(--display);
  font-size: 1.1rem;
}

.mini-stat small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.table-shell {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.table-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}

.table-caption span:first-child {
  color: var(--ink);
  font-weight: 700;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
}

th {
  padding: 13px 12px;
  color: var(--paper-2);
  background: var(--ink);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(184, 224, 210, 0.32);
}

td.creative-name {
  min-width: 280px;
  max-width: 440px;
  font-weight: 600;
}

.platform-chip,
.table-verdict {
  display: inline-flex;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-verdict.scale {
  color: #185a3d;
  background: #ddf1df;
}

.table-verdict.replace,
.table-verdict.stop {
  color: #8c241e;
  background: #f8ded8;
}

.table-verdict.watch {
  color: #795f10;
  background: #f8ecc5;
}

.table-verdict.new,
.table-verdict.fix {
  color: #244885;
  background: #dee7f9;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.new-tests {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 38px;
  padding: 24px;
  color: var(--paper-2);
  background: var(--teal-dark);
  border: 1px solid var(--ink);
}

.new-tests > div:first-child {
  display: flex;
  align-items: center;
  gap: 15px;
}

.new-tests-count {
  color: var(--lime);
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
}

.new-tests p,
.new-tests h3 {
  margin: 0;
}

.new-tests h3 {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.new-tests p {
  color: rgba(252, 250, 245, 0.64);
  font-size: 0.8rem;
  line-height: 1.45;
}

.new-test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.new-test-card {
  min-height: 132px;
  padding: 14px;
  background: #e4ecfa;
  border: 1px solid var(--line-strong);
}

.new-test-card small {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
}

.new-test-card h4 {
  margin: 14px 0 8px;
  font-size: 0.88rem;
}

.new-test-card a {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
}

.platform-deep-dive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  position: relative;
  min-height: 430px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

.platform-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 7px;
  margin-bottom: 26px;
  background: var(--teal);
}

.platform-card.google::before {
  background: var(--blue);
}

.platform-card.tiktok::before {
  background: linear-gradient(90deg, var(--ink) 0 45%, var(--orange) 45% 100%);
}

.platform-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
}

.platform-card > p {
  min-height: 66px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.platform-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 -1px 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.platform-metric {
  min-height: 82px;
  padding: 12px;
  background: var(--paper-2);
}

.platform-metric small,
.platform-metric b {
  display: block;
}

.platform-metric small {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.platform-metric b {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 1.06rem;
}

.platform-verdict {
  padding: 14px;
  background: #f8edc9;
  border-left: 4px solid var(--orange);
  font-size: 0.8rem;
  line-height: 1.5;
}

.analysis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.rank-bars {
  display: grid;
  gap: 15px;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 12px;
  align-items: center;
}

.rank-row span {
  font-size: 0.76rem;
}

.rank-track {
  height: 12px;
  background: rgba(16, 38, 34, 0.08);
}

.rank-fill {
  height: 100%;
  width: var(--width);
  background: var(--teal);
}

.rank-row.bad .rank-fill {
  background: var(--red);
}

.rank-row b {
  min-width: 58px;
  text-align: right;
  font-family: var(--display);
  font-size: 0.75rem;
}

.network-wheel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
}

.donut {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal) 0 69.9%,
    var(--blue) 69.9% 97.8%,
    var(--orange) 97.8% 99.3%,
    var(--yellow) 99.3% 100%
  );
}

.donut::after {
  content: "Google";
  position: absolute;
  inset: 27px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.7rem;
}

.network-list {
  display: grid;
  gap: 10px;
}

.network-list div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.76rem;
}

.month-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.month-card {
  min-height: 220px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

.month-card.july {
  color: var(--paper-2);
  background: var(--teal-dark);
}

.month-card h3 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.month-total {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1vw, 2.2rem);
  letter-spacing: -0.05em;
}

.month-card dl {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.month-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.month-card.july dl div {
  border-color: rgba(252, 250, 245, 0.16);
}

.month-card dt {
  color: var(--muted);
}

.month-card.july dt {
  color: rgba(252, 250, 245, 0.55);
}

.month-card dd {
  margin: 0;
  font-weight: 700;
}

.month-table-shell {
  box-shadow: none;
}

.gap-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.gap-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

.gap-summary-card.p0 {
  background: #f8dfd8;
}

.gap-summary-card.p1 {
  background: #f8ecc5;
}

.gap-summary-card b {
  font-family: var(--display);
  font-size: 2rem;
}

.gap-summary-card span {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: right;
}

.gap-list {
  display: grid;
  gap: 9px;
}

.gap-item {
  display: grid;
  grid-template-columns: 76px minmax(210px, 0.8fr) minmax(280px, 1.35fr) minmax(220px, 1fr) 120px;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.gap-priority {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--paper-2);
  background: var(--red);
  font-family: var(--display);
  font-size: 0.77rem;
}

.gap-item.p1 .gap-priority {
  color: var(--ink);
  background: var(--yellow);
}

.gap-item.p2 .gap-priority {
  background: var(--teal);
}

.gap-item h3 {
  margin: 0;
  font-size: 0.95rem;
}

.gap-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.48;
}

.gap-owner {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.gap-owner b,
.gap-owner small {
  display: block;
}

.gap-owner b {
  font-size: 0.78rem;
}

.gap-owner small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-card {
  min-height: 230px;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

.method-card b {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal);
  font-family: var(--display);
  font-size: 1.4rem;
}

.method-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1rem;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.source-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 18px;
  padding: 24px;
  color: var(--paper-2);
  background: var(--ink);
}

.source-panel .section-index {
  color: var(--lime);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  padding: 11px 14px;
  color: var(--ink);
  background: var(--lime);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.creative-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(560px, 94vw);
  height: 100dvh;
  padding: 30px;
  overflow-y: auto;
  color: var(--paper-2);
  background: var(--ink);
  border-left: 1px solid rgba(252, 250, 245, 0.18);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.creative-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(252, 250, 245, 0.28);
  color: var(--paper-2);
  background: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
}

.drawer-eyebrow {
  margin: 60px 0 10px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creative-drawer h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 22px;
  background: rgba(252, 250, 245, 0.15);
  border: 1px solid rgba(252, 250, 245, 0.15);
}

.drawer-metric {
  min-height: 84px;
  padding: 13px;
  background: var(--ink);
}

.drawer-metric small,
.drawer-metric b {
  display: block;
}

.drawer-metric small {
  color: rgba(252, 250, 245, 0.48);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.drawer-metric b {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 0.95rem;
}

.drawer-block {
  margin-top: 18px;
  padding: 18px;
  background: rgba(252, 250, 245, 0.07);
  border-left: 3px solid var(--lime);
}

.drawer-block.warning {
  border-color: var(--orange);
}

.drawer-block h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.drawer-block p {
  margin: 0;
  color: rgba(252, 250, 245, 0.68);
  font-size: 0.82rem;
  line-height: 1.58;
}

.drawer-history {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  overflow-x: auto;
  background: rgba(252, 250, 245, 0.14);
  border: 1px solid rgba(252, 250, 245, 0.14);
}

.drawer-history-row {
  min-width: 390px;
  display: grid;
  grid-template-columns: 1.05fr repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  background: var(--ink);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

.drawer-history-row.head {
  color: rgba(252, 250, 245, 0.5);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.drawer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.drawer-links a {
  padding: 10px 12px;
  color: var(--ink);
  background: var(--lime);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 38, 34, 0.44);
  backdrop-filter: blur(3px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(18px, 3vw, 50px);
  color: rgba(252, 250, 245, 0.65);
  background: var(--ink);
  font-size: 0.74rem;
}

footer > span {
  color: var(--lime);
  font-family: var(--display);
}

footer p {
  margin: 0;
}

footer .text-link {
  color: var(--paper-2);
}

@media (max-width: 1260px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .snapshot {
    display: none;
  }

  .nav-tabs {
    justify-content: flex-end;
    overflow-x: auto;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .channel-row {
    grid-template-columns: 110px 1.3fr repeat(3, 90px);
  }

  .channel-takeaway {
    grid-column: 2 / -1;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .action-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .gap-item {
    grid-template-columns: 70px 0.8fr 1.2fr 1fr;
  }

  .gap-owner {
    grid-column: 2 / -1;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 960px) {
  .topbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-tabs {
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid rgba(252, 250, 245, 0.14);
  }

  .creative-toolbar {
    top: 0;
    grid-template-columns: 1fr;
  }

  .masthead,
  .section-hero,
  .decision-card,
  .overview-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .decision-card {
    gap: 0;
  }

  .decision-label {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }

  .decision-copy,
  .decision-proof {
    padding: 24px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-deep-dive {
    grid-template-columns: 1fr;
  }

  .platform-card {
    min-height: 0;
  }

  .new-test-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .month-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gap-list {
    gap: 12px;
  }

  .gap-item {
    grid-template-columns: 64px 1fr;
  }

  .gap-item > p {
    grid-column: 2;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1560px);
  }

  .view {
    padding-top: 42px;
  }

  .masthead h1,
  .section-hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.8rem);
  }

  .masthead,
  .section-hero {
    gap: 24px;
  }

  .decision-label strong {
    font-size: 2rem;
  }

  .decision-proof {
    grid-template-columns: 1fr auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .kpi-grid,
  .action-board,
  .creative-stats,
  .new-test-grid,
  .month-cards,
  .gap-summary,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 130px;
  }

  .channel-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-name,
  .channel-content,
  .channel-takeaway {
    grid-column: 1 / -1;
  }

  .channel-metric {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .stack-chart {
    gap: 5px;
    padding-inline: 0;
  }

  .stack-track {
    width: 70%;
  }

  .new-tests {
    grid-template-columns: 1fr;
  }

  .network-wheel {
    grid-template-columns: 1fr;
  }

  .donut {
    margin: 0 auto;
  }

  .source-panel,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
