/* Recura: from a log to a queue. Presentation styles. */

:root {
  --blue: #5BA3FD;
  --blue-ink: #1F5FB8;
  --blue-tint: #EEF5FF;
  --blue-line: #CFE2FD;
  --olive: #6D7356;
  --olive-deep: #575C44;
  --olive-tint: #EEF0E7;
  --red: #B4432F;
  --yellow: #F7F374;
  --ink: #2A2929;
  --white: #FFFFFF;
  --soft: #F6F6F2;
  --line: #E9E9E3;
  --muted: #6B6D66;

  --serif: "quincy-cf", "Source Serif 4", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;

  --t-statement: clamp(48px, 5.6vw, 96px);
  --t-headline: clamp(36px, 3.6vw, 56px);
  --t-lead: clamp(19px, 1.55vw, 24px);
  --t-body: 18px;
  --t-small: 14px;

  --gutter: clamp(20px, 5vw, 96px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --overshoot: cubic-bezier(.3, 1.4, .5, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Deck shell ---------- */

.deck {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  outline: none;
}
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 88px var(--gutter);
}
.slide > .inner { width: 100%; max-width: 1160px; margin: 0 auto; }

.tone-ink { background: var(--ink); color: var(--white); }
.tone-yellow { background: var(--yellow); }

/* Section entrance: one short fade, once */
.js .slide > .inner { opacity: 0; }
.js .slide.is-in > .inner { opacity: 1; transition: opacity .2s ease-out; }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0; background: var(--ink);
  transition: width .3s var(--ease-out), background-color .2s;
}
.counter {
  position: fixed; right: 24px; bottom: 18px; z-index: 10;
  font-size: var(--t-small); color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
body[data-tone="ink"] .progress span { background: var(--white); }
body[data-tone="ink"] .counter { color: rgba(255, 255, 255, .6); }

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

.statement {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--t-statement);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--t-headline);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 28ch;
}
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 52ch; }
.small { font-size: var(--t-small); }
.muted { color: var(--muted); }
.tone-ink .muted { color: rgba(255, 255, 255, .62); }

/* Even line lengths in headlines, so no word sits alone */
.statement, .headline, .os blockquote { text-wrap: balance; }

/* ---------- Logos and the Recura mark ---------- */

/* Both wordmarks sit on one baseline. Measured from the SVGs:
   PatientNow's baseline is 25.8 of 39 units down (34% of its height is empty below it);
   Recura's baseline is the bottom of its box. --lh is the PatientNow logo height. */
.logos { --lh: 34px; display: flex; align-items: flex-end; gap: 28px; }
.logo-pn { height: var(--lh); width: auto; display: block; }
.logo-recura { height: calc(var(--lh) * .882); width: auto; display: block; overflow: visible; margin-bottom: calc(var(--lh) * .338); }
.logos .divider { width: 1px; height: calc(var(--lh) * .662); margin-bottom: calc(var(--lh) * .338); background: rgba(42, 41, 41, .2); }
.logo-recura .plus {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform .55s var(--overshoot);
}
.logo-recura:hover .plus { transform: rotate(90deg); }

/* ---------- 1. Cover ---------- */

.cover .logos { margin-bottom: clamp(48px, 9vh, 96px); }
.cover .statement { margin-bottom: 28px; }
.cover .lead { margin-bottom: 32px; }
.cover .byline { font-size: var(--t-small); margin: 0; }
.cover .byline + .byline { margin-top: 4px; }
/* Pre-title: up while people join. Same look as the cover, a little larger name and address. */
.pretitle .statement { margin-bottom: 44px; }

/* Name and address sit right under the headline, as one tight stack. */
.cover-meta { margin-bottom: 0; }
.cover-meta .byline { font-size: var(--t-small); margin: 0; line-height: 1.5; }
.pretitle .cover-meta .byline { font-size: 17px; }
.cover .hint {
  position: absolute; left: var(--gutter); bottom: 32px;
  font-size: var(--t-small);
}
/* Fictional-data note: small and muted, at the bottom of the welcome and thank-you slides.
   On the welcome screen the hint sits just above it. */
.fiction { font-size: 14px; line-height: 1.45; margin: 0; }
.pretitle .fiction { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; }
#welcome .hint { bottom: 62px; }
.cover .hint kbd {
  font: inherit; font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 6px; padding: 0 6px;
}

/* ---------- 10. Operating system ---------- */

.os .kicker { margin-bottom: 32px; }
.os blockquote {
  margin: 0 0 clamp(48px, 8vh, 80px);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 80px);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 23ch;
}
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.points h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.points p { max-width: 32ch; }
.points > div { border-top: 1px solid rgba(42, 41, 41, .25); padding-top: 20px; }

/* ---------- 11. Log to queue ---------- */

