:root {
  --bg: #f2efe8;
  --panel: #fffdf8;
  --ink: #171717;
  --muted: #6b675f;
  --line: #d8d1c5;
  --accent: #ff5d2e;
  --yellow: #f4d54e;
  --green: #236b45;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.45; }
.topbar, main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
h2 { margin-bottom: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650; }
.status { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; white-space: nowrap; }
main { padding: 28px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel, .metric-card { background: var(--panel); border: 1px solid var(--line); }
.panel { padding: 28px; }
.intro-panel h2 { max-width: 680px; margin-bottom: 18px; }
.intro-panel > p:not(.eyebrow) { max-width: 650px; margin-bottom: 28px; font-size: 21px; color: #3b3833; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13px; }
.gauge-panel { display: flex; flex-direction: column; justify-content: center; }
.gauge-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.gauge-heading strong { color: var(--ink); font-size: 16px; }
.gauge { position: relative; height: 28px; margin: 8px 0 32px; border: 1px solid var(--line); background: #e7e1d6; overflow: hidden; }
.gauge::before { content: ""; position: absolute; left: 10%; top: 0; bottom: 0; width: 1px; background: var(--accent); z-index: 2; }
.gauge-fill { height: 100%; width: 0%; background: var(--accent); transition: width .35s ease; }
.gauge-min, .gauge-max { position: absolute; top: 34px; font-size: 12px; color: var(--muted); }
.gauge-min { left: 10%; transform: translateX(-50%); }
.gauge-max { right: 0; }
.countdown { font-size: 29px; font-weight: 650; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.gauge-panel .muted { margin: 10px 0 0; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 28px 0 72px; background: var(--line); border: 1px solid var(--line); }
.metric-card { min-height: 148px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; font-weight: 650; }
.metric-card small { color: var(--muted); font-size: 12px; }
.revenue-card strong { color: var(--accent); }
.section-block { margin-top: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 610px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
td { font-size: 15px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-size: 18px; }
.variant-name { display: flex; flex-direction: column; gap: 3px; }
.variant-name span { color: var(--muted); font-size: 12px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-column .section-block { margin-top: 0; }
.leaf-list { display: grid; gap: 10px; }
.leaf { padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.leaf-top { display: flex; justify-content: space-between; gap: 12px; }
.leaf-title { font-weight: 650; }
.leaf-meta { margin-top: 7px; color: var(--muted); font-size: 12px; }
.leaf-result { margin-top: 12px; display: flex; gap: 15px; color: var(--muted); font-size: 12px; }
.notes { margin-top: 68px; }
.notes p:last-child { margin-bottom: 0; font-size: 13px; }
.empty { padding: 24px; color: var(--muted); text-align: center; }
.good { color: var(--green); }
@media (max-width: 860px) {
  .hero-grid, .two-column { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar, main { width: min(var(--max), calc(100% - 28px)); }
  .panel { padding: 21px; }
  .metric-grid { margin-bottom: 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .metric-card { min-height: 125px; padding: 16px; }
}
