/* oplanner.net/especialistas: the page the Especialistas ads open, with the
   guided demo. Same tokens as landing.css (docs/marca/README.md, section 3). */
@font-face {
  font-family: "Oplanner Sans";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Oplanner Display";
  src: url("/fonts/lato-bold-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:root {
  --canvas: #f6f2ec;
  --paper: #fcfaf6;
  --white: #fffdf9;
  --ink: #2b2330;
  --plum: #3a2d3c;
  --plum-deep: #2a1f2d;
  --muted: #675d69;
  --copper: #92563a;
  --copper-deep: #74422b;
  --copper-light: #b8754a;
  --champagne: #e9cfb2;
  --mauve: #ece6eb;
  --on-dark: #ddd3db;
  --line: #d8cfcb;
  --display: "Oplanner Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Oplanner Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: min(1120px, calc(100vw - 40px));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

/* Display rules below must never show what the page hid. */
[hidden] { display: none !important; }

html { background: var(--canvas); }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.demo-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus-ring, var(--copper));
  outline-offset: 4px;
}

/* Copper is too faint on the dark sections; champagne passes 3:1. */
.steps, .closing, .ads-consent { --focus-ring: var(--champagne); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--plum);
  color: var(--white);
  z-index: 100;
}

.skip:focus { top: 12px; }

/* Header */
.top {
  width: var(--shell);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--plum) url("/icons/Icon-192.png") center / cover no-repeat;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.brand-name span { color: var(--copper); }

.top-link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Buttons */
.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.125rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button small {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.82;
}

.button:active { transform: scale(0.97); }

.button-primary {
  color: var(--white);
  background: var(--copper);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--copper) 35%, transparent);
}

.button-primary:hover { background: var(--copper-deep); }

.button-dark {
  color: var(--white);
  background: var(--plum);
}

.button-light {
  color: var(--plum-deep);
  background: var(--champagne);
}

.button-ghost {
  color: var(--white);
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 45%, transparent);
}

.text-link {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--copper-deep);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Phone: the one object of every scene, as in the brand's videos. */
.phone {
  position: relative;
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 46px;
  background: #17131a;
  box-shadow:
    inset 0 0 0 1.5px #3b343e,
    0 40px 60px -30px color-mix(in srgb, var(--plum-deep) 55%, transparent),
    0 14px 24px -12px color-mix(in srgb, var(--plum-deep) 35%, transparent);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
  background: var(--paper);
}

/* Hero */
.hero {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  max-width: 13ch;
}

.hero h1 span { color: var(--copper); }

.lede {
  max-width: 34em;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 20px;
}

.actions-center { justify-content: center; }

.hero-visual {
  margin: 0;
  justify-self: center;
  width: min(330px, 78vw);
  animation: rise 900ms var(--ease) both;
}

.hero-visual figcaption,
.demo-data {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Calendar: the colors of each clinic */
.calendar {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 10vw, 112px);
  text-align: center;
}

.calendar-copy { max-width: 620px; margin: 0 auto clamp(36px, 6vw, 56px); }
.calendar h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 14px; }
.calendar-copy > p { margin: 0 0 18px; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); }

.legend {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9375rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-valley { margin-left: 8px; }
.dot-park { background: #1f6b5c; }
.dot-valley { background: #b8754a; }

.calendar-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 40px);
}

.calendar-phones .phone { margin: 0; flex: none; }
.phone-center { width: min(300px, 46vw); z-index: 1; }
.phone-side { width: min(250px, 34vw); opacity: 0.96; }
.phone-side:first-child { transform: rotate(-3deg) translateY(12px); }
.phone-side:last-child { transform: rotate(3deg) translateY(12px); }

.calendar-note { margin: 28px 0 0; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.04em; }

/* What the demo does */
.steps {
  padding: clamp(56px, 9vw, 104px) 0;
  background: var(--plum-deep);
  color: var(--white);
  text-align: center;
}

.steps h2,
.features h2,
.faq h2 {
  width: var(--shell);
  margin: 0 auto clamp(28px, 5vw, 48px);
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.steps ol {
  width: var(--shell);
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: left;
}

.steps li {
  padding: 24px 20px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--white) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 10%, transparent);
}

.num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--copper-light);
  font-family: var(--display);
  font-size: 1rem;
}

.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps li p { margin: 0; color: var(--on-dark); font-size: 1rem; line-height: 1.4; }
.steps .button-dark { background: var(--copper); }

/* Features */
.features { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }

.feature-list {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.feature-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px color-mix(in srgb, var(--plum-deep) 40%, transparent);
}

.phone-small { padding: 5px; border-radius: 26px; }
.phone-small img { border-radius: 21px; }

.feature-list h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-list p { margin: 0 0 10px; color: var(--muted); font-size: 1.0625rem; }

