/* SimpleScanner site, step 1. Every colour, radius and space comes from tokens.css
   (brief/tokens.css, copied unchanged). Look A "calm and warm": brief/02-design-system.md. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--ss-ink-secondary) 45%, transparent) var(--ss-page);
}

body {
  margin: 0;
  background: var(--ss-page);
  color: var(--ss-ink);
  font: 400 1.0625rem/1.6 var(--ss-font);
  font-synthesis: none;
  overflow-wrap: break-word;
  caret-color: var(--ss-primary);
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

a {
  color: var(--ss-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--ss-primary) 50%, transparent);
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ss-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  background: var(--ss-mint);
  border-radius: var(--ss-radius-thumbnail);
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

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

.skip {
  position: absolute; left: var(--ss-space-4); top: -100px; z-index: 20;
  background: var(--ss-primary); color: var(--ss-on-primary);
  padding: var(--ss-space-3) var(--ss-space-4); border-radius: var(--ss-radius-chip);
  font-weight: 600; text-decoration: none;
}
.skip:focus-visible { top: var(--ss-space-3); }

.wrap {
  max-width: var(--ss-max-width);
  margin-inline: auto;
  padding-inline: var(--ss-side-margin);
}
@media (min-width: 48em) {
  .wrap { padding-inline: var(--ss-space-8); }
  .wrap { max-width: calc(var(--ss-max-width) + 2 * var(--ss-space-8)); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ss-page);
  border-bottom: 1px solid var(--ss-line);
}
/* Very large text on a short screen: don't pin a tall header. */
@media (max-height: 30em) {
  .site-header { position: relative; }
}

/* The line (and on Home the solid page colour) appears after scrolling, CSS only. */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-settle linear both;
    animation-timeline: scroll(root);
    animation-range: 0 40px;
  }
  .home .site-header { animation-name: header-settle-home; }
}
@keyframes header-settle {
  from { border-bottom-color: transparent; }
  to { border-bottom-color: var(--ss-line); }
}
@keyframes header-settle-home {
  from { border-bottom-color: transparent; background-color: transparent; }
  to { border-bottom-color: var(--ss-line); background-color: var(--ss-page); }
}

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--ss-space-4);
  min-height: 72px;
  position: relative;
  flex-wrap: wrap; /* large text on a narrow phone: the menu moves under the wordmark */
  padding-block: var(--ss-space-1);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ss-ink);
  min-height: 44px;
}
.brand img { width: 28px; height: 28px; }
.wordmark { font-size: min(1.375rem, 7vw); line-height: 1; letter-spacing: -0.005em; white-space: nowrap; }
.wordmark .w1 { font-weight: 300; color: var(--ss-ink); }
.wordmark .w2 { font-weight: 600; color: var(--ss-primary); }

.nav-wide { display: flex; align-items: center; gap: var(--ss-space-6); }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ss-ink); text-decoration: none; font-weight: 400;
}
.nav-link:hover { color: var(--ss-primary); }
.nav-link[aria-current="page"] {
  color: var(--ss-primary); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ss-space-2);
  height: 52px; padding: 0 22px;
  border-radius: var(--ss-radius-button);
  background: var(--ss-primary); color: var(--ss-on-primary);
  font: 600 1rem/1 var(--ss-font);
  text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease-out;
}
.btn:hover { background: color-mix(in srgb, var(--ss-primary) 92%, black); color: var(--ss-on-primary); }
.btn-nav { height: 44px; }

/* Phone menu: <details>, no JavaScript. */
.nav-menu { display: none; }
.nav-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--ss-space-2);
  min-height: 44px; padding: 0 var(--ss-space-4);
  border: 1px solid var(--ss-line); border-radius: var(--ss-radius-chip);
  font-weight: 600; color: var(--ss-ink);
  transition: background-color 160ms ease-out;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--ss-mint); }
.nav-menu .icon-close { display: none; }
.nav-menu[open] .icon-close { display: block; }
.nav-menu[open] .icon-menu { display: none; }
.nav-menu .panel {
  position: absolute; right: 0; top: calc(100% - 4px);
  min-width: min(260px, 100%);
  display: grid; gap: var(--ss-space-2);
  padding: var(--ss-space-3);
  background: var(--ss-card);
  border-radius: var(--ss-radius-card);
  box-shadow: var(--ss-shadow-card);
}
.nav-menu .panel .nav-link { padding: 0 var(--ss-space-3); border-radius: var(--ss-radius-chip); min-height: 48px; }
.nav-menu .panel .nav-link:hover { background: var(--ss-mint); }
.nav-menu .panel .btn { width: 100%; }

