/*
 * Safe-QR-Codes website: site.css
 * Design system: "The Contents Label" translated to the web (see ../../../DESIGN.md).
 *
 * Rules of the system
 *  - Monochrome ink on ground. The ONLY hues are the three risk colors, and only as a verdict.
 *  - No gradients, glow, shadows, cards or colored icon tiles. Group with rules and square frames.
 *  - System fonts only. No @import, no remote url(), nothing downloaded.
 *  - Light/dark via prefers-color-scheme (ink inverts). Reduced motion is respected.
 *  - German long words must never clip: hyphens:auto (needs a lang attribute) + overflow-wrap.
 *  - Every color below the token blocks is a token (var(--...)); no raw color values in components.
 *
 * CLASS INDEX
 *  Base / utilities
 *    .skip-link  .container  .stack  .visually-hidden  .nowrap  .fine-print  .raw  .keycap
 *  Rules (the three weights)
 *    .rule-heavy (6px)  .rule-medium (3px)  .rule-hairline (1px)      (use on <hr> or any block)
 *  Site header
 *    .site-header  .site-header__inner  .site-header__tools  .brand  .brand__icon  .brand__name
 *    .site-nav  .site-nav__list  .site-nav__link  (aria-current="page" marks the current page)
 *    .lang-switch  .lang-switch__link  (aria-current="true" marks the current language)
 *  Hero
 *    .hero  .hero__copy  .hero__title  .hero__title-main  .hero__title-sub  .hero__lead  .hero__price  .hero__cta  .hero__fine  .hero__media
 *  App Store badge + badge group (Mac + iPhone/iPad, side by side)
 *    .badge-area  .store-badge  .store-badge__img  .badge-area__note
 *    .badge-group  .badge-group__item  .badge-group__label
 *  Safe-scan flow (signature: five numbered steps as a printed label sequence)
 *    .flow (<ol>)  .flow__step  .flow__step--decide  .flow__num  .flow__body  .flow__title  .flow-media
 *  Platforms (two label-frame columns: Mac | iPhone & iPad)
 *    .platforms  .platform (+ .label-frame)  .platform__list  .platform__media
 *  Buttons
 *    .button  (ink primary; one per surface)
 *  Page head (help, privacy, imprint, 404)
 *    .page-head  .page-head__title  .page-head__lead
 *  Label frame
 *    .label-frame  .label-frame--compact  .label-head  .label-head__title
 *  Section + section head
 *    .section  .section--last  .section-head  .section-head__title  .section-head__lead
 *  Fact rows
 *    .fact-list (<dl>)  .fact-row  .fact-row__name (<dt>)  .fact-row__value (<dd>)
 *  Contents declaration (signature)
 *    .contains-line  .contains-line__label  .contains-line__items
 *    .contents-table (<table>)  .contents-table__caption  .contents-table__name (<th scope=row>)
 *    .contents-table__desc  .contents-table__value
 *  Grade band
 *    .grade-band (<figure>)  .grade-band__steps  .grade-band__step
 *    .grade-band__step--safe|--caution|--danger  .grade-band__step--active
 *    .grade-band__verdict  .grade-band__note
 *  Risk glyph (bare icon beside a verdict text)
 *    .risk-glyph  .risk-glyph--safe|--caution|--danger
 *  Type glyph + source list + feature
 *    .glyph  .glyph--filled  .source-list  .source-list__item  .source-list__title  .source-list__desc
 *    .feature  .feature--flip  .feature--single  .feature__copy  .feature__title  .feature__media
 *  Screenshot frame
 *    .shot (<figure>)  .shot__img  .shot__caption  .shot--placeholder  .shot--phone (portrait 9/19.5)
 *    .shot-pair (phone + Mac screenshot composed side by side)
 *  Platform tag (inline label at the start of platform-specific help answers)
 *    .platform-tag
 *  FAQ
 *    .faq  .faq__group-title  .faq__item (<details>)  .faq__question (<summary>)  .faq__answer
 *  Legal / long-form text
 *    .legal  .legal__meta  .legal__summary  .prose  (.prose h2/h3/p/ul/ol/address/a are styled by element)
 *  Footer
 *    .site-footer  .site-footer__inner  .site-footer__nav  .site-footer__fine
 *  404
 *    .error-page  .error-page__code  .error-page__title
 *  Misc
 *    .cta__price
 *
 * Breakpoints (mobile-first, rem so they follow user font size): 40rem (640px), 64rem (1024px).
 */

