/* Wheel Size Lab website. Same dark "soft glass" look as the simulator and the film. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
}
:root {
  --bg: #0b0f14;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8edf2;
  --muted: #a3b0be;
  --a: #38bdf8;
  --b: #fb923c;
  --good: #4ade80;
  --bad: #f87171;
  --cta: #22c55e;
  --wrap: 1120px;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #7dd3fc; text-underline-offset: 3px; }
a:hover { color: #bae6fd; }
:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(11, 15, 20, 0.78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; white-space: nowrap; }
.logo i { display: inline-flex; gap: 3px; }
.logo i::before, .logo i::after { content: ''; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--a); }
.logo i::after { width: 17px; height: 17px; border-color: var(--b); margin-top: -4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 10px; }
.nav a:hover { color: #fff; background: var(--panel-2); }
.nav a[aria-current='page'] { color: #fff; background: var(--panel-2); }
.nav a.go { background: var(--cta); color: #05240f; font-weight: 800; margin-left: 8px; }
.nav a.go:hover { background: #4ade80; color: #05240f; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-top: 8px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #cfd8e3; max-width: 62ch; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--good); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.prose { max-width: 74ch; }
.prose h2 { margin: 44px 0 14px; scroll-margin-top: 84px; }
.prose h3 { margin: 28px 0 8px; scroll-margin-top: 84px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose figure { margin: 26px 0; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 800; font-size: 17px; text-decoration: none; border: 1px solid var(--line); background: var(--panel-2); color: #fff; }
.btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #05240f; }
.btn.primary:hover { background: #4ade80; color: #05240f; }

/* hero */
.hero { position: relative; padding: 0; border: 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.72) 42%, rgba(11, 15, 20, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 20, 0) 30%); }
.hero .wrap { position: relative; padding: clamp(64px, 11vw, 150px) 0 clamp(72px, 10vw, 130px); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 20px; }
.page-head { padding: 64px 0 34px; border: 0; }
.page-head + section { border-top: 0; padding-top: 10px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* cards, grids */
.grid { display: grid; gap: 18px; }
.grid > *, .split > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
a.card:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.22); }
.card .more { color: #7dd3fc; font-weight: 700; }
.stat { text-align: left; }
.stat b { display: block; font-size: clamp(28px, 3.1vw, 40px); white-space: nowrap; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat b.long { font-size: clamp(21px, 2.25vw, 29px); line-height: 1.38; }
.stat b.good { color: var(--good); }
.stat b.a { color: var(--a); }
.stat b.b { color: var(--b); }
.stat span { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin: 18px 0 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; white-space: nowrap; }
td.n, th.n { text-align: right; white-space: nowrap; }
.pos { color: var(--good); font-weight: 700; }
.neg { color: var(--bad); font-weight: 700; }
tfoot td { font-weight: 800; border-top: 1px solid var(--line); }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--good); min-width: 2px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot.a { background: var(--a); }
.dot.b { background: var(--b); }

/* range line */
.range { position: relative; height: 92px; margin: 34px 12px 12px; }
.range::before { content: ''; position: absolute; left: 0; right: 0; top: 44px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--a), var(--b)); opacity: 0.7; }
.range .zero { position: absolute; top: 30px; height: 32px; width: 2px; background: rgba(255, 255, 255, 0.55); }
.range i { font-style: normal; }
.range .pt { position: absolute; top: 38px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #cbd5e1; border: 3px solid var(--bg); }
.range .pt.cur { background: var(--good); width: 22px; height: 22px; top: 35px; margin-left: -11px; }
.range .pt span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--muted); top: 24px; text-align: center; line-height: 1.25; }
.range .pt:nth-child(odd) span { top: auto; bottom: 24px; }
.range .pt span b { display: block; color: var(--text); font-size: 15px; }

/* calibration cards */
.cals { display: grid; gap: 12px; margin: 18px 0 10px; }
.cal { padding: 16px 18px; }
.cal.cur { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.06); }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cal-head h3 { margin: 0; font-size: 18px; }
.cal-head b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal p { margin-bottom: 6px; }

