/* Swatchera marketing site. One system: stone ground, charcoal ink, hairline-ruled schedule rows,
   material photographs with solid pills. Tokens from the brief, section 11. */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin.woff2) format("woff2"); }

:root {
  --stone: #f6f1e8; --stone-2: #f2ede3; --stone-3: #efe9de; --card: #ffffff;
  --ink: #2b2622; --ink-2: #5a4630; --muted: #645c52; --faint: #b9a88a; --line: #e2dacb;
  --fill: #e3d6bf; --fill-2: #efe7d8;
  --ok: #4a6546; --ok-bg: #e3eadf; --warn: #755a25; --warn-bg: #f1e7d2; --danger: #9a3f33;
  --inv: #2b2622; --inv-2: #37322e; --inv-ink: #f6f1e8; --inv-muted: #c9c1b4; --inv-line: #4a433d;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(3rem, 1.6rem + 5.6vw, 6rem);
  --t-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem);
  --t-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --t-h3: 1.25rem; --t-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-body: 1rem; --t-small: .875rem; --t-cap: .8125rem;

  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --shadow: 0 1px 2px rgba(70,56,38,.08), 0 4px 14px rgba(70,56,38,.05);
  --shadow-float: 0 10px 30px rgba(70,56,38,.14);
  --wrap: 1240px; --gutter: max(20px, env(safe-area-inset-left, 0px));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 var(--t-body)/1.6 var(--font);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--ink); color: var(--stone); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.inv :focus-visible { outline-color: var(--inv-ink); }
