:root {
  --accent: #c1b798;
  --accent-ink: #141414;
  --tan: #c1b798;
  --brown: #6B4A2F;
  --ink: #141414;
  --text: #16171A;
  --muted: #62646B;
  --faint: #9A9CA3;
  --line: #E4E4DF;
  --line-strong: #D2C4B4;
  --bg: #F5F5F2;
  --panel: #FFFFFF;
  --panel-2: #F7F7F4;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { font-size: 14px; line-height: 1.5; min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 40px;
  background: rgba(245, 245, 242, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo {
  flex: none;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 7px 11px 7px 13px;
  border-radius: 4px;
}
.brand-text { min-width: 0; }
.brand-text h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text .sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.controls { display: flex; align-items: center; gap: 12px; flex: none; }
.range-pill {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-variant-numeric: tabular-nums;
}
.seg {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 7px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.seg button:hover { color: var(--text); }
.seg button.on {
  background: var(--accent);
  color: var(--accent-ink);
}
.seg button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 40px 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 16px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 28ch;
}
.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
}
.hero-copy strong { color: var(--text); font-weight: 600; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 104px;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.kpi .lbl {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.kpi .val {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
}
.kpi .detail {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card .hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  justify-content: center;
}
.fstep {
  display: grid;
  grid-template-columns: 130px 1fr 90px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.fstep .name { color: var(--muted); font-weight: 500; }
.fstep .bar {
  height: 28px;
  background: var(--panel-2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.fstep .bar div {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 3px;
}
.fstep.emphasis .name { color: var(--text); font-weight: 650; }
.fstep .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.frate {
  font-size: 11.5px;
  color: var(--faint);
  margin: -6px 0 4px 142px;
  font-variant-numeric: tabular-nums;
}

.pie-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 220px;
}
.pie-svg { width: 100%; max-width: 260px; margin: 0 auto; display: block; }
.pie-center-label {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  fill: var(--text);
}
.pie-center-sub { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.pie-legend { display: flex; flex-direction: column; gap: 14px; }
.pie-leg {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px 12px;
  align-items: start;
}
.pie-leg i {
  width: 12px; height: 12px; border-radius: 3px; margin-top: 4px;
}
.pie-leg .t { font-size: 13px; color: var(--muted); }
.pie-leg .v {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: -4px;
}

.ads-and-opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}
.ads-section { margin-bottom: 0; min-width: 0; }
.ads-section .card-hd { margin-bottom: 8px; }
.ads-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 78ch;
}
.ads-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
.ads-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ads-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ads-and-opportunity .callout { min-height: 0; }
.ads-grid.cols-3 .ad-visual { height: 220px; }
.ad-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ad-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  padding: 16px 16px 8px;
  background: #EEECE6;
}
.ad-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
.ad-meta { padding: 12px 16px 16px; }
.ad-meta .name {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 6px;
}
.ad-meta .stats {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ad-meta .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(193, 183, 152, 0.35);
  padding: 4px 8px;
  border-radius: 999px;
}

.grow {
  display: block;
  margin-bottom: 8px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.step {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.callout {
  background: linear-gradient(160deg, #16171A 0%, #2A2C31 55%, #3B3D42 100%);
  color: #F5F5F2;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.callout .lead {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.callout p {
  margin: 0;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.callout .foot {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(245, 245, 242, 0.72);
  line-height: 1.5;
}

.footer-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .hero h2 { max-width: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .ads-and-opportunity { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; height: auto; min-height: var(--header-h); flex-wrap: wrap; }
  .wrap { padding: 18px 16px 40px; }
  .kpis, .steps, .pie-wrap { grid-template-columns: 1fr 1fr; }
  .ads-grid.cols-2, .ads-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .fstep { grid-template-columns: 88px 1fr 72px; }
  .frate { margin-left: 100px; }
  .kpi .val { font-size: 22px; }
  .range-pill { display: none; }
  .ad-visual { height: 200px; }
}
@media (min-width: 1800px) {
  .topbar { padding: 0 56px; }
  .wrap { padding: 32px 56px 72px; }
  .ad-visual { height: 300px; }
  .kpi .val { font-size: 28px; }
}
