/* preisklar.app: one stylesheet. The design system is DESIGN.md; its voice is docs/messaging.md.
   Nothing here loads from anywhere else: the font is self-hosted (SIL OFL 1.1, licence beside it). */

/* Barlow, the only face: Latin and Latin Extended subsets, four weights. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------------------------------------------
   Tokens. Component rules use only these, never a raw value.
   Blue identifies and acts. Pale blue (--window) is the 30 days; yellow (--low) is the lowest price in them, and
   nothing else. Neutrals are tinted toward the blue. Ruled, not boxed: no block is set apart by an outline.
   --------------------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --blue: #17406d;          /* the mark, buttons, the eyebrow, the current hub */
  --on-blue: #ffffff;
  --window: #e6eef8;        /* the 30 days: the 30-day line's band, the shaded span in the price history */
  --low: #f2b544;           /* the lowest price in them, and the mark's bar. A mark, never text, never an area. */

  --bg: #ffffff;
  --surface: #f5f8fb;       /* calm zones, chips */
  --sunk: #eef2f7;          /* the footer; a full-width section set apart */
  --stage: #e9eef4;         /* what the merchant's page sits on */
  --sheet: #ffffff;         /* the merchant's page */
  --header: rgb(255 255 255 / 0.88);

  --text: #10243a;          /* a deep navy, never black */
  --muted: #536477;
  --rule: #dbe2ea;          /* hairlines: decorative only */
  --line: #6c7b8c;          /* borders that must be seen: inputs, checkboxes (3:1) */
  --link: #1a5594;

  /* Functional: verdicts. Never colour alone: always a word and an icon. */
  --ok: #1c6a44;   --ok-bg: #e5f3ea;
  --warn: #7a5300; --warn-bg: #fcf0d2;
  --bad: #ad3617;  --bad-bg: #fbe6de;

  --sheet-shadow: 0 1px 2px rgb(16 36 58 / 0.08), 0 18px 40px -18px rgb(16 36 58 / 0.28);

  /* One family. The merchant's sheet is drawn in the system's fonts on purpose: it's their theme, not ours. */
  --font: "Barlow", Arial, "Helvetica Neue", sans-serif;
  --store-font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* The type stairs: size carries the hierarchy; headlines are Medium; bold is the figure to read. */
  --t-display: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);  --lh-display: 1.1;     /* 36/42 -> 60/66 */
  --t-h2: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);       --lh-h2: 1.1667;       /* 24/30 -> 36/42 */
  --t-intro: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);   --lh-intro: 1.25;      /* 20/24 -> 24/30 */
  --t-h3: 1.125rem;   --lh-h3: 1.5rem;                                         /* 18/24 */
  --t-body: 1.125rem; --lh-body: 1.875rem;                                     /* 18/30, prose */
  --t-ui: 1rem;       --lh-ui: 1.5rem;                                         /* 16/24 */
  --t-small: 0.875rem; --lh-small: 1.125rem;                                   /* 14/18 */
  --track-display: -0.025em;
  --track-head: -0.015em;

  /* Spacing: the 6px baseline. */
  --s1: 0.375rem; --s2: 0.75rem; --s3: 1.125rem; --s4: 1.5rem; --s5: 2.25rem; --s6: 3rem; --s7: 4.5rem; --s8: 6rem;

  --page: 72rem;
  --measure: 38rem;

  --r-chip: 4px;            /* chips, stamps, calm zones, the 30-day line */
  --r-ctl: 6px;             /* buttons, inputs */
  --r-stage: 12px;          /* the stage */
  --hair: 1px;
  --rule-strong: 2px;       /* opens a figure, a finding, a step, one side of a comparison */
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #9cc3ef;
    --on-blue: #0d1a28;
    --window: #1d3350;
    --bg: #0d1a28;          /* deep blue-grey, never black */
    --surface: #132436;
    --sunk: #050c14;        /* 1.12:1 below the page, as light mode's stage is 1.15:1 below white */
    --stage: #050c14;
    --sheet: #16293d;
    --header: rgb(13 26 40 / 0.88);
    --text: #eef3f8;
    --muted: #a3b2c3;
    --rule: #24384e;
    --line: #7d8ea2;
    --link: #93c1f5;
    --ok: #80d4a8;   --ok-bg: #143024;
    --warn: #f1c86a; --warn-bg: #33290f;
    --bad: #ff9f86;  --bad-bg: #3a1f19;
    --sheet-shadow: none;
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-body)/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }  /* component display rules must never reveal a hidden state */
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* A heading or status that the store check moves focus to (so a screen reader reads it) isn't a control: no ring. */
[tabindex="-1"]:focus-visible { outline: none; }

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2 { font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: 22ch; }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--track-head); }
h3, h4 { font-size: var(--t-h3); line-height: var(--lh-h3); font-weight: 600; }
p, li, dd { max-width: var(--measure); }
strong { font-weight: 600; }
.nb { white-space: nowrap; }  /* keeps "30-day" from breaking at its hyphen in a headline */

