@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --paper: #f6f4ef;
  --card: #ffffff;
  --ink: #15151b;
  --ink-2: #44444f;
  --ink-3: #62626d;
  --line: #e2ded5;
  --line-strong: #cfc9bd;

  --accent: #15151b;
  --accent-ink: #ffffff;
  --accent-soft: #ecebe6;
  --accent-tint: #f1efe9;
  --hero: #efece5;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .06);
  --shadow: 0 18px 40px -18px rgba(20, 20, 30, .28);
  --shadow-lg: 0 40px 80px -30px rgba(20, 20, 30, .35);

  --wide: 1200px;
  --text: 720px;
  --gutter: clamp(20px, 4vw, 48px);
}

body[data-study="learning"] {
  --accent: #4d6b2c;
  --accent-soft: #e4eecb;
  --accent-tint: #f6f3e2;
  --hero: #eef2dc;
}
body[data-study="dentacare"] {
  --accent: #0e4a73;
  --accent-soft: #dcebf7;
  --accent-tint: #eef5fb;
  --hero: #e7f0f8;
}
body[data-study="fashion"] {
  --accent: #4a41a8;
  --accent-soft: #e7e5fd;
  --accent-tint: #f4f3fe;
  --hero: #efedfb;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; letter-spacing: -.01em;
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: 19px; line-height: 1;
}
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; line-height: 1.2; }
.topbar nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topbar nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2);
}
.topbar nav a:hover { background: var(--accent-soft); color: var(--ink); }
.topbar nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .topbar nav .long { display: none; }
}

.progress {
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(32px, 5.5vw, 64px) var(--gutter) clamp(44px, 7vw, 80px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(260px, .88fr) minmax(300px, 1.12fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.hero__grid .hero__stage { margin: 0; max-width: none; }
.hero__grid .display {
  max-width: 13ch;
  font-size: clamp(34px, 4.6vw, 62px);
  margin: 12px 0 14px;
  line-height: 1.02;
}
.hero__grid .lede { max-width: 38ch; font-size: clamp(16px, 1.4vw, 19px); }
.hero__pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 18px 0 0; padding: 0;
}
.hero__pills li {
  padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { padding-bottom: clamp(28px, 6vw, 48px); }
  .hero__grid .display { max-width: 14ch; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 18px 0 22px;
  max-width: 14ch;
}
.display em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line-strong);
}
.meta div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line-strong); }
.meta dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.meta dd { margin: 4px 0 0; font-weight: 500; font-size: 15px; line-height: 1.45; }

