:root {
  /* Ground and ink: white page, cool gray bands, near-black ink. */
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-ink: #0B1020;
  --ink: #0B1220;
  --ink-2: #3B4556;
  --ink-3: #5F6878;
  --line: #E3E7EF;
  --line-2: #CFD6E2;

  /* The one brand color: the ballpoint pen. It writes, it acts. */
  --pen: #2346C8;
  --pen-600: #1B37A6;
  --pen-50: #EEF2FD;
  --pen-100: #DCE4FB;
  --pen-ruling: #D6E2F3;

  /* The highlighter only ever marks a booked slot or the promise that books it. */
  --marker: #F7E33A;

  /* Dark band */
  --on-ink: #EEF1F7;
  --on-ink-2: #A9B2C4;
  --ink-line: #232B40;
  --ink-raised: #141B2E;

  --ok: #0F7A55;
  --error: #B42318;
  --error-bg: #FEF3F2;

  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-pen: 'Caveat', 'Segoe Print', cursive;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 1px 2px rgba(11, 18, 32, 0.05), 0 8px 24px -10px rgba(11, 18, 32, 0.16);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.04), 0 24px 56px -20px rgba(11, 18, 32, 0.28);
  --shadow-card: 0 1px 1px rgba(11, 18, 32, 0.08), 0 14px 30px -12px rgba(11, 18, 32, 0.3);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease-out);
  --container: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--pen-100); color: var(--ink); }
:root { accent-color: var(--pen); }
input, select, textarea { caret-color: var(--pen); }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; 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: -48px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.375rem, 1.4rem + 2.9vw, 3.75rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; line-height: 1.5; }
.pen { font-family: var(--font-pen); font-weight: 600; color: var(--pen); letter-spacing: 0; }
.hl {
  background: linear-gradient(100deg, transparent 0.05em, var(--marker) 0.18em, var(--marker) calc(100% - 0.14em), transparent calc(100% - 0.02em)) 0 66% / 100% 0.56em no-repeat;
  padding-inline: 0.1em;
  margin-inline: -0.05em;
}
@media (min-width: 768px) { .hero .hl { white-space: nowrap; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9688rem; line-height: 1.2; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--pen); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 2px rgba(11, 18, 32, 0.2); }
.btn--primary:hover { background: var(--pen-600); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: var(--ink-3); }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 1.0313rem; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.9063rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link {
  display: inline; font-weight: 600; color: var(--pen);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--pen) 30%, transparent);
  transition: text-decoration-color var(--t-fast);
}
.link:hover { text-decoration-color: var(--pen); }
.link svg { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; transition: transform var(--t-fast); }
.link:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand__symbol { width: 33px; height: 24px; object-fit: contain; }
.brand__name strong { font-weight: 700; }
.site-nav { display: none; gap: var(--space-8); font-size: 0.9375rem; color: var(--ink-2); }
.site-nav a { padding-block: 6px; transition: color var(--t-fast); }
.site-nav a:hover { color: var(--ink); }
@media (min-width: 960px) { .site-nav { display: flex; } }
.wide-only { display: none; }
@media (min-width: 520px) { .wide-only { display: inline; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-20); }
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--ink { background: var(--bg-ink); color: var(--on-ink); }
.section-head { max-width: 760px; }
.section-head .lead, .lead--spaced { margin-top: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-12); padding-bottom: var(--space-16); overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-top: var(--space-16); padding-bottom: var(--space-20); } }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1140px) {
  .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "intro shot" "cta shot"; column-gap: var(--space-10); row-gap: 0; }
  .hero__intro { grid-area: intro; align-self: end; }
  .hero__cta { grid-area: cta; align-self: start; }
  .hero .shot { grid-area: shot; align-self: center; }
}
@media (max-width: 1139px) { .hero__grid { gap: var(--space-8); } .hero__cta .hero__actions { margin-top: 0; } }
.hero__lead { margin-top: var(--space-6); }
.hero__quick { margin-top: var(--space-6); }
@media (min-width: 640px) { .hero__quick { display: none; } }
.hero__actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); }
@media (min-width: 520px) { .hero__actions { flex-direction: row; flex-wrap: wrap; } }
.assurances { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); color: var(--ink-3); font-size: 0.9375rem; }
.assurances li { display: inline-flex; align-items: center; gap: 6px; }
.assurances svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.hero__demo-link { margin-top: var(--space-6); }