html { scrollbar-color: #c8bba5 var(--stone-2); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--stone); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(80px, 6vw + 48px, 152px); }
.section--tight { padding-block: clamp(64px, 4vw + 40px, 112px); }
.rule-top { border-top: 1px solid var(--line); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.cap { font-size: var(--t-cap); color: var(--muted); }
.h2 { font-size: var(--t-h2); max-width: 18ch; }
.head { display: grid; gap: 20px; margin-bottom: clamp(40px, 4vw, 64px); }
.head--flush { margin: 0; }

/* ---- buttons: pills, 48px tall, one family */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--font); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out); }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--stone); }
.btn--primary:hover { background: #443c36; }
.btn--ghost { border-color: #cfc4b1; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }
.inv .btn--primary { background: var(--inv-ink); color: var(--ink); }
.inv .btn--primary:hover { background: #fff; }
.inv .btn--ghost { border-color: var(--inv-line); color: var(--inv-ink); }
.inv .btn--ghost:hover { border-color: var(--inv-ink); background: var(--inv-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--faint); }
.text-link:hover { text-decoration-color: currentColor; }
.copy-btn { font: inherit; font-weight: 600; background: none; border: 0; padding: 12px 4px; margin: -12px 0; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: .22em; }
.copy-btn:hover { text-decoration-color: currentColor; }

/* ---- tags and chips: the schedule's own vocabulary */
.tag { white-space: nowrap; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font: 600 .75rem/1 var(--font); letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 .78rem/1 var(--font); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--ok-bg); color: var(--ok); }
.status--warn { background: var(--warn-bg); color: var(--warn); }
.status--plain { background: var(--fill-2); color: var(--ink-2); }
.soon { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px dashed #b0a28b;
  font: 600 .75rem/1 var(--font); color: var(--ink-2); letter-spacing: .02em; white-space: nowrap; }
.inv .soon { border-color: #7c7266; color: var(--inv-muted); }

/* ---- header: the one frosted floating element */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(246,241,232,.92); border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s; }
@supports (backdrop-filter: blur(1px)) { .site-head { background: rgba(246,241,232,.68); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); } }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head__bar { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1875rem; letter-spacing: -.025em; text-decoration: none; min-height: 44px; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--ink); }
.nav a:hover { background: var(--stone-3); }
.nav a[aria-current="page"] { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.site-head .btn { margin-left: auto; min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid #cfc4b1; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-nav { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .site-head__bar { gap: 10px; }
  .site-head .btn { padding: 0 16px; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { border-top: 1px solid var(--line); padding: 8px 0 20px; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
}

/* ---- hero: the scan, live */
.hero { padding-block: clamp(32px, 4vw, 64px) clamp(72px, 6vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--t-display); letter-spacing: -.04em; line-height: .96; }
.hero h1 span { display: block; }
.hero__copy { display: grid; gap: 28px; align-content: center; }
.hero__copy .lead { max-width: 30ch; }
.hero__fine { font-size: var(--t-small); color: var(--muted); max-width: 38ch; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { gap: 22px; }
}

.scan { display: grid; gap: 16px; }
.scan__frame { container-type: size; position: relative; border-radius: var(--r-l); overflow: hidden; background: #ddd5c7; aspect-ratio: 5 / 4; box-shadow: var(--shadow-float); isolation: isolate; }
.scan__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease-out), transform 1.6s var(--ease-out); }
.scan__photo.is-out { opacity: 0; }
.scan__frame[data-state="scanning"] .scan__photo { transform: scale(1.035); }
.scan__hint { position: absolute; left: 50%; top: 18px; translate: -50% 0; z-index: 3; transition: opacity .3s var(--ease-out); }
.scan__frame[data-state="results"] .scan__hint, .scan__frame[data-state="miss"] .scan__hint { opacity: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--ink);
  font: 500 .8125rem/1 var(--font); box-shadow: 0 2px 10px rgba(43,38,34,.14); white-space: nowrap; }
.pill b { font-weight: 650; }
.pill--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
/* viewfinder: four corners that travel in and lock */
.vf { position: absolute; inset: 14%; z-index: 2; pointer-events: none; transition: inset .7s var(--ease-out); }
.vf i { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.vf i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.vf i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.vf i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.vf i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.scan__frame[data-state="ready"] .vf { inset: 9%; }
.scan__frame[data-state="scanning"] .vf, .scan__frame[data-state="results"] .vf, .scan__frame[data-state="miss"] .vf { inset: 20% 24% 38% 24%; }
/* the scan line: one solid 2px rule that travels down; nothing translucent ever sits over the material */
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none; opacity: 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.scan__frame[data-state="scanning"] .sweep { opacity: 1; animation: sweep .9s var(--ease-out) both; }
@keyframes sweep { from { transform: translateY(0); } to { transform: translateY(calc(var(--h, 100cqh) - 2px)); } }
.scan__detected { position: absolute; left: 50%; top: 18px; translate: -50% 0; z-index: 3; opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.scan__frame[data-state="results"] .scan__detected, .scan__frame[data-state="miss"] .scan__detected { opacity: 1; transform: none; }
/* results sheet: solid, never translucent over the material */
.sheet { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-float);
  padding: 14px 16px 10px; transform: translateY(calc(100% + 20px)); transition: transform .6s var(--ease-out); }
.scan__frame[data-state="results"] .sheet, .scan__frame[data-state="miss"] .sheet { transform: none; }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; font-size: .8125rem; color: var(--muted); }
.sheet__head b { color: var(--ink); font-weight: 650; font-size: .875rem; }
.match { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.match img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.match__name { display: grid; min-width: 0; line-height: 1.3; }
.match__name b { font-weight: 600; font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match__name small { color: var(--muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__score { text-align: right; line-height: 1.3; font-variant-numeric: tabular-nums; }
.match__score b { display: block; font-weight: 650; }
.match__score small { color: var(--muted); font-size: .8125rem; }
.sheet__miss { padding: 10px 0 12px; border-top: 1px solid var(--line); font-size: .9375rem; }
.scan__controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 52px; height: 52px; padding: 3px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .2s, transform .2s var(--ease-out); }
.swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { border: 2px solid var(--ink); padding: 2px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--stone-3); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 600 .75rem/1 var(--font); letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.shutter { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 .9375rem/1 var(--font); color: var(--ink); cursor: pointer; }
.shutter i { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; }
.shutter i::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease-out); }
.shutter:active i::after { transform: scale(.8); }
.scan__note { font-size: var(--t-cap); color: var(--muted); }
@media (max-width: 560px) {
  .scan__frame { aspect-ratio: 4 / 5; border-radius: 22px; }
  .sheet { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px 8px; }
  .scan__controls { justify-content: flex-start; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 0 6px; }
  .swatch { width: 56px; height: 56px; }
  .shutter { margin-left: auto; }
}

/* ---- the hunt: three questions, ruled like a schedule */
.ledger { border-top: 1px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 24px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger__head { padding: 14px 0; font-size: var(--t-cap); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ledger__row h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 650; letter-spacing: -.025em; }
.ledger__now { color: var(--muted); }
.ledger__with { font-weight: 500; }
@media (max-width: 760px) {
  .ledger__head { display: none; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .ledger__now::before { content: "Now: "; font-weight: 600; color: var(--ink); }
  .ledger__with::before { content: "With Swatchera: "; font-weight: 650; }
}

/* ---- schedule: the product's own document */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split__copy { display: grid; gap: 24px; position: sticky; top: 112px; }
.split--even .split__copy { position: static; }
@media (max-width: 960px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } .split__copy { position: static; } }
.points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.points b { font-weight: 600; }
.points span { color: var(--muted); font-size: .9375rem; }

.doc { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 32px); }
.doc__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: flex-end; padding-bottom: 18px; }
.doc__title { display: grid; gap: 4px; }
.doc__title b { font-size: 1.125rem; font-weight: 650; letter-spacing: -.015em; }
.doc__title span { color: var(--muted); font-size: .875rem; }
.sched { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.sched th { text-align: left; font: 600 .75rem/1.2 var(--font); letter-spacing: .03em; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.sched td { white-space: nowrap; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sched .r { text-align: right; padding-right: 0; }
.sched th.r { padding-right: 0; }
.sched__mat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sched__mat img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; }
.sched__mat b { font-weight: 600; display: block; line-height: 1.25; white-space: normal; }
.sched__mat small { color: var(--muted); font-size: .8125rem; }
.sched tfoot td { border-bottom: 0; padding-top: 16px; font-weight: 650; }
.doc__foot { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--line); }
.doc__foot > span:first-child { font-size: .875rem; font-weight: 600; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stone-3); font-size: .8125rem; font-weight: 500; }
.chip--on { background: var(--ink); color: var(--stone); }
@media (max-width: 720px) {
  .sched thead { display: none; }
  .sched, .sched tbody, .sched tr, .sched td { display: block; width: 100%; }
  .sched tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .sched td { border: 0; padding: 0; }
  .sched td[data-l="Tag"] { grid-row: 1; }
  .sched td[data-l="Material"] { grid-column: 2 / 4; grid-row: 1; }
  .sched td[data-l="Location"], .sched td[data-l="Supplier"], .sched td[data-l="m²"] { display: none; }
  .sched td[data-l="Price"] { grid-column: 1 / 3; text-align: left; color: var(--muted); font-size: .875rem; }
  .sched td[data-l="Status"] { grid-column: 3; text-align: right; }
  .sched tfoot tr { grid-template-columns: minmax(0, 1fr) auto; }
  .sched tfoot td { padding: 0; }
}

/* ---- material board: justified rows, every plate shown whole at its own ratio */
.board { display: grid; gap: 10px; }
.board__row { display: flex; gap: 10px; }
.board figure { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--fill); min-width: 0; }
.board img { width: 100%; height: 100%; object-fit: cover; }
.board figcaption { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; max-width: calc(100% - 20px); }
.board figcaption .pill { height: 30px; font-size: .78rem; padding: 0 11px; overflow: hidden; }
.r-statuarietto { flex: 1.317; aspect-ratio: 1280 / 972; }
.r-calacatta { flex: 1.233; aspect-ratio: 740 / 600; }
.r-herringbone { flex: 1.5; aspect-ratio: 3 / 2; }
.r-square { flex: 1; aspect-ratio: 1 / 1; }
.board .cap { margin-top: 4px; }

/* ---- project tools: a ruled spec strip, not cards */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.strip > div { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.strip > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.strip h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.strip h3 small { font: 500 .75rem/1 var(--font); color: var(--muted); letter-spacing: 0; }
.strip p { color: var(--muted); font-size: .9375rem; }
.readout { margin-top: 8px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: .875rem; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.readout__row { display: flex; justify-content: space-between; gap: 12px; }
.readout__row span { color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 38.7%; background: var(--ink); border-radius: 999px; }
.mini-seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--stone-3); border-radius: 999px; width: max-content; }
.mini-seg span { padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .8125rem; color: var(--muted); }
.mini-seg .on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 1040px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip > div, .strip > div + div { padding: 24px 0 20px; border-left: 0; }
  .strip > div + div { border-top: 1px solid var(--line); }
}

