/* ==========================================================================
   Kaltro — Marketing Site Styles
   Design-token layer per design.md §4/§5. Brand palette: navy #1B2838 /
   #0F1620 · slate #3D4F5F · amber #E8850A (on dark) / #B16200 (on white).
   Elevation = surface step + 1px border + edge-highlight. No drop shadows
   except --shadow-device (device frames + mobile nav panel).
   ========================================================================== */

:root {
  /* -- Type (§4.1, fluid; nothing < 13px) -------------------------------- */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-display: clamp(2.625rem, 1.5rem + 5vw, 4.25rem);   /* hero H1 · lh 1.05 · ls -.028em · w800 */
  --text-3xl: clamp(1.875rem, 1.25rem + 2.8vw, 2.75rem);    /* section H2/page H1 · lh 1.12 · w800 */
  --text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 1.75rem);      /* panel titles/CTA band · lh 1.2 · w700 */
  --text-xl: 1.3125rem;   /* card H3, proof numerals (w600 tabular) · lh 1.35 · w700 */
  --text-lg: 1.1875rem;   /* ledes, hero sub · lh 1.55 */
  --text-md: 1.0625rem;   /* body · lh 1.6 */
  --text-sm: 0.9375rem;   /* card body, captions, nav, footer · lh 1.5 */
  --text-xs: 0.8125rem;   /* fine print · lh 1.4 · w500 */
  --text-eyebrow: 0.8125rem; /* uppercase · ls .14em · w700 */

  /* -- Spacing / layout (§4.2) ------------------------------------------- */
  --space-1: 0.25rem;   /* 4  */
  --space-2: 0.5rem;    /* 8  */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */
  --space-10: 8rem;     /* 128 */
  --section-y: clamp(4rem, 3rem + 5vw, 7rem);
  --section-y-compact: clamp(3rem, 2.5rem + 2vw, 4rem);
  --header-gap: var(--space-7);
  --container: 70rem;
  --container-narrow: 68ch;
  --container-tight: 47.5rem;
  --measure-pricing: 33.75rem;    /* the pricing column measure: /pricing (index #pricing until 2C) */
  --gutter: clamp(1.25rem, 4vw, 2rem);

  /* -- Color / surface ladder (§4.3; palette-derived only) --------------- */
  --surface-0: #0F1620;
  --surface-1: #16202C;
  --surface-2: #1B2838;
  --surface-3: #223243;
  --text-primary: #E8EBF0;
  --text-secondary: #A8B4C0;
  --text-tertiary: #8A9BAB;
  --text-on-accent: #0F1620;            /* white-on-amber BANNED */
  --accent: #E8850A;
  --accent-text: #F59E2B;
  --accent-tint: rgba(232, 133, 10, 0.10);
  --accent-border: rgba(232, 133, 10, 0.35);
  --amber-on-white: #B16200;            /* only amber permitted as text on white */
  --slate: #3D4F5F;                     /* structural/border on dark; TEXT only on white */
  --border: rgba(232, 235, 240, 0.08);
  --border-strong: rgba(232, 235, 240, 0.16);
  --input-border: rgba(232, 235, 240, 0.40); /* form-control edge; >=3:1 non-text over surface-0 (WCAG 1.4.11) */
  --edge-highlight: rgba(232, 235, 240, 0.05); /* 1px inset top hairline — the "crafted" cue */
  --shadow-device: 0 32px 64px -24px rgba(0, 0, 0, 0.55); /* device frames + mobile nav ONLY */
  --bezel: #0B111A; /* device bezel around a real capture (design.md §4.6); decorative, no text on it */
  --bezel-w: 10px;  /* that bezel's width: frame padding, and subtracted from the inner image radius */

  /* -- Radius ladder (§4.4) ---------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-device: 44px;
  --radius-pill: 999px;

  /* -- Motion (§5) ------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--text-md);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--text-on-accent);
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  /* ONE source for the bar height (2C review round 1): the bar's min-height, the mobile panel's
     `top` and its `max-height` all read --nav-h, so they cannot drift apart. */
  --nav-h: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 22, 32, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

/* min-height, not height (website Phase 2C, a11y): at 200% text zoom or a narrow phone the
   bar may need to grow rather than clip its links. */
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding-block: var(--space-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}

/* Current page (website Phase 2C): `aria-current="page"` is written in the HTML on the five hub
   pages only (/features/, /how-it-works, /switch/, /pricing, /learn/). The cue is NOT colour alone
   (WCAG 1.4.1): a 2px underline plus the --text-primary ink, which is already a measured pair on
   surface-0 (the bar) and surface-1 (the mobile panel) — no new contrast row. */
.nav-links a[aria-current="page"],
.nav-links a[aria-current="page"]:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent-text);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ⚠ The in-menu CTA is ALSO a `.nav-links a`, which (0,1,1) out-ranks `.nav-cta`
   (0,1,0) — so it rendered --text-secondary on amber (1.28:1) at rest and
   --text-primary on amber (1.79:1) on hover. Re-assert the on-accent ink at a
   specificity that wins both states (6.74:1 / 8.49:1). contrast_check.py checks
   token PAIRS, not the cascade, so it could not see this. The same out-ranking
   also took the CTA's weight (500, not 600) and swapped its background/lift
   transition for `.nav-links a`'s colour-only one, so both are restored here. */
.nav-links .nav-cta,
.nav-links .nav-cta:hover {
  color: var(--text-on-accent);
  font-weight: 600;
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text-primary);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-tint), transparent),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(61, 79, 95, 0.35), transparent);
}

/* Eyebrow: small-caps amber text only, no pill (amber-budget §4.3). */
.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: var(--text-display);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto var(--space-5);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* App Store badge: single shared SVG asset wrapped in a link (§4 / D-3). */
.store-badge {
  display: inline-block;
  border-radius: var(--radius-md);
  transition: transform 0.15s var(--ease-out);
}

.store-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  width: 180px;
  height: 54px;
}

/* Android: plain-text note, no Play badge/logo/brand colors (D-2 / R3.5). */
.android-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.2;
}

.android-note .android-label {
  font-weight: 700;
  color: var(--text-primary);
}

.hero-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* Stacked notes read as one group (home hero: free line, then founding line; State 1 adds the
   beta line above them). Adjacent siblings only, so a lone note keeps --space-5 (/s/ in every state; the final CTA in State
   0b — it pairs once State 1 puts the beta note above its free note). */
.hero-note + .hero-note {
  margin-top: var(--space-2);
}

/* State 0b companion line under a TestFlight CTA row (hero, final, import, subpage slots): the plain-text
   address + the expectation line. Its OWN element after .store-buttons — never inside that flex
   row, which stacks at <=720px and would put the text between the button and the badge. Not a
   link, so not amber and not underlined; overflow-wrap lets the address break at 400% zoom.
   The CTA band never carries one (design.md §2.1: heading + button only). */
.cta-aside {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section {
  padding: var(--section-y) 0;
}

.section-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
  max-width: 680px;
  margin-bottom: var(--space-4);
}

.section-lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: var(--space-7);
}

.centered {
  text-align: center;
}

.centered .section-title,
.centered .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Card grammar (§4.4) — one shell, three modifiers.
   Elevation = surface-2 + 1px border + inset edge-highlight (no drop shadow).
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: inset 0 1px 0 var(--edge-highlight);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card--highlight {
  border-color: var(--accent-border);
}

