/* FRAC7 home, 2026-11-09 (owner decision: one page from the live homepage
   and the Paper and Terminal concepts). A light editorial page with serif
   headlines for reading; the Brand X-ray is the one dark, terminal-style
   panel, so the tool reads as the product. One accent (deep teal) for links
   and focus; green means ready and nothing else. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  /* Light only, never force-darkened (Chris, phone screenshot 2026-11-03). */
  color-scheme: only light;
  /* The page: warm paper, near-black ink. Slate is 6.9:1 on paper. */
  --paper: #f6f4ee;
  --surface: #fffdf8;
  --soft: #ece8dd;
  --ink: #151b1a;
  --charcoal: #2c3634;
  --slate: #4b5856;
  --line: rgba(21, 27, 26, 0.14);
  --edge: rgba(21, 27, 26, 0.26);
  --accent: #0e6b68;
  --accent-deep: #0a5552;
  --ready: #167a44;
  --ready-on-dark: #7beaa8;
  /* The X-ray panel and the dark readout inside it. */
  --panel: #0d1413;
  --panel-2: #131d1c;
  --panel-3: #1a2625;
  --on-dark: #eef3f1;
  --on-dark-muted: #a6b6b3;
  --error: #b42318;
  --radius-card: 14px;
  --radius-button: 10px;
  --radius-field: 8px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "DejaVu Sans", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 17px;
  --fs-lead: 20px;
  --fs-h3: 22px;
  --section-pad: clamp(72px, 9vw, 128px);
  --header-h: 64px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Nothing on this page may scroll sideways on a phone. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: clip;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
input,
textarea,
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
h3 {
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.h1-line {
  display: block;
}
.h1-line + .h1-line {
  margin-top: 0.08em;
}
.h1-dim {
  font-style: italic;
  color: var(--accent-deep);
}
.nowrap {
  white-space: nowrap;
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Above the sticky header when focused, so keyboard users see it. */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-field);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Buttons: ink on paper; inside the X-ray, paper on ink. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.button:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--edge);
}
.button-quiet:hover {
  background: var(--surface);
}
.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-sm);
}
.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.button-light:hover {
  background: #fff;
}
.text-link {
  font-weight: 500;
  color: var(--charcoal);
  text-wrap: balance;
}
.text-link:hover,
.inline-link:hover {
  color: var(--accent-deep);
}
.inline-link {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* Header: a quiet masthead that stays in reach. Phones keep the wordmark and
   the one call button. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: rgba(246, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(246, 244, 238, 0.82);
    backdrop-filter: blur(12px);
  }
}
.wordmark,
.why-link {
  /* A 44px touch target without moving the layout. */
  display: inline-block;
  padding-block: 9px;
  margin-block: -9px;
}
.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.12em;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: var(--fs-sm);
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-field);
  text-decoration: none;
  font-weight: 500;
  color: var(--charcoal);
}
.site-header nav a:hover {
  background: var(--soft);
  color: var(--ink);
}
@media (max-width: 860px) {
  .site-header {
    gap: 12px;
  }
  .site-header nav {
    display: none;
  }
  .site-header .button-small {
    margin-left: auto;
  }
}

/* Sections: one rhythm, hairlines between them, no repeated card grid. */
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}
.sec-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-sub {
  color: var(--slate);
}

/* Reveal: cards rise once in view (home.js sets data-in). Held only while
   the script runs and motion is allowed; print shows everything. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    transition:
      opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  html.js [data-reveal]:not([data-in]) {
    opacity: 0;
    transform: translateY(14px);
  }
}
/* Until home.js runs, the How-I-work shots are held invisible, so a slow
   script never shows the finished still and snaps it back. If the script
   never arrives, the failsafe fades the still in from 1.8s. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not(.js) .shot {
    opacity: 0;
    animation: stage-failsafe 0.3s ease 1.8s forwards;
  }
}
@keyframes stage-failsafe {
  to {
    opacity: 1;
  }
}

/* ---- Hero: the promise on the left, the terms and actions on the right,
   then the X-ray panel across the full width. */
.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: end;
}
.check-intro {
  display: grid;
  gap: 22px;
}
.hero-label {
  color: var(--accent-deep);
}
#hero-title {
  max-width: 15ch;
}
.hero-side {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-bottom: 8px;
}
.lede {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--charcoal);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-side .text-link {
  font-size: var(--fs-sm);
}

