/* pixel-10-comp — phone comparison page.
 * UI colours come from /shared/tokens.css. The only hex values that live in JS are
 * the phones' own product colours and one identity colour per phone (data.js),
 * because those describe the PHONES, not the page. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { line-height: 1.55; min-height: 100vh; }
a { color: var(--accent-text); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ── top bar (same links as the rest of the site) ─────────────────────── */
.top-bar { background: var(--surface-sunken); border-bottom: 1px solid var(--line); padding: 0 20px; }
.top-bar ul { list-style: none; display: flex; gap: 20px; align-items: center; min-height: 48px; }
.top-bar a { color: var(--ink); text-decoration: none; font-weight: 700; }
.top-bar a:hover, .top-bar a.active-link { color: var(--accent-text); }

/* ── jump nav ─────────────────────────────────────────────────────────── */
.jump {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.jump-inner { max-width: 1240px; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
.jump-inner::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; padding: 6px 12px; border-radius: var(--radius-pill); text-decoration: none;
  color: var(--ink-dim); font-size: var(--fs-small); font-weight: 600; border: 1px solid transparent;
}
.jump a:hover { color: var(--ink); border-color: var(--line); }
.jump a.on { color: var(--accent-ink); background: var(--accent); }

/* ── layout ───────────────────────────────────────────────────────────── */
main { max-width: 1240px; margin: 0 auto; padding: 0 16px 80px; }
section.block { padding: 56px 0 8px; }
.kicker { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); font-weight: 700; }
h2.title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.15; margin: 6px 0 10px; letter-spacing: -0.01em; }
.lede { color: var(--ink-dim); max-width: 760px; margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--pad-lg); box-shadow: var(--shadow-1); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); font-size: var(--fs-small); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; vertical-align: baseline; margin-right: .35em; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding-top: 36px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -40px -50vw auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 25% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(35% 55% at 78% 40%, color-mix(in srgb, var(--safe) 12%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; margin: 8px 0 12px; }
.hero h1 .vs { color: var(--ink-faint); font-weight: 400; padding: 0 .2em; }
.picker-row { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 18px 0 8px; }
.picker { display: flex; flex-direction: column; gap: 6px; }
.picker-label { font-size: var(--fs-small); color: var(--ink-faint); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-pill);
  padding: 0 14px; min-height: 40px; min-inline-size: 0; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-dim); }
.chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); }
.chip[disabled] { opacity: .35; cursor: not-allowed; }

.stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; margin-top: 18px; }
.stage-phone { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.stage-phone .render { width: 100%; display: flex; justify-content: center; align-items: flex-end; perspective: 1200px; }
.stage-phone svg.phone { width: auto; max-width: 100%; height: clamp(280px, 42vw, 460px); filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.stage-phone .render:hover svg.phone { transform: rotateY(-8deg) rotateX(4deg) translateY(-4px); }
.stage-phone h3 { font-size: 1.25rem; text-align: center; }
.stage-phone .tag { font-size: var(--fs-small); color: var(--ink-faint); text-align: center; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.swatch { width: 28px; height: 28px; min-block-size: 28px; min-inline-size: 28px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.colorname { font-size: var(--fs-small); color: var(--ink-dim); min-height: 1.4em; }
.stage-mid { display: flex; flex-direction: column; gap: 10px; align-items: center; align-self: center; }
.btn {
  border: 1px solid var(--line-strong); background: var(--surface-hi); border-radius: var(--radius-pill);
  padding: 0 16px; min-height: 40px; min-inline-size: 0; cursor: pointer; font-weight: 600; font-size: var(--fs-small);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { border-color: var(--ink-dim); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 26px; }
.qs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px; }
.qs .k { font-size: var(--fs-small); color: var(--ink-faint); font-weight: 600; }
.qs .v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.qs .a { color: var(--ink-dim); font-family: var(--font-mono); font-size: .95rem; }
.qs .arrow { color: var(--ink-faint); }
.qs .b { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.qs .delta { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-pill); }
.delta.up { color: var(--safe-text); background: color-mix(in srgb, var(--safe) 15%, transparent); }
.delta.down { color: var(--accent-text); background: var(--accent-soft); }
.delta.same { color: var(--ink-faint); background: var(--surface-hi); }

/* ── teardown lab ─────────────────────────────────────────────────────── */
.lab { padding: 0; overflow: hidden; }
.lab-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-hi); }
.lab-bar .grp { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lab-bar label { font-size: var(--fs-small); color: var(--ink-dim); font-weight: 600; }
.range { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
.range input { flex: 1; accent-color: var(--accent); min-block-size: 32px; }
.range output { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ink-dim); width: 3.5em; text-align: right; }
.lab-view { position: relative; background:
  radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--surface-hi) 80%, transparent), transparent 75%),
  var(--surface-sunken); }