.ltq .inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 5vw, 88px); align-items: center; }
.ltq .headline { margin-bottom: 24px; }
.ltq .lead { max-width: 28ch; }

.lq {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
}
.lq-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.lq-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.lq-sort { font-size: 13px; color: var(--muted); }
.lq-list { list-style: none; margin: 0; padding: 6px 8px; min-height: calc(14 * 42px + 12px); position: relative; }

.row { overflow: hidden; position: relative; }
.row.gone { display: none; }
.row-in {
  height: 42px;
  display: grid;
  grid-template-columns: 16px 128px minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 14px;
  font-size: 14px;
  white-space: nowrap;
}
.row .ch { width: 14px; height: 14px; color: var(--muted); }
.row .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.row .preview { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.row .time { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.row::before {
  content: ""; position: absolute; left: 2px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px;
  background: var(--red);
  transform: scaleY(0);
}

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 2px 9px 2px 7px; border-radius: 999px;
}
.pill svg { width: 12px; height: 12px; flex: none; }
.pill.ai { background: var(--blue-tint); color: var(--blue-ink); }
.pill.person { background: var(--olive-tint); color: var(--olive-deep); }
.pill.need { background: var(--ink); color: var(--white); }
.pill.plain { background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Each need row holds both states; the queue class picks one */
.st-q, .t-q { display: none; }
.lq.is-queue .st-log, .lq.is-queue .t-log { display: none; }
.lq.is-queue .st-q, .lq.is-queue .t-q { display: inline-flex; }
.lq.is-queue .t-q { display: inline; }
.lq.is-queue .row.late::before { transform: scaleY(1); transition: transform .3s var(--ease-out); }
.lq.is-queue .row.late .time { color: var(--red); }

.lq-foot {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue-ink);
  opacity: 0; visibility: hidden;
}
.lq.is-queue .lq-foot { opacity: 1; visibility: visible; transition: opacity .3s ease-out; }
.mark { width: 14px; height: 14px; flex: none; }


/* ---------- 15. Demo ---------- */

.demo { padding-top: 40px; padding-bottom: 28px; }
.demo .inner { max-width: 1640px; }
.demo-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 14px; flex-wrap: wrap; }
.demo .headline { font-size: clamp(32px, 2.8vw, 44px); }
/* The demo path: four steps in a row under the prototype, joined by a track.
   The current step is ink; finished steps turn olive (a person did this). */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 14px 0 0; padding: 0; }
