/* tokker.dev. One stylesheet, tokens first. Port of "tokker Homepage v2.dc.html". */

@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 500 700; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --bg: #F4F4F1; --ink: #14171C; --ink2: #4D525A; --rule: #DFE0DB; --panel: #FFFFFF; --panel2: #ECEDE8;
  --accent: #F2B84B; --onaccent: #15181D; --up: #2D7A4C; --down: #A9472F; --focus: #B7791F;
  --board: #15181D; --bar: #B5B8B0; --grid: rgba(20, 23, 28, 0.05);
  /* the board is dark in both themes */
  --b-ink: #E9EBEE; --b-ink2: #B9BEC5; --b-ink3: #A3A9B1; --b-rule: #353B44; --b-rule2: #262B32; --b-chip: #22272E; --flap: #2A3038;
  --b-up: #7FD6A0; --b-down: #FF9C8A;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --flapfont: "Archivo", "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1013; --ink: #E8EAE6; --ink2: #A3A8AE; --rule: #272B31; --panel: #15181C; --panel2: #1C2025;
  --up: #7FCB98; --down: #F0957F; --focus: #F2B84B; --board: #090B0D; --bar: #4A5058; --grid: rgba(232, 234, 230, 0.04);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1013; --ink: #E8EAE6; --ink2: #A3A8AE; --rule: #272B31; --panel: #15181C; --panel2: #1C2025;
    --up: #7FCB98; --down: #F0957F; --focus: #F2B84B; --board: #090B0D; --bar: #4A5058; --grid: rgba(232, 234, 230, 0.04);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
input::placeholder { color: var(--ink2); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--bg); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.n { text-align: right; white-space: nowrap; }
td.n, .qt td, .fl, .bar__v, .r__p, .col__price, .col__nums .v { font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }
.unk { color: var(--ink2); font-style: italic; }

/* ---- split-flap ---- */
.flaps { display: inline-flex; }
.fl {
  display: inline-block; width: 0.68em; margin-right: 2px; text-align: center; line-height: 1.3em;
  background: var(--flap) linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(0, 0, 0, 0.6) calc(50% - 0.5px), rgba(0, 0, 0, 0.6) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  color: var(--accent); border-radius: 3px; font-family: var(--flapfont); font-weight: 600; font-stretch: 75%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); transition: transform 0.04s linear;
}
.fl--dot { width: 0.36em; }
.fl.is-rolling { transform: scaleY(0.88); opacity: 0.85; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.top__bar { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; padding: 3px; background: var(--board); border-radius: 7px; min-width: 46px; height: 32px; font-size: 20px; }
.logo .fl { margin-right: 1px; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.wordmark span, .foot__brand span { color: var(--ink2); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--panel2); color: var(--ink); }
.nav__group { display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 12px; border: 1px solid var(--rule); border-radius: 999px; }
.nav__group a { padding: 5px 11px; }
.nav__label { font-size: 13px; font-weight: 700; color: var(--ink2); margin-right: 4px; }
.theme { font-size: 14px; background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; margin-left: 4px; line-height: 1.2; }
.theme:hover { border-color: var(--ink); }
.nav .nav__cta { background: var(--ink); color: var(--bg); font-weight: 600; padding: 8px 16px; margin-left: 4px; }
.nav .nav__cta:hover { background: var(--ink); color: var(--bg); opacity: 0.88; }
@media (max-width: 720px) {
  .nav { font-size: 14px; gap: 2px; }
  .nav a { padding: 6px 9px; }
  .nav__group { padding-left: 9px; }
}

/* ---- hero ---- */
.hero { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; background-position: center top; }
.hero__grid { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 500; padding: 6px 12px 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.25); }
h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.lede { margin-top: 24px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink2); text-wrap: pretty; }