@media (max-width: 40em) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
  .nav-menu .panel { right: var(--ss-side-margin); left: var(--ss-side-margin); }
}

/* ---------- Type ---------- */

.display {
  /* The brief's clamp; min(…, 15vw) only bites with very large text on a narrow screen,
     so one long word or key phrase ("documents.", "on your phone") never runs off the side. */
  font-size: min(clamp(2.25rem, 5vw, 3.5rem), 12vw);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.display .l { display: block; }

h2, .h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

/* The key word: emerald, weight 400, owner's drawing 2 underneath (inline SVG, em units). */
.kw {
  position: relative;
  color: var(--ss-primary);
  font-weight: 400;
  white-space: nowrap;
}
.kw-line {
  position: absolute; /* left/top/width/height per key word: generated rules at the end of site.css */
  fill: var(--ss-accent-decor);
  pointer-events: none;
}

.kw-gold { color: var(--ss-gold); }

.muted { color: var(--ss-ink-secondary); }
.small { font-size: 0.9375rem; line-height: 1.5; }

/* ---------- Home ---------- */

.home {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, var(--ss-home-glow), transparent 70%) no-repeat,
    var(--ss-page);
  background-size: 100% 900px, auto;
}

.hero {
  padding-block: var(--ss-space-12) var(--ss-space-16);
}
.hero-grid {
  display: grid;
  gap: var(--ss-space-12);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { max-width: 34ch; color: var(--ss-ink-secondary); }
.hero .play-row { margin-top: var(--ss-space-8); }

.play {
  display: inline-block;
  margin: -12px; /* the official badge's own transparent padding */
  border-radius: 20px;
}
.play img { width: 186px; height: 72px; }
.play:focus-visible { outline-offset: -6px; }

.phone {
  margin: 0 auto;
  width: min(76vw, 280px);
  border: 6px solid var(--ss-shadow);
  border-radius: var(--ss-radius-sheet);
  background: var(--ss-shadow);
  box-shadow: var(--ss-shadow-card), 0 30px 60px -30px color-mix(in srgb, var(--ss-shadow) 35%, transparent);
  overflow: hidden;
}
.phone img { width: 100%; }

@media (min-width: 56em) {
  .hero { padding-block: var(--ss-space-16) var(--ss-space-24); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--ss-space-16); }
  .phone { width: 320px; margin-right: 0; }
}

.trust { border-block: 1px solid var(--ss-line); }
.trust ul {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--ss-space-3) var(--ss-space-12);
  padding-block: var(--ss-space-5);
}
.trust li {
  display: inline-flex; align-items: center; gap: var(--ss-space-2);
  color: var(--ss-primary); font-weight: 600;
}
.trust svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 40em) {
  .trust ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr)); justify-items: start; gap: var(--ss-space-3) var(--ss-space-4); }
}

.about { padding-block: var(--ss-space-16); }
.about-grid { display: grid; gap: var(--ss-space-4) var(--ss-space-16); }
.about-body { display: grid; gap: var(--ss-space-4); max-width: 62ch; }
.about-body p { color: var(--ss-ink-secondary); }
.link-row { color: var(--ss-ink-secondary); }
.link-row a { font-weight: 600; }
.about .play-row { margin-top: var(--ss-space-6); }
@media (min-width: 56em) {
  .about { padding-block: var(--ss-space-24); }
  .about-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* ---------- Text pages: Support, Privacy, Terms, 404 ---------- */

.doc { padding-block: var(--ss-space-12) var(--ss-space-16); }
.doc > * { max-width: 44rem; }
.doc h1 { margin-bottom: var(--ss-space-4); }
.doc .meta { color: var(--ss-ink-secondary); font-size: 0.9375rem; line-height: 1.5; max-width: 62ch; }
.doc h2 { margin-top: var(--ss-space-12); margin-bottom: var(--ss-space-3); }
.doc p, .doc ul { max-width: 70ch; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: var(--ss-space-4); }
.doc h1 + p { margin-top: 0; }
.doc ul { padding-left: 1.25em; display: grid; gap: var(--ss-space-2); }
.doc li::marker { color: var(--ss-primary); }
@media (min-width: 56em) {
  .doc { padding-block: var(--ss-space-16) var(--ss-space-24); }
}

/* A legal table in a card: real table on wide screens, stacked rows on phones. */
.table-card {
  margin-top: var(--ss-space-5);
  background: var(--ss-card);
  border-radius: var(--ss-radius-card);
  box-shadow: var(--ss-shadow-card);
  overflow: hidden;
}
.doc .table-card { max-width: none; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: var(--ss-space-3) var(--ss-space-4); }
thead th { background: var(--ss-mint); font-weight: 600; color: var(--ss-ink); }
tbody tr + tr td { border-top: 1px solid var(--ss-line); }
tbody td:first-child { font-weight: 600; }
@media (max-width: 40em) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { padding: var(--ss-space-3) var(--ss-space-4); }
  tbody tr + tr { border-top: 1px solid var(--ss-line); }
  tbody tr + tr td { border-top: 0; }
  td { padding: var(--ss-space-1) 0; }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.875rem; font-weight: 600; color: var(--ss-ink-secondary);
  }
  tbody td:first-child { font-size: 1.0625rem; }
}