.hero__stage {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 4px 8px 12px;
}
.hero__stage .browser {
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 28px 64px -22px rgba(20, 20, 30, .38);
}
.hero__float {
  position: absolute;
  width: clamp(150px, 20vw, 240px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
  background: #fff;
  overflow: hidden;
}
.hero__float--left { left: -3%; bottom: 12%; transform: rotate(-3deg); }
.hero__float--right { right: -3%; top: 16%; transform: rotate(3deg); }
@media (max-width: 900px) { .hero__float { display: none; } }

/* ── Browser frame ───────────────────────────────────── */
.browser {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 30, .08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: #f3f2ef;
  border-bottom: 1px solid #e6e3dc;
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9d5cc; display: block; }
.browser__dots i:nth-child(1) { background: #f26b5e; }
.browser__dots i:nth-child(2) { background: #f5bf4f; }
.browser__dots i:nth-child(3) { background: #5fc454; }
.browser__url {
  flex: 1; max-width: 420px; margin: 0 auto;
  padding: 4px 12px; border-radius: 7px;
  background: #fff; border: 1px solid #e6e3dc;
  font-size: 12px; color: var(--ink-3); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ── Page layout with sticky contents ────────────────── */
.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
}
@media (max-width: 1080px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
.toc {
  position: sticky; top: 96px; align-self: start;
  padding: 72px 0 40px;
}
.toc p { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px; color: var(--ink-3); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

main { min-width: 0; }

/* ── Sections ────────────────────────────────────────── */
.section {
  padding: clamp(64px, 9vw, 112px) 0 0;
  scroll-margin-top: 88px;
}
.section h2 { scroll-margin-top: 88px; }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 112px); }
.section__head { max-width: var(--text); margin-bottom: 32px; }
.section__num {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 10px 0 0;
}
.section h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 8px;
}
.prose { max-width: var(--text); color: var(--ink-2); }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.big {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 0 28px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.split--top { align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-2); }
.card p + p { margin-top: 10px; }
.card--tint { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 16%, var(--line)); }

.label {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* ── Stats ───────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 0;
}
.stat { background: var(--card); padding: 26px 24px; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ── Persona ─────────────────────────────────────────── */
.persona { display: grid; gap: 28px; }
.persona__sheet {
  margin: 0;
  padding: clamp(10px, 1.5vw, 16px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.persona__sheet img {
  width: 100%; height: auto; display: block;
  border: 0; border-radius: 14px; box-shadow: none;
  cursor: zoom-in; background: #f4f1ea;
}
.persona__sheet figcaption { margin: 12px 6px 2px; }
.persona__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
}
.persona__lead .chips { margin-bottom: 14px; }
.persona__lead p:last-child { margin: 0; color: var(--ink-2); max-width: 42ch; }
@media (max-width: 800px) { .persona__lead { grid-template-columns: minmax(0, 1fr); } }
.quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
.quote::before { content: "“"; color: var(--accent); }
.quote::after { content: "”"; color: var(--accent); }
.needs {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.needs:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .needs, .needs:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); }
}
.needs li {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  min-height: 88px;
  padding: 16px 16px;
  border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.4; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.needs li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
}
.needs li::before {
  content: attr(data-n);
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: var(--accent); color: #fff;
}

.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 0;
}
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } }
.voices > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-sm);
}
.voices__label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.voices__label svg { color: var(--accent); flex: none; }
.voices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.voices li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  font-size: 15px; line-height: 1.4; color: var(--ink);
  transition: transform .22s ease, background .22s ease;
}
.voices li:hover { transform: translateY(-2px); background: #fff; border-color: var(--line); }
.voices li::before {
  content: "";
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a4a3a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.voices > div:last-child li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* ── Chips ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li, .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}

/* ── Theory map (filterable decisions) ───────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filter {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.decisions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.decision {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: opacity .25s, transform .25s ease, border-color .25s, box-shadow .25s ease;
}
.decision:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.decision.is-dim:hover { transform: scale(.985); box-shadow: none; }
.decision h3 { font-size: 17px; margin-bottom: 6px; }
.decision p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.decision .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.decision .tags span {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.decision.is-dim { opacity: .28; transform: scale(.985); }
.decision.is-hit { border-color: var(--accent); box-shadow: var(--shadow); }
.filter-status { font-size: 14px; color: var(--ink-3); margin: -8px 0 18px; min-height: 1.4em; }

/* ── Tabs with screens ───────────────────────────────── */
.tabs { margin-top: 8px; }
.tablist {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px; margin-bottom: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  width: fit-content; max-width: 100%;
  scroll-margin-top: 88px;
}
.tab {
  padding: 9px 16px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.tab:hover { background: var(--accent-tint); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tabpanel[hidden] { display: none; }
.tabpanel--full { grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ── Design stages: wireframe → prototype → product ─── */
.stage { margin: 0; }
.stage__media {
  aspect-ratio: 16 / 10;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  padding: clamp(12px, 2.2vw, 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage__media img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 8px; cursor: zoom-in;
}
.stage__media img.stage__shot { border: 1px solid var(--line); }
.stage__media--flow { aspect-ratio: auto; display: block; }
.stage__flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px);
}
.stage__flow li { position: relative; }
.stage__flow img { display: block; width: 100%; border: 1px solid var(--line); }
.stage__flow span {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
@media (max-width: 700px) {
  .stage__flow span { left: 5px; top: 5px; padding: 2px 7px; font-size: 10px; }
}
.stage figcaption {
  display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 6px 24px;
  margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.stage figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .stage figcaption { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .tabpanel { grid-template-columns: minmax(0, 1fr); } }
.tabpanel .browser img { cursor: zoom-in; }
.tabpanel h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 4px 0 12px; }
.tabpanel p { color: var(--ink-2); margin: 0 0 14px; }
.tabpanel ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.tabpanel li { margin-bottom: 6px; }

/* ── Before / after comparison ───────────────────────── */
.compare {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20,20,30,.08);
  background: #f6f3ea;
  --pos: 50%;
  aspect-ratio: 16 / 10;
  user-select: none;
  scroll-margin-top: 96px;
}
.compare--band { aspect-ratio: 16 / 3.4; border-radius: 16px 16px 0 0; }
.compare > img,
.compare__after img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  pointer-events: none;
}
.compare__after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 3px; margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20,20,30,.55);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: var(--pos); z-index: 3;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: #16161b; color: #fff;
  border: 3px solid #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(20,20,30,.32);
  font-size: 13px; font-weight: 600; letter-spacing: -1px;
  pointer-events: none;
  transition: transform .18s ease;
}
.compare:hover .compare__knob,
.compare:focus-within .compare__knob { transform: scale(1.08); }
.compare__tag { display: none; }
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }
.compare input[type="range"] {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  touch-action: none;
}
.compare:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.compare-block {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(20,20,30,.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  scroll-margin-top: 96px;
}
.compare-block .compare { border: 0; box-shadow: none; border-radius: 0; }
.compare-caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 0; padding: 12px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2);
  background: #fff;
}
.compare-block + .shot-follow,
.compare + .compare-caption + figure { margin-top: 36px; }