.lab-view svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; }
.lab-view svg.dragging { cursor: grabbing; }
.lab-hint { position: absolute; left: 14px; bottom: 10px; font-size: .75rem; color: var(--ink-faint); pointer-events: none; }
.lab-detail { padding: 18px; border-top: 1px solid var(--line); min-height: 140px; }
.lab-detail h3 { font-size: var(--fs-title); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lab-detail .cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lab-detail .side { background: var(--surface-hi); border-radius: var(--radius-lg); padding: 12px 14px; border-left: 4px solid var(--c); }
.lab-detail .side b { display: block; margin-bottom: 4px; }
.lab-detail ul { padding-left: 1.1em; color: var(--ink-dim); font-size: var(--fs-small); }
.layer-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

svg .lyr { transition: opacity .25s; }
svg .lyr.dim { opacity: .18; }
svg .callout { transition: opacity .25s; }
svg text { font-family: var(--font-sans); }

/* ── verdict ──────────────────────────────────────────────────────────── */
.verdict-list { list-style: none; display: grid; gap: 8px; }
.verdict-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--surface-hi); }
.verdict-list .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.ic.gain { background: color-mix(in srgb, var(--safe) 20%, transparent); color: var(--safe-text); }
.ic.loss { background: var(--accent-soft); color: var(--accent-text); }
.ic.same { background: var(--surface); color: var(--ink-faint); }
.verdict-list b { display: block; }
.verdict-list span { color: var(--ink-dim); font-size: var(--fs-small); }

/* ── charts ───────────────────────────────────────────────────────────── */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 130px) minmax(60px, 1fr) 13em; gap: 12px; align-items: center; }
.bars.ranked .bar-row { grid-template-columns: 2.4em minmax(84px, 130px) minmax(60px, 1fr) 13em; }
.grid.three .bar-row, .grid.three .bars.ranked .bar-row { grid-template-columns: 1.6em minmax(70px, 96px) minmax(40px, 1fr) 4.5em; gap: 8px; }
.bar-row .rk { font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; color: var(--ink-dim); text-align: right; }
.bar-row .nm { font-size: var(--fs-small); font-weight: 600; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 14px; background: var(--surface-hi); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--c); border-radius: var(--radius-pill); width: 0; opacity: .5; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-small); font-weight: 600; color: var(--ink-dim); text-align: right; }
.bar-row.is-a .nm, .bar-row.is-b .nm, .bar-row.is-a .bar-val, .bar-row.is-b .bar-val, .bar-row.is-a .rk, .bar-row.is-b .rk { color: var(--ink); font-weight: 800; }
.bar-row.is-a .bar-fill, .bar-row.is-b .bar-fill { opacity: 1; }
@media (max-width: 560px) {
  .bar-row, .bars.ranked .bar-row { grid-template-columns: minmax(70px, 96px) 1fr; row-gap: 2px; }
  .bars.ranked .bar-row { grid-template-columns: 1.8em minmax(70px, 96px) 1fr; }
  .bar-row .bar-val { grid-column: -2 / -1; text-align: left; font-size: .78rem; }
}
.subhead { font-size: var(--fs-title); margin: 18px 0 10px; }
.subhead:first-child { margin-top: 0; }

svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--ink-dim); font-size: 12px; }
svg.chart .axis { stroke: var(--line); }
svg.chart .strong { fill: var(--ink); font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-small); color: var(--ink-dim); margin-top: 10px; }

/* size overlay */
.overlay-wrap { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 20px; align-items: center; }
@media (max-width: 760px) { .overlay-wrap { grid-template-columns: 1fr; } }
.overlay-wrap svg { max-height: 460px; }

/* ── AI matrix ────────────────────────────────────────────────────────── */
.matrix-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
table.matrix { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--fs-small); }
table.matrix th, table.matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix thead th { background: var(--surface-hi); position: sticky; top: 0; font-size: .78rem; }
table.matrix td:first-child b { display: block; color: var(--ink); }
table.matrix td:first-child span { color: var(--ink-faint); }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; }
.av.yes { background: color-mix(in srgb, var(--safe) 22%, transparent); color: var(--safe-text); }
.av.no { background: var(--surface-hi); color: var(--ink-faint); }
.av.part { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }

.callout-box { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; border-radius: var(--radius-lg); }
.callout-box h3 { font-size: var(--fs-title); margin-bottom: 4px; }
.callout-box p + p { margin-top: 8px; }

