/* vpsmeter — one stylesheet, no framework, no webfonts: every byte here is on
   the critical path for Core Web Vitals. */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e2e5ea;
  --text: #16191d;
  --muted: #666e7a;
  --accent: #0b6e5f;
  --accent-soft: #e6f2ef;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1b1f23;
    --border: #2b3138;
    --text: #e9ecef;
    --muted: #97a1ad;
    --accent: #4fd1b5;
    --accent-soft: #17302b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }

nav { display: flex; gap: 20px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover { color: var(--accent); }

/* Content ----------------------------------------------------------------- */

main { padding: 32px 16px 48px; }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.lede { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 20px;
  font-size: 0.9rem;
}

/* Table ------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  /* Tabular figures keep price columns aligned digit-for-digit. */
  font-variant-numeric: tabular-nums;
}

table.plans th,
table.plans td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.plans thead th {
  background: var(--surface);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
}

table.plans tbody tr:last-child td { border-bottom: 0; }
table.plans tbody tr:hover { background: var(--surface); }

.num { text-align: right; }
th.num { text-align: right; }

.plan-name { font-weight: 600; }
.price { font-weight: 700; }
.muted { color: var(--muted); }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0 32px;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p { margin: 6px 0; max-width: 80ch; }

/* Breadcrumbs -------------------------------------------------------------- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { padding: 0 2px; }

/* Filters ----------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-end;
  padding: 14px 16px;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter { display: flex; flex-direction: column; gap: 4px; }

.filter label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.filters select,
.filters input {
  font: inherit;
  font-size: 0.92rem;
  padding: 6px 8px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 8.5rem;
}

.filters .reset {
  font: inherit;
  font-size: 0.88rem;
  padding: 7px 14px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.filters .reset:hover { color: var(--accent); border-color: var(--accent); }

.result-count { font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }

/* Cards, pills, facts ----------------------------------------------------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.cards a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.cards a:hover { border-color: var(--accent); }
.cards span { font-size: 0.85rem; }

.pills { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
.pills li a:hover { border-color: var(--accent); color: var(--accent); }
.pills li { font-size: 0.82rem; color: var(--muted); }
.pills.big li a { padding: 8px 16px; font-size: 0.95rem; }

.facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 0 0 20px;
  padding: 0;
}
.facts div {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.facts dd { margin: 3px 0 0; font-size: 1.05rem; font-weight: 600; }

/* Long-form and small print ---------------------------------------------- */

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
}

.prose { max-width: 70ch; padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.verdict {
  max-width: 72ch;
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.more { font-size: 0.92rem; color: var(--muted); margin: 12px 0 0; }
.fine { font-size: 0.8rem; color: var(--muted); max-width: 80ch; margin: 12px 0 0; }

table.plans caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

table.versus th[scope="row"] { color: var(--muted); font-weight: 600; white-space: normal; }
table.versus td { white-space: normal; }

/* Keeping the price visible -----------------------------------------------
   Plan names run to 60 characters. With every cell set to nowrap the table
   grew past its container and the price columns — the whole point of the
   table — were clipped off the right edge. So: names wrap, numbers never do,
   and on narrow screens the price stays pinned while the specs scroll. */

table.plans td.col-plan,
table.plans th.col-plan {
  white-space: normal;
  min-width: 11rem;
  max-width: 22rem;
}

@media (max-width: 900px) {
  /* Both euro columns are conveniences derived from the price next to them;
     the native price is the fact, so it is the one that must stay. */
  table.plans .col-eur,
  table.plans .col-pergb { display: none; }

  table.plans td.col-price,
  table.plans th.col-price {
    position: sticky;
    right: 0;
    background: var(--bg);
    box-shadow: -8px 0 8px -8px rgba(0, 0, 0, 0.35);
  }
  table.plans thead th.col-price { background: var(--surface); }
  table.plans tbody tr:hover td.col-price { background: var(--surface); }

  table.plans th,
  table.plans td { padding: 9px 10px; }
}

/* Links --------------------------------------------------------------------
   Default browser blue fails against the dark background, so links take the
   accent colour, which is defined per theme. */

main a { color: var(--accent); }
main a:hover { text-decoration-thickness: 2px; }
main .breadcrumbs a,
main .cards a,
main .pills a { color: var(--muted); }
main .cards a { color: var(--text); }
main .cards a:hover,
main .pills a:hover,
main .breadcrumbs a:hover { color: var(--accent); }
.site-footer a { color: var(--accent); }

.facts dd.fact-small { font-size: 0.88rem; font-weight: 500; line-height: 1.35; }
