:root {
  --paper: #FBFAF6;
  --card: #FFFFFF;
  --sunken: #F3F1E9;
  --ink: #1F1E1B;
  --ink2: #56534C;
  --muted: #767266;
  --line: #E7E3D7;
  --line-soft: #F0EDE3;
  --accent: #1F6F5E;
  --accent-hover: #185A4C;
  --accent-soft: #E6F0EB;
  --period: #6495ED;
  --no: #B24A33;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
main { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
a:hover { border-bottom-color: var(--accent); }
h1, h2, h3 { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 960px; margin: 0 auto; padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { font: 600 1.5rem var(--serif); letter-spacing: -.02em; color: var(--ink); }
.wordmark .period { color: var(--period); }
.site-header-cta { white-space: nowrap; }

/* ---------- Buttons ---------- */
.primary-btn {
  appearance: none; display: inline-block;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: .7rem 1.25rem; font: 600 .95rem var(--sans); border-radius: 8px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .05s;
}
a.primary-btn:hover { color: #fff; border-bottom-color: var(--accent); }
@media (hover: hover) { .primary-btn:hover { background: var(--accent-hover); } }
.primary-btn:active { transform: translateY(1px); }
.secondary-btn {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--line); padding: .7rem 1.25rem;
  font: 600 .95rem var(--sans); border-radius: 8px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.secondary-btn:hover { border-color: var(--muted); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 3.5rem; text-align: left; }
.hero h1 {
  font: 600 clamp(2.6rem, 6.2vw, 4.2rem) var(--serif);
  letter-spacing: -.03em; line-height: 1.04; color: var(--ink);
}
.hero h1 .l2 { color: var(--accent); }
.hero .line { display: block; opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.22,.61,.36,1) forwards; }
.hero .line.l2 { animation-delay: .32s; }
.hero-lead {
  max-width: 44rem; margin: 1.75rem 0 0;
  font-size: 1.22rem; line-height: 1.6; color: var(--ink2);
  opacity: 0; animation: fade .8s ease .7s forwards;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.9rem; opacity: 0; animation: fade .8s ease .95s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero .line, .hero-lead, .hero-cta { animation: none; opacity: 1; transform: none; }
}

/* ---------- Section scaffolding ---------- */
.section { margin-top: 3.25rem; }
.eyebrow {
  font: 600 .72rem var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }

/* ---------- Why: two boxes ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-card { padding: 1.6rem 1.7rem; }
.why-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.why-card .icon svg { width: 22px; height: 22px; }
.why-card h3 { font: 600 1.35rem var(--serif); letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.why-card p { margin: .55rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--ink2); }
.why-card .jump { display: inline-block; margin-top: .9rem; font: 600 .9rem var(--sans); color: var(--accent); border-bottom: 1px solid transparent; }
.why-card .jump:hover { border-bottom-color: var(--accent); }
.metric { font: 500 2.6rem var(--mono); color: var(--accent); letter-spacing: -.02em; line-height: 1; margin-bottom: .5rem; }

/* ---------- What you get ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.offer-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .6rem;
}
.offer-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: .3rem;
}
.offer-icon svg { width: 24px; height: 24px; }
.offer-card h3 { font: 600 1.2rem var(--serif); letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
.offer-card p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink2); }

/* ---------- Results header ---------- */
.results-head { margin-bottom: 1.1rem; }
.results-head h2 { font: 500 1.9rem var(--serif); letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.results-head .sub { font-size: 1rem; color: var(--muted); margin: .35rem 0 0; line-height: 1.5; }

/* ---------- Performance: chart + Brier table ---------- */
.perf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.perf-grid.perf-grid--single { grid-template-columns: minmax(0, 620px); justify-content: center; }

.perf-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.2rem 1.3rem 1.05rem; display: flex; flex-direction: column; min-width: 0;
}
.panel-title { font: 600 1.15rem var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 .75rem 0; }

.chart-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
  padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line-soft);
}
.chart-stat { display: flex; flex-direction: column; gap: .2rem; }
.chart-stat-k { font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chart-stat-v { font: 500 1.45rem var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.chart-stat-v.pos { color: var(--accent); }
.chart-stat-v.neg { color: var(--no); }

.chart-svg-wrap { position: relative; width: 100%; aspect-ratio: 640 / 232; max-height: 300px; margin: auto 0; }
.chart { width: 100%; height: 100%; display: block; }
.chart-grid line { stroke: var(--line-soft); stroke-width: 1; }
.chart-baseline { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .6; }
.chart-baseline-label {
  position: absolute; right: 4px; transform: translateY(-50%);
  font: 500 10px var(--mono); color: var(--muted); background: var(--card);
  padding: 0 4px; pointer-events: none; white-space: nowrap;
}
.chart-hover-line { stroke: var(--ink2); stroke-width: 1; stroke-dasharray: 3 3; visibility: hidden; }
.chart-hover-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; visibility: hidden; }
.chart-tip {
  position: absolute; transform: translate(-50%, -135%);
  background: var(--ink); color: var(--paper); font: 600 11px var(--mono);
  white-space: nowrap; padding: .25rem .5rem; border-radius: 6px;
  pointer-events: none; box-shadow: 0 2px 8px rgba(31,30,27,.18); z-index: 2;
}
.chart-line { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.chart-line.animate { transition: stroke-dashoffset 2.4s cubic-bezier(.22,.61,.36,1); stroke-dashoffset: 0 !important; }
.chart-area { opacity: 0; transition: opacity .8s ease 1.6s; }
.chart-area.animate { opacity: 1; }
.chart-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; opacity: 0; transition: opacity .4s ease 2.2s; }
.chart-dot.animate { opacity: 1; }
.chart-axis {
  display: flex; justify-content: space-between; font: 400 .72rem var(--mono);
  color: var(--muted); letter-spacing: .06em; font-variant-numeric: tabular-nums; margin-top: .5rem;
}

.brier-panel { padding-bottom: 1rem; }
.brier-explain { font-size: .98rem; line-height: 1.55; color: var(--ink2); margin: 0 0 .85rem; }
.brier-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line-soft); }
.brier-k { font: 600 .65rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brier-hint { font: .72rem var(--sans); color: var(--muted); }
.brier-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.brier-table thead { display: none; }
.brier-table th, .brier-table td { padding: .55rem .1rem; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; }
.brier-table tbody th { color: var(--ink); font-weight: 500; }
.brier-table tbody td { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink2); width: 1%; white-space: nowrap; }
.brier-table tr:last-child th, .brier-table tr:last-child td { border-bottom: none; }
.brier-table tr.highlight th, .brier-table tr.highlight td { color: var(--accent); font-weight: 600; }
.fb-tag {
  display: inline-block; margin-left: .4rem; font: 500 .7rem var(--mono);
  letter-spacing: .02em; text-transform: uppercase; color: var(--ink2);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: .05rem .45rem; vertical-align: middle;
}
.fb-note { margin: .85rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--ink2); }
.brier-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: .8rem 0; }

/* ---------- Footer / contact ---------- */
.contact {
  margin-top: 3.5rem; padding: 3rem 1.5rem 3.25rem; border-top: 1px solid var(--line); text-align: center;
}
.contact h2 { font: 500 1.9rem var(--serif); letter-spacing: -.01em; color: var(--ink); margin-bottom: .75rem; }
.contact p { color: var(--ink2); font-size: 1.05rem; margin: 0 0 1.5rem; }
.contact .email { display: block; margin-top: 1.1rem; font: 500 1rem var(--mono); color: var(--muted); }
.contact .email a { color: var(--accent); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .why-grid, .perf-grid, .offer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .primary-btn, .secondary-btn { min-height: 44px; }
  .site-header-inner { padding: .55rem 1rem; gap: .6rem; }
  .wordmark { font-size: 1.35rem; }
  .site-header-cta { padding: .5rem .85rem; font-size: .9rem; min-height: 38px; }
}
@media (max-width: 480px) {
  main { padding: 0 1rem; }
  .chart-meta { gap: .5rem; }
  .chart-stat-v { font-size: 1.15rem; }
  .brier-table { font-size: .95rem; }
  .results-head h2 { font-size: 1.5rem; }
}