/* source list, video list, faq */
.source { padding: 20px 22px; }
.source h3 { font-size: 18px; }
.source .who { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.who.independent { color: var(--good); }
.who.maker { color: var(--b); }
.who.critic { color: var(--bad); }
.who.lab { color: var(--a); }
.source .ext { font-weight: 700; word-break: break-word; }
.vid, a.card.vid { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.vid h3 { margin-bottom: 4px; }
.vid .play { width: 96px; height: 96px; border-radius: 50%; background: var(--cta); display: grid; place-items: center; }
.vid .play::before { content: ''; border-style: solid; border-width: 16px 0 16px 28px; border-color: transparent transparent transparent #05240f; margin-left: 7px; }
.film { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.film::after { content: ''; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: rgba(34, 197, 94, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2305240f' d='M9 6.5v11l9-5.500z'/%3E%3C/svg%3E") center / 54px no-repeat; transition: transform 0.15s; }
.film:hover::after { transform: scale(1.08); }
.transcript p { margin-bottom: 0.7em; }
.transcript time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 10px; font-size: 14px; }
.faq h2 { font-size: 23px; margin: 40px 0 10px; scroll-margin-top: 84px; }
.toc { columns: 2; column-gap: 34px; padding-left: 20px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.note { border-left: 3px solid var(--b); background: var(--panel); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.cta-band { text-align: center; padding: 64px 0; }
.cta-band .btns { justify-content: center; }
.cta-band p { margin-inline: auto; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-bottom: 18px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: #fff; }
.site-foot button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.site-foot button:hover { color: #fff; }

/* cookie panel (markup and behaviour: garda.lv /assets/cookie-consent.js) */
#cookie-banner { position: fixed; z-index: 100000; left: 12px; right: 12px; bottom: 12px; box-sizing: border-box; max-width: 620px; max-height: 85vh; max-height: 85dvh; overflow-x: hidden; overflow-y: auto; margin: auto; padding: 18px 20px; background: rgba(15, 20, 28, 0.96); color: #cfd8e3; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); font: 14.5px/1.5 'Manrope', system-ui, sans-serif; text-align: left; color-scheme: dark; }
#cookie-banner[hidden], #cookie-banner [hidden], #cookie-settings[hidden] { display: none !important; }
#cookie-banner .cookie-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#cookie-banner h2 { font-size: 18px; font-weight: 800; margin: 0; color: #fff; letter-spacing: 0; }
#cookie-banner p { margin: 8px 0; }
#cookie-banner .cookie-options { display: grid; gap: 8px; margin: 12px 0; }
#cookie-banner .cookie-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.04); cursor: pointer; }
#cookie-banner .cookie-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: #22c55e; flex: 0 0 auto; }
#cookie-banner .cookie-option strong { display: block; color: #fff; }
#cookie-banner .cookie-option span span { font-size: 13.5px; color: #a3b0be; }
#cookie-banner details { margin: 8px 0; }
#cookie-banner summary { cursor: pointer; color: #7dd3fc; }
#cookie-banner .cookie-details { font-size: 13.5px; color: #a3b0be; }
#cookie-banner a { color: #7dd3fc; }
#cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#cookie-banner button { font: inherit; font-weight: 700; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; flex: 1 1 auto; }
#cookie-banner button:hover { background: rgba(255, 255, 255, 0.16); }
#cookie-banner #cookie-accept { background: #22c55e; border-color: #22c55e; color: #05240f; }
#cookie-banner #cookie-close { flex: 0 0 auto; min-height: 34px; width: 34px; padding: 0; font-size: 20px; line-height: 1; }

/* big screens (1440p, 4K): scale the whole layout up instead of leaving a narrow column */
@media (min-width: 1900px) { body { zoom: 1.15; } }
@media (min-width: 2300px) { body { zoom: 1.35; } }
@media (min-width: 3000px) { body { zoom: 1.6; } }
@media (min-width: 3600px) { body { zoom: 1.9; } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: rgba(11, 15, 20, 0.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav a.go { margin: 8px 0 0; text-align: center; }
  section { padding: 52px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .g2, .g4 { grid-template-columns: 1fr 1fr; }
  .g2.stack { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 20, 0.82) 45%, rgba(11, 15, 20, 0.55) 100%); }
  .btn { width: 100%; justify-content: center; }
  th, td { padding: 9px 8px; }
  table { font-size: 13.5px; }
  th { font-size: 11px; letter-spacing: 0.03em; }
  .hide-sm { display: none; }
  td.n, th.n { white-space: normal; }
  th { white-space: normal; }
  .vid, a.card.vid { grid-template-columns: 64px 1fr; gap: 14px; }
  .vid .play { width: 64px; height: 64px; }
  .vid .play::before { border-width: 11px 0 11px 19px; margin-left: 5px; }
  .range { margin-inline: 44px; }
  .stat b { white-space: normal; }
  .range .pt span { font-size: 11.5px; }
  .range .pt span b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.shot img.phone { max-width: 300px; margin: 0 auto; }
.chapters li { margin-bottom: 6px; }
.chapters time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 10px; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