.chipgram { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.die { border-radius: var(--radius-lg); padding: 14px; background: var(--surface-hi); border-top: 4px solid var(--c); }
.die h4 { font-size: 1rem; }
.die .cores { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.die .core { height: 22px; border-radius: 5px; background: var(--c); opacity: .85; }
.die .core.big { width: 38px; } .die .core.mid { width: 28px; opacity: .65; } .die .core.lil { width: 20px; opacity: .45; }
.die dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: var(--fs-small); }
.die dt { color: var(--ink-faint); } .die dd { color: var(--ink); }

/* magnets demo */
.snap-demo { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.snap-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.snap-col svg { width: 180px; height: auto; overflow: visible; }
.snap-col .puck { transform: translate(0, var(--from)); transition: transform .7s cubic-bezier(.5,-0.4,.3,1.4); }
.snap-demo.snapped .snap-col .puck.sticks { transform: translate(0, 0); }
.snap-demo.snapped .snap-col .puck.falls { animation: fall 1.4s ease-in forwards; }
@keyframes fall {
  0% { transform: translate(0, var(--from)); }
  45% { transform: translate(0, 0); }
  60% { transform: translate(0, 8px) rotate(3deg); opacity: 1; }
  100% { transform: translate(14px, 260px) rotate(28deg); opacity: 0; }
}
.snap-col .pulse { opacity: 0; }
.snap-demo.snapped .snap-col .pulse.on { animation: pulse 1.4s ease-out .5s 2; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.snap-col .pulse { transform-box: fill-box; transform-origin: center; }

/* thermometer */
.thermo-demo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.thermo-read { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; }

/* timeline */
.timeline svg text { font-size: 12px; }

/* ── spec explorer ────────────────────────────────────────────────────── */
.ex-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.ex-bar input[type="search"] {
  flex: 1 1 220px; min-height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit;
}
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-dim); cursor: pointer; }
.toggle input { min-block-size: 20px; min-inline-size: 20px; accent-color: var(--accent); }
.spec-wrap { overflow: auto; max-height: 80vh; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.spec { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: var(--fs-small); }
table.spec th, table.spec td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.spec thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-hi); cursor: pointer; white-space: nowrap; }
table.spec thead th .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }
table.spec tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 600; color: var(--ink-dim); min-width: 170px; }
table.spec tr.cat th { background: var(--surface-sunken); color: var(--accent-text); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; position: sticky; left: 0; }
table.spec td.best { color: var(--safe-text); font-weight: 700; }
table.spec td.best::after { content: " ★"; font-size: .8em; }
table.spec tr.differs th { color: var(--ink); }
table.spec tbody tr:not(.cat):hover td, table.spec tbody tr:not(.cat):hover th { background: var(--surface-hi); }
table.spec .rankbtn { border: 0; background: none; color: var(--ink-faint); cursor: pointer; font-size: .75rem; min-block-size: 0; min-inline-size: 0; padding: 0 4px; }
table.spec .rankbtn:hover { color: var(--accent-text); }
.ranker { margin-top: 16px; }
.ranker select { min-height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; }

footer.page { max-width: 1240px; margin: 0 auto; padding: 30px 16px 60px; color: var(--ink-faint); font-size: var(--fs-small); border-top: 1px solid var(--line); }
footer.page ul { padding-left: 1.2em; columns: 2 300px; }

/* entrance animation — content fades up as it arrives. Not a scroll trap: nothing is pinned. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr 1fr; }
  .stage-mid { grid-column: 1 / -1; order: 3; flex-direction: row; padding-bottom: 0; justify-content: center; }
  .stage-phone svg.phone { height: clamp(240px, 70vw, 380px); }
}

/* ── this page's own look: ALWAYS DARK ─────────────────────────────────
 * index.html stamps data-theme="dark" on <html> for this page only (it does not
 * touch the stored site preference), which also switches off tokens.css's
 * system-light block. These are deeper, keynote-style blacks than the house
 * dark theme, so the phone renders glow. */
:root, :root[data-theme="dark"] {
  --ground: #07070A; --surface: #111117; --surface-hi: #1A1A22; --surface-sunken: #040406;
  --line: #262632; --line-strong: #5C5C70;
  --ink: #ECE8F0; --ink-dim: #A8A3B4; --ink-faint: #827D8F;
  color-scheme: dark;
}

/* ── scroll-driven teardown, with an exit ────────────────────────────────
 * The section is tall and its stage is sticky, so scrolling plays the
 * disassembly. Skip is always on screen while it is pinned, and the same
 * teardown lives un-pinned, hands-on, in the spec explorer. */
