/* SizeMyLaptop design tokens. THE single source of every value; DESIGN.md explains each one.
   build.sh puts this file in front of site.css in dist, so every page has it and nothing else may define a value.
   tools/check-design.mjs parses this file and fails the build on any CSS or rendered style outside it.
   Changing a value here is a rulebook change: edit DESIGN.md in the same commit. */
:root {
  /* colour: eight values. White on the accent is --bg. */
  --bg: #FFFFFF;           /* page */
  --ink: #14171C;          /* text, the laptop bezel. 17,96:1 on --bg */
  --g1: #F2F3F5;           /* fills: bands, wallpaper, report mat, the code block. Ink 16,18:1 */
  --g2: #5A6270;           /* secondary text. 6,15:1 on --bg, 5,54:1 on --g1 */
  --accent: #1F4BC4;       /* cobalt; ours. Buttons, links, focus ring, one highlighted chart series. 7,34:1 on --bg, 6,61:1 on --g1 */
  --v-green: #1E7F43;      /* verdict colours: data only, on an element carrying data-verdict */
  --v-amber: #A84F00;
  --v-red: #C8102E;
  /* spacing: 8-point, closed */
  --sp8: 8px; --sp16: 16px; --sp24: 24px; --sp32: 32px; --sp48: 48px; --sp64: 64px; --sp96: 96px; --sp128: 128px; --sp192: 192px;
  /* shape: two radii, one shadow (a box form and a filter form of the same shadow) */
  --r12: 12px;
  --r999: 999px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .12);
  --shadow-obj: drop-shadow(0 24px 32px rgba(0, 0, 0, .12));
  /* type: Geist, weights 400 and 600, six steps (768 and up; below 768 further down) */
  --font: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --w-regular: 400;
  --w-semi: 600;
  --fs-display: 88px; --lh-display: 92px; --ls-display: -0.04em;
  --fs-title: 56px;   --lh-title: 60px;   --ls-title: -0.03em;
  --fs-heading: 32px; --lh-heading: 40px; --ls-heading: -0.02em;
  --fs-lead: 22px;    --lh-lead: 32px;    --ls-lead: -0.01em;
  --fs-body: 17px;    --lh-body: 26px;    --ls-body: 0;
  --fs-small: 13px;   --lh-small: 20px;   --ls-small: 0.01em;
  /* grid and section rhythm */
  --pad: var(--sp64);
  --gap: var(--sp24);
  --stage-y: var(--sp128);
  --statement-y: var(--sp192);
  --band-y: var(--sp96);
  --nav-h: 52px;
  /* motion: one duration, one easing; transform and opacity only */
  --dur: 150ms;
  --ease: ease-out;
  color-scheme: light;
}
@media (max-width: 1199px) {
  :root { --pad: var(--sp32); }
}
@media (max-width: 767px) {
  :root {
    --pad: var(--sp24);
    --gap: var(--sp16);
    --stage-y: var(--sp96);
    --statement-y: var(--sp96);
    --band-y: var(--sp64);
    --fs-display: 44px; --lh-display: 48px; --ls-display: -0.035em;
    --fs-title: 32px;   --lh-title: 36px;   --ls-title: -0.025em;
    --fs-heading: 24px; --lh-heading: 32px; --ls-heading: -0.015em;
    --fs-lead: 19px;    --lh-lead: 28px;    --ls-lead: -0.01em;
  }
}
/* SizeMyLaptop v5. One closed token set (DESIGN-SYSTEM-v5.md section B): every size, space, colour, radius and shadow below is a
   var(--token) or 0, auto, none, 100%. tools/check-v5.mjs (F1) parses this file and fails on anything else outside :root.
   No gradients, no borders, no opacity below 1, no scroll effects: the page is its own final state with JavaScript off.
   Pages other than the home also load /assets/legacy.2c6f1478.css (their older components, re-based onto these tokens). */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist.28258d06.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono.5bc6413e.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* the system face the page shows while Geist loads, scaled to Geist's width and vertical metrics so the swap does not move anything */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.56%;
  ascent-override: 90.6%;
  descent-override: 21.7%;
  line-gap-override: 0%;
}

/* the values live in tokens.css (build.sh puts it in front of this file) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: var(--w-regular);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); }
h3 { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }
p, figure { margin: 0; }
b, strong { font-weight: var(--w-semi); }
button { border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--mono); font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: 0; }
small, .small { font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); }
a { color: var(--accent); text-decoration: none; transition: opacity 150ms; }
a:hover { opacity: .8; }
p a, li a { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: static; width: auto; height: auto; clip: auto; display: block; background: var(--bg); color: var(--ink); padding: var(--sp8) var(--sp16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* layout: 12 columns, 1280 wide, 4 columns below 768 */
.wrap { width: 100%; max-width: 1408px; margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.clip { overflow: clip; }

/* header: 52 px, white, no border */
.site-header { position: sticky; top: 0; z-index: 10; height: var(--nav-h); background: var(--bg); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; column-gap: var(--sp24); }
.wordmark { color: var(--ink); font-weight: 600; font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-lead); }
.site-header nav { display: flex; align-items: center; column-gap: var(--sp24); font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); }
.site-header nav a { color: var(--g2); }
.site-header nav a:hover { color: var(--ink); opacity: 1; }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header .btn-nav { display: inline-flex; align-items: center; padding: var(--sp8) var(--sp16); border-radius: var(--r999); background: var(--accent); color: var(--bg); font-weight: 600; }
.site-header nav a.btn-nav:hover { color: var(--bg); opacity: .8; }
@media (max-width: 767px) { .site-header nav .nav-opt { display: none; } }