.notfound { padding-block: var(--ss-space-16) var(--ss-space-24); }
.notfound p { margin-top: var(--ss-space-4); color: var(--ss-ink-secondary); max-width: 52ch; }

/* ---------- Step 2 sections and components (02-design-system, Components) ---------- */

.sec { padding-block: var(--ss-space-16); }
.sec .wrap > * + * { margin-top: var(--ss-space-6); }
.sec h2 + p { color: var(--ss-ink-secondary); max-width: 62ch; margin-top: var(--ss-space-3); }
@media (min-width: 56em) { .sec { padding-block: var(--ss-space-24); } }
.sec + .sec { padding-top: 0; }

.split { display: grid; gap: var(--ss-space-8); align-items: center; }
.split-text > * + * { margin-top: var(--ss-space-5); }
@media (min-width: 56em) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--ss-space-16); } }
.ill { margin: 0; }
.ill img { width: 100%; height: auto; }

.text-btn { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ss-space-4) var(--ss-space-8); }

.pill {
  display: flex; width: fit-content; align-items: center; gap: var(--ss-space-2);
  background: var(--ss-mint); color: var(--ss-primary);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.4;
  border-radius: var(--ss-radius-pill); padding: 6px 14px;
}
.pill svg { width: 16px; height: 16px; flex: none; }

.prem {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: 0.1em;
  background: var(--ss-gold-container); color: var(--ss-gold);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35;
  border-radius: var(--ss-radius-pill); padding: 2px 9px 2px 7px;
  max-width: 100%; white-space: normal;
}
.prem .crown { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr)); gap: var(--ss-space-3); } /* 2 columns on phones; 1 with large text */
@media (min-width: 64em) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ss-space-4); } }
.tile {
  display: block; text-decoration: none; color: var(--ss-ink);
  background: var(--ss-card); border-radius: var(--ss-radius-tile); box-shadow: var(--ss-shadow-card);
  padding: var(--ss-space-5); border: 1px solid transparent;
  transition: border-color 160ms ease-out;
}
.tile:hover { border-color: var(--ss-mint-strong); }
.tile-sq { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--ss-radius-chip); background: var(--ss-mint); color: var(--ss-primary); }
.tile-icon { width: 24px; height: 24px; }
.tile h3 { font-size: 1.25rem; line-height: 1.3; margin-top: var(--ss-space-4); }
.tile h3 .prem { margin-top: var(--ss-space-1); }
.tile p { margin-top: var(--ss-space-2); font-size: 0.9375rem; line-height: 1.5; color: var(--ss-ink-secondary); }
@media (max-width: 40em) { .tile { padding: var(--ss-space-4); } .tile h3 { font-size: 1.0625rem; } }

.band { background: var(--ss-promise-band); text-align: center; padding-block: 80px; }
.band h2 { color: var(--ss-on-promise-band); font-size: clamp(1.75rem, 4vw, 2.75rem); }
.band p { color: var(--ss-promise-band-muted); max-width: 52ch; margin: var(--ss-space-4) auto 0; }
.band .band-facts { color: var(--ss-promise-band-accent); font-weight: 600; font-size: 1.125rem; margin-top: var(--ss-space-6); }