.steps li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; font-size: var(--t-small); line-height: 1.35; color: var(--muted); transition: color .3s; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--olive); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out, ease-out); }
.steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.steps li.is-now { color: var(--ink); font-weight: 600; }
.steps li.is-now::before { background: var(--ink); }
.steps li.is-now .n { background: var(--ink); color: var(--white); box-shadow: none; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::after { transform: scaleX(1); }
.steps li.is-done .n { background: var(--olive); color: var(--white); box-shadow: none; font-size: 0; }
.steps li.is-done .n::before { content: ""; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.mat { background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 10px; }
.mat iframe {
  display: block; width: 100%;
  height: max(560px, calc(100vh - 204px));
  height: max(560px, calc(100dvh - 204px));
  border: 1px solid var(--line); border-radius: 16px; background: var(--white);
}
.demo-foot { display: flex; align-items: baseline; gap: 20px; font-size: var(--t-small); flex-wrap: wrap; }
.demo-foot a { font-weight: 600; text-underline-offset: 3px; }
.demo-hint { color: var(--muted); transition: color .2s; }
.demo-hint.is-focused { color: var(--ink); font-weight: 600; }

/* ---------- 22. Questions ---------- */

.cover-meta a { color: inherit; text-underline-offset: 3px; }

/* ---------- Shared pieces ---------- */

.slide .inner > .headline { margin-bottom: clamp(32px, 6vh, 56px); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.label { font-size: var(--t-small); font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.tone-ink .label { color: rgba(255, 255, 255, .62); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.cols-2 h3 { margin-bottom: 8px; }
.cols-2 p { max-width: 46ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.split .headline { margin-bottom: 20px; }
.split-wide { grid-template-columns: 6fr 5fr; }
.lead.after { margin-top: clamp(32px, 5vh, 48px); }
.users-intro { max-width: 62ch; margin: -8px 0 clamp(24px, 4vh, 40px); }
.num { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1; color: var(--muted); }

/* Screenshots on a soft mat */
.shot {
  display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--soft); cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.shot:hover { border-color: #D6D6CF; }
figure { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.shots figcaption { margin-top: 14px; font-size: 16px; line-height: 1.45; }
.s-today .shots { gap: clamp(20px, 2.4vw, 36px); }
.s-today .shots figcaption { margin-top: 18px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.4; color: var(--muted); }
.s-today .shots figcaption b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; color: var(--ink); margin-bottom: 6px; }
/* Recura today: three mats of one size; the full screenshot opens on click */
.s-today .shot img { aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; background: #fff; }
/* The customer view is a raw screenshot. Frame it like the other two marketing images: the app in a rounded window on white, at the same size and position. */
.s-today .shot.framed .frame { display: block; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 13% 5.9% 13%; }
.s-today .shot.framed img { aspect-ratio: auto; width: 100%; height: 100%; border: 0; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04); }
.shots-2 { grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.shots-2 .shot { padding: 6px; border-radius: 12px; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(42, 41, 41, .82); }
.lightbox img { display: block; max-width: 92vw; max-height: 86vh; border-radius: 12px; background: var(--white); }
.lb-close {
  display: block; margin: 12px auto 0; border: 0; background: var(--white); color: var(--ink);
  font-size: var(--t-small); font-weight: 600; padding: 6px 14px; border-radius: 999px;
}

/* ---------- 2. Journey, 20. Test ---------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.timeline-3 { grid-template-columns: repeat(3, 1fr); gap: 48px; }
.timeline-5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
/* Journey: a real timeline. One line runs through a dot per role; the current role is ink. */
.s-journey .timeline-5 { gap: 0; margin-top: clamp(24px, 5vh, 56px); }
.s-journey .timeline li { border-top: 2px solid var(--line); padding: 28px 24px 0 0; position: relative; }
.s-journey .timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); }
.s-journey .timeline li.now::before { background: var(--ink); border-color: var(--ink); }
.s-journey .timeline .when { font-size: 16px; margin-bottom: 10px; }
.s-journey .timeline h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; margin: 0; }
.timeline li { border-top: 2px solid var(--line); padding-top: 20px; }
.timeline li.now { border-top-color: var(--ink); }
.timeline .when { font-size: var(--t-small); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.timeline h3 { margin-bottom: 8px; }
.timeline p:last-child { font-size: 16px; max-width: 34ch; }
.on-ink li { border-top-color: var(--yellow); }
.on-ink .when { color: var(--yellow); }
.on-ink p:last-child { color: rgba(255, 255, 255, .78); }

/* ---------- About ---------- */

.s-about .lead + .lead { margin-top: 20px; }
.about-photo { aspect-ratio: 1 / 1; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
/* Portrait crop: keep the face in frame whatever the photo's shape */
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about-photo img[hidden] { display: none; }
.about-photo.has-image { border: 0; }

/* ---------- 3. Principles ---------- */

.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li { padding: clamp(24px, 3.4vh, 34px) 0; }
.principles h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin-bottom: 8px; }
.principles p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; margin: 0; }
.principles .num { font-size: clamp(28px, 2.4vw, 34px); }

/* ---------- 4. Highlight ---------- */

.s-highlight .lead { margin-bottom: 32px; }
.s-highlight .split { grid-template-columns: 4fr 7fr; gap: clamp(32px, 3.5vw, 56px); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); }
.facts h3 { margin-bottom: 2px; }
.facts p { font-size: 16px; }
/* A live page in a plain browser window. The page renders at desktop width and is scaled to fit. */
.browser { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--soft); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser-bar .url {
  flex: 1; min-width: 0; background: var(--white); border-radius: 999px; padding: 4px 14px;
  font-size: 13px; color: var(--muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-bar a { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); text-underline-offset: 3px; }
.browser-bar a:hover { color: var(--ink); }
.browser-view { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 220px); overflow: hidden; background: var(--white); }
.browser-view iframe {
  position: absolute; top: 0; left: 0; width: 1200px; height: 900px; border: 0;
  transform-origin: 0 0;
}

/* ---------- 5. Users, 14. Decisions ---------- */

.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; font-size: 16px; }
.card.primary { border: 2px solid var(--olive); padding: 23px; }
.card h3 { margin-bottom: 16px; }
.card .label { margin-top: 12px; }

/* Users: "Trying to" and "Success" as two clear blocks, lined up across all four cards */
.cards-4 { grid-template-rows: auto auto auto; row-gap: 0; }
.persona { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.persona h3 { margin-bottom: 4px; }
.persona .part { padding: 14px 0; }
.persona .part + .part { border-top: 1px solid var(--line); padding-bottom: 0; }
.persona .label { margin: 0 0 4px; }
.persona .part p:last-child { line-height: 1.45; }
.persona .success p:last-child { font-weight: 600; }
/* Decisions: each card reads top to bottom as title (the decision), picture, Insight, Left out. The rows line up across
   the three cards, and the decision carries the most weight. */
.decisions { grid-template-rows: auto auto auto auto; row-gap: 0; }
.decisions .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 24px; }
.decisions .dec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.decisions .num { flex: none; font-size: 24px; }
.decisions h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 1.6vw, 25px); line-height: 1.2; margin: 0; text-wrap: balance; }
.decisions .dec-part { padding: 12px 0; border-top: 1px solid var(--line); }
.decisions .dec-part:last-child { padding-bottom: 0; }
.decisions .dec-part .label { margin: 0 0 4px; }
.decisions .dec-part p:last-child { margin: 0; line-height: 1.45; }
.decisions .dec-insight p:last-child { font-size: 19px; font-weight: 500; line-height: 1.4; color: var(--ink); }
/* Left out: one quiet line under the insight, so it never competes with it */
.decisions .dec-insight { padding-bottom: 14px; }
.decisions .dec-left { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.4; color: var(--muted); }
.decisions .dec-left b { font-weight: 600; color: var(--ink); }
/* A small picture of each decision, in the same gray panel as #details */
.dec-vis { background: var(--soft); border-radius: 14px; padding: 12px; margin-bottom: 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 128px; font-size: 13px; }
.dv-row { position: relative; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; overflow: hidden; }
.dv-row b { font-weight: 700; white-space: nowrap; }
.dv-row span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dv-row em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--muted); flex: none; }
.dv-row.late { box-shadow: inset 3px 0 0 var(--red); }
.dv-row.late em { color: var(--red); }
.dv-brief .dv-who { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 600; color: var(--blue-ink); }
.dv-brief .dv-who .mark { width: 12px; height: 12px; }
.dv-brief dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.dv-brief dt { color: var(--muted); font-weight: 600; }
.dv-brief dd { margin: 0; color: var(--blue-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.dv-brief .conf { display: inline-flex; gap: 3px; }
.dv-brief .conf i { width: 12px; height: 5px; border-radius: 3px; background: var(--line); }
.dv-brief .conf i.on { background: var(--blue); }
/* Claim: the row sweeps yellow from the left and the owner appears */
.dv-claimrow { min-height: 40px; }
.dv-claimrow::before { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left center; z-index: 0; }
.dv-claimrow > * { position: relative; z-index: 1; }
.dv-row .dv-slot { margin-left: auto; display: grid; justify-items: end; overflow: visible; color: inherit; }
.dv-slot > * { grid-area: 1 / 1; }
.dv-row .dv-take { background: var(--ink); color: var(--white); font-weight: 600; border-radius: 999px; padding: 3px 10px; font-size: 12px; overflow: visible; }
.dv-row .dv-mine { color: var(--ink); overflow: visible; background: var(--white); font-size: 12px; padding: 2px 9px 2px 7px; opacity: 0; transform: translateY(3px); white-space: nowrap; }
.dv-row .dv-mine svg { width: 11px; height: 11px; }
.dv-note { margin: 4px 2px 0; color: var(--muted); }
.dv-row .dv-other { background: var(--olive-tint); color: var(--olive-deep); font-size: 12px; padding: 2px 9px 2px 6px; white-space: nowrap; overflow: visible; }
.dv-other .hdot { width: 6px; height: 6px; margin: 0 2px 0 0; }
.dv-claim.is-on .dv-claimrow::before { transform: scaleX(1); transition: transform .7s ease-out .4s; }
.dv-claim.is-on .dv-take { opacity: 0; transition: opacity .2s ease-out .3s; }
.dv-claim.is-on .dv-row .dv-mine { opacity: 1; transform: none; transition: opacity .3s ease-out 1s, transform .3s var(--ease-out) 1s; }

/* ---------- 6. Front desk ---------- */

.s-front-desk .statement { max-width: 19ch; margin-bottom: clamp(40px, 7vh, 72px); }
.s-front-desk .points h3 { margin-bottom: 6px; }
.visit { margin-top: clamp(32px, 6vh, 56px); max-width: 70ch; }

/* ---------- 8. Buried ---------- */

.ai-quote {
  margin: 0 0 20px; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue);
  font-size: var(--t-lead); line-height: 1.45; max-width: 36ch;
}

/* ---------- 12. Color ---------- */

.chips { list-style: none; margin: 0 0 clamp(40px, 7vh, 64px); padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.chips li { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.chips .sw { display: block; height: clamp(72px, 11vh, 112px); border-radius: 16px; margin-bottom: 12px; border: 1px solid rgba(42, 41, 41, .06); }
.chips b { font-size: 18px; }
.chips span:last-child { color: var(--muted); }
.js .s-color .chips li { opacity: 0; }
.js .s-color.is-in .chips li { opacity: 1; transition: opacity .25s ease-out; transition-delay: calc(var(--i) * 100ms + 150ms); }

/* ---------- 13. Flow ---------- */

.node {
  flex: 1 1 0; max-width: 200px; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px; background: var(--white);
}
.node b { font-size: 17px; }
.node span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.node.ai { background: var(--blue-tint); border-color: var(--blue-line); }
.node.ai b, .node.ai span { color: var(--blue-ink); }
.node.claimed { background: var(--yellow); border-color: var(--yellow); }
.node.claimed span { color: var(--ink); }
.node.done { background: var(--olive-tint); border-color: var(--olive-tint); }
.node.done span { color: var(--olive-deep); }
/* The new flow: one conversation that forks after Recura replies. Connectors are drawn in app.js
   from the boxes' real positions, so they stay attached at any size. */
.fl {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 118px repeat(4, minmax(0, 1fr));
  grid-template-rows: 56px auto auto; column-gap: 28px; row-gap: 56px;
  margin-top: clamp(16px, 3vh, 32px);
}
.fl .node { max-width: none; min-height: 96px; padding: 14px; position: relative; z-index: 1; }
.fl [data-n="in"]      { grid-column: 1; grid-row: 2 / 4; align-self: center; }
.fl [data-n="recura"]  { grid-column: 2; grid-row: 2 / 4; align-self: center; }
.fl [data-n="need"]    { grid-column: 4; grid-row: 2; }
.fl [data-n="claim"]   { grid-column: 5; grid-row: 2; }
.fl [data-n="act"]     { grid-column: 6; grid-row: 2; }
.fl [data-n="done"]    { grid-column: 7; grid-row: 2; }
.fl [data-n="handled"] { grid-column: 4; grid-row: 3; }
.fl [data-n="spot"]    { grid-column: 5; grid-row: 3; }
.fl-branch { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--muted); grid-column: 3; padding-left: 30px; white-space: nowrap; position: relative; z-index: 1; }
.fl-up   { grid-row: 2; align-self: center; transform: translateY(-20px); }
.fl-down { grid-row: 3; align-self: center; transform: translateY(20px); }
.fl-back { position: absolute; margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--muted); background: var(--white); padding: 0 10px; transform: translate(-50%, -50%); z-index: 1; white-space: nowrap; }
.fl-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fl-lines path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-lines path.back { stroke-dasharray: 5 6; }
@media (min-width: 720px) and (max-width: 1150px) {
  .fl { column-gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 108px repeat(4, minmax(0, 1fr)); }
  .fl .node { padding: 12px; }
  .fl .node b { font-size: 15px; }
  .fl .node span { font-size: 13px; }
  .fl-branch { padding-left: 24px; font-size: 13px; }
}

/* ---------- 16. Trust ---------- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trio > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.trio h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.01em; margin-bottom: 12px; }
.trio p { font-size: var(--t-lead); line-height: 1.4; max-width: 24ch; }

/* ---------- 17. Details, 18. Left out ---------- */

.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(180px, 3fr) 7fr; gap: 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; font-size: 20px; }
.rows dd { margin: 0; font-size: var(--t-lead); line-height: 1.4; max-width: 46ch; }