.skip {
  position: absolute;
  inset-inline-start: var(--s2);
  inset-block-start: -10rem;
  background: var(--blue);
  color: var(--on-blue);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-ctl);
  z-index: 50;
}
.skip:focus { inset-block-start: var(--s2); }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------------------------------------------------------
   Layout: a page is a stack of sections. Wide gaps between sections, tight inside them.
   --------------------------------------------------------------------------------------------------------------- */
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: max(1rem, env(safe-area-inset-left, 0px)); }
@media (min-width: 48rem) { .wrap { padding-inline: var(--s5); } }

main { display: block; padding-block: var(--s5) 0; }
.section { display: grid; align-content: start; gap: var(--s3); padding-block-start: var(--s7); }  /* start: a section stretched by its row (a .pair) mustn't spread its own rows */
@media (min-width: 48rem) { .section { padding-block-start: var(--s8); } }
.section > h2 + * { margin-block-start: var(--s1); }
.sunk { background: var(--sunk); padding-block: var(--s5); margin-block-start: var(--s7); }
.sunk .section { padding-block: 0; }
.stack { display: grid; gap: var(--s3); }
.stack-tight { display: grid; gap: var(--s1); }
.stack > *, .stack-tight > *, .section > *, .grid > * { min-width: 0; }

.grid { display: grid; gap: var(--s5) var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .grid.halves   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.thirds   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Two short sections side by side: each keeps its own spacing, so the grid adds none
   between rows, and prose gets a wider gutter than cards. */
.grid.pair { row-gap: 0; column-gap: var(--s7); }

/* The 404 page: the same message in each language, side by side, given the room a page has. */
.notfound.pair { padding-block: var(--s7) var(--s8); row-gap: var(--s6); }
@media (min-width: 48rem) { .notfound { min-block-size: 50vh; align-content: center; } }
.as-h1 { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--track-display); font-weight: 500; text-wrap: balance; max-width: 22ch; }

/* A section whose heading sits in its own column beside the content (wide screens only). */
@media (min-width: 60rem) {
  .section.split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--s7); align-items: start; }
  .section.split > h2 { grid-column: 1; }
  .section.split > :not(h2) { grid-column: 2; }
  .section.split > h2 + * { margin-block-start: 0; }
}

/* An article: the content, and "On this page" beside it from 64rem. */
.article { display: grid; gap: 0 var(--s7); }
.article > * { min-width: 0; }
.toc { display: none; }
@media (min-width: 64rem) {
  .article { grid-template-columns: minmax(0, 1fr) 14rem; }
  .article > :not(.toc) { grid-column: 1; }
  .toc { display: block; grid-column: 2; grid-row: 1 / span 30; align-self: start; position: sticky; inset-block-start: 6rem; padding-block-start: var(--s8); }
  .toc p { font: 600 var(--t-small)/var(--lh-small) var(--font); margin-block-end: var(--s2); }
  .toc ol { list-style: none; padding: 0; display: grid; box-shadow: inset 1px 0 0 var(--rule); }
  .toc a { display: block; padding: var(--s1) 0 var(--s1) var(--s3); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--text); box-shadow: inset 2px 0 0 var(--line); }
  /* The current section, as the reader scrolls (no script: scroll-target-group, Chrome and Edge 140+).
     Elsewhere the list stays as it was: hover only. */
  .toc ol { scroll-target-group: auto; }
  .toc a:target-current { color: var(--text); box-shadow: inset 2px 0 0 var(--blue); }
}

/* ---------------------------------------------------------------------------------------------------------------
   Header: 64px, sticky, translucent over a hairline. The lockup; the hubs; the other language and one action.
   The current hub gets a 2px blue bar sitting on the hairline. Phones: the lockup and a Menu disclosure (no script).
   --------------------------------------------------------------------------------------------------------------- */
