@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --slate: #5F6368;
  --rule: #E5E5EA;
  --teal: #0E7C72;
  --peak: #D93A2B;
  --outline: #8E8E93;
  --sunk: #F2F2F7;
  --gutter: 16px;
  --measure: 34rem;
  --rail: 11rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #FFFFFF;
    --slate: #A1A1A6;
    --rule: #38383A;
    --teal: #4CC2B3;
    --peak: #FF6B5E;
    --sunk: #1C1C1E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Masthead */
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 0 0; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; gap: 22px; font-size: 16px; }
.masthead nav a { color: var(--slate); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }

/* The day chart: the one bold element */
.day { margin: 48px 0 0; }
.plot { position: relative; height: clamp(190px, 26vw, 300px); }
.day svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tariffwise-plot .plot { height: clamp(160px, 19vw, 220px); }
.flex-label { position: absolute; left: 0; transform: translateY(-125%); font-size: 14px; color: var(--ink); }
.axis { position: relative; height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.axis span { position: absolute; transform: translateX(-50%); }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.day figcaption { max-width: var(--measure); margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.bar { transform-box: fill-box; transform-origin: 50% 100%; }
.bar.neg { transform-origin: 50% 0%; }
@media (prefers-reduced-motion: no-preference) {
  .day.animate .bar { animation: rise 520ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 14ms); }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Headline */
h1 {
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 56px 0 20px;
  max-width: 15ch;
}
.lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; color: var(--slate); max-width: var(--measure); margin: 0; }

/* Sections: heading in a left rail on wide screens */
.section {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, var(--measure));
  column-gap: 48px;
  padding: 28px 0 8px;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.section > h2 { grid-column: 1; margin: 2px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.section > :not(h2) { grid-column: 2; }
.section > :nth-child(2) { margin-top: 0; }
h3 { font-size: 18px; font-weight: 600; margin: 26px 0 4px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.1em; }
li { margin: 8px 0; }
.muted { color: var(--slate); font-size: 15px; }

/* Marks legend (Tariffwise) */
.legend { list-style: none; padding: 0; display: grid; gap: 12px; }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; margin: 0; }
.legend svg { width: 34px; height: 26px; display: block; }

/* Tables and notes (privacy) */
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 6px 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
th { color: var(--slate); font-weight: 600; }
.note { background: var(--sunk); border-radius: 10px; padding: 16px 18px; margin: 0 0 18px; }
.updated { color: var(--slate); font-size: 15px; margin: -8px 0 0; }

/* Footer */
.colophon { margin-top: 88px; padding: 22px 0 48px; border-top: 1px solid var(--rule); color: var(--slate); font-size: 14px; line-height: 1.6; }
.colophon p { margin: 0 0 4px; max-width: 46rem; }
.colophon nav { display: flex; gap: 20px; margin-top: 10px; }
.colophon a { color: var(--slate); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { grid-template-columns: 1fr; }
  .section > :not(h2), .section > h2 { grid-column: 1; }
  .day { margin-top: 36px; }
  h1 { margin-top: 40px; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
  td:nth-child(2) { color: var(--slate); font-size: 15px; }
}

/* Long-form pages (privacy, support): one column, headings in the flow */
.doc { max-width: 40rem; }
.doc h1 { font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
.doc .lead { margin-bottom: 8px; }
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc .note { margin-top: 28px; }