/* Price */
.price {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.price-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 32px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.price-card h2 {
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}

.amount { margin: 0; font-size: 1.25rem; }

.amount strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.5rem, 10vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.amount-alt { margin: 8px 0 28px; color: var(--muted); font-size: 1rem; }

.price-card ul {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 12px;
}

.price-card li {
  position: relative;
  padding-left: 30px;
  font-size: 1.0625rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--copper);
  border-bottom: 2.5px solid var(--copper);
  transform: rotate(-45deg);
}

/* FAQ */
.faq {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0;
}

.faq h2 { width: auto; text-align: left; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-family: var(--display);
  font-size: 1.1875rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Closing */
.closing {
  padding: clamp(64px, 10vw, 112px) 20px;
  background: var(--plum-deep);
  color: var(--white);
  text-align: center;
}

.closing h2 { font-size: clamp(2.125rem, 6vw, 3.75rem); margin-bottom: 16px; }
.closing p { margin: 0 0 32px; color: var(--on-dark); }
.closing a:not(.button) { color: var(--champagne); }

/* Footer */
.foot {
  width: var(--shell);
  margin: 0 auto;
  padding: 32px 0 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }

.footer-cookies {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Sticky button, phones only, once the hero has scrolled away. */
.sticky {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
}

.sticky.is-visible { transform: none; }
.sticky .button { width: 100%; min-height: 52px; }

/* Consent notice built by meta-pixel.js */
.ads-consent {
  position: fixed;
  z-index: 90;
  inset: auto 12px 12px;
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  color: var(--white);
  background: var(--plum);
  font-size: 0.9375rem;
}

.ads-consent p { margin: 0; color: var(--on-dark); }
.ads-consent a { color: var(--champagne); }
.ads-consent-actions { display: flex; gap: 10px; }
.ads-consent .button { flex: 1; min-height: 44px; padding: 8px 18px; font-size: 1rem; }

/* ---------- Demo ---------- */
/* Pinned to the four edges of the screen, not sized by 100vh or 100dvh:
   phones disagree on those while the browser bars come and go, and the top
   of the demo ended up off the screen. */
.demo {
  position: fixed;
  inset: 0;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--canvas);
  overscroll-behavior: contain;
}

.demo::backdrop { background: var(--plum-deep); }

.demo[open] { animation: demo-in 320ms var(--ease) both; }

@keyframes demo-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.demo-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 16px env(safe-area-inset-bottom);
}

/* A phone held sideways, or a laptop at 200 % zoom: the phone frame does not
   fit beside the rest, so the demo scrolls instead of drawing over the
   progress bar and the instructions. */
@media (max-height: 520px) {
  .demo { overflow-y: auto; }
  .demo-shell { height: auto; min-height: 100%; }
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 8px;
}

.demo-title:focus,
.demo-view h2:focus { outline: none; }

/* Read by screen readers, never shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-title {
  flex: 1;
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
}

.demo-signup {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--copper-deep);
  text-underline-offset: 4px;
}

.demo-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--mauve);
  cursor: pointer;
}

.demo-close::before,
.demo-close::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 19px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

.demo-close::after { transform: rotate(-45deg); }

.demo-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
}

.demo-progress ol {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-progress li {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.demo-progress li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.demo-progress p {
  margin: 0;
  min-width: 8.5em;
  text-align: right;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.demo-view { min-height: 0; }
.demo-view[hidden] { display: none; }

/* Intro: the first question */
.demo-intro {
  align-self: center;
  max-width: 460px;
  margin: 0 auto;
  padding-bottom: 12vh;
  text-align: center;
}

.demo-intro h2 { font-size: clamp(2rem, 8vw, 2.75rem); margin-bottom: 12px; }
.demo-intro > p { margin: 0 0 32px; color: var(--muted); }

.choices { display: grid; gap: 12px; }

.choices button {
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--display);
  font-size: 1.25rem;
  cursor: pointer;
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.choices button:hover { box-shadow: inset 0 0 0 2px var(--copper); }
.choices button:active { transform: scale(0.98); }

.resume { display: grid; gap: 10px; justify-items: center; margin-top: 28px; }

/* Stage: the phone and the guide */
.demo-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 0;
}

.clinic-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.clinic-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
}

.clinic-chips i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--copper));
}

.demo-device {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-demo {
  height: min(100%, 680px);
  max-height: calc(100svh - 300px);
  min-height: 320px;
  padding: 7px;
  border-radius: 38px;
}

.phone-demo img {
  border-radius: 31px;
  transition: opacity 220ms var(--ease);
}

.phone-demo img.is-swapping { opacity: 0; }

.demo-device .demo-data { margin-top: 8px; }

.hotspot {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--copper-light);
  animation: hot 1.6s var(--ease) infinite;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--copper-light) 70%, transparent);
  animation: ring 1.6s var(--ease) infinite;
}