/* buttons: one primary pill per section, a plain link underneath */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 var(--sp32); border: 0; border-radius: var(--r999); background: var(--accent); color: var(--bg); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; letter-spacing: var(--ls-body); text-align: center; cursor: pointer; transition: transform 150ms, opacity 150ms; }
.btn:hover { color: var(--bg); opacity: .8; transform: scale(1.02); }
.btn-outline { background: var(--g1); color: var(--ink); }
.btn-outline:hover { color: var(--ink); }
.chev::after { content: "\203A"; margin-left: var(--sp8); }
@media (max-width: 767px) { .btn.btn-lg { width: 100%; } }
p a.btn, li a.btn { text-decoration: none; }

/* section types: stage (a screen), statement (long air), band (short air) */
.stage { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: var(--stage-y) 0; }
.stage > .wrap { width: 100%; }
.statement { padding: var(--statement-y) 0; }
.band { padding: var(--band-y) 0; }
.on-g1 { background: var(--g1); }
@media (max-width: 767px) { .stage { min-height: 0; } }

/* title, lead and the gaps inside a section: 16 title to lead, 48 title to visual */
.sec-title { max-width: 20ch; }
.sec-lead { margin-top: var(--sp16); max-width: 34rem; font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); color: var(--g2); }
.sec-body { margin-top: var(--sp48); }
.caption { margin-top: var(--sp16); font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); color: var(--g2); }
@media (min-width: 768px) {
  .sec-head { grid-column: 1 / span 8; }
}

/* hero: copy first on a phone, copy left and laptop right from 1360 */
.hero-copy h1 span { display: block; }
.hero-copy .lead { margin-top: var(--sp16); max-width: 30rem; font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); color: var(--g2); }
.hero-copy .cta { margin-top: var(--sp32); }
.micro { margin-top: var(--sp16); display: flex; flex-wrap: wrap; column-gap: var(--sp16); row-gap: 0; font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); color: var(--g2); }
.micro li + li::before { content: "\00b7"; margin-right: var(--sp16); }
.hero-visual { margin-top: var(--sp48); }
.laptop { width: 100%; }
.laptop-crop { display: none; }
.laptop-pop { width: 300px; max-width: 100%; height: auto; margin: 0 auto; filter: var(--shadow-obj); }
.laptop figcaption { margin-top: var(--sp16); }
@media (min-width: 768px) { .laptop-crop { display: block; } .laptop-pop { display: none; } .laptop-crop > svg { width: 900px; max-width: none; filter: var(--shadow-obj); } }
@media (min-width: 1360px) {
  .hero-copy { grid-column: 1 / span 6; align-self: center; }
  .hero-visual { grid-column: 7 / -1; margin-top: 0; align-self: center; }
}

/* the report sheet and the evidence strip */
.sheet { margin: var(--sp48) auto 0; max-width: 640px; width: 100%; }
.sheet img { width: 100%; height: auto; border-radius: var(--r12); box-shadow: var(--shadow); background: var(--bg); }
.sheet figcaption { margin-top: var(--sp24); }
.evidence svg { max-width: 100%; }
.ev-wide, .ev-mid { display: none; }
@media (min-width: 768px) { .ev-narrow { display: none; } .ev-mid { display: block; } }
@media (min-width: 1200px) { .ev-mid { display: none; } .ev-wide { display: block; } }
.ev-bar { fill: var(--g2); }
.ev-bar.short { fill: var(--accent); }
.ev-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.ev-need { stroke: var(--ink); stroke-width: 2; }
.ev-txt { font-family: var(--font); font-size: var(--fs-small); line-height: var(--lh-small); fill: var(--g2); }
.ev-txt.strong { fill: var(--ink); font-weight: 600; }