/* ---------- 1. Font face: local condensed chain (nothing is downloaded) ---------- */
/*
 * SF Pro Condensed cannot be reached reliably from the web, so the heads use a local()
 * chain of installed condensed black/bold faces: Helvetica Neue Condensed (macOS/iOS),
 * Bahnschrift (Windows 10+), Arial Narrow, Roboto Condensed (Android/Linux), Liberation Sans Narrow.
 * If none exists the browser falls through to system-ui at weight 900 (see --font-head).
 */
@font-face {
  font-family: "QRM Condensed";
  font-weight: 900;
  font-stretch: 75%;
  font-style: normal;
  src:
    local("HelveticaNeue-CondensedBlack"),
    local("Helvetica Neue Condensed Black"),
    local("HelveticaNeue-CondensedBold"),
    local("Helvetica Neue Condensed Bold"),
    local("Bahnschrift SemiBold Condensed"),
    local("Bahnschrift Condensed"),
    local("ArialNarrow-Bold"),
    local("Arial Narrow Bold"),
    local("RobotoCondensed-Bold"),
    local("Roboto Condensed Bold"),
    local("LiberationSansNarrow-Bold"),
    local("Liberation Sans Narrow Bold");
}

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Color: light */
  --ink: #262626;            /* system label ink, 85% black on white, as a solid */
  --ink-2: #595959;          /* secondary text / inactive outlines */
  --ground: #ffffff;
  --hairline: #d4d4d4;       /* decorative row rule */
  --risk-safe: #1f8c45;
  --risk-caution: #d98c00;
  --risk-danger: #cc2e21;
  --glyph-on-caution: #1a1a1a;  /* dark glyph on amber; white would be 2.7:1 */
  --on-risk: #ffffff;           /* glyph on green / red fills */
  --risk-caution-glyph: #9c6400; /* amber for BARE glyphs on ground (4.96:1) */
  --selection: #d4d4d4;

  /* Type */
  --font-head: "QRM Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.25rem, 1.15rem + 5.2vw, 4.75rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-title: 1.375rem;
  --fs-label: 1rem;
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-fine: 0.8125rem;

  /* Rules and frames */
  --rule-heavy: 6px;
  --rule-medium: 3px;
  --rule-hairline: 1px;
  --frame: 1.5px;

  /* Radii: tokens only, never on frames */
  --r-glyph: 3px;
  --r-step: 4px;
  --r-button: 5px;
  --r-media: 8px;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;     /* row */
  --s-3: 0.625rem;   /* section (inside a group) */
  --s-4: 0.875rem;   /* label pad / stack */
  --s-5: 1.125rem;   /* frame pad */
  --s-6: 1.75rem;
  --s-7: 2.75rem;
  --s-8: 4.5rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68ch;
  --max-width: 76rem;
  --tap: 2.75rem;    /* 44px minimum touch target */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #dddddd;          /* 85% white on #1e1e1e, as a solid */
    --ink-2: #a6a6a6;
    --ground: #1e1e1e;
    --hairline: #444444;
    /* risk fills stay identical to the app; glyph colors stay identical */
    --risk-caution-glyph: #d98c00;
    --selection: #444444;
  }
}

/* ---------- 3. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-6);
}

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg, picture { display: block; max-inline-size: 100%; }
img { block-size: auto; }
svg { flex: none; }
table { border-collapse: collapse; }
address { font-style: normal; }
hr { margin: 0; border: 0; }

::selection { background: var(--selection); color: var(--ink); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 3px; }

/* Focus ring: ink, offset so it also reads on ink-filled controls. 3px, always visible. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. Typography ---------- */
/* Condensed Head Rule: black, condensed, uppercase, never tracked out. Reading text is never condensed. */
h1, h2, h3, .label-head__title, .grade-band__verdict, .contains-line__label,
.contents-table__caption, .error-page__code, .faq__group-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: normal;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-title); }

p { text-wrap: pretty; }

.fine-print {
  font-size: var(--fs-fine);
  line-height: 1.45;
  color: var(--ink-2);
}

.raw {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  hyphens: none;
  overflow-wrap: anywhere;
}

.nowrap { white-space: nowrap; hyphens: none; }