/* ---------- 20. Metrics ---------- */

/* How I'd know it worked: the test on the left as a short vertical timeline, the metrics on the right */
.tm { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.tm .label { margin: 0 0 14px; }
.tm-steps { list-style: none; margin: 0; padding: 0; }
.tm-steps li { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--line); margin-left: 5px; }
.tm-steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.tm-steps li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.tm-steps .when { font-size: var(--t-small); font-weight: 600; color: var(--muted); margin: 0 0 4px; line-height: 1.2; }
.tm-steps h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 1.7vw, 26px); line-height: 1.2; margin: 0 0 6px; }
.tm-steps li p:last-child { margin: 0; font-size: 17px; line-height: 1.45; max-width: 36ch; }
.tm-metrics { margin: 0; }
.tm-metrics > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.tm-metrics dt { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: baseline; }
/* The one number that matters most, above the supporting four. Red only marks "waiting too long". */
.tm-hero { background: var(--soft); border-radius: 16px; padding: 20px 24px 22px; margin-bottom: 18px; }
.tm-hero .tm-tag { background: var(--white); }
.tm-big { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 4vw, 60px); line-height: 1; margin: 10px 0 10px; }
.tm-what { margin: 0; font-size: 17px; line-height: 1.45; max-width: 52ch; }
.tm-late { color: var(--red); font-weight: 600; }
/* Category tags, in the words of the brief's own question */
.tm-tag { display: inline-block; width: fit-content; font-size: 13px; font-weight: 600; line-height: 1; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.tm-metrics > div:last-child { border-bottom: 1px solid var(--line); }
.tm-metrics dt { font-weight: 700; font-size: 17px; line-height: 1.35; }
.tm-metrics dd { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink); }