/* ── Challenge: picture plus short problems ─────────── */
.challenge {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-bottom: 28px;
}
.challenge .big { margin: 0; max-width: none; }
.challenge .browser { margin: 0; }
@media (max-width: 860px) { .challenge { grid-template-columns: minmax(0, 1fr); } }
.pains { display: grid; gap: 10px; margin-top: 18px; }
.pain {
  display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pain:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pain svg {
  width: 42px; height: 42px; padding: 10px; box-sizing: border-box;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.pain b { display: block; font-size: 15px; color: var(--ink); }
.pain span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.source {
  margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); max-width: 62ch;
}

/* ── Screen reel ─────────────────────────────────────── */
.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 30%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 16px;
  margin: 0 0 22px;
}
.reel::-webkit-scrollbar { height: 8px; }
.reel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.reel figure {
  scroll-snap-align: start;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.reel figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.reel img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  cursor: zoom-in; background: #f4f1ea;
}
.reel figcaption { margin: 0; padding: 12px 14px 14px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.reel figcaption b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
@media (max-width: 700px) { .reel { grid-auto-columns: 78%; } }

/* ── Journey ─────────────────────────────────────────── */
.journey {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  counter-reset: step;
}
.journey li {
  position: relative;
  padding: 22px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 15px; line-height: 1.5; color: var(--ink-2);
  counter-increment: step;
  box-shadow: var(--shadow-sm);
}
.journey li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 30px; line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.journey b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (min-width: 900px) {
  .journey { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .journey li { padding: 18px 16px; font-size: 14px; }
}

/* ── Demos ───────────────────────────────────────────── */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-tint);
}
.demo__head strong { font-size: 14px; font-weight: 600; }
.demo__head span { font-size: 13px; color: var(--ink-3); }
.demo__body { padding: 28px 22px; }
.demo__hint { margin: 0; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.kbd {
  display: inline-block; min-width: 24px; padding: 1px 7px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  background: #fff; font-size: 12px; font-weight: 600; text-align: center; color: var(--ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.15); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); filter: none; }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* ── Findings ────────────────────────────────────────── */
.bars { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; gap: 8px; }
.bars .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bars .row b { font-weight: 600; }
.bars .track { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.bars .fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bars .fill.is-warn { background: #b4552b; }
.is-visible .bars .fill { width: var(--w); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quotes blockquote {
  margin: 0; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--serif); font-size: 21px; line-height: 1.3;
}
.quotes cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--ink-3); }

/* ── Heuristics table ────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--accent-tint); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
tr[hidden] { display: none; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.pill--pass { background: #e3f2e6; color: #1d5b2c; }
.pill--high { background: #fbe4dc; color: #8f2f12; }
.pill--medium { background: #fbf0d4; color: #6b4a00; }

/* ── Honest status banner ────────────────────────────── */
.status {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius);
  background: #fff8e8; border: 1px solid #ecd9a8;
  color: #4d3b0e;
}
.status svg { flex: none; margin-top: 2px; }
.status p { margin: 0; }
.status strong { color: #3a2c06; }

/* ── Figures ─────────────────────────────────────────── */
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; background: #fff; }
.shot-follow { margin-top: 36px; }
.wide { margin-top: 32px; }

/* ── Next study + footer ─────────────────────────────── */
.next {
  display: block;
  margin: 0 auto;
  max-width: var(--wide);
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  text-decoration: none;
}
.next__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
  overflow: hidden;
  transition: transform .3s ease;
}
.next:hover .next__card { transform: translateY(-4px); }
.next__card small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.next__card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 10px 0 16px; }
.next__card span { opacity: .8; }
.next__card img { border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(-2deg) translateY(12px); }
@media (max-width: 820px) { .next__card { grid-template-columns: minmax(0, 1fr); } }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px; color: var(--ink-3);
}
.footer__inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--ink-2); }