/* Keycap, e.g. the shortcut ⌃⌥⌘S */
.keycap {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--ink-2);
  border-radius: var(--r-glyph);
  font-family: var(--font-body);
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  hyphens: none;
  font-feature-settings: "tnum" 1;
}

/* ---------- 5. Layout helpers ---------- */
.container {
  inline-size: 100%;
  max-inline-size: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack > * + * { margin-block-start: var(--stack-gap, var(--s-4)); }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-block-start: var(--s-2);
  inset-inline-start: var(--s-2);
  z-index: 10;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  border-radius: var(--r-button);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* The three rule weights */
.rule-heavy { border-block-start: var(--rule-heavy) solid var(--ink); }
.rule-medium { border-block-start: var(--rule-medium) solid var(--ink); }
.rule-hairline { border-block-start: var(--rule-hairline) solid var(--hairline); }

/* ---------- 6. Site header ---------- */
.site-header { border-block-end: var(--rule-medium) solid var(--ink); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-block-size: var(--tap);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__icon { inline-size: 2.5rem; block-size: 2.5rem; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 75%;
  font-size: var(--fs-title);
  text-transform: uppercase;
  line-height: 1;
  hyphens: none;
}

.site-header__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-6);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  margin: 0;
  list-style: none;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap);
  font-weight: 600;
  text-decoration: none;
  border-block-end: var(--rule-medium) solid transparent;
  padding-block-start: var(--rule-medium); /* keeps text optically centered against the bottom rule */
}
.site-nav__link:hover { border-block-end-color: var(--ink-2); }
.site-nav__link[aria-current="page"] { border-block-end-color: var(--ink); }

/* DE | EN switch: two square type-glyph boxes, the current one filled */
.lang-switch { display: inline-flex; gap: var(--s-1); }
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--tap);
  min-block-size: var(--tap);
  padding-inline: var(--s-2);
  border: var(--frame) solid var(--ink);
  border-radius: var(--r-glyph);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  hyphens: none;
}
.lang-switch__link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lang-switch__link[aria-current="true"] { background: var(--ink); color: var(--ground); }

/* ---------- 7. Buttons and App Store badge ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--tap);
  padding: 0.5rem 1.125rem;
  border: 0;
  border-radius: var(--r-button);
  background: var(--ink);
  color: var(--ground);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; opacity: 0.85; }
.button:active { opacity: 0.7; }

/*
 * Official Apple badge: unmodified artwork, never recolored, no filter, no border, no radius.
 * Clear space = 1/4 of the badge height on every side (padding below). Min height 2.5rem.
 */