/* ---- statement */
.statement { font-size: var(--t-h1); max-width: 14ch; letter-spacing: -.04em; line-height: 1; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 72px); }
.values > div { padding: 28px 32px 0 0; display: grid; gap: 10px; align-content: start; }
.values > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.values p { color: var(--muted); }
@media (max-width: 860px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .values > div, .values > div + div { padding: 24px 0; border-left: 0; }
  .values > div + div { border-top: 1px solid var(--line); }
}
.opinion { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--card); border-radius: var(--r-l); padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow); }
.opinion__copy { display: grid; gap: 14px; justify-items: start; }
.opinion__copy p { color: var(--muted); }
.verdicts { display: grid; gap: 8px; }
.verdict { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--stone); }
.verdict img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.verdict b { display: block; font-weight: 600; }
.verdict span { color: var(--muted); font-size: .875rem; }
@media (max-width: 860px) { .opinion { grid-template-columns: minmax(0, 1fr); } }

/* ---- inverse band: suppliers */
.inv { background: var(--inv); color: var(--inv-ink); }
.inv .lead, .inv .muted, .inv p.muted { color: var(--inv-muted); }
.inv .points { border-top-color: var(--inv-line); }
.inv .points li { border-bottom-color: var(--inv-line); }
.inv .points span { color: var(--inv-muted); }
.supply { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.supply__photo { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1 / 1; }
.supply__photo img { width: 100%; height: 100%; object-fit: cover; }
.supply__photo .pill { position: absolute; left: 16px; bottom: 16px; }
.steps { counter-reset: s; border-top: 1px solid var(--inv-line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--inv-line); }
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--inv-muted); }
.steps b { font-weight: 600; }
.steps span { color: var(--inv-muted); font-size: .9375rem; }
.steps--light { border-top-color: var(--line); }
.steps--light li { border-bottom-color: var(--line); }
.steps--light li::before, .steps--light span { color: var(--muted); }
@media (max-width: 960px) { .supply { grid-template-columns: minmax(0, 1fr); } .supply__photo { aspect-ratio: 4 / 3; } }

/* ---- plans */
.plans-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-sum { background: var(--card); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 18px; align-content: start; }
.plan-sum h3 { font-size: 1.5rem; }
.plan-sum .points { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .plans-teaser { grid-template-columns: minmax(0, 1fr); } }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--stone-3); border: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; font: 600 .9375rem/1 var(--font); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.cur { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.cur button { min-height: 44px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: 600 .8125rem/1 var(--font); letter-spacing: .04em; color: var(--muted); cursor: pointer; }
.cur button[aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--card); border-radius: var(--r-l); padding: clamp(24px, 2.6vw, 32px); box-shadow: var(--shadow); display: grid; gap: 20px; align-content: start; }
.plan--key { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow); }
.plan__name { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.plan__name h3 { font-size: 1.375rem; }
.plan__for { color: var(--muted); font-size: .9375rem; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price b { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: .9375rem; }
.plan ul { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: .9375rem; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
.plan li.soon-item svg { color: var(--faint); }
.offer { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 20px 24px; border-radius: var(--r-m); background: var(--fill-2); }
.fine { font-size: var(--t-small); color: var(--muted); margin-top: 18px; }
@media (max-width: 960px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- FAQ and roadmap */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 64px; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 32px; }
.roadmap li { padding: 18px 20px 0 0; display: grid; gap: 6px; align-content: start; position: relative; }
.roadmap li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.roadmap li.is-done::before { background: var(--ink); }
.roadmap li.is-now::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.roadmap b { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.roadmap b em { font-style: normal; font: 600 .7rem/1 var(--font); padding: 4px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); letter-spacing: .04em; }
.roadmap span { color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) { .roadmap { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line); margin-left: 4px; }
  .roadmap li { padding: 0 0 20px 20px; } .roadmap li::before { top: 7px; left: -4px; } }

/* ---- forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; background: var(--card); border-radius: var(--r-l); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid #d6ccba; background: var(--stone); color: var(--ink);
  font: 400 1rem/1.4 var(--font); transition: border-color .2s, background-color .2s, box-shadow .2s; caret-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232b2622' stroke-width='1.6'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b8ab95; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 3px rgba(43,38,34,.12); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__error { font-size: .875rem; color: var(--danger); font-weight: 500; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.radios legend { margin-bottom: 8px; padding: 0; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid #d6ccba; background: var(--stone); font-weight: 600; }
.radio input:checked + span { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .9375rem; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.form__foot p { font-size: .875rem; color: var(--muted); max-width: 44ch; }
.form__status { grid-column: 1 / -1; font-weight: 500; }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.form__status.is-error { background: #f4e2dd; color: var(--danger); }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---- page heads for inner pages */
.page-head { padding-block: clamp(48px, 6vw, 104px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: var(--t-h1); letter-spacing: -.04em; max-width: 16ch; }
.page-head .lead { margin-top: 24px; max-width: 46ch; }
.page-head .btn-row { margin-top: 32px; }
.prose { max-width: 680px; display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 24px; }
.prose a { font-weight: 500; }

/* ---- supplier portal mock */
.portal { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; }
.portal__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.portal__stats div { padding: 14px; border-radius: 14px; background: var(--stone); display: grid; gap: 2px; }
.portal__stats b { font-size: 1.625rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.portal__stats span { font-size: .8125rem; color: var(--muted); }
.enq { display: grid; border-top: 1px solid var(--ink); }
.enq li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.enq b { font-weight: 600; }
.enq small { color: var(--muted); font-size: .8125rem; grid-column: 1; }
.enq .status { grid-row: 1 / 3; grid-column: 2; }

.photo-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-rule { border-radius: var(--r-m); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.photo-rule img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-rule p { padding: 12px 14px 14px; font-size: .875rem; display: flex; gap: 8px; align-items: center; }

/* ---- footer and close */
.close { padding-block: clamp(88px, 8vw, 152px) clamp(56px, 5vw, 88px); }
.close h2 { font-size: var(--t-h1); letter-spacing: -.04em; max-width: 12ch; }
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.close__grid .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .close__grid { grid-template-columns: minmax(0, 1fr); } .close__grid .btn-row { justify-content: flex-start; } }
.foot { border-top: 1px solid var(--inv-line); padding-block: 48px; display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot h3 { font-size: .8125rem; font-weight: 600; color: var(--inv-muted); letter-spacing: .02em; margin-bottom: 12px; }
.foot ul { display: grid; gap: 2px; }
.foot a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot a:hover { text-decoration: underline; }
.foot .copy-btn { text-decoration-color: var(--inv-line); padding: 8px 0; margin: 0; }
.foot__brand { display: grid; gap: 12px; align-content: start; }
.foot__brand p { color: var(--inv-muted); }
.foot .social { display: flex; gap: 8px; margin-top: 4px; }
.foot .social a { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--inv-line); border-radius: 999px; color: var(--inv-muted); transition: color .2s, border-color .2s; }
.foot .social a:hover { text-decoration: none; color: var(--inv-ink); border-color: var(--inv-ink); }
.social svg { width: 20px; height: 20px; }
.legal { border-top: 1px solid var(--inv-line); padding-block: 24px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; color: var(--inv-muted); }
.legal a { color: var(--inv-muted); }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }

/* ---- motion off: show the end state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* schedule section: the document leads, the facts sit under it */
.head--row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: 24px 48px; }
@media (max-width: 860px) { .head--row { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { padding: 18px 24px 0 0; display: grid; gap: 4px; align-content: start; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font-weight: 600; } .facts span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li:nth-child(3) { padding-left: 0; border-left: 0; } .facts li:nth-child(n+3) { padding-bottom: 0; margin-top: 18px; } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); margin: 0; } }
.board .b4 img { object-position: 50% 100%; }

.plan-sum .text-link, .offer .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { min-height: 44px; }

.page-head + .section--tight { padding-top: 0; }

/* ---- tools: a working compare sheet leads, the rest is a ruled list */
.tools { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; min-width: 460px; }
.cmp thead th { text-align: left; vertical-align: bottom; padding: 0 12px 12px 0; font-weight: 600; font-size: .875rem; line-height: 1.3; border-bottom: 1px solid var(--ink); }
.cmp thead img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin-bottom: 10px; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.cmp td.diff { font-weight: 650; }
.cmp td.diff::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-left: 8px; vertical-align: middle; }
.tools__budget { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tools__budget .readout__row b { font-weight: 650; }
.tools__list small { font-weight: 500; font-size: .78rem; margin-left: 6px; }

/* second opinion: outcomes as ruled rows in one panel */
.verdicts { gap: 0; border-top: 1px solid var(--line); }
.verdict { background: none; border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.opinion__copy h3 .soon { margin-left: 8px; vertical-align: middle; }

/* supplier photos sit smaller so the stand-in sources read sharp */
.supply__photo { max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 960px) { .supply__photo { justify-self: start; } }

/* supplier "what you get": the follow-up sheet leads */
.get { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .get { grid-template-columns: minmax(0, 1fr); } }
.note { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--stone); font-size: .875rem; color: var(--ink-2); }
.draft { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font: 600 .72rem/1 var(--font); letter-spacing: .03em; margin-left: 6px; vertical-align: middle; }

/* ---- the ring: eight slabs on a CSS 3D carousel, opening into the scan */
.scan__frame { touch-action: pan-y; cursor: grab; }
.scan__frame:active { cursor: grabbing; }
.ring-stage { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; perspective: 1200px; perspective-origin: 50% 40%;
  background: var(--stone-3); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), transform .32s var(--ease-out), visibility 0s linear .32s; }
