/* FlawlessFormat: light, quiet, one accent (blue). Geist for the interface, Times for the document pages. */

/* Latin subsets (pyftsubset); the logo font holds only the letter F */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2248, U+2713; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: block; src: url("fonts/instrument-serif-f.woff2") format("woff2"); unicode-range: U+0046; }
/* Arial scaled to Geist's width and line metrics: the text keeps its line breaks when Geist swaps in (no layout shift) */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 105.9%; ascent-override: 86.9%; descent-override: 20.8%; line-gap-override: 9.4%; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2248, U+2713; }

:root {
  --bg: #fafafa;
  --surface: #fff;
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #6e6e6e;
  --line: #e8e8e8;
  --line-2: #dedede;
  --control-line: #8f8f8f; /* resting edge of fields and option cards: 3.2:1 on white */
  --guide: #e4e4e4;
  --blue: #296ff0;
  --blue-ink: #1d5bd0;
  --blue-soft: #eef4ff;
  --red: #e5484d;
  --red-strong: #cd2b31; /* filled badges with white digits: 5.27:1 */
  --red-soft: #fff0f0;
  --green: #1f9d55;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px -4px rgba(0, 0, 0, .06);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px -12px rgba(0, 0, 0, .14), 0 32px 64px -32px rgba(0, 0, 0, .12);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --doc: "Times New Roman", Times, "Liberation Serif", serif;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans);
  letter-spacing: -.011em; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
}
::selection { background: rgba(41, 111, 240, .18); }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- frame: the dashed guides of a design canvas ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.guides::before, .guides::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed var(--guide);
}
.guides::before { left: max(12px, calc(50% - var(--wrap) / 2 - 16px)); }
.guides::after { right: max(12px, calc(50% - var(--wrap) / 2 - 16px)); }
@media (max-width: 767px) { .guides { display: none; } }
.page { position: relative; }
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; width: 100%; }
@media print { .page { display: block; min-height: 0; } }