/* the popover drawn from the app's own strings: laptop screen and the three steps */
.pp-card { fill: var(--bg); }
.pp-brand { font-family: var(--font); font-size: var(--fs-small); font-weight: 600; fill: var(--g2); }
.pp-title { font-family: var(--font); font-size: var(--fs-lead); font-weight: 600; fill: var(--ink); letter-spacing: var(--ls-lead); }
.pp-sub { font-family: var(--font); font-size: var(--fs-small); fill: var(--g2); }
.pp-row { font-family: var(--font); font-size: var(--fs-small); fill: var(--ink); }
.pp-row.prom { font-weight: 600; fill: var(--accent); }
.pp-hint { font-family: var(--font); font-size: var(--fs-small); fill: var(--g2); }
.pp-track { fill: var(--g1); }
.pp-fill { fill: var(--accent); }
.pp-sep { fill: var(--g1); }
.pp-ic { fill: none; stroke: var(--g2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pp-ic.prom { stroke: var(--accent); }
.lp-bezel { fill: var(--ink); }
.lp-base { fill: var(--g2); }
.lp-notch { fill: var(--g1); }
.lp-win { fill: var(--bg); }
.lp-title { fill: var(--g1); }
.lp-dot { fill: var(--g2); }
.lp-screen { fill: var(--g1); }
.lp-menubar { fill: var(--bg); }
.lp-mb-t { font-family: var(--font); font-size: var(--fs-small); font-weight: 600; fill: var(--ink); }
.lp-mb-ic { fill: var(--g2); }
.lp-mb-ic.on { fill: var(--accent); }

/* three steps */
.steps { margin-top: var(--sp48); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--sp48); }
.steps li { min-width: 0; }
.steps figure { margin: 0; background: var(--g1); border-radius: var(--r12); padding: var(--sp32) var(--sp16); display: flex; justify-content: center; align-items: center; min-height: 288px; }
.steps figure svg { width: 100%; max-width: 300px; }
.steps h3 { margin-top: var(--sp24); }
.steps h3 .n { color: var(--g2); margin-right: var(--sp8); }
.steps p { margin-top: var(--sp8); color: var(--g2); max-width: 28rem; }
@media (max-width: 767px) { .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp32); } .steps figure { padding: var(--sp16); min-height: 0; } }

/* trust: the data allow-list is the picture */
.trust-grid { row-gap: var(--sp48); }
.trust-copy .sec-lead { max-width: 30rem; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--sp24); font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: 600; }
.trust-note { margin-top: var(--sp32); max-width: 30rem; color: var(--g2); }
.trust-link { margin-top: var(--sp16); }
@media (min-width: 768px) {
  .trust-copy { grid-column: 1 / span 6; }
  .figures { grid-column: 7 / -1; align-self: start; }
}
@media (max-width: 767px) { .figures { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp8); } }

/* final ask: the one centred section */
.final { text-align: center; }
.final .sec-title { margin: 0 auto; max-width: 14ch; }
.final .cta { margin-top: var(--sp32); }
.final .caption { margin-top: var(--sp24); }

/* install page */
.install-main { max-width: 800px; }
.install-main h1 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); }
.install-main .sec-lead { max-width: 34rem; }
.install-main .note { margin-top: var(--sp24); max-width: 34rem; color: var(--g2); }
.install-cmd { margin-top: var(--sp32); }
.cmdbox { background: var(--g1); border-radius: var(--r12); padding: var(--sp24); }
.cmdbox code { display: block; font-size: var(--fs-body); line-height: var(--lh-body); overflow-wrap: anywhere; user-select: all; color: var(--ink); }
.cmdbox:target, .cmdbox:focus-within { background: var(--g1); outline: 2px solid var(--accent); outline-offset: 2px; }
.install-cmd .btn { margin-top: var(--sp24); }
.disclosures { margin-top: var(--sp48); }
.disclosures details + details { margin-top: var(--sp16); }
.disclosures summary { cursor: pointer; font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); font-weight: 600; list-style: none; }
.disclosures summary::-webkit-details-marker { display: none; }
.disclosures summary::before { content: "+"; display: inline-block; width: var(--sp24); color: var(--g2); }
.disclosures details[open] summary::before { content: "\2212"; }
.disclosures details > :not(summary) { margin-top: var(--sp16); max-width: 34rem; color: var(--g2); }
.disclosures .cmdbox { margin-top: var(--sp16); }
.install-os { margin-top: var(--sp96); }
.install-os h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.install-os .cmdbox { margin-top: var(--sp24); }
.install-os p { margin-top: var(--sp16); color: var(--g2); max-width: 34rem; }
.install-os .btn { margin-top: var(--sp8); }
.app-slot { margin-top: var(--sp24); }
/* the filled download slot: the install step as a picture (open the file, drag the app onto Applications); tokens only */
.dmg-fig { margin-top: var(--sp24); max-width: 342px; }
.dmg-fig svg { display: block; width: 100%; height: auto; }
.dmg-fig .tile { fill: var(--g1); }
.dmg-fig .app { fill: var(--bg); }
.dmg-fig .arrow { fill: none; stroke: var(--g2); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.dmg-fig text { fill: var(--ink); font-family: var(--font); font-size: var(--fs-small); }

/* footer: one row of links, at most 40 words */
.site-footer { background: var(--g1); padding: var(--sp48) 0; color: var(--g2); font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); }
.foot-links { display: flex; flex-wrap: wrap; column-gap: var(--sp24); row-gap: var(--sp8); }
.site-footer a { color: var(--ink); }
.foot-meta { margin-top: var(--sp24); display: flex; flex-wrap: wrap; column-gap: var(--sp24); row-gap: var(--sp8); }
.foot-meta p { margin: 0; }
@media (max-width: 767px) { .foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