.hero-micro {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--slate);
}
/* The numbers under the hero: facts already stated further down the page. */
.proof {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}
.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--slate);
}
.proof-list b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
@media (max-width: 860px) {
  .proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- The Brand X-ray: one dark terminal-style panel. Every colour token is
   re-pointed inside it, so the step rules below read the dark values. */
.xray {
  --ink: var(--on-dark);
  --charcoal: #d3dedb;
  --slate: var(--on-dark-muted);
  --line: rgba(238, 243, 241, 0.12);
  --edge: rgba(238, 243, 241, 0.24);
  --soft: #172321;
  --surface: #111a19;
  --accent: #8fdcca;
  --accent-deep: #b5ecdf;
  --error: #ff9d8f;
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--panel);
  color: var(--on-dark);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(13, 20, 19, 0.18);
}
.xray-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.xray-dots {
  display: flex;
  flex: none;
  gap: 6px;
}
.xray-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(238, 243, 241, 0.2);
}
.xray-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
.xray-title:focus {
  outline: none;
}
.xray-free {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ready-on-dark);
}
.hero-note {
  padding: 12px 24px 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--slate);
}
.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-rows: repeat(6, auto) 1fr;
  gap: 28px 44px;
  align-items: start;
  padding: 24px 24px 28px;
}
.check > :not(.result):not(.scanner) {
  grid-column: 1;
}
.xray .label {
  color: var(--on-dark-muted);
}
.xray .button {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--panel);
}
.xray .button:hover {
  background: #fff;
}
.xray-nojs {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--charcoal);
}
.step[hidden],
.xray-nojs[hidden] {
  display: none;
}
.step {
  display: grid;
  gap: 14px;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.form-note {
  font-size: var(--fs-sm);
  color: var(--slate);
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button[hidden] {
  display: none;
}
.tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Step 1: the website field and the X-ray button share one frame. Nested
   radius: frame 12 = button 8 + 4 inset. */
.scan-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 560px;
  height: 56px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 12px;
}
.scan-row:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.scan-row:has(input[aria-invalid="true"]) {
  border-color: var(--error);
}
.scan-row input {
  flex: 1 1 auto;
  /* width 0: the field's intrinsic size must not widen the column. */
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: var(--fs-base);
  color: var(--ink);
}
.scan-row input::placeholder {
  color: var(--slate);
}
.scan-row input:focus {
  outline: none;
}
.scan-row .button {
  flex: none;
  min-height: 0;
  height: 100%;
  padding: 0 20px;
  border-radius: 8px;
}
.scan-row .button:hover {
  transform: none;
}
.knob .exact,
.send-fields input,
.send-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-field);
}
.send-fields textarea {
  min-height: 0;
  padding-block: 10px;
  resize: vertical;
}
.knob .exact:focus-visible,
.send-fields input:focus-visible,
.send-fields textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.knob .exact[aria-invalid="true"],
.send-fields input[aria-invalid="true"] {
  border-color: var(--error);
}
.error,
.knob-error {
  font-size: var(--fs-sm);
  color: var(--error);
}
.error:empty,
.knob-error:empty {
  display: none;
}
.warn {
  padding-left: 10px;
  border-left: 3px solid var(--slate);
  font-size: var(--fs-sm);
  color: var(--charcoal);
}
.warn:empty {
  display: none;
}
.scan-uses:empty {
  display: none;
}
.scan-out {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.scan-out[hidden] {
  display: none;
}

/* The live scan strip: each finding waits as a quiet bar and is replaced by
   its words as the scan answers. Mono, like a log. */
.scan-log {
  /* One column that may shrink: a long store name must not push the status
     tag out of the card on a phone. */
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}
.log-title {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}
.log-host {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate);
}
@media (max-width: 480px) {
  .log-host {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.log-rows {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 14px;
}
.log-rows li {
  display: grid;
}
.log-row {
  display: grid;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  grid-template-columns: 16px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  padding-block: 10px;
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.log-row:not(:disabled) {
  cursor: pointer;
}
.log-row:disabled {
  cursor: default;
}
.log-row:not(:disabled) .log-k::after {
  content: " +";
  color: var(--accent);
  font-weight: 700;
}
.log-row[aria-expanded="true"] .log-k::after {
  content: " –";
}
.log-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.log-k {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--slate);
}
.log-v {
  grid-column: 2;
  min-height: 19px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tick {
  position: relative;
  grid-row: 1;
  align-self: center;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--edge);
  border-radius: 50%;
}
.log-rows li.is-done .tick {
  border-color: var(--ready-on-dark);
  background: var(--ready-on-dark);
}
/* A small check drawn by two borders of a rotated box. */
.log-rows li.is-done .tick::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1.5px;
  width: 3px;
  height: 6px;
  border: solid var(--panel);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.log-rows li.is-miss .tick {
  border-style: dashed;
}
.log-rows li.is-miss .log-v {
  font-weight: 500;
  color: var(--slate);
}
.log-fill {
  display: block;
  width: 70%;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--soft);
}
.log-text {
  display: block;
}
.log-foot {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--slate);
}
.log-foot:empty {
  display: none;
}
.log-detail {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: var(--fs-sm);
}
.log-detail[hidden] {
  display: none;
}
.log-detail dl {
  display: grid;
  gap: 6px;
  margin: 0;
}
.log-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.log-detail dt {
  color: var(--slate);
}
.log-detail dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}
.hist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 56px;
}
.hist span {
  height: max(3px, var(--h));
  border-radius: 4px 4px 0 0;
  background: var(--charcoal);
}
.hist-ends {
  margin-top: -6px;
  font-size: var(--fs-xs);
  color: var(--slate);
}
.means .label {
  margin-right: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .scan-log[data-state="pending"] .log-fill {
    animation: log-read 1.2s ease-in-out infinite alternate;
  }
  .log-text {
    animation: log-arrive 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .log-rows li.is-done .tick,
  .log-rows li.is-miss .tick {
    transition: background 0.2s ease;
  }
}
@keyframes log-read {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@keyframes log-arrive {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* Step 2: tap cards. A pressed card turns light on the dark panel. */
.pick-group {
  display: grid;
  gap: 8px;
}
.q {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--charcoal);
}
.q-hint {
  font-weight: 500;
  color: var(--slate);
}
.q-hint[hidden] {
  display: none;
}
.picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.picks-type {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pick {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-button);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.pick:hover {
  border-color: var(--accent);
}
.pick[aria-pressed="true"] {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--panel);
}
/* With a guess from the scan, only the guess shows until the visitor asks
   for the rest (Chris, 2026-11-16: "just what we came up with for them"). */
.picks[data-collapsed] .pick:not([data-suggest]):not([aria-pressed="true"]) {
  display: none;
}
.pick-more {
  justify-self: start;
  min-height: 44px;
  font-size: var(--fs-sm);
}
.pick-more[hidden] {
  display: none;
}
/* The scan's guess: outlined, not pressed, until the visitor taps it. */
.pick[data-suggest]:not([aria-pressed="true"]) {
  border-style: dashed;
  border-color: var(--accent);
}
.fit {
  display: grid;
  gap: 8px;
}
.fit[hidden] {
  display: none;
}
.fit-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--fs-sm);
}
.fit-choices .text-button {
  min-height: 44px;
}
.pick-sub {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--slate);
}
.pick[aria-pressed="true"] .pick-sub {
  color: #3d4a48;
}
.ask-wait {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--charcoal);
}
.ask-wait:empty {
  display: none;
}