.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--ss-space-3) var(--ss-space-4); }
.compare thead th, .compare thead td { background: var(--ss-mint); }
.compare tbody tr + tr > * { border-top: 1px solid var(--ss-line); }
.compare tbody th { font-weight: 600; }
.compare .ours { color: var(--ss-primary); font-weight: 600; }
.compare thead th:last-child { color: var(--ss-primary); }
@media (max-width: 40em) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { padding: var(--ss-space-3) var(--ss-space-4); }
  .compare tbody tr + tr { border-top: 1px solid var(--ss-line); }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare th, .compare td { padding: var(--ss-space-1) 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.875rem; font-weight: 600; color: var(--ss-ink-secondary); }
}

.never { background: var(--ss-card); border-radius: var(--ss-radius-card); box-shadow: var(--ss-shadow-card); padding: var(--ss-space-6); }
.never h3 { font-size: 1.25rem; line-height: 1.3; }
.never-list { list-style: none; padding: 0; margin-top: var(--ss-space-4); display: grid; gap: var(--ss-space-3) var(--ss-space-8); }
@media (min-width: 40em) { .never-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.never-list li { display: flex; gap: var(--ss-space-3); align-items: flex-start; }
.never-x { width: 20px; height: 20px; flex: none; margin-top: 0.2em; color: var(--ss-ink-secondary); }

.faq { display: grid; gap: var(--ss-card-gap); max-width: 52rem; }
.faq-item { background: var(--ss-card); border-radius: var(--ss-radius-card); box-shadow: var(--ss-shadow-card); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: var(--ss-space-4); padding: var(--ss-space-4) var(--ss-space-5); min-height: 56px; border-radius: var(--ss-radius-card);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.25rem; line-height: 1.3; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chev { width: 22px; height: 22px; flex: none; color: var(--ss-primary); transition: transform 180ms ease-out; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 var(--ss-space-5) var(--ss-space-5); color: var(--ss-ink-secondary); max-width: 68ch; }

.tier-pair { display: grid; gap: var(--ss-space-4); }
@media (min-width: 48em) { .tier-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { background: var(--ss-card); border-radius: var(--ss-radius-card); box-shadow: var(--ss-shadow-card); padding: var(--ss-space-6); }
.tier-premium { background: var(--ss-gold-container); }
.tier-premium strong { color: var(--ss-gold); }

.cta { text-align: center; padding-block: var(--ss-space-16) var(--ss-space-24); }
.cta .play-row { justify-content: center; margin-top: var(--ss-space-6); }

/* ---------- Step 2 content pages: page head, sections, features, plans ---------- */

.page-head { padding-block: var(--ss-space-12) var(--ss-space-8); }
.page-head h1 { margin-bottom: 0.45em; }
.page-head .lede { color: var(--ss-ink-secondary); max-width: 60ch; }
.page-head .lede + .lede, .page-head .lede + .play-row { margin-top: var(--ss-space-4); }
.page-head.with-pic { display: grid; gap: var(--ss-space-8); align-items: center; }
.ill-head { max-width: 360px; }
@media (min-width: 56em) {
  .page-head { padding-block: var(--ss-space-16) var(--ss-space-12); }
  .page-head.with-pic { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--ss-space-16); }
  .ill-head { justify-self: end; width: 100%; }
}

.page-sec { padding-block: var(--ss-space-8); }
.page-sec > * + * { margin-top: var(--ss-space-4); }
.page-sec h2 { margin-bottom: var(--ss-space-1); }
.page-sec h3 { font-size: 1.25rem; line-height: 1.3; margin-top: var(--ss-space-6); }
.page-sec p, .page-sec > ul, .page-sec > ol { max-width: 70ch; }
.page-sec ul, .page-sec ol { padding-left: 1.25em; display: grid; gap: var(--ss-space-2); }
.page-sec li::marker { color: var(--ss-primary); }
.page-sec .table-card, .page-sec .compare-card { max-width: none; }
.page-sec:last-child { padding-bottom: var(--ss-space-24); }
@media (min-width: 56em) { .page-sec { padding-block: var(--ss-space-12); } }

.feature { display: grid; gap: var(--ss-space-6); align-items: center; }
.feature-text > * + * { margin-top: var(--ss-space-4); }
.phone-sm { width: min(62vw, 240px); margin: 0 auto; }
@media (min-width: 48em) {
  .feature { grid-template-columns: minmax(0, 1fr) 240px; gap: var(--ss-space-16); }
  .feature:nth-of-type(even) { grid-template-columns: 240px minmax(0, 1fr); }
  .feature:nth-of-type(even) .feature-text { order: 2; }
}

.tier-lists .tier h2 { font-size: 1.5rem; }
.tier-lists .tier ul { margin-top: var(--ss-space-4); padding-left: 1.25em; display: grid; gap: var(--ss-space-2); }
.tier-lists .tier-premium h2 { color: var(--ss-gold); }
.tier-lists .tier-premium li::marker { color: var(--ss-gold); }

.plans { display: grid; gap: var(--ss-space-4); }
@media (min-width: 48em) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { background: var(--ss-card); border-radius: var(--ss-radius-card); box-shadow: var(--ss-shadow-card); padding: var(--ss-space-6); }
.plan h3 { font-size: 1.25rem; line-height: 1.3; margin: 0; }
.plan .price { font-size: 1.5rem; font-weight: 600; color: var(--ss-ink); margin-top: var(--ss-space-2); }
.plan .price code { font: inherit; background: none; padding: 0; }
.plan p + p { margin-top: var(--ss-space-3); color: var(--ss-ink-secondary); font-size: 0.9375rem; line-height: 1.5; }

.ill-figure { margin: 0; display: grid; gap: var(--ss-space-6); align-items: center; }
.ill-figure img { width: 100%; height: auto; }
.ill-figure figcaption ol { padding-left: 1.25em; display: grid; gap: var(--ss-space-3); color: var(--ss-ink-secondary); }
@media (min-width: 56em) { .ill-figure { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--ss-space-12); } }

/* ---------- Guides ---------- */

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--ss-card-gap); max-width: 46rem; }
.page-sec .steps { padding-left: 0; }
.step {
  counter-increment: step; display: flex; gap: var(--ss-space-4); align-items: flex-start;
  background: var(--ss-card); border-radius: var(--ss-radius-card); box-shadow: var(--ss-shadow-card);
  padding: var(--ss-space-4) var(--ss-space-5);
}
.step::before {
  content: counter(step); flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: var(--ss-radius-pill);
  background: var(--ss-mint); color: var(--ss-primary); font-weight: 600; line-height: 1;
}
.step > div { padding-top: 3px; min-width: 0; overflow-wrap: anywhere; }