.card--highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card--quiet {
  background: var(--surface-1);
}

.card--chip {
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

/* Hover/press (§5.2): lift + border strengthen; amber hover only on highlight. */
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card--highlight:hover {
  border-color: var(--accent-border);
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* Icon tile (§4.5): 48×48 radius-md. Neutral by default (surface-3 +
   text-secondary stroke); tier-one (highlight) = accent-tint + accent-text. */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

.card--highlight .feature-icon {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}

.card--highlight .feature-icon svg {
  stroke: var(--accent-text);
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Split section (privacy / import / engine)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.check-list li strong {
  color: var(--text-primary);
}

/* Check ring (§4.5): neutral — border-strong ring + text-secondary check. */
.check-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-list .check svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-secondary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-list details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  /* F-134 3.1b (R5): the card padding lives on the <summary> so the whole row (>=44px, WCAG 2.5.8
     house standard) is the toggle; the answer is inset by margin-inline + padding-bottom below. Same pixels as before. */
  padding: 0;
  transition: border-color 0.2s var(--ease-out);
}

.faq-list details[open] {
  border-color: var(--accent-border);
}

.faq-list summary {
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  /* R8: no outline override here — the global :focus-visible ring (2px accent-text, offset 3px)
     follows this radius so the outset ring traces the card shape. */
  border-radius: var(--radius-md);
}

.faq-list details[open] summary {
  padding-bottom: 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Marker demoted to neutral; amber only when open (amber-budget §4.3). */
.faq-list summary::after {
  content: "+" / "";
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-text);
}

.faq-list details p {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

/* R5 answer inset (any answer element, not only <p>). overflow-wrap lets long bare URLs
   (apps.apple.com/account/subscriptions) break inside the card at 320px / 400% zoom (1.4.10). */
.faq-list details > :not(summary) {
  margin-inline: var(--space-5);
  overflow-wrap: anywhere;
}

/* Bottom inset as PADDING, not margin: page-level `p` rules give the answer a margin-bottom (16px on
   /import, 12px on /support, 0 on /pricing) that the old details padding sat BELOW. A margin here
   would replace it and shrink those cards by 12-16px; padding stacks above it, as before. */
.faq-list details > :not(summary):last-child {
  padding-bottom: var(--space-5);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(232, 133, 10, 0.16), transparent);
  border-top: 1px solid var(--border);
}

.final-cta .section-title {
  max-width: none;
}

.final-cta .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-6);
  background: var(--surface-0);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-brand {
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-col-title {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 32px-tall targets, measured 2026-09-25 (text-sm 15px x the inherited body line-height 1.6
   = 24px, + 2 x 4px padding; 2.5.8 floor is 24, the house 44px bar is OWED): the old 8px list gap moved into the links' own padding, so each row
   keeps its pitch and the column grows by one padding at each end. */
.footer-col a {
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Legal / content pages
   -------------------------------------------------------------------------- */

.page-header {
  padding: var(--space-8) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 50% -20%, rgba(61, 79, 95, 0.3), transparent);
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.page-header .meta {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-9);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: var(--space-7) 0 var(--space-3);
}

.legal-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-5) 0 var(--space-2);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  font-size: var(--text-md);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content .callout {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}

.legal-content .callout p {
  margin-bottom: 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: var(--text-sm);
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.legal-content th {
  color: var(--text-primary);
  background: var(--surface-2);
  font-weight: 600;
}

/* CTA lead-in on legal pages (import "Ready?"). Higher specificity so it
   overrides the base .legal-content h2/p margins without !important. */
.legal-content h2.cta-lead {
  margin-top: var(--space-8);
}

.legal-content p.cta-lead-sub {
  margin-bottom: var(--space-5);
}

/* Support page cards */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.support-card h2,
.support-card h3 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/* Reveal: hidden state applies only when JS is on (html.js). With JS off, the
   base .reveal stays fully visible — no blackout (R7.7 / D-5). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* §5.6: hover lifts become color/border change only — no translate. */
  .card:hover,
  .nav-cta:hover,
  .store-badge:hover {
    transform: none;
  }
  /* ⚠ The skip link hover is neutralised in the LAST reduced-motion
     block at the end of this file, not here: their base rules come LATER in the file at the
     same specificity, so a reset placed here loses the cascade (measured 2026-09-25). */
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: var(--space-8) 0 var(--space-7);
  }

  /* Mobile-scoped scroll lock while the nav panel is open (H1 / §5.4).
     The .nav-links base + .open rules that were here are superseded verbatim by
     the Phase-3 fixed-panel block below; li/a/.nav-cta below are NOT, so kept. */
  body.nav-open {
    overflow: hidden;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-md);
  }

  .nav-links .nav-cta {
    display: inline-block;
    margin-top: var(--space-2);
    padding: var(--space-3) var(--space-5);
  }

  /* 44x44 hit area (house target; WCAG 2.5.8 floor is 24). Centred inline-flex so the
     24px burger glyph does not grow with the box. */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .store-buttons {
    flex-direction: column;
    width: 100%;
  }

  .store-badge {
    width: 100%;
    max-width: 320px;
  }

  .store-badge img {
    width: 100%;
    height: auto;
  }

  .android-note {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ==========================================================================
   Landing v2 — engine section, screenshot frames, comparison, capture
   ========================================================================== */

.visual-caption {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-align: center;
}

/* Device frame (design.md §4.6). Every slot ships a real capture: a <picture> (avif/webp/png)
   whose <img> carries the PNG's width/height, inside .phone-frame.frame--shot (see that rule
   for the bezel). The skeleton placeholder was retired after PR #577; never stage a mock frame. */
.phone-frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-4) var(--space-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Engine section chips (card--chip). Progress = highlight; the two holds are neutral. */
.chip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.engine-chip .chip-kind {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin-bottom: var(--space-4);
}

.engine-chip.card--highlight .chip-kind {
  color: var(--accent-text);
  border-color: var(--accent-border);
}

/* F-129 2.8: the engine chips are illustrations with sample numbers, so each says so on screen. */
.engine-chip .chip-example {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--text-secondary);
}

.engine-chip .chip-suggestion {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.engine-chip .chip-reason {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* F-129 V1.5 follow-up (2026-11-16): chip 1 shows what its Show Reasoning tap opens — an inset
   "sheet behind the chip" on surface-3 (text-primary/-secondary on surface-3 are matrix rows).
   An illustration, not a control: no button, no heading, no glyph. */
.engine-chip .chip-receipt {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-primary);
}

.engine-chip .chip-receipt-label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

/* The one on-device sentence under the chips (website Phase 2C, ruling T6). The guardrail panel,
   signal chips and accountability line it used to sit beside were retired from the home page. */
.engine-kicker {
  max-width: 66ch;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.compare-table thead th {
  color: var(--text-primary);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  background: var(--surface-3);
}

.compare-table .th-sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text-primary);
}

/* Keep row labels visible while the table scrolls horizontally on phones */
.compare-table tbody th,
.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface-2);
}

