
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --paper: #f3f5f4;
  --surface: #ffffff;
  --ink: #16292c;
  --sea: #1e3b40;
  --sea-hover: #2b535a;
  --sea-tint: #e4eceb;
  --line: #dce3e1;
  --muted: #5a6a6b;
  --ok: #2e6a4e;
  --ok-tint: #e5f0e9;
  --warn: #8f5a07;
  --warn-tint: #f8eeda;
  --bad: #a1352a;
  --bad-tint: #f7e4e0;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Schibsted Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--sea); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

/* App bar */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 74rem; margin: 0 auto; padding: 0.85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; color: var(--sea); text-decoration: none; }
.brand svg { flex: none; }
.who { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.9375rem; }
.page { max-width: 74rem; margin: 0 auto; padding: 1.75rem 1.5rem 4rem; }
.narrow { max-width: 46rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 1.05rem;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1; border-radius: var(--radius-sm);
  border: 1px solid var(--sea); background: var(--sea); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--sea-hover); border-color: var(--sea-hover); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--sea-tint); border-color: #c9d6d4; }
.btn.small { min-height: 2.125rem; padding: 0 0.8rem; font-size: 0.875rem; }
.btn.large { min-height: 3rem; padding: 0 1.4rem; font-size: 1rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); font-weight: 600; text-decoration: underline;
  text-underline-offset: 0.18em; cursor: pointer; }
.link.quiet { color: var(--muted); font-weight: 400; }
form.inline { display: inline-flex; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* Flash */
.flash { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1.25rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: var(--ok-tint); color: var(--ok); font-weight: 500; }

/* Status band: the one bold element */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
  padding: 2rem 2rem 2rem 1.75rem; border-radius: var(--radius); background: var(--sea-tint); margin-bottom: 1.5rem; }