.guide-cards { display: grid; gap: var(--ss-space-4); }
@media (min-width: 48em) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card {
  display: flex; flex-direction: column; gap: var(--ss-space-2); text-decoration: none; color: var(--ss-ink);
  background: var(--ss-card); border-radius: var(--ss-radius-card); box-shadow: var(--ss-shadow-card);
  padding: var(--ss-space-6); border: 1px solid transparent; transition: border-color 160ms ease-out;
}
.guide-card:hover { border-color: var(--ss-mint-strong); }
.guide-card h2 { font-size: 1.25rem; line-height: 1.3; color: var(--ss-primary); }
.guide-card p { color: var(--ss-ink-secondary); font-size: 0.9375rem; line-height: 1.5; }
.guide-go { margin-top: auto; color: var(--ss-primary); font-weight: 600; }
.page-head .phone-sm { margin: 0 auto; }
@media (min-width: 56em) { .page-head .phone-sm { margin-right: 0; } }

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

.site-footer {
  border-top: 1px solid var(--ss-line);
  padding-block: var(--ss-space-8) var(--ss-space-12);
  font-size: 0.9375rem; line-height: 1.5;
  color: var(--ss-ink-secondary);
}
.foot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--ss-space-4) var(--ss-space-8);
}
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ss-space-1) var(--ss-space-3); }
.foot-brand .wordmark { font-size: 1.25rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--ss-space-6); list-style: none; padding: 0; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ss-ink); text-decoration: none;
}
.foot-links a:hover { color: var(--ss-primary); }
.foot-legal { margin-top: var(--ss-space-4); display: grid; gap: var(--ss-space-1); }
.foot-legal .tm { font-size: 0.875rem; }

/* ---------- Motion: colour transitions only (150-200 ms), off under reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .btn, .nav-menu > summary { border: 1px solid ButtonText; }
  .kw-line { fill: CanvasText; }
}

@media print {
  .site-header { position: static; }
  .nav-wide, .nav-menu, .skip, .play-row { display: none; }
  .home { background: none; }
  a { color: inherit; }
}

/* Key-word underline boxes (generated by build_site.py from design-src/font-metrics.json) */
.kw-line.kw-private { left: 0.3929em; top: 1.0714em; width: 3.0em; height: 0.5em; }
