:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0b6b3a;
  --brand-ink: #084d2a;
  --accent: #f3b21b;
  --accent-amber: #d97706;
  --cream: #fef3c7;
  --radius: 12px;
  --maxw: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: "tnum" 1; /* tabular figures for money/rates */
}
.site-head {
  display: flex; align-items: center; gap: 10px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.tag {
  font-size: .72rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--brand-ink); background: #e7f3ec; border: 1px solid #cfe7d8;
  padding: 2px 8px; border-radius: 999px;
}
main { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 48px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 12px 0 6px; }
.lede { color: var(--muted); margin: 0 0 24px; font-size: 1.02rem; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 1px 2px rgba(20,24,31,.04);
}
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .prefix, .input-wrap .suffix {
  position: absolute; color: var(--muted); font-weight: 600; pointer-events: none;
}
.input-wrap .prefix { left: 14px; }
.input-wrap .suffix { right: 14px; }
input[type="number"] {
  width: 100%; font-size: 1.15rem; padding: 12px 14px 12px 30px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input.no-prefix { padding-left: 14px; padding-right: 34px; }
input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
input[type="range"] { width: 100%; accent-color: var(--brand); }

.results { margin-top: 26px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.stat.hero { grid-column: 1 / -1; background: #082b1a; border-color: #082b1a; color: #fff; }
.stat.highlight { grid-column: 1 / -1; background: var(--cream); border-color: #fcd34d; }
.stat.highlight .k, .stat.highlight .sub { color: #92660a; }
.stat.highlight .v { color: var(--accent-amber); }
.stat .k { font-size: .82rem; color: var(--muted); margin: 0 0 4px; }
.stat.hero .k { color: #a9d8bd; }
.stat .v { font-size: 1.7rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.stat.hero .v { font-size: 2.2rem; }
.stat .sub { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.stat.hero .sub { color: #cfe7d8; }

.compare {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.compare .row { display: flex; justify-content: space-between; padding: 12px 16px; }
.compare .row + .row { border-top: 1px solid var(--line); }
.compare .row.win { background: #f0f8f3; font-weight: 700; }
.compare .crow { padding: 14px 16px; }
.compare .crow + .crow { border-top: 1px solid var(--line); }
.clabel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.clabel b { font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: #eef1f4; border-radius: 999px; overflow: hidden; }
.bar .fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s ease; }
.bar .fill.pb { background: var(--brand); }
.bar .fill.sav { background: var(--accent-amber, #d97706); }
.verdict { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--cream); border: 1px solid #fcd34d; color: #5c4708; }

.draw { margin-top: 16px; font-size: .95rem; color: var(--muted); }
.draw b { color: var(--ink); }

.odds-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds-table th, .odds-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.odds-table th { font-size: .82rem; color: var(--muted); background: #f3f4f5; font-weight: 600; }
.odds-table td:first-child { font-weight: 600; }

section.prose { margin-top: 40px; }
section.prose h2 { font-size: 1.25rem; margin: 28px 0 8px; }
section.prose h2.with-icon { display: flex; align-items: center; gap: 8px; }
section.prose h3 { font-size: 1.02rem; margin: 18px 0 4px; }
section.prose p, section.prose li { color: #2a3340; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; margin: 10px 0; background: #fff; }
summary { font-weight: 600; cursor: pointer; padding: 10px 0; }
.source { font-size: .82rem; color: var(--muted); margin-top: 8px; }
a { color: var(--brand-ink); }
.site-foot nav { margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .results { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; }
}