.ring { position: relative; width: 25cqw; aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: translateZ(calc(var(--rz, 300px) * -1)) rotateX(-7deg) rotateY(var(--ry, 0deg)); }
.slab { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--rz, 300px));
  box-shadow: 0 18px 30px rgba(70,56,38,.22), 0 2px 4px rgba(70,56,38,.18); background: var(--fill); }
.slab img { width: 100%; height: 100%; object-fit: cover; }
.slab::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: #d9cfbe; transform-origin: bottom; transform: rotateX(-90deg); }
.ring-hint { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; }
.scan__frame[data-ring="on"] .ring-stage { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), transform .32s var(--ease-out), visibility 0s; }
.scan__frame[data-ring="out"] .ring-stage { opacity: 0; transform: scale(1.35); visibility: visible; }
.scan__frame[data-ring="on"] .scan__photo, .scan__frame[data-ring="out"] .scan__photo { opacity: 0; transition: none; }
.scan__frame[data-ring="on"] .scan__hint, .scan__frame[data-ring="out"] .scan__hint, .scan__frame[data-ring="on"] .vf, .scan__frame[data-ring="out"] .vf { opacity: 0; }
.vf { transition: inset .7s var(--ease-out), opacity .3s var(--ease-out); }
@media (max-width: 560px) { .ring { width: 30cqw; } }