.compare-table thead th:first-child {
  background: var(--surface-3);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .col-kaltro {
  background: var(--accent-tint);
  color: var(--text-primary);
}

.compare-table thead .col-kaltro {
  color: var(--accent-text);
}

.compare-table .col-kaltro strong {
  color: var(--text-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Founding-member capture: border-strong shell + amber kicker (amber-budget). */
.founding-capture {
  margin: var(--space-7) auto 0;
  max-width: 460px;
  border-color: var(--border-strong);
  text-align: left;
}

.founding-kicker {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2);
}

.founding-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.founding-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* The founding card's PRICE TERMS note (half the annual price, no free trial — /pricing's founding
   card since website Phase 2C; it sat under the retired home #pricing ghost button before) is
   body-size secondary text, never --text-xs/tertiary fine print. The .founding-btn and
   .founding-btn--ghost rules were retired in 2C: no page carries a founding button any more (the
   home ask is a text link, owner ruling S3; /pricing carries none, R3; /s/'s CTA is a .btn-primary). */
.founding-note--terms {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Responsive: landing v2 */
@media (max-width: 960px) {
  .chip-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Phase 1 — accessibility base (landmarks, focus, prose links, stamps)
   ========================================================================== */

/* Skip link: visually hidden until focused (R7.1). */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--surface-3);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

/* Global focus-visible ring (R7.3). Amber #F59E2B on dark surfaces. */
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

/* Solid-amber FILLS take a --text-primary ring (design.md §4.3). The ring sits OUTSIDE the fill
   (outline-offset 3px), so it is measured against the SURFACE the control sits on, not against the
   amber — and an amber ring hugging an amber fill reads as part of the button. contrast_check.py
   pins text-primary against every surface these controls use. .store-badge (an image link) keeps
   the default --accent-text ring. The former #B16200 override is retired: it fell
   below 3:1 on surface-3 (a BANNED row in the matrix). */
.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--text-primary);
}

/* Prose links underlined at rest (WCAG 1.4.1). Nav, footer, and button-style
   links (which carry a class) are exempt via :not([class]). */
main a:not([class]),
.legal-content a:not([class]),
.faq-list a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Anchor targets clear the sticky nav (R7.6). */
[id] {
  scroll-margin-top: 5rem;
}

/* Support cards use <h2> (heading-order fix R7.9); keep the card look. */
.support-card h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Date-stamp lines (import export steps; comparison caption). */
.date-stamp {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: var(--space-1) 0 var(--space-5);
}

.compare-table caption,
.table-caption {
  caption-side: bottom;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: left;
}

/* ==========================================================================
   Utilities (token-based; replace former inline styles — R2.3)
   ========================================================================== */

.u-tabular {
  font-variant-numeric: tabular-nums;
}

.u-mt-5 {
  margin-top: var(--space-5);
}

.u-mt-7 {
  margin-top: var(--space-7);
}

.u-mb-6 {
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   Phase 3 — landing redesign (index.html)
   Hero two-column + signature staged chip reveal (§5.3), surface alternation
   bands (§1.2), number-first proof bar (UX-6), engine signals, switcher
   stepper, mid-page CTA band, comparison mobile cards (UX-24), printed
   pricing (D-17), footer (UX-7), mobile nav panel + scrolled state (§5.4).
   Appended last so it consumes/overrides the Phase 1–2 base by source order.
   ========================================================================== */

/* --- Full-bleed surface alternation (proof bar + engine on --surface-1) ---- */
.section--alt {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- Nav: scrolled state + SVG burger morph (§5.4 / R7.8) ------------------ */
.site-nav {
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(15, 22, 32, 0.95);
  border-bottom-color: var(--border-strong);
}

.nav-toggle .burger {
  display: block;
}

.nav-toggle .burger line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .burger-top {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger-bot {
  transform: translateY(-3px) rotate(-45deg);
}

/* --- Hero: two-column layout, left-aligned copy (UX-5) --------------------- */
.hero {
  text-align: left;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  /* Top-aligned (owner panel 2026-10-19, F-134 task 3.8): the frame is taller than the copy, and
     centring would push the H1, CTA and notes down by half the difference — the fold is protected
     by this alignment, not by the frame's width. */
  align-items: start;
}

.hero-copy h1 {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.hero-copy .hero-sub {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy .store-buttons,
.import-cta .store-buttons {
  justify-content: flex-start;
}

/* Phones: .store-buttons stacks into a column; align it to the start so the buttons line up
   with the left-aligned .cta-aside and notes under them instead of centring above them. */
@media (max-width: 720px) {
  .hero-copy .store-buttons,
  .import-cta .store-buttons {
    align-items: flex-start;
  }
}

/* Hero visual column: the device frame holding the real capture, no overlay (design.md §4.6). */
.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The hero caption sits inside .hero-media, directly under the frame: centred under it at ≥961 px
   (the ≤960 px rule start-aligns it with the frame). Scoped to .hero. */
.hero .visual-caption {
  width: 100%;
  max-width: 340px;
}

/* The hero capture (design.md §4.6): 340 px wide at ≥961 px, device radius and shadow, a --bezel-w bezel around
   the real 9:19.5 capture. The <img> carries width/height, so its box is reserved before it loads
   (CLS-0); the frame's height is the image's plus the bezel. The placeholder .hero-frame skeleton
   and its .hf-* lines were retired with the swap (F-129 site captures). The width is set by evidence
   legibility — the in-app suggestion and its reason must be readable in the frame (owner ruling
   2026-10-19, F-134 task 3.8); the fold is protected by .hero-layout's top alignment, not by this. */
.hero-shot {
  width: 100%;
  max-width: 340px;
  background: var(--bezel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-device);
  box-shadow: var(--shadow-device);
  padding: var(--bezel-w);
  overflow: hidden;
}

/* A device frame holding a real capture (design.md §4.6): the base frame's padding and
   gradient give way to a --bezel-w bezel; the frame keeps its width, border, radius and (for
   .phone-frame--detail) its column width. The ratio now comes from the <img>'s width/height
   attributes — the full frame is exactly 9:19.5, the detail crop exactly 9:11 — so no fixed
   container ratio fights the bezel, and the box is still reserved before the image loads. */
.phone-frame.frame--shot {
  aspect-ratio: auto;
  display: block;
  padding: var(--bezel-w);
  background: var(--bezel);
}

/* The four full-frame subpage captures wear the hero's device silhouette (radius + shadow);
   the 9:11 tour / how-it-works detail crops keep the base --radius-xl. */
.page-frame .phone-frame.frame--shot {
  border-radius: var(--radius-device);
  box-shadow: var(--shadow-device);
}

.hero-shot picture,
.frame--shot picture,
.hero-shot img,
.frame--shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot img {
  border-radius: calc(var(--radius-device) - var(--bezel-w));
}

.frame--shot img {
  border-radius: calc(var(--radius-xl) - var(--bezel-w));
}

.page-frame .phone-frame.frame--shot img {
  border-radius: calc(var(--radius-device) - var(--bezel-w));
}

/* --- Proof bar (number-first, --surface-1 band; UX-6) ---------------------- */
.proof-bar {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
}

.proof-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.proof-num {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
}

.proof-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.proof-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: left;
}

.proof-chip svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
}

/* --- Switcher: numbered <ol> stepper + ghost CTA -------------------------- */
.stepper {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.stepper li {
  position: relative;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.stepper li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: calc(-1 * var(--space-5));
  width: 1px;
  background: var(--border-strong);
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-body {
  padding-top: 3px;
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.step-body strong {
  color: var(--text-primary);
}

.btn-ghost {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--text-tertiary);
  background: var(--surface-2);
  text-decoration: none;
  transform: translateY(-1px);
}

/* --- Comparison: amber th top border + focusable scroll region ------------ */
.compare-table thead .col-kaltro {
  border-top: 2px solid var(--accent);
}

.compare-table-wrap:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

/* Mobile capability cards (shown ≤720px; the table is display:none there). */
.compare-cards {
  display: none;
}

.cap-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 var(--edge-highlight);
  overflow: hidden;
}

.cap-title {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
}

.cap-card dl {
  margin: 0;
}

.cap-card .ccm-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.cap-card .ccm-row:last-child {
  border-bottom: 0;
}

.cap-card dt {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.cap-card dd {
  margin: 0;
  text-align: right;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.cap-card .ccm-kaltro {
  background: var(--accent-tint);
}

.cap-card .ccm-kaltro dt,
.cap-card .ccm-kaltro dd {
  color: var(--text-primary);
}

.compare-stamp {
  text-align: center;
  margin-top: var(--space-5);
}

/* --- Pricing lists (the closed lists print on /pricing only since website Phase 2C) -------- */
.pricing-list-label {
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-list {
  margin-top: var(--space-2);
  list-style: none;
}

/* The site's custom dot (shared with .tool-list li::before, below) instead of a default disc.
   list-style:none drops list semantics in WebKit/VoiceOver, so the markup restates
   role="list" on each <ul>. */
.pricing-list li {
  position: relative;
  padding-left: var(--space-5);
}

.pricing-list li + li {
  margin-top: var(--space-1);
}

.price-amt {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.price-per {
  margin-left: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
}

.price-note {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.price-stamp {
  margin: var(--space-4) 0 0;
  text-align: center;
}

/* --- FAQ: chevron marker (§5.5). Rotates on open; alt-text-safe. ----------- */
.faq-list summary::after {
  content: "" / "";
  display: block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--text-secondary);
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--accent-text);
}

/* --- Footer (UX-7): tagline + no-cookies chip; legal links in bottom bar --- */
.footer-brand .footer-tagline {
  margin-bottom: var(--space-2);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
}

.footer-brand .footer-chip {
  display: inline-block;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal a {
  padding: var(--space-3) 0; /* 20.8 line + 2x12 = 44.8px house target */
  color: var(--text-tertiary);
}

.footer-legal a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-legal a + a {
  margin-left: var(--space-4);
}

.footer-legal a + a::before {
  /* Fallback first: engines without alt-text syntax drop the second line
     and keep the visible separator. The "" alt keeps it out of the name. */
  content: "\00B7";
  content: "\00B7" / "";
  margin-right: var(--space-4);
  color: var(--text-tertiary);
}

/* --- Responsive (Phase 3) ------------------------------------------------- */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  /* One column (design.md §2.1): the full-frame capture under the copy, as wide as the column
     allows up to 360px — fluid (width:100% on the base rule), so 320px never scrolls sideways.
     It keeps the device radius and bezel; its <img> width/height reserve the box (CLS 0). */
  .hero-shot {
    max-width: 360px;
  }

  /* Start-aligned so frame and caption share the copy's left edge; visibly so whenever the column
     exceeds 360px. */
  .hero-media {
    align-items: flex-start;
  }

  .hero .visual-caption {
    text-align: left;
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .proof-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--space-4);
  }

  /* Comparison: swap the table for stacked capability cards (UX-24). */
  .compare-table-wrap {
    display: none;
  }

  .compare-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: left;
  }
}

/* --- Mobile nav panel: full-width slide-down (240ms) + scroll lock (§5.4) -- */
@media (max-width: 720px) {
  .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-device);
    padding: var(--space-3) var(--gutter) var(--space-5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.24s var(--ease-out), opacity 0.24s var(--ease-out),
      visibility 0.24s var(--ease-out);
  }

  /* visibility flips to visible at t=0 on OPEN (0s here) and only waits out the fade on
     CLOSE (the base rule's 0.24s). Interpolated, visibility is still `hidden` at progress 0,
     so with the base transition on open, main.js's synchronous focus() on the first link
     landed nowhere and focus stayed on the toggle — the §5.4 "focus moves into the panel on
     open" contract held only under reduced motion. */
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.24s var(--ease-out), opacity 0.24s var(--ease-out), visibility 0s;
    /* body.nav-open locks the page scroll, so a panel taller than the viewport (landscape phone,
       large text) must scroll itself or its last links are unreachable (website Phase 2C, a11y).
       100vh first as the fallback for engines without dvh. */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* --- Reduced-motion (§5.6): extends the Phase 1 block for new components --- */
@media (prefers-reduced-motion: reduce) {
  /* Nav: instant show/hide + icon swap without rotation animation. `.nav-links.open` is listed
     explicitly: its own open-state transition (0,2,0) would otherwise out-rank `.nav-links`
     (0,1,0) here and slide/fade the panel open under reduced motion. */
  .site-nav,
  .nav-links,
  .nav-links.open,
  .nav-toggle .burger line {
    transition: none;
  }

  /* Hover lift + FAQ chevron rotation → color/border change only. */
  .btn-ghost:hover {
    transform: none;
  }

  .faq-list summary::after {
    transition: none;
  }
}

/* ==========================================================================
   Phase 4 — subpages (§2.2–§2.7 / R4). Reuses Phase 3 atoms (.card, .stepper,
   .section-title/-lede, .faq-list, .date-stamp, .section--alt, .btn-ghost,
   .feature-icon). Appended last so it wins on source order.
   ========================================================================== */

/* --- import.html expansion (§2.2 / R4.1) ---------------------------------- */
.import-page p {
  color: var(--text-secondary);
  font-size: var(--text-md);
  max-width: 66ch;
  margin-bottom: var(--space-4);
}

.import-page p strong { color: var(--text-primary); }

.import-lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 70ch;
  margin-bottom: var(--space-7);
}

.import-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  align-items: start;
}

.import-guides .card h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.import-generic { margin-top: var(--space-7); }

.import-generic h2,
.import-cta h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.subhead {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: var(--space-7) 0 var(--space-2);
}

/* Carryover table — scrollable, focusable region (a11y). */
.table-scroll {
  overflow-x: auto;
  margin: var(--space-6) 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.table-scroll:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
}

.data-table caption {
  caption-side: top;
  padding: var(--space-4) var(--space-4) var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table thead th {
  color: var(--text-primary);
  background: var(--surface-3);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.data-table tbody th {
  color: var(--text-primary);
  font-weight: 600;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table strong { color: var(--text-primary); }

.data-table .mark-no { color: var(--text-tertiary); }

/* Honest bulleted lists (doesn't-carry-over, day-one). */
.import-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 70ch;
  margin: var(--space-4) 0 0;
}

.import-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.import-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.import-list li strong { color: var(--text-primary); }

/* Stuck? callout — mirrors the legal-content callout (amber left border). */
.import-page .callout {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: 0 0 var(--space-6);
  max-width: 70ch;
}

.import-page .callout p { margin: 0; max-width: none; }

.import-cta { margin-top: var(--space-6); }

.import-cta p { margin-bottom: var(--space-5); }

/* The State-0b aside closes the section: same spacing as the hero / final asides (margin-top
   only), not the section lede's bottom margin. */
.import-cta .cta-aside { margin-bottom: 0; }

@media (max-width: 720px) {
  .import-guides {
    grid-template-columns: 1fr;
    margin-bottom: var(--space-5);
  }
}

/* --- press.html assets + quotable line (§2.4 / R4.3) ---------------------- */
.legal-content .pull-quote {
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-left: 3px solid var(--accent);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.legal-content .asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: var(--space-5) 0;
}

.legal-content .asset-grid .card { padding: var(--space-5); }

.legal-content .asset-grid .card h3 { margin: 0 0 var(--space-2); }

.legal-content .asset-grid .card p { margin-bottom: var(--space-4); }

@media (max-width: 960px) {
  .legal-content .asset-grid { grid-template-columns: 1fr; }
}

/* --- privacy/terms reading treatment (§2.5 / R4.4) ------------------------ */
.legal-content.legal-doc {
  max-width: var(--container-narrow);
  line-height: 1.65;
}

.toc {
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 var(--edge-highlight);
}

.toc-title {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.toc ol {
  margin: 0;
  padding: 0 0 0 var(--space-5);
  columns: 2;
  column-gap: var(--space-7);
}

.toc li { margin-bottom: var(--space-2); color: var(--text-secondary); }

.toc a { color: var(--text-secondary); }

.toc a:hover { color: var(--text-primary); }

@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

/* --- 404.html (§2.7 / R4.6) ----------------------------------------------- */
.notfound {
  min-height: 58vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.notfound .container { max-width: var(--container-tight); }

.nf-code {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.notfound h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.nf-line {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.nf-actions { margin-bottom: var(--space-5); }

.nf-links {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-7);
}

.nf-badge { justify-content: center; }

/* --- s/ share landing trims (§2.6 / R4.5) --------------------------------- */
.s-page .hero .store-buttons { justify-content: flex-start; }

/* /s/ end-of-page CTA card (State 0b slot since 2026-10-15): the card is left-aligned, so the
   button row starts at the left edge too and lines up with the title and .cta-aside — on phones
   as well, where .store-buttons stacks into a column. */
.s-page .founding-capture .store-buttons {
  justify-content: flex-start;
  align-items: flex-start;
}

.share-echo {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 300px;
  margin-bottom: var(--space-6);
  text-align: left;
}

.share-echo-kind {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.share-echo-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.share-echo-body strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Phase 5 — growth content / calculators (F-101 WS1). Tokens only; reuses
   Phase-3/4 atoms (.card, .data-table, .table-scroll, .section-title/-lede,
   .btn-ghost, .store-badge). New color pairings (text-primary on surface-2,
   text-secondary on surface-0) are registered in checks/contrast_check.py.
   Appended last so it wins on source order.
   ========================================================================== */

/* --- Breadcrumb trail (mirrors BreadcrumbList JSON-LD) -------------------- */
.breadcrumb {
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: var(--space-2) 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-tertiary);
}

.breadcrumb a {
  display: inline-block;
  padding-block: var(--space-1); /* 32px target (measured); the trail's own padding shrinks to match */
  color: var(--text-secondary);
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb [aria-current="page"] { color: var(--text-tertiary); }

/* --- Tool page shared copy ------------------------------------------------ */
.tool-answer {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 70ch;
  margin-bottom: var(--space-6);
}

.tool-answer strong,
.tool-note strong,
.tool-outro strong { color: var(--text-primary); }

/* Consecutive class-less <p> inside a .tool-page section.
   ⚠ `* { margin: 0 }` is the ONLY rule that reaches a bare <p> here: `.tool-page` defines no
   `p` rule (the class appears in this file only in comments), there is no global `p` rule, and
   the site has no other `p + p` selector. So two class-less paragraphs in a row rendered with
   ZERO gap and read as one paragraph. Added 2026-09-19 when methodology/e1rm-trends.html became
   the first page site-wide to have such a pair — of the **10** class-less p+p pairs that exist,
   the other **9** all sit under .legal-content or import.html's own scoped wrapper, which DO
   define `p { margin-bottom }` (**8** legal — privacy.html:128,166,167,200 and
   terms.html:93,122,139,158 — plus one at import.html:138, which is inside
   `<div class="import-page">` at import.html:83 and spaced by **`.import-page p`** at
   style.css:2331).
   ⚠⚠ **That census read 9 / 8 / 7 and credited `.import-generic` until 2026-09-21; both halves
   were wrong and both are worth recording.** (a) The author counted RUNS, not PAIRS —
   privacy.html:165-167 is THREE consecutive bare <p>, which is one run and TWO pairs, so every
   figure was short by one. Re-derive with an element-adjacency matcher over the parsed tree, as
   this comment's own ⚠ below already instructs; a grep counts the wrong thing in BOTH directions.
   (b) `.import-generic` defines only `margin-top` (style.css:2364) and provides no
   `p { margin-bottom }` at all — right conclusion (do not narrow this rule to that class), wrong
   referent, which would have sent the next maintainer to a rule that does nothing.
   ⛔ The `:not([class])` scoping is load-bearing, not tidiness: a bare `p + p` would also match
   `<p class="section-lede">` followed by a bare <p> (7 pairs across 3 methodology pages), and
   `<p class="tool-answer">` followed by a bare <p> (7 more across 7 pages) — 14 pairs it would
   newly indent, all of which already space themselves via .section-lede's --space-7 and
   .tool-answer's --space-6 bottom margins.
   ⚠ Those magnitudes are measured, and an earlier version of this comment said "~20 tool pages",
   which was the count of pages merely CONTAINING .section-lede — not pairs, and not pages the
   selector would touch. Re-derive with an element-adjacency matcher if you change this rule; a
   grep for the class counts the wrong thing. */
.tool-page .container > p:not([class]) + p:not([class]) { margin-top: var(--space-4); }
/* Same zero-gap bug one step over: a class-less <p> right after a .tool-list. */
.tool-page .container > .tool-list + p:not([class]) { margin-top: var(--space-4); }

.tool-note {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 70ch;
  margin-top: var(--space-4);
}

.tool-outro {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 70ch;
  margin-top: var(--space-6);
}

/* --- Hub cards ------------------------------------------------------------ */
.tool-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: var(--space-6) 0;
  align-items: start;
}

.tool-cards .card h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.tool-cards .card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

/* --- Calculator widget: progressive enhancement only --------------------- */
.calc { display: none; }              /* JS-off: static formulas below are the content */
.js .calc {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  box-shadow: inset 0 1px 0 var(--edge-highlight);
}

.calc-heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.calc-sub {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}

.calc-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: flex-end;
  margin-bottom: var(--space-5);
}

.calc-sets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.calc-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Label / input / per-field message share three ROWS across both fields of a set (subgrid),
   so an inline error under one input never pushes its sibling out of line: labels
   bottom-align, the two inputs share a row, messages share a third. Row gap is 0 and the
   spacing lives on the label and the message, so the empty message row costs no height.
   Without subgrid support this degrades to the ordinary label-over-input stack. */
@supports (grid-template-rows: subgrid) {
  /* align-content: start — a set sharing an outer .calc-sets row with a TALLER set (one
     showing a message) must not stretch its own rows, or its label/input slide down out of
     line with the neighbouring set's. */
  .calc-set {
    grid-template-rows: auto auto auto;
    row-gap: 0;
    align-content: start;
  }

  .calc-set > .calc-field {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    gap: 0;
  }

  .calc-set > .calc-field label {
    align-self: end;
    padding-bottom: var(--space-2);
  }
}

.calc-field { display: flex; flex-direction: column; gap: var(--space-2); }

.calc-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-field input {
  width: 100%;
  min-width: 6rem;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-md);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  background: var(--surface-0);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
}

.calc-field input::placeholder { color: var(--text-tertiary); opacity: 1; }

/* Invalid reps (aria-invalid, set by e1rm-calc.js / volume-calc.js on a fractional entry).
   The non-colour cue is the WIDTH (1px -> 2px) plus the error naming the field in text; the
   colour is --text-primary, an existing matrix pairing on BOTH grounds it touches (surface-0
   inside the input, surface-1 on the .calc card), so no new contrast row is needed. Padding
   gives back the extra pixel so the field does not grow (CLS). */
.calc-field input[aria-invalid="true"] {
  border: 2px solid var(--text-primary);
  padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px);
}

.calc-field input:focus-visible,
.calc-unit input:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.calc-unit {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: inline-flex;
  gap: var(--space-4);
  align-items: center;
}

.calc-unit legend {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 0 var(--space-2);
}

.calc-unit label {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* the label is the radio's hit area (2.5.8; house 44px) */
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-5);
}

/* Result region (aria-live). */
.calc-result {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}

.calc-hint { color: var(--text-tertiary); font-size: var(--text-sm); margin: 0; }

.calc-summary {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.calc-refusal {
  font-size: var(--text-md);
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
  margin: 0;
}

/* Invalid INPUT — distinct from the refusal above, which is amber because amber means
   "Kaltro won't". Same geometry; only the rule colour differs (text-primary = "fix the
   entry"). The "Error:" cue is real text at the start of the summary string (set by the
   calculator scripts), so it reaches the sr-only live copy and machine translation — never a
   CSS ::before. Never applied to the page-load prompt: an empty form is not an error. */
.calc-error {
  font-size: var(--text-md);
  color: var(--text-primary);
  border-left: 3px solid var(--text-primary);
  padding-left: var(--space-4);
  margin: 0;
}

/* Per-field message under an invalid volume-calculator input (id "<input>-err", referenced by
   that input's aria-describedby). Static text — no aria-live, no role. */
.calc-field-msg {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* The table / estimate card block under the summary gets a gap only when it has content. */
.calc-result > div:not(:empty) {
  margin-top: var(--space-5);
}

/* Side-by-side formula results table. */
.calc-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
  margin-bottom: var(--space-5);
}

.calc-grid caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-3);
  color: var(--text-tertiary);
}

.calc-grid th,
.calc-grid td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.calc-grid thead th { color: var(--text-primary); font-weight: 600; }
.calc-grid tbody th { color: var(--text-secondary); font-weight: 500; }
.calc-grid tbody td {
  color: var(--text-primary);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Kaltro's estimate — visually distinct, honestly labelled. */
.estimate-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.estimate-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-1);
}

.estimate-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.estimate-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  max-width: 60ch;
}

/* --- Static formula list -------------------------------------------------- */
.formula-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-6) 0 0;
  max-width: 74ch;
}

.formula dt {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.formula dd { margin: 0; }

.formula dd p {
  color: var(--text-secondary);
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
  max-width: 70ch;
}

.formula dd p strong { color: var(--text-primary); }

.formula-expr {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--text-md);
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

/* --- Tool bullet lists (mirror .import-list) ------------------------------ */
.tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 74ch;
  margin: var(--space-4) 0 0;
}

.tool-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.tool-list li::before,
.pricing-list li::before,
.vs-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.tool-list li strong { color: var(--text-primary); }

/* --- Methodology references (lean; text-secondary/tertiary on surface-0) --- */
.tool-refs {
  margin-top: var(--space-6);
  max-width: 74ch;
}
.tool-refs h2 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}
.tool-refs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.tool-refs li {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
}