/* Step 3: one row per guess, its value on the right. */
.tune {
  gap: 0;
}
.tune .step-head {
  margin-bottom: 6px;
}
.tune-live {
  display: none;
}
.knob {
  display: grid;
  gap: 8px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.knob-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--charcoal);
}
.knob-head output {
  font-family: var(--mono);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.knob.is-exact .knob-head output {
  color: var(--slate);
}
.slider {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.slider[hidden],
.knob .exact[hidden] {
  display: none;
}
.knob-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.where-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-underline-offset: 3px;
  cursor: pointer;
}
.where-btn[aria-expanded="true"] {
  color: var(--ink);
}
.knob-actions .text-button {
  font-size: var(--fs-sm);
}
.refine-btn,
.more-btn {
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-button);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.refine-btn {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--ink);
}
.refine-btn::after,
.more-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.refine-btn[aria-expanded="true"]::after,
.more-btn[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}
.refine[hidden] {
  display: none;
}
/* Only phones show this, and only before the reveal (see the media rules). */
.more-btn {
  display: none;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--on-dark);
}
.result-more {
  display: grid;
  gap: 14px;
}
.knob-note {
  font-size: var(--fs-sm);
  color: var(--slate);
}
.knob-note[hidden] {
  display: none;
}

/* A "Where to find this" panel: a generic, illustrative report in which a
   cursor finds the number, then plain directions and the real links. */