.badge-area { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.store-badge {
  --badge-h: 3.25rem;
  display: inline-block;
  padding: calc(var(--badge-h) / 4);
  margin: calc(var(--badge-h) / -4); /* optical alignment: clear space may overlap the page margin */
  line-height: 0;
  text-decoration: none;
}
.store-badge__img { block-size: var(--badge-h); inline-size: auto; max-inline-size: none; }
.badge-area__note { font-size: var(--fs-fine); color: var(--ink-2); margin-block-start: calc(var(--s-4) / 2); }

/* ---------- 8. Label frame, label head, section head ---------- */
.label-frame {
  border: var(--frame) solid var(--ink);
  border-radius: 0;
  padding: var(--s-5);
  background: transparent;
}
.label-frame--compact { padding: var(--s-3); }

@media (min-width: 40rem) {
  .label-frame { padding: calc(var(--s-5) + var(--s-2)); }
  .label-frame--compact { padding: var(--s-4); }
}

/* Type head over a heavy rule, as at the top of a result label */
.label-head { padding-block-end: var(--s-3); border-block-end: var(--rule-heavy) solid var(--ink); margin-block-end: var(--s-4); }
.label-head__title { font-size: var(--fs-h2); }

.section { padding-block: var(--s-7); }
.section--last { padding-block-end: var(--s-8); }
@media (min-width: 64rem) { .section { padding-block: var(--s-8); } }

/* Condensed black uppercase head under a medium rule */
.section-head {
  border-block-start: var(--rule-medium) solid var(--ink);
  padding-block-start: var(--s-3);
  margin-block-end: var(--s-6);
  max-inline-size: 48rem;
}
.section-head__title { font-size: var(--fs-h2); }
.section-head__lead { margin-block-start: var(--s-3); font-size: var(--fs-lead); line-height: 1.45; }

/* ---------- 9. Hero ---------- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero .container { display: grid; gap: var(--s-7); }
.hero__title { font-size: var(--fs-display); line-height: 0.98; }
.hero__lead { margin-block-start: var(--s-5); font-size: var(--fs-lead); line-height: 1.45; max-inline-size: 48ch; }
.hero__cta { margin-block-start: var(--s-6); }
.hero__fine { margin-block-start: var(--s-3); font-size: var(--fs-fine); color: var(--ink-2); font-feature-settings: "tnum" 1; }
.hero__media { min-inline-size: 0; }

/* ---------- 10. Page head (sub pages) ---------- */
.page-head { padding-block: var(--s-7) var(--s-6); }
.page-head__title {
  font-size: var(--fs-h1);
  padding-block-end: var(--s-3);
  border-block-end: var(--rule-heavy) solid var(--ink);
  max-inline-size: 48rem;
}
.page-head__lead { margin-block-start: var(--s-5); max-inline-size: var(--measure); font-size: var(--fs-lead); line-height: 1.45; }

/* ---------- 11. Fact rows (nutrition-table rows) ---------- */
.fact-list { margin: 0; }
.fact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--s-5);
  padding-block-end: var(--s-2);
  margin-block-end: var(--s-2);
  border-block-end: var(--rule-hairline) solid var(--hairline);
}
.fact-row__name { flex: 1 1 10rem; font-weight: 600; }
.fact-row__value {
  flex: 0 1 auto;
  margin-inline-start: auto;
  text-align: end;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- 12. Contents declaration (signature element) ---------- */
/* "ENTHÄLT: Nichts automatisch. Nichts im Netz." set like an allergen list */
.contains-line {
  border-block-start: var(--rule-medium) solid var(--ink);
  padding-block-start: var(--s-3);
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.contains-line__label { font-size: var(--fs-title); margin-inline-end: 0.35em; }
.contains-line__items { font-weight: 700; }

/* The table: caption = head, heavy rule beneath, hairline rows, medium rule at the end.
   Under 40rem each row becomes name + value over a full-width description. */
.contents-table { inline-size: 100%; }
.contents-table__caption {
  display: block;
  text-align: start;
  font-size: var(--fs-h2);
  padding-block-end: var(--s-3);
  border-block-end: var(--rule-heavy) solid var(--ink);
}
.contents-table tbody { display: block; }
.contents-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--s-5);
  padding-block: var(--s-4) var(--s-2);
  border-block-end: var(--rule-hairline) solid var(--hairline);
}
.contents-table tr:last-child { border-block-end: var(--rule-medium) solid var(--ink); }
.contents-table th, .contents-table td { display: block; padding: 0; text-align: start; }
.contents-table__name { grid-column: 1; font-weight: 600; font-size: 1.125rem; }
.contents-table__value {
  grid-column: 2;
  grid-row: 1;
  text-align: end;
  font-weight: 600;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.contents-table__desc { grid-column: 1 / -1; margin-block-start: var(--s-1); padding-block-end: var(--s-2); color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }

@media (min-width: 40rem) {
  .contents-table tr {
    grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) minmax(5rem, auto);
    align-items: baseline;
    gap: 0 var(--s-6);
    padding-block: var(--s-4);
  }
  .contents-table__name { grid-column: 1; font-size: var(--fs-body); }
  .contents-table__desc { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
  .contents-table__value { grid-column: 3; grid-row: 1; }
}

/* ---------- 13. Grade band (decorative illustration of the app's verdict) ---------- */
/* Static by default. The active step settles in only if motion is allowed.
   Text alternative: the visible verdict (figcaption) names the level; the steps are aria-hidden. */
.grade-band { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.grade-band__steps { display: flex; align-items: center; gap: var(--s-1); }
.grade-band__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 2.25rem;
  border: var(--frame) solid var(--ink-2);
  border-radius: var(--r-step);
  color: var(--ink-2);
}
.grade-band__step svg { inline-size: 0.875rem; block-size: 0.875rem; }
.grade-band__step--active {
  inline-size: 4.5rem;
  block-size: 3.25rem;
  border: 2px solid var(--ink);
}
.grade-band__step--active svg { inline-size: 1.25rem; block-size: 1.25rem; }
.grade-band__step--active.grade-band__step--safe { background: var(--risk-safe); color: var(--on-risk); }
.grade-band__step--active.grade-band__step--caution { background: var(--risk-caution); color: var(--glyph-on-caution); }
.grade-band__step--active.grade-band__step--danger { background: var(--risk-danger); color: var(--on-risk); }
.grade-band__verdict { font-size: var(--fs-title); }
.grade-band__note { flex-basis: 100%; font-size: var(--fs-fine); color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .grade-band__step--active { animation: grade-settle 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.1s both; }
  @keyframes grade-settle {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* Bare risk icon next to a verdict text (a "Contains" row). Amber uses the darker bare-glyph token in light mode. */
.risk-glyph { inline-size: 1.25rem; block-size: 1.25rem; }
.risk-glyph--safe { color: var(--risk-safe); }
.risk-glyph--caution { color: var(--risk-caution-glyph); }
.risk-glyph--danger { color: var(--risk-danger); }

/* ---------- 14. Type glyph, source list, feature ---------- */
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  border: var(--frame) solid var(--ink);
  border-radius: var(--r-glyph);
  color: var(--ink);
}
.glyph svg { inline-size: 55%; block-size: 55%; }
.glyph--filled { background: var(--ink); color: var(--ground); }

.source-list { list-style: none; margin: 0; border-block: var(--rule-medium) solid var(--ink); }
.source-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--s-4);
  align-items: start;
  padding-block: var(--s-4);
  border-block-end: var(--rule-hairline) solid var(--hairline);
}
.source-list__item:last-child { border-block-end: 0; }
.source-list__title { font-weight: 600; }
.source-list__desc { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; margin-block-start: 2px; }