/* ---------- Inside the prototype: the real prototype, marked up ----------
   Pointing at a callout zooms the stage to that part. --z, --tx, --ty are registered
   so they can transition; the markers counter-scale so they stay the same size. */

@property --z { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --tx { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ty { syntax: "<length>"; inherits: false; initial-value: 0px; }

.bd { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 3.5vw, 56px); align-items: center; }
.s-breakdown { padding-top: 40px; padding-bottom: 40px; }
.s-breakdown .inner > .headline { margin-bottom: 24px; }
.bd-frame { padding: 10px; }
.bd-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.bd-stage {
  position: absolute; inset: 0; transform-origin: 0 0;
  transform: translate(var(--tx), var(--ty)) scale(var(--z));
  transition: --z .5s var(--ease-out), --tx .5s var(--ease-out), --ty .5s var(--ease-out);
}
.bd-view iframe {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0;
  transform-origin: 0 0; pointer-events: none;
}
.bd-marks { position: absolute; inset: 0; pointer-events: none; }
.bd-ring {
  position: absolute; border: calc(2px / var(--z)) solid var(--ink); border-radius: calc(12px / var(--z));
  transition: opacity .15s;
}
.bd-pin, .bd-num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700;
}
.bd-pin {
  position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z)));
  box-shadow: 0 0 0 3px var(--white); transition: opacity .15s;
}
.bd-list { list-style: none; margin: 0; padding: 0; }
.bd-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 9px 8px 9px 0;
  border-top: 1px solid var(--line); cursor: default; outline-offset: -2px;
}
.bd-list li:last-child { border-bottom: 1px solid var(--line); }
.bd-list h3 { font-size: 17px; margin-bottom: 2px; }
.bd-list p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.bd-list li.is-active p { color: var(--ink); }
/* Pointing at one callout fades the other marks */
.bd.is-pointing .bd-ring, .bd.is-pointing .bd-pin, .cc.is-pointing .bd-ring, .cc.is-pointing .bd-pin { opacity: .15; }
.bd.is-pointing .bd-marks .is-active, .cc.is-pointing .bd-marks .is-active { opacity: 1; }

