@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-2: #eef1e7;
  --ink: #15201a;
  --ink-2: #4d5a52;
  --line: #dde3d6;
  --sun: #f2b632;
  --sun-soft: #fdf1d3;
  --leaf: #1f7a52;
  --leaf-dark: #155c3d;
  --leaf-soft: #e1f1e8;
  --warn: #9a5b00;
  --warn-soft: #fbeed6;
  --bad: #a3321f;
  --bad-soft: #f8e1dc;
  --night: #0f1d17;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 29, 23, .05), 0 6px 20px rgba(15, 29, 23, .06);
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1612; --surface: #172019; --surface-2: #1e2a22; --ink: #eef2ec; --ink-2: #a9b5ad; --line: #2c3a31;
    --sun: #f5c451; --sun-soft: #3a2f12; --leaf: #49b882; --leaf-dark: #3a9c6c; --leaf-soft: #173326;
    --warn: #f0b45a; --warn-soft: #36290f; --bad: #f08a76; --bad-soft: #3a1c16; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--leaf); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .6rem; font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2.6rem 0 .8rem; font-weight: 700; }
h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted, .hint { color: var(--ink-2); }
.hint { font-size: .86rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { background: var(--night); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(140deg, #f5c451, #f2a532); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { color: #cfd8d2; text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(245,196,81,.28), transparent 60%), var(--night); color: #fff; padding: 3.2rem 0 3rem; }
.hero.sub { padding: 2.4rem 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 600; color: var(--sun); margin-bottom: .6rem; }
.lead { font-size: 1.14rem; color: #cfd8d2; max-width: 680px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.45rem; color: #fff; }
.stat span { font-size: .84rem; color: #b9c5bd; }
.btn { display: inline-block; background: var(--sun); color: var(--night); font-weight: 600; text-decoration: none; padding: .7rem 1.1rem; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn.leaf { background: var(--leaf); color: #fff; }
.btn.leaf:hover { background: var(--leaf-dark); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.callout { border-left: 4px solid var(--sun); background: var(--sun-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout.leaf { border-color: var(--leaf); background: var(--leaf-soft); }

/* Calculator */
.calc { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .95rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select { font: inherit; padding: .62rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
details.more { margin-top: .4rem; }
details.more summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--leaf); margin-bottom: .6rem; }
.verdict { padding: 1.1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.verdict h3 { margin: 0 0 .3rem; }
.verdict.good { background: var(--leaf-soft); }
.verdict.warn { background: var(--warn-soft); }
.verdict.bad { background: var(--bad-soft); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.kpi span { display: block; font-size: .8rem; color: var(--ink-2); }
.kpi b { font-size: 1.3rem; }

/* Chart */
.viz svg { display: block; overflow: visible; }
.viz .grid { stroke: var(--line); }
.viz .axis { fill: var(--ink-2); font: 12px var(--font); font-variant-numeric: tabular-nums; }
.viz .zero { stroke: var(--ink-2); stroke-width: 1; opacity: .6; }
.viz .l1 { fill: none; stroke: #2a78d6; stroke-width: 2.5; stroke-linejoin: round; }
.viz .l2 { fill: none; stroke: #eb6834; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 6 4; }
.viz .lbl { font: 600 12px var(--font); }
.viz .lbl1 { fill: #2a78d6; } .viz .lbl2 { fill: #eb6834; }
@media (prefers-color-scheme: dark) { .viz .l1 { stroke: #3987e5; } .viz .l2 { stroke: #d95926; } .viz .lbl1 { fill: #6aa6ee; } .viz .lbl2 { fill: #f08a5d; } }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .86rem; color: var(--ink-2); margin-bottom: .4rem; }
.sw { display: inline-block; width: 18px; height: 3px; margin-right: .4rem; vertical-align: middle; background: #2a78d6; }
.sw.dash { background: repeating-linear-gradient(90deg, #eb6834 0 6px, transparent 6px 10px); }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

/* Providers */
.provider { display: flex; flex-direction: column; gap: .5rem; }
.provider h3 { margin: 0; }
.provider .tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { font-size: .76rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.provider .btn { margin-top: auto; align-self: flex-start; }

/* FAQ / article */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .6rem; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq[open] summary { margin-bottom: .5rem; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin-bottom: .35rem; }
.breadcrumb { font-size: .86rem; color: #b9c5bd; margin-bottom: .6rem; }
.breadcrumb a { color: #b9c5bd; }
.section { margin-top: 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem; font-size: .88rem; color: var(--ink-2); }
.site-footer a { color: var(--ink-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