.band.ok { background: var(--ok-tint); }
.band.warn { background: var(--warn-tint); }
.band.bad { background: var(--bad-tint); }
.band-main { display: flex; gap: 1.25rem; align-items: flex-start; }
.seal { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sea); }
.band.ok .seal { background: var(--ok); }
.band.warn .seal { background: var(--warn); }
.band.bad .seal { background: var(--bad); }
.band h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 750; margin-bottom: 0.55rem; }
.band.ok h1 { color: var(--ok); }
.band.warn h1 { color: var(--warn); }
.band.bad h1 { color: var(--bad); }
.band.muted h1 { color: var(--sea); }
.band p { color: var(--ink); opacity: 0.8; font-size: 1.0625rem; max-width: 40rem; }
.band .actions { margin-top: 1.1rem; }
.facts { display: grid; gap: 0.85rem; min-width: 15rem; padding-left: 2rem; border-left: 1px solid rgba(22, 41, 44, 0.12); }
.fact { display: grid; gap: 0.1rem; }
.fact span { font-size: 0.8125rem; color: var(--muted); }
.fact strong { font-size: 1rem; font-weight: 650; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.0625rem; font-weight: 700; }
.panel-body { padding: 1.25rem 1.5rem; }
.panel-body > * + * { margin-top: 0.85rem; }
.panel-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: #fafbfb; border-radius: 0 0 var(--radius) var(--radius); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.grid2 > .panel, .stack > .panel { margin-bottom: 0; }
.stack { display: grid; gap: 1.5rem; }
.dim { color: var(--muted); }
.small { font-size: 0.875rem; }
.bad-text { color: var(--bad); }

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.6rem 0.2rem 0.5rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; background: var(--sea-tint); color: var(--sea); white-space: nowrap; }
.pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.muted { background: #eef1f0; color: var(--muted); }
.why { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 0.35rem; max-width: 18rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { position: absolute; left: -9999px; }
th { text-align: left; font-weight: 600; font-size: 0.8125rem; color: var(--muted); padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 1.5rem; }
th:last-child, td:last-child { padding-right: 1.5rem; }
td.name { font-weight: 650; min-width: 10rem; overflow-wrap: anywhere; }
td.when { white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.acts { text-align: right; white-space: nowrap; }
.btn-row { display: inline-flex; gap: 0.4rem; justify-content: flex-end; flex-wrap: nowrap; }
.empty { padding: 2rem 1.5rem; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 1rem; }
.sr { position: absolute; left: -9999px; }

/* Connections */
.conn { display: grid; gap: 0; margin: 0; }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.conn-row:last-child { border-bottom: 0; }
.conn-row dt { font-weight: 650; }
.conn-row dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

/* Meter */
.meter { height: 8px; background: #e6ebea; border-radius: 4px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--sea); border-radius: 4px; }
.meter.high > span { background: var(--warn); }

/* Steps (restore is a real sequence) */
.steps { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.45rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.steps li b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #eef1f0; font-size: 0.8125rem; }
.steps li.now { color: var(--sea); border-color: var(--sea); }
.steps li.now b { background: var(--sea); color: #fff; }
.steps li.done b { background: var(--ok); color: #fff; }
.page-title { margin-bottom: 1.25rem; }
.page-title h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 750; }
.page-title p { color: var(--muted); margin-top: 0.4rem; max-width: 42rem; }

/* Forms */
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
select { font: inherit; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid #c9d3d1; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); width: 100%; max-width: 26rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.check:hover { border-color: #c9d3d1; background: #fafbfb; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--sea); margin: 0; }
.diff td { font-size: 0.9375rem; }
.diff .was { color: var(--bad); text-decoration: line-through; text-decoration-color: rgba(161, 53, 42, 0.45); }
.diff .will { color: var(--ok); font-weight: 600; }

/* Plan */
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; }
.plan-price strong { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--sea); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 0.2rem; color: var(--ok); }
.billing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

/* KPIs (admin) */
.kpis { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.kpi span { font-size: 0.875rem; color: var(--muted); }
.kpi strong { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; }

/* Landing */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 3.5rem 0 2rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; color: var(--sea); }
.hero p.lead { font-size: 1.1875rem; color: var(--muted); margin: 1.25rem 0 1.75rem; max-width: 36rem; }
.hero .fineprint { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; }
.preview { pointer-events: none; }
.preview .band { margin: 0; padding: 1.5rem; }
.preview .band h1 { font-size: 1.625rem; }
.preview .band p { font-size: 0.9375rem; }
.preview .seal { width: 2.75rem; height: 2.75rem; }
.preview .panel { margin: 1rem 0 0; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.points h2 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.points p { color: var(--muted); font-size: 0.9375rem; }

/* Message pages */
.message { max-width: 34rem; margin: 3rem auto; text-align: center; }
.message .seal { margin: 0 auto 1.25rem; }
.message h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 750; margin-bottom: 0.6rem; }
.message p { color: var(--muted); margin-bottom: 1.5rem; }
.message .actions { justify-content: center; }
.message.ok .seal { background: var(--ok); }
.message.bad .seal { background: var(--bad); }
.message.bad h1 { color: var(--bad); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { max-width: 74rem; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center;
  justify-content: space-between; font-size: 0.875rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot a { color: var(--muted); }

/* Legal and info documents */
.doc { max-width: 46rem; }
.doc h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.15; font-weight: 750; margin-bottom: 0.4rem; }
.doc .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.75rem; }
.doc h2 { font-size: 1.1875rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.doc p, .doc li { line-height: 1.65; }
.doc p + p { margin-top: 0.75rem; }
.doc ul { margin: 0.5rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.doc .panel { margin-top: 1.5rem; }
.doc .panel-head h2 { margin: 0; }
.faq { display: grid; gap: 1.25rem; margin-top: 1rem; }
.faq h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }

@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .facts { padding-left: 0; border-left: 0; border-top: 1px solid rgba(22, 41, 44, 0.12); padding-top: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .grid2, .billing, .kpis, .hero, .points { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; gap: 2rem; }
}
@media (max-width: 640px) {
  .page { padding: 1.25rem 1rem 3rem; }
  .bar-in { padding: 0.75rem 1rem; }
  .who span { display: none; }
  .band-main { flex-direction: column; gap: 0.9rem; }
  .seal { width: 2.75rem; height: 2.75rem; }
  .facts { grid-template-columns: 1fr; }
  .panel-head, .panel-body, .conn-row, .panel-foot { padding-left: 1rem; padding-right: 1rem; }
  .conn-row { flex-direction: column; align-items: flex-start; }
  .bases thead { position: absolute; left: -9999px; }
  .bases table, .bases tbody, .bases tr, .bases td { display: block; }
  .bases tr { padding: 1rem; border-bottom: 1px solid var(--line); }
  .bases tbody tr:last-child { border-bottom: 0; }
  .bases td { border: 0; padding: 0.2rem 0 !important; }
  .bases td.num, .bases td.acts { text-align: left; }
  .bases td.when { white-space: normal; }
  .bases td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .bases td.acts { padding-top: 0.75rem !important; }
  .bases .btn-row { justify-content: flex-start; flex-wrap: wrap; }
  .bases td.acts { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