header.site {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: var(--header);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: inset 0 -1px 0 var(--rule);
}
header.site .bar { display: flex; align-items: center; gap: var(--s5); block-size: 4rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  min-block-size: 44px;
  flex: none;
  font-weight: 600;
  font-size: 1.625rem;      /* 26 px: the wordmark carries the page's identity (Nate, 2026-11-30: was 21 px) */
  line-height: 2rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}
footer.site .brand { font-size: 1.875rem; line-height: 2.25rem; }
.brand img {
  /* The lockup (DESIGN.md): the tag is 1.4 times the word's capital height, centred on the capitals, 0.375em away. */
  inline-size: 1em;
  block-size: 1em;
  position: relative;
  inset-block-start: 0.05em;
}
nav.hubs { align-self: stretch; }
nav.hubs ul { list-style: none; padding: 0; display: flex; gap: var(--s4); block-size: 100%; }
nav.hubs a {
  position: relative;
  display: flex;
  align-items: center;
  block-size: 100%;
  font: 500 0.9375rem/1 var(--font);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
nav.hubs a:hover { color: var(--blue); }
nav.hubs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  background: var(--blue);
}
header.site .end { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s3); }
.lang {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline-end: var(--s3);
  border-inline-end: var(--hair) solid var(--rule);
  font: 500 0.9375rem/1 var(--font);
  color: var(--muted);
  text-decoration: none;
}
.lang:hover { color: var(--text); }
.menu { display: none; margin-inline-start: auto; }
.menu summary {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-block-size: 44px;
  padding-inline: var(--s1);
  font: 500 0.9375rem/1 var(--font);
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .bars { position: relative; inline-size: 1rem; block-size: 0.625rem; border-block: 1.5px solid currentColor; }
.menu .bars::before, .menu .bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(50% - 0.75px);
  border-block-start: 1.5px solid currentColor;
}
.menu .bars::before { opacity: 0; }
.menu[open] .bars { border-color: transparent; }
.menu[open] .bars::before { opacity: 1; transform: rotate(45deg); }
.menu[open] .bars::after { transform: rotate(-45deg); }
.menu .panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 4rem;
  display: grid;
  gap: var(--s3);
  padding: var(--s2) max(1rem, env(safe-area-inset-left, 0px)) var(--s4);
  background: var(--bg);
  box-shadow: inset 0 1px 0 var(--rule), 0 24px 32px -24px rgb(0 0 0 / 0.3);
}
.menu .panel ul { list-style: none; padding: 0; display: grid; }
.menu .panel li { max-width: none; }
.menu .panel li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 3.25rem;
  font: 500 1.25rem/1 var(--font);
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--rule);
}
.menu .panel li a[aria-current="page"] { color: var(--blue); }
.menu .panel li a::after { content: "\2192"; color: var(--muted); font-weight: 400; }
.menu .panel .button { inline-size: 100%; }
.menu .panel .lang { border: 0; padding: 0; }
@media (max-width: 47.99rem) {
  nav.hubs, header.site .end { display: none; }
  .menu { display: block; }
}

nav.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s1); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
nav.crumbs li { display: flex; align-items: center; min-block-size: 44px; }
nav.crumbs li + li::before { content: "/"; margin-inline-end: var(--s1); color: var(--line); }
nav.crumbs a { display: flex; align-items: center; min-block-size: 44px; } /* a 44px target */

/* ---------------------------------------------------------------------------------------------------------------
   The next step (every page but the check's), and the footer: the site's map, quiet, on the sunk tone.
   --------------------------------------------------------------------------------------------------------------- */