.hotspot[hidden] { display: none; }

@keyframes hot {
  0%, 100% { box-shadow: 0 0 0 3px var(--copper-light); }
  50% { box-shadow: 0 0 0 3px var(--copper-light), 0 0 18px 2px color-mix(in srgb, var(--copper-light) 45%, transparent); }
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--copper-light) 70%, transparent); }
  100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--copper-light) 0%, transparent); }
}

.phone-demo.is-nudged .hotspot { animation: hot 0.5s var(--ease) 2; }

/* The SRI moment: the peak of the demo */
.sri-run {
  position: absolute;
  inset: 7px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px 18px;
  border-radius: 31px;
  background: color-mix(in srgb, var(--plum-deep) 92%, transparent);
  color: var(--white);
}

.sri-run[hidden] { display: none; }

.sri-for {
  margin: 0 0 8px;
  color: var(--champagne);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.sri-go { margin-top: 14px; justify-self: center; min-height: 48px; padding: 10px 22px; font-size: 1rem; white-space: nowrap; }

.sri-row {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(0.875rem, 4vw, 1.0625rem);
  line-height: 1.2;
  opacity: 0.25;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.sri-row::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--champagne);
}

.sri-row.is-done { opacity: 1; transform: none; }

.sri-row.is-done::before {
  background: var(--champagne) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232a1f2d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.sri-seal {
  justify-self: center;
  flex-direction: column;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 2px solid var(--copper-light);
  color: var(--champagne);
  font-size: clamp(1rem, 4.6vw, 1.25rem);
  text-align: center;
}

.sri-seal::before { width: 30px; height: 30px; }
.sri-seal.is-done { animation: stamp 520ms var(--ease) both; }

@keyframes stamp {
  0% { opacity: 0; transform: scale(1.4) rotate(-6deg); }
  60% { opacity: 1; transform: scale(0.96) rotate(-2deg); }
  100% { opacity: 1; transform: rotate(-2deg); }
}

.coach {
  display: grid;
  gap: 4px;
  padding: 14px 18px 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.coach-chapter {
  margin: 0;
  color: var(--copper);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-hint {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.coach-nav { display: flex; justify-content: space-between; }
.coach-nav .text-link, .coach-skip { font-size: 0.9375rem; }
.coach-skip { justify-self: center; color: var(--muted); }
.coach [data-back][disabled] { visibility: hidden; }

/* End */
.demo-end {
  align-self: center;
  max-width: 460px;
  margin: 0 auto;
  padding-bottom: 6vh;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.demo-end h2 { font-size: clamp(1.875rem, 7vw, 2.5rem); }

.done-list {
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}

.done-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
  animation: rise 500ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

.done-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fffdf9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.elapsed { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
.end-offer { margin: 8px 0 6px; font-size: 1.125rem; }
.demo-end .button { width: 100%; }

.inapp {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mauve);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.inapp[hidden] { display: none; }

/* Wide screens: guide beside the phone */
@media (min-width: 820px) {
  .demo-stage {
    grid-template-columns: auto 320px;
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    justify-content: center;
    align-items: center;
    padding-bottom: 24px;
  }

  .clinic-chips { grid-column: 1 / -1; }
  .phone-demo { max-height: calc(100dvh - 210px); }
  .coach { padding: 24px; gap: 10px; }
  .coach-hint { font-size: 1.625rem; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { grid-row: auto; }
  .steps ol { grid-template-columns: 1fr; max-width: 520px; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 18px; }
  .steps li .num { grid-row: span 2; margin: 0; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100vw - 32px); }
  body { font-size: 1.0625rem; }
  .top { padding: 12px 0; }
  .hero { padding: 8px 0 56px; gap: 28px; }
  .kicker { margin-bottom: 12px; font-size: 0.8125rem; }
  .hero h1 { font-size: clamp(2.125rem, 9.6vw, 2.625rem); }
  .lede { margin: 14px 0 22px; font-size: 1.0625rem; }
  .actions .button-primary { width: 100%; }
  .actions { justify-content: center; gap: 4px 24px; margin-bottom: 14px; }
  .hero .fine { font-size: 0.875rem; text-align: center; }
  .hero-visual { width: min(270px, 72vw); }
  .feature-list article { grid-template-columns: 96px 1fr; gap: 18px; padding: 18px; border-radius: 22px; }
  .feature-list h3 { font-size: 1.25rem; }
  .feature-list p { font-size: 1rem; }
  .phone-small { border-radius: 18px; padding: 4px; }
  .phone-small img { border-radius: 14px; }
  .closing .actions .button { width: 100%; }
  /* One phone per scene on small screens (docs/marca/README.md, section 6). */
  .phone-side { display: none; }
  .phone-center { width: min(270px, 72vw); }
  .demo-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .demo-signup { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