.feature { display: grid; gap: var(--s-6); align-items: center; }
.feature__copy { min-inline-size: 0; }
.feature__title { font-size: var(--fs-h2); border-block-start: var(--rule-medium) solid var(--ink); padding-block-start: var(--s-3); margin-block-end: var(--s-5); }
.feature__media { min-inline-size: 0; }
.feature__copy > * + * { margin-block-start: var(--s-4); }

@media (min-width: 64rem) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-8); }
  .feature--flip .feature__media { order: -1; }
  .feature--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* ---------- 15. Screenshot frame ---------- */
/* Markup: <figure class="shot"><picture><source media="(prefers-color-scheme: dark)" srcset="…-dark.avif"> <img class="shot__img" width height alt></picture><figcaption class="shot__caption"> */
.shot { margin: 0; }
.shot picture { border: var(--frame) solid var(--ink); border-radius: 0; line-height: 0; }
.shot__img { inline-size: 100%; block-size: auto; }
.shot__caption { margin-block-start: var(--s-2); font-size: var(--fs-fine); color: var(--ink-2); line-height: 1.45; }

/* ---------- 16. FAQ (native <details>) ---------- */
.faq { max-inline-size: var(--measure); }
.faq__group-title {
  font-size: var(--fs-title);
  border-block-start: var(--rule-medium) solid var(--ink);
  padding-block-start: var(--s-3);
  margin-block: var(--s-7) var(--s-2);
}
.faq__group-title:first-child { margin-block-start: 0; }

.faq__item { border-block-end: var(--rule-hairline) solid var(--hairline); }
.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  min-block-size: var(--tap);
  padding-block: var(--s-3);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ""; }
.faq__question::after {
  content: "+";
  content: "+" / "";
  flex: none;
  inline-size: 1.5rem;
  text-align: center;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
}
.faq__item[open] > .faq__question::after { content: "\2212"; content: "\2212" / ""; }
.faq__question:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.faq__answer { padding-block: 0 var(--s-5); padding-inline-end: calc(1.5rem + var(--s-4)); }
.faq__answer > * + * { margin-block-start: var(--s-3); }
.faq__answer ul, .faq__answer ol { padding-inline-start: 1.25rem; }
.faq__answer li + li { margin-block-start: var(--s-1); }

/* ---------- 17. Legal / long-form text ---------- */
.legal { padding-block-end: var(--s-8); }
.legal__meta { font-size: var(--fs-small); color: var(--ink-2); font-feature-settings: "tnum" 1; }
.legal__summary { max-inline-size: var(--measure); margin-block-end: var(--s-6); }