.where-panel {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.where-panel[hidden] {
  display: none;
}
.where-title {
  font-weight: 700;
}
.where-title:focus {
  outline: none;
}
.where-title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.demo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: var(--fs-xs);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.demo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.demo-chip,
.demo .tag {
  flex: none;
  white-space: nowrap;
}
.demo-chip {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
}
.demo-grid,
.demo-list {
  display: grid;
  margin: 10px 12px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.demo-grid {
  grid-template-columns: 1.3fr 0.6fr 1.1fr;
}
.demo-grid > :nth-child(3n + 1) {
  grid-column: 1;
}
.demo-list {
  grid-template-columns: 1.5fr 1fr 0.4fr;
}
.demo-list > :nth-child(2n + 1) {
  grid-column: 1;
}
.demo-grid > span,
.demo-list > span {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background 0.3s ease;
}
.demo-th {
  font-weight: 700;
  color: var(--slate);
}
.demo-total {
  font-weight: 700;
}
.fill {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--edge);
}
.w30 {
  width: 30%;
}
.w40 {
  width: 40%;
}
.w50 {
  width: 50%;
}
.w60 {
  width: 60%;
}
.w70 {
  width: 70%;
}
.demo .is-goal {
  font-weight: 700;
  color: var(--ink);
}
/* The highlight: the column (or row) tints, then the number gets a ring. */
.demo.is-col .hl {
  background: rgba(143, 220, 202, 0.1);
}
.demo.is-goal .is-goal {
  box-shadow: inset 0 0 0 2px var(--accent);
  border-radius: 4px;
}
.demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 22px;
  pointer-events: none;
  background: var(--on-dark);
  clip-path: polygon(0 0, 0 82%, 26% 64%, 46% 100%, 60% 94%, 41% 59%, 76% 59%);
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transform: translate(var(--sx, 300px), var(--sy, 140px));
}
.demo.is-live .demo-cursor {
  transform: translate(var(--ax, 0), var(--ay, 0));
}
.demo.is-goal .demo-cursor {
  transform: translate(var(--gx, 0), var(--gy, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .demo-cursor {
    transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
  }
  .demo.is-col .hl {
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .demo.is-still .demo-cursor,
  .demo.is-still .hl {
    transition: none;
  }
}
.where-how {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--charcoal);
}
.where-how a {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
  text-underline-offset: 2px;
}
.where-how a[target="_blank"]::after {
  content: " \2197";
  display: inline-block;
  text-decoration: none;
}
.where-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.use-real {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--on-dark);
  color: var(--panel);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.use-real:hover {
  background: #fff;
}

/* The answer: a lighter well inside the panel. */
.result {
  grid-column: 2;
  grid-row: 1 / span 7;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--panel-2);
  color: var(--on-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.result .label {
  color: var(--on-dark-muted);
}
.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.result-head .tag[hidden] {
  display: none;
}
.result-head:focus {
  outline: none;
}
.result-head:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 4px;
}
.big {
  font-family: var(--mono);
  font-size: clamp(60px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.small {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.payback {
  justify-self: start;
  padding: 4px 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.tile {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-field);
  background: var(--panel-3);
}
.tile dt {
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--on-dark-muted);
}
.tile dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tile-share {
  grid-column: 1 / -1;
}
.tile-share dd {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ring {
  display: block;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 6;
}
.ring-track {
  stroke: rgba(242, 247, 245, 0.14);
}
.ring-arc {
  stroke: var(--on-dark);
  stroke-linecap: round;
  stroke-dasharray: 100px;
  stroke-dashoffset: calc((100 - var(--w, 0)) * 1px);
}
.workings {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}
.workings summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--on-dark);
}
.workings summary::-webkit-details-marker {
  display: none;
}
.workings summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.workings[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.workings summary:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}
.workings-body {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  line-height: 1.5;
}
.workings-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.stale-note {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.result.is-stale > :not(.stale-note) {
  opacity: 0.4;
  pointer-events: none;
}
/* The two-bar compare: cost against what a first order leaves. --w is a
   0-100 percentage; the starting values match meters() for the example. */
.compare {
  display: grid;
  gap: 12px;
}
.meter {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
}
.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-dark-muted);
}
.meter-v {
  color: var(--on-dark);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.gap {
  justify-self: end;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--on-dark);
  color: var(--panel);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gap.is-short {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(242, 247, 245, 0.5);
}
.meter-track {
  display: block;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
.meter-bar {
  display: block;
  height: 100%;
  background: var(--on-dark);
  border-radius: inherit;
  width: calc(var(--w, 0) * 1%);
}
.m-cac {
  --w: 76;
}
.m-breakeven {
  --w: 100;
  background: rgba(242, 247, 245, 0.5);
}
.m-share {
  --w: 61.5;
}
/* The gauge: three bands on a half circle, one needle. Bands differ in
   weight, not hue (green stays reserved for "ready"). */
.gauge {
  position: relative;
  max-width: 240px;
  margin-top: 18px;
  padding-bottom: 22px;
}
.gauge svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.g-zone {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}
.g-good {
  stroke: rgba(242, 247, 245, 0.7);
}
.g-even {
  stroke: rgba(242, 247, 245, 0.4);
}
.g-bad {
  stroke: rgba(242, 247, 245, 0.18);
}
.g-needle {
  fill: var(--on-dark);
  transform-origin: 100px 100px;
  transform: rotate(var(--a, 0deg));
}
.g-l {
  position: absolute;
  bottom: 0;
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  white-space: nowrap;
}
.g-l1 {
  left: 0;
}
.g-l2 {
  top: -4px;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -100%);
}
.g-l3 {
  right: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips:empty {
  display: none;
}
.read-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(242, 247, 245, 0.28);
  border-radius: var(--radius-field);
  background: rgba(242, 247, 245, 0.06);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.read-chip:hover {
  background: rgba(242, 247, 245, 0.14);
}
.read-chip:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .meter-bar {
    transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .ring-arc {
    transition: stroke-dashoffset 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  /* One frame with no transition, so the reveal starts from empty bars. */
  .result.is-zero .meter-bar,
  .result.is-zero .ring-arc {
    transition: none;
  }
  .result.is-revealing .meter-bar,
  .result.is-revealing .ring-arc {
    transition-duration: 0.7s;
    transition-delay: 0.3s;
  }
  .result.is-revealing .tile {
    animation: chip-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: 0.9s;
  }
  .result.is-revealing .tile:nth-child(2) {
    animation-delay: 0.96s;
  }
  .result.is-revealing .tile:nth-child(3) {
    animation-delay: 1.02s;
  }
  .result.is-revealing .gap {
    animation: chip-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.85s both;
  }
  /* After the reveal the needle follows the sliders smoothly. */
  .g-needle {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .result.is-revealing .g-needle {
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.25s;
  }
  .result.is-revealing .chips li {
    animation: chip-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.8s + var(--i, 0) * 60ms);
  }
}
@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Step 4: Send. A real form; Enter in any field submits. */
.send-form {
  display: grid;
  gap: 12px;
}
.send-form[hidden] {
  display: none;
}
.send-fields {
  display: grid;
  gap: 12px;
}
.send-fields label {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--charcoal);
}
/* The honeypots (send form and X-ray form): off screen, out of the tab order. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.send-form .button {
  justify-self: start;
}
.send-form .button[aria-busy="true"] {
  cursor: progress;
}
.send-status {
  color: var(--ink);
}
.send-status:empty {
  display: none;
}
.send-done {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  font-weight: 700;
}
.send-done[hidden] {
  display: none;
}

/* The live scanner. Until the read is the visitor's own, the right column
   is a browser window: empty, then their store redrawn from the scan and
   read with a sweeping beam and pinned findings. The store page inside it
   is light, the way stores look. */
.check[data-view="idle"] .result,
.check[data-view="scan"] .result {
  display: none;
}
.check > .scanner {
  grid-column: 2;
  grid-row: 1 / span 7;
  align-self: start;
}
@media (min-width: 861px) and (min-height: 820px) {
  .scanner,
  .result {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}
.scanner {
  display: grid;
  gap: 12px;
}
.scanner[hidden] {
  display: none;
}
.scanner-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel-3);
  color: var(--on-dark);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.scanner-dots {
  display: flex;
  gap: 6px;
}
.scanner-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.scanner-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}
.scanner-state {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
}
.scanner[data-state="reading"] .scanner-state,
.scanner[data-state="found"] .scanner-state {
  color: var(--ready-on-dark);
}
.scanner-page {
  --ink: #151b1a;
  --slate: #4b5856;
  --line: rgba(21, 27, 26, 0.12);
  --soft: #ece8dd;
  --surface: #fffdf8;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin-top: -12px;
  padding: 16px;
  min-height: 420px;
  align-content: start;
  background: #fff;
  color: var(--ink);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.sp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 22px;
}
.sp-name {
  font-weight: 700;
  color: var(--ink);
}
.sp-name:empty {
  width: 96px;
  height: 12px;
  border-radius: 6px;
  background: var(--soft);
}
.sp-logo {
  display: block;
  max-height: 26px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}
.sp-nav {
  display: flex;
  gap: 8px;
}
.sp-nav i {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background: var(--soft);
}
.sp-hero {
  height: 150px;
  border-radius: 10px;
  background: var(--soft);
  overflow: hidden;
}
/* Contain, not cover: a store's share image is often its logo. */
.sp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: sp-in 0.5s ease both;
}
.sp-hero-img.is-cover {
  object-fit: cover;
}
.sp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sp-grid li {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sp-img,
.sp-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}
.sp-photo {
  animation: sp-in 0.5s ease both;
}
.sp-line {
  height: 7px;
  border-radius: 4px;
  background: var(--soft);
}
.sp-short {
  width: 55%;
}
.sp-title {
  font-size: var(--fs-xs);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-price {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--slate);
}
@keyframes sp-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}
.scanner-beam {
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(123, 234, 168, 0) 0%,
    rgba(123, 234, 168, 0.28) 85%,
    rgba(22, 122, 68, 0.9) 100%
  );
}
@media (prefers-reduced-motion: no-preference) {
  .scanner[data-state="reading"] .scanner-beam,
  .scanner[data-state="found"] .scanner-beam {
    opacity: 1;
    animation: sp-sweep 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .scanner[data-state="reading"] .sp-img,
  .scanner[data-state="reading"] .sp-line,
  .scanner[data-state="reading"] .sp-hero {
    animation: sp-pulse 1.2s ease-in-out infinite;
  }
}
@keyframes sp-sweep {
  from {
    transform: translateY(-90px);
  }
  to {
    transform: translateY(520px);
  }
}
@keyframes sp-pulse {
  50% {
    opacity: 0.55;
  }
}
.scanner-pins {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scanner-pins:empty {
  display: none;
}
.scanner-pins li {
  position: relative;
  padding: 6px 10px 6px 26px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--on-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  animation: pin-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1.2) both;
}
.scanner-pins li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ready-on-dark);
}
.scanner-pins li.is-miss {
  background: var(--surface);
  color: var(--slate);
  border: 1px solid var(--line);
}
.scanner-pins li.is-miss::before {
  background: var(--line);
}
@keyframes pin-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
}
.scanner-hint {
  font-size: var(--fs-sm);
  color: var(--slate);
  text-align: center;
}
.scanner[data-state="miss"] .scanner-page {
  opacity: 0.6;
}