.next { margin-block-start: var(--s8); padding-block: var(--s7); box-shadow: inset 0 1px 0 var(--rule); }
.next .wrap { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 48rem) { .next .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.next h2 { max-width: 24ch; }
.next p { color: var(--muted); margin-block-start: var(--s2); }
main:not(:has(.next)) { padding-block-end: var(--s8); }

footer.site { background: var(--sunk); color: var(--muted); font-size: 0.9375rem; line-height: 1.375rem; }
footer.site .top { display: grid; gap: var(--s6) var(--s5); padding-block: var(--s7) var(--s6); }
@media (min-width: 60rem) { footer.site .top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
footer.site .about { display: grid; gap: var(--s3); align-content: start; max-width: 22rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
@media (min-width: 48rem) { footer.site .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
footer.site h2 { font: 600 var(--t-small)/var(--lh-small) var(--font); letter-spacing: 0; color: var(--text); margin-block-end: var(--s2); }
footer.site ul { list-style: none; padding: 0; display: grid; }
footer.site li a { display: block; padding-block: 0.4375rem; color: var(--muted); text-decoration: none; }
footer.site li a:hover { color: var(--text); text-decoration: underline; }
footer.site .base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-block: var(--s4) var(--s5);
  box-shadow: inset 0 1px 0 var(--rule);
  font-size: var(--t-small);
  line-height: 1.375rem;
}
footer.site .langs { display: flex; gap: var(--s3); }
footer.site .langs a { color: var(--muted); text-decoration: none; }
footer.site .langs a[aria-current="true"] { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------------------------------------------------------
   Text roles
   --------------------------------------------------------------------------------------------------------------- */
.eyebrow { font: 600 var(--t-small)/var(--lh-small) var(--font); color: var(--blue); }
.lead { font-size: var(--t-intro); line-height: var(--lh-intro); color: var(--muted); max-width: 34rem; }
/* The check's result sentence is the verdict, not an intro: full text colour, above the numbers it explains. */
.lead.verdict { color: var(--text); }
.label { font: 600 var(--t-small)/var(--lh-small) var(--font); color: var(--muted); }
.small, figcaption, .caption { font-size: var(--t-small); line-height: 1.375rem; color: var(--muted); }
.meta { font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: var(--s1); font: 500 var(--t-small)/var(--lh-small) var(--font); color: var(--muted); }
.status::before { content: ""; flex: none; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); } /* never yellow */
.page-head { display: grid; gap: var(--s4); padding-block-start: var(--s4); }

/* ---------------------------------------------------------------------------------------------------------------
   Pictures. The merchant's page: a cropped sheet on a stage, in the system's fonts. The price history: a figure.
   --------------------------------------------------------------------------------------------------------------- */
.hero { display: grid; gap: var(--s6); align-items: center; }
.hero .stack { gap: var(--s4); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); padding-block-start: var(--s5); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
@media (max-width: 30rem) { .hero .button { inline-size: 100%; } }

.stage { display: grid; padding: var(--s5) var(--s5) 0; overflow: hidden; background: var(--stage); border-radius: var(--r-stage); }
@media (max-width: 30rem) { .stage { padding: var(--s4) var(--s3) 0; } }
.sheet {
  display: grid;
  gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s5);
  background: var(--sheet);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--sheet-shadow);
  font-family: var(--store-font);
  color: var(--text);
  line-height: 1.4;
}
.sheet .crumb { font-size: 0.8125rem; color: var(--muted); }
.sheet .product { font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.sheet .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); font-variant-numeric: tabular-nums; }
.sheet .now { font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; }
.sheet .was { color: var(--muted); font-size: 1.0625rem; }
.sheet .off { padding: 0.1875rem 0.4375rem; border-radius: 3px; background: var(--text); color: var(--sheet); font-size: 0.8125rem; font-weight: 700; }
.sheet .sizes { display: flex; gap: var(--s1); font-size: 0.875rem; }
.sheet .sizes span { display: grid; place-items: center; min-inline-size: 2.5rem; block-size: 2.25rem; border-radius: 4px; background: var(--surface); color: var(--muted); }
.sheet .sizes .on { background: var(--text); color: var(--sheet); }
.sheet .cart { display: grid; place-items: center; block-size: 2.75rem; border-radius: 4px; background: var(--text); color: var(--sheet); font-size: 0.9375rem; font-weight: 600; }
.stage-caption { display: flex; justify-content: space-between; gap: var(--s3); padding-block-start: var(--s2); }