/* ── Reveal on scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 4vw;
  background: rgba(12, 12, 16, .88);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox p { color: #fff; opacity: .8; font-size: 14px; margin: 14px 0 0; text-align: center; }
.lightbox button {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff;
  font-size: 22px; cursor: pointer;
}

/* ── Index page ──────────────────────────────────────── */
.splash {
  position: relative;
  max-width: var(--wide); margin: 0 auto;
  min-height: 0;
  padding: 20px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  align-content: start;
}
.splash .eyebrow { margin: 0; }
.splash .display {
  max-width: 12ch;
  margin: 10px 0 16px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.splash .display em { color: #4d6b2c; }
.splash__lock { white-space: nowrap; }
.splash .lede { max-width: 44ch; }
.splash .credits {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
.splash .credits span:not(:last-child)::after {
  content: "·";
  margin: 0 14px;
  color: var(--ink-3);
}
.splash__stage {
  position: relative;
  min-height: clamp(300px, 32vw, 420px);
  isolation: isolate;
  padding: 20px 24px 28px 8px;
}
.splash__shot {
  position: absolute;
  margin: 0;
  text-decoration: none;
  transform: none;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), z-index 0s;
}
.splash__shot .browser {
  box-shadow: 0 22px 48px -24px rgba(20, 20, 30, .32);
  pointer-events: none;
  transition: box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}
.splash__shot--denta {
  left: 0;
  top: 0;
  width: min(52%, 268px);
  z-index: 2;
}
.splash__shot--learn {
  left: 28%;
  top: 20%;
  width: min(62%, 328px);
  z-index: 3;
}
.splash__shot--fashion {
  left: auto;
  right: 0;
  top: 52%;
  width: min(44%, 232px);
  z-index: 1;
}
.splash__bubbles {
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.icon { width: 14px; height: 14px; flex: none; display: block; }
.splash__bubbles li {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  transform: scale(.92) translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
.splash__bubbles li .icon { width: 13px; height: 13px; }
.splash__bubbles li::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: inherit;
  border: 1px solid var(--line);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}
.splash__bubbles li:nth-child(1) { top: -52px; left: 40%; transition-delay: .02s; }
.splash__bubbles li:nth-child(1)::after { left: 16px; bottom: -5px; }
.splash__bubbles li:nth-child(2) { top: 38%; right: -92px; transition-delay: .08s; }
.splash__bubbles li:nth-child(2)::after { left: -5px; top: 50%; margin-top: -4px; transform: rotate(135deg); }
.splash__bubbles li:nth-child(3) { bottom: -52px; left: 18%; transition-delay: .14s; }
.splash__bubbles li:nth-child(3)::after { left: 18px; top: -5px; transform: rotate(225deg); }
.splash__shot--learn .splash__bubbles li { background: #eef2dc; border-color: #d3dfb0; color: #3d5820; }
.splash__shot--denta .splash__bubbles li { background: #e7f0f8; border-color: #b9d3e8; color: #0e4a73; }
.splash__shot--denta .splash__bubbles li:nth-child(1) {
  top: 10%;
  left: auto;
  right: -108px;
}
.splash__shot--denta .splash__bubbles li:nth-child(1)::after {
  left: -5px;
  bottom: auto;
  top: 50%;
  margin-top: -4px;
  transform: rotate(135deg);
}
.splash__shot--fashion .splash__bubbles li { background: #efedfb; border-color: #d0ccf5; color: #3d3690; }
.splash__shot:hover,
.splash__shot:focus,
.splash__shot:focus-visible,
.splash__shot.is-on {
  z-index: 5;
  transform: translateY(-5px);
}
.splash__shot:hover .browser,
.splash__shot:focus .browser,
.splash__shot:focus-visible .browser,
.splash__shot.is-on .browser {
  box-shadow: 0 28px 56px -22px rgba(20, 20, 30, .38);
}
.splash__shot:hover .splash__bubbles li,
.splash__shot:focus .splash__bubbles li,
.splash__shot:focus-visible .splash__bubbles li,
.splash__shot.is-on .splash__bubbles li {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.splash__shot:focus-visible { outline-offset: 8px; }
@media (max-width: 900px) {
  .splash {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 16px;
  }
  .splash__stage {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
    padding: 20px 8px 12px;
  }
  .splash__shot {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }
  .splash__shot--learn {
    grid-column: 1 / -1;
    width: min(82%, 360px);
    justify-self: center;
  }
  .splash__bubbles {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }
  .splash__bubbles li {
    position: static;
    opacity: 1;
    transform: none;
  }
  .splash__bubbles li::after { display: none; }
}
.studies {
  max-width: var(--wide); margin: 0 auto;
  padding: 8px var(--gutter) clamp(64px, 9vw, 112px);
  display: grid; gap: 28px;
}
.study.study--learning { scroll-margin-top: 88px; }
.study {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.study:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.study--learning { background: #eef2dc; --accent: #4d6b2c; --accent-soft: #dfe9c3; }
.study--dentacare { background: #e7f0f8; --accent: #0e4a73; --accent-soft: #d3e5f4; }
.study--fashion { background: #efedfb; --accent: #4a41a8; --accent-soft: #e0ddfb; }
.study__num { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.study h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.015em; margin: 12px 0 14px; }
.study p { color: var(--ink-2); margin: 0 0 20px; }
.study .chips li { background: rgba(255,255,255,.7); }
.study__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--accent); }
.study__cta::after { content: "→"; transition: transform .2s; }
.study:hover .study__cta::after { transform: translateX(4px); }
.study .browser { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.study:hover .browser { transform: perspective(1400px) rotateY(0) rotateX(0); }
@media (max-width: 900px) {
  .study { grid-template-columns: minmax(0, 1fr); }
  .study .browser { transform: none; }
}
.principles-strip {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 112px);
}
.principles-strip h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.015em;
  margin: 10px 0 28px; max-width: 18ch;
}
.principles-strip .decisions { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ── Demo: Interface 1 carousel ──────────────────────── */
.cdemo { --c-bg: #fbf7e6; --c-accent: #cfe4b3; --c-ring: #7cc36a; transition: background .4s; background: var(--c-bg); }
.cdemo.is-calm { --c-bg: #ece6cf; --c-ring: #b9b19a; }
.cdemo .demo__head { background: transparent; }
.cdemo__row { display: flex; align-items: center; gap: 14px; }
.cdemo__track { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cdemo__card {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px;
  background: #fff; cursor: pointer; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 18px -10px rgba(0,0,0,.3);
  transition: transform .25s, box-shadow .25s;
}
.cdemo__card img { width: 100%; height: 100%; object-fit: cover; }
.cdemo__card.is-active { box-shadow: 0 0 0 5px var(--c-ring), 0 14px 26px -12px rgba(0,0,0,.35); transform: translateY(-3px); }
.cdemo__card:focus-visible { outline: 3px solid #1f3d0c; outline-offset: 6px; }
.cdemo.is-calm .cdemo__card.is-active { transform: none; }
.cdemo__arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1); background: #fff; cursor: pointer; font-size: 16px;
}
.cdemo__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; }
.cdemo__bar .btn { background: var(--c-accent); border-color: #b0cc90; color: #22301a; }
.cdemo__bar .btn--ghost { background: #fff; border-color: rgba(0,0,0,.12); }
.cdemo__bar .btn[aria-pressed="true"] { background: #cfe4b3; border-color: #9fbd7e; color: #22301a; }
.cdemo__log { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.75); font-size: 15px; color: #3a3a3a; min-height: 52px; }

/* ── Demo: Read Aloud ────────────────────────────────── */
.ra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
@media (max-width: 700px) { .ra { grid-template-columns: minmax(0, 1fr); } }
.ra__card { padding: 22px 24px; border-radius: 16px; background: #e8f1fb; border: 1px solid #b9d4ec; }
.ra__card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b7690; margin-bottom: 8px; }
.ra__text { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: #0e3553; }
.ra__text span { border-radius: 4px; transition: background .12s; }
.ra__text span.is-on { background: #ffe38a; color: #0b2a42; }
.ra .btn { background: #0e4a73; border-color: #0e4a73; min-height: 52px; padding: 12px 22px; }
.ra .btn[aria-pressed="true"] { background: #7a2020; border-color: #7a2020; }
.ra__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* ── Demo: X-ray viewer ──────────────────────────────── */
.xr__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.xr__stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; transform-origin: 55% 55%; }
.xr__toolbar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 12px; background: rgba(20,20,24,.82); color: #fff;
}
.xr__toolbar button {
  min-width: 44px; height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.xr__toolbar button[aria-pressed="true"] { background: #fff; color: #111; }
.xr__level { min-width: 52px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ── Contrast swatches ───────────────────────────────── */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.swatch__sample { padding: 22px 18px; font-size: 20px; font-weight: 600; }
.swatch__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.swatch__meta .ratio { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.palette div { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.palette i { display: block; height: 84px; }
.palette span { display: block; padding: 10px 12px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.palette b { display: block; color: var(--ink); font-weight: 600; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.spec { padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.spec b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--accent); }
.spec span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* ── Demo: screen reader simulator ───────────────────── */
.sr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
@media (max-width: 860px) { .sr { grid-template-columns: minmax(0, 1fr); } }
.sr__product { padding: 28px 24px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .sr__product { border-right: 0; border-bottom: 1px solid var(--line); } }
.sr__product h3 { font-size: 22px; margin: 0 0 2px; text-align: center; }
.sr__price { text-align: center; font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.sr__group { margin: 0 0 18px; text-align: center; }
.sr__group > span { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.sr__radios { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sr__radios [role=radio] {
  min-width: 48px; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1.5px solid #b8b0e8; background: #fff; color: #1a1a2e;
  font-size: 15px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.sr__radios [role=radio] i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.sr__radios [role=radio][aria-checked="true"] { border-color: #534ab7; background: #eeedfe; box-shadow: 0 0 0 2px #534ab7; font-weight: 700; }
.sr__radios [role=radio]:focus-visible { outline: 3px solid #7f77dd; outline-offset: 3px; }
.sr__add { width: 100%; min-height: 52px; border-radius: 10px; border: 0; background: #534ab7; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
.sr__add:focus-visible { outline: 3px solid #7f77dd; outline-offset: 3px; }
.sr__bag { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.sr__panel { display: flex; flex-direction: column; background: #121218; color: #e9e8f4; }
.sr__panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sr__panel header strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #b9b5ff; }
.sr__panel header div { display: flex; gap: 6px; }
.sr__panel header button { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 13px; cursor: pointer; }
.sr__panel header button[aria-pressed="true"] { background: #a09aff; border-color: #a09aff; color: #120f2e; font-weight: 600; }
.sr__log { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; gap: 10px; align-content: start; min-height: 300px; }
.sr__log:empty::before { content: "Press Tab to move into the product, then use the arrow keys. Each announcement appears here."; color: #9c9ab0; font-size: 15px; }
.sr__log li { padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 15px; line-height: 1.45; animation: srIn .25s ease; }
.sr__log li span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9c9ab0; margin-bottom: 4px; }
.sr__log li.is-live { background: rgba(94, 218, 154, .12); }
.sr__log li.is-live span { color: #5eda9a; }
.sr__log li.is-error { background: rgba(255, 107, 107, .12); }
.sr__log li.is-error span { color: #ff8b8b; }
@keyframes srIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