.search { margin-top: 32px; max-width: 600px; position: relative; }
.search__box { display: flex; align-items: center; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 5px 5px 22px; box-shadow: 0 1px 0 var(--rule), 0 12px 32px -16px rgba(20, 23, 28, 0.25); }
.search__box:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search__box input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--ink); text-overflow: ellipsis; }
.search__box button { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--onaccent); font-weight: 600; font-size: 15px; cursor: pointer; }
.search__results { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 15; background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.25); max-height: 420px; overflow-y: auto; }
.search__results a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 10px; text-decoration: none; }
.search__results a:hover, .search__results a:focus-visible { background: var(--panel2); color: var(--ink); }
.search__results .r__n { display: block; font-weight: 600; }
.search__results .r__m { display: block; font-size: 13px; color: var(--ink2); }
.search__results .r__p { flex: none; font-size: 15px; font-weight: 500; text-align: right; max-width: 45%; }
.search__none { margin: 10px 0 0 22px; font-size: 15px; color: var(--ink2); }
.search__try { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.search__try button { font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.search__try button:hover { border-color: var(--ink); }

/* ---- quote board ---- */
.board { min-width: 0; background: var(--board); color: var(--b-ink); border-radius: 20px; padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 30px 60px -30px rgba(10, 12, 16, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.board a { color: #C3C8CE; }
.board a:hover { color: #FFFFFF; }
.board__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.board__asof { font-size: 13px; color: var(--b-ink3); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--panel2); border-radius: 999px; padding: 4px; }
.seg button { font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; background: transparent; color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg--dark { background: var(--b-chip); }
.seg--dark button { font-size: 14px; padding: 6px 12px; color: var(--b-ink); }
.seg--dark button[aria-selected="true"] { background: var(--accent); color: var(--onaccent); box-shadow: none; }
.quote__sub { margin-top: 14px; font-size: 13px; color: var(--b-ink3); }
.quote__lead { margin: 8px 0 4px; font-size: 14px; color: var(--b-ink2); }
.quote__flaps { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; }
.quote__tag { display: block; font-size: 12px; font-weight: 500; color: var(--b-ink3); margin-bottom: 6px; letter-spacing: 0.04em; }
.flaps--xl { font-size: clamp(34px, 5vw, 54px); }
.quote__best { margin-top: 10px; font-size: 14px; color: var(--b-ink2); }
.scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.board .scroll { margin-top: 20px; }
.qt { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px; }
.qt th, .qt td { padding: 10px 8px; text-align: right; }
.qt thead th { font-weight: 500; font-size: 12px; color: var(--b-ink3); padding-top: 8px; padding-bottom: 8px; }
.qt tr { border-bottom: 1px solid var(--b-rule2); }
.qt thead tr { border-bottom-color: var(--b-rule); }
.qt th:first-child { text-align: left; padding-left: 0; font-weight: 400; }
.qt td:last-child, .qt th:last-child { padding-right: 0; white-space: nowrap; }
.qt td { color: #F1F2F4; }
.qt__p { display: block; font-weight: 600; color: #F1F2F4; }
.qt__n { display: block; font-size: 12px; color: var(--b-ink3); }

/* ---- ticker ---- */
.ticker { min-height: 72px; background: var(--board); color: var(--b-ink); display: flex; align-items: stretch; }
.ticker__side { flex: none; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid #2C323A; font-size: 12px; color: #C3C8CE; white-space: nowrap; }
.ticker__btn { font-size: 12px; font-weight: 600; color: var(--b-ink); background: var(--b-chip); border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ticker__view { position: relative; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.ticker__view:focus-visible { outline-offset: -2px; }
.ticker__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.ticker.is-running .ticker__view { overflow-x: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent); }
.ticker.is-running .ticker__track { animation: tk-scroll var(--tk-dur, 95s) linear infinite; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk__item { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-right: 1px solid #2C323A; flex: none; }
.tk__label { font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--b-ink); white-space: nowrap; }
.tk__seg { display: flex; align-items: center; gap: 6px; font-size: 26px; }
.tk__tag { font-size: 11px; font-weight: 500; color: var(--b-ink3); letter-spacing: 0.04em; }
.meta { padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--ink2); }
.mv { font-weight: 600; white-space: nowrap; }
.mv--down { color: var(--up); }
.mv--up { color: var(--down); }

/* ---- sections ---- */
.sec { padding-top: clamp(72px, 10vw, 128px); scroll-margin-top: 64px; }
.sec--last { padding-bottom: clamp(72px, 10vw, 128px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.sec__lede { margin-top: 12px; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--ink2); }
.sec__lede a { color: var(--ink); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 28px; }
.sec__note { margin: 0 0 16px; max-width: 76ch; font-size: 15px; color: var(--ink2); }
.modes { display: flex; gap: 28px; }
.modes button { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; background: none; border: 0; padding: 0 0 6px; cursor: pointer; color: var(--ink2); border-bottom: 3px solid transparent; }
.modes button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.mode + .mode { margin-top: 40px; }
.js .mode + .mode { margin-top: 0; }
.mode__h { font-size: 20px; margin-bottom: 10px; }
.js .mode__h { display: none; }
.tier { margin-top: 20px; }
.tier:focus-visible { outline-offset: 4px; border-radius: 18px; }
.tbl { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.pt { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 16px; }
.pt th, .pt td { padding: 16px 12px; vertical-align: middle; }
.pt thead th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink2); background: var(--panel2); padding-top: 12px; padding-bottom: 12px; }
.pt thead th.n { text-align: right; }
.pt tr { border-bottom: 1px solid var(--rule); }
.pt tbody tr:last-child { border-bottom: 0; }
.pt tbody tr:hover { background: var(--panel2); }
.pt th:first-child, .pt td:first-child { padding-left: 24px; }
.pt th:last-child, .pt td:last-child { padding-right: 24px; }
.pt tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
.pv { display: block; }
.sub { display: block; font-size: 13px; color: var(--ink2); font-weight: 400; margin-top: 2px; }
td .sub { white-space: normal; }
.pt .pv { color: var(--ink2); }
.pt tbody th .pv { color: var(--ink); }
.chk { color: var(--ink2); font-size: 14px; white-space: nowrap; }
.tier__note { margin-top: 16px; max-width: 76ch; font-size: 15px; line-height: 1.55; }
.fine { margin-top: 16px; max-width: 76ch; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.intl { margin-top: 36px; max-width: 76ch; font-size: 15px; line-height: 1.55; }
.intl h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.intl p { color: var(--ink2); }
.intl ul { margin: 8px 0 0; padding-left: 20px; }
.intl li + li { margin-top: 4px; }

/* ---- calculator ---- */
.calc { margin-top: 32px; background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(18px, 3vw, 32px); }
.calc__wl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.calc__wl > span:first-child { font-size: 14px; font-weight: 600; }
.calc__wl .seg button { font-size: 14px; padding: 8px 14px; }
.calc__desc { font-size: 14px; color: var(--ink2); }
.calc__grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px clamp(32px, 5vw, 64px); align-items: start; }
.calc__out, .calc__bars { min-width: 0; }
.calc__k { font-size: 14px; color: var(--ink2); }
.calc__bars .calc__k { margin-bottom: 12px; }
.calc__big { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc__big > span:first-child { font-size: clamp(52px, 7vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.calc__big > span:last-child { font-size: 18px; color: var(--ink2); }
.calc__sum { margin-top: 18px; max-width: 44ch; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.35; font-weight: 600; text-wrap: pretty; }
.calc__ass { margin-top: 12px; max-width: 60ch; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bar { width: 100%; color: var(--ink); background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr) 4.6em; align-items: center; gap: 12px; text-align: left; }
.bar:hover { background: var(--panel2); }
.bar[aria-pressed="true"] { background: var(--panel2); }
.bar__l { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar[aria-pressed="true"] .bar__l { font-weight: 700; }
.bar__t { height: 10px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.bar[aria-pressed="true"] .bar__t, .bar:hover .bar__t { background: var(--bg); }
.bar__t > span { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.bar[aria-pressed="true"] .bar__t > span { background: var(--accent); }
.bar__v { font-size: 14px; font-weight: 600; text-align: right; }
.bar--ref { cursor: default; }
.bar--ref:hover { background: transparent; }
.bar--ref .bar__t > span { background: var(--ink2); }
.bar--ref .bar__l { color: var(--ink2); }
/* Custom workload: the inputs ship disabled until the estimate API lands. */
.calc__custom { margin-top: 20px; padding: 14px 16px 16px; border: 1px dashed var(--rule); border-radius: 12px; }
.calc__custom legend { font-size: 14px; font-weight: 600; color: var(--ink2); padding: 0 6px; }
.calc__customgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px 16px; }
.calc__customgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink2); }
.calc__customgrid input { font: inherit; font-size: 15px; color: var(--ink2); background: var(--panel2); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; cursor: not-allowed; }
.calc__note { margin: 12px 0 0; font-size: 13px; color: var(--ink2); }

/* Plan picker: which plans get a column. */
.calc__pick { margin-top: 32px; border: 0; border-top: 1px solid var(--rule); padding: 0; }
.calc__pick legend { font-size: 14px; font-weight: 600; color: var(--ink2); padding: 14px 0 0; }
.calc__pick + .calc__k { margin-top: 20px; }
.calc__pickgrid { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pk { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 14px; background: var(--panel2); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
.pk:hover { border-color: var(--ink2); }
.pk:has(input:checked) { background: var(--panel); border-color: var(--ink); }
.pk:has(input:disabled) { opacity: .55; cursor: default; }
.pk input { flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--focus); }
.pk__l { min-width: 0; }
.tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink2); }
.tag--cn { color: var(--onaccent); background: var(--accent); border-color: transparent; }

/* Plan columns. Cards, never a wide table: one column on small screens. */
.cols { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; align-items: stretch; }
.col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--panel2); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; }
.col__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; font-size: 17px; }
.col__v { font-size: 13px; color: var(--ink2); }
.col__price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.col__price span { font-size: 13px; font-weight: 400; color: var(--ink2); }
.col__none { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.col__nums { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.col__nums li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.col__nums .k { font-size: 13px; color: var(--ink2); }
.col__nums .v { font-weight: 600; text-align: right; }
.col__nums .v > span { display: inline-block; }
.col__eff .v { font-size: 16px; }
.binds { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; padding: 0 7px; border: 1px solid var(--ink); border-radius: 999px; }
.col__be { font-size: 13.5px; line-height: 1.45; }
.col__ass { font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.col__words { width: 100%; font-size: 13px; }
.col__words summary { cursor: pointer; color: var(--ink2); }
.col__words summary:hover { color: var(--ink); }
.col__words blockquote { margin: 10px 0 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--rule); font-size: 13px; line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }
.col__words .k { color: var(--ink); font-weight: 600; }
.col__fair { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.col__src { margin-top: auto; font-size: 12.5px; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }

/* ---- model selector (inside a plan card) ---- */
.model-sel { font-family: var(--sans); font-size: 14px; padding: 4px 6px; color: var(--ink); background: var(--panel2); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.model-sel:hover { background: var(--panel2); }
.model-sel:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.model-sel option { background: var(--panel); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .model-sel { background: var(--panel2); color: var(--ink); }
  .model-sel option { background: var(--panel); color: var(--ink); }
}
@media (max-width: 600px) {
  .model-sel { font-size: 13px; padding: 3px 5px; }
}

/* ---- how ---- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 36px 0; }
.steps li { padding-right: 28px; }
.steps__n { display: flex; align-items: center; gap: 12px; }
.steps__n b { flex: none; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); border-radius: 50%; font-weight: 700; font-size: 15px; }
.steps__n::after { content: ""; flex: 1; height: 1.5px; background: var(--rule); }
.steps__n--last b { background: var(--accent); color: var(--onaccent); }
.steps__n--last::after { display: none; }
.steps h3 { margin: 18px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.steps .steps__ex { margin-top: 16px; font-size: 14px; line-height: 1.45; padding: 10px 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); }

/* ---- code ---- */
.code2 { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 20px; }
.code { min-width: 0; background: var(--board); border-radius: 18px; overflow: hidden; color: #DDE1E6; }
.code__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--b-rule2); min-height: 52px; }
.code__bar h3 { font-size: 15px; font-weight: 600; color: #F1F2F4; }
.code__bar h3 span { font-weight: 500; color: var(--b-ink3); }
.copy { font-size: 13px; font-weight: 600; color: #F1F2F4; background: var(--b-chip); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.copy:hover { background: #2E343C; }
pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.65; overflow-x: auto; white-space: pre; }
pre:focus-visible { outline-offset: -2px; }
pre .num { color: var(--accent); }
pre .prompt, pre .cmt { color: #8D949D; }
.code__foot { padding: 0 20px 18px; font-size: 14px; }
.code__foot a { color: #DDE1E6; }

/* ---- alerts ---- */
.alerts { background: var(--board); color: #F1F2F4; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 28px 56px; align-items: center; }
.alerts h2 + p { margin-top: 12px; max-width: 46ch; font-size: 17px; line-height: 1.55; color: #C3C8CE; }
.alerts a { color: #F1F2F4; }
.join { min-width: 0; }
.join label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.join__row { display: flex; flex-wrap: wrap; gap: 8px; background: var(--b-chip); border-radius: 28px; padding: 5px; }
.join__row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.join input { flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 18px; font: inherit; font-size: 17px; color: #F1F2F4; background: transparent; border: 0; outline: none; }
.join input::placeholder { color: var(--b-ink3); }
.join button { flex: none; height: 46px; padding: 0 22px; font-size: 15px; font-weight: 700; color: var(--onaccent); background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; }
.join__human { margin: 12px 0 0; max-width: 400px; min-height: 65px; }
.join__note { margin: 12px 0 0 4px; font-size: 14px; color: #C3C8CE; }
.join__msg { margin: 8px 0 0 4px; font-size: 14px; color: #F1F2F4; min-height: 1.4em; }
@media (max-width: 420px) { .join button { width: 100%; } }
.join button[aria-busy="true"] { cursor: progress; opacity: .85; }
.join button[aria-busy="true"]::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tk-spin .8s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
.join__msg.is-bad { color: #FFB4A8; }
.joined { min-width: 0; padding: 22px 24px; border-radius: 20px; background: var(--b-chip); border: 1px solid var(--accent); }
.joined:focus { outline: none; }
.joined:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.joined p + p { margin-top: 10px; }
.joined__h { font-size: 20px; font-weight: 700; }
.joined strong { overflow-wrap: anywhere; color: var(--accent); }
.joined__fine { font-size: 14px; color: #C3C8CE; }
.joined__again { padding: 0; font: inherit; color: #F1F2F4; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--rule); }
.foot__in { padding-top: 32px; padding-bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.foot__in > div { max-width: 60ch; }
.foot__in p + p { margin-top: 6px; }
.foot__brand { font-weight: 700; font-size: 16px; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }

/* ---- 404 ---- */
.nf { padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(64px, 12vw, 140px); }
.nf__board { display: inline-block; background: var(--board); border-radius: 16px; padding: 18px 22px; font-size: clamp(40px, 8vw, 72px); }
.nf h1 { margin-top: 28px; font-size: clamp(36px, 5vw, 60px); max-width: 16ch; }
.nf p { margin-top: 16px; max-width: 54ch; font-size: 18px; color: var(--ink2); }
.nf__links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .fl { transition: none; }
  .join button[aria-busy="true"]::before { display: none; }
}
@media (max-width: 480px) {
  .bar { grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 4.2em; gap: 8px; }
}

/* ---- generated pages (/compare/, /plans/…) ---- */
/* Sortable headers: the button looks like the header text it wraps. The arrow
   is a glyph, never colour alone; both themes come from the tokens above. */
table[data-sort] thead th { white-space: nowrap; }
.sort { padding: 0; border: 0; background: none; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; }
.sort::after { content: "↕"; margin-left: 5px; font-size: 11px; color: var(--ink2); }
th[aria-sort="ascending"] .sort::after { content: "↑"; color: var(--ink); }
th[aria-sort="descending"] .sort::after { content: "↓"; color: var(--ink); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--ink); }

/* Filter box above the offers table (hidden until JS is on). */
.filt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.filt label { font-size: 14px; font-weight: 600; }
.filt input { flex: 1 1 220px; max-width: 420px; min-width: 0; height: 44px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1.5px solid var(--rule); border-radius: 12px; }
.filt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.filt__ct { flex: none; font-size: 14px; color: var(--ink2); }

/* Plan pages (/plans/<vendor>/<plan>/). */
.pg h1 { margin-top: 18px; font-size: clamp(32px, 4.5vw, 52px); max-width: 22ch; }
.pg__meta { margin-top: 12px; font-size: 15px; color: var(--ink2); }
.pg h2 { margin-top: 48px; }
.pg .facts { margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin: 0; }
.fact { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.fact dt { font-size: 13px; color: var(--ink2); }
.fact dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact dd .sub { margin-top: 4px; }
.mods { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.mods li { padding: 4px 11px; background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; overflow-wrap: anywhere; }
.lims { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.lim { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; }
.lim blockquote, .fq, .meth__q { margin: 0; }
.lim blockquote p, .fq p, .meth__q p { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.lim blockquote p, .fq p { padding-left: 14px; border-left: 3px solid var(--rule); }
.fq { margin-top: 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; }
.lim__k { margin: 8px 0 0; font-size: 13px; color: var(--ink2); }
.math__ass { max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.math__meth { margin-top: 14px; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.meth__q { margin-top: 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; }
.meth__q p, .meth p { color: var(--ink2); }
.math { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 12px; max-width: 76ch; font-variant-numeric: tabular-nums; }
.math li { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.math ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.math .binds { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 7px; border: 1px solid var(--ink); border-radius: 999px; }
.meth { margin-top: 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; }
.meth summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.meth p { margin-top: 10px; font-size: 14px; line-height: 1.55; }
.srcs { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.srcs a { overflow-wrap: anywhere; }
.crumb { margin-top: 24px; font-size: 14px; color: var(--ink2); }
.crumb p { margin: 0; }
.crumb a { color: var(--ink); }
.pg__back { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 16px; font-weight: 600; }
.hist { min-width: 0; }