/* The 30-day line: pale blue (the 30 days) with a yellow edge (their lowest price). */
.line30 {
  display: block;
  padding: var(--s1) var(--s2);
  background: var(--window);
  border-inline-start: 4px solid var(--low);
  border-radius: 0 3px 3px 0;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.line30 b { font-weight: 700; }

/* A figure: opened by a 2px ink rule, its title under it; a hairline above the caption. */
.figure { display: grid; gap: var(--s3); padding-block-start: var(--s3); border-block-start: var(--rule-strong) solid var(--text); }
.figure .fhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s4); }
.figure .title { font-size: var(--t-h3); line-height: var(--lh-h3); font-weight: 600; }
.figure svg { display: block; inline-size: 100%; block-size: auto; margin-block-start: var(--s2); overflow: visible; }
.figure .wide { display: none; }
@media (min-width: 48rem) { .figure .wide { display: block; } .figure .narrow { display: none; } }
.figure figcaption { max-width: 46rem; padding-block-start: var(--s2); border-block-start: var(--hair) solid var(--rule); }
.history .win { fill: var(--window); }
.history .step { fill: none; stroke: var(--text); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.history .base, .history .tick { stroke: var(--line); stroke-width: 1; }
.history .start { stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 3; }
.history .lowdot { fill: var(--low); stroke: var(--text); stroke-width: 1.5; }
.history .nowdot { fill: var(--text); }
.history text { font-family: var(--font); fill: var(--text); font-variant-numeric: tabular-nums; }
.history .lbl { font-size: 15px; font-weight: 500; }
.history .lbl-b { font-size: 15px; font-weight: 700; }
.history .lbl-m { font-size: 13px; fill: var(--muted); }
.history .lbl-w { font-size: 13px; font-weight: 600; fill: var(--blue); }
/* The phone drawing renders at about 0.95 scale: 14 px lands near 13.3 px, the site's smallest text (the cite chips). */
.history .narrow .lbl-m, .history .narrow .lbl-w { font-size: 14px; }
.article .history .wide .lbl, .article .history .wide .lbl-b { font-size: 18px; }  /* about 0.8 scale in a column */
.article .history .wide .lbl-m, .article .history .wide .lbl-w { font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); list-style: none; padding: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: var(--s1); }
.legend .k-win { inline-size: 1rem; block-size: 0.75rem; background: var(--window); border-radius: 2px; }
.legend .k-low { inline-size: 0.75rem; block-size: 0.75rem; border-radius: 50%; background: var(--low); box-shadow: 0 0 0 1.5px var(--text); }

/* ---------------------------------------------------------------------------------------------------------------
   The working, sources, calm zones, verdicts
   --------------------------------------------------------------------------------------------------------------- */
.receipt { display: grid; max-width: 30rem; padding: 0; list-style: none; font: 400 var(--t-ui)/var(--lh-ui) var(--font); font-variant-numeric: tabular-nums; }
.receipt-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); max-width: none; padding-block: var(--s2); box-shadow: inset 0 -1px 0 var(--rule); }
.receipt-row .label { flex: 0 1 auto; min-inline-size: 0; font: inherit; color: var(--muted); }
.receipt-row .value { flex: none; text-align: end; font-weight: 500; white-space: nowrap; }
.receipt-row .value.was, .receipt-row .value s { color: var(--muted); text-decoration: line-through; }
.receipt-row .value.mismatch { color: var(--bad); font-weight: 700; }
.receipt-row.low .label { display: inline-flex; align-items: baseline; gap: var(--s1); color: var(--text); }
.receipt-row.low .label::before { content: ""; flex: none; inline-size: 0.625rem; block-size: 0.625rem; border-radius: 50%; background: var(--low); box-shadow: 0 0 0 1.5px var(--text); }
.receipt-row.total { margin-block-start: -1px; box-shadow: inset 0 1px 0 var(--text); }
.receipt-row.total .label { color: var(--text); font-weight: 600; }
.receipt-row.total .value { font-size: 1.125rem; font-weight: 700; }
.receipt-caption { font-size: var(--t-small); line-height: 1.375rem; color: var(--muted); }

.cite {
  display: inline-block;
  padding: 0.125rem 0.4375rem;
  border-radius: var(--r-chip);
  background: var(--sunk);
  color: var(--muted);
  font: 500 0.8125rem/1.125rem var(--font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cite a { color: inherit; }
ul.sources { list-style: none; padding: 0; display: grid; }
ul.sources li { display: grid; gap: var(--s1); max-width: 44rem; padding-block: var(--s3); box-shadow: inset 0 1px 0 var(--rule); }
ul.sources .cites { display: flex; flex-wrap: wrap; gap: var(--s1); }

.calm, .note { padding: var(--s2) var(--s3); background: var(--surface); border-radius: var(--r-chip); font-size: var(--t-ui); line-height: var(--lh-ui); color: var(--text); }
.legal-note { font-size: var(--t-small); line-height: 1.375rem; color: var(--muted); }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  justify-self: start;
  padding: 0.25rem 0.625rem 0.25rem 0.375rem;
  border-radius: var(--r-chip);
  background: var(--chip);
  color: var(--ink);
  font: 600 var(--t-small)/var(--lh-small) var(--font);
  white-space: nowrap;
}
.stamp .icon {
  display: inline-grid;
  place-items: center;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--chip);
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 700;
}
.stamp-ok { --ink: var(--ok); --chip: var(--ok-bg); }
.stamp-warn { --ink: var(--warn); --chip: var(--warn-bg); }
.stamp-bad { --ink: var(--bad); --chip: var(--bad-bg); }
.stamp-none { --ink: var(--muted); --chip: var(--surface); }