/* The status pill: fixed, so it never moves the layout. Bottom centre on
   phones, bottom right on wider screens. */
.pill-dock {
  position: fixed;
  z-index: 30;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.xray-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(13, 20, 19, 0.25);
  pointer-events: auto;
  cursor: pointer;
}
.xray-pill[hidden] {
  display: none;
}
.xray-pill[data-state="pending"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--on-dark-muted);
  border-right-color: transparent;
  border-radius: 50%;
}
.xray-pill[data-state="ready"]::before {
  content: "";
  width: 5px;
  height: 10px;
  margin: 0 2px 2px;
  border: solid var(--ready-on-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.xray-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (min-width: 861px) {
  .pill-dock {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .xray-pill[data-state="pending"]::before {
    animation: pill-spin 0.9s linear infinite;
  }
  .xray-pill:not([hidden]) {
    animation: chip-in 0.25s ease-out;
  }
}
@keyframes pill-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Two doors: two columns split by a rule, not two equal cards. */
.door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.door {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 40px 8px 0;
}
.door + .door {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.door-tag {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.door h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.door-need {
  font-weight: 700;
  color: var(--charcoal);
}
.door-fix {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.doors-foot {
  margin-top: 36px;
  color: var(--slate);
}
.doors-foot .text-link {
  font-weight: 700;
  color: var(--ink);
}

/* ---- How I work: three beats, each a product shot over its words. */
.how .sec-head h2 {
  max-width: 18ch;
}
.rhythm {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.rhythm > li {
  display: grid;
  align-content: start;
  gap: 10px;
}
.when {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.rhythm p:not(.when) {
  color: var(--charcoal);
}
/* Each shot crops its content off an edge so it reads as part of a larger
   screen. The payoff is the still state; motion plays once in view. */
.shot {
  position: relative;
  height: 240px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px 22px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.shot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}
.shot-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shot .bar,
.shot .thumb-art i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.shot-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.shot-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.shot-rows .bar-a {
  width: 38%;
}
.shot-rows .bar-b {
  width: 26%;
  flex: none;
}
.shot-rows .bar-c {
  width: 30%;
}
.shot-rows li.is-flag {
  margin-inline: -8px;
  padding-inline: 8px;
  background: var(--soft);
  border-radius: 8px;
  border-bottom-color: transparent;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.mark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
}
.thumb {
  --pad: 10px;
  --chip: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  height: 100%;
}
.thumb-label {
  font-weight: 700;
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.thumb-art {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  margin-bottom: -24px;
  padding: var(--pad) var(--pad) 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.thumb-b .thumb-art {
  border-color: var(--slate);
}
.hook {
  display: block;
  min-height: 76px;
  padding: 10px;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
  color: var(--charcoal);
  background: var(--soft);
  border-radius: 8px;
}
.thumb-b .hook {
  font-weight: 700;
  color: var(--on-dark);
  background: var(--panel);
}
.thumb-art i:nth-of-type(1) {
  width: 80%;
}
.thumb-art i:nth-of-type(2) {
  width: 52%;
}
.chip {
  justify-self: start;
  height: var(--chip);
  padding: 0 9px;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: var(--chip);
  letter-spacing: 0.04em;
  color: var(--on-dark);
  background: var(--ready);
  border-radius: 999px;
  white-space: nowrap;
}
.shot-report {
  display: grid;
  align-content: center;
  padding-top: 40px;
}
.shot-tag {
  position: absolute;
  top: 20px;
  right: 22px;
  margin: 0;
}
.gap-chart {
  position: relative;
  display: grid;
  gap: 6px;
}
.gap-label {
  margin-top: 6px;
  color: var(--slate);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.gap-chart .gap-label:first-child {
  margin-top: 0;
}
.gap-bar {
  display: block;
  height: 22px;
  border-radius: 6px;
  transform-origin: left center;
}
.gap-meta {
  width: 88%;
  background: var(--charcoal);
}
.gap-shop {
  width: 56%;
  background: #a7b2ae;
}
.gap-bracket {
  position: relative;
  margin: 2px 0 0 56%;
  width: 32%;
  height: 10px;
  border: 1px solid var(--slate);
  border-top: 0;
  border-radius: 0 0 3px 3px;
}
.gap-bracket b {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .shot.is-armed .shot-rows li.is-flag {
    opacity: 0;
    transform: translateX(-18px);
    transition:
      opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .shot.is-armed.is-live .shot-rows li.is-flag {
    opacity: 1;
    transform: none;
  }
  .shot.is-armed .chip {
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.4s ease 0.35s,
      transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s;
  }
  .shot.is-armed.is-live .chip {
    opacity: 1;
    transform: none;
  }
  .shot.is-armed .gap-bar {
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .shot.is-armed .gap-shop {
    transition-delay: 0.7s;
  }
  .shot.is-armed .gap-bracket {
    opacity: 0;
    transition: opacity 0.4s ease 1.5s;
  }
  .shot.is-armed.is-live .gap-bar {
    transform: none;
  }
  .shot.is-armed.is-live .gap-bracket {
    opacity: 1;
  }
}
.gate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ready);
}
.tools {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--slate);
}

/* ---- The first 60 days and the weekly report: copy on one side, the
   thing itself on the other. The price rides beside each button. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
.split-copy h2 {
  max-width: 14ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
}
.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 28px;
}
.timeline li {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 32px;
}
/* A dot per step on one rule; the rule stops at the last dot. */
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -24px;
  width: 1px;
  background: var(--edge);
}
.timeline h3 {
  font-size: 20px;
}
.timeline p:not(.when) {
  max-width: 48ch;
}
.timeline p:not(.when),
.mail-note {
  color: var(--charcoal);
}
/* Desktop: the heading and button stay in view beside the long timeline. */
@media (min-width: 861px) {
}
@media (max-width: 480px) {
  .mail-tiles dd:nth-of-type(1) {
    font-size: 21px;
  }
}
.timeline .is-end h3 {
  color: var(--accent-deep);
}
.timeline .is-end::before {
  box-shadow: 0 0 0 5px rgba(14, 107, 104, 0.16);
}
.timeline a,
.mail-gap {
  color: var(--accent-deep);
}
.mail {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.mail-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 60px -34px rgba(21, 27, 26, 0.4);
  font-size: var(--fs-sm);
}
.mail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mail-head b,
.mail-head span:last-child {
  grid-column: 1 / -1;
}
.mail-from {
  font-weight: 700;
}
.mail-time,
.mail-head span:last-child,
.mail-tiles dt,
.mail-tiles dd + dd {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--slate);
}
.mail-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 0;
}
.mail-tiles div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mail-tiles dt {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mail-tiles dd:nth-of-type(1) {
  margin: 2px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.mail-gap {
  padding: 16px 20px 0;
  font-weight: 500;
}
.mail-note {
  padding: 10px 20px 20px;
}

/* ---- What gets tested: the reels live in tests.css, loaded with
   tests.html. */
/* One shrinkable track: the reels are max-content wide and must not widen
   the section (they scroll inside their own mask). */
.tests {
  grid-template-columns: minmax(0, 1fr);
}
.tests .sec-head {
  max-width: none;
  margin-bottom: 36px;
}
.tests-reels {
  min-height: 420px;
}
.tests-fallback {
  color: var(--slate);
}

/* ---- Why me: the face and the record side by side. */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
}
.why-portrait {
  display: grid;
  gap: 10px;
}
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: var(--soft);
}
.why-portrait figcaption {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--slate);
}
.why-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* The number leads visually; the markup keeps dt before dd. */

.story-sub {
  margin-top: 8px;
  font-size: var(--fs-base);
}
.why-copy p {
  color: var(--charcoal);
}
.why-link {
  font-weight: 700;
  color: var(--ink);
}

/* ---- Pricing: the plan on the left; who it's for and the canonical
   fee-back terms on the right. */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.plan {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 18px;
  margin-top: 8px;
}
.price-main {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.price-or {
  padding-bottom: 6px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-deep);
}
.price-line {
  max-width: 52ch;
  text-wrap: pretty;
  font-size: var(--fs-sm);
  color: var(--slate);
}
.plan-list,
.fit-list,
.fine-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plan-list li,
.fit-list li,
.fine-list li,
.promise-steps li {
  text-wrap: pretty;
}
.plan-list li,
.fit-list li,
.fine-list li {
  position: relative;
  padding-left: 24px;
  color: var(--charcoal);
}
.fine-list li {
  font-size: var(--fs-sm);
  color: var(--slate);
}
.plan-list li::before,
.fit-list li::before,
.fine-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-cta {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.terms-col {
  display: grid;
  gap: 24px;
}
.fit {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.promise {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
}
.promise-line {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
}
.promise-steps {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.promise-steps li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
}
.promise-sub {
  font-weight: 700;
  color: var(--ink);
}

/* ---- Questions: native details, no script. */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}
.faq-grid .sec-head {
  margin-bottom: 0;
}
.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding-block: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--slate);
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  max-width: 62ch;
  padding-bottom: 20px;
  color: var(--charcoal);
}
.faq-item p a {
  font-weight: 700;
}
.faq-item p + .fine-list {
  margin-top: -8px;
  padding-bottom: 20px;
}

/* ---- Contact: the page closes on the panel's dark. */
.contact {
  padding-block: var(--section-pad);
  background: var(--panel);
  color: var(--on-dark);
}
.contact-inner {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.contact .label {
  color: var(--on-dark-muted);
}
.contact h2 {
  max-width: 16ch;
}
.contact-copy {
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: #cfdad7;
}
.contact-copy a {
  font-weight: 700;
  color: var(--on-dark);
}
.contact :focus-visible {
  outline-color: var(--on-dark);
}

/* ---- Footer */
.site-footer {
  padding-block: 28px 40px;
  background: var(--panel);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(238, 243, 241, 0.12);
  font-size: var(--fs-sm);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer a,
.footer-agent {
  color: var(--on-dark);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer :focus-visible {
  outline-color: var(--on-dark);
}
.footer-agent {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer-agent[hidden] {
  display: none;
}

/* ---- Dialogs: Agent view and Your privacy choices. */
.agent-view,
.choices {
  width: min(760px, calc(100% - 32px));
  max-height: min(84vh, 820px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(13, 20, 19, 0.3);
}
.agent-view::backdrop,
.choices::backdrop {
  background: rgba(13, 20, 19, 0.42);
}
.agent-view[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.agent-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.agent-head h2,
.choices h2 {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.agent-head p {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--slate);
}
.agent-text {
  margin: 0;
  padding: 20px 24px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--charcoal);
  background: var(--paper);
}
.agent-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.agent-close,
.agent-copy {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-button);
  cursor: pointer;
}
.agent-close {
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
}
.agent-copy {
  color: var(--paper);
  background: var(--ink);
  border: 0;
}
.choices {
  width: min(520px, calc(100% - 32px));
}
.choices[open] {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.choices p {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--charcoal);
}
.choices-state {
  font-weight: 700;
  color: var(--ink);
}
.choices-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.choices-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
}
.choices-btn[hidden] {
  display: none;
}
.choices-close {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.choices-saved:empty {
  display: none;
}
.choices-more {
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* ---- Measurement notice: bottom right (clear of the X-ray form), compact; lifted above the X-ray
   status pill whenever that shows, so they never overlap. */
.privacy-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 10px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  box-shadow: 0 18px 44px rgba(13, 20, 19, 0.12);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--charcoal);
}
.privacy-note[hidden] {
  display: none;
}
.privacy-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}
.privacy-actions a {
  font-weight: 700;
  color: var(--ink);
}
.privacy-note button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--soft);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* ---- Phones get their own layout, not a squeeze. */
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }
  .hero-top,
  .check,
  .pricing-grid,
  .faq-grid,
  .door-grid,
  .rhythm,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Phones: the report reads after its heading, not before it. */
  .report .mail {
    order: 1;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-top {
    gap: 18px;
  }
  .check-intro {
    gap: 14px;
  }
  .hero-side {
    gap: 12px;
    padding-bottom: 0;
  }
  .lede {
    font-size: var(--fs-base);
  }
  /* Phones: the header already carries the call button, so the X-ray field
     reaches the first screen (phone visitors arrive from ads). */
  .hero-actions,
  .hero-micro,
  .hero-side .text-link,
  .hero-note {
    display: none;
  }
  .xray {
    margin-top: 24px;
  }
  .privacy-note p:not([hidden]) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .xray {
    margin-inline: -8px;
    border-radius: 14px;
  }
  .xray-bar {
    padding: 14px 16px;
  }
  .hero-note {
    padding-inline: 16px;
  }
  .check {
    grid-template-rows: none;
    gap: 24px;
    padding: 18px 16px 22px;
  }
  .check > :not(.result):not(.scanner) {
    grid-column: auto;
  }
  .result,
  .check > .scanner {
    grid-column: auto;
    grid-row: auto;
  }
  .result {
    padding: 22px 18px;
  }
  /* Reading order on a phone: the website, then the three guesses and the
     scan strip, then the store window, then the answer, the sliders, Send. */
  .ask,
  .scan-log,
  .check > .scanner {
    order: 1;
  }
  .result {
    order: 2;
  }
  .tune {
    order: 3;
  }
  .send-step {
    order: 4;
  }
  /* The slim live line rides under the header while the sliders move. */
  .tune-live:not(:empty) {
    display: block;
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    margin-inline: -16px;
    padding: 10px 16px;
    background: var(--on-dark);
    color: var(--panel);
    font-family: var(--mono);
    font-size: var(--fs-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .log-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .log-rows li:last-child {
    grid-column: 1 / -1;
  }
  .picks,
  .picks-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-grid {
    grid-template-columns: 1fr 0.4fr 1.3fr;
  }
  .demo-chip {
    display: none;
  }
  /* Before the read is theirs, the example's details fold behind a button. */
  html.js .result:not(.is-revealed):not(.is-open) .result-more {
    display: none;
  }
  html.js .result:not(.is-revealed) .more-btn {
    display: inline-flex;
  }
  .scanner[data-state="idle"] {
    display: none;
  }
  .scanner-page {
    min-height: 0;
  }
  .sp-hero {
    height: 90px;
  }
  .sp-grid li:nth-child(n + 4) {
    display: none;
  }
  .door {
    padding: 24px 0 8px;
  }
  .door + .door {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 16px;
  }
  .rhythm {
    gap: 40px;
  }
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .why-portrait {
    width: 180px;
  }

  .promise {
    padding: 22px 18px;
  }
  .faq-grid {
    gap: 24px;
  }
  .privacy-note {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
    padding: 8px 8px 8px 12px;
  }
  /* Lifted over the status pill (bottom centre on phones). */
  html:has(.xray-pill:not([hidden])) .privacy-note {
    bottom: 72px;
  }
  /* The bar rides above the phone keyboard and would sit on the X-ray field.
     It has already shown on load, so it steps aside only while typing. */
  html:has(.xray input:focus, .xray textarea:focus) .privacy-note {
    visibility: hidden;
  }
}
@media (min-width: 861px) {
  html:has(.xray-pill:not([hidden])) .privacy-note {
    bottom: 80px;
  }
}
@media (max-width: 400px) {
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .site-header .button-small {
    padding: 0 12px;
  }
}
/* Phones: the website field sits above its button, so a full address shows.
   16px keeps iOS from zooming the page on focus. */
@media (max-width: 430px) {
  .scan-row {
    flex-wrap: wrap;
    height: auto;
  }
  .scan-row input {
    flex-basis: 100%;
    width: 100%;
    height: 48px;
    font-size: 16px;
  }
  .scan-row .button {
    flex: 1 1 100%;
    height: 48px;
  }
}

/* Print: every story shows its finished state; nothing is held or hidden. */
@media print {
  .privacy-note,
  .skip-link,
  .pill-dock,
  .site-header {
    display: none !important;
  }
  [data-reveal],
  .shot,
  .shot .chip,
  .shot .gap-bar,
  .shot .gap-bracket,
  .shot-rows li.is-flag {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .meter-bar,
  .ring-arc {
    transition: none !important;
  }
}

/* Small text links get a full-size tap target on touch screens and phones. */
@media (pointer: coarse), (max-width: 760px) {
  .text-button,
  .where-btn,
  .site-footer nav a,
  .footer-agent {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---- Words that follow a good X-ray (brand.js). */
.brand-tools {
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: var(--fs-sm);
}
.brand-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.brand-status:empty {
  display: none;
}
@media (pointer: coarse), (max-width: 760px) {
  .brand-tools a,
  .brand-tools .text-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.brand-tools[hidden],
.brand-note[hidden] {
  display: none;
}
.brand-tools .text-link,
.brand-tools .text-button {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-note {
  margin-top: 28px;
  max-width: 60ch;
  color: var(--charcoal);
}
.door.is-match .door-tag {
  font-weight: 700;
  color: var(--ink);
}
.door.is-match {
  box-shadow: inset 0 3px 0 var(--accent);
}
.brand-ig[hidden],
.brand-saved[hidden],
.brand-manual[hidden],
.brand-tools .text-button[hidden],
.studio img[hidden],
.gap-check[hidden] {
  display: none;
}
.brand-manual {
  display: grid;
  gap: 6px;
  width: 100%;
}
.brand-manual input {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--on-dark);
  font: inherit;
}

/* ---- What gets tested: the studio, then the format checklist. */
.brand-gap {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}
/* ---- Ad Studio Lite (studio.js): one phone-width ad at a time. Every ad
   has the same three rows (top, square media, foot), so nothing jumps when
   the tab changes. Tints are preset classes picked from the brand's logo. */
.studio {
  --tint: #e9ece9;
  --tint-ink: #151b1a;
  display: grid;
  gap: 12px;
}
.tint-sand {
  --tint: #efe5d4;
  --tint-ink: #4a3a22;
}
.tint-sage {
  --tint: #e2eadf;
  --tint-ink: #2f4128;
}
.tint-sky {
  --tint: #dde9f6;
  --tint-ink: #1d3a5c;
}
.tint-rose {
  --tint: #f6e0e3;
  --tint-ink: #5c2430;
}
.tint-plum {
  --tint: #ebe0ef;
  --tint-ink: #3d2346;
}
.tint-ink {
  --tint: #dfe4ec;
  --tint-ink: #18233a;
}
.tint-amber {
  --tint: #f7e7c8;
  --tint-ink: #5a3a06;
}
.tint-moss {
  --tint: #e3e8d7;
  --tint-ink: #2c3a18;
}
.studio-sub {
  font-size: var(--fs-sm);
  color: var(--slate);
}
.studio-body {
  display: grid;
  gap: 16px;
  justify-items: center;
}
.studio-side {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.studio-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.studio-tab[aria-pressed="true"] {
  border-color: var(--tint-ink);
  background: var(--tint-ink);
  color: #fff;
}
.studio-shuffle {
  min-height: 44px;
}
@media (min-width: 900px) {
  .studio-body {
    grid-template-columns: 360px auto;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }
  .studio-side,
  .studio-tabs {
    justify-items: start;
  }
  .studio-tabs {
    flex-direction: column;
    align-items: stretch;
  }
}
.studio-phone {
  width: 100%;
  max-width: 360px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--tint);
}
.ad {
  display: grid;
  grid-template-rows: 52px auto 84px;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: #1c1e21;
}
.ad-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.ad-logo,
.ad-mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--tint);
}
.ad-mark {
  display: grid;
  place-items: center;
  color: var(--tint-ink);
  font-weight: 700;
}
.ad-who {
  display: grid;
  min-width: 0;
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.ad-who b,
.ad-who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-who span {
  color: #65676b;
}
.ad-media {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--tint);
}
.ad-img,
.ad-hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-foot {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}
.ad-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.ad-cta {
  flex: none;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--tint-ink);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.ad-title,
.ad-price {
  overflow: hidden;
  font-size: var(--fs-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-title {
  font-weight: 700;
}
.ad-price {
  color: #65676b;
}
.ad-row {
  display: flex;
  gap: 8px;
  height: 100%;
  padding: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ad-row::-webkit-scrollbar {
  display: none;
}
.ad-card {
  flex: 0 0 72%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
}
.ad-card .ad-img {
  min-height: 0;
  border-radius: 6px;
}
.ad--collection .ad-media {
  display: grid;
  grid-template-rows: 64% 36%;
}
.ad--collection .ad-hero {
  min-height: 0;
}
.ad-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding-top: 4px;
  min-height: 0;
}
.ad-tile {
  min-height: 0;
  background: #fff;
}
.ad-stack {
  position: absolute;
  inset: 12% 14% 30%;
}
.ad-pile {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.ad-pile-0 {
  left: 0;
  top: 8%;
}
.ad-pile-1 {
  right: 0;
  top: 0;
}
.ad-pile-2 {
  left: 21%;
  top: 30%;
}
.ad-bundle {
  position: absolute;
  inset: auto 12px 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.ad-story {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
}
.ad-story-text,
.ad-price-big {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: var(--fs-sm);
}
.ad-story-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.05;
}
.ad-from {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}
.gap-check {
  display: grid;
  gap: 14px;
}
.gap-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
}
.gap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gap-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.gap-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.gap-status {
  min-height: 1.5em;
  font-weight: 700;
  color: var(--charcoal);
}
@media (max-width: 860px) {
  .gap-btn {
    min-height: 44px;
  }
}

/* ---- The line under the X-ray button (brand.js): one line's height from
   the first scan on, so neither the text nor its clearing moves the page. */
.brand-live {
  position: relative;
  min-height: 1.6em;
  padding-bottom: 6px;
  font-size: var(--fs-sm);
  color: var(--charcoal);
}
.brand-live.is-pending::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 2px;
  border-radius: 2px;
  background: var(--ready-on-dark);
  animation: brand-bar 1.1s ease-in-out infinite;
}
@keyframes brand-bar {
  from {
    left: 0;
  }
  to {
    left: 70%;
  }
}
.brand-flash {
  animation: brand-flash 1.2s ease-out;
}
@keyframes brand-flash {
  from {
    background-color: rgba(14, 107, 104, 0.18);
  }
  to {
    background-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-live.is-pending::after {
    display: none;
  }
  .brand-flash {
    animation: none;
  }
}

/* ---- Their live ads (ads.js): text cards from Meta's Ad Library API. */
.ads-box {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.ads-box:empty {
  display: none;
}
.ads-wait,
.ads-sub,
.ads-foot {
  font-size: var(--fs-sm);
  color: var(--slate);
}
.ads-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .ads-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .ads-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ads-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--ink);
}
.ads-media,
.ads-since {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--slate);
}
.ads-title {
  font-weight: 700;
}
.ads-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  color: var(--charcoal);
}
.ads-link {
  justify-self: start;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (pointer: coarse), (max-width: 760px) {
  .ads-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
