:root {
  --ink: #14213d; --body: #334155; --muted: #64748b; --line: #e2e8f0;
  --bg: #ffffff; --alt: #f6f8fb; --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #e6f4f2;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body); background: var(--bg); line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; margin: .3em 0 .4em; max-width: 22ch; }
h2 { font-size: 1.6rem; margin: 0 0 .4em; }
h3 { font-size: 1.1rem; margin: 0 0 .4em; }
section { padding: 64px 0; }
.alt { background: var(--alt); }

.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.bar { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.cta-sm { font-size: .9rem; font-weight: 600; text-decoration: none; }

.hero { padding-top: 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.kpis b { display: block; font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpis span { font-size: .88rem; color: var(--muted); }
.cta, button[type=submit] {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 12px 22px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.cta:hover, button[type=submit]:hover { filter: brightness(1.1); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 12px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: .9rem; cursor: pointer; color: var(--body);
}
.tabs button[aria-selected=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
td.med { font-weight: 700; color: var(--ink); }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.rank { padding-left: 1.4em; margin: 0; }
.rank li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rank li span { display: inline-block; width: calc(100% - 100px); }
.rank li b { float: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.cards article { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.price { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: 0; }

form { display: grid; gap: 16px; margin-top: 20px; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
input[type=email], input[type=text], select, textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
legend { font-weight: 600; color: var(--ink); font-size: .95rem; padding: 0 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--body); }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
#wl-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
#wl-msg.err { color: #b91c1c; }
#wl-msg.ok { color: var(--accent); }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .two, .cards { grid-template-columns: 1fr; }
  th, td { padding: 8px 6px; font-size: .9rem; }
}

/* ---- data pages ---- */
.search input { font: inherit; font-size: .9rem; padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 999px; width: 220px; }
.bar { gap: 16px; }
.page-head { padding: 48px 0 16px; }
.page-head h1 { max-width: none; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.chg { font-weight: 600; font-size: .95em; }
.chg.up { color: var(--accent); }
.chg.down { color: #b45309; }
.muted { color: var(--muted); }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
.bars .barcell { width: 40%; }
.bars .barcell span { display: block; height: 10px; border-radius: 3px; background: var(--accent); opacity: .75; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; }
.facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.locked { margin-top: 20px; border: 1px dashed var(--accent); border-radius: 12px; padding: 20px 24px; background: var(--accent-soft); }
.locked p { margin-top: 0; }
table.grid td { text-align: left; vertical-align: top; font-size: .9rem; }
table.grid th { text-align: left; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .9rem; text-decoration: none; color: var(--body); margin: 0 6px 6px 0; }
.pill.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.bigsearch { display: flex; gap: 8px; margin: 16px 0 20px; max-width: 560px; }
.bigsearch input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; }
.bigsearch button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) { .search { display: none; } }
.cta-link { margin-left: 18px; font-weight: 600; text-decoration: none; }
.bar .cta-sm + .cta-sm { margin-left: 0; }
