/* ==== Timeline Scan Photo Scanning: /scanning and /film-and-slides ====
   Loaded after styles.css on the two pages of the Lehi scanning shop.

   Who reads it: anyone with a box of printed photos, from their twenties to
   their seventies, usually on a phone, and they do not read much. So:
   - one idea per block, and a picture, a number or a tick for every idea;
   - sentences are 17px or more, the few labels never under 14px, and every
     control is at least 44px tall;
   - what makes the service different (dated, place estimated, handwriting
     typed out, all included) is on the first screen and again as a table;
   - the price is one big number with the totals already multiplied;
   - anything longer sits behind a click, still in the HTML for search
     engines and AI assistants to read.

   Parts: 1. the shop's own masthead and footer (the markup is stamped from
   scripts/chrome/nav-scanning.html and footer-scanning.html), 2. the hero and
   its proof card, 3. what is different, 4. prices, 5. drop off or mail in,
   6. questions. Classes are prefixed sx- so they cannot collide with the
   scan-* blocks in styles.css that the page still uses (the price board,
   the dialogs, the reviews, the contact block).

   Colors are tokens only, so both themes follow without a second rule. */

/* ---------- 1. Masthead and footer ---------- */

/* The scanning mark instead of the Timeline Scan one: the lockup reads
   "Timeline Scan / Photo Scanning", the name on the Google profile. The mark
   IS the Timeline Scan logo (same print, family and timeline), half scanned:
   the left half is still the faded old print, a line of scanner light, then
   the fresh scan. Like the main logo it has a light and a dark version. */
.nav[data-nav="scanning"] .nav__logo-icon {
  background-image: url("../images/scanning/mark-light.svg");
}
[data-theme="dark"] .nav[data-nav="scanning"] .nav__logo-icon {
  background-image: url("../images/scanning/mark-dark.svg");
}

/* The second half of the name, so it stays at every width (the main site's
   slogan steps aside on a phone; this is not a slogan). */
.nav[data-nav="scanning"] .nav__logo-slogan {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 420px) {
  .nav[data-nav="scanning"] .nav__logo { font-size: 1.2rem; gap: 0.5rem; }
  .nav[data-nav="scanning"] .nav__logo-icon { height: 2.1rem; }
  .nav[data-nav="scanning"] .nav__logo-slogan { font-size: 0.72rem; }
}

/* Two columns beside the brand block: the shop's own links, then the one
   door to the online service. */
body[data-site="scanning"] .footer__nav {
  grid-template-columns: auto minmax(0, 21rem);
}

body[data-site="scanning"] .footer__main {
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
}

/* The one door to the online service: the only accent-colored link in the
   footer, so a visitor who wanted the software finds it at a glance. */
.footer__links .footer__door {
  font-weight: 700;
  color: var(--accent);
}

body[data-site="scanning"] .footer__contact-note {
  display: block;
  max-width: 21rem;
  margin: 0.7rem 0 0;
  white-space: normal;
  line-height: 1.45;
}

.footer__online-note {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

body[data-site="scanning"] .footer__legalline {
  grid-template-columns: auto 1fr auto;
}

@media (max-width: 900px) {
  body[data-site="scanning"] .footer__main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  /* The main site's phone footer places its three columns by name; these
     two simply stack. */
  body[data-site="scanning"] .footer__nav {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }
  body[data-site="scanning"] .footer__legalline { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Shared bits ---------- */

.sx-hero svg,
.sx-diff__icon svg,
.sx-way__icon svg,
.sx-faq__icon svg,
.sx-faq__chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scan-live h2 { font-size: clamp(1.8rem, 3.6vw, 2.3rem); }

/* The small "CALL" and "TEXT" over each number, up to label size. */
.scan-live .scan-cta__verb { font-size: 0.875rem; }

.sx-lede {
  max-width: 660px;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* A button that reads as a sentence with a link at the end. */
.sx-linkbtn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.45rem;
  min-height: 44px;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--text-secondary);
  cursor: pointer;
}

.sx-linkbtn__hint {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sx-linkbtn:hover .sx-linkbtn__hint { text-decoration-thickness: 2px; }

.sx-linkbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 2. Hero ---------- */

.sx-hero {
  padding: 3rem 0 3.6rem;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-primary) 100%);
}

.sx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3.2rem;
}

.sx-hero__locale {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.sx-hero__locale-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}

.sx-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.05rem, 4.3vw, 3rem);
  line-height: 1.15;
  text-wrap: balance;
}

.sx-hero__deck {
  margin: 0 0 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
  text-wrap: balance;
}