/* Not this / this: two columns, each opened by a rule in its verdict's colour; the wrong sum struck through. */
.compare { display: grid; gap: var(--s5); }
@media (min-width: 48rem) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
.compare .col { display: grid; gap: var(--s2); align-content: start; padding-block-start: var(--s3); border-block-start: var(--rule-strong) solid var(--ink); }
.compare .no { --ink: var(--bad); }
.compare .yes { --ink: var(--ok); }
.compare .sum { font-size: 1.5rem; line-height: 2.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.compare .no .sum { color: var(--muted); text-decoration: line-through 2px var(--bad); }

/* Motion: only transform and opacity, and only when asked for. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.36s ease-out both; }
  @keyframes rise { from { transform: translateY(0.375rem); opacity: 0; } to { transform: none; opacity: 1; } }
  @supports (animation-timeline: view()) {
    /* The price history draws its 30 days from the left, then its low, once, as it scrolls into view. */
    .history .win { transform-box: fill-box; transform-origin: left; animation: sweep linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    .history .lowdot { animation: appear linear both; animation-timeline: view(); animation-range: cover 38% cover 45%; }
    @keyframes sweep { from { transform: scaleX(0); } to { transform: none; } }
    @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   Lists, steps, questions, tables
   --------------------------------------------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; gap: var(--s1); align-content: start; padding-block-start: var(--s3); border-block-start: var(--rule-strong) solid var(--text); }
.steps > li::before { content: counter(step, decimal-leading-zero); font: 600 var(--t-small)/var(--lh-small) var(--font); color: var(--blue); font-variant-numeric: tabular-nums; }

.checklist { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.checklist li { position: relative; padding-inline-start: 2.25rem; }
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.375rem;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
}
ul.plain { padding-inline-start: 1.125rem; display: grid; gap: var(--s2); }

.faq { display: grid; }
.faq-item { display: grid; gap: var(--s1); padding-block: var(--s4); box-shadow: inset 0 1px 0 var(--rule); }
.faq-item:last-child { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }

.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; max-width: 48rem; font: 400 var(--t-ui)/var(--lh-ui) var(--font); font-variant-numeric: tabular-nums; }
th, td { text-align: start; vertical-align: top; padding: var(--s2) var(--s3) var(--s2) 0; border-block-end: var(--hair) solid var(--rule); }
thead th { font-weight: 600; border-block-end: var(--hair) solid var(--text); }
caption { text-align: start; caption-side: top; padding-block-end: var(--s2); }
td:nth-child(2) { white-space: nowrap; }
@media (max-width: 36rem) {
  table.stack thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack caption, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack tr { border-block-end: var(--hair) solid var(--rule); padding-block: var(--s2); }
  table.stack td { border: 0; padding: var(--s1) 0 0; white-space: normal; }
  table.stack td::before { content: attr(data-label) ": "; font-weight: 600; }
}

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s4); }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 30rem) {
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-block-end: var(--s2); }
}
.prose { display: grid; gap: var(--s3); }
.prose h2 { padding-block-start: var(--s5); }

/* ---------------------------------------------------------------------------------------------------------------
   Actions and forms (the check)
   --------------------------------------------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0 var(--s4);
  background: var(--blue);
  color: var(--on-blue);
  border: 0;
  border-radius: var(--r-ctl);
  font: 600 var(--t-ui)/1.25 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.small { position: relative; min-block-size: 2.25rem; padding: 0 var(--s3); font-size: 0.9375rem; white-space: nowrap; }
.button.small::before { content: ""; position: absolute; inset: -4px 0; } /* a 44px target around a 36px button */
.button:disabled { opacity: 0.6; cursor: wait; }