/* ---------- Command center: the prototype's Today screen, live, scaled to fit ---------- */

/* The screen gets almost the whole slide; the headline and the four answers sit in a narrow column. */
.s-cc { padding: 24px clamp(16px, 2.5vw, 40px); }
.s-cc .inner { max-width: 1760px; }
.cc { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 19vw, 320px); gap: clamp(24px, 2.4vw, 40px); align-items: center; }
.cc-frame { width: 100%; max-width: calc((100vh - 70px) * 1.6); max-width: calc((100dvh - 70px) * 1.6); justify-self: end; }
.cc-side .headline { font-size: clamp(30px, 2.6vw, 44px); margin-bottom: 10px; }
.cc-lead { font-size: 18px; line-height: 1.4; margin: 0 0 14px; }
.cc-frame { padding: 10px; }
.cc-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.cc-view iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; } /* stays clickable */
.cc-qa li { padding: 11px 8px 11px 0; }
.cc-hint { margin-top: 12px; }

/* ---------- Small scenes: each shows one change, once, on arrival ----------
   .is-on is added by app.js. Reduced motion skips straight to the end state. */

.strike { position: relative; }
.strike::after, .b::after, .ev-t::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
}

/* Buried: the ask in the paragraph becomes a task card at the top of the queue */
.s-buried .headline { max-width: 30ch; margin-bottom: clamp(24px, 3vh, 40px); }
.bq { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.bq-panel { border-radius: 24px; padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; }
.bq-was { background: var(--soft); border: 1px solid var(--line); }
.bq-now { background: var(--white); border: 1px solid var(--line); }
.bq-arrow { display: grid; place-items: center; color: var(--muted); }
.bq-arrow svg { width: 36px; }
.bq-para { display: flex; flex-direction: column; gap: 11px; margin: 6px 0 18px; }
/* Today: the same "Review note" task, made again each time Landon asks. They stack in one by one. */
.bq-tasks { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
/* Each row sits in a slot. The task drops in; then the slots fold into one stack (four tasks, one request). */
.bq-tasks { --row: 88px; }
.bq-slot { position: relative; z-index: calc(10 - var(--i)); transform-origin: 50% 0; }
.bq-task { box-sizing: border-box; height: calc(var(--row) - 10px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; opacity: 0; transform: translateY(-8px); }
.bq-sub { font-size: 13px; color: var(--muted); align-self: center; }
.bq-task-top { display: flex; align-items: center; gap: 8px; font-size: 17px; white-space: nowrap; overflow: hidden; }
.bq-task-top b { overflow: hidden; text-overflow: ellipsis; }
.bq-task-top .mark { width: 14px; height: 14px; flex: none; }
.bq-date { margin-left: auto; font-size: var(--t-small); color: var(--muted); }
.bq-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding-left: 22px; } /* lines up with the title, past the mark */
.bq-meta .pill { font-size: 13px; padding: 2px 10px; }
.bq.is-on .bq-slot { transform: translateY(calc((1.5 - var(--i)) * (var(--row) - 8px))) scale(calc(1 - var(--i) * .03)); transition: transform .5s var(--ease-out) 3.4s; }
.bq.is-on .bq-task { opacity: 1; transform: none; transition: opacity .35s ease-out calc(var(--i) * .45s), transform .35s var(--ease-out) calc(var(--i) * .45s); }
.sk { display: block; height: 9px; width: var(--w); border-radius: 5px; background: #DEDED7; transition: opacity .4s; }
.bq-sentence { margin: 2px 0; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; }
.bq-foot { margin-top: auto; font-size: var(--t-small); color: var(--muted); }
.bq .bq-label-q { color: var(--ink); font-size: 15px; }
.bq-queue { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.sk-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transform: translateY(-14px); }
.sk-card .sk { background: var(--line); }
.bq.is-on .sk-card { transform: none; transition: transform .45s var(--ease-out) 3.9s; }
.bq.is-on .bq-para .sk { opacity: .45; transition: opacity .4s ease-out; }
.bq-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-ink); margin-bottom: 8px; }
.bq-ask {
  color: var(--ink);
  background: linear-gradient(var(--blue-tint), var(--blue-tint)) no-repeat 0 0 / 0% 100%;
  border-radius: 4px; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.bq-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  font-size: 17px; background: var(--white); box-shadow: 0 8px 24px rgba(42, 41, 41, .08);
  opacity: 0; transform: translateY(-14px);
}
.bq-next { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.bq-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.bq-top b { font-size: 19px; }
.bq.is-on .bq-ask { background-size: 100% 100%; transition: background-size .5s ease-out; }
.bq.is-on .bq-card { opacity: 1; transform: none; transition: opacity .4s ease-out 3.9s, transform .45s var(--ease-out) 3.9s; }

/* Details: three cards. In each, today's version fades back (still readable) and the fix
   appears under it. The before/after gets most of the card; the rule sits at the bottom. */
.dt { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; row-gap: 0; } /* equal widths, whatever the content */
.dt-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 28px; }
.dt-card h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 1.7vw, 26px); line-height: 1.2; margin: 0 0 18px; }
.dt-stage { background: var(--soft); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 22px; min-height: 160px; }
.dt-row .label { margin: 0 0 8px; }
.dt-row > span { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 22px; font-weight: 600; }
.dt .raw { font-weight: 500; color: var(--ink); }
.dt .pill { font-size: 16px; padding: 5px 14px 5px 12px; }
.dt .pill svg { width: 14px; height: 14px; }
.dt .pill.plain { background: var(--white); }
.dt-vs .pill, .dt-after .pill { white-space: nowrap; }
.dt-vs { flex-direction: column; align-items: flex-start !important; gap: 4px !important; }
.dt-vs .vs { font-size: 14px; font-weight: 600; color: var(--muted); padding-left: 12px; }
/* A call-log row: the same call, before and after the answer is attached */
.dt-call { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.dt-call .raw { font-size: 17px; font-weight: 500; white-space: nowrap; }
.dt-call .pill { font-size: 14px; padding: 3px 10px 3px 8px; }
.dt-call .pill svg { width: 12px; height: 12px; }
/* Today's four ownerless tasks, as thin rows */
.dt-tasks { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 4px !important; }
.dt-task { display: flex; align-items: baseline; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 15px; }
.dt-task b { font-weight: 600; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-task i { font-style: normal; color: var(--muted); flex: none; }
/* The redesign: one card with a name, a place in Needs you, and an owner */
.dt-mini { display: flex; flex-direction: column; gap: 6px; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 18px rgba(42, 41, 41, .06); }
.dt-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dt-mini-top b { font-size: 19px; }
.dt-mini .pill { font-size: 13px; padding: 2px 10px 2px 8px; }
.dt-mini .pill svg { width: 12px; height: 12px; }
.dt-mini-sub { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--olive-deep); }
.dt-mini-sub .hdot { margin: 0; }
.dt-after { opacity: 0; transform: translateY(6px); }
.dt-rule { margin: 18px 0 0; font-size: 18px; line-height: 1.45; }
.dt.is-on .dt-before { opacity: .55; transition: opacity .35s ease-out calc(var(--i) * .5s + .2s); }
.dt.is-on .dt-after { opacity: 1; transform: none; transition: opacity .3s ease-out calc(var(--i) * .5s + .6s), transform .3s var(--ease-out) calc(var(--i) * .5s + .6s); }

/* Trust: an AI action is undone before the patient hears */
/* Each trust column ends in a small panel at the same height: what it looks like in the product */
.trio-demo { grid-template-rows: auto auto 1fr; row-gap: 0; }
.trio-demo > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.trio-demo p { max-width: 30ch; }
.tr-panel { margin-top: 28px; align-self: start; background: var(--soft); border-radius: 16px; padding: 14px 18px; min-height: 112px; display: flex; flex-direction: column; justify-content: center; }
.tr-panel .ev-t { white-space: nowrap; }
.tr-panel .ev span:not(.ev-t):not(.undo-btn):not(.hdot) { white-space: normal; }
.tr-conf { color: var(--ink); font-weight: 600; }
.tr-conf-l { color: var(--muted); font-weight: 500; margin-right: 4px; }
.tr-conf .conf { display: inline-flex; gap: 3px; margin-right: 2px; }
.tr-conf .conf i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.tr-conf .conf i.on { background: var(--blue); }
.ev { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.35; padding: 8px 0; }
.ev-ai { color: var(--blue-ink); }
.ev-t { position: relative; white-space: nowrap; }
.undo-btn { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-ink); }
.ev-person { color: var(--olive-deep); opacity: 0; transform: translateY(-6px); }
.hdot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex: none; margin: 0 3px; }
.undo-demo.is-on .undo-btn { background: var(--ink); color: var(--white); opacity: 0;
  transition: background-color .12s, color .12s, opacity .2s ease-out .35s; }