.sx-hero__ticks {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.sx-hero__ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.sx-hero__ticks svg {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.22rem;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  stroke-width: 3;
}

.sx-hero__price {
  margin: 0 0 1.4rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.sx-hero__price strong {
  font-size: 1.45rem;
  color: var(--text-primary);
}

.sx-hero__cta .scan-contact__actions { justify-content: flex-start; }

.sx-hero__ways {
  margin: 1rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.sx-hero__ways a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The proof: one real print, and what comes back with it. */
.sx-card {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.sx-card__cap {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* A few prints, one at a time (js/scan-proof.js). They share one grid
   cell, so the card is as tall as its tallest slide and nothing below it
   moves when the slide changes. Without the script only the first shows. */
.sx-card__slides { display: grid; }

.sx-card__slide {
  grid-area: 1 / 1;
  min-width: 0;
}

.sx-card__slide:not(.is-on) {
  visibility: hidden;
  opacity: 0;
}

.sx-card.is-ready .sx-card__slide {
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.sx-card.is-ready .sx-card__slide.is-on {
  transition: opacity 0.8s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .sx-card.is-ready .sx-card__slide,
  .sx-card.is-ready .sx-card__slide.is-on { transition: none; }
}

.sx-card__media {
  position: relative;
  padding-bottom: 2.4rem;
}

/* The white border sits on the wrapper, so a mark placed in percent lands
   on the picture itself. */
.sx-card__shot {
  position: relative;
  display: block;
  border: 6px solid var(--contrast-white);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.sx-card__front {
  display: block;
  width: 100%;
  height: auto;
}

/* What the AI spotted, ringed on the print, and the same spot enlarged. */
.sx-card__mark {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: var(--mw);
  height: var(--mh);
  border: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--contrast-white);
}

.sx-card__lens {
  position: absolute;
  top: -0.6rem;
  right: -0.5rem;
  z-index: 1;
  width: 30%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--accent);
  border-radius: 50%;
  background: var(--film-strip);
  box-shadow: 0 0 0 2px var(--contrast-white), var(--shadow-lg);
}

.sx-card__lens img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The back of the same print, laid over the corner like a second photo. */
.sx-card__back {
  position: absolute;
  right: -0.35rem;
  bottom: 0;
  width: 52%;
  padding: 4px;
  background: var(--contrast-white);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2.5deg);
}

.sx-card__back img {
  display: block;
  width: 100%;
  height: auto;
}

.sx-card__back-label {
  position: absolute;
  top: -0.85rem;
  left: 0.5rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--film-strip);
  color: var(--bg-primary);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Laid over the other corner when the clue is in the bottom right. */
.sx-card__back--left {
  right: auto;
  left: -0.35rem;
  transform: rotate(-2.5deg);
}

/* Laid over the top corner instead, for a print whose bottom corners are
   both taken (the clue on one side, the subject on the other). Its back
   image is a strip cut around a one-line note. */
.sx-card__back--top {
  top: 0.9rem;
  bottom: auto;
}

/* The note runs along the strip's top edge, so the label hangs below. */
.sx-card__back--top .sx-card__back-label {
  top: auto;
  bottom: -0.85rem;
}

/* How the AI knew, in one line. */
.sx-card__how {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.sx-card__how svg {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.05rem;
  color: var(--accent);
  stroke-width: 2.4;
}

.sx-card__how b { color: var(--text-primary); }

.sx-card__rows { margin: 0.6rem 0 0; }

.sx-card__row {
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0.2rem;
  border-top: 1px solid var(--border-light);
}

.sx-card__row dt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sx-card__row dt svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
}

.sx-card__row dd {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

/* Back, the count, Next and Pause: shown by the script only. */
.sx-card__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
}

.sx-card__nav[hidden],
.sx-card__toggle[hidden] { display: none; }

.sx-card__step,
.sx-card__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
}

.sx-card__step {
  width: 2.75rem;
  padding: 0;
  border-radius: 50%;
}

.sx-card__step svg { width: 1.35rem; height: 1.35rem; stroke-width: 2.4; }

.sx-card__toggle {
  gap: 0.4rem;
  margin-left: 0.35rem;
  padding: 0 1rem 0 0.8rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.sx-card__toggle svg { width: 1.1rem; height: 1.1rem; stroke-width: 2.6; }
.sx-card__toggle .sx-card__toggle-play { fill: currentColor; stroke-width: 1.6; }
.sx-card__toggle .sx-card__toggle-play,
.sx-card__toggle.is-paused .sx-card__toggle-pause { display: none; }
.sx-card__toggle.is-paused .sx-card__toggle-play { display: block; }

.sx-card__step:hover,
.sx-card__toggle:hover { border-color: var(--accent); }

.sx-card__step:focus-visible,
.sx-card__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sx-card__count {
  min-width: 7.2rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sx-card__else {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--red-light);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.sx-card__file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.sx-card__file svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
}

.sx-card__file-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; }
.sx-card__file-date { color: var(--red); font-weight: 700; }

@media (max-width: 900px) {
  .sx-hero { padding: 2rem 0 2.6rem; }
  .sx-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .sx-card { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .sx-hero__locale { font-size: 0.86rem; letter-spacing: 0; }
  .sx-hero__ticks li { font-size: 1.08rem; }
  .sx-card { padding: 0.8rem 0.8rem 0.9rem; }
  .sx-card__row { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  /* Back, the count, Next and Pause stay on one line on a phone. */
  .sx-card__nav { gap: 0.4rem; }
  .sx-card__count { min-width: 0; padding: 0 0.15rem; }
  .sx-card__toggle { margin-left: 0; padding: 0 0.85rem 0 0.7rem; }
}

/* ---------- 3. What is different ---------- */

.sx-diff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.sx-diff__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.4rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sx-diff__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.sx-diff__icon svg { width: 1.8rem; height: 1.8rem; }

.sx-diff__name {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.sx-diff__line {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sx-diff__tag {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--green-light);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sx-diff__tag::before {
  content: '\2713';
  color: var(--green);
  font-weight: 900;
}

/* The same three points against a plain scanning service. */
.sx-table-wrap {
  max-width: 780px;
  margin: 2rem auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.sx-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
}

/* In the HTML for a crawler and a screen reader; the headings say it for
   everyone else. */
.sx-table__caption,
.sx-table__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sx-table th,
.sx-table td {
  padding: 0.85rem 0.9rem;
  text-align: center;
  vertical-align: middle;
}

.sx-table thead th {
  width: 27%;
  background: var(--bg-accent);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-secondary);
}

.sx-table thead th:first-child { width: 46%; }

.sx-table thead .sx-table__us { color: var(--text-primary); }

.sx-table td { line-height: 1.25; }

.sx-table tbody tr { border-top: 1px solid var(--border-light); }

.sx-table tbody th {
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.sx-table .sx-table__us { background: var(--accent-light); }

.sx-yes,
.sx-no {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.sx-yes { color: var(--green); }
.sx-yes--plain { color: var(--text-muted); }
.sx-no { color: var(--red); }

.sx-table__note {
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--text-secondary);
}

.sx-also {
  max-width: 660px;
  margin: 1.6rem auto 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sx-also strong { color: var(--text-primary); }

.sx-anywhere { margin: 0.5rem 0 0; }

@media (max-width: 820px) {
  .sx-diff { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }

  /* A row each on a phone: the icon beside the words, not above them. */
  .sx-diff__tile {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.1rem 1.1rem 1rem;
  }
  .sx-diff__icon { grid-row: 1 / span 3; width: 3.2rem; height: 3.2rem; margin: 0; }
  .sx-diff__line { margin-bottom: 0.6rem; }
  .sx-diff__tag { justify-self: start; }
}

@media (max-width: 560px) {
  .sx-table th,
  .sx-table td { padding: 0.75rem 0.45rem; }
  .sx-table thead th { font-size: 0.85rem; }
  .sx-table tbody th { padding-left: 0.8rem; font-size: 1.02rem; }
  .sx-table__note { font-size: 0.88rem; }
}

/* ---------- 4. Prices ---------- */

.sx-price {
  max-width: 720px;
  margin: 1.4rem auto 0;
  padding: 1.7rem 1.5rem 1.4rem;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
  text-align: left;
}

/* The card's example picture is beside the price, and the picture itself
   is the button that shows it larger. Above 640px it sits left of the
   heading, the price and the "included" line; on a phone (below) it sits
   left of the heading and the price, and the "included" line runs full
   width under both. The 1fr rows only take up slack, so the words stay
   centered against the picture whichever of the two is taller. */
.sx-price__main {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto auto 1fr;
  grid-template-areas:
    "pic ."
    "pic what"
    "pic was"
    "pic rate"
    "pic incl"
    "pic .";
  column-gap: 1.6rem;
}

.sx-price__main > .sx-price__what { grid-area: what; }
.sx-price__main > .sx-price__was { grid-area: was; justify-content: flex-start; }
.sx-price__main > .sx-price__rate { grid-area: rate; }
/* "per photo" moves under the number as one piece when it does not fit. */
.sx-price__main .sx-price__unit { white-space: nowrap; }
.sx-price__main > .sx-price__incl { grid-area: incl; margin-top: 0.3rem; }

.sx-price__peek {
  grid-area: pic;
  align-self: center;
  position: relative;
  display: block;
  width: 200px;
  height: 150px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.sx-price__peek picture { display: block; width: 100%; height: 100%; }

.sx-price__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.sx-price__peek:hover .sx-price__thumb { border-color: var(--accent); }

.sx-price__peek:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sx-price__what {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sx-price__rate {
  margin: 0.25rem 0 0.4rem;
  line-height: 1;
}

.sx-price__now {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.sx-price__unit {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sx-price__incl {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sx-price__incl strong { color: var(--text-primary); }

.sx-price__hint {
  margin: 0.8rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sx-subhead {
  margin: 3rem 0 0.3rem;
  font-size: 1.55rem;
}

/* The board under the big number: its small print comes up to reading
   size on this page. */
#pricing-menu .scan-menu__lede { margin-bottom: 1.4rem; font-size: 1.05rem; }
#pricing-menu .scan-menu__head-col { font-size: 0.85rem; }
#pricing-menu .scan-menu__name { font-size: 1.15rem; }
#pricing-menu .scan-menu__desc { font-size: 1rem; line-height: 1.45; }
#pricing-menu .scan-menu__price-unit { font-size: 0.85rem; }
#pricing-menu .scan-menu__cap { font-size: 1.05rem; }
#pricing-menu .scan-fineprint__summary { font-size: 1.05rem; min-height: 44px; }

/* Each row opens with a small crop of its example picture. It sits above
   the row button's stretched ::after (styles.css), so a tap on it is told
   apart from a tap on the words; the lightbox script then clicks the
   row's button, which stays the row's one control. */
#pricing-menu .scan-menu__pic {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: block;
  width: 88px;
  height: 88px;
  cursor: pointer;
}

#pricing-menu .scan-menu__pic picture { display: block; width: 100%; height: 100%; }

#pricing-menu .scan-menu__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
}

#pricing-menu .scan-menu__row:has(.scan-menu__pic:hover) { background: var(--accent-light); }

/* "Tap to see it larger" without words: a magnifier on a dark disc in the
   corner of every example picture. Decorative; the picture is a photo in
   both themes, so the disc keeps one color. */
#pricing-menu .scan-menu__pic::after,
.sx-price__peek::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(24, 17, 12, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.75' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20.5 20.5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
  pointer-events: none;
}

@media (max-width: 640px) {
  #pricing-menu .scan-menu__pic { width: 72px; height: 72px; }
  #pricing-menu .scan-menu__pic::after {
    right: 4px;
    bottom: 4px;
    width: 18px;
    height: 18px;
    background-size: 12px 12px;
  }

  /* The loose-photo card: the picture left of the heading and price, the
     "included" line full width under both. */
  .sx-price__main {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr auto;
    grid-template-areas:
      "pic ."
      "pic what"
      "pic was"
      "pic rate"
      "pic ."
      "incl incl";
    column-gap: 0.9rem;
  }
  .sx-price__main > .sx-price__incl { margin-top: 0.7rem; }
  .sx-price__peek { width: 104px; height: 104px; }
  /* When "per photo" drops under the number, air between them (about 5px
     of clear space under the digits). The margin only lifts its own line,
     so it changes nothing when the unit fits beside the number. */
  .sx-price__main .sx-price__unit { display: inline-block; margin-top: 5px; }
}

@media (max-width: 480px) {
  /* A narrow phone: the picture, then the name and its line, with the
     price under them at the right edge. Beside the 72px picture a price
     column would leave the words about 100 to 130px wide. */
  #pricing-menu .scan-menu__row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "pic item"
      "pic price";
    align-items: start;
    gap: 0.35rem 0.85rem;
    padding: 0.9rem 0.9rem;
  }
  #pricing-menu .scan-menu__pic { grid-area: pic; }
  #pricing-menu .scan-menu__item { grid-area: item; }
  #pricing-menu .scan-menu__price { grid-area: price; justify-self: end; align-self: end; }
  #pricing-menu .scan-menu__name { font-size: 1.08rem; }
  #pricing-menu .scan-menu__desc { font-size: 0.98rem; }
  .sx-price { padding: 1.4rem 1rem 1.2rem; }
}

/* ---------- 5. Drop off or mail in ---------- */

.sx-steps {
  list-style: none;
  max-width: 940px;
  margin: 1.6rem auto 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.6rem;
}

.sx-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sx-steps strong { color: var(--text-primary); }

.sx-steps__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--contrast-light);
  font-size: 1.15rem;
  font-weight: 700;
}

/* The dark theme's accent is a light gold: dark figures on it. */
[data-theme="dark"] .sx-steps__num { color: var(--bg-primary); }

.sx-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.sx-way {
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sx-way__icon {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.sx-way__icon svg { width: 1.7rem; height: 1.7rem; }

.sx-way__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.sx-way__line {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sx-way__sub {
  margin: 1.1rem 0 0.3rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.sx-way .scan-service-area {
  max-width: none;
  margin: 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sx-way__action { margin: 0.4rem 0 0; }

.sx-way__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .sx-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .sx-ways { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. Questions ---------- */

/* Two panels side by side on desktop, each a column of rows split by
   hairlines. The columns are independent: an open answer lengthens only its
   own column, so it never leaves a hole beside it (the old shared grid
   paired one-line questions with three-line ones in each row and left a
   gap next to every open answer). Below 900px the two panels join into
   one list. */
.sx-faq {
  max-width: 1080px;
  margin: 1.6rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.sx-faq__col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

@media (max-width: 900px) {
  .sx-faq { grid-template-columns: minmax(0, 1fr); max-width: 780px; gap: 0; }
  .sx-faq__col { box-shadow: none; }
  .sx-faq__col:first-child { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .sx-faq__col + .sx-faq__col { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .sx-faq__col:first-child .sx-faq__item:last-child { border-bottom: 1px solid var(--border); }
}

.sx-faq__item + .sx-faq__item { border-top: 1px solid var(--border); }

.sx-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 64px;
  padding: 1rem 1.15rem;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sx-faq__q:hover { background: color-mix(in srgb, var(--accent) 6%, var(--card-bg)); }

.sx-faq__q::-webkit-details-marker { display: none; }

.sx-faq__q h3 {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.sx-faq__q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.sx-faq__chevron {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent);
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.sx-faq__item[open] .sx-faq__chevron { transform: rotate(180deg); }

/* A small topic icon in a tinted circle leads each question. It follows
   the h3 in the markup (the FAQPage check reads the h3 first) and is
   moved to the front with order. */
.sx-faq__icon {
  order: -1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--card-bg));
  color: var(--accent);
}

.sx-faq__icon svg { width: 1.3rem; height: 1.3rem; stroke-width: 1.9; }

.sx-faq__a {
  margin: 0;
  padding: 0 1.15rem 1.3rem 4.3rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sx-faq__a a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .sx-faq__q { padding: 0.95rem 1.1rem; }
  .sx-faq__a { padding: 0 1.1rem 1.2rem; }
  .sx-faq__icon { width: 2.2rem; height: 2.2rem; }
  .sx-faq__icon svg { width: 1.15rem; height: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-faq__chevron,
  .sx-faq__q { transition: none; }
}

/* The reviews follow the founder card with room to breathe. */
#founder .scan-reviews-block { margin-top: 2.6rem; }

.sx-updated {
  margin: 2rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* ---------- 7. A time-limited promotion (Black Friday 2026) ---------- */

/* The gate. js/config.js stamps data-scan-promo="on" on <html> before
   paint while TSConfig.SCANNING_PROMO is running. Sale-only elements
   (data-promo-only: the bar, the struck regular prices, the sale prices,
   the terms) show only then, and the regular prices they replace
   (data-promo-off) step aside. No script, a bad end date, a clock past the
   end or the kill switch leave the attribute off: the regular page shows
   (fails closed). */
html:not([data-scan-promo="on"]) [data-promo-only] { display: none !important; }
html[data-scan-promo="on"] [data-promo-off] { display: none !important; }

/* Read aloud, never shown: the "Regular price" and "Sale price" words
   that tell a screen reader which number is which. */
.sx-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The sale bar: one solid band in the accent, pinned directly under the
   masthead the way a product page pins its sub-bar (styles.css .subnav),
   so the phone drawer still opens over it. js/scan-promo.js measures the
   masthead into --nav-h and the bar into --salebar-h; the fallbacks are the
   masthead's own height at each width. The whole bar is one link to the
   prices. No motion, no countdown, no close button. */
.sx-salebar {
  position: sticky;
  top: var(--nav-h, 4.45rem);
  z-index: 90;
  display: block;
  background: var(--accent);
  color: var(--card-bg);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, var(--text-primary));
}

.sx-salebar:hover,
.sx-salebar:focus-visible { color: var(--card-bg); }

.sx-salebar:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: -3px;
}

.sx-salebar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: 1200px;
  min-height: 46px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.sx-salebar strong { font-weight: 800; }

.sx-salebar:hover .sx-salebar__text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sx-salebar__tag,
.sx-salebar__go {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}

/* A phone: one line, in short form ("Black Friday Sale: 10% off through
   Nov 27."), the tag dropped and the words kept at 15px or more. */
@media (max-width: 600px) {
  .sx-salebar__more,
  .sx-salebar__tag { display: none; }
  .sx-salebar__inner {
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    font-size: max(15.5px, 0.86rem);
  }
}

/* Anchors (#pricing-menu, #mail-in, #request, the questions) land clear of
   the masthead and the bar together while the bar is up. */
html[data-scan-promo="on"] body[data-site="scanning"] [id] {
  scroll-margin-top: calc(5.75rem + var(--salebar-h, 2.6rem));
}

/* A struck regular price: real text in an <s>, smaller and quieter than the
   sale price beside it, which is the number to read. */
.sx-was {
  font-family: var(--font-ui);
  font-size: max(0.8em, 0.8rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}

.sx-now { white-space: nowrap; }

/* Hero: "$0.25 $0.225 a photo.", the regular rate struck. */
.sx-hero__price .sx-was { font-size: 0.72em; }

/* The price card: a "10% off" tag and the struck rate on a line of their
   own above the big number, so the number keeps the card's width. */
.sx-price__was {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.45rem 0 0;
}

.sx-price__was .sx-was { font-size: 1.25rem; }

.sx-off {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--card-bg);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sx-price__sale {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* The board: the struck rate stacked over the sale rate, both flush right,
   so every row keeps its line at any width. */
.scan-menu__price .sx-was {
  font-size: 0.85rem;
  line-height: 1.2;
}

.scan-menu__price-sale {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .scan-menu__price-sale { font-size: 1.3rem; }
}

/* The price card's folded terms. */
.sx-sale-terms {
  margin: 1.1rem 0 0;
  background: var(--accent-light);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: var(--radius-md);
  text-align: left;
}

.sx-sale-terms__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
  text-align: center;
}

.sx-sale-terms__summary::-webkit-details-marker { display: none; }

.sx-sale-terms__tag {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}

.sx-sale-terms__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.sx-sale-terms__chevron {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.25s ease;
}

.sx-sale-terms[open] .sx-sale-terms__chevron { transform: rotate(180deg); }

.sx-sale-terms__list {
  list-style: none;
  margin: 0;
  padding: 0.1rem 1.15rem 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.sx-sale-terms__list li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sx-sale-terms__list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .sx-sale-terms__chevron { transition: none; }
}

/* ---------- 8. A phone (600px and under) ----------
   About nine in ten visitors arrive from an ad on a phone, and on a phone
   the page has to be read one screen at a time. At 600px and under only:
   - the hero drops its eyebrow line and puts Call and Text on one row;
   - the proof card is one photo, a row of evidence under it (the back of
     the print beside how the AI knew) and three one-line answers, with
     Back and Next (it does not turn by itself on a phone, and a swipe
     steps it: js/scan-proof.js);
   - the masthead slides away while reading down and comes back on the way
     up (html.sx-autohide, set by js/scan-mobile.js); the sale bar moves up
     to the top edge while it is away;
   - the three "different" tiles become one short list;
   - the formats board, the nearby towns and the mail-in details sit folded
     behind one control each (html.sx-folds, set in the page's <head> so
     nothing jumps; js/scan-mobile.js wires the controls). The controls are
     display:none at every other width and without script, so a laptop, a
     tablet and a crawler that does not run script see every word as
     before. A phone-sized crawler that does run script (Googlebot
     Smartphone) sees the three panels collapsed; their words stay in the
     DOM either way.
   Nothing in this part reaches 601px and up. */

/* The fold controls exist only on a phone with script running. */
.sx-fold__toggle { display: none; }

@media (max-width: 600px) {
  /* Hero: the masthead lockup and the h1 already say the name and the
     town, and Call and Text share one row like the bar at the bottom. When
     two do not fit (a very narrow screen, page zoom, large system text)
     they stack again, as they did before. */
  .sx-hero { padding-top: 1.6rem; }
  .sx-hero__locale { display: none; }
  .sx-hero__cta .scan-contact__actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.6rem), 1fr));
    gap: 0.55rem;
  }
  .sx-hero__cta .scan-cta {
    container-type: inline-size;
    min-width: 0;
    min-height: 3.2rem;
    padding: 0.45rem 0.3rem;
    gap: 0.35rem;
  }
  .sx-hero__cta .scan-cta__icon { width: 1.75rem; height: 1.75rem; }
  .sx-hero__cta .scan-cta__icon svg { width: 0.95rem; height: 0.95rem; }
  .sx-hero__cta .scan-cta__num { font-size: 0.92rem; }

  /* A button too narrow for its icon and the whole number (side by side
     on a screen under about 370px) lets the icon go, so the number never
     runs past the edge. In rem, so it follows the text size. */
  @container (max-width: 8.5rem) {
    .sx-hero__cta .scan-cta__icon { display: none; }
  }

  /* The proof card. The photo runs the card's width with nothing laid on
     the people; the magnifier tucks inside its top right corner; the back
     of the print sits under it as a small second print beside the line on
     how the AI knew; the answers are one line each. The media wrapper steps
     aside (display: contents) so its photo, magnifier and back join the
     slide's own grid. */
  .sx-card { padding: 0.5rem; }
  .sx-card .sx-card__cap {
    margin: 0 0 0.3rem;
    font-size: 0.83rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }
  .sx-card .sx-card__slide {
    display: grid;
    grid-template-columns: 5.95rem minmax(0, 1fr);
    grid-template-areas:
      "shot shot"
      "back how"
      "rows rows";
    column-gap: 0.75rem;
    align-items: start;
  }
  .sx-card .sx-card__media { display: contents; }
  .sx-card .sx-card__shot { grid-area: shot; z-index: 1; }
  .sx-card .sx-card__lens {
    grid-area: shot;
    position: relative;
    z-index: 2;
    top: auto;
    right: auto;
    justify-self: end;
    align-self: start;
    width: 4.3rem;
    margin: 0.6rem;
    border-width: 3px;
  }
  .sx-card .sx-card__back {
    grid-area: back;
    position: relative;
    inset: auto;
    width: auto;
    margin: 1.35rem 0 0;
    padding: 3px;
    box-shadow: var(--shadow-md);
    transform: rotate(-1.5deg);
  }
  /* Its label is a small caption right above it, never on it: the writing
     is the evidence, so nothing covers any of it. Held level while the
     print tilts. */
  .sx-card .sx-card__back-label {
    top: auto;
    bottom: calc(100% + 0.2rem);
    left: 0;
    padding: 0 0.45rem;
    font-size: 0.83rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    transform: rotate(1.5deg);
    transform-origin: left bottom;
  }
  .sx-card .sx-card__how {
    grid-area: how;
    margin: 0.2rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
  }
  .sx-card .sx-card__how svg { display: none; }

  /* The campfire's back is a long strip with one line of writing along its
     top: it runs the card's width above the line, cut to the writing, with
     its label on the blank paper at the right end, and tucks a few pixels
     under the photo's lower edge like a second print (the photo stays on
     top, so nothing on it is covered). Its slide carries
     sx-card__slide--strip in the HTML; no rule above 600px uses it. */
  .sx-card .sx-card__slide--strip {
    grid-template-areas:
      "shot shot"
      "back back"
      "how how"
      "rows rows";
  }
  .sx-card .sx-card__back--top {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.4rem;
    margin-top: -0.25rem;
    padding: 3px 0.4rem 3px 3px;
    transform: none;
  }
  .sx-card .sx-card__back--top img {
    flex: 1 1 auto;
    min-width: 0;
    aspect-ratio: 19 / 2;
    object-fit: cover;
    object-position: 50% 12%;
  }
  .sx-card .sx-card__back--top .sx-card__back-label {
    position: static;
    flex: 0 0 auto;
    transform: none;
  }
  .sx-card .sx-card__slide--strip .sx-card__how { margin-top: 0.5rem; }

  .sx-card .sx-card__rows { grid-area: rows; margin: 0.25rem 0 0; }
  .sx-card .sx-card__row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.1rem;
  }
  .sx-card .sx-card__row dt { font-size: 0.88rem; line-height: 1.3; white-space: nowrap; }
  .sx-card .sx-card__row dt svg { width: 1rem; height: 1rem; }
  .sx-card .sx-card__row dd {
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: right;
  }

  /* Back, the count and Next (Pause is gone: nothing turns by itself). */
  .sx-card .sx-card__nav {
    flex-wrap: nowrap;
    gap: 0.6rem;
    margin: 0.15rem 0 0;
  }
  .sx-card .sx-card__step { width: 2.6rem; min-height: 2.6rem; }
  .sx-card .sx-card__count { min-width: 7rem; }

  /* What a plain scan looks like, as a slim box. */
  .sx-card .sx-card__else {
    gap: 0 0.5rem;
    margin: 0.25rem 0 0;
    padding: 0.18rem 0.7rem;
    font-size: 0.83rem;
    line-height: 1.18;
  }
  .sx-card .sx-card__file-name { font-size: 0.83rem; }
  .sx-card .sx-card__file svg { width: 0.95rem; height: 0.95rem; }

  /* The masthead steps out of the way while reading (js/scan-mobile.js
     sets both classes, on /scanning only). The sale bar stays and moves up
     to the top edge. Anchors already land 5.75rem plus the sale bar below
     the top, clear of whichever bars are showing. */
  html.sx-autohide .nav {
    transition: transform 0.25s ease, background-color 0.4s ease;
  }
  html.sx-autohide.sx-nav-away .nav { transform: translateY(-100%); }
  html.sx-autohide .sx-salebar { transition: top 0.25s ease; }
  html.sx-autohide.sx-nav-away .sx-salebar { top: 0; }

  /* What is different: one short list, not three cards. The table right
     under it says "included" for each, so the chips step aside. */
  #organized .sx-lede { margin-bottom: 1.2rem; }
  .sx-diff { gap: 0; }
  .sx-diff__tile {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.85rem;
    padding: 0.8rem 0.1rem;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .sx-diff__tile + .sx-diff__tile { border-top: 1px solid var(--border); }
  .sx-diff__icon { grid-row: 1 / span 2; width: 2.5rem; height: 2.5rem; }
  .sx-diff__icon svg { width: 1.35rem; height: 1.35rem; }
  .sx-diff__name { margin: 0.1rem 0 0.15rem; font-size: 1.2rem; }
  .sx-diff__line { margin: 0; font-size: 1rem; line-height: 1.45; }
  .sx-diff__tag { display: none; }
  .sx-table-wrap { margin-top: 1.1rem; }
  .sx-also { margin-top: 1rem; }
  .sx-anywhere { margin-top: 0.2rem; }

  /* Folds. A panel ([data-sx-fold]) is hidden until its control opens it;
     the control is a full-width button, or the heading right above the
     panel ([data-sx-fold-for], turned into a button by the script). */
  html.sx-folds [data-sx-fold]:not(.is-open) { display: none; }

  html.sx-folds .sx-fold__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3.1rem;
    margin: 0.8rem 0 0;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
  }

  /* A quieter control inside a card: a line of text with its chevron. */
  html.sx-folds .sx-fold__toggle--line {
    justify-content: space-between;
    min-height: 2.75rem;
    margin: 0 0 0.5rem;
    padding: 0.45rem 0.1rem;
    border-width: 1px 0;
    border-color: var(--border-light);
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 1rem;
    text-align: left;
  }

  html.sx-folds .sx-fold__toggle:focus-visible,
  html.sx-folds .sx-fold__head:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .sx-fold__chevron {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    transition: transform 0.25s ease;
  }
  [aria-expanded="true"] > .sx-fold__chevron { transform: rotate(180deg); }

  /* A heading that is its own control: smaller, in the accent, with the
     chevron drawn in CSS so it is there before the script wraps the words
     in a button. The button is stretched over the whole row. */
  html.sx-folds [data-sx-fold-for] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 2.75rem;
    margin: 0.7rem 0 0;
    padding: 0.4rem 0.1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.92rem;
    color: var(--accent);
  }
  html.sx-folds [data-sx-fold-for]::after {
    content: "";
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.35rem 0.25rem 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }
  html.sx-folds [data-sx-fold-for].is-open::after {
    margin-bottom: -0.25rem;
    transform: rotate(-135deg);
  }
  .sx-fold__head {
    flex: 1 1 auto;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
  }
  .sx-fold__head::before {
    content: "";
    position: absolute;
    inset: 0;
  }

  /* The call and text bar steps aside while the footer is on screen
     (the bar's script in scanning.html), so the room styles.css keeps
     under the footer for it is not needed here. */
  body.scan-sticky-active .footer { padding-bottom: 0.9rem; }

  /* Drop off or mail in: a little tighter between the steps and cards. */
  .sx-steps { margin: 1.2rem auto 1.4rem; gap: 0.8rem; }
  .sx-way { padding: 1.2rem 1.15rem 1rem; }
  .sx-way__icon { width: 2.6rem; height: 2.6rem; margin-bottom: 0.55rem; }
  .sx-way__icon svg { width: 1.4rem; height: 1.4rem; }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  html.sx-autohide .nav,
  html.sx-autohide .sx-salebar,
  .sx-fold__chevron,
  html.sx-folds [data-sx-fold-for]::after { transition: none; }
}