/* --- Warning callout variant (amber left border, mirrors import callout) --- */
.callout--warn {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0 var(--space-6);
  max-width: 78ch;
}

.callout--warn p { margin: 0; color: var(--text-secondary); }
.callout--warn p strong { color: var(--text-primary); }
.callout--warn .tool-list { margin: 0; }

/* --- CTA block (mirrors .import-cta) -------------------------------------- */
.tool-cta { margin: var(--space-6) 0; }

.tool-cta h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.tool-cta p {
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

@media (max-width: 720px) {
  .tool-cards { grid-template-columns: 1fr; }
  .calc-sets { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Phase 5b — training glossary (F-101 WS3). Tokens only; reuses Phase-3/4/5
   atoms (.card, .tool-answer, .tool-list, .tool-cta, .callout--warn,
   .section-title/-lede, .breadcrumb, .page-header). Only the hub term grid is
   new. No new color pairings (text-primary/secondary on surface-0/1/2 are all
   already registered in checks/contrast_check.py).
   ========================================================================== */

/* --- Glossary hub: responsive term grid ---------------------------------- */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0;
  align-items: start;
}

.term-grid .card h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.term-grid .card h2 a { color: var(--text-primary); }
.term-grid .card:hover h2 a { color: var(--text-primary); }

.term-grid .card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

/* ==========================================================================
   Phase 5c — methodology series (F-101 WS2). Tokens only; reuses Phase-5/5b
   atoms (.tool-page, .tool-answer, .tool-list, .section-title/-lede,
   .data-table, .callout, .tool-cta, .tool-outro, .subhead). Only new atom is
   the "last verified" stamp; its text-secondary-on-surface-1 pairing is
   already registered in checks/contrast_check.py.
   ========================================================================== */
.verified-stamp {
  display: inline-block;
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.verified-stamp strong { color: var(--text-primary); }

/* Ordered decision-tree list on the progression page. */
.tree-list {
  max-width: 70ch;
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

.tree-list li { margin-bottom: var(--space-3); }
.tree-list li strong { color: var(--text-primary); }

/* ==========================================================================
   Phase 5d — template pages (F-101 WS4). NO new selectors: the split write-ups
   (/templates/push-pull-legs, /templates/upper-lower, /templates/full-body-3-day)
   reuse Phase-5/5b/5c atoms verbatim — .tool-page, .tool-answer, .section-title/
   -lede, .subhead, .tool-list, .callout--warn, .btn-ghost (CSV download),
   .tool-cta, .tool-outro, .breadcrumb, .page-header. No new color pairings, so
   checks/contrast_check.py is unchanged. This marker documents that omission is
   intentional, not forgotten.
   ========================================================================== */

/* ==========================================================================
   Phase 5e — nav/spine retrofit (F-101 FR-5.2); re-cut in website Phase 2C
   (2026-10-15): the primary nav is now 5 links + CTA (Features · How it works ·
   Switching · Pricing · Learn · Get Kaltro), byte-identical on every page. At
   >=1024px the base --space-5 gap fits with room; the burger takes over at
   <=720px. The 721–1023px band (incl. iPad portrait) is snug, so tighten the
   inter-item gap there to keep all six on one row. Tokens only; no new colors.
   ========================================================================== */
@media (min-width: 721px) and (max-width: 1023px) {
  .nav-links {
    gap: var(--space-4);
  }
}

/* Inline (desktop/tablet) nav links get a 44px-tall target via the box, not the glyph (house
   target; WCAG 2.5.8's floor is 24). The pill CTA keeps its own padding. <=720px is unchanged:
   the panel's links are already full-width blocks. No new motion. */
@media (min-width: 721px) {
  .nav-links a:not(.nav-cta) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ==========================================================================
   Phase 6 — WS6 surgical pass (F-101 FR-6.2/6.3 + OQ-4/OQ-5). Two atoms only;
   both reuse the existing accent-on-dark button pairing (the .nav-cta recipe
   verbatim), so checks/contrast_check.py needs no new rows.
   ========================================================================== */

/* Solid CTA for non-badge conversion actions (OQ-4 CTA states: Notify / TestFlight
   request / Beta / Pre-Order). Same declarations as the .nav-cta pill — one visual family. */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-text);
  text-decoration: none;
  transform: translateY(-1px);
}


/* Mobile CTA beside the burger (audit MEDIUM "mobile CTA gap"). The bar CTA
   shows only <=720px; the panel CTA hides there, so exactly ONE nav CTA is
   visible (and tabbable — display:none leaves the a11y tree) at every width. */
.nav-cta--bar {
  display: none;
}

@media (max-width: 720px) {
  /* Scoped via :has so /s/'s toggle-less nav keeps its space-between layout
     (item 10); unsupported :has degrades to space-between — still usable. */
  .site-nav .container:has(.nav-cta--bar) {
    justify-content: flex-start;
  }

  .nav-cta--bar {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

  .nav-links .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover {
    transform: none;
  }

  /* §5.6 resets whose BASE rules sit later than the Phase-1 reduced-motion block and share its
     specificity (.skip-link) — they must live here, at the end of the file, or the base rule
     wins. (The .founding-btn hover resets that stood here retired with the founding buttons in
     website Phase 2C.) */
  /* The skip link appears in place instead of sliding down from -60px. */
  .skip-link {
    transition: none;
  }
}

/* ==========================================================================
   Phase 7 — pricing/compare/switch (website Phase 2A, 2026-10-15). /pricing,
   /compare/ (+ strong, hevy) and /switch/. Tokens only — the literals are the
   1px borders and the 2px/3px focus offsets that already exist. Reuses .card,
   .card--highlight, .section-title, .faq-list, .date-stamp, .breadcrumb,
   .page-header, .import-cta, .phone-frame, .founding-capture, .pricing-list,
   .price-amt/.price-per/.price-note/.price-stamp, .split. NO new motion: the hub
   cards lift through the existing .card:hover, already neutralised in the
   Phase-1 reduced-motion block. New colour pairings are rows in
   checks/contrast_check.py ("Phase 7").
   ========================================================================== */

/* --- Shared subpage frame ------------------------------------------------- */
.page-header .page-lede {
  max-width: 66ch;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}

.page-body > section {
  padding: var(--section-y-compact) 0;
}

.page-copy {
  max-width: 66ch;
}

.page-copy > p {
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.page-copy > p + p {
  margin-top: var(--space-4);
}

.page-copy > p strong {
  color: var(--text-primary);
}

/* One phone-frame slot per page, beside the copy >=961px and below it at <=960px
   (the base .split collapse). Never above the H1 — LCP stays the H1 text. */
.page-frame .phone-frame {
  max-width: 260px;
}

/* --- /pricing: price-only plan cards ------------------------------------- */
/* DOM order is the visual order at every width — no `order`, no auto-fit (it
   orphans a 2+1 row between 720px and 960px). */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
  list-style: none;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

/* Four shared rows (kicker, name, price, terms) so names, prices and terms lines align across the
   cards even though only Pro Annual has kicker text — Free and Monthly carry an EMPTY aria-hidden
   kicker. Without subgrid the cards fall back to the flex column above (terms still bottom-align). */
@supports (grid-template-rows: subgrid) {
  .plan-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .plan-card .plan-terms {
    align-self: end;
  }
}

/* An empty spacer kicker takes no room of its own. */
.plan-kicker:empty {
  margin: 0;
}

/* Not interactive, so no lift and no border change under the cursor. */
.plan-card:hover {
  transform: none;
  border-color: var(--border);
}

.plan-card.card--highlight:hover {
  border-color: var(--accent-border);
}

/* Same type recipe as .founding-kicker; plain text, never a pill. */
.plan-kicker {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2);
}

.plan-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price {
  margin-top: var(--space-3);
}

/* Pushed to the bottom so the three terms lines bottom-align. */
.plan-terms {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* The two closed lists, ONCE each, side by side. */
.plan-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.plan-includes .pricing-list {
  margin-top: var(--space-2);
  list-style: none;
  color: var(--text-secondary);
}

.plan-includes-col > p:not(.pricing-list-label) {
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

.pricing-commitments {
  max-width: 66ch;
  margin-top: var(--space-7);
}

.pricing-commitments p {
  color: var(--text-secondary);
}

/* A commitment, not a disclaimer: body size, text-primary — never fine print. */
.pricing-commitments .pricing-safety {
  margin-top: var(--space-3);
  font-size: var(--text-md);
  color: var(--text-primary);
}

/* Scoped so /s/'s and index's founding cards keep their own widths. */
.pricing-page .founding-capture {
  max-width: var(--measure-pricing);
  margin: var(--space-7) auto 0;
}

@media (max-width: 960px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: var(--measure-pricing);
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .plan-includes {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* --- /compare/*: one 3-column table per competitor ------------------------ */
/* NEW classes on purpose: index's .compare-table carries min-width:640px and its
   .compare-table-wrap is display:none at <=720px — reused here, the table would
   vanish on every phone. Three short-cell columns fit 320px, so there is no
   scroll wrapper (and so no inert tab stop). Words only in cells. */
.vs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  font-size: var(--text-sm);
  text-align: left;
}

.vs-table th,
.vs-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  overflow-wrap: break-word;
}

.vs-table thead th {
  color: var(--text-primary);
  background: var(--surface-3);
}

.vs-table td {
  width: 33%;
}

.vs-table tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--text-primary);
}

.vs-table tbody tr:last-child th,
.vs-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Same treatment as index's .col-kaltro: accent-tint over surface-2, text-primary. */
.vs-table .col-kaltro {
  background: var(--accent-tint);
  color: var(--text-primary);
}

.vs-table thead .col-kaltro {
  color: var(--accent-text);
  border-top: 2px solid var(--accent);
}

.vs-table + .date-stamp {
  margin-top: var(--space-3);
}

.vs-notes {
  list-style: none;
  max-width: 74ch;
  margin-top: var(--space-4);
}

.vs-notes li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.vs-notes li + li {
  margin-top: var(--space-2);
}

/* <=480px: the longest single words ("programming", "development") set the table's min-content
   width; at 320px that pushed it ~20px past the container (measured). Hyphenate, and let a word
   break as a last resort, so the table always fits its column — no horizontal scroll. */
@media (max-width: 480px) {
  .vs-table th,
  .vs-table td {
    padding: var(--space-2);
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}

/* --- /compare/ and /switch/ hubs: link cards ------------------------------ */
.hub-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}

.hub-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.hub-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hub-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

.hub-grid .card p {
  color: var(--text-secondary);
  font-size: var(--text-md);
}

/* ONE link per card (the heading), stretched over the whole card; its name is
   the destination. The card shows the ring where :has() is supported; the
   link's own default ring is the fallback. */
.hub-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

@supports selector(:has(*)) {
  .hub-grid .card:has(a:focus-visible) {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
  }

  /* Only where the card ring applies: one ring, not two. */
  .hub-grid .card a:focus-visible {
    outline: none;
  }
}

.hub-next {
  margin-top: var(--space-6);
}

@media (max-width: 720px) {
  .hub-grid--2,
  .hub-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Phase 8 — features/how-it-works (website Phase 2B, 2026-10-15). /how-it-works,
   /features/ and its four leaves. Tokens only — the literals are the 1px borders
   that already exist, and two block-local custom properties declared once below
   (--hiw-frame-w, the detail frame's column width; --annot-dot, the annotation
   numeral's circle). Reuses the Phase 7 subpage frame (.page-header/.page-lede,
   .page-body, .page-copy, .page-frame, .hub-grid, .hub-card-title, .hub-next,
   .import-cta, .cta-aside), .split, .phone-frame, .callout--warn and .verified-stamp.
   NO new motion and no new @keyframes (the frames hold static captures; the skeleton
   shimmer was retired with the placeholder after PR #577). New colour pairings
   are rows in checks/contrast_check.py ("Phase 8").
   ========================================================================== */

/* Block-local sizes, declared once: every consumer (.hiw-figure-col,
   .phone-frame--detail, .annotations) sits inside a .hiw-band. */
.hiw-band {
  --hiw-frame-w: 320px;
  --annot-dot: 1.75rem;
}

/* A section title that follows a lead paragraph (the /features/ hub) needs the
   section rhythm above it, not the paragraph's zero bottom margin. */
.page-copy + .section-title {
  margin-top: var(--space-8);
}

/* --- /how-it-works: the four-outcome jump list (classless prose links) ---- */
.hiw-jump {
  margin-top: var(--space-3);
  padding-left: var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.hiw-jump li + li {
  margin-top: var(--space-2);
}

/* --- /how-it-works: one band per outcome --------------------------------- */
/* Copy column + a fixed frame column, the SAME side on every band (no zig-zag).
   DOM order is the reading order at every width: copy, then frame, then its
   annotation list — no `order`, no grid-area reordering. Stacks at <=960px. */
.hiw-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hiw-frame-w);
  gap: var(--space-8);
  align-items: start;
}

.hiw-figure {
  margin: 0;
}

.hiw-figure figcaption {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: center;
}

/* The detail crop (design.md §4.6): a TOP crop of the real 9:19.5 capture at about
   9:11, same bezel, border and radius as the base frame. Art is a crop of the real
   F-100 frame, never a re-render. Every slot is swapped: .frame--shot drops this 9:11 ratio and
   the <img>'s width/height reserve the box, so it is CLS-0. */
.phone-frame--detail {
  max-width: var(--hiw-frame-w);
  aspect-ratio: 9 / 11;
}

/* Annotations are TEXT, never callouts over the image. The numeral is a CSS
   counter in an opaque circle (--text-primary on --surface-3, --border-strong ring).
   The ring is decorative; the numeral and the list order carry the meaning. The
   second `content` declaration hides the generated numeral from assistive tech
   where the alt-text syntax is supported (the list already exposes its order);
   older engines drop it and keep the first. */
.annotations {
  list-style: none;
  counter-reset: annot;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.annotations li {
  counter-increment: annot;
  position: relative;
  min-height: var(--annot-dot);
  /* Centres the first text line on the numeral circle: half the difference
     between the circle and one line box. */
  padding-top: calc((var(--annot-dot) - 1.5em) / 2);
  padding-left: calc(var(--annot-dot) + var(--space-3));
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.annotations li::before {
  content: counter(annot);
  content: counter(annot) / "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--annot-dot);
  height: var(--annot-dot);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .hiw-band {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .hiw-figure-col {
    max-width: var(--hiw-frame-w);
    width: 100%;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Phase 9 — home slim-down (website Phase 2C, 2026-10-15). The feature tour,
   the switching teaser's prose links and the privacy + pricing teaser band.
   Tokens only; the literals are the 300/260/240px frame widths (design.md §4.6
   tour scope). Reuses .section--alt, .split, .phone-frame--detail, .check-list
   and .section-eyebrow/-title. NO new motion and no new @keyframes (the frames
   hold static captures; the skeleton shimmer was retired after PR #577).
   No new colour pairings: text-primary/-secondary on surface-0
   and surface-1, and accent-text links on both, are existing matrix rows.
   ========================================================================== */

/* --- Feature tour: four rows, copy + one detail frame each ------------------- */
.tour {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
  margin-top: var(--space-7);
}

/* DOM order is copy, then frame, in EVERY row. Even rows put the frame on the
   left at >=961px by grid-column ONLY — never `order`/row-reverse — so reading
   and focus order are identical in all four rows. */
.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-8);
  align-items: center;
}

.tour-row:nth-child(even) {
  grid-template-columns: 300px minmax(0, 1fr);
}

.tour-row:nth-child(even) .tour-figure {
  grid-column: 1;
  grid-row: 1;
}

.tour-row:nth-child(even) .tour-copy {
  grid-column: 2;
  grid-row: 1;
}

.tour-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.tour-copy p {
  max-width: 60ch;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.tour-copy p + p {
  margin-top: var(--space-3);
}

.tour-figure {
  margin: 0;
}

/* The tour's detail frames: the same 9:11 top crop as /how-it-works (design.md §4.6), sized for
   the tour column. The swapped frames' <img> width/height reserve the box (the container's ratio
   is dropped by .frame--shot), so the capture is CLS-0. */
.tour-figure .phone-frame--detail {
  max-width: 300px;
}

/* --- Switching teaser + pricing teaser: plain prose links, never buttons ------ */
.teaser-links,
.pricing-teaser p:not(.section-eyebrow) {
  max-width: 62ch;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.split--top {
  align-items: start;
}

.pricing-teaser p:not(.section-eyebrow) + p {
  margin-top: var(--space-4);
}

.pricing-teaser .founding-line strong {
  color: var(--text-primary);
}

/* Home rhythm (web-designer, 2C review round 1): the two short bands — the switching teaser and
   the final CTA — take the compact section padding. A class, never an id selector. */
.section--compact {
  padding: var(--section-y-compact) 0;
}

@media (max-width: 960px) {
  .tour {
    gap: var(--space-7);
  }

  .tour-row,
  .tour-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .tour-row:nth-child(even) .tour-figure,
  .tour-row:nth-child(even) .tour-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .tour-figure .phone-frame--detail {
    max-width: 260px;
  }
}

@media (max-width: 720px) {
  .tour {
    gap: var(--space-6);
  }

  .tour-row,
  .tour-row:nth-child(even) {
    gap: var(--space-4);
  }
}

/* Phones (web-designer, 2C review round 1 — layout only): a smaller tour frame and tighter
   engine chips, so the home page stays near its realistic ≈13-screen target at 375px (design.md
   §2.1). The hero capture's former 220px phone cap was retired 2026-10-19 (owner ruling, F-134
   task 3.8): it now follows the ≤960px rule. */
@media (max-width: 480px) {
  .tour-figure .phone-frame--detail {
    max-width: 200px;
  }

  .engine-chip.card--chip {
    padding: var(--space-4);
  }
}