.undo-demo.is-on .ev-ai { color: var(--muted); transition: color .3s ease-out .35s; }
.undo-demo.is-on .ev-ai .mark { opacity: .4; transition: opacity .3s ease-out .35s; }
.undo-demo.is-on .ev-t::after { transform: scaleX(1); transition: transform .3s ease-out .35s; }
.undo-demo.is-on .ev-person { opacity: 1; transform: none; transition: opacity .35s ease-out .8s, transform .35s var(--ease-out) .8s; }

/* ---------- Small screens: no snapping, sections grow ---------- */

@media (max-width: 719px) {
  .deck { scroll-snap-type: none; }
  .slide { min-height: auto; padding: 72px 20px; }
  .slide.cover { min-height: 100svh; flex-direction: column; justify-content: center; align-items: stretch; }
  .cover .hint { display: none; }
  .pretitle .fiction { position: static; margin-top: 40px; }
  /* Keep wide content inside the screen: the #buried panel and the highlight's browser bar */
  .bq { grid-template-columns: minmax(0, 1fr); }
  .bq-panel { min-width: 0; }
  .browser-bar { min-width: 0; }
  .browser-bar .url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .browser-bar a { flex: none; }
  .s-highlight .split, .cards.dt { grid-template-columns: minmax(0, 1fr); }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .ltq .inner { grid-template-columns: 1fr; }
  .row-in { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; padding: 0 8px 0 12px; }
  .row .preview, .row .time { display: none; }
  .mat iframe { height: 80vh; }
  .logos { gap: 18px; }
  .logos { --lh: 26px; }
  .counter { display: none; }
  .bq-arrow { padding: 10px 0; }
  .bq-arrow svg { transform: rotate(90deg); }
  .trio-demo > div { grid-row: auto; grid-template-rows: none; }
  .tm, .tm-metrics > div, .bq, .cols-2, .split, .split-wide, .shots, .cards-4, .cards-3, .timeline, .timeline-3, .timeline-5, .trio, .rows > div { grid-template-columns: 1fr; }
  .rows > div { gap: 6px; }
  .dt-card { grid-row: auto; grid-template-rows: none; }
  .dt-stage { min-height: 0; }
  .bd { grid-template-columns: 1fr; }
  .cc { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .fl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 10px; }
  .fl > * { grid-column: 1 !important; grid-row: auto !important; transform: none !important; }
  .fl .node { min-height: 0; }
  .fl-branch { padding: 14px 0 0; }
  .fl-lines, .fl-back { display: none; }
  .node { max-width: none; }
  .decisions .card { grid-row: auto; grid-template-rows: none; }
}

/* Laptop heights: keep everything on one screen */
@media (min-width: 720px) and (max-height: 820px) {
  .slide { padding-top: 56px; padding-bottom: 56px; }
  .slide.demo { padding-top: 36px; padding-bottom: 24px; }
  .row-in { height: 38px; }
  .lq-list { min-height: calc(14 * 38px + 12px); }
  .card { padding: 20px; font-size: 15px; }
  .card.primary { padding: 19px; }
  .card .label { margin-top: 8px; }
  .persona .label { margin-top: 0; }
  .persona .part { padding: 10px 0; }
  .shots figcaption { font-size: 15px; }
  .rows > div { padding: 16px 0; }
  .principles li { padding: 18px 0; }
}

/* ---------- Reduced motion: finished states, no movement ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .logo-recura:hover .plus { transform: none; }
  .bq.is-on .bq-slot { transform: none; } /* show all four rows, side by side with the card */
}