/* The product shot: agenda spread, chat, and the appointment card that lands on it. */
.shot { position: relative; padding-bottom: var(--space-12); }
@media (min-width: 640px) { .shot { padding-bottom: var(--space-16); padding-left: var(--space-6); } }
.spread {
  position: relative; display: grid; border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (min-width: 640px) { .spread { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.spread__bar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 0.8125rem; color: var(--ink-3);
}
.spread__dots { display: inline-flex; gap: 6px; }
.spread__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.tag-demo {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--pen-50); color: var(--pen-600); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.tag-demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pen); }
.page { padding: var(--space-5) var(--space-4) var(--space-6); min-width: 0; }
.page--agenda {
  background-color: #fff;
  background-image: linear-gradient(var(--pen-ruling) 1px, transparent 1px);
  background-size: 100% 44px; background-position: 0 86px;
}
@media (max-width: 639px) { .page--agenda { background-position: 0 78px; } .agenda tr > :nth-child(4), .agenda .row-early { display: none; } }
.page--chat { border-left: 1px solid var(--line); background: var(--bg-soft); display: flex; flex-direction: column; }
@media (max-width: 639px) { .page--chat { border-left: 0; } }
.page__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.page__title { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; white-space: nowrap; }
.page__sub { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.agenda { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.8125rem; }
.agenda th { font-weight: 600; text-align: left; color: var(--ink-2); padding: 0 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda thead th:first-child { width: 42px; }
.agenda tbody th { font-weight: 500; color: var(--ink-3); padding: 0; height: 44px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.agenda td { height: 44px; padding: 0 5px; vertical-align: middle; border-left: 1px solid var(--line); position: relative; }
.agenda .entry { font-family: var(--font-pen); font-weight: 600; font-size: 1.125rem; line-height: 1; color: var(--pen); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.agenda .free { display: block; height: 1px; border-top: 1px dashed var(--line-2); width: 70%; }
.agenda .gap th, .agenda .gap td { border-top: 2px solid var(--ink); }
.slot .mark { position: absolute; inset: 7px 3px; border-radius: 3px; background: var(--marker); transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease-out); }
.slot .entry { position: relative; clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease-out) 260ms; }
.demo.is-booked .slot .mark { transform: scaleX(1); }
.demo.is-booked .slot .entry { clip-path: inset(0 0 0 0); }

.chat { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 300px; }
.msg {
  max-width: 92%; padding: 8px 11px; border-radius: 12px; font-size: 0.8438rem; line-height: 1.45;
  opacity: 0; transform: translateY(6px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
}
.msg.is-in { opacity: 1; transform: none; }
.msg--patient { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg--engine { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg b { font-weight: 650; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.typing.is-on { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.demo__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.replay { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: border-color var(--t-fast); }
.replay:hover { border-color: var(--ink-3); }
.replay svg { width: 14px; height: 14px; }

/* The appointment card (cartão de retorno): what the patient walks away with. */
.appt {
  position: absolute; left: 0; bottom: 0; width: min(360px, 86%);
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-card);
  transform: rotate(-2.5deg) translateY(10px); opacity: 0;
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
}
@media (max-width: 639px) { .appt { position: relative; margin: -28px 0 0 8px; width: min(360px, 96%); } }
.demo.is-booked .appt { opacity: 1; transform: rotate(-2.5deg) translateY(0); }
.appt__stub {
  display: grid; place-items: center; border-right: 2px dashed var(--line-2); background: var(--pen-50);
  border-radius: 10px 0 0 10px; color: var(--pen-600); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.appt__body { padding: 12px 14px 14px; position: relative; }
.appt__title { font-size: 0.8125rem; font-weight: 650; letter-spacing: -0.005em; display: flex; justify-content: space-between; gap: 8px; }
.appt__title span { color: var(--ink-3); font-weight: 500; }
.appt__lines { display: grid; gap: 5px; margin-top: 8px; }
.appt__line { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: end; gap: 6px; font-size: 0.75rem; color: var(--ink-3); }
.appt__line > span:last-child { border-bottom: 1px solid var(--line-2); min-height: 22px; display: flex; align-items: flex-end; overflow: hidden; }
.appt__line .pen { font-size: 1.1875rem; line-height: 1.05; clip-path: inset(0 100% 0 0); transition: clip-path 640ms var(--ease-out); white-space: nowrap; }
.demo.is-booked .appt__line .pen { clip-path: inset(0 0 0 0); }
.demo.is-booked .appt__line:nth-child(1) .pen { transition-delay: 700ms; }
.demo.is-booked .appt__line:nth-child(2) .pen { transition-delay: 1150ms; }
.demo.is-booked .appt__line:nth-child(3) .pen { transition-delay: 1550ms; }
.demo.is-booked .appt__line:nth-child(4) .pen { transition-delay: 1950ms; }
.stamp {
  position: absolute; right: 12px; top: 44px; padding: 3px 8px; border: 2px solid var(--pen); border-radius: 6px;
  color: var(--pen); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(-9deg) scale(1.6); opacity: 0; mix-blend-mode: multiply;
  transition: opacity 180ms ease-out, transform 260ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.demo.is-booked .stamp { opacity: 0.9; transform: rotate(-9deg) scale(1); transition-delay: 2500ms; }

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--bg-soft); }
.facts__list { display: grid; gap: var(--space-4); padding-block: var(--space-6); }
@media (min-width: 768px) { .facts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); } }
.facts__list li { display: flex; align-items: center; gap: var(--space-3); font-weight: 550; letter-spacing: -0.01em; }
.facts__list svg { width: 22px; height: 22px; color: var(--pen); flex: none; }

/* ---------- Problem: the night message, beside the three reasons ---------- */
.problem__head { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .problem__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-16); } }
.problem { display: grid; gap: var(--space-10); margin-top: var(--space-12); align-items: center; }
@media (min-width: 1024px) { .problem { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-16); } }
.night { position: relative; border-radius: var(--r-lg); background: var(--bg-soft); overflow: hidden; }
.night__app { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; }
.night__app .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.night__thread { display: flex; flex-direction: column; gap: 10px; padding: var(--space-6) var(--space-5) var(--space-8); }
.night .msg { opacity: 1; transform: none; max-width: 84%; }
.night__time { align-self: center; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); padding: 2px 10px; border-radius: 999px; background: #fff; }
.night__gap { align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--error); padding-block: var(--space-3); }
.night__gap::before, .night__gap::after { content: ""; width: 36px; border-top: 2px dashed color-mix(in srgb, var(--error) 40%, transparent); }
.night__tag { position: absolute; right: 12px; top: 10px; font-size: 0.75rem; color: var(--ink-3); }
.points { border-top: 1px solid var(--line); }
.points > div { padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.points dd { margin-top: var(--space-2); color: var(--ink-2); max-width: 56ch; }

/* ---------- How it works (sticky screen) ---------- */
.how { display: grid; gap: var(--space-10); margin-top: var(--space-12); }
@media (min-width: 1024px) { .how { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-16); } }
.how__screen-wrap { position: sticky; top: calc(var(--header-h) + 12px); z-index: 2; align-self: start; }
@media (min-width: 1024px) { .how__screen-wrap { order: 2; top: calc(var(--header-h) + 48px); } }
.how__screen {
  position: relative; height: 300px; border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-md); overflow: hidden;
}
@media (min-width: 1024px) { .how__screen { height: 340px; } }
@media (max-width: 1023px) { .how__screen { height: 268px; } }
.screen { position: absolute; inset: 0; padding: 64px var(--space-6) var(--space-6); display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
@media (max-width: 1023px) { .screen { padding: 52px var(--space-4) var(--space-4); gap: 7px; } .screen .msg { font-size: 0.8125rem; padding: 7px 10px; } .screen .hide-sm { display: none; } }
.screen.is-active { opacity: 1; transform: none; }
.screen__app { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; font-size: 0.8125rem; font-weight: 600; }
.screen__app small { font-weight: 500; color: var(--ink-3); margin-left: auto; }
.screen__app .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.screen .msg { opacity: 1; transform: none; max-width: 82%; }
.bubble-meta { font-size: 0.6875rem; color: var(--ink-3); }
.week { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 0.75rem; }
.week > span { color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.week b { font-weight: 600; color: var(--ink-2); text-align: center; }
.week .s { height: 34px; border-radius: 6px; border: 1px dashed var(--line-2); background: #fff; }
.week .s--busy { border: 0; background: var(--line); }
.week .s--pick { border: 0; background: var(--marker); display: flex; align-items: center; padding-inline: 8px; font-family: var(--font-pen); font-weight: 600; font-size: 1.0625rem; color: var(--pen); }
.ok-line { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.8125rem; font-weight: 600; color: var(--ok); }
.ok-line svg { width: 16px; height: 16px; }
.steps-how { display: grid; gap: var(--space-4); counter-reset: how; }
@media (min-width: 1024px) { .steps-how { gap: 0; } }
.step-how { padding: var(--space-5) 0 var(--space-5) var(--space-12); border-top: 1px solid var(--line); position: relative; transition: opacity var(--t-fast); }
@media (min-width: 1024px) { .step-how { min-height: 21vh; display: flex; flex-direction: column; justify-content: center; } }
.step-how::before {
  counter-increment: how; content: counter(how); position: absolute; left: 0; top: var(--space-5);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.875rem; font-weight: 650; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
@media (min-width: 1024px) { .step-how::before { top: 50%; margin-top: -54px; } }
.js .step-how:not(.is-active) h3, .js .step-how:not(.is-active) p { color: var(--ink-3); }
.step-how.is-active::before { background: var(--pen); border-color: var(--pen); color: #fff; }
.step-how p { margin-top: var(--space-2); color: var(--ink-2); max-width: 46ch; }
.step-how .chips { margin-top: var(--space-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 550; color: var(--ink-2); }
.how__demo { margin-top: var(--space-10); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Handoff (dark band) ---------- */
.handoff { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) { .handoff { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); } }
.section--ink .lead { color: var(--on-ink-2); }
.handoff__list { display: grid; gap: var(--space-5); margin-top: var(--space-8); }
.handoff__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); }
.handoff__list svg { width: 22px; height: 22px; color: #9DB3FF; margin-top: 2px; }
.handoff__list strong { font-weight: 600; letter-spacing: -0.01em; }
.handoff__list span { display: block; color: var(--on-ink-2); }
.panel { border-radius: var(--r-lg); background: var(--ink-raised); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); overflow: hidden; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); font-size: 0.8125rem; color: var(--on-ink-2); }
.panel__bar strong { color: var(--on-ink); font-weight: 600; }
.panel__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ink-line); font-size: 0.875rem; }
.panel__row--active { background: rgba(157, 179, 255, 0.08); box-shadow: inset 2px 0 0 #9DB3FF; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #26304A; color: var(--on-ink); font-weight: 600; font-size: 0.8125rem; }
.panel__row b { display: block; font-weight: 600; color: var(--on-ink); }
.panel__row small { color: var(--on-ink-2); font-size: 0.8125rem; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge--new { background: var(--pen); color: #fff; }
.badge--muted { background: #232B40; color: var(--on-ink-2); }
.panel__reply { padding: 14px 16px; display: grid; gap: 10px; }
.panel__quote { font-size: 0.875rem; color: var(--on-ink); border-left: 2px solid var(--ink-line); padding: 2px 0 2px 12px; }
.panel__quote span { display: block; font-size: 0.75rem; color: var(--on-ink-2); margin-bottom: 2px; }
.panel__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #2E3955; border-radius: 10px; padding: 9px 9px 9px 12px; font-size: 0.875rem; color: var(--on-ink-2); }
.panel__input i { font-style: normal; padding: 6px 12px; border-radius: 8px; background: var(--pen); color: #fff; font-weight: 600; font-size: 0.8125rem; }
.handoff__note { margin-top: var(--space-6); font-size: 0.9375rem; color: var(--on-ink-2); }

/* ---------- Deliverables bento ---------- */
.bento { display: grid; gap: var(--space-4); margin-top: var(--space-12); }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; padding: var(--space-6); }
.tile h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.tile p { margin-top: var(--space-2); color: var(--ink-2); font-size: 0.9688rem; }
.tile .chips { margin-top: auto; padding-top: var(--space-5); }
.tile .chips span { background: var(--bg-soft); }
.tile__ui { margin-bottom: var(--space-6); border-radius: var(--r-md); background: var(--bg-soft); padding: var(--space-4); display: grid; gap: 8px; }
.tile__ui .msg { opacity: 1; transform: none; max-width: 80%; font-size: 0.8125rem; margin: 0; }
.tile__ui .msg--patient { color: #fff; }
.tile__ui .msg--engine { color: var(--ink); }
.queue { display: grid; gap: 0; }
.queue div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px; font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
.queue div:last-child { border-bottom: 0; }
.specs { display: grid; margin-top: var(--space-10); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); } }
.specs > div { padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; letter-spacing: -0.012em; }
.specs dd { margin-top: var(--space-1); color: var(--ink-2); font-size: 0.9688rem; }
.queue small { color: var(--ink-3); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; gap: var(--space-8); margin-top: var(--space-12); counter-reset: tl; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.tl { position: relative; padding-top: var(--space-10); }
.tl::before {
  counter-increment: tl; content: counter(tl); position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8125rem; font-weight: 650; background: var(--pen); color: #fff; z-index: 1;
}
.tl::after { content: ""; position: absolute; top: 13px; left: 36px; right: -8px; height: 2px; background: linear-gradient(90deg, var(--pen-100), var(--line)); }
.tl:last-child::after { display: none; }
@media (max-width: 899px) { .tl::after { display: none; } }
.tl p { margin-top: var(--space-2); color: var(--ink-2); font-size: 0.9688rem; }
.tl .delivers { display: inline-block; margin-top: var(--space-4); padding: 3px 10px; border-radius: 999px; background: var(--pen-50); color: var(--pen-600); font-size: 0.8125rem; font-weight: 600; }

/* ---------- Pricing ---------- */
.price { display: grid; gap: var(--space-8); margin-top: var(--space-12); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-md); padding: var(--space-8); }
@media (min-width: 900px) { .price { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: var(--space-12); gap: var(--space-12); } }
.price__amount { display: flex; align-items: baseline; gap: 8px; margin-top: var(--space-4); }
.price__amount small { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.price__amount strong { font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount span { font-size: 1.0625rem; color: var(--ink-3); }
.price__note { margin-top: var(--space-4); color: var(--ink-2); font-size: 0.9688rem; max-width: 42ch; }
.price__actions { display: grid; gap: var(--space-3); margin-top: var(--space-8); }
@media (min-width: 520px) { .price__actions { grid-template-columns: auto auto; justify-content: start; } }
.price__list { display: grid; gap: var(--space-3); align-content: start; }
@media (min-width: 600px) { .price__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }
.price__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.price__list svg { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.price__list strong { display: block; font-weight: 600; }
.price__list span { display: block; color: var(--ink-3); font-size: 0.9063rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: var(--space-10); }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--space-16); } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--pen); }
.faq details p { padding-bottom: var(--space-5); color: var(--ink-2); max-width: 62ch; }

/* ---------- Contact ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: start; }
@media (min-width: 1024px) { .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); } }
.cta__list { display: grid; gap: var(--space-3); margin-top: var(--space-8); }
.cta__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.cta__list svg { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; flex: none; }
.cta__alt { margin-top: var(--space-8); display: grid; gap: var(--space-3); justify-items: start; }

/* The diagnosis form, printed as an appointment card. */
.lead-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); }
.lead-card__stub {
  border-right: 2px dashed var(--line-2); background: var(--pen-50); border-radius: var(--r-lg) 0 0 var(--r-lg);
  display: grid; place-items: center; color: var(--pen-600); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.lead-card__body { padding: var(--space-6); min-width: 0; }
@media (min-width: 640px) { .lead-card__body { padding: var(--space-8); } }
.lead-card__head p { margin-top: var(--space-2); color: var(--ink-3); font-size: 0.9375rem; }
.form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff;
  font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: #6B7486; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-100); }
.field.has-error .input { border-color: var(--error); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px #FCD9D6; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
select.input { appearance: none; padding-right: 36px; cursor: pointer; }
.field__error { display: none; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--error); }
.field.has-error .field__error { display: flex; }
.field__error svg, .form__status svg { width: 16px; height: 16px; flex: none; }
.form__status { display: none; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--error-bg); color: var(--error); font-size: 0.9375rem; }
.form__status.is-visible { display: flex; }
.form__note { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-success { padding-block: var(--space-4); }
.lead-success:focus { outline: none; }
.lead-success__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-6); border-radius: 50%; background: var(--pen); color: #fff; }
.lead-success__icon svg { width: 24px; height: 24px; }
.lead-success__icon .spinner { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.lead-success p { margin-top: var(--space-2); color: var(--ink-2); }
.lead-success .btn { margin-top: var(--space-6); }

/* ---------- Footer & sticky ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-8); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.site-footer p { font-size: 0.875rem; color: var(--ink-3); }
.footer-contact { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.footer-contact:hover { color: var(--pen); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 300ms var(--ease-out); }
.sticky-cta.is-shown { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 84px; } }

@media (prefers-reduced-motion: reduce) {
  .msg, .appt, .stamp, .slot .mark, .slot .entry, .appt__line .pen, .screen, .sticky-cta { transition: none !important; }
  .typing i { animation: none; }
}