.scrolly { position: relative; height: calc(100vh + 5 * 45vh); height: calc(100svh + 5 * 45svh); }
.scrolly .lab { position: sticky; top: 52px; height: calc(100vh - 64px); height: calc(100svh - 64px); display: flex; flex-direction: column; }
.scrolly .lab-view { flex: 1; min-height: 0; }
.scrolly .lab-view svg { position: absolute; inset: 0; height: 100%; width: 100%; touch-action: pan-y; }
.lab-view svg { touch-action: pan-y; }
.chapter {
  position: absolute; left: 50%; transform: translateX(-50%); top: 12px; z-index: 2; pointer-events: none;
  width: min(620px, calc(100% - 24px)); min-height: 92px; text-align: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 10px 14px; backdrop-filter: blur(6px);
}
.chapter .step { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.chapter h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.chapter p { font-size: var(--fs-small); color: var(--ink-dim); }
@media (max-width: 760px) { .chapter { min-height: 132px; } .chapter p { font-size: .8rem; } }
.skip { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.progress-rail { position: absolute; right: 6px; top: 16px; bottom: 70px; width: 4px; border-radius: 4px; background: var(--line); }
.progress-rail i { position: absolute; left: 0; right: 0; top: 0; border-radius: 4px; background: var(--accent); height: 0; }
@media (max-width: 760px) { .scrolly .lab-hint { display: none; } }
.part-specs { width: 100%; border-collapse: collapse; font-size: var(--fs-small); margin-top: 12px; }
.part-specs th, .part-specs td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.part-specs th { color: var(--ink-dim); font-weight: 600; }
.part-specs td.best { color: var(--safe-text); font-weight: 700; }

/* wide charts keep a readable size on phones and scroll sideways instead of shrinking */
.scroll-x { overflow-x: auto; }
@media (max-width: 760px) { .scroll-x svg.chart { min-width: 720px; } .scroll-x { padding: 16px; } }

/* the extra Pixel 10s: shown only when asked for, marked as extras */
.chip.is-extra { border-style: dashed; }
.extras-btn { margin: 4px 0 6px; }

/* the verdict, compact: one line each in two columns; the "why" on hover, focus or tap */
.verdict-list.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.verdict-list.compact li { grid-template-columns: 22px 1fr; padding: 7px 10px; gap: 8px; align-items: center; cursor: default; }
.verdict-list.compact .ic { width: 22px; height: 22px; font-size: .78rem; }
.verdict-list.compact b { font-size: var(--fs-small); line-height: 1.3; }
.verdict-list.compact li > div > span { display: none; }
.verdict-list.compact li:hover > div > span, .verdict-list.compact li:focus > div > span { display: block; font-size: .78rem; }
.verdict-list.compact li.more { display: none; }
.verdict-list.compact.open li.more { display: grid; }
.show-more { margin-top: 10px; }

/* ── hero: CSS 3D phones ─────────────────────────────────────────────── */
.stage-phone .render { perspective: 1400px; align-items: center; cursor: grab; touch-action: pan-y; user-select: none; }
.stage-phone .render:active { cursor: grabbing; }
.p3d { position: relative; filter: drop-shadow(0 30px 34px rgb(0 0 0 / .5)); }
.p3d-body { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.p3d .slice, .p3d .face { position: absolute; inset: 0; backface-visibility: visible; }
.p3d .face { backface-visibility: hidden; }
.p3d .face.bumptop { inset: auto; }
.p3d .face svg.phone, .p3d .face svg { width: 100%; height: 100%; display: block; filter: none; }
.stage-phone .render:hover svg.phone { transform: none; }

/* ── teardown part tooltips ──────────────────────────────────────────── */
.tip {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  width: min(560px, calc(100% - 16px));
  background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 10px 12px; box-shadow: var(--shadow-2); font-size: .8rem;
  backdrop-filter: blur(8px);
}
.tip-h { font-weight: 800; font-size: .95rem; }
.tip-what { color: var(--ink-faint); margin: 2px 0 6px; }
.tip table { border-collapse: collapse; width: 100%; }
.tip th, .tip td { text-align: left; padding: 3px 10px 3px 0; vertical-align: top; }
.tip td { width: 38%; }
.tip tbody th { color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
.tip td { color: var(--ink-dim); font-family: var(--font-mono); font-size: .76rem; }
.tip td.on, .tip th.on { color: var(--ink); font-weight: 700; }
.tip thead th { font-size: .75rem; }
.tip ul { margin: 6px 0 0; padding-left: 1em; color: var(--ink-dim); }
.tip-x { color: var(--ink-faint); font-size: .7rem; margin-top: 6px; }

.scores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.score { background: var(--surface-hi); border-radius: var(--radius); padding: 6px 10px; display: flex; flex-direction: column; min-width: 78px; }
.score .num { font-size: 1.3rem; font-weight: 800; }
.score small { color: var(--ink-faint); font-size: .7rem; }
ul.links { list-style: none; display: grid; gap: 6px; margin-top: 8px; font-size: var(--fs-small); }