/* ---- camera controls: modes above, a big shutter in the middle, two materials either side */
.scan__controls { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 14px; }
.camera { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: 100%; max-width: 440px; }
.camera .swatches { display: contents; }
.camera .swatch:nth-child(1), .camera .swatch:nth-child(2) { grid-row: 1; }
.camera .swatch:nth-child(1) { grid-column: 1; justify-self: end; margin-right: 62px; }
.camera .swatch:nth-child(2) { grid-column: 1; justify-self: end; }
.camera .swatch:nth-child(3) { grid-column: 3; grid-row: 1; justify-self: start; }
.camera .swatch:nth-child(4) { grid-column: 3; grid-row: 1; justify-self: start; margin-left: 62px; }
.camera .shutter { grid-column: 2; grid-row: 1; }
.shutter { width: 76px; height: 76px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.shutter i { width: 76px; height: 76px; border: 4px solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.shutter i::after { width: 56px; height: 56px; transition: transform .18s var(--ease-out), background-color .2s; }
.shutter:hover i::after { background: #443c36; }
.shutter:active i::after, .shutter.is-press i::after { transform: scale(.82); }
.shutter:focus-visible { outline-offset: 4px; border-radius: 50%; }
@media (max-width: 560px) {
  .scan__controls { justify-items: stretch; }
  .shutter { margin-left: 0; }
  .camera { gap: 10px; max-width: none; }
  .camera .swatch:nth-child(1) { margin-right: 64px; }
  .camera .swatch:nth-child(4) { margin-left: 64px; }
}
.scan__note { text-align: center; }

/* ---- scroll motion: from a visible resting state, once, exponential ease-out */
.motion [data-reveal] { transform: translateY(22px); opacity: 1; transition: transform 1s var(--ease-out), opacity .9s var(--ease-out); }
.motion [data-reveal].is-in { transform: none; opacity: 1; }
.motion .board.is-in figure, .motion .board figure { transition: transform .9s var(--ease-out), opacity .8s var(--ease-out); transition-delay: calc(var(--n, 0) * 90ms); }
.motion .board:not(.is-in) figure { transform: translateY(16px) scale(.97); }
.motion .sched tbody tr { transition: transform .7s var(--ease-out), opacity .7s var(--ease-out); transition-delay: calc(200ms + var(--n, 0) * 110ms); }
.motion [data-schedule-doc]:not(.is-in) .sched tbody tr { transform: translateX(-14px); }
.motion .sched .status { transition: transform .5s var(--ease-out); transition-delay: calc(600ms + var(--n, 0) * 110ms); }
.motion [data-schedule-doc]:not(.is-in) .sched .status { transform: scale(.85); }
.motion .bar i { transition: width 1.4s var(--ease-out) .3s; }
.motion .steps li, .motion .values > div { transition: transform .8s var(--ease-out), opacity .8s var(--ease-out); transition-delay: calc(var(--n, 0) * 90ms); }
.motion .steps:not(.is-in) li, .motion .values:not(.is-in) > div { transform: translateY(14px); }

/* ---- schedule builder */
.tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 18px; }
.tray__item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--stone); font: 500 .875rem/1 var(--font); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease-out); }
.tray__item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tray__item::after { content: ""; width: 12px; height: 12px; margin-left: 2px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E") center / contain no-repeat; }
.tray__item[aria-pressed="true"] { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.tray__item[aria-pressed="true"]::after { background: var(--stone);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.3 2.3 4.7-5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.tray__item:hover { transform: translateY(-1px); border-color: #b8ab95; }
.sched tr.is-new td { animation: rowIn .7s var(--ease-out) both; }
@keyframes rowIn { from { background: var(--fill-2); transform: translateX(-10px); } to { background: transparent; transform: none; } }
.sched__empty { color: var(--muted); padding: 24px 0 !important; text-align: center; }
button.chip { border: 0; cursor: pointer; font-family: var(--font); height: auto; min-height: 44px; padding: 0 14px; color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; margin-left: auto; }
.pdf-toast { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 500; font-size: .9375rem; }
@media (max-width: 720px) { .btn--sm { margin-left: 0; } }

/* ---- compare swaps when the hero scans */
.cmp.is-swap tbody td, .cmp.is-swap thead th { animation: cmpIn .5s var(--ease-out) both; }
@keyframes cmpIn { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- client link widget */
.cl { gap: 10px !important; }
.cl__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.mini-seg button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: 600 .8125rem/1 var(--font); color: var(--muted); cursor: pointer; }
.mini-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; font: 600 .875rem/1 var(--font); color: var(--ink); cursor: pointer; padding: 0; }
.switch i { width: 40px; height: 24px; border-radius: 999px; background: #cfc4b1; position: relative; transition: background-color .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s var(--ease-out); }
.switch[aria-checked="true"] i { background: var(--ink); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); }
.cl__link { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.cl__link code { font: 500 .875rem/1.3 var(--font); color: var(--ink-2); }
.cl__out { color: var(--muted); font-size: .8125rem; }

/* ---- supplier statuses you can tap */
.status--btn { border: 0; cursor: pointer; font-family: var(--font); height: auto; min-height: 44px; padding: 0 14px; }
.status--btn:hover { filter: brightness(.96); }

/* ---- one flow: a step rail and the screen for the step */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.flow__rail { border-top: 1px solid var(--ink); }
.flow__rail li { border-bottom: 1px solid var(--line); }
.flow__rail button { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; width: 100%; text-align: left; padding: 14px 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.flow__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 650 .8125rem/1 var(--font); font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: var(--card); color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.flow__txt { display: grid; gap: 2px; }
.flow__txt b { font-weight: 600; }
.flow__txt small { color: var(--muted); font-size: .875rem; line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease-out), opacity .4s var(--ease-out); }
.flow__rail button[aria-selected="true"] .flow__txt small { max-height: 4em; opacity: 1; }
.flow__rail button[aria-selected="true"] .flow__n, .flow__rail button.is-done .flow__n { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.flow__rail button:hover .flow__txt b { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: .2em; }
.flow__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ink); }
.flow.is-playing .flow__rail button[aria-selected="true"] .flow__bar { animation: flowBar var(--flow-ms, 3600ms) linear both; }
@keyframes flowBar { to { width: 100%; } }
.flow__stage { display: grid; gap: 14px; min-height: 100%; }
.fscreen { animation: fsIn .55s var(--ease-out) both; display: grid; gap: 12px; align-content: start; min-height: 360px; }
@keyframes fsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fs-cap { font-size: .8125rem; color: var(--muted); }
.fs-photo { position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 10; container-type: size; }
.fs-photo img { width: 100%; height: 100%; object-fit: cover; }
.vf--lock { inset: 18% 26% 18% 26%; animation: vfLock .9s var(--ease-out) both; }
@keyframes vfLock { from { inset: 6% 8% 6% 8%; } }
.fs-pill { position: absolute; left: 50%; top: 14px; translate: -50% 0; z-index: 3; animation: fsIn .5s var(--ease-out) .6s both; }
.fs-head { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); }
.fs-head b { color: var(--ink); font-size: .9375rem; }
.fs-rows .match { animation: fsIn .5s var(--ease-out) both; }
.fs-rows .match:nth-child(2) { animation-delay: .1s; } .fs-rows .match:nth-child(3) { animation-delay: .2s; }
.match.is-pick { background: var(--stone); border-radius: 12px; padding-inline: 8px; margin-inline: -8px; border-top-color: transparent; }
.fs-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-field { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink); background: var(--card); font-weight: 500; flex: 1 1 160px; }
.fs-field i { width: 1px; height: 18px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.fs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fs-grid figure { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; animation: fsIn .45s var(--ease-out) both; }
.fs-grid figure:nth-child(n+2) { animation-delay: .08s; } .fs-grid figure:nth-child(n+4) { animation-delay: .16s; }
.fs-grid img { width: 100%; height: 100%; object-fit: cover; }
.fs-grid .is-pick { box-shadow: 0 0 0 2px var(--ink); }
.fs-save { position: absolute; left: 8px; bottom: 8px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--card); font: 600 .75rem/26px var(--font); animation: fsIn .4s var(--ease-out) .5s both; }
.fs-card { border-radius: var(--r-m); background: var(--stone); padding: 16px; display: grid; gap: 14px; }
.fs-mat { display: flex; gap: 12px; align-items: center; }
.fs-mat img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.fs-mat b { display: block; font-weight: 600; }
.fs-mat small { color: var(--muted); font-size: .875rem; }
.fs-dl { display: grid; margin: 0; border-top: 1px solid var(--line); }
.fs-dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); animation: fsIn .45s var(--ease-out) both; }
.fs-dl div:nth-child(2) { animation-delay: .08s; } .fs-dl div:nth-child(3) { animation-delay: .16s; } .fs-dl div:nth-child(4) { animation-delay: .24s; } .fs-dl div:nth-child(5) { animation-delay: .32s; }
.fs-dl dt { color: var(--muted); font-size: .875rem; } .fs-dl dd { margin: 0; font-weight: 600; }
.fs-board { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 16 / 10; }
.fs-board figure { position: relative; border-radius: 14px; overflow: hidden; animation: fsIn .5s var(--ease-out) both; }
.fs-board figure:first-child { grid-row: span 2; }
.fs-board figure:nth-child(2) { animation-delay: .12s; } .fs-board figure:nth-child(3) { animation-delay: .24s; }
.fs-board img { width: 100%; height: 100%; object-fit: cover; }
.fs-board .tag { position: absolute; left: 8px; bottom: 8px; }
.fs-track { display: grid; border-top: 1px solid var(--line); }
.fs-track li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; animation: fsIn .45s var(--ease-out) both; }
.fs-track li:nth-child(2) { animation-delay: .15s; } .fs-track li:nth-child(3) { animation-delay: .3s; } .fs-track li:nth-child(4) { animation-delay: .45s; }
.fs-track li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--faint); background: var(--stone); }
.fs-track li.is-done::before { background: var(--ink); border-color: var(--ink); }
.fs-track li.is-now::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.fs-track b { font-weight: 600; } .fs-track small { color: var(--muted); font-size: .8125rem; }
.fs-track li:not(.is-done):not(.is-now) b { color: var(--muted); font-weight: 500; }
.fs-pdf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px; border-radius: var(--r-m); background: var(--stone-3); }
.fs-page { aspect-ratio: 210 / 297; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); padding: 12px 10px; display: grid; gap: 6px; align-content: start; font-size: .75rem; animation: pageIn .6s var(--ease-out) both; }
.fs-page:nth-child(2) { animation-delay: .12s; } .fs-page:nth-child(3) { animation-delay: .24s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.fs-page b { font-weight: 650; font-size: .8125rem; } .fs-page small { color: var(--muted); }
.fs-page i { display: block; height: 6px; border-radius: 3px; background: var(--fill-2); }
.fs-page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.fs-page--cover { background: var(--ink); color: var(--stone); align-content: end; }
.fs-page--cover small { color: var(--inv-muted); }
.fs-done { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .875rem; color: var(--muted); animation: fsIn .4s var(--ease-out) .5s both; }
.flow__nav { display: flex; gap: 10px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.flow__nav .btn--sm { margin-left: 0; }
@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__rail { display: flex; gap: 6px; overflow-x: auto; border: 0; padding-bottom: 6px; scrollbar-width: none; }
  .flow__rail li { border: 0; flex: none; }
  .flow__rail button { grid-template-columns: auto auto; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); min-height: 44px; }
  .flow__rail button[aria-selected="true"] { border-color: var(--ink); }
  .flow__txt small { display: none; }
  .flow__bar { display: none; }
  .fscreen { min-height: 0; }
}