.prose { max-inline-size: var(--measure); line-height: 1.65; }
.prose > * + * { margin-block-start: var(--s-4); }
.prose h2 {
  font-size: var(--fs-title);
  border-block-start: var(--rule-medium) solid var(--ink);
  padding-block-start: var(--s-3);
  margin-block-start: var(--s-7);
}
.prose h3 { font-family: var(--font-body); font-stretch: 100%; text-transform: none; font-size: var(--fs-body); font-weight: 700; line-height: 1.4; margin-block-start: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-block-start: var(--s-3); }
.prose ul, .prose ol { padding-inline-start: 1.375rem; }
.prose li + li { margin-block-start: var(--s-2); }
.prose address { line-height: 1.5; }
.prose a { overflow-wrap: anywhere; hyphens: none; }
.prose strong { font-weight: 700; }

/* ---------- 18. Footer ---------- */
.site-footer { margin-block-start: auto; border-block-start: var(--rule-heavy) solid var(--ink); padding-block: var(--s-6) var(--s-7); }
.site-footer__inner { display: grid; gap: var(--s-5); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); list-style: none; margin: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; min-block-size: var(--tap); font-weight: 600; }
.site-footer__fine { font-size: var(--fs-fine); color: var(--ink-2); line-height: 1.5; max-inline-size: 48rem; }
.site-footer__fine > * + * { margin-block-start: var(--s-1); }

/* ---------- 19. 404 ---------- */
.error-page { padding-block: var(--s-8); }
.error-page__code { font-size: var(--fs-display); line-height: 0.95; padding-block-end: var(--s-3); border-block-end: var(--rule-heavy) solid var(--ink); max-inline-size: 36rem; }
.error-page__title { font-size: var(--fs-h2); margin-block-start: var(--s-5); }
.error-page p { margin-block-start: var(--s-4); max-inline-size: var(--measure); }
.error-page .button { margin-block-start: var(--s-6); }

/* ---------- 20. Reduced motion (blanket safety net) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 21. Forced colors: let the system palette win, keep shapes ---------- */
@media (forced-colors: active) {
  .grade-band__step--active { border-color: CanvasText; }
  .button, .lang-switch__link[aria-current="true"], .glyph--filled { forced-color-adjust: none; background: ButtonText; color: ButtonFace; }
}

/* ---------- 22. Print (legal pages) ---------- */
@media print {
  :root { --ink: #000000; --ink-2: #333333; --ground: #ffffff; --hairline: #999999; }
  body { font-size: 11pt; line-height: 1.5; display: block; }
  .skip-link, .site-nav, .lang-switch, .badge-area, .store-badge, .button, .site-footer__nav { display: none !important; }
  .site-header { border-block-end-width: var(--rule-hairline); }
  .container { max-inline-size: none; padding-inline: 0; }
  .prose, .legal__summary, .faq { max-inline-size: none; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose p, .prose li, .label-frame { break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }
  .site-footer { border-block-start-width: var(--rule-medium); padding-block: var(--s-4) 0; }
}

/* ---------- 23. Screenshot placeholder (until real screenshots exist) ---------- */
.shot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: var(--s-5);
  border: var(--frame) dashed var(--ink-2);
  text-align: center;
}
.shot--placeholder .shot__caption { margin: 0; max-inline-size: 36ch; }

/* ---------- 24. Hero additions: price line, badge group, screenshot pair ---------- */
.hero__price { margin-block-start: var(--s-4); font-weight: 700; font-feature-settings: "tnum" 1; }
.hero__price + .hero__cta { margin-block-start: var(--s-5); }
.hero__cta .badge-group { margin-block-start: var(--s-1); }

/* Two equal official badges, each under a small platform label. Wraps (stacks) when narrow. */
.badge-group { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6); }
.badge-group__item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.badge-group__label {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 75%;
  font-size: var(--fs-small);
  text-transform: uppercase;
  line-height: 1.1;
  hyphens: none;
  padding-block-end: var(--s-1);
  border-block-end: var(--rule-medium) solid var(--ink);
}
.badge-group__item .store-badge { margin-block-start: calc(var(--s-1) / 2); }
.cta__price { margin-block-start: var(--s-4); }
.cta__price + p { margin-block-start: var(--s-2); }

/* Screenshot pair: portrait phone beside a landscape Mac window (stacked on small screens) */
.shot-pair { display: grid; gap: var(--s-5); align-items: end; }
/* Column widths follow the image aspect ratios (9:19.5 phone, 16:10 Mac) so both shots share one height. */
@media (min-width: 40rem) {
  .shot-pair { grid-template-columns: minmax(0, 0.4615fr) minmax(0, 1.6fr); gap: var(--s-6); }
  .shot-pair .shot--phone { max-inline-size: none; }
}