.band { position: relative; z-index: 1; border-top: 1px dashed var(--guide); }
.band > .cross { position: absolute; top: -5px; width: 9px; height: 9px; pointer-events: none; }
.band > .cross::before, .band > .cross::after { content: ""; position: absolute; background: #c9c9c9; }
.band > .cross::before { left: 4px; top: 0; width: 1px; height: 9px; }
.band > .cross::after { top: 4px; left: 0; width: 9px; height: 1px; }
.band > .cross.l { left: calc(max(12px, calc(50% - var(--wrap) / 2 - 16px)) - 4px); }
.band > .cross.r { right: calc(max(12px, calc(50% - var(--wrap) / 2 - 16px)) - 4px); }
@media (max-width: 767px) { .band > .cross { display: none; } }

.section { padding-block: 96px; }
@media (min-width: 900px) { .section { padding-block: 128px; } }

/* ---------- type ---------- */
/* section eyebrow: plain small text, no numbered pill */
.label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 18px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--blue-ink);
}
.h1 { font-size: clamp(38px, 3.9vw, 52px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }
.head { max-width: 720px; margin-bottom: 56px; }
.head .label { margin-bottom: 20px; }
.head .lead { margin-top: 18px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }
@media (min-width: 900px) { .head { margin-bottom: 72px; } }

/* ---------- buttons (the layered blue button of the reference) ---------- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; white-space: nowrap;
  font-weight: 500; font-size: 15px; letter-spacing: -.015em;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, filter 200ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary {
  color: #fff; background-color: var(--blue);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .2), inset 0 0 6px 2px rgba(255, 255, 255, .24), 0 0 0 1px var(--blue);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
/* the 1px inside stroke, white 40% fading down (the "Linear 40%, Inside 1" of the reference) */
.btn-primary::before, .knob::before, .logo-mark::before, .done-state .ok::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.btn-secondary {
  color: var(--ink); background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06), inset 0 -1px 0 rgba(0, 0, 0, .04);
}
.btn-ghost { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.06); box-shadow: 0 5px 12px -2px rgba(41, 111, 240, .45), 0 3px 6px rgba(0, 0, 0, .14), inset 0 0 6px 2px rgba(255, 255, 255, .24), 0 0 0 1px var(--blue); }
  .btn-secondary:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08), inset 0 -1px 0 rgba(0, 0, 0, .04); }
  .btn-ghost:hover { color: var(--ink); }
}
.btn .arrow { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arrow { transform: translateX(2px); } }
.btn[disabled] { opacity: .6; cursor: default; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(250, 250, 250, .72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 250, .86); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.03em; font-size: 17px; }
.logo-mark {
  position: relative; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff;
  font: italic 400 20px/1 "Instrument Serif", var(--doc); letter-spacing: 0; padding: 2px 1px 0 0; -webkit-text-stroke: .35px #fff;
  background: var(--blue); box-shadow: 0 1px 2px rgba(0, 0, 0, .2), inset 0 0 4px 1px rgba(255, 255, 255, .24), 0 0 0 1px var(--blue);
}
.nav-links { display: none; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); } }
.nav-cta { margin-left: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }
/* below 900px the section links become a second, swipeable row */
@media (max-width: 899px) {
  html { scroll-padding-top: 120px; }
  .nav { height: auto; }
  .nav .wrap { height: auto; flex-wrap: wrap; row-gap: 0; column-gap: 16px; padding-top: 10px; }
  .nav .logo, .nav .nav-cta { min-height: 44px; }
  .nav-links {
    display: flex; order: 3; flex: 0 0 auto; width: calc(100% + var(--gutter) * 2);
    margin: 2px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .nav-links a:first-child { margin-left: -10px; }
  /* jump links: land the section label just under the two-row header, not 100px below it */
  .section { scroll-margin-top: -96px; }
}
.nav-links .nl-short { display: none; }
/* phones: shorter label and tighter links, so all five fit from 360px up */
@media (max-width: 599px) {
  .nav-links .nl-long { display: none; }
  .nav-links .nl-short { display: inline; }
  .nav-links a { padding: 8px 7px; font-size: 13.5px; }
  .nav-links a:first-child { margin-left: -7px; }
}
/* below 360px (400% zoom) the row still scrolls: fade the right edge so it reads as scrollable */
@media (max-width: 359px) {
  .nav-links { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
/* 320px (400% zoom): keep the header inside the screen */
@media (max-width: 374px) {
  .nav .wrap { column-gap: 12px; }
  .nav-cta, header .btn-sm { --h: 34px; padding: 0 10px; font-size: 13px; }
  .logo { font-size: 16px; gap: 8px; }
}
@media (max-width: 359px) { .xs-hide { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 88px 0 120px; } }
.hero > .dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .04);
  font-size: 13px; color: var(--ink-2); margin-bottom: 28px;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(41, 111, 240, .15); }
.hero .lead { margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.assure { display: grid; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }   /* a stacked list at every width, so it never wraps 2 + 1 */
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line-2); max-width: 520px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.byline p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.byline b { color: var(--ink); font-weight: 500; }
.notice { margin-top: -4px; }
.notice a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tick { width: 16px; height: 16px; flex: none; color: var(--blue); }

/* entrance: a short stagger, once, on load */
@media (prefers-reduced-motion: no-preference) {
  .enter { opacity: 0; transform: translateY(10px); filter: blur(4px); animation: enter 700ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
  @keyframes enter { to { opacity: 1; transform: none; filter: blur(0); } }
  /* the headline and the lead paint on the first frame (they are the largest content); they only rise */
  .h1.enter, .lead.enter { opacity: 1; filter: none; animation-name: enter-rise; }
  @keyframes enter-rise { from { transform: translateY(10px); } to { transform: none; } }
}

/* ---------- the document window in the hero ---------- */
.win {
  position: relative; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), var(--shadow-float);
  overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: #fcfcfc; }
.ribbon { display: none; gap: 14px; font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.ribbon b { color: var(--ink); font-weight: 500; }
@media (min-width: 1200px) { .ribbon { display: flex; } }
.win-name::before { content: ""; display: inline-block; width: 12px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 2px; background: #2b5797; box-shadow: inset -4px 0 0 rgba(255, 255, 255, .25); }
.win-name { font: 500 12.5px/1 var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-left: auto; padding: 3px; border-radius: 10px;
  background: #f1f1f1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.seg button { position: relative; z-index: 1; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color 200ms ease; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 7px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04);
  transform: translateX(calc(var(--at, 0) * 100%)); transition: transform 320ms var(--ease-out);
}
.win-body { display: grid; grid-template-columns: 1fr; background: #f4f4f4; }
@media (min-width: 640px) { .win-body { grid-template-columns: 150px 1fr; } }
.styles-pane { display: none; padding: 16px 14px; border-right: 1px solid var(--line); background: #fbfbfb; font-size: 12px; }
@media (min-width: 640px) { .styles-pane { display: block; } }
.styles-pane h4 { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 12px; }
.styles-pane .stack { position: relative; }
.styles-pane ul { display: grid; gap: 4px; transition: opacity 360ms ease, filter 360ms ease, transform 360ms var(--ease-out); }
.styles-pane ul + ul { position: absolute; inset: 0 0 auto 0; }
.styles-pane li { display: block; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.styles-pane .bad li { background: var(--red-soft); color: #9b2c2f; }
.styles-pane .good li { background: var(--blue-soft); color: var(--blue-ink); }
.styles-pane .count { margin-top: 14px; font: 500 10.5px/1.4 var(--mono); color: var(--ink-3); white-space: nowrap; }
.styles-pane .count b { font-weight: 600; }
.win[data-state="before"] .styles-pane .good, .win[data-state="after"] .styles-pane .bad { opacity: 0; filter: blur(3px); transform: translateY(4px); pointer-events: none; }
.win-stage { position: relative; padding: 20px 20px 0; overflow: hidden; }
@media (max-width: 959px) { .win-stage { max-height: 560px; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); } }
@media (min-width: 640px) { .win-stage { padding: 24px 28px 0; } }

/* ---------- document pages (sized from their own width) ---------- */
.sheet { position: relative; container-type: inline-size; }
.pg {
  position: relative; aspect-ratio: 210 / 250; background: #fff; color: #111; font-family: var(--doc);
  font-size: 2.55cqw; line-height: 1.5; letter-spacing: 0; padding: 9cqw 10cqw 8cqw;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 8px -2px rgba(0, 0, 0, .08); overflow: hidden;
}
.pg p { margin: 0 0 .65em; text-align: justify; hyphens: auto; }
.pg .ind { text-indent: 2.2em; }
.pg .h2 { font: 700 1.12em/1.3 var(--doc); letter-spacing: 0; margin: 0 0 .7em; }
.pg .h3 { font: 700 1em/1.3 var(--doc); font-style: italic; letter-spacing: 0; margin: 1em 0 .5em; }
.pg .run { display: flex; justify-content: space-between; font-size: .78em; color: #666; border-bottom: .5px solid #bbb; padding-bottom: .4em; margin-bottom: 2.2em; font-variant: small-caps; letter-spacing: .04em; }
.pg .folio { position: absolute; left: 0; right: 0; bottom: 4.2cqw; text-align: center; font-size: .88em; }
.pg figure { margin: 1.1em 0 1em; }
.pg figcaption { font-size: .88em; text-align: center; margin-top: .6em; }
.pg figcaption b { font-weight: 700; border-radius: 2px; transition: background-color 400ms ease, box-shadow 400ms ease; }
.win[data-state="after"] .pg-after figcaption b { background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue-soft), 0 1.5px 0 2px rgba(41, 111, 240, .5); transition-delay: 400ms; }
.flow { display: flex; align-items: center; justify-content: center; gap: 2.2%; }
.flow span { flex: 1; border: .5px solid #333; padding: .45em .2em; text-align: center; font-size: .78em; line-height: 1.2; }
.flow i { flex: none; width: 2.6%; height: .5px; background: #333; position: relative; }
.flow i::after { content: ""; position: absolute; right: -1px; top: -.22em; border: .22em solid transparent; border-left: .32em solid #333; border-right: 0; }

/* layers: the "before" page sits on top of the "after" page and crossfades with a little blur */
.layers { position: relative; }
.layers > .pg + .pg { position: absolute; inset: 0; }
.layers > .pg { transition: opacity 520ms ease, filter 520ms ease; }
.win[data-state="after"] .pg-before, .win[data-state="before"] .pg-after { opacity: 0; filter: blur(3px); }

/* the "before" page: what arrives */
.pg-before .x-h2 { font: 700 1.2em/1.3 Arial, Helvetica, sans-serif; text-decoration: underline; margin: 0 0 .3em .9em; }
.pg-before .x-pasted { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: .95em; line-height: 2.05; text-align: left; }
.pg-before .x-left { text-align: left; }
.pg-before figure { width: 78%; margin-left: 0; }
.pg-before .x-cap { font-style: italic; text-align: left; font-size: .9em; margin: 0 0 .4em; }
.pg-before .x-h3 { font: 700 1.05em/1.3 Arial, Helvetica, sans-serif; position: absolute; left: 10cqw; bottom: 7cqw; margin: 0; }
.pg-before .x-folio { position: absolute; right: 7cqw; top: 4cqw; font-size: .85em; }

/* notes on the pages: red marks what is wrong, blue labels what was set */
.notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute; display: inline-flex; align-items: center; gap: .5em; padding: .4em .7em .4em .55em; border-radius: .6em; white-space: nowrap;
  font: 500 clamp(9px, 2.5cqw, 12px)/1 var(--mono); letter-spacing: 0; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 12px -4px rgba(0, 0, 0, .16);
  opacity: 0; transform: translateY(4px) scale(.97); transition: opacity 260ms ease, transform 360ms var(--ease-out);
}
.note i { width: .55em; height: .55em; border-radius: 50%; flex: none; }
.note.fix { color: var(--blue-ink); } .note.fix i { background: var(--blue); }
.note.bad { color: #b4292e; } .note.bad i { background: var(--red); }
.win[data-state="after"] .note.fix, .win[data-state="before"] .note.bad { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 90ms + 220ms); }

.win-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fcfcfc; font: 500 11.5px/1.2 var(--mono); color: var(--ink-3); }
.win-foot .state { display: inline-flex; align-items: center; gap: 8px; }
.win-foot .state i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); transition: background-color 300ms ease; }
.win[data-state="after"] .win-foot .state i { background: var(--green); }
.progress { flex: 1; max-width: 120px; height: 3px; border-radius: 3px; background: #ececec; overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: #c8c8c8; transform-origin: left; transform: scaleX(0); }
.win.playing .progress i { animation: tick var(--cycle, 4800ms) linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }

/* ---------- section: before / after ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 960px) { .demo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } }
/* the list starts level with the top of the page panel, not with the tab bar (tab bar 42px + its 20px margin, minus the first item's 4px) */
@media (min-width: 960px) and (scripting: enabled) { #before-after .demo > .rv + .rv { padding-top: 58px; } }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f0f0f0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); position: relative; width: max-content; max-width: 100%; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 200ms ease; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); }

.compare {
  --pos: 50%;
  position: relative; border-radius: 16px; padding: 52px 24px 24px; background: #f2f2f2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  touch-action: pan-y; user-select: none;
}
@media (min-width: 640px) { .compare { padding: 56px 48px 40px; } }
/* two columns on a narrow desktop: thinner side padding so the page, and its type, stay large enough to read */
@media (min-width: 960px) and (max-width: 1199px) { .compare { padding: 52px 20px 28px; } }
.compare .sheet { max-width: 520px; margin-inline: auto; }
.compare .pg { aspect-ratio: 210 / 230; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
/* moved with transform, not left, so dragging repaints without a layout on every pointer move */
.compare .divider { position: absolute; top: var(--st, 52px); height: var(--sh, 70%); left: var(--sl, 50%); transform: translateX(calc(var(--sw, 0px) * var(--p, .5))); width: 0; pointer-events: none; }
#p-tbl .pg, #p-ref .pg { aspect-ratio: 210 / 180; }
.compare .divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--blue); border-radius: 2px; }
.compare .knob {
  position: absolute; top: 50%; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .2), inset 0 0 6px 2px rgba(255, 255, 255, .24), 0 0 0 1px var(--blue-ink), 0 0 0 5px rgba(41, 111, 240, .14);
  transition: transform 160ms var(--ease-out);
}
.compare.dragging .knob { transform: scale(.94); }
.compare .knob svg { width: 18px; height: 18px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input[type="range"]:focus-visible ~ .divider .knob { outline: 2px solid var(--ink); outline-offset: 3px; }
.tag { position: absolute; top: -34px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); z-index: 2; pointer-events: none; }
.tag.b { left: 0; color: #b4292e; } .tag.a { right: 0; color: var(--blue-ink); }
.pg .mk { position: relative; }
.mark {
  position: absolute; left: -16px; top: .75em; width: 18px; height: 18px; margin: -9px 0 0 -9px; text-indent: 0; border-radius: 50%; display: grid; place-items: center;
  font: 600 10px/1 var(--mono); color: #fff; background: var(--red-strong); box-shadow: 0 0 0 3px rgba(205, 43, 49, .18); letter-spacing: 0;
}
.panel[hidden] { display: none; }
.panel .sheet { animation: swap 220ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } }

.fixes { display: grid; gap: 4px; counter-reset: fix; }
.fixes li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px dashed var(--line-2); }
.fixes li:first-child { border-top: 0; padding-top: 4px; }
.fixes .k { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: #c4262c; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .2); }
.fixes b { display: block; font-weight: 600; letter-spacing: -.015em; margin-bottom: 2px; }
.fixes p { color: var(--ink-2); font-size: 15px; }
.fixes-list[hidden] { display: none; }
.fixes-list { animation: swap 220ms var(--ease-out); }

/* without JavaScript the tabs cannot switch: show every example, each followed by its own list, and drop the tab bar */
@media (scripting: none) {
  #before-after .tabs { display: none; }
  #before-after .demo { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
  /* no slider without JavaScript: the full Before page, then the full After page under it, each with its own tag */
  #before-after .compare .divider,
  #before-after .compare input[type="range"],
  #before-after .compare .tag.a { display: none; }
  #before-after .compare { touch-action: auto; user-select: auto; }
  #before-after .compare .after { position: relative; inset: auto; clip-path: none; margin-top: 52px; }
  #before-after .compare .after::before { content: "After"; position: absolute; top: -34px; left: 0; z-index: 2; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); color: var(--blue-ink); }
  #before-after .js-only { display: none; }
  #before-after .demo > .rv { display: contents; }
  #before-after .panel[hidden] { display: block; }
  #before-after .fixes-list[hidden] { display: grid; }
  #before-after .panel::before { display: block; margin: 24px 0 12px; font-weight: 600; letter-spacing: -.015em; }
  #p-toc::before { content: "Contents"; margin-top: 0 !important; }
  #p-tbl::before { content: "Tables"; }
  #p-fig::before { content: "Figures"; }
  #p-ref::before { content: "References"; }
  #p-toc { order: 1; } #before-after [data-for="p-toc"] { order: 2; }
  #p-tbl { order: 3; } #before-after [data-for="p-tbl"] { order: 4; }
  #p-fig { order: 5; } #before-after [data-for="p-fig"] { order: 6; }
  #p-ref { order: 7; } #before-after [data-for="p-ref"] { order: 8; }
}

/* toc, table and reference pages */
.pg.toc { font-size: 2.5cqw; }
.toc .t { font: 700 1.2em/1.2 var(--doc); text-align: center; margin-bottom: 1.4em; letter-spacing: 0; }
.toc .r { display: flex; align-items: baseline; gap: .4em; margin: .28em 0; }
.toc .r .lead-dots { flex: 1; border-bottom: .14em dotted #555; transform: translateY(-.3em); min-width: 1em; }
.toc .r .p { font-variant-numeric: tabular-nums; min-width: 1.6em; text-align: right; }
.toc .r.ch { font-weight: 700; margin-top: .7em; }
.toc .r.s1 { padding-left: 1.6em; }
.toc .r.s2 { padding-left: 3.2em; }
.toc-bad .t { font: 700 1.05em/1.2 Arial, Helvetica, sans-serif; text-align: left; text-decoration: underline; }
.toc-bad .r { display: block; white-space: nowrap; overflow: hidden; }
.toc-bad .ch { font-weight: 700; margin-top: .6em; }

.tbl-cap { font-size: .95em; margin-bottom: .5em; }
.tbl-cap b { display: block; font-weight: 700; }
.tbl-cap i { font-style: italic; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86em; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: .38em .35em; text-align: right; font-weight: 400; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead tr { border-top: .14em solid #111; border-bottom: .07em solid #111; }
.tbl tbody tr:last-child { border-bottom: .14em solid #111; }
.tbl-note { font-size: .78em; margin-top: .6em; text-align: left; }
.tbl-bad { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: .82em; }
.tbl-bad th, .tbl-bad td { border: .07em solid #777; text-align: center; padding: .3em; }
.tbl-bad thead th { background: #d9d9d9; font-weight: 700; }
.tbl-bad td:first-child, .tbl-bad th:first-child { text-align: left; }

.refs .t { font: 700 1.1em/1.2 var(--doc); text-align: center; margin-bottom: 1.1em; letter-spacing: 0; }
.refs p { text-align: left; padding-left: 2.2em; text-indent: -2.2em; margin: 0 0 .7em; font-size: .94em; line-height: 1.45; hyphens: none; overflow-wrap: anywhere; }
.refs-bad p { padding-left: 0; text-indent: 0; }
.refs-bad p:nth-child(3) { padding-left: 2em; text-indent: -2em; }
.refs-bad p:nth-child(4) { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; line-height: 1.9; }

/* ---------- section: what's included ---------- */
.inc { display: grid; gap: 16px; }
@media (min-width: 720px) { .inc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .inc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.inc .card { padding: 24px; }
.inc .card .h3 { margin-bottom: 14px; }
/* a thin rule under each card title: a print detail rather than an app icon */
.inc .card .h3, .promise .h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checks { display: grid; gap: 9px; }
.checks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.checks li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
.styles-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; align-items: center; }
.styles-line .lbl { font-size: 14px; color: var(--ink-3); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: 500 13px/1 var(--mono); color: var(--ink-2); letter-spacing: -.01em; }
.not-do { margin-top: 16px; display: grid; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--radius); background: transparent; border: 1px dashed var(--line-2); }
@media (min-width: 800px) { .not-do { grid-template-columns: auto 1fr; gap: 24px; } }
.not-do .h3 { font-size: 16px; }
.not-do p { color: var(--ink-2); font-size: 15px; max-width: 68ch; }
@media (max-width: 719px) {
  .inc { gap: 12px; }
  .inc .card { padding: 20px; }
  .checks { gap: 7px; }
  .promise { gap: 12px; }
  .promise .card { padding: 22px; }
}

/* ---------- section: process ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { padding: 24px; display: flex; flex-direction: column; }
.step .num { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font: 500 12px/1 var(--mono); color: var(--ink-3); }
.step .num b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; color: var(--ink); background: #f4f4f4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.step .h3 { margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* ---------- section: pricing + estimator ---------- */
.price-wrap { display: grid; gap: 16px; }
@media (min-width: 960px) { .price-wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.est { padding: 28px; display: grid; gap: 28px; }
/* phones and tablets: the result card sits far below the options, so a small sticky pill shows the live price */
.est-live {
  position: sticky; bottom: 12px; z-index: 2; justify-self: center; margin-top: -8px;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 18px -6px rgba(0, 0, 0, .25);
  font-size: 13px; color: var(--ink-2);
}
.est-live b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px; }
@media (min-width: 960px) { .est-live { display: none; } }
.cookies.show ~ .page .est-live { bottom: 132px; }   /* sit above the cookie bar while it shows */
@media (max-height: 420px) { .cookies.show ~ .page .est-live { bottom: 12px; } }   /* the bar is not fixed there */
@media (min-width: 640px) { .est { padding: 32px; } }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.field-label output, .field-label .hint { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; height: 100%; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface); box-shadow: 0 0 0 1px var(--control-line); font-size: 14px; font-weight: 500; line-height: 1.25;
  transition: box-shadow 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.opt span small { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.opt input:checked + span { background: var(--blue-soft); box-shadow: 0 0 0 1.5px var(--blue), 0 2px 6px -2px rgba(41, 111, 240, .3); color: var(--blue-ink); }
.opt input:checked + span small { color: var(--blue-ink); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt span:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .opt input:not(:checked) + span:hover { box-shadow: 0 0 0 1px #6e6e6e, 0 1px 3px rgba(0, 0, 0, .06); } }
.options.compact span { min-height: 40px; }
@media (max-width: 520px) {
  .est .options { grid-template-columns: 1fr; }
  .est .opt span { flex-direction: row; justify-content: space-between; align-items: center; min-height: 44px; }
}

.range { position: relative; height: 28px; display: flex; align-items: center; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--fill, 30%), #e6e6e6 var(--fill, 30%)); }
.range input::-moz-range-track { height: 6px; border-radius: 6px; background: #e6e6e6; }
.range input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .16); transition: transform 160ms var(--ease-out); }
.range input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .16); }
.range input:active::-webkit-slider-thumb { transform: scale(1.08); }
.pages-row { display: flex; align-items: center; gap: 14px; }
.pages-row .range { flex: 1; }
.num-input { width: 84px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--control-line); text-align: right; font-variant-numeric: tabular-nums; }
.num-input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(41, 111, 240, .14); }

.result { padding: 28px; display: flex; flex-direction: column; gap: 22px; background: #fff; }
@media (min-width: 640px) { .result { padding: 32px; } }
.result .label { align-self: flex-start; margin-bottom: -6px; }
.amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: clamp(44px, 6vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.amount small { font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-3); }
.result .per { font-size: 14px; color: var(--ink-2); margin-top: -10px; }
.meta { display: grid; gap: 0; border-top: 1px dashed var(--line-2); }
.meta div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.meta dt { color: var(--ink-3); } .meta dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.amount small[hidden] { display: none; }
.result .fine { font-size: 13px; color: var(--ink-3); line-height: 1.5; max-width: 64ch; }
.result .fine + .fine { margin-top: -14px; }
.result .btn { width: 100%; margin-top: auto; }

.pay-line { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.pay-line span { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 960px) { .pay-line { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 24px; } }

/* ---------- section: about ---------- */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 340px 1fr; gap: 72px; } }
/* on one column the text comes first, so the section label leads like every other section */
@media (max-width: 899px) { .about .portrait { order: 2; } }
.about .body p { max-width: 62ch; }
.portrait { position: relative; max-width: 340px; }
.portrait .frame { padding: 8px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 15px; background: #ddd; }
.portrait .badge { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 12px -4px rgba(0, 0, 0, .2); font-size: 13px; font-weight: 500; }
.about .h2 { margin: 18px 0 22px; }
.about .body p + p { margin-top: 14px; }
.about .about-more { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .about .about-more:hover { text-decoration-color: currentColor; } }
/* flex, not grid: a fact left alone on a row grows to full width, rule included */
.facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px; border-top: 1px dashed var(--line-2); }
.facts div { flex: 1 1 150px; padding: 16px 12px 16px 0; border-bottom: 1px dashed var(--line-2); }
.facts dt { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 8px; }
.facts dd { font-weight: 500; letter-spacing: -.015em; }
.about .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- section: guarantees ---------- */
.promise { display: grid; gap: 16px; }
@media (min-width: 720px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promise .card { padding: 28px; }
.promise .h3 { margin-bottom: 12px; font-size: 19px; }
.promise p { color: var(--ink-2); }

/* ---------- section: FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 340px 1fr; gap: 72px; } }
.faq-grid .head { margin-bottom: 0; }
@media (min-width: 960px) { .faq-grid .head, .quote-grid > .rv:first-child { position: sticky; top: 96px; align-self: start; } }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { margin: 0; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; text-align: left; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.qa .pm { position: relative; width: 14px; height: 14px; flex: none; color: var(--ink-3); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .qa button:hover .pm { color: var(--ink); } }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease-out); }
.qa .pm::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] .pm::after { transform: rotate(0deg); }
/* answers are open without JavaScript; ff.js adds .js and the collapsed state (hidden from screen readers too) */
.qa .a { display: grid; grid-template-rows: 1fr; }
.qa .a > div { overflow: hidden; }
.qa .a p { padding: 0 40px 22px 0; color: var(--ink-2); }
.qa .a p + p { margin-top: -10px; }
.js .qa .a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 320ms var(--ease-out), visibility 0s linear 320ms; }
.js .qa .a p { opacity: 0; transform: translateY(-4px); transition: opacity 240ms ease, transform 320ms var(--ease-out); }
.js .qa.open .a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 320ms var(--ease-out), visibility 0s; }
.js .qa.open .a p { opacity: 1; transform: none; }
html:not(.js) .qa .pm { display: none; }
html:not(.js) .qa button { cursor: default; }

/* ---------- section: quote form ---------- */
.quote-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1040px) { .quote-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } }
.next { display: grid; gap: 0; margin-top: 36px; border-top: 1px dashed var(--line-2); }
.next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.next li b { color: var(--ink); font-weight: 500; }
.next .k { font: 500 12px/1.9 var(--mono); color: var(--blue-ink); }
.contact-line { margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.contact-line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
/* one column: the form follows the heading straight away; the three steps and the email line move below it */
@media (max-width: 1039px) {
  .quote-grid { gap: 0; }
  .quote-grid > .rv:first-child { display: contents; }
  .quote-grid .form-card { order: 1; margin-top: 28px; }
  .quote-grid .next, .quote-grid .contact-line { order: 2; }
}

.form-card { padding: 8px; border-radius: 20px; background: #f1f1f1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.form-inner { border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 8px -2px rgba(0, 0, 0, .06); padding: 24px; }
@media (min-width: 640px) { .form-inner { padding: 32px; } }
.form-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.form-steps .s { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; transition: color 200ms ease; }
.form-steps .s b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: #f2f2f2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.form-steps .s.on { color: var(--ink); }
.form-steps .s.on b { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px var(--blue-ink); }
.form-steps .s.done b { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .25); }
.form-steps .bar { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.form-steps .bar i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.form-steps.at-2 .bar i { transform: scaleX(1); }

.fstep { display: grid; gap: 22px; }
.fstep[hidden] { display: none; }
/* without JavaScript the form can't send: the <noscript> note gives the email address instead of controls that do nothing */
@media (scripting: none) { #quote-form .fstep, #quote-form .form-steps { display: none; } }
.fstep.in { animation: stepin 220ms var(--ease-out); }
@keyframes stepin { from { opacity: 0; transform: translateX(8px); } }
.fstep.back { animation: stepback 220ms var(--ease-out); }
@keyframes stepback { from { opacity: 0; transform: translateX(-8px); } }
.row2 { display: grid; gap: 22px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
.f label.l, .f .l { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.f .opt-tag { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.f .req { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--control-line), 0 1px 2px rgba(0, 0, 0, .03); transition: box-shadow 160ms ease; font-size: 15px;
}
.textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #767676; }
.input:focus, .textarea:focus, .select:focus { outline: none; box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(41, 111, 240, .14); }
.f.invalid .input, .f.invalid .textarea { box-shadow: 0 0 0 1.5px var(--red), 0 0 0 4px rgba(229, 72, 77, .12); }
.err { display: none; margin-top: 7px; font-size: 13px; color: #c4262c; }
.f.invalid .err { display: block; }
/* a valid field inside an invalid one (the link box inside the files field) keeps its normal look */
.f.invalid .f:not(.invalid) .input, .f.invalid .f:not(.invalid) .textarea { box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .03); }
.f.invalid .f:not(.invalid) .input:focus { box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(41, 111, 240, .14); }
.f.invalid .f:not(.invalid) .err { display: none; }
.help { margin-top: 7px; font-size: 13px; color: var(--ink-3); }
input[type="date"].input { appearance: none; -webkit-appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .opt span { min-height: 36px; padding: 0 12px; flex-direction: row; align-items: center; font-size: 13.5px; border-radius: 9px; }

.drop {
  position: relative; display: grid; place-items: center; gap: 6px; padding: 28px 16px; border-radius: 12px; text-align: center; cursor: pointer;
  border: 1.5px dashed #d2d2d2; background: #fcfcfc; transition: border-color 160ms ease, background-color 160ms ease, transform 200ms var(--ease-out);
}
.drop.over { border-color: var(--blue); background: var(--blue-soft); transform: scale(1.01); }
@media (hover: hover) and (pointer: fine) { .drop:hover { border-color: #b9b9b9; } }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .up { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(0, 0, 0, .1); margin-bottom: 6px; color: var(--ink-2); }
.drop .up svg { width: 18px; height: 18px; }
.drop strong { font-weight: 500; font-size: 15px; }
.drop strong u { color: var(--blue-ink); text-decoration: none; }
.drop:focus-within { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 4px rgba(41, 111, 240, .14); }
.drop small { font-size: 12.5px; color: var(--ink-3); max-width: 44ch; }
.files { display: grid; gap: 8px; margin-top: 10px; }
.file { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); animation: filein 300ms var(--ease-out); }
@keyframes filein { from { opacity: 0; transform: translateY(-4px); } }
.file .ext { width: 32px; height: 36px; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 5px; font: 600 8.5px/1 var(--mono); text-transform: uppercase; color: var(--ink-2); background: #f4f4f4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.file .ext.docx, .file .ext.doc, .file .ext.dotx { color: #2b5797; background: #eef3fb; }
.file .ext.pdf { color: #c4262c; background: #fdf0f0; }
.file .ext.tex, .file .ext.zip, .file .ext.bib { color: #1f7a4d; background: #eef8f2; }
.file .nm { min-width: 0; }
.file .nm b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .nm small { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.file .x { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .file .x:hover { background: #f2f2f2; color: var(--ink); } }
.file .x svg { width: 14px; height: 14px; }
.file .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: #efefef; overflow: hidden; display: none; }
.file .bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform 240ms linear; }
.sending .file .bar { display: block; }
.sending .file .x { visibility: hidden; }
.file.done .bar i { background: var(--green); }
.locked [data-err="files"] { display: block; color: var(--ink-2); }
.locked .file .x { visibility: hidden; }
.locked .drop { opacity: .5; pointer-events: none; }
.link-toggle { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-toggle[hidden] { display: none; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #cfcfcf; display: grid; place-items: center; cursor: pointer; transition: background-color 150ms ease, box-shadow 150ms ease; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(.6); opacity: 0; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.check input:checked { background: var(--blue); box-shadow: 0 0 0 1px var(--blue-ink); }
.check input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.f.invalid .check input { box-shadow: 0 0 0 1.5px var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.actions .btn-primary { margin-left: auto; }
.reassure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.form-alert { display: none; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .2); color: #9b2c2f; font-size: 14px; }
.form-alert.show { display: block; animation: filein 300ms var(--ease-out); }
.form-alert a { text-decoration: underline; }
.total { margin-top: 2px; }
.total .bar { height: 6px; border-radius: 6px; background: #efefef; overflow: hidden; }
.total .bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform 240ms linear; }
.total p { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done-state { text-align: center; padding: 24px 8px 12px; }
.done-state[hidden] { display: none; }
.done-state .ok { position: relative; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, .2), inset 0 0 6px 2px rgba(255, 255, 255, .24), 0 0 0 1px var(--blue-ink), 0 0 0 8px rgba(41, 111, 240, .1); }
.done-state .ok svg { width: 26px; height: 26px; }
.done-state .ok path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 500ms 250ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-state.in { animation: stepin 420ms var(--ease-out); }
.done-state h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 10px; text-wrap: balance; }
.done-state p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.done-state p { color: var(--ink-2); max-width: 46ch; margin: 0 auto; }
.done-state .done-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #f6f6f6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); font-size: 14px; text-align: left; }
.done-state .done-note[hidden] { display: none; }
.done-state .done-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.done-state .ref { display: inline-flex; gap: 8px; align-items: center; margin: 22px 0; padding: 8px 14px; border-radius: 10px; background: #f6f6f6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); font: 500 13px/1 var(--mono); color: var(--ink-2); }
.done-state .ref b { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.done-state ol { display: grid; gap: 10px; max-width: 420px; margin: 8px auto 0; text-align: left; counter-reset: n; }
.done-state ol li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); counter-increment: n; }
.done-state ol li::before { content: counter(n); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: var(--blue-soft); color: var(--blue-ink); }

/* ---------- final call + footer ---------- */
.final { text-align: center; }
.final .h2 { max-width: 16ch; margin: 0 auto; }
.final .lead { margin: 18px auto 0; }
.final .cta-row { justify-content: center; }
.footer { padding: 40px 0 48px; font-size: 14px; color: var(--ink-3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ink); } }
/* r3: brand. Phones: one column (logo, links, ©) so every page's footer wraps the same way */
@media (max-width: 599px) { .footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; } }
/* the narrowest phones: a slightly smaller gap keeps the five footer links on one row */
@media (max-width: 359px) { .footer nav { column-gap: 15px; } }

/* ---------- reveal on scroll ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .rv.seen { opacity: 1; transform: none; }
}

/* ---------- cookies bar (assets/consent.js) ---------- */
.cookies {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 14px 14px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), var(--shadow-float);
  opacity: 0; transform: translateY(12px); transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.cookies.show { opacity: 1; transform: none; }
.cookies[hidden] { display: none; }   /* display:flex above would otherwise keep the hidden bar on screen, invisible but clickable */
.cookies p { flex: 1 1 260px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cookies p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cookies-actions { display: flex; gap: 8px; margin-left: auto; }
.cookies .btn { --h: 36px; padding: 0 14px; font-size: 14px; }
.cookies .btn-light { color: #fff; background: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.cookies .btn-ghost { color: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2); background: #fff; }
/* phones: a compact bar (consent.js waits until the hero demo has been scrolled past there) */
@media (max-width: 599px) {
  .cookies { left: 10px; right: 10px; bottom: 10px; gap: 8px 12px; padding: 10px 10px 10px 14px; }
  .cookies p { flex-basis: 100%; font-size: 13px; line-height: 1.4; }
  .cookies .btn { --h: 34px; }
}
/* short screens (landscape phones, 400% zoom): the bar sits at the top of the page and scrolls away instead of covering it */
@media (max-height: 420px) {
  .cookies { position: relative; left: auto; right: auto; bottom: auto; margin: 12px 16px; max-width: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .cta-row .btn { flex: 1 1 100%; }
  .hero .cta-row .btn-secondary { display: none; }
  .hero { padding-top: 32px; }
  .assure { gap: 6px 14px; font-size: 13.5px; margin-top: 22px; }
  .byline { margin-top: 22px; padding-top: 18px; }
  .hero-grid { gap: 40px; }
  .h1 { font-size: min(34px, 8.8vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  /* keep the crossfades that explain a change; drop the movement and the blur */
  .layers > .pg, .note, .styles-pane ul { transition: opacity 200ms ease !important; filter: none !important; transform: none !important; }
}

/* ---------- print: every section shown, no chrome ---------- */
@media print {
  .nav, .legal-top, .skip, .guides, .cookies, .hx-play, .tabs, .hero .cta-row, .final .cta-row { display: none !important; }
  .rv, .enter { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .qa .a { grid-template-rows: 1fr !important; visibility: visible !important; transition: none !important; }
  .qa .a p { opacity: 1 !important; transform: none !important; }
  .logo-mark, .btn-primary { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff !important; }
  .panel, .card, .qa, figure, table { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}

/* ---------- legal pages (terms.html, privacy.html, 404.html) ---------- */
.legal-top { position: sticky; top: 0; z-index: 10; height: 64px; background: rgba(250, 250, 250, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.legal-top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; margin: 18px 0 14px; }
.legal .date { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.legal .intro { margin-top: 22px; color: var(--ink-2); font-size: 17px; }
.legal .short { margin: 36px 0 48px; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.legal .short .label { margin-bottom: 14px; }
.legal .short ul { display: grid; gap: 10px; }
.legal .short li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; color: var(--ink-2); }
.legal .short li::before { content: ""; width: 6px; height: 6px; margin: 9px 0 0 4px; border-radius: 50%; background: var(--blue); }
.legal section { padding: 32px 0; border-top: 1px dashed var(--line-2); }
.legal h2 { display: flex; gap: 14px; align-items: baseline; font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 14px; }
.legal h2 span { font: 500 12px/1 var(--mono); color: var(--blue-ink); }
.legal h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul.dots { display: grid; gap: 8px; margin: 10px 0; }
.legal ul.dots li { position: relative; padding-left: 18px; }
.legal ul.dots li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #bdbdbd; }
.legal a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal dl.id { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 16px; margin: 6px 0 12px; }
.legal dl.id dt { color: var(--ink-3); font-size: 14px; }
.legal dl.id dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 359px) { .legal dl.id { grid-template-columns: 1fr; gap: 2px; } .legal dl.id dd + dt { margin-top: 10px; } }
/* inline links get a taller hit area without changing the line height */
.legal p a:not(.btn), .legal li a:not(.btn), .legal dd a { padding-block: 3px; }
.footer nav a { padding-block: 4px; }
.footer a[aria-current] { color: var(--ink); }
/* contents list on the long pages */
.legal .contents { margin: 0 0 40px; }
.legal .contents ol { margin-top: 14px; columns: 2; column-gap: 32px; counter-reset: toc; }
.legal .contents li { counter-increment: toc; break-inside: avoid; display: grid; grid-template-columns: 30px 1fr; padding: 2px 0; font-size: 15px; line-height: 1.45; }
.legal .contents li::before { content: counter(toc, decimal-leading-zero); padding-top: 7px; font: 500 12px/1 var(--mono); color: var(--blue-ink); }
.legal .contents a:not(.btn) { justify-self: start; color: var(--ink-2); text-decoration-color: transparent; transition: color 150ms ease, text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .legal .contents a:not(.btn):hover { color: var(--ink); text-decoration-color: var(--line-2); } }
@media (max-width: 600px) { .legal .contents ol { columns: 1; } }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media print {
  .legal-top, .footer, .guides, .cookies { display: none !important; }
  body { background: #fff; }
  .legal { padding-top: 0; }
}


/* ===================================================== demo: hero */
/* ---------- hero: one sentence, seven problems, one fix (.hx-) ----------
   State classes on .hx-scene are cumulative (hx-s1 … hx-s9) and set by the hero script; without JS the markup
   carries all of them, so the formatted page shows. Only transform, opacity, clip-path (and a 1–2px blur) move.
   Every length inside the pages is em of the page font (2.55cqw of the column), so one set of values fits all widths.
   Page 41: text from 6.2em to 43.6em (25 lines of 1.5em); page 42 starts at 47.863em. */
.hx-body { background: #f4f4f4; }
.hx-stage { container: hx / inline-size; position: relative; overflow: hidden; padding: 20px 20px 0; }
@media (max-width: 959px) { .hx-stage { padding: 16px 16px 0; } }
.hx-scene { --k: 1.2; --st: 90ms; --st6: 150ms; position: relative; max-width: 560px; margin-inline: auto; display: grid; grid-template-columns: 32fr 64fr; column-gap: 4cqw; align-items: start; }
.hx-narrow .hx-scene { --st: 550ms; --st6: 950ms; }   /* the footer names each problem / fix; hero.js uses the same pace */
.hx-scene.hx-fast { --k: .7; --st: 60ms; }
.hx-paused *, .hx-paused *::before { animation-play-state: paused !important; }
.hx-instant, .hx-instant *, .hx-instant *::before { transition: none !important; animation: none !important; }

/* the contents page (page vi) */
.hx-left { position: relative; min-width: 0; }
.hx-toc { container-type: inline-size; position: relative; aspect-ratio: 210 / 250; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 8px -2px rgba(0, 0, 0, .08); }
.hx-tocin { position: absolute; inset: 0; padding: 9cqw 14cqw 0 8cqw; font: 4.6cqw/1.7 var(--doc); color: #111; letter-spacing: 0; }
.hx-trun { font-size: .78em; line-height: 1.5; color: #666; border-bottom: .5px solid #bbb; padding-bottom: .4em; margin-bottom: 1.5em; margin-right: -6cqw; font-variant: small-caps; letter-spacing: .04em; }
.hx-r { position: relative; display: flex; align-items: baseline; gap: .35em; white-space: nowrap; }
.hx-r > i { flex: 1; min-width: .8em; border-bottom: .14em dotted #555; transform: translateY(-.3em); }
.hx-r.hx-ch { font-weight: 700; margin-top: .45em; }
.hx-r.hx-ch:first-of-type { margin-top: 0; }
.hx-r.hx-l1 { padding-left: 1em; }
.hx-r.hx-l2 { padding-left: 2em; }
.hx-pn { position: relative; min-width: 1.2em; text-align: right; font-variant-numeric: tabular-nums; }
.hx-n43 { z-index: 0; }
.hx-n43::before { content: ""; position: absolute; z-index: -1; inset: .22em -.22em .18em; border-radius: 2px; background: var(--blue-soft); box-shadow: 0 1.5px 0 0 rgba(41, 111, 240, .45); opacity: 0; }
.hx-n43 .hx-odo { height: 1.7em; line-height: 1.7; }
.hx-strike { position: absolute; left: -.12em; right: -.12em; top: 50%; height: 1.5px; margin-top: -.5px; background: var(--red); clip-path: inset(0 100% 0 0); }
.hx-44 { position: absolute; left: calc(100% + .4em); top: 0; font: 600 max(1em, 8.5px)/1.7 var(--mono); letter-spacing: -.02em; color: #b4292e; opacity: 0; transform: translateX(-3px); }
.hx-tfolio { position: absolute; left: 0; right: 0; bottom: 6cqw; display: flex; justify-content: center; }
.hx-odo { position: relative; display: block; height: 1.5em; line-height: 1.5; overflow: hidden; }
.hx-odo-in { display: flex; flex-direction: column; align-items: center; }
.hx-odo-in span { display: block; min-width: 1.2em; text-align: center; }
.hx-ring { position: absolute; left: 50%; top: 50%; width: 2.3em; height: 1.65em; margin: -.84em 0 0 -1.15em; border: 1.5px solid var(--red); border-radius: 50%; opacity: 0; transform: scale(.9); }

/* the list of problems / fixes under the contents page (split layout only) */
.hx-legend { display: grid; gap: 8px; margin: 16px 0 0; padding: 0 0 0 2px; list-style: none; }
/* every row two lines tall, the label centred in it, so the rhythm stays even whichever labels wrap */
.hx-lg { display: grid; min-height: 2.6em; font-size: 11px; }
.hx-lg > span { grid-area: 1 / 1; align-self: center; display: flex; align-items: flex-start; gap: 7px; font: 500 11px/1.3 var(--sans); letter-spacing: -.005em; text-wrap: balance; opacity: 0; transform: translateY(3px); }
.hx-lg b { flex: none; width: 15px; height: 15px; margin-top: -.5px; border-radius: 50%; font: 600 9px/15px var(--mono); text-align: center; color: #fff; letter-spacing: 0; }
.hx-lg-b { color: #b4292e; } .hx-lg-b b { background: var(--red-strong); }
.hx-lg-a { color: var(--blue-ink); } .hx-lg-a b { background: var(--blue); }

/* the column with page 41, a gutter and the top of page 42; the crop ends between two lines in every state */
.hx-right { container-type: inline-size; position: relative; min-width: 0; }
.hx-col { position: relative; aspect-ratio: 100 / 180.19; overflow: hidden; }
.hx-colin { position: absolute; inset: 0; font-size: 2.55cqw; line-height: 1.5; }
.hx-colin .pg { position: absolute; left: 0; top: 0; width: 100%; }
.hx-colin .hx-p42 { top: 47.863em; }
.hx-b { position: absolute; left: 10cqw; right: 10cqw; top: calc(var(--y) * 1em); margin: 0; }
.pg .hx-carry { margin: 0; }
.hx-hd { height: 1.95em; }
.hx-hd > span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.hx-hd-b { font: 700 1.2em/1.3 Arial, Helvetica, sans-serif; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.hx-hd-a { font: 700 1.12em/1.45 var(--doc); }
/* proofreading marks: margin bars 0.52em left of the text, an underline under the citation */
.hx-mh { position: absolute; left: -.433em; top: .08em; height: 1.1em; width: 1.5px; background: var(--red); transform: scaleY(0); transform-origin: top; }
.hx-mc { position: absolute; left: 0; right: 0; bottom: .02em; height: 1.5px; background: var(--red); clip-path: inset(0 100% 0 0); }
.hx-mbar { position: absolute; left: -.52em; top: .3em; height: 5.3em; width: 1.5px; background: var(--red); transform: scaleY(0); transform-origin: top; }
.hx-gapm { position: absolute; left: calc(37.3em - .45em); top: 34.3em; width: .45em; height: 8.9em; box-sizing: border-box; border: 1.5px solid var(--red); border-left: 0; clip-path: inset(0 0 100% 0); }
.hx-ln { display: block; white-space: nowrap; text-align: justify; text-align-last: justify; }
.hx-l4 { text-align-last: left; }
.hx-cit { position: relative; display: inline-block; text-indent: 0; }
.hx-cit-a { position: absolute; left: 0; top: 0; white-space: nowrap; }
.hx-cit-a { z-index: 0; }   /* the pill (z-index -1) sits behind every glyph of the fixed citation, brackets included */
.hx-cw { position: relative; }
.hx-cit-a .hx-cw::before { content: ""; position: absolute; inset: -.05em -.04em; z-index: -1; border-radius: 2px; background: var(--blue-soft); box-shadow: 0 1.5px 0 0 rgba(41, 111, 240, .45); opacity: 0; }
/* the new sentence: a clip-path reveal of text already laid out, a caret on a track, a light "new text" shade */
.hx-n6 { text-align-last: left; }
.hx-w { position: relative; display: block; }
.hx-n6 .hx-w { display: inline-block; }
.hx-tx { position: relative; display: block; clip-path: inset(0 100% 0 0); }
.hx-n6 .hx-w .hx-tx { display: inline-block; }
.hx-tx::before { content: ""; position: absolute; z-index: -1; left: -.1em; right: -.1em; top: .14em; bottom: .1em; background: rgba(17, 17, 17, .075); }
.hx-trk { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; }
.hx-trk::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 1px; background: #111; }
.hx-n5 .hx-trk::before { animation: hx-blink 1060ms steps(1, end) infinite; }
.hx-n6 .hx-trk { opacity: 0; }
@keyframes hx-blink { 50% { opacity: 0; } }
.hx-cause { position: relative; display: inline-block; width: 0; height: 1.5em; vertical-align: top; text-indent: 0; }
.hx-p2 { height: 5.85em; }
.hx-p2 p { position: absolute; left: 0; right: 0; top: 0; margin: 0; }
.hx-p2-b { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: .95em; line-height: 2.05; text-align: left !important; }
/* the gap fill (After): the first 8 lines of the next paragraph, revealed a line at a time */
.hx-fill { height: 12em; overflow: hidden; clip-path: inset(0 0 100% 0); }
.hx-fill p, .hx-p3 p { margin: 0; }
.hx-p3a { height: 12em; overflow: hidden; }
.hx-p3b { position: absolute; left: 0; right: 0; top: 12em; height: 9em; overflow: hidden; }
.hx-p3b > div { margin-top: -12em; }

/* travellers. The figure: an outer box pushed with the text, an inner box that jumps to page 42 */
.hx-fig { position: absolute; z-index: 2; left: 10cqw; right: 10cqw; top: 30.85em; height: 10.8em; font-family: var(--doc); color: #111; }
.hx-figin { height: 100%; display: grid; grid-template-rows: 3.6em 1.3em 3.6em .8em 1.5em; justify-items: center; background: #fff; box-shadow: 0 0 0 .3em #fff; }
.hx-ph { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: .22em; padding: .26em .7em .45em; border: .5px solid #8c8c8c; border-radius: .2em; }
.hx-ph-t { font-size: .68em; line-height: 1.3; font-variant: small-caps; letter-spacing: .04em; color: #444; }
.hx-row { flex: 1; display: flex; align-items: stretch; }
.hx-row span { flex: 1; display: flex; align-items: center; justify-content: center; border: .5px solid #333; font-size: .74em; line-height: 1.15; text-align: center; }
.hx-ar { flex: none; position: relative; width: 2.2em; align-self: center; height: .5px; background: #333; }
.hx-ar::after { content: ""; position: absolute; right: -1px; top: -.22em; border: .22em solid transparent; border-left: .34em solid #333; border-right: 0; }
.hx-dn { position: relative; width: 100%; display: flex; justify-content: center; }
.hx-dn i { position: relative; width: .5px; background: #333; margin: .14em 0 .16em; }
.hx-dn i::after { content: ""; position: absolute; left: -.22em; bottom: -1px; border: .22em solid transparent; border-top: .34em solid #333; border-bottom: 0; }
.hx-dn em { position: absolute; left: calc(50% + .7em); top: 50%; transform: translateY(-50%); font-size: .68em; line-height: 1; white-space: nowrap; }
.hx-int { width: 76%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: .5px solid #333; font-size: .74em; line-height: 1; white-space: nowrap; }
/* the caption: as wide as the text. Before: one centred line. After (APA 7): above the figure, "Figure 3.2" in bold,
   the title in italic title case on the line below, flush left; it flies straight down to the top of page 42 */
.hx-cap { position: absolute; z-index: 1; left: 10cqw; width: 80cqw; top: 29.2em; height: 1.5em; font-family: var(--doc); color: #111; white-space: nowrap; }
.hx-cap-b, .hx-cap-a { position: absolute; left: 0; right: 0; top: 0; text-align: center; line-height: 1.5; }
.hx-cap-b { font-size: .9em; font-style: italic; }
.hx-cbt { position: relative; display: inline-block; }
.hx-cap-a { font-size: .88em; line-height: 1.35; text-align: left; opacity: 0; }
.hx-cap-a b, .hx-cap-a i { display: block; }
.hx-cap-a b { position: relative; z-index: 0; width: max-content; margin-bottom: .25em; }
.hx-cap-a b::before { content: ""; position: absolute; inset: -.08em -.2em; z-index: -1; border-radius: 2px; background: var(--blue-soft); box-shadow: 0 1.5px 0 0 rgba(41, 111, 240, .5); opacity: 0; }
.hx-link { position: absolute; z-index: 1; left: calc(10cqw + 12.8em); top: 33.9em; height: 19.96em; width: 1px; margin-left: -.5px; background: repeating-linear-gradient(to bottom, var(--red) 0 4px, transparent 4px 7px); clip-path: inset(0 0 100% 0); }

/* numbered dots, in the margins next to what they mark; red for problems, blue for fixes */
.hx-pin { position: absolute; z-index: 6; left: var(--l); top: var(--t); width: 0; height: 0; }
.hx-lb { position: absolute; opacity: 0; transform: translateY(3px); }
.hx-dot { left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; display: grid; place-items: center; font: 600 9px/1 var(--mono); color: #fff; letter-spacing: 0; }
.hx-dot.hx-ink { background: #111; box-shadow: 0 0 0 2.5px rgba(17, 17, 17, .16); }
.hx-dot.hx-red { background: var(--red-strong); box-shadow: 0 0 0 2.5px rgba(205, 43, 49, .2); }
.hx-dot.hx-ok { background: var(--blue); box-shadow: 0 0 0 2.5px rgba(41, 111, 240, .2); }
/* the cause: a small ink chip in the white space after the new sentence (a "+" dot on phones) */
.hx-chip { left: 7px; top: 50%; height: 16px; margin-top: -8px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px 0 2px; border-radius: 8px; background: #fff; white-space: nowrap; font: 500 10px/16px var(--sans); letter-spacing: -.01em; color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px -2px rgba(0, 0, 0, .12); }
.hx-chip b { flex: none; width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; font: 600 9px/1 var(--mono); }
.hx-cause .hx-dot { display: none; left: 1.3em; top: 50%; }

/* ---------- the timeline ---------- */
/* s1 (300 ms): Word makes room first (1.5em), then the first new line types in, with the caret */
.hx-s1 .hx-p2, .hx-s1 .hx-cap, .hx-s1 .hx-fig { transform: translateY(1.5em); transition: transform 180ms var(--ease-out); }
.hx-s1 .hx-l4 { text-align-last: justify; }
.hx-s1 .hx-n5 .hx-tx { clip-path: inset(0); transition: clip-path 320ms steps(30, end) 160ms; }
.hx-s1 .hx-n5 .hx-trk { transform: translateX(100%); opacity: 0; transition: transform 320ms steps(30, end) 160ms, opacity 0s 480ms; }
.hx-s1 .hx-n5 .hx-trk::before { animation: none; }
/* s2 (800): another 1.5em of room for line 6; the figure no longer fits and jumps to page 42, whose text makes room */
.hx-s2 .hx-p2, .hx-s2 .hx-cap, .hx-s2 .hx-fig { transform: translateY(3em); }
.hx-s2 .hx-figin { transform: translateY(20.313em); transition: transform 560ms var(--ease-in-out); }
.hx-s2 .hx-p3 { transform: translateY(12em); transition: transform 440ms var(--ease-out) 220ms; }
.hx-s2 .hx-n6 .hx-tx { clip-path: inset(0); transition: clip-path 240ms steps(18, end) 150ms; }
.hx-s2 .hx-n6 .hx-trk { transform: translateX(100%); opacity: 1; transition: transform 240ms steps(18, end) 150ms, opacity 0s 150ms; }
.hx-s2 .hx-k-cause { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out) 150ms, transform 200ms var(--ease-out) 150ms; }
/* s3 (1450): half of page 41 is now empty */
.hx-s3 .hx-n6 .hx-trk { opacity: 0; transition: opacity 120ms ease; }
.hx-s3 .hx-gapm { clip-path: inset(0); transition: clip-path 260ms var(--ease-out); }
.hx-s3 .hx-lb.hx-k-r1, .hx-s3 .hx-k-r1 > .hx-lg-b { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out) 120ms, transform 200ms var(--ease-out) 120ms; }
/* s4 (1900): the caption was left behind */
.hx-s4 .hx-link { clip-path: inset(0); transition: clip-path 260ms var(--ease-out); }
.hx-s4 .hx-lb.hx-k-r2, .hx-s4 .hx-k-r2 > .hx-lg-b { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out) 120ms, transform 200ms var(--ease-out) 120ms; }
/* s5 (2350): the contents page is out of date (3.2.1 now starts on page 44) */
.hx-s5 .hx-strike { clip-path: inset(0); transition: clip-path 180ms var(--ease-out); }
.hx-s5 .hx-44 { opacity: 1; transform: none; transition: opacity 160ms ease 100ms, transform 160ms var(--ease-out) 100ms; }
.hx-s5 .hx-lb.hx-k-r3, .hx-s5 .hx-k-r3 > .hx-lg-b { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out) 100ms, transform 200ms var(--ease-out) 100ms; }
/* s6 (2900): the four problems that were already there, in reading order (150ms apart; 1100ms on phones, with the narration) */
.hx-s6 .hx-tx::before { opacity: 0; transition: opacity 300ms ease; }
.hx-s6 .hx-mh, .hx-s6 .hx-mbar { transform: none; transition: transform 200ms var(--ease-out) calc(var(--j) * var(--st6)); }
.hx-s6 .hx-mc { clip-path: inset(0); transition: clip-path 200ms var(--ease-out) calc(var(--j) * var(--st6)); }
.hx-s6 .hx-ring { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out) calc(3 * var(--st6)), transform 200ms var(--ease-out) calc(3 * var(--st6)); }
.hx-s6 .hx-lb.hx-old, .hx-s6 .hx-old > .hx-lg-b { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out) calc(var(--j) * var(--st6) + 60ms), transform 200ms var(--ease-out) calc(var(--j) * var(--st6) + 60ms); }
/* s7 (5700, after a 2.8 s hold): a breath; the red steps back */
.hx-scene.hx-s7 .hx-red, .hx-scene.hx-s7 .hx-lg-b { opacity: .55; transition: opacity 200ms ease; }
.hx-scene.hx-s7 .hx-k-cause { opacity: 0; transition: opacity 200ms ease; }
/* s8 (5900): one settle, 1.2x slower than the edit so each change reads on its own */
.hx-scene.hx-s8 .hx-red { opacity: 0; transition: opacity calc(180ms * var(--k)) ease; }
.hx-s8 .hx-odo-in { transform: translateY(-50%); transition: transform calc(300ms * var(--k)) var(--ease-out) calc(60ms * var(--k)); }
.hx-s8 .hx-n43 .hx-odo-in { transform: none; }   /* the gap is filled, so 3.2.1 is back on 43: the strike and the red 44 fade, 43 is highlighted */
.hx-s8 .hx-n43::before { opacity: 1; transition: opacity calc(400ms * var(--k)) ease calc(360ms * var(--k)); }
.hx-hd > span, .hx-cit > span, .hx-p2 p { transition: opacity calc(260ms * var(--k)) ease, filter calc(260ms * var(--k)) ease; }
.hx-hd-a, .hx-cit-a, .hx-p2-a { opacity: 0; filter: blur(2px); }
.hx-s8 .hx-hd-b, .hx-s8 .hx-cit-b, .hx-s8 .hx-p2-b { opacity: 0; filter: blur(2px); }
.hx-s8 .hx-hd-a, .hx-s8 .hx-cit-a, .hx-s8 .hx-p2-a { opacity: 1; filter: none; }
.hx-s8 .hx-hd > span { transition-delay: calc(150ms * var(--k)); }
.hx-s8 .hx-cit > span { transition-delay: calc(240ms * var(--k)); }
.hx-s8 .hx-p2 p { transition-delay: calc(330ms * var(--k)); }
.hx-s8 .hx-cit-a .hx-cw::before { opacity: 1; transition: opacity calc(400ms * var(--k)) ease calc(500ms * var(--k)); }
/* the caption flies straight down (520ms from 500ms) to the top of page 42 (54.163em), where the figure was; the figure steps
   down 3em to make room under it, and so does the text after it. Its old words leave once it is past page 41, the new ones arrive just after */
.hx-s8 .hx-cap { transform: translateY(24.963em); transition: transform calc(520ms * var(--k)) var(--ease-in-out) calc(500ms * var(--k)); }
.hx-s8 .hx-figin { transform: translateY(23.313em); transition: transform calc(360ms * var(--k)) var(--ease-out) calc(500ms * var(--k)); }
.hx-cap-b { transition: opacity calc(90ms * var(--k)) ease calc(786ms * var(--k)), filter calc(90ms * var(--k)) ease calc(786ms * var(--k)); }
.hx-cap-a { transition: opacity calc(140ms * var(--k)) ease calc(822ms * var(--k)); }
.hx-s8 .hx-cap-b { opacity: 0; filter: blur(1px); }
.hx-s8 .hx-cap-a { opacity: 1; }
.hx-s8 .hx-p3 { transform: translateY(15em); transition: transform calc(360ms * var(--k)) var(--ease-out) calc(500ms * var(--k)); }
.hx-s8 .hx-fill { clip-path: inset(0); transition: clip-path calc(360ms * var(--k)) steps(8, end) calc(1020ms * var(--k)); }
.hx-p3a { transition: opacity calc(180ms * var(--k)) ease calc(1020ms * var(--k)); }
.hx-s8 .hx-p3a { opacity: 0; }
.hx-s8 .hx-p3b { transform: translateY(-12em); transition: transform calc(360ms * var(--k)) var(--ease-out) calc(1200ms * var(--k)); }
.hx-s8 .hx-cap-a b::before { opacity: 1; transition: opacity calc(400ms * var(--k)) ease calc(1420ms * var(--k)); }
/* s9 (7680): what is now right, 1 to 7, each row of the list turning from red to blue with its dot */
.hx-s9 .hx-ok, .hx-s9 .hx-lg-a { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out) calc(var(--i) * var(--st)), transform 260ms var(--ease-out) calc(var(--i) * var(--st)); }
.hx-scene.hx-s9 .hx-lg-b { opacity: 0; transform: translateY(-3px); transition: opacity 160ms ease calc(var(--i) * var(--st)), transform 160ms ease calc(var(--i) * var(--st)); }

/* ---------- split layout on small stages (about 1024px windows): a larger contents font, one row fewer ---------- */
@container hx (400px <= width < 480px) {
  .hx-tocin { font-size: 5.1cqw; padding-top: 8cqw; }
  .hx-r.hx-x2 { display: none; }
  .hx-legend { gap: 7px; margin-top: 14px; }
  /* every row two lines tall, the label centred in it, so the rhythm stays even whichever labels wrap */
  .hx-lg { min-height: 2.6em; font-size: 10.5px; }
  .hx-lg > span { font-size: 10.5px; gap: 6px; }
}

/* ---------- narrow stages: one column, the contents page as a cropped card over the top of page 41 ---------- */
@container hx (width < 400px) {
  .hx-scene { display: block; }
  .hx-left { position: absolute; z-index: 7; top: 2cqw; right: 3cqw; width: 64%; }
  .hx-toc { aspect-ratio: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 24px -8px rgba(0, 0, 0, .22); }
  .hx-tocin { position: relative; font-size: 4.5cqw; padding: 5cqw 15cqw 3.5cqw 8cqw; }
  .hx-trun { margin-bottom: .6em; }
  .hx-r.hx-xs, .hx-legend, .hx-link { display: none; }
  .hx-r.hx-l1 { padding-left: 0; }
  .hx-r.hx-l2 { padding-left: 1em; }
  .hx-tfolio { position: relative; bottom: auto; margin-top: .2em; }
  .hx-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 10px; }
  .hx-cause .hx-chip { display: none; }
  /* smaller, and in the leading below the new line, so it does not cover the line above */
  .hx-cause .hx-dot { display: grid; width: 14px; height: 14px; margin: -7px 0 0 -7px; font-size: 9px; top: calc(50% + 3px); box-shadow: 0 0 0 2px rgba(17, 17, 17, .16); }
}

/* ---------- footer: narration and the pause / replay button ---------- */
.hx-foot { position: relative; }
.hx-foot .state { flex: 1; min-width: 0; align-items: flex-start; }
.hx-foot .state i { flex: none; margin-top: .3em; }
.hx-foot.hx-idle .state i { background: var(--ink-3); }
.hx-foot.hx-ok .state i { background: var(--green); }
.hx-msg { position: relative; display: grid; flex: 1; min-width: 0; }
.hx-line { grid-area: 1 / 1; opacity: 0; transition: opacity 160ms ease; text-wrap: balance; }
.hx-line.hx-on { opacity: 1; }
/* the result line: Geist, in ink, with a short rise */
.hx-line.hx-strong { font: 500 12.5px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); transform: translateY(2px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.hx-line.hx-strong.hx-on { transform: none; }
.hx-line.hx-strong .hx-dg { color: #17803f; }
.hx-foot.hx-ok .state i { margin-top: .36em; }
.hx-dg { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: top; font-variant-numeric: tabular-nums; }
.hx-dg > span { display: flex; flex-direction: column; }
.hx-dg.hx-roll > span { transform: translateY(-50%); transition: transform 220ms var(--ease-out); }
.hx-line2 { display: none; }
.hx-play { position: relative; flex: none; width: 28px; height: 28px; margin: -6px 0; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); }
.hx-play[hidden] { display: none; }
.hx-play::before { content: ""; position: absolute; inset: -8px; }
.hx-play svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.9); transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.hx-play .hx-i-play { fill: currentColor; stroke-width: 1.2; }
.hx-play[data-i="pause"] .hx-i-pause, .hx-play[data-i="play"] .hx-i-play, .hx-play[data-i="replay"] .hx-i-replay { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .hx-play:hover { color: var(--ink); background: rgba(0, 0, 0, .04); } }
/* narrow stage (class set by the hero script from the stage width, the same test as the container query) */
.hx-narrow .hx-foot { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 10px; row-gap: 0; padding: 10px 12px; font-size: 10.5px; line-height: 1.35; }
.hx-narrow .hx-foot .state { min-height: 2.7em; }
.hx-narrow .hx-line.hx-strong { font-size: 11.5px; line-height: 1.25; }
.hx-narrow .hx-line2 { display: block; grid-column: 1 / -1; margin-top: -1.35em; padding-left: 15px; font-family: var(--sans); color: var(--ink-3); opacity: 0; transition: opacity 260ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-narrow .hx-foot.hx-l2on .hx-line2 { opacity: 1; }
.hx-narrow .hx-play { margin: -6px 0 0; }
@media (max-width: 374px) { .hx .win-name { font-size: 11px; letter-spacing: -.03em; } .hx .win-name::before { margin-right: 6px; } .hx .seg button { padding: 0 10px; } }

@media (prefers-reduced-motion: reduce) {
  .hx-scene *, .hx-scene *::before, .hx-foot * { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  /* Before / After stays a short opacity crossfade of the whole scene (ff.css would otherwise cut it to 1ms) */
  .hx .hx-scene { transition: opacity 120ms ease !important; }
}


/* ===================================================== demo: toc */
/* Contents demo (page v of a thesis contents). Everything is sized in em of the page font, which is set in cqw,
   so the page lays out identically at every width. */
#p-toc .pg { aspect-ratio: 210 / 250; }
.pg.dm-toc { font-size: 2.72cqw; line-height: 1.4; padding: 9.5cqw 10cqw 8cqw; isolation: isolate; font-kerning: normal; }
.dm-toc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.dm-toc-h { font-weight: 700; font-size: 1.32em; line-height: 1.2; text-align: center; margin: 0 0 1.05em; }
.dm-toc-ph { text-align: right; font-variant: small-caps; letter-spacing: .03em; font-size: .92em; margin: 0 0 .25em auto; width: max-content; position: relative; }
.dm-toc-gap { margin-top: .5em; }
.dm-toc-b { font-weight: 700; }
.dm-toc-folio { position: absolute; left: 0; right: 0; bottom: 4.6cqw; text-align: center; font-size: .92em; }

/* after: generated entries. Number in a fixed box per level, text, a dot leader that ends at the same point on
   every line (dots drawn from the right, so they line up down the page), page number right-aligned. */
.dm-toc-r { display: flex; align-items: baseline; white-space: nowrap; }
.dm-toc-n { flex: none; width: 1.55em; }
.dm-toc-l1 { padding-left: 1.55em; }
.dm-toc-l1 .dm-toc-n { width: 2.25em; }
.dm-toc-l2 { padding-left: 3.8em; }
.dm-toc-l2 .dm-toc-n { width: 2.85em; }
.dm-toc-t { position: relative; }
.dm-toc-ld {
  flex: 1 1 0; min-width: 1.2em; height: .3em; margin: 0 .3em 0 .45em; align-self: baseline;
  background: radial-gradient(circle at 50% 70%, #1a1a1a .05em, transparent .065em) right bottom / .5em .3em repeat-x;
}
.dm-toc-p { flex: none; position: relative; width: 1.9em; text-align: right; font-variant-numeric: tabular-nums lining-nums; font-weight: 400; }
.dm-toc-b .dm-toc-p { font-weight: 700; }

/* before: typed by hand. Full stops typed until the line "looked full", indents made with spaces. */
.dm-toc-x { white-space: nowrap; overflow: hidden; }
.dm-toc-x.mk { overflow: visible; }
.dm-toc-x > span:last-child { letter-spacing: 0; }
/* page number inserted with Word's default "Plain Number 1": at the left margin, in arabic figures */
.dm-toc-bad .dm-toc-fl { left: 10cqw; right: auto; text-align: left; }
.dm-toc-fl .mark { top: .7em; }
.dm-toc-k2 { position: relative; }

/* phones: smaller side margins and a taller text area so the text can be larger (about 8 px at 360 px). Font and margins
   change together, so a line is still 29.4 em wide and the hand-typed rows fit exactly as at desktop. Smaller marks. */
@container (max-width: 380px) {
  #p-toc .pg { aspect-ratio: 210 / 260; }
  .pg.dm-toc { font-size: 2.925cqw; padding: 6.5cqw 7cqw 7cqw; }
  .dm-toc-bad .dm-toc-fl { left: 7cqw; }
  .dm-toc-folio { bottom: 3.6cqw; }
  #p-toc .mark { width: 14px; height: 14px; margin: -7px 0 0 -7px; left: -11px; font-size: 8.5px; box-shadow: 0 0 0 2px rgba(205, 43, 49, .18); }
}

/* hover link between the fixes list and the page */
.dm-toc [data-k]:not(.mark) { position: relative; }
/* not on the numbered marks: a scaled mark would paint this layer over its red circle */
.dm-toc [data-k]:not(.mark)::before {
  content: ""; position: absolute; inset: -.08em -.22em; z-index: -1; border-radius: .25em;
  background: var(--blue-soft); box-shadow: 0 0 0 .07em rgba(41, 111, 240, .28); opacity: 0; transition: opacity 200ms ease;
}
.compare[data-dm-toc-hl="1"] .dm-toc [data-k~="1"]::before,
.compare[data-dm-toc-hl="2"] .dm-toc [data-k~="2"]::before,
.compare[data-dm-toc-hl="3"] .dm-toc [data-k~="3"]::before,
.compare[data-dm-toc-hl="4"] .dm-toc [data-k~="4"]::before { opacity: 1; }
#p-toc .mark { transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.compare[data-dm-toc-hl] .dm-toc-bad .mark { opacity: .35; }
.compare[data-dm-toc-hl="1"] .dm-toc-bad .mark[data-k="1"],
.compare[data-dm-toc-hl="2"] .dm-toc-bad .mark[data-k="2"],
.compare[data-dm-toc-hl="3"] .dm-toc-bad .mark[data-k="3"],
.compare[data-dm-toc-hl="4"] .dm-toc-bad .mark[data-k="4"] { opacity: 1; transform: scale(1.18); }
.fixes-list[data-for="p-toc"] li { transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .fixes-list[data-for="p-toc"]:hover li:not(:hover) { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  /* !important: the global reduced-motion rule would otherwise cut these crossfades to 1ms */
  #p-toc .mark, .dm-toc [data-k]:not(.mark)::before, .fixes-list[data-for="p-toc"] li { transition: opacity 200ms ease !important; }
  .compare[data-dm-toc-hl] .dm-toc-bad .mark { transform: none !important; }
}


/* ===================================================== demo: tbl */
/* ---------- demo: Tables (a results table that breaks from page 63 onto page 64) ---------- */
.dm-tbl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the page box becomes a window onto Word's print layout: the foot of one page, the gap, the head of the next */
#p-tbl .pg.dm-tbl {
  aspect-ratio: 210 / 252; padding: 0; display: flex; flex-direction: column; gap: 3cqw;
  background: #e6e6e8; font-size: 2.55cqw; line-height: 1.5;
  --dm-tbl-pl: 10cqw; --dm-tbl-pr: 10cqw;
}
.dm-tbl-p { position: relative; background: #fff; padding: 0 var(--dm-tbl-pr) 0 var(--dm-tbl-pl); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .07); }
.dm-tbl-a { flex: none; height: 57cqw; padding-top: 4.2cqw; }
.dm-tbl-b { flex: 1; min-height: 0; padding-top: 7cqw; }
.dm-tbl-folio { position: absolute; left: 0; right: 0; bottom: 4.4cqw; text-align: center; font-size: .88em; font-variant-numeric: lining-nums; }
.dm-tbl p { margin: 0 0 .65em; }
/* all four marks share one vertical axis in the left margin; on narrow pages the axis moves in so the 18px circle and its ring never cross the page edge */
.dm-tbl .mark.dm-tbl-mk { left: max(-24px, calc(13px - var(--dm-tbl-pl))); }

/* after: APA 7 table, caption above, three rules, decimal-aligned numbers */
.dm-tbl-cap { margin: 1.15em 0 .55em; line-height: 1.45; }
.dm-tbl-cap b { display: block; font-weight: 700; }
.dm-tbl-cap i { display: block; font-style: italic; }
/* the label on the page where the table continues */
.dm-tbl-cap.dm-tbl-cont { margin: 0 0 .45em; }
.dm-tbl-cont b { display: inline; }
.dm-tbl-t { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .84em; line-height: 1.35; font-variant-numeric: tabular-nums lining-nums; }
.dm-tbl-t th, .dm-tbl-t td { padding: .36em .2em; text-align: right; font-weight: 400; white-space: nowrap; }
.dm-tbl-t th:first-child, .dm-tbl-t td:first-child { text-align: left; padding-left: 0; }
/* both halves of the split table share one set of column widths, so the columns line up across the page break */
.dm-tbl-t td:first-child, .dm-tbl-t th:first-child { width: 29%; }
.dm-tbl-t td:nth-child(2), .dm-tbl-t th:nth-child(2) { width: 10%; }
.dm-tbl-t td:nth-child(3), .dm-tbl-t th:nth-child(3) { width: 11%; }
.dm-tbl-t td:last-child, .dm-tbl-t th:last-child { padding-right: 0; }
.dm-tbl-t thead tr { border-top: .12em solid #111; border-bottom: .06em solid #111; }
.dm-tbl-t tbody tr:last-child { border-bottom: .12em solid #111; }
.dm-tbl-a .dm-tbl-t tbody tr:last-child { border-bottom: .06em solid #111; }   /* page 63: a thin closing rule, then the continuation line */
.dm-tbl-more { margin: .45em 0 0 !important; font-size: .78em; font-style: italic; text-align: right !important; hyphens: none !important; color: #333; }
/* asterisks hang to the right of the number so every value lines up on the decimal point */
.dm-tbl-t s { display: inline-block; width: 1.05em; text-align: left; text-decoration: none; }
.dm-tbl-t th:nth-child(n+4) { padding-right: calc(.2em + 1.05em + .38em); }   /* centres the column number over the ".62" part, not over the stars */
.dm-tbl-t th:last-child { padding-right: calc(1.05em + .38em); }
.dm-tbl-t th:nth-child(2), .dm-tbl-t th:nth-child(3) { padding-right: calc(.2em + .6em); }   /* M and SD centred over two-decimal values */
.dm-tbl-note { font-size: .84em; line-height: 1.4; margin: .55em 0 1.1em !important; text-align: left !important; hyphens: none !important; }
.dm-tbl-b > .ind { margin-top: 0; }

/* before: what students paste in from SPSS and Excel */
.dm-tbl-bad .dm-tbl-empty { margin: 0 0 .2em; line-height: 1.45; }
.dm-tbl-bad .dm-tbl-t { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: .78em; line-height: 1.3; font-variant-numeric: normal; }
.dm-tbl-bad .dm-tbl-t th, .dm-tbl-bad .dm-tbl-t td { border: .07em solid #8a8a8a; text-align: center; padding: .34em .25em; }
.dm-tbl-bad .dm-tbl-t th:first-child, .dm-tbl-bad .dm-tbl-t td:first-child { text-align: left; padding-left: .35em; }
.dm-tbl-bad .dm-tbl-t thead th { background: #d9d9d9; font-weight: 700; white-space: normal; line-height: 1.15; }
.dm-tbl-bad .dm-tbl-t thead tr, .dm-tbl-bad .dm-tbl-t tbody tr:last-child { border: 0; }
.dm-tbl-bad .dm-tbl-t td:last-child, .dm-tbl-bad .dm-tbl-t th:last-child { padding-right: .25em; }
.dm-tbl-spss { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: .72em; line-height: 1.35; margin: .45em 0 .5em !important; text-align: left !important; hyphens: none !important; }
/* Word's built-in Caption style: small, italic, blue-grey */
.dm-tbl-wcap { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-style: italic; font-size: .8em; color: #44546a; margin: 0 0 2.69em !important; text-align: left !important; }

/* phones: bigger page type (table cells stay at 7px or more at 360px) and a taller window, so every row still fits and the folio clears the slider knob */
@media (max-width: 639px) {
  #p-tbl .pg.dm-tbl { aspect-ratio: 210 / 318; font-size: 3.1cqw; --dm-tbl-pl: 9cqw; --dm-tbl-pr: 6cqw; }
  .dm-tbl-a { height: 72cqw; padding-top: 2.6cqw; }
  .dm-tbl-folio { bottom: 3cqw; }
  .dm-tbl-t td:first-child, .dm-tbl-t th:first-child { width: 27%; }
  .dm-tbl-t td:nth-child(3), .dm-tbl-t th:nth-child(3) { width: 13%; }
  .dm-tbl-bad .dm-tbl-wcap { margin-bottom: 1.5em !important; }
  .dm-tbl-bad .dm-tbl-t { font-size: .84em; }
  .dm-tbl-spss, .dm-tbl-wcap { font-size: .84em; }
  .dm-tbl-bad .dm-tbl-t thead th { font-size: .92em; }
}


/* ===================================================== demo: fig */
/* ---------- demo: figures (p-fig) ---------- */
.dm-fig-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dm-fig-set { display: grid; gap: 4cqw; }
#p-fig .dm-fig-pg { aspect-ratio: 210 / 219; font-size: 2.42cqw; line-height: 1.55; padding: 8.5cqw 10cqw 9cqw; }
#p-fig .dm-fig-pg p { margin: 0 0 .5em; }
#p-fig .dm-fig-pg .folio { bottom: 4.4cqw; font-size: .9em; }
.dm-fig-head { font: 700 1em/1.3 var(--doc); margin: 0 0 .55em; }

/* the figure itself: APA 7 asks for a sans serif face inside figures */
.dm-fig-fig { margin: 0; }
.dm-fig-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dm-fig-paths path { fill: none; stroke: #111; stroke-width: 1.1; }
.dm-fig-svg marker path { fill: #111; stroke: none; }
.dm-fig-box rect { fill: #fff; stroke: #111; stroke-width: 1.1; }
.dm-fig-lbl text { font: 400 12.5px Arial, Helvetica, sans-serif; text-anchor: middle; dominant-baseline: central; fill: #111; }
.dm-fig-h text { font: 400 10.5px Arial, Helvetica, sans-serif; text-anchor: middle; fill: #111; }
/* phones: the page is ~300px wide, so the figure text is scaled up to match the body text */
@container (max-width: 420px) {
  .dm-fig-lbl text { font-size: 15.5px; }
  .dm-fig-h text { font-size: 13px; }
  .dm-fig-good .dm-fig-svg { width: 100%; }
}

/* after: kept with its caption, centred, right after the paragraph that cites it */
.dm-fig-good { margin: .9em 0 1em; }
.dm-fig-good .dm-fig-svg { width: 88%; margin-inline: auto; }
#p-fig .dm-fig-cap { text-align: left; font-size: 1em; margin: 0 0 .8em; line-height: 1.4; }
.dm-fig-cap b { display: block; font-weight: 700; margin-bottom: .35em; }
.dm-fig-cap i { font-style: italic; }
#p-fig .dm-fig-note { font-size: .86em; line-height: 1.4; text-align: left; hyphens: none; margin: .75em 0 0; }
.dm-fig-live { border-radius: 2px; background: var(--blue-soft); box-shadow: 0 0 0 .14em var(--blue-soft), 0 .16em 0 .14em rgba(41, 111, 240, .45); }

/* before: floated to the top, left-aligned, its caption stranded further down */
/* pasted as a framed picture that sticks out past the right margin */
#p-fig .dm-fig-bad { padding-right: 3cqw; } /* text keeps the normal 10cqw margin; only the figure reaches into it */
#p-fig .dm-fig-bad > :not(.dm-fig-fig):not(.folio) { margin-right: 7cqw; }
.dm-fig-bad .dm-fig-fig { margin: 0 0 1.2em; padding: 1.4cqw 2cqw; box-sizing: border-box; background: #fcfcfc; box-shadow: 0 0 0 1px #c9c9c9; }
/* the wrong figure numbers, underlined in red in the before only */
.dm-fig-wrong { text-decoration: underline wavy #e5484d 1px; text-underline-offset: .18em; text-decoration-skip-ink: none; }
.dm-fig-capbad { font-size: .92em; line-height: 1.35; margin-top: .4em; }
.dm-fig-srcbad { font-size: .8em; line-height: 1.35; font-style: italic; margin-top: .15em; }

/* the List of figures: only its top is shown, faded at the bottom */
#p-fig .dm-fig-lof { aspect-ratio: 210 / 84; padding: 6.5cqw 10cqw 0; font-size: 2.42cqw; -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
#p-fig .dm-fig-lof .t { margin-bottom: 1em; }
#p-fig .dm-fig-lof .r { margin: .22em 0; }
#p-fig .toc-bad.dm-fig-lof .t { margin-bottom: .8em; }
.dm-fig-no { display: inline-block; min-width: 5.4em; }

/* phones: the page nearly edge to edge and larger type (body about 9.4px at 360px), as in the References demo */
@media (max-width: 599px) {
  #p-fig .compare { padding: 44px 8px 12px; }
  #p-fig .dm-fig-pg { font-size: 3.1cqw; padding: 7cqw 7cqw 8cqw; aspect-ratio: 210 / 278; }
  #p-fig .dm-fig-lof { font-size: 3.1cqw; padding: 6cqw 7cqw 0; aspect-ratio: 210 / 118; -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
  /* a wrapped list-of-figures title lines up under the title, not under "Figure 2.1" */
  #p-fig .after .dm-fig-lof .r > span:first-child { padding-left: 5.4em; text-indent: -5.4em; }
  #p-fig .after .dm-fig-lof .r { align-items: last baseline; } /* dots and page number on the last line, as Word does */
  #p-fig .dm-fig-no { text-indent: 0; }
  #p-fig .dm-fig-note { font-size: .92em; }
  #p-fig .dm-fig-srcbad { font-size: .9em; }
  #p-fig .dm-fig-bad > :not(.dm-fig-fig):not(.folio) { margin-right: 4cqw; }
}

/* four tabs instead of three: tighten them on small phones so the bar never overflows (min 34px tall targets kept) */
@media (max-width: 430px) { .tabs { gap: 2px; } .tabs button { padding: 0 9px; font-size: 13.5px; } }
@media (max-width: 340px) { .tabs button { padding: 0 7px; font-size: 13px; } }


/* ===================================================== demo: ref */
/* ---------- References demo (#p-ref) ---------- */
/* One size drives the entries and the margin marks: --fs is the entry font size in cqw, so each mark stays centred on its line at every width. */
#p-ref .pg { aspect-ratio: 210 / 240; }
.dm-ref { --fs: 2.4cqw; --lh: 1.45; }
/* a real 0.5 in hanging indent: 0.5 in of a 6.5 in text block = 7.7% of the 80cqw measure */
.dm-ref p { padding-left: 6.15cqw; text-indent: -6.15cqw; margin: 0 0 .62em; line-height: var(--lh); font-size: var(--fs); }
.dm-ref .t { margin-bottom: 1.15em; }
.dm-ref .run { margin-bottom: 1.8em; }
/* before: entries pasted from three places, no hanging indent, looser gaps between entries */
.dm-ref-bad p { padding-left: 0; text-indent: 0; margin-bottom: 1em; }
.dm-ref-bad .dm-ref-tab { text-indent: 6.15cqw; }
.dm-ref-bad .dm-ref-pasted { font-family: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
/* margin marks: each mark sits inline right before the words it points at. With top:auto it keeps the vertical
   position of that line (its static position) whatever the wrapping (inline-grid keeps the inline static position; a block-level mark would drop to the next line in Chrome), and left pulls it into the margin. */
.dm-ref .mark.dm-ref-at { display: inline-grid; top: auto; left: -16px; margin-top: calc(var(--fs) * var(--lh) / 2 - 9px); }
/* keeps a mark on the same line as the first characters it points at */
.dm-ref-nw { white-space: nowrap; }
/* the exact words the mark is about, underlined the way Word flags a problem */
.dm-ref-x { text-decoration: underline wavy rgba(229, 72, 77, .9); text-decoration-thickness: .07em; text-underline-offset: .24em; text-decoration-skip-ink: none; }
/* the knob sits low, in the empty strip above the page number, so it never covers the marked words */
#p-ref .compare .knob { top: 92%; }
@media (max-width: 599px) { #p-ref .compare .knob { top: 83%; } }
/* phones: fewer entries, bigger text, the page nearly edge to edge */
@media (max-width: 599px) {
  #p-ref .compare { padding: 44px 8px 12px; }
  #p-ref .pg { aspect-ratio: 210 / 276; }
  .dm-ref { --fs: 3.2cqw; }
  .dm-ref .run { font-size: 2.6cqw; }
  .dm-ref .t { font-size: 3.6cqw; }
  .dm-ref .folio { font-size: 2.8cqw; }
  .dm-ref .dm-ref-wide { display: none; }
  /* fix 1 names the Fornell entries, which are hidden on phones */
  .dm-ref-wide-txt { display: none; }
}

/* ===================================================== r3: about (credentials) */
/* hero byline: one line where the column allows; on the narrow two-column hero (960-1199px) the name sits above the role */
@media (min-width: 960px) and (max-width: 1199px) { .byline .r { display: block; } .byline .r::first-letter { text-transform: uppercase; } .byline .c { display: none; } }
.about .h2 { margin: 18px 0 20px; }
.about .who { display: grid; gap: 3px; margin-bottom: 22px; font-size: 15px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.about .who b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
/* Credentials showcase (.sc). Plain styles = the static version (no JavaScript, reduced motion): the four points in a
   tight 2x2, no pictures. ff.js adds .sc-live, which turns it into one card that shows one point at a time, each with a
   small mock (same language as the "How it works" mocks). All four captions stay in the DOM as text; mocks are aria-hidden. */
.sc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; border-top: 1px dashed var(--line-2); }
.sc-s { min-width: 0; padding: 10px 12px 10px 0; border-bottom: 1px dashed var(--line-2); }
.sc-art, .sc-nav { display: none; }
.sc-l { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.sc-t { margin-top: 4px; font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.sc-d { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
/* the headings say the point on their own, so the static version drops the labels to stay shorter than the old grid;
   on phones each point is one run-on line (heading, then the detail) in a single column */
.sc:not(.sc-live) .sc-l { display: none; }
.sc:not(.sc-live) .sc-t { margin-top: 0; }
@media (max-width: 599px) {
  .sc:not(.sc-live) { grid-template-columns: minmax(0, 1fr); }
  .sc:not(.sc-live) .sc-s { padding: 7px 0; font-size: 13.5px; line-height: 1.42; }
  .sc:not(.sc-live) :is(.sc-t, .sc-d) { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
  .sc:not(.sc-live) .sc-t::after { content: " "; }
}

/* live: one card, the mock on a dotted canvas on the left, the caption and a four-part progress bar on the right */
.sc.sc-live { grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 26px; padding: 8px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.sc-live .sc-s { display: contents; }
.sc-live .sc-art { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; min-height: 138px; border-radius: 8px; overflow: hidden; opacity: 0;
  background: #f5f5f5 radial-gradient(rgba(0, 0, 0, .075) .8px, transparent 1.1px) 0 0 / 12px 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045); }
.sc-live .sc-cap { grid-column: 2; grid-row: 1; align-self: start; min-width: 0; padding: 18px 10px 12px 0; opacity: 0; pointer-events: none; }
.sc-live .sc-l { display: none; }   /* the titles carry the point on their own; the labels are for the static grid */
.sc-live .sc-t { margin-top: 0; }
.sc-live .on .sc-cap { pointer-events: auto; }
.sc-live .sc-nav { grid-column: 2; grid-row: 2; display: flex; gap: 6px; padding: 0 10px 6px 0; }
.sc-b { flex: 1; display: grid; align-items: center; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.sc-b i { position: relative; display: block; height: 3px; border-radius: 2px; background: #e6e6e6; overflow: hidden; }
.sc-b i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.sc-b[data-s="past"] i::after { transform: none; }
.sc-b:not([data-s="now"]) i::after { transition: transform 420ms var(--ease-out); }   /* on wrap or a jump back, full segments ease out instead of snapping */
.sc-b[data-s="now"] i::after { animation: sc-fill var(--sc-dur, 4.8s) linear both; }
.sc-hold .sc-b[data-s="now"] i::after { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .sc-b:hover i { background: #d6d6d6; } }
@keyframes sc-fill { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 599px) {
  .sc.sc-live { grid-template-columns: 136px minmax(0, 1fr); column-gap: 12px; padding: 6px; }
  .sc-live .sc-art { min-height: 104px; }
  .sc-live .sc-comp { transform: scale(.72); margin: -17px -26px; }
  .sc-live :is(.sc-jm, .sc-au, .sc-dh em) { display: none; }   /* micro text would be unreadable at this scale */
  .sc-live .sc-cap { padding: 11px 6px 8px 0; }
  .sc-live .sc-nav { padding: 0 6px 2px 0; gap: 5px; }
  .sc-live .sc-t { font-size: 15px; line-height: 1.3; }
  .sc-live .sc-d { margin-top: 2px; font-size: 12.5px; line-height: 1.42; }
  .sc-t { font-size: 16px; }
  .sc-d { font-size: 13px; }
}

/* switching: the outgoing point fades up and out, the incoming one fades in while its mock plays once */
.sc-live .on .sc-art { animation: sc-art-in 360ms var(--ease-out) 150ms both; }
.sc-live .off .sc-art { animation: sc-art-out 200ms ease-in both; }
.sc-live .on .sc-cap { animation: sc-cap-in 560ms var(--ease-out) 190ms both; }
.sc-live .off .sc-cap { animation: sc-cap-out 200ms ease-in both; }
@keyframes sc-art-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-art-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sc-cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sc-cap-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }
.sc-live :is(.on, .off) .sc-comp * { animation-duration: 560ms; animation-timing-function: var(--ease-out); animation-fill-mode: both; animation-delay: calc(var(--d, 0ms) + 150ms); }

.sc-comp { position: relative; flex: none; width: 184px; height: 124px; font-family: var(--sans); letter-spacing: -.005em; color: var(--ink); }
.sc-comp > *, .sc-comp span, .sc-comp i, .sc-comp b, .sc-comp em { display: block; font-style: normal; }
.sc-tk { display: grid !important; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 1px 2px rgba(0, 0, 0, .16); }
.sc-tk svg { display: block; width: 12px; height: 12px; }

/* 1 teaching: the next slide of a lecture comes in, its points and chart build, the slide counter ticks on */
.sc-sl { position: absolute; left: 12px; top: 12px; width: 156px; height: 100px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 8px -2px rgba(0, 0, 0, .09); }
.sc-sl-b { background: #fcfcfc; transform: translate(9px, -7px) scale(.94); transform-origin: 100% 0; }
.sc-sl-f { padding: 9px 10px; }
.sc-sh { display: flex !important; justify-content: space-between; align-items: center; height: 8px; font: 500 7px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sc-sh em { position: relative; width: 12px; height: 8px; overflow: hidden; letter-spacing: 0; }
.sc-sh em i { position: absolute; right: 0; top: 0; }
.sc-n1 { opacity: 0; }
.sc-stt { margin-top: 7px; font-size: 12px; line-height: 14px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.sc-bul { position: absolute !important; left: 19px; top: 46px; width: 62px; }
.sc-bul i { position: relative; height: 3px; margin-bottom: 9px; border-radius: 1px; background: #d6d6d6; transform-origin: left; }
.sc-bul i::before { content: ""; position: absolute; left: -8px; top: -.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.sc-bul i:nth-child(2) { width: 78%; } .sc-bul i:nth-child(3) { width: 90%; }
.sc-ch { position: absolute !important; right: 12px; bottom: 16px; width: 52px; height: 42px; display: flex !important; align-items: flex-end; justify-content: space-between; padding: 0 3px; border-bottom: 1px solid #cfcfcf; }
.sc-ch i { width: 8px; border-radius: 1.5px 1.5px 0 0; background: #dadada; transform-origin: bottom; }
.sc-ch i:nth-child(1) { height: 14px; } .sc-ch i:nth-child(2) { height: 22px; } .sc-ch i:nth-child(3) { height: 18px; } .sc-ch i:nth-child(4) { height: 34px; background: var(--blue); }
.sc-prg { position: absolute !important; left: 10px; right: 10px; bottom: 7px; height: 2px; border-radius: 1px; background: #eeeeee; overflow: hidden; }
.sc-prg i { height: 100%; background: #b9b9b9; transform: scaleX(.333); transform-origin: left; }

/* 2 research: articles fan out, the front page lays out, then "Indexed in Scopus" slides in */
.sc-pg { position: absolute; left: 44px; top: 4px; width: 86px; height: 116px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 8px -2px rgba(0, 0, 0, .09); transform-origin: 50% 100%; }
.sc-pg2 { background: #fcfcfc; transform: rotate(-6deg) translateX(-4px); }
.sc-pg3 { background: #f9f9f9; transform: rotate(-12deg) translateX(-8px); }
.sc-pg1 > * { position: absolute; }
.sc-jm { left: 8px; top: 8px; font: 500 5.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sc-rule { left: 8px; right: 8px; top: 17px; border-top: .75px solid #3a3a3a; }
.sc-ti { left: 8px; right: 12px; top: 23px; height: 4px; border-radius: 1px; background: #2b2b2b; transform-origin: left; }
.sc-ti2 { top: 30px; right: 32px; }
.sc-au { left: 8px; top: 39px; font: 500 6px/1 var(--sans); letter-spacing: 0; color: var(--blue-ink); white-space: nowrap; }
.sc-abs { left: 8px; right: 8px; top: 50px; height: 20px; border-radius: 2px; background: #f3f3f3 repeating-linear-gradient(#d9d9d9 0 1.5px, transparent 1.5px 4.5px) 4px 4px / calc(100% - 8px) 13px no-repeat; }
.sc-col { left: 8px; top: 76px; width: 32px; height: 31px; background: repeating-linear-gradient(#d6d6d6 0 1.5px, transparent 1.5px 4.5px); }
.sc-col2 { left: auto; right: 8px; height: 22px; }
.sc-idx { position: absolute; right: 4px; top: 84px; display: flex !important; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(41, 111, 240, .22), 0 6px 14px -6px rgba(0, 0, 0, .18); font-size: 10px; font-weight: 500; color: var(--blue-ink); white-space: nowrap; }
.sc-idx .sc-tk { width: 14px; height: 14px; }
.sc-idx .sc-tk svg { width: 11px; height: 11px; }

/* 3 degrees: three records stack in, each honour is marked and ticked */
.sc-dc { position: absolute; left: 4px; right: 4px; height: 32px; display: flex !important; align-items: center; gap: 8px; padding: 0 9px 0 6px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px -2px rgba(0, 0, 0, .09); }
.sc-dc:nth-child(1) { top: 5px; } .sc-dc:nth-child(2) { top: 46px; } .sc-dc:nth-child(3) { top: 87px; }
.sc-dd { display: grid !important; place-items: center; flex: none; width: 28px; height: 20px; border-radius: 4px; background: #f2f2f2; font: 500 8.5px/1 var(--mono); letter-spacing: 0; color: var(--ink-2); }
.sc-dh { flex: 1; min-width: 0; }
.sc-dh b { position: relative; width: max-content; font-size: 10.5px; line-height: 13px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.sc-dh b span { position: relative; }
.sc-hi { position: absolute; left: -3px; right: -3px; top: 0; bottom: 0; border-radius: 3px; background: var(--blue-soft); box-shadow: inset 0 0 0 .75px rgba(41, 111, 240, .25); transform-origin: left; }
.sc-dh em { margin-top: 1px; font-size: 8px; line-height: 10px; color: var(--ink-3); white-space: nowrap; }

/* 4 formatting: a messy page snaps to the margins, Word then LaTeX, and eight years fill in */
.sc-fp { position: absolute; left: 4px; top: 3px; width: 86px; height: 118px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 8px -2px rgba(0, 0, 0, .09); }
.sc-fp > * { position: absolute; }
.sc-mg { left: 9px; top: 5px; bottom: 5px; border-left: 1px dashed rgba(41, 111, 240, .55); opacity: 0; }
.sc-mg2 { left: auto; right: 9px; }
.sc-fh { left: 9px; top: 11px; width: 44px; height: 5px; border-radius: 1px; background: #262626; }
.sc-fl { left: 9px; right: 9px; top: 24px; }
.sc-fl i { height: 2.5px; margin-bottom: 4.5px; border-radius: 1px; background: #cfcfcf; transform-origin: left; }
.sc-fl i:nth-child(4), .sc-fl i:nth-child(11) { width: 62%; }
.sc-fl i:nth-child(5) { margin-top: 5px; }
.sc-seg { position: absolute; left: 102px; top: 6px; width: 80px; height: 22px; display: grid !important; grid-template-columns: 1fr 1fr; border-radius: 6px; background: #ececec; font-size: 9.5px; font-weight: 500; color: var(--ink-2); }
.sc-seg span { position: relative; display: grid !important; place-items: center; }
.sc-th { position: absolute; left: 2px; top: 2px; width: calc(50% - 2px); height: 18px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .12); transform: translateX(100%); }
.sc-yr { position: absolute; left: 103px; top: 42px; display: flex !important; align-items: baseline; gap: 4px; }
.sc-yr b { font-size: 36px; line-height: 36px; font-weight: 600; letter-spacing: -.05em; }
.sc-yr span { font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.sc-yt { position: absolute; left: 103px; top: 94px; width: 78px; display: flex !important; gap: 3px; }
.sc-yt i { position: relative; flex: 1; height: 6px; border-radius: 1.5px; background: #e6e6e6; overflow: hidden; }
.sc-yt i::after { content: ""; position: absolute; inset: 0; background: var(--blue); }

/* the mock timelines (each plays once when its point comes in; the plain styles above are the end state) */
.sc-live :is(.on, .off) .sc-sl-b { animation-name: sc-tc-back; animation-duration: 640ms; }
.sc-live :is(.on, .off) .sc-sl-f { animation-name: sc-tc-front; animation-duration: 640ms; }
.sc-live :is(.on, .off) .sc-stt { animation-name: sc-up; --d: 260ms; }
.sc-live :is(.on, .off) .sc-bul i { animation-name: sc-grow-x; }
.sc-live :is(.on, .off) .sc-bul i:nth-child(1) { --d: 380ms; } .sc-live :is(.on, .off) .sc-bul i:nth-child(2) { --d: 470ms; } .sc-live :is(.on, .off) .sc-bul i:nth-child(3) { --d: 560ms; }
.sc-live :is(.on, .off) .sc-ch i { animation-name: sc-grow-y; animation-duration: 640ms; }
.sc-live :is(.on, .off) .sc-ch i:nth-child(1) { --d: 520ms; } .sc-live :is(.on, .off) .sc-ch i:nth-child(2) { --d: 590ms; } .sc-live :is(.on, .off) .sc-ch i:nth-child(3) { --d: 660ms; } .sc-live :is(.on, .off) .sc-ch i:nth-child(4) { --d: 730ms; }
.sc-live :is(.on, .off) .sc-n1 { animation-name: sc-n-out; --d: 300ms; }
.sc-live :is(.on, .off) .sc-n2 { animation-name: sc-n-in; --d: 300ms; }
.sc-live :is(.on, .off) .sc-prg i { animation-name: sc-prg; animation-duration: 700ms; --d: 260ms; animation-timing-function: var(--ease-in-out); }
@keyframes sc-tc-back { from { transform: none; } to { transform: translate(9px, -7px) scale(.94); } }
@keyframes sc-tc-front { from { opacity: 0; transform: translateX(22px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sc-up { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes sc-grow-x { from { opacity: 0; transform: scaleX(.2); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes sc-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes sc-n-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes sc-n-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sc-prg { from { transform: scaleX(.25); } to { transform: scaleX(.333); } }

.sc-live :is(.on, .off) .sc-pg1 { animation-name: sc-pg-in; }
.sc-live :is(.on, .off) .sc-pg2 { animation-name: sc-fan2; animation-duration: 700ms; --d: 160ms; }
.sc-live :is(.on, .off) .sc-pg3 { animation-name: sc-fan3; animation-duration: 760ms; --d: 200ms; }
.sc-live :is(.on, .off) .sc-ti { animation-name: sc-grow-x; --d: 340ms; }
.sc-live :is(.on, .off) .sc-ti2 { --d: 410ms; }
.sc-live :is(.on, .off) :is(.sc-jm, .sc-rule) { animation-name: sc-fade; --d: 260ms; }
.sc-live :is(.on, .off) .sc-au { animation-name: sc-up; --d: 500ms; }
.sc-live :is(.on, .off) .sc-abs { animation-name: sc-fade; --d: 560ms; }
.sc-live :is(.on, .off) .sc-col { animation-name: sc-fade; --d: 620ms; }
.sc-live :is(.on, .off) .sc-idx { animation-name: sc-tag-in; animation-duration: 620ms; --d: 900ms; }
.sc-live :is(.on, .off) .sc-idx .sc-tk { animation-name: sc-pop; animation-duration: 420ms; --d: 1180ms; }
@keyframes sc-pg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sc-fan2 { from { transform: none; } to { transform: rotate(-6deg) translateX(-4px); } }
@keyframes sc-fan3 { from { transform: none; } to { transform: rotate(-12deg) translateX(-8px); } }
@keyframes sc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-tag-in { from { opacity: 0; transform: translateX(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.sc-live :is(.on, .off) .sc-dc { animation-name: sc-card-in; }
.sc-live :is(.on, .off) .sc-dc:nth-child(2) { --d: 160ms; } .sc-live :is(.on, .off) .sc-dc:nth-child(3) { --d: 320ms; }
.sc-live :is(.on, .off) .sc-hi { animation-name: sc-mark; animation-duration: 480ms; animation-timing-function: var(--ease-in-out); }
.sc-live :is(.on, .off) .sc-dc:nth-child(1) .sc-hi { --d: 520ms; } .sc-live :is(.on, .off) .sc-dc:nth-child(2) .sc-hi { --d: 700ms; } .sc-live :is(.on, .off) .sc-dc:nth-child(3) .sc-hi { --d: 880ms; }
.sc-live :is(.on, .off) .sc-dc .sc-tk { animation-name: sc-pop; animation-duration: 420ms; }
.sc-live :is(.on, .off) .sc-dc:nth-child(1) .sc-tk { --d: 760ms; } .sc-live :is(.on, .off) .sc-dc:nth-child(2) .sc-tk { --d: 940ms; } .sc-live :is(.on, .off) .sc-dc:nth-child(3) .sc-tk { --d: 1120ms; }
@keyframes sc-card-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sc-mark { from { transform: scaleX(0); } to { transform: none; } }

.sc-live :is(.on, .off) .sc-fp { animation-name: sc-pg-in; }
.sc-live :is(.on, .off) .sc-fh { animation-name: sc-snap-h; animation-duration: 520ms; --d: 560ms; }
.sc-live :is(.on, .off) .sc-fl i { animation-name: sc-snap; animation-duration: 520ms; }
.sc-live :is(.on, .off) .sc-fl i:nth-child(1) { --d: 600ms; --x: 5px; --w: 1.06; } .sc-live :is(.on, .off) .sc-fl i:nth-child(2) { --d: 625ms; --x: -3px; --w: .92; }
.sc-live :is(.on, .off) .sc-fl i:nth-child(3) { --d: 650ms; --x: 7px; --w: .88; } .sc-live :is(.on, .off) .sc-fl i:nth-child(4) { --d: 675ms; --x: 2px; --w: 1.2; }
.sc-live :is(.on, .off) .sc-fl i:nth-child(5) { --d: 700ms; --x: 9px; --w: .9; } .sc-live :is(.on, .off) .sc-fl i:nth-child(6) { --d: 725ms; --x: -2px; --w: 1.04; }
.sc-live :is(.on, .off) .sc-fl i:nth-child(7) { --d: 750ms; --x: 4px; --w: .86; } .sc-live :is(.on, .off) .sc-fl i:nth-child(8) { --d: 775ms; --x: 8px; --w: .95; }
.sc-live :is(.on, .off) .sc-fl i:nth-child(9) { --d: 800ms; --x: -4px; --w: 1.05; } .sc-live :is(.on, .off) .sc-fl i:nth-child(10) { --d: 825ms; --x: 3px; --w: .9; }
.sc-live :is(.on, .off) .sc-fl i:nth-child(11) { --d: 850ms; --x: 6px; --w: 1.3; }
.sc-live :is(.on, .off) .sc-mg { animation-name: sc-guide; animation-duration: 1300ms; --d: 380ms; animation-timing-function: ease; }
.sc-live :is(.on, .off) .sc-seg { animation-name: sc-up; --d: 120ms; }
.sc-live :is(.on, .off) .sc-th { animation-name: sc-thumb; animation-duration: 1100ms; --d: 300ms; animation-timing-function: var(--ease-in-out); }
.sc-live :is(.on, .off) .sc-yr { animation-name: sc-up; --d: 380ms; }
.sc-live :is(.on, .off) .sc-yt i::after { animation: sc-year 320ms var(--ease-out) both; animation-delay: calc(970ms + var(--n) * 70ms); }
.sc-yt i:nth-child(1) { --n: 0; } .sc-yt i:nth-child(2) { --n: 1; } .sc-yt i:nth-child(3) { --n: 2; } .sc-yt i:nth-child(4) { --n: 3; }
.sc-yt i:nth-child(5) { --n: 4; } .sc-yt i:nth-child(6) { --n: 5; } .sc-yt i:nth-child(7) { --n: 6; } .sc-yt i:nth-child(8) { --n: 7; }
@keyframes sc-snap-h { from { opacity: .45; transform: translateX(8px) scaleX(.8); } to { opacity: 1; transform: none; } }
@keyframes sc-snap { from { transform: translateX(var(--x, 0)) scaleX(var(--w, 1)); } to { transform: none; } }
@keyframes sc-guide { 0% { opacity: 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-thumb { 0%, 10% { transform: none; } 55%, 100% { transform: translateX(100%); } }
@keyframes sc-year { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }
/* the profile links on one row; the email sits under them, aligned with the text */
.about .links .btn-ghost { flex: 0 0 auto; margin-right: 100%; height: 32px; padding: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
@media (max-width: 599px) {
  .about .who { font-size: 14px; }
  .about .links { gap: 8px; }
  .about .links .btn-secondary { flex: 1 1 auto; padding: 0 14px; font-size: 14px; }
}

/* ===================================================== r3: pricing */
/* Pay-line items wrap to two lines: keep the tick on the first line, not floating between them. */
.pay-line span { align-items: flex-start; }
.pay-line span .tick { flex: none; margin-top: 3px; }

/* ===================================================== r3: how it works (step animations) */
/* A small mock screen at the top of each step card (.sx-). The plain styles are the finished state, which is what
   readers without JavaScript or with reduced motion see; the loops only run under .js + no-preference, and only
   while the card is on screen (ff.js adds .sx-run). Only transform and opacity move. */
.step .sx { position: relative; height: 156px; margin: -16px -16px 22px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: #f5f5f5 radial-gradient(rgba(0, 0, 0, .075) .8px, transparent 1.1px) 0 0 / 12px 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045); }
.sx-comp { position: relative; width: 204px; height: 132px; font-family: var(--sans); letter-spacing: -.005em; }
.sx-win { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 8px -2px rgba(0, 0, 0, .09); }
.sx svg { display: block; flex: none; }

/* 1 send it: two files land in the upload box, the bar fills, a tick */
.sx-upw { position: absolute; left: 4px; right: 4px; top: 8px; padding: 8px; }
.sx-dz { position: relative; display: grid; gap: 6px; align-content: center; height: 78px; padding: 0 6px; border-radius: 6px; border: 1px dashed #cdcdcd; }
.sx-dzb { position: absolute; inset: -1px; border-radius: 6px; border: 1px dashed var(--blue); background: rgba(41, 111, 240, .045); opacity: 0; }
.sx-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: var(--ink-3); opacity: 0; }
.sx-hint svg { width: 15px; height: 15px; color: #9a9a9a; }
.sx-file { position: relative; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 7px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 3px -1px rgba(0, 0, 0, .1); font-size: 10px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sx-file .sx-ic { width: 11px; height: 13px; }
.sx-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sx-file em { font: 400 9px/1 var(--mono); font-style: normal; color: var(--ink-3); letter-spacing: 0; }
.sx-prog { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.sx-bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: #ededed; overflow: hidden; }
.sx-bar i { position: absolute; inset: 0; border-radius: 2px; background: var(--blue); transform-origin: left; }
.sx-st { position: relative; width: 58px; height: 15px; font-size: 10px; font-weight: 500; }
.sx-pct, .sx-ok { position: absolute; right: 0; top: 0; height: 15px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.sx-pct { color: var(--ink-3); opacity: 0; }
.sx-ok { color: var(--ink); transform-origin: right center; }
.sx-ok svg { width: 13px; height: 13px; }

/* 2 fixed quote: the quote assembles line by line, then "No obligation" */
.sx-quote { position: absolute; left: 8px; right: 8px; top: -4px; bottom: -4px; padding: 10px 12px; }
.sx-qh { display: flex; align-items: center; justify-content: space-between; height: 17px; }
.sx-qh > span { font: 500 9px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.sx-pill { display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: 999px; font-size: 9.5px; font-weight: 500; color: var(--blue-ink); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .2); }
.sx-price { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; }
.sx-price b { font-size: 23px; line-height: 26px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sx-price span { font-size: 10px; color: var(--ink-3); }
.sx-qr { display: flex; justify-content: space-between; align-items: center; height: 20px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 3px; font-size: 10px; }
.sx-qr span { color: var(--ink-3); }
.sx-qr b { font-weight: 500; }
.sx-scope { display: grid; gap: 2px; margin-top: 4px; }
.sx-scope li { display: flex; align-items: center; gap: 5px; font-size: 10px; line-height: 13px; color: var(--ink-2); white-space: nowrap; }
.sx-scope svg { width: 11px; height: 11px; color: var(--blue); }

/* 3 I format it: a page whose heading, line spacing and caption snap into the guideline style */
.sx-page { position: absolute; left: 0; top: 0; width: 116px; height: 132px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 8px -2px rgba(0, 0, 0, .09); }
.sx-pin { position: absolute; inset: 0; color: #111; }
.sx-pin > * { position: absolute; }
.sx-ln { left: 10px; right: 10px; height: 2.5px; border-radius: 1px; background: #cbcbcb; }
.sx-fm .sx-h { top: 10px; white-space: nowrap; line-height: 1; }
.sx-h-a { left: 10px; font: 700 9.5px/1 var(--doc); letter-spacing: 0; }
.sx-h-b { left: 17px; font: 700 8.5px/1 Arial, Helvetica, sans-serif; letter-spacing: 0; text-decoration: underline; opacity: 0; }
.sx-fm .sx-ln1 { top: 26px; } .sx-fm .sx-ln2 { top: 33px; } .sx-fm .sx-ln3 { top: 40px; } .sx-fm .sx-ln4 { top: 47px; right: 36px; }
.sx-cap { left: 10px; font: 6.5px/8px var(--doc); letter-spacing: 0; white-space: nowrap; }
.sx-cap-a { top: 57px; display: grid; }
.sx-cap-a i { font-style: italic; }
.sx-cap-b { top: 99px; font: 6px/8px Arial, Helvetica, sans-serif; color: #444; opacity: 0; }
.sx-fig { top: 75px; left: 10px; right: 10px; height: 36px; display: flex; align-items: flex-end; justify-content: space-around; padding: 0 8px 4px; border: .75px solid #9a9a9a; background: #fff; }
.sx-fig i { width: 12px; background: #d4d4d4; }
.sx-fig i:nth-child(1) { height: 12px; } .sx-fig i:nth-child(2) { height: 20px; } .sx-fig i:nth-child(3) { height: 26px; background: var(--blue); opacity: .75; } .sx-fig i:nth-child(4) { height: 16px; }
.sx-folio { left: 0; right: 0; bottom: 5px; text-align: center; font: 6px/1 var(--doc); color: #555; }
.sx-tag { position: absolute; left: 125px; display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 8px 0 3px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(41, 111, 240, .22), 0 1px 3px -1px rgba(0, 0, 0, .08); font-size: 10px; font-weight: 500; color: var(--blue-ink); white-space: nowrap; }
.sx-tag b { width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; font: 600 8px/1 var(--mono); color: #fff; background: var(--blue); }
.sx-t1 { top: 5px; } .sx-t2 { top: 28px; } .sx-t3 { top: 56px; }
.sx-cur { position: absolute; left: 0; top: 0; width: 13px; height: 17px; opacity: 0; transform-origin: 1px 1px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .2)); }

/* 4 check and submit: two comments resolved, then submitted */
.sx-ck .sx-h { top: 10px; left: 10px; font: 700 9px/1 var(--doc); letter-spacing: 0; white-space: nowrap; }
.sx-ck .sx-ln1 { top: 24px; } .sx-ck .sx-ln2 { top: 31px; right: 30px; } .sx-ck .sx-ln3 { top: 100px; right: 42px; }
.sx-tb { top: 40px; left: 10px; right: 10px; height: 31px; border-top: .75px solid #8a8a8a; border-bottom: .75px solid #8a8a8a; }
.sx-tb::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; border-top: .5px solid #b5b5b5; }
.sx-tb i { position: absolute; left: 3px; right: 3px; height: 2.5px; border-radius: 1px; background: #d0d0d0; }
.sx-tb .sx-th { top: 3.5px; }
.sx-tb .sx-th-a { background: #4a4a4a; }
.sx-tb .sx-th-b { opacity: 0; }
.sx-tb i:nth-of-type(3) { top: 14px; } .sx-tb i:nth-of-type(4) { top: 20px; } .sx-tb i:nth-of-type(5) { top: 26px; right: 30px; }
.sx-qb { top: 78px; left: 10px; right: 10px; height: 15px; }
.sx-qb i { position: absolute; left: 9px; right: 9px; height: 2.5px; border-radius: 1px; background: #cbcbcb; }
.sx-qb i:nth-of-type(1) { top: 0; } .sx-qb i:nth-of-type(2) { top: 6px; } .sx-qb i:nth-of-type(3) { top: 12px; right: 30px; }
.sx-hl { position: absolute; left: -3px; right: -3px; border-radius: 2px; background: rgba(41, 111, 240, .16); box-shadow: inset 0 0 0 .75px rgba(41, 111, 240, .4); opacity: 0; }
.sx-hl1 { top: -2px; height: 12px; }
.sx-hl2 { top: -3px; height: 21px; }
.sx-cm { position: absolute; left: 124px; width: 80px; display: flex; align-items: flex-start; gap: 5px; padding: 6px 6px 6px 5px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 3px -1px rgba(0, 0, 0, .1); font-size: 9.5px; line-height: 1.25; color: var(--ink); }
.sx-cm1 { top: 30px; } .sx-cm2 { top: 70px; }
.sx-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.25px #c4c4c4; }
.sx-dot svg { width: 12px; height: 12px; }
.sx-ct { opacity: .5; }
.sx-sub { position: absolute; left: 0; right: 88px; bottom: 9px; width: max-content; margin-inline: auto; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px 0 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 6px 16px -6px rgba(0, 0, 0, .2); font-size: 11.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.sx-sub svg { width: 15px; height: 15px; }

/* a roomier stage (one or two columns) gets a slightly larger mock */
@media (max-width: 1039px) { .sx-comp { transform: scale(1.12); } .step .sx { height: 172px; } }

@media screen and (prefers-reduced-motion: no-preference) {
  .js .sx { --dur: 5.4s; --sxd: calc(var(--i, 0) * 300ms); }
  .js .sx-up { --dur: 5.2s; } .js .sx-qt { --dur: 5.6s; } .js .sx-fm { --dur: 6.6s; } .js .sx-ck { --dur: 6s; }
  .js .sx * { animation-duration: var(--dur); animation-delay: var(--sxd); animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: var(--ease-out); animation-play-state: paused; }
  .js .sx.sx-run * { animation-play-state: running; }

  .js .sx-dzb { animation-name: sx-up-dz; }
  .js .sx-hint { animation-name: sx-up-hint; }
  .js .sx-f1 { animation-name: sx-up-f1; }
  .js .sx-f2 { animation-name: sx-up-f2; }
  .js .sx-bar i { animation-name: sx-up-bar; animation-timing-function: var(--ease-in-out); }
  .js .sx-pct { animation-name: sx-up-pct; }
  .js .sx-ok { animation-name: sx-up-ok; }

  .js .sx-quote { animation-name: sx-qt-win; }
  .js .sx-qh > span { animation-name: sx-qt-a; }
  .js .sx-price { animation-name: sx-qt-b; }
  .js .sx-qr { animation-name: sx-qt-c; }
  .js .sx-scope li:nth-child(1) { animation-name: sx-qt-d1; }
  .js .sx-scope li:nth-child(2) { animation-name: sx-qt-d2; }
  .js .sx-scope li:nth-child(3) { animation-name: sx-qt-d3; }
  .js .sx-pill { animation-name: sx-qt-pill; }

  .js .sx-fm .sx-pin, .js .sx-ck .sx-pin { animation-name: sx-fade; }
  .js .sx-cur { animation-name: sx-fm-cur; animation-timing-function: var(--ease-in-out); }
  .js .sx-h-b { animation-name: sx-fm-hb; }
  .js .sx-h-a { animation-name: sx-fm-ha; }
  .js .sx-fm .sx-ln2 { animation-name: sx-fm-l2; }
  .js .sx-fm .sx-ln3 { animation-name: sx-fm-l3; }
  .js .sx-fm .sx-ln4 { animation-name: sx-fm-l4; }
  .js .sx-cap-b { animation-name: sx-fm-cb; }
  .js .sx-fig { animation-name: sx-fm-fig; }
  .js .sx-cap-a { animation-name: sx-fm-ca; }
  .js .sx-t1 { animation-name: sx-fm-t1; }
  .js .sx-t2 { animation-name: sx-fm-t2; }
  .js .sx-t3 { animation-name: sx-fm-t3; }

  .js .sx-cm1 { animation-name: sx-ck-c1; }
  .js .sx-cm2 { animation-name: sx-ck-c2; }
  .js .sx-cm1 svg { animation-name: sx-ck-d1; }
  .js .sx-cm2 svg { animation-name: sx-ck-d2; }
  .js .sx-cm1 .sx-ct { animation-name: sx-ck-t1; }
  .js .sx-cm2 .sx-ct { animation-name: sx-ck-t2; }
  .js .sx-hl1, .js .sx-th-b { animation-name: sx-ck-off1; }
  .js .sx-th-a { animation-name: sx-ck-on1; }
  .js .sx-hl2 { animation-name: sx-ck-off2; }
  .js .sx-qb i { animation-name: sx-ck-indent; }
  .js .sx-sub { animation-name: sx-ck-sub; }
  .js .sx-sub svg { animation-name: sx-ck-subt; }
}
@keyframes sx-fade { 0% { opacity: 0; } 5%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sx-up-dz { 0%, 10% { opacity: 0; } 14%, 30% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes sx-up-hint { 0% { opacity: 0; } 4%, 12% { opacity: 1; transform: none; } 16%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes sx-up-f1 { 0%, 13% { opacity: 0; transform: translate(4px, -14px) rotate(-3deg) scale(.96); } 24%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes sx-up-f2 { 0%, 22% { opacity: 0; transform: translate(-4px, -14px) rotate(3deg) scale(.96); } 32%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes sx-up-bar { 0%, 32% { transform: scaleX(0); opacity: 1; } 64%, 92% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes sx-up-pct { 0%, 30% { opacity: 0; } 34%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes sx-up-ok { 0%, 64% { opacity: 0; transform: scale(.85); } 71%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }

@keyframes sx-qt-win { 0% { opacity: 0; transform: translateY(10px) scale(.97); } 9%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes sx-qt-a { 0%, 8% { opacity: 0; transform: translateY(4px); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes sx-qt-b { 0%, 12% { opacity: 0; transform: translateY(8px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes sx-qt-c { 0%, 20% { opacity: 0; transform: translateY(6px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes sx-qt-d1 { 0%, 28% { opacity: 0; transform: translateX(-6px); } 34%, 100% { opacity: 1; transform: none; } }
@keyframes sx-qt-d2 { 0%, 33% { opacity: 0; transform: translateX(-6px); } 39%, 100% { opacity: 1; transform: none; } }
@keyframes sx-qt-d3 { 0%, 38% { opacity: 0; transform: translateX(-6px); } 44%, 100% { opacity: 1; transform: none; } }
@keyframes sx-qt-pill { 0%, 52% { opacity: 0; transform: scale(.8); } 60%, 100% { opacity: 1; transform: none; } }

@keyframes sx-fm-cur {
  0%, 4% { opacity: 0; transform: translate(190px, 128px) scale(1); }
  9% { opacity: 1; transform: translate(150px, 100px) scale(1); }
  18% { transform: translate(64px, 8px) scale(1); }
  20% { transform: translate(64px, 8px) scale(.82); }
  23% { transform: translate(64px, 8px) scale(1); }
  34% { transform: translate(84px, 33px) scale(1); }
  36% { transform: translate(84px, 33px) scale(.82); }
  39% { transform: translate(84px, 33px) scale(1); }
  50% { transform: translate(58px, 96px) scale(1); }
  52% { transform: translate(58px, 96px) scale(.82); }
  55% { opacity: 1; transform: translate(58px, 96px) scale(1); }
  70%, 100% { opacity: 0; transform: translate(170px, 128px) scale(1); }
}
@keyframes sx-fm-hb { 0%, 21% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateX(-6px); } }
@keyframes sx-fm-ha { 0%, 21% { opacity: 0; transform: translateX(5px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes sx-fm-l2 { 0%, 37% { transform: translateY(-2px); } 45%, 100% { transform: none; } }
@keyframes sx-fm-l3 { 0%, 37% { transform: translateY(-4px); } 45%, 100% { transform: none; } }
@keyframes sx-fm-l4 { 0%, 37% { transform: translateY(-6px); } 45%, 100% { transform: none; } }
@keyframes sx-fm-cb { 0%, 52% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; transform: translateY(3px); } }
@keyframes sx-fm-fig { 0%, 55% { transform: translateY(-16px); } 63%, 100% { transform: none; } }
@keyframes sx-fm-ca { 0%, 56% { opacity: 0; transform: translateY(5px); } 63%, 100% { opacity: 1; transform: none; } }
@keyframes sx-fm-t1 { 0%, 24% { opacity: 0; transform: translateX(-6px); } 30%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sx-fm-t2 { 0%, 41% { opacity: 0; transform: translateX(-6px); } 47%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sx-fm-t3 { 0%, 58% { opacity: 0; transform: translateX(-6px); } 64%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@keyframes sx-ck-c1 { 0% { opacity: 0; transform: translateX(6px); } 6%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sx-ck-c2 { 0%, 3% { opacity: 0; transform: translateX(6px); } 9%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sx-ck-d1 { 0%, 17% { opacity: 0; transform: scale(.5); } 23%, 100% { opacity: 1; transform: none; } }
@keyframes sx-ck-d2 { 0%, 37% { opacity: 0; transform: scale(.5); } 43%, 100% { opacity: 1; transform: none; } }
@keyframes sx-ck-t1 { 0%, 19% { opacity: 1; } 25%, 100% { opacity: .5; } }
@keyframes sx-ck-t2 { 0%, 39% { opacity: 1; } 45%, 100% { opacity: .5; } }
@keyframes sx-ck-off1 { 0%, 18% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes sx-ck-on1 { 0%, 18% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes sx-ck-off2 { 0%, 38% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes sx-ck-indent { 0%, 38% { transform: scaleX(1.2); } 46%, 100% { transform: none; } }
@keyframes sx-ck-sub { 0%, 56% { opacity: 0; transform: translateY(14px) scale(.96); } 64%, 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes sx-ck-subt { 0%, 60% { opacity: 0; transform: scale(.5); } 68%, 100% { opacity: 1; transform: none; } }

/* ===================================================== r3: guarantee */
/* Four promises in one card, ticked off in order by a thin blue line (horizontal from 960px, vertical below). */
#guarantee.section { padding-block: 64px; }
@media (min-width: 900px) { #guarantee.section { padding-block: 72px; } }
.g-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; margin-bottom: 28px; }
.g-head .label { margin-bottom: 16px; }
.g-terms { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color 150ms ease, text-decoration-color 150ms ease; }
.g-terms .arrow { width: 14px; height: 14px; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .g-terms:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
  .g-terms:hover .arrow { transform: translateX(2px); }
}
.g-led { display: grid; padding: 4px 0; }
.g-led li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 16px 20px; }
.g-led .h3 { grid-column: 2; font-size: 16.5px; line-height: 22px; }
.g-led p { grid-column: 2; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.g-tk { grid-row: 1 / span 2; position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; }
.g-tk::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 4px 1px rgba(255, 255, 255, .24), 0 0 0 1px var(--blue); }
.g-tk svg { position: relative; display: block; width: 16px; height: 16px; }
/* the rail: a dashed segment from each tick to the next, with a blue line that runs over it */
.g-led li:not(:last-child)::before, .g-led li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 44px; width: 1px; height: calc(100% - 34px); }
.g-led li:not(:last-child)::before { border-left: 1px dashed var(--line-2); }
.g-led li:not(:last-child)::after { background: var(--blue); transform-origin: top; }
@media (min-width: 960px) {
  .g-led { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
  .g-led li { display: block; padding: 24px 22px 22px; }
  .g-led .h3 { margin-top: 14px; }
  .g-led p { margin-top: 4px; font-size: 14px; }
  .g-led li:not(:last-child)::before, .g-led li:not(:last-child)::after { left: 52px; top: 35px; width: calc(100% - 38px); height: 1px; }
  .g-led li:not(:last-child)::before { border-left: 0; border-top: 1px dashed var(--line-2); }
  .g-led li:not(:last-child)::after { transform-origin: left; }
}
@media (min-width: 1200px) { .g-led { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, .96fr); } }   /* the privacy line is the longest: keeps every promise to two lines */
/* 960-1199: the first heading wraps in its narrow column; reserve two lines so the four phrases start level */
@media (min-width: 960px) and (max-width: 1199px) { .g-led .h3 { min-height: 44px; } }
/* tablet: two columns of two (1-2 down the left, 3-4 down the right), so the wide card isn't half empty; the rail joins each pair */
@media (min-width: 680px) and (max-width: 959px) {
  .g-led { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; }
  .g-led li:nth-child(2)::before, .g-led li:nth-child(2)::after { content: none; }
}
/* the sequence: once most of the card is in view (ff.js removes .g-wait), each promise is ticked and the line runs on to the next */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .g-led li { --t: calc(var(--k, 0) * 340ms + 420ms); }
  .g-tk::before, .g-tk svg { transition: opacity 220ms ease, transform 380ms var(--ease-out); transition-delay: var(--t); }
  .g-led .h3, .g-led p { transition: opacity 400ms ease; transition-delay: calc(var(--t) - 60ms); }
  .g-led li:not(:last-child)::after { transition: transform 300ms var(--ease-in-out); transition-delay: calc(var(--t) + 80ms); }
  .g-led:is(:not(.seen), .g-wait) .g-tk::before { opacity: 0; transform: scale(.4); }
  .g-led:is(:not(.seen), .g-wait) .g-tk svg { opacity: 0; transform: scale(.6); }
  .g-led:is(:not(.seen), .g-wait) .h3, .g-led:is(:not(.seen), .g-wait) p { opacity: .38; }
  .g-led:is(:not(.seen), .g-wait) li::after { transform: scaleY(0); }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  .g-led:is(:not(.seen), .g-wait) li::after { transform: scaleX(0); }
}

/* ===================================================== guides: links to /guides/ (article styles live in guides.css) */
/* terms, privacy, 404: a "Guides" text link beside the quote button */
.legal-top .top-links { display: flex; align-items: center; gap: 6px; }
.top-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: color 150ms ease, background-color 150ms ease; }
.top-link[aria-current] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .top-link:hover { color: var(--ink); background: rgba(0, 0, 0, .04); } }
.tl-short { display: none; }
@media (max-width: 479px) { .tl-long { display: none; } .tl-short { display: inline; } .top-link { padding: 0 9px; } }
@media (max-width: 374px) { .legal-top .top-links { gap: 2px; } .top-link { padding: 0 8px; font-size: 13.5px; } }
/* home nav, phones: six links (Guides added) still fit on one row from 360px up */
@media (max-width: 429px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 4px; font-size: 13px; }
  .nav-links a:first-child { margin-left: -4px; }
}