/* review fixes: whole sentences in the headline, 44px targets, a compact library step */
.nb { display: inline-block; white-space: nowrap; }
.nav a { min-width: 44px; justify-content: center; }
.copy-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; margin: 0; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; }
.fs-grid figure { aspect-ratio: 4 / 3; }

/* ---- one flow, scroll-driven: the block pins and a bar fills as you scroll */
.flow-scroll { position: relative; }
.flow.is-pinned { position: sticky; }
.flow__rail { position: relative; }
.flow__rail::before, .flow__rail::after { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }
.flow__rail::before { background: var(--line); }
.flow__rail::after { background: var(--ink); transform-origin: top; transform: scaleY(var(--flow-p, 0)); transition: transform .12s linear; }
.flow__rail li { position: relative; z-index: 1; }
.flow__bar { display: none; }
.flow__hint { font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.flow__nav button:disabled { opacity: .45; cursor: default; }
@media (max-width: 960px) {
  .flow__rail::before, .flow__rail::after { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
  .flow__rail::after { transform-origin: left; transform: scaleX(var(--flow-p, 0)); }
  .flow__rail { padding-bottom: 10px; }
}

/* the pinned flow has to fit short laptop screens */
@media (min-width: 961px) and (max-height: 860px) {
  .flow__rail button { padding: 9px 0; }
  .fscreen { min-height: 300px; gap: 10px; }
  .fs-photo, .fs-board { aspect-ratio: 2 / 1; }
  .fs-grid figure { aspect-ratio: 16 / 9; }
  .fs-pdf { padding: 10px; gap: 10px; }
  .fs-page { aspect-ratio: 210 / 230; }
  .fs-dl div, .fs-track li { padding: 7px 0; }
  .flow__stage { gap: 10px; }
  .flow__stage .doc__top { padding-bottom: 8px; }
  .flow__nav { padding-top: 10px; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .fscreen { min-height: 250px; }
  .fs-photo, .fs-board { aspect-ratio: 5 / 2; }
  .fs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fs-grid figure { aspect-ratio: 1; }
  .fs-search .chip { display: none; }
}

/* ---- privacy policy and terms: a contents rail beside one readable column */
.page-head + .policy-section { padding-top: 0; }
.policy__meta { margin-top: 20px; max-width: 60ch; display: grid; gap: 8px; color: var(--ink-2); }
.policy__meta p:last-child { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.policy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.policy__toc { font-size: var(--t-small); border-top: 1px solid var(--line); padding-top: 16px; }
.policy__toc summary { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.policy__toc summary::-webkit-details-marker { display: none; }
.policy__toc summary span { margin-left: auto; font-weight: 400; color: var(--muted); }
.policy__toc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease-out); }
.policy__toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.policy__toc details[open] ol { margin-top: 4px; }
.policy__toc ol { list-style: none; margin: 0 0 16px; padding: 0; columns: 2 200px; column-gap: 24px; }
.policy__toc li a, .policy__toc > .text-link { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.policy__toc li a:hover { color: var(--ink); }
.policy__body { max-width: 72ch; gap: 14px; line-height: 1.6; }
.policy__body h2 { font-size: var(--t-h3); letter-spacing: -.02em; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy__body ul, .policy__body ol { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }
.policy__body a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; overflow-wrap: anywhere; }
.policy__body a:hover { text-decoration-color: currentColor; }
.policy__end { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); }
.policy__table { margin-block: 8px; border-top: 1px solid var(--ink); }
.policy__table table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.policy__table th, .policy__table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.policy__table thead th { font-weight: 600; color: var(--muted); font-size: var(--t-cap); text-transform: uppercase; letter-spacing: .06em; padding-block: 10px; }
.policy__table tbody th { font-weight: 600; color: var(--ink); }
.policy__table td { color: var(--ink-2); }
@media (max-width: 719px) {
  /* each row becomes a small labelled block, so nothing scrolls sideways */
  .policy__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .policy__table tr { display: grid; gap: 6px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .policy__table th, .policy__table td { display: block; padding: 0; border: 0; }
  .policy__table td::before { content: attr(data-label); display: block; font-size: var(--t-cap); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
@media (min-width: 1024px) {
  .policy { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .policy__toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .policy__toc ol { columns: auto; }
  .policy__toc summary { pointer-events: none; }
  .policy__toc summary span, .policy__toc summary::after { display: none; }
  .policy__toc li a { min-height: 32px; }
}

/* ---- motion (9 Nov). The page's own motion stays as it was; added here: inner-page heroes enter once, the FAQ answer
   settles, plans answer the pointer, and the two AI moments below. No row or card fades in on scroll. */
.motion .page-head h1 .nb { display: inline-block; animation: wordIn .8s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 110ms); }
.motion .page-head .lead, .motion .page-head .btn-row, .motion .page-head .fine { animation: fsIn .7s var(--ease-out) .35s both; }
@keyframes wordIn { from { transform: translateY(.45em); opacity: 0; } to { transform: none; opacity: 1; } }
.motion .faq details[open] > :not(summary) { animation: fsIn .4s var(--ease-out) both; }
.plan, .plan-sum { transition: translate .3s var(--ease-out), box-shadow .3s var(--ease-out); }
@media (hover: hover) {
  .plan:hover, .plan-sum:hover { translate: 0 -2px; box-shadow: 0 2px 4px rgba(70,56,38,.08), 0 10px 24px rgba(70,56,38,.08); }
  .plan--key:hover { box-shadow: inset 0 0 0 2px var(--ink), 0 2px 4px rgba(70,56,38,.08), 0 10px 24px rgba(70,56,38,.08); }
}

/* AI card: the full Legal wording, one tap away */
.more { width: 100%; border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.more summary:hover { text-decoration-color: currentColor; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-out); }
.more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.more p { font-size: .9375rem; margin-top: 8px; color: var(--muted); }
.motion .more[open] p { animation: fsIn .4s var(--ease-out) both; }

/* ---- AI: the app sparkle (swatchera-app shared/icons/ai-sparkle.svg), in the ink of the text it sits in */
.spark { display: inline-block; width: .9em; height: .9em; vertical-align: -.06em; flex: none; overflow: visible; }
.spark path { transform-box: fill-box; transform-origin: center; }
h3 .spark, .points .spark { width: 1em; height: 1em; vertical-align: -.14em; }
.motion .opinion.is-in h3 .spark path, .motion .is-twinkling .spark path { animation: twinkle .8s var(--ease-out) .3s both; }
.motion .opinion.is-in h3 .spark .spark__s, .motion .is-twinkling .spark .spark__s { animation-delay: .48s; }
@media (hover: hover) {
  .motion h3:hover > .spark path, .motion .h2:hover > .spark path { animation: twinkle .6s var(--ease-out) both; }
  .motion h3:hover > .spark .spark__s, .motion .h2:hover > .spark .spark__s { animation-delay: .1s; }
}
@keyframes twinkle { 0% { transform: scale(.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.15) rotate(6deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.ai-mark { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--stone-3); color: var(--ink-2); font: 600 .6875rem/1 var(--font); white-space: nowrap; vertical-align: middle; }
.ai-mark .spark { width: .95em; height: .95em; vertical-align: 0; }
.ai-mark .m-ed { display: none; }
.ai-mark.is-edited { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ai-mark.is-edited .spark, .ai-mark.is-edited .m-ai { display: none; }
.ai-mark.is-edited .m-ed { display: inline; }
.motion .ai-mark.is-edited { animation: markIn .45s var(--ease-out) both; }
@keyframes markIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Second opinion (home): your scan, our top five in our order, a None slot, one ink ring that reads and settles */
.op { display: grid; gap: 18px; align-content: start; }
.op__scan { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.op__scan img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.op__scan b { display: block; font-weight: 600; }
.op__scan span { color: var(--muted); font-size: .875rem; }
.op__strip { position: relative; border-top: 1px solid var(--ink); padding-top: 16px; }
.op__five { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.op__five li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fill); }
.op__five img { display: block; width: 100%; height: 100%; object-fit: cover; }
.op__n { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--card); color: var(--ink);
  font: 600 .75rem/22px var(--font); font-variant-numeric: tabular-nums; text-align: center; box-shadow: 0 2px 10px rgba(43,38,34,.14);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }
.op.is-set .is-pick .op__n { background: var(--ink); color: var(--stone); }
.op__five .op__none { display: grid; place-items: center; background: none; border: 1px dashed #b0a28b; color: var(--ink-2); font: 600 .75rem/1 var(--font); transition: border-color .25s, color .25s; }
.op.is-set .op__none.is-pick { border-style: solid; border-color: var(--ink); color: var(--ink); }
.op__ring { position: absolute; left: -6px; top: -6px; padding: 4px; border: 2px solid var(--ink); border-radius: 17px; box-sizing: content-box; pointer-events: none; }
.op__ring .spark { position: absolute; right: -11px; top: -11px; width: 16px; height: 16px; padding: 4px; border-radius: 50%; background: var(--card); color: var(--ink); box-sizing: content-box;
  box-shadow: 0 2px 8px rgba(43,38,34,.18); transition: transform .3s var(--ease-out), opacity .2s; }
.op.is-reading .op__ring .spark { transform: scale(.4); opacity: 0; }
.motion .op.is-set .op__ring .spark path { animation: twinkle .7s var(--ease-out) both; }
.motion .op.is-set .op__ring .spark .spark__s { animation-delay: .12s; }
.op__verdicts { display: grid; border-top: 1px solid var(--line); }
.op .verdict { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.op .verdict i { justify-self: center; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #b0a28b; transition: background-color .2s, border-color .2s, transform .2s var(--ease-out); }
.op .verdict:hover i { border-color: var(--ink); }
.op .verdict:active i { transform: scale(.85); }
.op .verdict[aria-pressed="true"] i { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--card); }
.op .verdict b { display: block; font-weight: 600; }
.op .verdict small { color: var(--muted); font-size: .875rem; }
.op .verdict:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 480px) {
  .op__five { gap: 6px; }
  .op__n { left: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 4px; font-size: .6875rem; line-height: 18px; }
  .op__scan .cap { grid-column: 1 / -1; }
  .op__ring { left: -4px; top: -4px; padding: 2px; border-radius: 14px; }
}

/* ---- AI import (for-suppliers, beta day): a sample spreadsheet that AI tidies */
.aisheet { position: relative; display: grid; gap: 14px; align-content: start; }
.aisheet table { width: 100%; border-collapse: collapse; font-size: .875rem; border-top: 1px solid var(--ink); }
.aisheet th { text-align: left; font: 500 .75rem/1.2 var(--font); color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.aisheet td { padding: 8px; height: 56px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background-color .3s var(--ease-out); }
.aisheet th:first-child, .aisheet td:first-child { padding-left: 0; width: 50px; }
.aisheet .thumb { position: relative; display: block; width: 40px; height: 40px; }
.aisheet .thumb img { display: block; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; transition: filter .6s var(--ease-out), opacity .6s var(--ease-out); }
.aisheet td b { display: block; font-weight: 600; }
.aisheet [data-ai] { white-space: nowrap; }
.aisheet [data-ai] .v { margin-right: 6px; }
.aisheet .blank { display: none; color: var(--muted); }
.aisheet .held { margin-top: 4px; }
.aisheet tr[data-held] .thumb img { filter: grayscale(1); opacity: .45; }
.aisheet .vf2 { position: absolute; inset: -6px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
.aisheet .vf2 i { position: absolute; width: 10px; height: 10px; border: 2px solid var(--ink); }
.aisheet .vf2 i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.aisheet .vf2 i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 5px; }
.aisheet .vf2 i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 5px; }
.aisheet .vf2 i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }
.aisheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: .875rem; color: var(--muted); }
.aisheet__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.aisheet__foot .btn--sm { margin-left: 0; }
.aisheet__cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 20px; height: 24px; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
.aisheet__cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(43,38,34,.25)); transition: transform .12s var(--ease-out); transform-origin: 4px 3px; }
.aisheet__cursor.is-on { opacity: 1; }
.aisheet__cursor.is-click svg { transform: scale(.82); }
.aisheet__cursor::after { content: ""; position: absolute; left: -9px; top: -10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; transform: scale(.3); }
.aisheet__cursor.is-click::after { animation: clickRing .5s var(--ease-out) both; }
@keyframes clickRing { 30% { opacity: .6; } to { opacity: 0; transform: scale(1.2); } }
@media (max-width: 560px) { .aisheet table { font-size: .8125rem; } .aisheet td, .aisheet th { padding-inline: 5px; } .aisheet [data-ai] { white-space: normal; } }

/* the run (JS adds .is-ready; with no script or reduced motion the finished sheet is what shows) */
.aisheet.is-ready [data-ai]:not(.is-filled) .v, .aisheet.is-ready [data-ai]:not(.is-filled) .ai-mark { display: none; }
.aisheet.is-ready [data-ai]:not(.is-filled) .blank { display: inline-block; }
.aisheet.is-ready tr.is-reading td { background: var(--stone-3); }
.aisheet.is-ready tr.is-reading [data-ai]:not(.is-filled) .blank { width: 4.5em; height: .9em; border-radius: 6px; color: transparent; vertical-align: middle;
  background: linear-gradient(90deg, var(--line) 0%, var(--card) 50%, var(--line) 100%) 0 0 / 200% 100%; animation: shimmer .9s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.aisheet [data-ai].is-typing .ai-mark { visibility: hidden; }
.aisheet [data-ai].is-typing .v::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--ink); vertical-align: -.18em; animation: caret .9s steps(1) infinite; }
.motion .aisheet.is-ready [data-ai].is-filled:not(.is-typing) .ai-mark:not(.is-edited) { animation: markIn .45s var(--ease-out) both; }
.motion .aisheet.is-ready [data-ai].is-filled:not(.is-typing) .ai-mark:not(.is-edited) .spark path { animation: twinkle .6s var(--ease-out) .08s both; }
.aisheet.is-ready tr[data-held]:not(.is-held) .thumb img { filter: none; opacity: 1; }
.aisheet.is-ready tr[data-held]:not(.is-held) .held { display: none; }
.aisheet.is-ready tr.is-locking .vf2 { opacity: 1; animation: vfTry .85s var(--ease-out) both; }
@keyframes vfTry { 0% { inset: -14px; } 55% { inset: -4px; } 75% { inset: -7px; } 100% { inset: -5px; } }
.motion .aisheet.is-ready tr[data-held].is-held .held { animation: markIn .45s var(--ease-out) both; }
.aisheet.is-ready [data-sheet-sum] { transition: opacity .4s var(--ease-out); }
.aisheet.is-ready:not(.is-done) [data-sheet-sum] { opacity: .45; }
.aisheet [data-sheet-edit] { white-space: nowrap; }
.motion .aisheet [data-sheet-edit]:not([hidden]) { animation: fadeIn .4s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; } }
