/* motion.css -- the lively layer for every page except the hero film. Loaded after site.css and page.css; site.css and tokens.css are not touched (the film
   digest hashes both), so the easing tokens live here with the --anim- prefix that check-design allows outside tokens.css.
   DESIGN.md, Motion (amended 2026-10-26): all motion sits inside prefers-reduced-motion: no-preference; the default state of every element is its final state,
   so no JS, reduced motion and a browser without scroll-driven animation all show the whole page. Values below are the measured ones (Trade Republic, Apple,
   Linear, Stripe findings of 2026-10-26); retune them here and nowhere else. */
:root {
  --anim-ease-settle: cubic-bezier(.19, 1, .22, 1);   /* rises */
  --anim-ease-ui: cubic-bezier(.25, .46, .45, .94);   /* UI changes (the digit roll) */
  --anim-rise: 8px;              /* a block's rise as it arrives (2026-11-01: opacity 0 and 8 px, the measured reference) */
  --anim-pop-from: .4;           /* a chart bar or dot pops from this scale to 1 */
  --anim-dur-rise: .28s;         /* a block's rise when its turn comes: small UI, 0,2 to 0,28 s */
  --anim-ease-pop: cubic-bezier(.34, 1.56, .64, 1);   /* the overshoot: small things settle just past their place and back */
  --anim-dur-roll: 325ms;        /* a changed digit rolls in (motion.js) */
  --anim-hero-dur: 1000ms;       /* hero headline lines on load */
  --anim-hero-delay: 400ms;
  --anim-hero-blur: 10px;
  --anim-hero-rise: 20%;
  --anim-dur-install: 1.2s;      /* the install picture, whole sequence, once, after its block has risen (R5: nothing over 1,2 s) */
  --anim-dur-pop: 600ms;
  --anim-dur-stagger: 280ms;     /* (iii) each item of a staggered group; with 7 steps of 40 ms the group ends within 1,2 s */
  --anim-stagger-step: 40ms;     /* (iii) the step between items (V15: 30 to 60 ms) */
  --anim-dur-magnet: .3s;        /* (iv) the button's return when the pointer leaves */
  --anim-dur-egg: 600ms;         /* (v) the header mark's gauge-to-check, once */         /* a block's chart dots and bars pop as one movement, after the block has settled */
}
/* app clips below the fold: one --g1 surface holding a live scene of one report figure (the figure and its title line are drawn in the film), no controls */
.clip-row { list-style: none; padding: 0; display: grid; gap: var(--sp24); grid-template-columns: minmax(0, 1fr); }
/* release-1 (critic N-P1-1): a phone shows all three clips, stacked; the heading counts them at every width (check-design G3) */     /* a phone shows the first clip only (the home page's height budget; F19 allows nothing outside or cut by the container) */
@media (min-width: 768px) { .clip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clip-well { position: relative; aspect-ratio: 342 / 232; border: var(--bw) solid var(--ink); border-radius: var(--r16); overflow: clip; background: var(--g1); }
.clip-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-well > .film-live { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* the clips' own axis is cropped out of the films: their units go back as page text over the same box (right edge at the plot's left, tick heights = the plot's gridlines), in GB for swap; the key sits under the plot */
.cw-t { position: absolute; font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); color: var(--g2); white-space: nowrap; pointer-events: none; }
.cw-a { right: 82%; margin-top: calc(var(--lh-small) / -2); }   /* centred on its tick by a margin, not a transform: F5, F6 and F20 read any transform as hidden or moved */
.cw-hi { top: 23.7%; }
.cw-thr { top: 36.4%; color: var(--ink); }
.cw-lo { top: 62.5%; }
.cw-key, .cw-note { top: 76%; left: 6%; }
.cw-key-rest { top: 86%; left: 6%; }
.cw-key-short { color: var(--ink); }
/* the hero film's pause button (motion.js adds it only where the film can play): a round 36 px icon in the block's bottom-right corner: a muted --g2 chip at rest, white on hover and focus */
[data-film-btn] { position: absolute; right: var(--sp24); bottom: var(--sp24); width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r999); background: var(--g2); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
[data-film-btn] svg { width: 14px; height: 14px; }
[data-film-btn] svg[data-i="play"], [data-film-btn][data-state="paused"] svg[data-i="pause"] { display: none; }
[data-film-btn][data-state="paused"] svg[data-i="play"] { display: block; }
[data-film-btn]:hover, [data-film-btn]:focus-visible { background: var(--bg); color: var(--ink); }
[data-film-btn]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes m-lift { from { opacity: 0; transform: translateY(var(--anim-rise)); } to { opacity: 1; transform: translateY(0); } }
@keyframes m-egg-mark { 0%, 100% { opacity: 1; } 15%, 85% { opacity: 0; } }
@keyframes m-egg-g { 0%, 10% { opacity: 0; } 20%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes m-egg-c { 0%, 45% { opacity: 0; } 55%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes m-pop { from { transform: scale(var(--anim-pop-from)); } to { transform: scale(1); } }
@keyframes m-hero { from { opacity: 0; filter: blur(var(--anim-hero-blur)); transform: translateY(var(--anim-hero-rise)); } to { opacity: 1; filter: blur(0px); transform: translateY(0); } }
/* the install picture: the app slides onto Applications, settles into it, and comes back to where the page started. Once. */
@keyframes m-slide { 0% { transform: translateX(0) scale(1); } 34% { transform: translateX(222px) scale(1); } 46%, 72% { transform: translateX(222px) scale(.88); } 100% { transform: translateX(0) scale(1); } }
@keyframes m-receive { 0%, 30% { transform: scale(1); } 40% { transform: scale(1.06); } 60%, 100% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* page to page: the browser cross-fades; the header stays where it is. Browsers without cross-document view transitions ignore both rules. */

  /* the home headline arrives on load: blur to sharp and a rise, the whole headline at once */
  .hero h1 { animation: m-hero var(--anim-hero-dur) var(--anim-ease-settle) var(--anim-hero-delay) backwards; }   /* the headline arrives as ONE movement (V9: its two lines were two) */

  .dmg-fig .app { transform-box: fill-box; transform-origin: 50% 50%; }

  /* a changed number: the digits are real text; motion.js only wraps and rolls the ones that changed */
  #res-likely, #res-low, #res-high { font-variant-numeric: tabular-nums; }
  #res-likely span, #res-low span, #res-high span { display: inline-block; }

  /* reveals (release-1, critic round 2 V9): ONE thing moves at a time. motion.js tags each block that enters the window by scrolling ([data-r]) and runs them one
     after another, never while a video in view plays or the headline arrives: a 10 px rise (m-lift), opacity 1 throughout. A block waits in its final state, so
     nothing rests hidden or displaced; one that waited too long, or scrolled well into the window, is not animated at all. A block's chart dots and bars pop
     only after the block has settled, as one movement ([data-pop]). Without the script, or with reduced motion, nothing here applies. */
  html[data-motion="q"] [data-r][data-in]:not([data-stagger]) { animation: m-lift var(--anim-dur-rise) var(--anim-ease-pop) both; }
  /* (iii) a stagger inside ONE turn (V15): the items of a [data-stagger] group rise 40 ms apart; the group is one queue turn and one moving thing (F22). Items rest in their final state. */
  html[data-motion="q"] [data-stagger][data-in] > * { animation: m-lift var(--anim-dur-stagger) var(--anim-ease-pop) calc(var(--anim-i, 0) * var(--anim-stagger-step)) both; }
  [data-stagger] > :nth-child(2) { --anim-i: 1; } [data-stagger] > :nth-child(3) { --anim-i: 2; } [data-stagger] > :nth-child(4) { --anim-i: 3; } [data-stagger] > :nth-child(5) { --anim-i: 4; } [data-stagger] > :nth-child(6) { --anim-i: 5; } [data-stagger] > :nth-child(7) { --anim-i: 6; } [data-stagger] > :nth-child(8) { --anim-i: 7; }
  /* (iv) the primary button leans toward the pointer (V12): motion.js sets --anim-mx/--anim-my, 15 % of the pointer's offset, 6 px at most; a desktop fine pointer only */
  @media (hover: hover) and (pointer: fine) {
    [data-magnet] { transform: translate(var(--anim-mx, 0px), var(--anim-my, 0px)); transition: transform var(--anim-dur-magnet) var(--anim-ease-settle), opacity var(--dur) var(--ease); }
    [data-magnet]:hover { transform: translate(var(--anim-mx, 0px), var(--anim-my, 0px)) scale(1.02); }
  }
  /* (v) one thing to discover (V16): the header mark runs the app's own gauge, then check, once, 0,6 s, when the visitor hovers or clicks it (motion.js sets data-egg-run once) */
  [data-egg][data-egg-run] .egg { display: inline; }
  [data-egg][data-egg-run] .mark rect { animation: m-egg-mark var(--anim-dur-egg) var(--anim-ease-settle) both; }
  [data-egg][data-egg-run] .egg-g { animation: m-egg-g var(--anim-dur-egg) linear both; }
  [data-egg][data-egg-run] .egg-c { animation: m-egg-c var(--anim-dur-egg) linear both; }
  /* the vendor range chart (/ram-requirements/) has one svg per row: popping each row's dots made up to six movements at once (V9). It does not pop; its [data-r] block rises as ONE movement. The /method/ reading figure does not pop either (critic round 4 N-P2-19: its dots sit in a figure and in a list item, two groups). */
  html[data-motion="q"] [data-pop] :is(.vc-bars .f, figure:not([data-visual="range-chart"]):not([data-visual="one-reading"]) svg circle) { transform-box: fill-box; transform-origin: 50% 100%; animation: m-pop var(--anim-dur-pop) var(--anim-ease-settle) both; }
  html[data-motion="q"] .dmg-fig[data-play] rect.app:nth-of-type(2) { animation: m-slide var(--anim-dur-install) var(--anim-ease-settle) 1 both; }
  html[data-motion="q"] .dmg-fig[data-play] rect.app:nth-of-type(3) { animation: m-receive var(--anim-dur-install) var(--anim-ease-settle) 1 both; }
}

/* print and anything that captures the whole page at once: every block as it is, nothing waiting for a scroll */
@media print { *, *::before, *::after { animation: none !important; } }

/* A phone cannot install the Mac app: below 768 px the primary button opens the sample report, which a phone can read, and a quiet line says where to measure. */
.cta-phone { display: none; }
@media (max-width: 767px) { .cta-mac { display: none; } .cta-phone { display: block; } }
/* the phone-only line under the button (a phone cannot run the Mac app) is the first item of the trust row, not a paragraph of its own: one group of small text, so the first screen at 390 holds the headline, the sentence, the button, that row and the film (the five visual groups the site check allows) */
.micro li[data-phone] { display: none; }
.micro li[data-phone] + li::before { content: none; }
@media (max-width: 767px) { .micro li[data-phone] { display: block; flex-basis: 100%; text-align: center; margin-bottom: var(--sp16); } }
/* the hero's download size and requirement lead its trust row on a Mac-width screen; a phone gets See a sample report, so it is hidden there and the next item drops its dot */
@media (max-width: 767px) { .micro [data-dl-meta] { display: none; } .micro [data-dl-meta] + li::before { content: none; } }
/* "After you download" is for a screen that can download: a phone gets See a sample report instead */
@media (max-width: 767px) { .micro [data-dl-after] { display: none; } }
/* not on a Mac (os.js sets html[data-os="other"] in <head>, before the first paint, so nothing moves): one honest line, "SizeMyLaptop runs on
   Macs", with a way to send the link to a Mac. It replaces the phone line; the Mac download stays where it is. */
[data-os-note] { display: none; }
.micro li[data-os-note] + li::before { content: none; }
html[data-os="other"] .micro li[data-os-note] { display: block; flex-basis: 100%; text-align: center; margin-bottom: var(--sp16); }
html[data-os="other"] .micro li[data-phone], html[data-os="other"] p.caption.cta-phone { display: none; }
html[data-os="other"] p[data-os-note] { display: block; }

/* /install/#after: what happens once the zip lands (assemble.py app-after) */
.install-grid { display: block; }
.install-film { display: none; }
@media (min-width: 1200px) {
  .install-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp64); align-items: start; }
  .install-film { display: block; margin-top: var(--sp32); position: sticky; top: var(--sp96); }
}
.install-main .crumbs { margin-bottom: var(--sp8); }
.page-hero .crumbs { margin: calc(-1 * var(--sp32)) 0 var(--sp8); }   /* the trail sits in the hero's top padding, so the page keeps the height it had before the trail was added */
.install-after { margin-top: var(--sp48); }
.install-after h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.after-steps { margin-top: var(--sp16); padding-left: var(--sp24); list-style: decimal; max-width: 34rem; }
.after-steps li { margin-top: var(--sp8); }
/* shown on a phone too (2026-10-30): the page already shows a phone the Mac's Terminal command, and these steps are what that reader does on the
   Mac later; hidden, they were a third of the page's text out of tools/check-design.mjs's sight */
/* (kept out of site.css: site.css is hashed into the film digest, and this rule draws no film frame) */

/* the site's sample report ends with the download (site/tools/link_sample_report.py links this file there); a phone cannot open the zip, so it gets
   the way back instead. Kept out of report.css: report.css is inlined into the report sheet the films are drawn from. */
.rp-cta h2 { margin-bottom: var(--sp8); }
.rp-cta p { max-width: 72ch; }
.rp-cta p + p { margin-top: var(--sp16); }
.rp-cta-meta { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.rp-cta-phone { display: none; }
@media (max-width: 767px) { .rp-cta-mac { display: none; } .rp-cta-phone { display: block; } .rp-sec.rp-cta { margin-top: var(--sp16); } }

/* a label above a table or a diagram, one step under the page's own headline (it names what follows; the H1 makes the claim) */
.sub-h { font-family: var(--font); font-weight: var(--w-semi); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); margin-bottom: var(--sp24); }

/* the visitor's own Apple store under the worldwide price (prices.js fills it in; hidden until it knows the country) and a heading that carries a figure and a place */
.local-price { margin-top: var(--sp16); color: var(--ink); font-weight: var(--w-semi); }
.local-price[hidden] { display: none; }
.sec-title.sec-wide { max-width: 28ch; }
/* the menu-bar app well holds ONE frame (Report ready), no loop (motion.js skips it): the poster is set 1,22 times larger with the menu bar cut off, so the menu text reads at 12 px or more at a phone width; the menu keeps its own border at the bottom, never cut through a row. SVG geometry properties (the svg's edge crops it), not a transform: F5, F6 and F20 read a transform on a shown element as hidden or moved. */
.st-well image { x: -77px; y: -25.5px; width: 417.24px; height: 556.32px; }   /* 2026-10-30: the native menu hangs left-aligned under its status item, scene x 95 to 337: x -77 puts its right edge 8 px inside the well */

/* the evidence picture's day ticks are Day 1, 4, 7, 10, 14; on a phone "Day 1" and "4" stand 8 px apart, so the 4 (the 6th text in the picture) is dropped there */
@media (max-width: 767px) { .ev-well text:nth-of-type(6) { display: none; } }