/* ---------- 25. Safe-scan flow ---------- */
/* A printed sequence: heavy rule above, condensed black numerals joined by medium rules,
   closed by a medium rule. Vertical on small screens, one row of five from 64rem.
   Step 5 ("You decide") is set apart by an ink frame and an inverted numeral, never by color. */
.flow {
  list-style: none;
  margin: 0;
  padding-block: var(--s-5);
  border-block-start: var(--rule-heavy) solid var(--ink);
  border-block-end: var(--rule-medium) solid var(--ink);
}
.flow__step { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: var(--s-4); }
.flow__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 2.75rem;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.flow__num::after {
  content: "";
  flex: 1;
  margin-block-start: var(--s-2);
  border-inline-start: var(--rule-medium) solid var(--ink);
}
.flow__step:last-child .flow__num::after { content: none; }
.flow__body { padding-block-end: var(--s-6); min-inline-size: 0; }
.flow__step:last-child .flow__body { padding-block-end: 0; }
.flow__body > * + * { margin-block-start: var(--s-2); }
.flow__title { font-size: var(--fs-title); padding-block-start: var(--s-1); }
.flow__body p { font-size: var(--fs-small); line-height: 1.55; color: var(--ink); }

.flow__step--decide {
  border: var(--frame) solid var(--ink);
  padding: var(--s-4);
}
.flow__step--decide .flow__num { color: var(--ink); }
.flow__step--decide .flow__body { padding-block-end: 0; }

.flow-media { margin-block-start: var(--s-7); }
.flow-media .shot { margin-inline: auto; }

@media (min-width: 64rem) {
  .flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-block: var(--s-6);
  }
  .flow__step { display: block; padding-inline: var(--s-4); }
  .flow__step:first-child { padding-inline-start: 0; }
  .flow__num { flex-direction: row; align-items: center; justify-content: flex-start; font-size: 3.5rem; }
  .flow__num::after {
    margin-block-start: 0;
    margin-inline: var(--s-3) calc(-1 * var(--s-4));
    border-inline-start: 0;
    border-block-start: var(--rule-medium) solid var(--ink);
  }
  .flow__body { padding-block: var(--s-4) 0; }
  .flow__title { font-size: 1.125rem; hyphens: auto; }
  .flow__step--decide { padding: var(--s-4); }
  .flow__step--decide .flow__body { padding-block-start: var(--s-4); }
}

/* ---------- 26. Platforms: Mac | iPhone & iPad ---------- */
.platforms { display: grid; gap: var(--s-6); }
.platform { display: flex; flex-direction: column; min-inline-size: 0; }
.platform__list { list-style: none; margin: 0; border-block-end: var(--rule-medium) solid var(--ink); }
.platform__list li { padding-block: var(--s-3); border-block-end: var(--rule-hairline) solid var(--hairline); }
.platform__list li:last-child { border-block-end: 0; }
.platform__media { margin-block-start: auto; padding-block-start: var(--s-6); }
.platform .label-head__title { font-size: var(--fs-h2); }
.platform .shot--phone { margin-inline: auto; }
@media (min-width: 48rem) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); align-items: stretch; }
}

/* ---------- 27. Platform tag (help answers), single-column feature ---------- */
.platform-tag {
  display: inline-block;
  padding: 0.05em 0.45em 0;
  margin-inline-end: 0.35em;
  border: var(--frame) solid var(--ink);
  border-radius: var(--r-glyph);
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 0.8em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  hyphens: none;
  vertical-align: 0.08em;
}
.feature--single { display: block; }
.feature--single .feature__copy { max-inline-size: var(--measure); }

/* ---------- 28. Phone screenshot ---------- */
.shot--phone { inline-size: 100%; max-inline-size: 15rem; }
.shot--placeholder.shot--phone { aspect-ratio: 9 / 19.5; padding: var(--s-3); }
.shot--placeholder.shot--phone .shot__caption { max-inline-size: none; hyphens: auto; }

/* ---------- 29. Two-sentence claim: first sentence on its own line (hero h1, CTA h2) ---------- */
.hero__title-main, .hero__title-sub { display: block; }
.hero__title .hero__title-sub { font-size: var(--fs-h1); line-height: 1.02; margin-block-start: var(--s-2); }