.field { display: grid; gap: var(--s1); }
.field label { font-weight: 600; }
.field .hint { font-size: var(--t-small); line-height: 1.375rem; color: var(--muted); }
.input {
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0 var(--s2);
  background: var(--bg);
  color: var(--text);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-ctl);
  font: 500 var(--t-body)/var(--lh-ui) var(--font);
}
.input:focus-visible { outline-offset: 0; }
.check-form { display: grid; gap: var(--s3); max-width: 36rem; }
.check-form .row { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .check-form .row { grid-template-columns: minmax(0, 1fr) auto; } }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: start; }
.choice input { inline-size: 1.25rem; block-size: 1.25rem; margin: 0.3125rem 0 0; accent-color: var(--blue); }

.progress { display: grid; gap: var(--s1); max-width: 36rem; }
.progress .bar { block-size: 0.5rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 999px; overflow: hidden; }
/* The words under the bar say what's happening now: body size and colour, not small print. */
.progress .small { font-size: var(--t-ui); line-height: var(--lh-ui); color: var(--text); }
.progress .bar > span { display: block; block-size: 100%; inline-size: 40%; background: var(--blue); border-radius: 999px; }

.field .error { padding-inline-start: var(--s2); border-inline-start: 2px solid var(--bad); font-weight: 600; color: var(--text); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }

/* A state that stops the check: what happened, then what to do. Not a verdict: no verdict colours. */
.notice { display: grid; gap: var(--s2); padding-block-start: var(--s3); border-block-start: var(--rule-strong) solid var(--blue); }

/* The result: the sentence, the counts, then one example of each. */
.summary { display: grid; gap: var(--s3); }
.tally { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: var(--hair) solid var(--rule); }
@media (min-width: 48rem) { .tally { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tally li { display: grid; gap: var(--s1); align-content: start; padding: var(--s3) var(--s3) var(--s3) 0; }
.tally li + li { padding-inline-start: var(--s3); box-shadow: inset 1px 0 0 var(--rule); }
@media (max-width: 47.99rem) {
  .tally li:nth-child(3) { padding-inline-start: 0; box-shadow: inset 0 1px 0 var(--rule); }
  .tally li:nth-child(4) { box-shadow: inset 1px 0 0 var(--rule), inset 0 1px 0 var(--rule); }
}
.tally .count { order: -1; font-size: 2.25rem; line-height: 2.625rem; font-weight: 500; letter-spacing: var(--track-head); font-variant-numeric: tabular-nums; }

/* A finding: opened by a 2px rule in its verdict's colour. */
.finding { display: grid; gap: var(--s2); padding-block-start: var(--s3); border-block-start: var(--rule-strong) solid var(--ink, var(--text)); }
.finding:has(.stamp-ok) { --ink: var(--ok); }
.finding:has(.stamp-warn) { --ink: var(--warn); }
.finding:has(.stamp-bad) { --ink: var(--bad); }
.finding h3, .finding h4 { overflow-wrap: anywhere; }
.finding .fix { font-weight: 500; }
/* One entry point per finding: the finding's title. The product is a quiet label above it; "What to do" labels the fix. */
.finding .product-name { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.finding .fix-label { display: block; font: 600 var(--t-small)/var(--lh-small) var(--font); color: var(--muted); }
/* Beta sits inside the eyebrow, not on a line of its own. */
.eyebrow .status { margin-inline-start: var(--s2); vertical-align: baseline; }
.product-result { display: grid; gap: var(--s3); padding-block-start: var(--s5); }
.product-result > h2 { font-size: 1.75rem; line-height: 2.25rem; }

/* Section anchors land below the sticky header. */
:target, [id] { scroll-margin-block-start: 5rem; }

@media print {
  header.site { position: static; backdrop-filter: none; }
  .menu, .skip, .next { display: none; }
}

/* The language disclosure, from three languages on (scripts/i18n.py): no script, no flags. */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "\25BE"; margin-inline-start: var(--s1); font-size: 0.8em; }
.lang-menu ul { position: absolute; inset-inline-end: 0; z-index: 30; display: grid; min-inline-size: 10rem; margin: var(--s1) 0 0; padding: var(--s1) 0; list-style: none; background: var(--bg); box-shadow: 0 0 0 1px var(--rule), 0 12px 24px -12px rgb(0 0 0 / 0.3); border-radius: var(--r-ctl); }
.lang-menu ul a { display: block; padding: var(--s1) var(--s3); color: var(--text); text-decoration: none; }
.lang-menu a[aria-current="true"] { font-weight: 600; }
