/* PeopleBench — "The People" (mock E2). One stylesheet, no inline styles.
   Off-white paper, ink blue, a yellow highlighter, and a red pen for notes. */
@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-var.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Gochi"; src: url(fonts/gochi-hand.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #FAFAF9;
  --card: #FFFFFF;
  --ink: #1D3FAF;
  --ink2: #132A73;
  --ink-soft: #E8ECF8;
  --ci: #9FB0E6;
  --text: #141B33;
  --mute: #4A5470;
  --lost: #C3CADA;
  --line: #DCE0EA;
  --hi: #F3F65C;
  --pen: #D92B38;
  --error: #B3261E;
  --error-soft: #FDECEC;

  --f-body: "Schibsted", system-ui, sans-serif;
  --f-pen: "Gochi", "Comic Sans MS", cursive;

  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.375rem;
  --t-xl: clamp(2rem, 5vw, 3.5rem); --t-2xl: clamp(3rem, 7.4vw, 6.1rem);
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --col: 75rem; --measure: 40rem; --radius: 18px; --radius-sm: 12px; --tap: 44px;
  --border: 1.5px solid var(--line);
  --row-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--t-md)/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: .18em; }
a:hover { color: var(--ink2); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink2); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 var(--s-3); text-wrap: balance; }
h1 { font-size: var(--t-xl); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.03em; }
h3 { font-size: var(--t-lg); letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
mark { background: linear-gradient(100deg, transparent 2%, var(--hi) 4%, var(--hi) 94%, transparent 97%); color: inherit; padding: 0 .12em; margin: 0 -.06em; border-radius: .2em; }
h1 mark, h2 mark { background: linear-gradient(100deg, transparent 2%, var(--hi) 4%, var(--hi) 94%, transparent 97%) 0 72% / 100% 58% no-repeat; padding-bottom: .08em; }
.pen { font-family: var(--f-pen); color: var(--pen); font-size: 1.25rem; line-height: 1.1; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: var(--s-2) var(--s-3); z-index: 10; }
.skip:focus { left: var(--s-2); }
.hint { color: var(--mute); font-size: var(--t-sm); }
.lead { color: var(--mute); font-size: var(--t-lg); line-height: 1.4; max-width: 40rem; }
.crumb { margin: 0 0 var(--s-2); font-size: var(--t-sm); }
.crumb a { color: var(--mute); display: inline-flex; min-height: var(--tap); align-items: center; }

/* ---------- skeleton */
.wrap { max-width: var(--col); margin: 0 auto; padding-inline: clamp(1.1rem, 3vw, 2.5rem); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding-block: var(--s-3); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; min-height: var(--tap); }
.dotmark { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: 22px 0 0 var(--lost), 11px -14px 0 -2px var(--ink); margin: 10px 26px 0 0; flex: none; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); color: var(--text); text-decoration: none; font-weight: 600; border-radius: 999px; }
.nav a[aria-current="page"] { background: var(--text); color: #fff; }
.nav a:hover { background: var(--ink-soft); color: var(--text); }
.nav a[aria-current="page"]:hover { background: var(--text); color: #fff; }
@media (max-width: 719px) {
  .top .btn { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -.75rem; }
}
main { padding-block: var(--s-6) var(--s-8); }
.foot { border-top: 2px dashed var(--line); color: var(--mute); font-size: var(--t-sm); padding-block: var(--s-5); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); }
.foot a { color: var(--mute); display: inline-flex; min-height: var(--tap); align-items: center; }
.trademark { flex-basis: 100%; font-size: var(--t-xs); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 26px;
  background: var(--ink); color: #fff; font: 700 var(--t-md)/1 var(--f-body); text-decoration: none; border: 0; border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink2); cursor: pointer; }
.btn:hover { background: var(--ink2); color: #fff; }
.btn.small { min-height: var(--tap); padding: 0 18px; font-size: var(--t-sm); }
.btn.big { min-height: 58px; font-size: 1.125rem; padding: 0 30px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 3px 0 var(--line); }
.btn.ghost:hover { background: var(--ink-soft); color: var(--ink2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-6); }
.actions .back { color: var(--mute); font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; }
@media (max-width: 719px) {
  .flow .actions { position: sticky; bottom: 0; z-index: 3; background: var(--paper); border-top: 2px solid var(--text); padding-block: var(--s-3); margin-inline: calc(-1 * clamp(1.1rem, 3vw, 2.5rem)); padding-inline: clamp(1.1rem, 3vw, 2.5rem); }
  .flow .actions .btn { flex: 1; white-space: nowrap; }
}

/* ---------- people dots */
svg.field { width: 100%; height: auto; }
svg.field circle.w { fill: var(--ink); }
svg.field circle.t { fill: none; stroke: var(--ink); stroke-width: 1.4; }
svg.field circle.l { fill: var(--lost); }
svg.field circle.q { fill: none; stroke: #8C96B0; stroke-width: 1.2; stroke-dasharray: 2 1.6; }
.k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.k.w { background: var(--ink); } .k.t { border: 1.6px solid var(--ink); } .k.l { background: var(--lost); }
.key { list-style: none; padding: 0; margin: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--mute); font-size: var(--t-sm); }
.per-dot { font-size: var(--t-xs); color: var(--mute); }

/* ---------- landing */
.hero { display: grid; gap: 0 56px; align-items: end; }
.hero h1 { font-size: var(--t-xl); max-width: 16ch; margin: var(--s-5) 0 var(--s-4); word-spacing: .08em; }
.hero .lede { font-size: 1.375rem; max-width: 36ch; margin: 0 0 var(--s-5); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.aside { color: var(--mute); }
.example { position: relative; margin: var(--s-6) 0 70px; background: var(--card); border: var(--border); border-radius: var(--radius); padding: 22px 24px 20px; box-shadow: 0 4px 0 var(--line); }
.exhead { color: var(--mute); font-size: var(--t-sm); margin: 0 0 14px; }
.exhead b { color: var(--text); font-size: 1.125rem; }
.exline { margin: 14px 0 0; font-size: 1.25rem; font-weight: 600; }
.exline b { font-size: 2.25rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.example .note { position: absolute; right: 18px; bottom: -48px; transform: rotate(-4deg); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; }
  .hero > h1, .hero > .lede { grid-column: 1; }
  .hero > .exwrap { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .hero > .key, .hero > .cta { grid-column: 1 / -1; }
}
.facts { list-style: none; padding: var(--s-4) 0 0; margin: var(--s-8) 0 0; display: grid; gap: 28px; border-top: 2px solid var(--text); }
@media (min-width: 720px) { .facts { grid-template-columns: 1.2fr 1fr 1fr; } }
.facts b { display: block; font-size: 2.75rem; font-weight: 900; letter-spacing: -.03em; color: var(--ink2); line-height: 1; }
.facts li { color: var(--mute); font-size: var(--t-sm); }
.empty-example { background: var(--card); border: 2px dashed #AEB6CA; border-radius: var(--radius); padding: var(--s-5); color: var(--mute); }

/* ---------- board header + controls */
.disc, .seg { display: flex; flex-wrap: wrap; gap: 4px; }
.disc a, .seg a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; }
.disc a:hover, .seg a:hover { background: var(--ink-soft); color: var(--text); }
.disc a[aria-current], .seg a[aria-current="true"] { background: var(--text); color: #fff; }
.seg a { border: 1.5px solid var(--line); font-size: var(--t-sm); }
.boardhead { display: grid; gap: var(--s-4) 28px; align-items: end; margin: var(--s-5) 0 var(--s-5); }
@media (min-width: 900px) { .boardhead { grid-template-columns: auto 1fr auto; } }
.boardhead h1 { font-size: clamp(3.4rem, 8vw, 5.25rem); line-height: .9; letter-spacing: -.05em; margin: 0; }
.boardhead p { margin: 0; color: var(--mute); font-size: var(--t-sm); max-width: 52ch; }
.stats { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-4); color: var(--mute); font-size: var(--t-sm); }
.stats div { display: flex; gap: 6px; align-items: baseline; }
.stats dt { order: 2; } .stats dd { margin: 0; font-weight: 800; color: var(--text); }
.plan { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-5); font-size: var(--t-sm); }
.plan .label { color: var(--mute); font-weight: 600; margin-right: var(--s-1); }
.plan a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1.5px dashed var(--line); color: var(--mute); text-decoration: none; }
.plan a[aria-current="true"] { border-style: solid; border-color: var(--ink); color: var(--ink); font-weight: 700; background: var(--ink-soft); }

/* ---------- board rows */
.board { position: relative; }
@media (min-width: 1101px) { .board { padding-right: 170px; } }
.colhead, .row > a { display: grid; grid-template-columns: 64px minmax(140px, 180px) 1fr 180px 72px 100px; gap: 16px; align-items: center; }
.colhead { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 0 14px 8px; border-bottom: 2px solid var(--text); }
.rows { list-style: none; margin: 0; padding: 0; position: relative; }
.row { position: relative; border-bottom: 1px solid var(--line); }
.row > a { min-height: var(--row-h); padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: 10px; }
.row > a:hover { background: var(--card); box-shadow: 0 0 0 1.5px var(--line); color: var(--text); }
.rank b { font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.top .rank b { font-size: 2.25rem; color: var(--ink); }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.nm { font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.vendor { flex-basis: 100%; font-size: var(--t-xs); color: var(--mute); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.tag.prelim { border: 1.5px dashed var(--mute); color: var(--mute); }
.tag.new { background: var(--hi); color: var(--text); }
.people { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.people svg.field { max-width: 420px; }
.cap { font-size: var(--t-sm); color: var(--mute); white-space: nowrap; }
.cap b { color: var(--ink); font-weight: 800; }
.pct { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.pct > b { grid-row: 1 / 3; font-size: 2.75rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink2); line-height: 1; font-variant-numeric: tabular-nums; }
.pct i { font-style: normal; font-size: 1.375rem; font-weight: 700; }
svg.ci { width: 100%; height: 12px; }
svg.ci .axis { stroke: var(--line); stroke-width: 2; }
svg.ci .mid { stroke: var(--mute); stroke-width: 1; stroke-dasharray: 2 2; }
svg.ci rect { fill: var(--ci); }
svg.ci circle { fill: var(--ink); }
.range { font-size: var(--t-xs); color: var(--mute); font-variant-numeric: tabular-nums; }
.trend { display: flex; align-items: center; gap: 8px; }
svg.spark { width: 64px; height: 30px; flex: none; }
svg.spark polyline { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
svg.spark .none { stroke: var(--line); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tr { font-weight: 800; font-size: var(--t-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr.up { color: var(--ink); } .tr.down { color: var(--pen); } .tr.flat { color: var(--mute); font-weight: 600; }

@media (min-width: 761px) {
  .row > a { height: var(--row-h); }
}
@media (max-width: 760px) {
  .colhead { display: none; }
  .row > a { grid-template-columns: auto 1fr auto; grid-template-areas: "rank who who" "people people people" "pct lim trend"; gap: 10px 12px; padding: 16px 4px; }
  .rank { grid-area: rank; } .who { grid-area: who; } .people { grid-area: people; } .pct { grid-area: pct; } .trend { grid-area: trend; } .lim { grid-area: lim; justify-self: center; }
  .rank b { font-size: 1.375rem; } .row.top .rank b { font-size: 1.875rem; }
  .people svg.field { max-width: none; }
  .pct > b { font-size: 2.375rem; }
}

/* ---------- pen annotations (decorative; their text is also in the row) */
.note { position: absolute; pointer-events: none; z-index: 2; }
.note img { display: block; }
.n-favourite { right: 190px; top: 2px; width: 112px; height: 84px; }
.n-favourite .ring { position: absolute; inset: 4px 0 2px; width: 112px; height: 78px; }
.n-favourite .pen { position: absolute; right: 118px; top: 52px; width: 170px; text-align: right; transform: rotate(-4deg); }
.n-climb { left: calc(100% + 6px); top: -2px; width: 150px; }
.n-climb img { width: 60px; }
.n-climb .pen { display: block; transform: rotate(-3deg); }
.n-climb.inside { left: auto; right: 340px; top: 4px; width: auto; }
.n-climb.inside img { display: none; }
.n-climb.inside .pen { background: var(--paper); padding: 0 4px; font-size: 1.2rem; }
.n-slip { right: 424px; top: 4px; display: flex; flex-direction: column; align-items: flex-start; }
.n-slip .pen { font-size: 1.2rem; background: var(--paper); padding: 0 4px; }
.n-slip img { width: 90px; height: 10px; }
.n-close { left: calc(100% + 4px); top: 0; display: flex; align-items: center; gap: 6px; width: 150px; }
.n-close img { width: 18px; height: 100%; }
.n-close .pen { font-size: 1.4rem; transform: rotate(-6deg); }
.n-new { right: 8px; top: -34px; display: flex; align-items: center; gap: 4px; flex-direction: row-reverse; }
.n-new img { width: 60px; transform: scaleX(-1) rotate(10deg); }
.n-new .pen { font-size: 1.35rem; transform: rotate(-6deg); }
.span-2 { height: calc(2 * var(--row-h)); } .span-3 { height: calc(3 * var(--row-h)); } .span-4 { height: calc(4 * var(--row-h)); }
.span-5 { height: calc(5 * var(--row-h)); } .span-6 { height: calc(6 * var(--row-h)); } .span-7 { height: calc(7 * var(--row-h)); }
.span-8 { height: calc(8 * var(--row-h)); } .span-9 { height: calc(9 * var(--row-h)); } .span-10 { height: calc(10 * var(--row-h)); }
.span-11 { height: calc(11 * var(--row-h)); } .span-12 { height: calc(12 * var(--row-h)); } .span-13 { height: calc(13 * var(--row-h)); }
.span-14 { height: calc(14 * var(--row-h)); } .span-15 { height: calc(15 * var(--row-h)); } .span-16 { height: calc(16 * var(--row-h)); }
@media (max-width: 1100px) { .n-climb:not(.inside), .n-close { display: none; } }
@media (max-width: 1000px) { .n-favourite .pen, .n-slip, .n-climb { display: none; } }
@media (max-width: 760px) {
  .n-favourite { right: -6px; top: auto; bottom: 2px; width: 104px; height: 64px; }
  .n-favourite .ring { width: 104px; height: 62px; inset: 0; }
}

/* ---------- still counting */
.below { position: relative; margin-top: 48px; padding: 22px 24px; border: 2px dashed #AEB6CA; border-radius: var(--radius); }
.below h2 { margin: 0 0 10px; font-size: 1.375rem; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.below ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 720px) { .below ul { grid-template-columns: 1fr 1fr; } }
.below a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; min-height: 64px; padding: 10px 6px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.below a:hover { background: var(--card); }
.below .nm { font-size: 1rem; }
.below svg.field { grid-column: 1 / -1; max-width: 290px; }
.below .need { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--mute); }
.below .grey .nm { color: var(--mute); }
.emptyboard { background: var(--card); border: 2px dashed #AEB6CA; border-radius: var(--radius); padding: var(--s-6) var(--s-5); }
.explain { color: var(--mute); font-size: var(--t-sm); max-width: 70ch; margin-top: var(--s-5); }
.cta-band { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; border-top: 2px solid var(--text); padding-top: var(--s-4); }
.cta-band p { margin: 0; font-weight: 600; font-size: 1.125rem; }
.other { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); margin-top: var(--s-5); align-items: center; font-size: var(--t-sm); }
.other .label { color: var(--mute); font-weight: 600; }
.other a { min-height: var(--tap); display: inline-flex; align-items: center; }
.stamp { color: var(--mute); font-size: var(--t-xs); margin-top: var(--s-4); }

/* ---------- /boards matrix */
.matrix { background: var(--card); border: var(--border); border-radius: var(--radius); overflow: hidden; }
.mx-head { display: none; }
.mx-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
.mx-row:first-of-type { border-top: 0; }
.mx-model { flex: 1 0 100%; font-weight: 700; color: var(--text); text-decoration: none; min-height: 32px; display: flex; align-items: center; gap: 8px; }
.mx-model small { color: var(--mute); font-weight: 400; font-size: var(--t-xs); }
.mx-cell { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; min-height: var(--tap); min-width: 76px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--text); background: var(--paper); }
.mx-cell .cl { font-size: var(--t-xs); color: var(--mute); }
.mx-cell .v { font-weight: 900; font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink2); font-variant-numeric: tabular-nums; line-height: 1; }
.mx-cell svg.bar { width: 100%; height: 6px; border-radius: 3px; }
svg.bar .w { fill: var(--ink); } svg.bar .t { fill: var(--ci); } svg.bar .l { fill: var(--lost); }
.mx-cell.low { background: transparent; border: 1.5px dashed var(--line); }
.mx-cell.low .v { color: var(--mute); font-weight: 700; }
.mx-cell.na, .mx-cell.none { display: none; }
a.mx-cell:hover { box-shadow: inset 0 0 0 2px var(--ink); color: var(--text); }
.mx-cell.top1 { background: var(--hi); }
@media (min-width: 900px) {
  .mx-head, .mx-row { display: grid; grid-template-columns: minmax(12rem, 16rem) repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px 16px; }
  .mx-head { background: var(--paper); border-bottom: 2px solid var(--text); padding-block: 10px; align-items: end; }
  .mx-corner, .mx-col { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
  .mx-col { text-decoration: none; min-height: var(--tap); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
  .mx-col:hover { color: var(--ink); }
  .mx-model { flex: none; min-height: 52px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .mx-cell { min-width: 0; align-items: center; }
  .mx-cell .cl { display: none; }
  .mx-cell.na { display: block; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); opacity: .5; }
  .mx-cell.none { display: flex; background: transparent; color: var(--lost); }
}

/* ---------- model page tiles */
.tiles { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: var(--s-2); background: var(--card); border: var(--border); border-radius: var(--radius); padding: var(--s-4) var(--s-5); color: var(--text); text-decoration: none; box-shadow: 0 4px 0 var(--line); }
.tile:hover { border-color: var(--ink); color: var(--text); }
.tile.grey { background: transparent; border: 2px dashed #AEB6CA; box-shadow: none; color: var(--mute); }
.tile-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.tile-name { font-weight: 800; }
.tile-rank { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.tile-rank span { color: var(--mute); font-size: var(--t-sm); font-weight: 600; }
.tile-val { font-weight: 900; font-size: 3rem; line-height: 1; letter-spacing: -.04em; color: var(--ink2); font-variant-numeric: tabular-nums; }
.tile-val i { font-style: normal; font-size: 1.5rem; }
.tile-sub { font-size: var(--t-xs); color: var(--mute); }
.tile-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
svg.strip { overflow: visible; height: 22px; }
svg.strip .axis { stroke: var(--line); stroke-width: 2; }
svg.strip .other { fill: var(--lost); }
svg.strip .me { fill: var(--ink); stroke: var(--card); stroke-width: 2; }

/* ---------- rating flow */
.flow { max-width: 50rem; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); padding: 0; margin: 0 0 var(--s-4); font-size: var(--t-sm); color: var(--mute); font-weight: 600; }
.steps li { display: flex; align-items: center; gap: var(--s-2); }
.steps li + li::before { content: "·"; }
.steps [aria-current="step"] { color: var(--ink); font-weight: 800; }
.flow h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.04em; max-width: 18ch; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.chip span::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--ink); flex: none; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 3px 0 var(--ink2); }
.chip input:checked + span::before { background: var(--hi); border-color: var(--hi); box-shadow: inset 0 0 0 3px var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 3px; }
.chip span:hover { border-color: var(--ink); }
.chips.tiny { gap: 4px; margin-top: 4px; }
.chips.tiny .chip span { min-height: 40px; padding: 0 12px; font-size: var(--t-sm); font-weight: 500; border: 1px solid transparent; background: var(--paper); color: var(--mute); }
.chips.tiny .chip span:hover { border-color: var(--line); color: var(--text); }
.chips.tiny .chip input:checked + span { background: var(--ink-soft); border-color: var(--ink); color: var(--ink2); font-weight: 700; }
.chips.tiny .chip span::before { display: none; }
.chips.tiny .chip input:checked + span { box-shadow: none; }

.err { color: var(--error); font-weight: 700; font-size: var(--t-sm); margin: var(--s-3) 0 0; display: flex; gap: var(--s-2); }
.err::before { content: "!"; flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--error); color: #fff; display: grid; place-items: center; font-size: .8em; margin-top: .1em; }
.errbox { background: var(--error-soft); border-left: 4px solid var(--error); padding: var(--s-3) var(--s-4); border-radius: 8px; margin-bottom: var(--s-5); }
.errbox p { margin: 0; }
.note-box { background: var(--card); border: var(--border); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); color: var(--mute); font-size: var(--t-sm); }
.decoy-note { display: inline-block; margin: var(--s-4) 0 var(--s-2); padding: 10px 16px; font-size: var(--t-sm); background: linear-gradient(100deg, transparent 1%, var(--hi) 2%, var(--hi) 97%, transparent 99%); transform: rotate(-.6deg); max-width: 46rem; }
.decoy-note .pen { font-size: 1.3rem; margin-right: 6px; }

/* family picker */
.fams { display: grid; gap: 12px; margin-top: var(--s-4); align-items: start; }
@media (min-width: 900px) { .fams { grid-template-columns: 1fr 1fr; } .flow.picker { max-width: none; } }
.fam { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.fam[open] { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.fam:has(input:checked) { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink), inset 4px 0 0 var(--hi); }
.fam > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 18px; cursor: pointer; border-radius: 14px; }
.fam > summary::-webkit-details-marker { display: none; }
.fam > summary::after { content: "+"; font-size: 1.625rem; font-weight: 400; color: var(--ink); width: 1ch; text-align: center; }
.fam[open] > summary::after { content: "−"; }
.fam > summary:hover { background: #F4F6FB; }
.fam .logo { width: 26px; height: 26px; flex: none; }
.fam-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.fam-n { color: var(--mute); font-size: var(--t-xs); margin-left: auto; }
.fam-sel { background: var(--hi); color: var(--text); font-size: var(--t-xs); font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.fam-body { display: grid; gap: 2px; padding: 0 10px 10px; }
.pick { position: relative; display: block; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pick span { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.pick span::before { content: ""; flex: none; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; background: var(--card); }
.pick input:checked + span::before { background: var(--ink) url("pen/check.svg") center / 16px no-repeat; }
.pick input:checked + span { background: var(--ink-soft); }
.pick input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: -2px; }
.pick span:hover { background: #F1F3F9; }
.sub-fam { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 10px 2px; font-size: var(--t-xs); font-weight: 800; color: var(--mute); }
.fam-other > summary .fam-name { font-size: 1.0625rem; }
.suggest { margin-top: var(--s-6); border-top: 2px dashed var(--line); padding-top: var(--s-4); max-width: 40rem; }
.suggest label { font-weight: 700; }
.suggest-row { display: flex; gap: var(--s-2); }
.suggest-row input { flex: 1; min-width: 0; }

/* stars */
.rate { background: var(--card); border: var(--border); border-radius: var(--radius); padding: var(--s-4) var(--s-5) var(--s-5); margin-top: var(--s-4); box-shadow: 0 3px 0 var(--line); }
.rate[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 4px 0 0 var(--error); }
.rate legend { display: contents; }
.rate .name { font-weight: 900; font-size: 1.625rem; letter-spacing: -.03em; color: var(--ink2); display: block; line-height: 1.1; }
.rate .vendor { color: var(--mute); font-size: var(--t-xs); display: block; margin-bottom: var(--s-2); }
.rate .sub { margin-top: var(--s-3); }
.rate .sub > .label { font-size: var(--t-xs); color: var(--mute); font-weight: 700; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; color: var(--line); }
.stars label svg { width: 38px; height: 38px; fill: currentColor; stroke: var(--ink); stroke-width: 1.2; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--hi); }
.stars input:checked ~ label svg { stroke: var(--ink2); stroke-width: 1.6; }
.stars input:focus-visible + label { outline: 3px solid var(--pen); outline-offset: -2px; border-radius: 8px; }
.stars-scale { display: flex; justify-content: space-between; max-width: 250px; color: var(--mute); font-size: var(--t-xs); }

/* check question */
.question { font-weight: 800; font-size: var(--t-lg); line-height: 1.3; letter-spacing: -.01em; margin: var(--s-4) 0; max-width: var(--measure); }
.options { display: grid; gap: var(--s-2); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.option span { display: block; min-height: 52px; padding: var(--s-3) var(--s-4) var(--s-3) 3rem; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; position: relative; font-weight: 600; }
.option span::before { content: ""; position: absolute; left: var(--s-4); top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
.option input:checked + span { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.option input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 4px var(--card); }
.option input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.option.skip-opt span { border-style: dashed; color: var(--mute); }
.turnstile { margin-top: var(--s-5); min-height: 0; }

/* thank-you */
.pin { margin-top: var(--s-6); }
.pin h2 a { color: var(--ink2); text-decoration: none; }
.pin .row.mine > a { background: var(--card); box-shadow: 0 0 0 1.5px var(--line), inset 5px 0 0 var(--hi); }
.you { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-xs); color: var(--mute); font-weight: 700; }
.pin .colhead, .pin .row > a { grid-template-columns: 74px minmax(170px, 210px) 1fr 200px 130px; }
@media (max-width: 760px) { .pin .row > a { grid-template-areas: "rank who who" "people people people" "pct pct you"; } .pin .you { grid-area: you; align-items: flex-end; } }
.starline { color: var(--ink); letter-spacing: 1px; white-space: nowrap; font-size: 1rem; }
.starline .off { color: var(--lost); }
.counted { margin-top: var(--s-3); font-size: var(--t-sm); }
.share { margin-top: var(--s-7); background: var(--ink2); color: #E8ECF8; border-radius: var(--radius); padding: var(--s-5); max-width: 46rem; }
.share h2 { color: #fff; font-size: var(--t-lg); }
.share p { color: #C9D3F2; }
.share .link { font-weight: 700; font-size: var(--t-sm); background: #0B1A4D; color: #fff; padding: var(--s-3) var(--s-4); border-radius: 10px; word-break: break-all; user-select: all; margin: 0; }

/* ---------- prose, gate, admin */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: var(--s-2); }
.prose code { font-size: .92em; background: var(--ink-soft); padding: 0 .3em; border-radius: 4px; }
.prose table { border-collapse: collapse; font-size: var(--t-sm); margin-bottom: var(--s-4); }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: var(--s-2) var(--s-3) var(--s-2) 0; text-align: left; vertical-align: top; }
.tbd { color: var(--pen); }
.gate { max-width: 26rem; }
.field-row { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.field-row label { font-weight: 700; }
input[type="text"], input[type="password"], input:not([type]), select { font: inherit; font-size: 1rem; min-height: var(--tap); padding: 0 var(--s-3); border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); }
input[aria-invalid="true"] { border-color: var(--error); }
.admin table { border-collapse: collapse; font-size: var(--t-sm); background: var(--card); margin-bottom: var(--s-6); border: var(--border); }
.admin td, .admin th { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); text-align: left; }
.admin th { color: var(--mute); font-size: var(--t-xs); }
.scroll { overflow-x: auto; }

@media (min-width: 761px) { .you > span:first-child { display: none; } }
.flagnote { margin: 0 0 var(--s-4); font-size: var(--t-sm); color: var(--mute); }
.flagnote .pen { margin-right: 6px; }

/* ---------- usage on each rating card: one "How did you mostly use it?" chip set
   (app, own agent, multi-model tools, API, other). The plan chips for the chosen app/tool
   are revealed per card with :has(); without :has() or CSS every group shows with its heading. */
.rate .sub > .label { font-size: var(--t-sm); font-weight: 700; color: var(--text); display: block; }
.opt { font-weight: 400; color: var(--mute); font-size: var(--t-xs); margin-left: 4px; }
.plans .pg { margin: var(--s-2) 0 0 var(--s-2); padding-left: var(--s-3); border-left: 2px solid var(--line); }
.plans .pg > .label { font-size: var(--t-xs); color: var(--mute); font-weight: 700; }
@supports selector(:has(a)) {
  .plans .pg { display: none; }
  .rate:has(input[name^="use-"][value="app"]:checked) .pg-app { display: block; }
  .rate:has(input[name^="use-"][value="tool:cursor"]:checked) .pg-tool-cursor { display: block; }
  .rate:has(input[name^="use-"][value="tool:claude-code"]:checked) .pg-tool-claude-code { display: block; }
  .rate:has(input[name^="use-"][value="tool:copilot"]:checked) .pg-tool-copilot { display: block; }
  .rate:has(input[name^="use-"][value="tool:codex"]:checked) .pg-tool-codex { display: block; }
  .rate:has(input[name^="use-"][value="tool:windsurf"]:checked) .pg-tool-windsurf { display: block; }
  .rate:has(input[name^="use-"][value="tool:cline"]:checked) .pg-tool-cline { display: block; }
  .rate:has(input[name^="use-"][value="tool:gemini-cli"]:checked) .pg-tool-gemini-cli { display: block; }
  .rate:has(input[name^="use-"][value="tool:jetbrains"]:checked) .pg-tool-jetbrains { display: block; }
  .rate:has(input[name^="use-"][value="tool:other-tool"]:checked) .pg-tool-other-tool { display: block; }
}

/* limits column */
.lim { display: flex; flex-direction: column; line-height: 1.15; }
.lim b { font-size: 1.25rem; font-weight: 800; color: var(--pen); }
.lim-n { font-size: var(--t-xs); color: var(--mute); }
.lim-l { display: none; font-size: var(--t-xs); color: var(--mute); }
@media (max-width: 760px) { .lim-l { display: block; } }
.n-limits { right: 424px; }
.pin .colhead, .pin .row > a { grid-template-columns: 70px minmax(150px, 190px) 1fr 190px 130px; }
/* per-plan table on model pages */
.plantable { width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: var(--t-sm); background: var(--card); border: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.plantable th, .plantable td { padding: var(--s-2) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
.plantable thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.plantable td.hot { color: var(--pen); font-weight: 800; }
@media (max-width: 600px) {
  .plantable thead { display: none; }
  .plantable tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
  .plantable td { border: 0; padding: 2px 0; }
  .plantable td:first-child { grid-column: 1 / -1; font-weight: 800; }
  .plantable td[data-l]::before { content: attr(data-l) " "; color: var(--mute); font-size: var(--t-xs); }
}
.byplan-h { margin-top: var(--s-7); }

h1 mark { white-space: nowrap; }
@media (min-width: 900px) { .hero h1 { font-size: clamp(2.75rem, 4.6vw, 4.25rem); max-width: 15ch; } }
@media (max-width: 480px) {
  .rate, .shared { padding-inline: var(--s-3); }
  .chips.tiny .chip span { padding: 0 9px; font-size: .875rem; }
}

/* ---------- landing: fresh strip + "Right now" */
.fresh { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: baseline; margin: var(--s-6) 0 0; padding: var(--s-3) 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.fresh p { margin: 0; max-width: none; }
.fresh-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-right: 6px; }
.fresh .pen { margin-left: 6px; font-size: 1.15rem; }
.fresh-note { color: var(--mute); font-size: var(--t-xs); }
.fresh a { font-weight: 700; }
.now { margin-top: var(--s-7); }
.now h2 { font-size: clamp(2rem, 4vw, 3rem); }
.now-grid { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 900px) {
  .now-grid { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}
.now-b { position: relative; background: var(--card); border: var(--border); border-radius: var(--radius); padding: var(--s-4) var(--s-4) var(--s-3); }
.now-b:nth-child(3n+2) { background: transparent; border-style: dashed; }
.now-b h3 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin: 0 0 var(--s-2); font-size: 1.375rem; }
.now-b h3 a { color: var(--ink2); text-decoration: none; }
.now-b h3 a:hover { text-decoration: underline; }
.now-n { font-size: var(--t-xs); color: var(--mute); font-weight: 600; letter-spacing: 0; }
.now-rows { list-style: none; margin: 0; padding: 0; }
.now-rows li { position: relative; display: grid; grid-template-columns: 2.6rem 1fr auto; grid-template-areas: "r n p" "r bar t" "r lim lim"; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.now-rows li:first-child { border-top: 0; }
.nr { grid-area: r; align-self: start; }
.nr b { font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.nn { grid-area: n; color: var(--text); font-weight: 700; text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.nn:hover { text-decoration: underline; }
.np { grid-area: p; font-weight: 900; font-size: 1.5rem; color: var(--ink2); letter-spacing: -.03em; }
.np i { font-style: normal; font-size: .9rem; }
.now-rows svg.bar { grid-area: bar; width: 100%; max-width: 160px; height: 6px; border-radius: 3px; }
.nt { grid-area: t; justify-self: end; }
.nl { grid-area: lim; font-size: var(--t-xs); color: var(--pen); font-weight: 700; }
.now-b.lead .now-rows li.first .nn { font-size: 1.25rem; }
.now-b.lead .now-rows li.first .np { font-size: 2.5rem; }
.now-b.lead .now-rows li.first .nr b { font-size: 1.75rem; color: var(--ink); }
.now-note { right: 44px; bottom: 4px; top: auto; transform: rotate(-5deg); }
.now-note .pen { font-size: 1.15rem; background: var(--paper); padding: 0 4px; }
.now-empty { color: var(--mute); margin: var(--s-3) 0 var(--s-2); }
.facts.small { margin-top: var(--s-7); }
.facts.small b { font-size: 2rem; }
