/* Tia Médica — home experimental "As duas pontas do fio" (setembro/2026).
 * Proposta sujeita à aprovação do fundador; registro completo em DESIGN.md.
 * Marca travada: papel creme, tinta azul-petróleo, coral como única cor de chamada,
 * Fraunces itálico · Nunito · JetBrains Mono, raios 16/20/999, sombra sempre em tinta diluída.
 */

/* ============================ tokens ============================ */
:root {
  /* papel e tinta */
  --color-paper:       oklch(97.6% 0.008 80);
  --color-paper-2:     oklch(95.3% 0.012 80);
  --color-surface:     oklch(99.4% 0.005 80);
  --color-rule:        oklch(92.5% 0.018 80);
  --color-rule-2:      oklch(88% 0.02 80);
  --color-ink:         oklch(36.5% 0.045 218);
  --color-ink-deep:    oklch(30% 0.045 218);
  --color-ink-2:       oklch(48% 0.04 212);      /* 6,0:1 no papel */

  /* coral — a chamada */
  --color-accent:      oklch(68% 0.16 38);       /* só grafismo: fio, coração, marcador */
  --color-accent-ink:  oklch(58.5% 0.15 36);     /* palavra em destaque, só em corpo grande */
  --color-call:        oklch(53% 0.15 36);       /* ação primária e coral em texto pequeno — 5,3:1 */
  --color-call-deep:   oklch(47% 0.14 36);
  --color-accent-soft: oklch(93% 0.03 40);
  --color-focus:       oklch(53% 0.15 36);

  /* teal — o que ficou registrado */
  --color-teal:        oklch(55% 0.095 180);
  --color-teal-ink:    oklch(48% 0.085 182);
  --color-teal-soft:   oklch(94% 0.025 185);
  --color-teal-layer:  oklch(88.5% 0.04 188);
  --color-teal-thread: oklch(80% 0.055 190);     /* o terceiro fio da trança */

  /* lilás — só a ponta de quem cuida */
  --color-lilac-ink:   oklch(48% 0.2 292);
  --color-lilac-soft:  oklch(94% 0.03 300);
  --color-lilac-layer: oklch(87.5% 0.06 298);

  /* WhatsApp — só em representação literal da conversa */
  --color-wpp-bg:      oklch(92% 0.012 80);
  --color-wpp-bubble:  oklch(95% 0.06 130);
  --color-wpp-tick:    oklch(50% 0.13 235);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-sm:      0.9375rem;
  --text-base:    1.125rem;
  --text-md:      1.25rem;
  --text-lg:      1.4375rem;
  --text-xl:      1.75rem;
  --text-2xl:     clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem);
  --text-3xl:     clamp(2rem, 2.4vw + 1.2rem, 3rem);
  --text-display: clamp(2.125rem, 2.6vw + 1.3rem, 3.5rem);

  --space-2xs: 0.25rem; --space-xs: 0.5rem; --space-sm: 0.75rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2.5rem; --space-2xl: 4rem; --space-3xl: 6rem;
  --space-section: clamp(4rem, 7vw, 7rem);
  --page-gutter: clamp(1.125rem, 4vw, 3rem);
  --page-max: 72rem;

  --radius-pill: 999px; --radius-card: 20px; --radius-icon: 16px;
  --layer: 10px;                                  /* a segunda folha dos cartões de conversa */

  --shadow-whisper: 0 1px 2px oklch(36.5% 0.045 218 / 0.07);
  --shadow-soft:    0 10px 30px oklch(36.5% 0.045 218 / 0.06);
  --shadow-mid:     0 16px 34px oklch(36.5% 0.045 218 / 0.1);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short: 220ms; --dur-long: 420ms;

  --z-raised: 10; --z-dock: 250; --z-nav: 300;
  --bar-h: 72px;
}

/* ============================ base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem);
  -webkit-text-size-adjust: 100%; scrollbar-color: var(--color-rule-2) var(--color-paper); accent-color: var(--color-call);
}
body {
  overflow-x: clip; margin: 0;
  background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 {
  font-family: var(--font-display); font-style: italic; font-optical-sizing: auto;
  font-weight: 600; line-height: 1.1; letter-spacing: -0.012em; margin: 0;
  overflow-wrap: anywhere; min-width: 0; text-wrap: balance;
}
h1 { font-size: var(--text-display); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); font-weight: 540; }
h3 { font-size: var(--text-xl); line-height: 1.18; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 800; }
::selection { background: var(--color-accent-soft); color: var(--color-ink-deep); }
.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; }

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

/* ============================ utilitários ============================ */
.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); }
.lede { font-size: var(--text-md); color: var(--color-ink-2); line-height: 1.55; max-width: 54ch; }
.fine { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.5; }
.word { color: var(--color-accent-ink); }
.time { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.price { font-weight: 800; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--color-ink); }
.ico { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin-inline-end: 0.5em; background: var(--color-call); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico--cadeado { --ico: url(/assets/icones/cadeado.svg); }
.ico--telefone { --ico: url(/assets/icones/telefone.svg); }
.skip { position: absolute; inset-inline-start: -9999px; top: var(--space-xs); background: var(--color-ink); color: var(--color-paper); padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); z-index: calc(var(--z-nav) + 1); }
.skip:focus { inset-inline-start: var(--space-md); }

.stars { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35em; color: var(--color-ink-2); }
.stars li { padding-inline-start: 1.35em; position: relative; }
.stars li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.42em; width: 0.8em; height: 0.8em; background: var(--color-call); -webkit-mask: url(/assets/icones/estrela.svg) center / contain no-repeat; mask: url(/assets/icones/estrela.svg) center / contain no-repeat; }

/* status — o que existe, o que está em piloto, o que é plano */
.status {
  display: inline-flex; align-items: center; min-height: 1.9em; padding: 0.1em 0.8em; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 800; line-height: 1.2; white-space: nowrap; letter-spacing: 0.01em;
}
.status--live  { background: var(--color-ink); color: var(--color-paper); }
.status--pilot { background: var(--color-accent-soft); color: var(--color-call-deep); }
.status--plan  { background: transparent; color: var(--color-ink-2); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); }

/* o fio trançado */
.fio-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fio__a, .fio__b, .fio__c { fill: none; stroke-width: 3.5; stroke-linecap: butt; stroke-linejoin: round; }
.fio__a { stroke: var(--color-accent); }
.fio__b { stroke: var(--color-ink); }
.fio__c { stroke: var(--color-teal-thread); }

/* ============================ ações ============================ */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 52px; padding: 0.7em 1.5em;
  background: var(--color-call); color: var(--color-paper); font-weight: 800; font-size: var(--text-base); line-height: 1.1;
  text-decoration: none; text-align: center; border-radius: var(--radius-pill); box-shadow: var(--shadow-soft);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform 100ms var(--ease-out);
}
.cta:hover { background: var(--color-call-deep); box-shadow: var(--shadow-mid); }
.cta:active { transform: translateY(1px); box-shadow: var(--shadow-whisper); }
.cta__icon { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cta--lg { min-height: 60px; font-size: var(--text-md); padding: 0.75em 1.7em 0.75em 1.35em; }
.cta--nav { min-height: 46px; padding: 0.5em 1.15em 0.5em 0.95em; font-size: 1rem; box-shadow: none; white-space: nowrap; }

.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0.6em 1.3em; border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 2px var(--color-ink); color: var(--color-ink); background: transparent;
  font-weight: 800; font-size: 1rem; line-height: 1.1; text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform 100ms var(--ease-out);
}
.chip:hover { background: var(--color-ink); color: var(--color-paper); }
.chip:active { transform: translateY(1px); }

.link {
  display: inline-block; color: var(--color-ink); font-weight: 800; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--color-accent); padding-block: 0.5em 0.3em;
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.link:hover { color: var(--color-call); border-color: var(--color-call); }
.link--go::after, .link--down::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-inline-start: 0.35em; vertical-align: -0.14em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: transform var(--dur-short) var(--ease-out); }
.link--go { --ico: url(/assets/icones/seta.svg); }
.link--down { --ico: url(/assets/icones/seta-baixo.svg); }
.link--go:hover::after { transform: translateX(3px); }
.link--down:hover::after { transform: translateY(3px); }

/* ============================ nav ============================ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: var(--bar-h);
  background: color-mix(in oklch, var(--color-paper) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--color-rule); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav__brand { display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; }
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { text-decoration: none; font-weight: 800; font-size: 1.0625rem; white-space: nowrap; border-bottom: 2px solid transparent; padding-block: 0.5em 0.4em; transition: border-color var(--dur-short) var(--ease-out); }
.nav__links a:hover { border-bottom-color: var(--color-accent); }
.nav__right { display: flex; align-items: center; gap: var(--space-sm); }
.nav__menu { display: none; }
@media (max-width: 60rem) {
  :root { --bar-h: 64px; }
  .nav__brand img { height: 40px; }
  .nav__links {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-paper); border-bottom: 1px solid var(--color-rule); box-shadow: var(--shadow-mid);
    padding: var(--space-xs) var(--page-gutter) var(--space-lg);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-md); }
  .nav__menu {
    display: block; position: relative; width: 46px; height: 46px; border: 0; box-shadow: inset 0 0 0 2px var(--color-rule-2);
    background: transparent; border-radius: 50%; cursor: pointer; padding: 0; flex: none;
  }
  .nav__menu span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: var(--color-ink); border-radius: 2px; transition: transform var(--dur-short) var(--ease-in-out), opacity var(--dur-short) var(--ease-in-out); }
  .nav__menu span:nth-child(1) { transform: translateY(-6px); }
  .nav__menu span:nth-child(3) { transform: translateY(6px); }
  .nav__menu[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__menu[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
}
@media (max-width: 60rem) { .nav.has-dock .cta--nav { visibility: hidden; } }
@media (max-width: 26rem) {
  .nav__brand img { height: 36px; }
  .cta--nav { padding-inline: 0.8em 0.95em; font-size: 0.9375rem; }
}

/* ============================ hero · as duas pontas do fio ============================ */
.hero { padding-block: calc(var(--bar-h) + var(--space-lg)) var(--space-section); }
/* até 72rem: uma coluna; o status fica junto da ação e o aparte desce para depois da conversa */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.hero__copy { display: contents; }
.hero__copy h1 { order: 1; max-width: 17ch; }
.hero__copy .lede { order: 2; max-width: 44ch; }
.hero__actions { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xs); }
.hero__stage { order: 5; margin-top: var(--space-md); }
.hero__status { order: 4; font-size: 1rem; color: var(--color-ink-2); line-height: 1.5; max-width: 40ch; }
.hero__status .status { margin-inline-end: 0.35em; }
.hero__self { order: 6; font-size: 1rem; color: var(--color-ink-2); max-width: 40ch; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
@media (min-width: 72rem) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); }
  .hero__copy { display: grid; gap: var(--space-lg); align-content: start; padding-top: var(--space-lg); }
  .hero__copy h1 { max-width: 15ch; }
  .hero__copy .lede { max-width: none; font-size: 1.1875rem; }
  .hero__stage { justify-self: end; margin-top: 0; }
}

.hero__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; width: 100%; max-width: 40rem; }
.plate { grid-column: 6 / -1; grid-row: 1; margin: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 5; }
.plate picture { display: block; width: 100%; height: 100%; }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.duo { grid-column: 1 / -1; grid-row: 1; z-index: var(--z-raised); padding-top: var(--space-sm); display: grid; justify-items: start; }
.phone { position: relative; z-index: 1; display: grid; gap: var(--space-xs); width: min(22rem, 100%); }
.phone--you { width: min(21rem, calc(100% - var(--layer))); margin-inline-end: var(--layer); }
.phone__who { font-size: 0.9375rem; font-weight: 800; color: var(--color-ink); padding-inline-start: var(--space-2xs); }
.phone--you .phone__who { color: var(--color-lilac-ink); }
.phone--her .phone__who { background: var(--color-paper); justify-self: start; padding: 0.15em 0.7em; border-radius: var(--radius-pill); box-shadow: var(--shadow-whisper); }
.duo__end { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-md); width: 100%; }
.duo__end .phone--you { grid-column: 2; grid-row: 1; }
.duo__foot { grid-column: 1; grid-row: 1; font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.4; padding-bottom: var(--layer); text-align: end; }

/* a travessia: o fio sai de baixo do cartão dela e entra por cima do cartão de quem cuida */
.duo__link { --hop-path: path("M30 -8 C30 60 300 36 300 104 C300 116 300 128 300 144"); position: relative; z-index: 0; width: 330px; height: 88px; margin-inline-start: 4.5rem; }
.duo__fio { position: absolute; inset-block-start: -4px; inset-inline-start: 0; max-width: none; }
.duo__fio--estreito { display: none; }
.duo__hop { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 0.875rem; font-weight: 700; color: var(--color-ink-2); line-height: 1.3; background: var(--color-paper); padding: 0.35em 0.9em; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); }
.duo__hop .time { color: var(--color-ink); margin-inline-end: 0.3em; font-size: 0.9375rem; }
.duo__pulse { position: absolute; top: -4px; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-paper); opacity: 0; pointer-events: none; offset-path: var(--hop-path); offset-rotate: 0deg; }
@supports (offset-path: path("M0 0 L1 1")) { .duo.is-sending .duo__pulse { animation: pulso 1100ms var(--ease-in-out) both; } }
@keyframes pulso { 0% { opacity: 0; offset-distance: 4%; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; offset-distance: 96%; } }
@media (max-width: 40rem) {
  .hero__grid { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--space-md); }
  .hero__copy h1, .hero__copy .lede, .hero__actions, .hero__status, .duo { grid-column: 1 / -1; }
  .hero__stage { display: contents; }
  .duo { order: 5; grid-row: auto; padding-top: 0; padding-inline: 0; margin-top: var(--space-xs); }
  .plate { order: 6; grid-column: 1; grid-row: auto; aspect-ratio: 4 / 5; align-self: center; box-shadow: var(--shadow-whisper); }
  .plate img { object-position: 50% 10%; }
  .hero__self { order: 7; grid-column: 2; align-self: center; border-top: 0; padding-top: 0; font-size: 1.0625rem; color: var(--color-ink); }
  .phone, .phone--you { width: calc(100% - var(--layer)); }
  .phone--you { margin-inline-end: 0; }
  .duo__end { grid-template-columns: minmax(0, 1fr); }
  .duo__end .phone--you { grid-column: 1; grid-row: 1; }
  .duo__foot { grid-row: 2; padding-bottom: 0; text-align: start; }
  .duo__link { --hop-path: path("M24 -8 C24 50 236 34 236 92 C236 104 236 116 236 132"); width: 260px; height: 76px; margin-inline-start: var(--space-lg); }
  .duo__fio--largo { display: none; }
  .duo__fio--estreito { display: block; }
  .hero__actions .cta { width: 100%; font-size: var(--text-base); padding-inline: 1em; }
}

/* conversa — o produto é a conversa; sem moldura de celular */
.chat {
  position: relative; margin: 0; background: var(--color-wpp-bg); border-radius: var(--radius-card);
  box-shadow: var(--layer) var(--layer) 0 var(--color-teal-layer), var(--shadow-mid);
}
.chat--you { box-shadow: var(--layer) var(--layer) 0 var(--color-lilac-layer), var(--shadow-mid); }
.chat__head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-surface); border-bottom: 1px solid var(--color-rule); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.chat__head img { width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-rule); }
.chat__name { font-weight: 800; line-height: 1.15; font-size: 1rem; }
.chat__status { font-size: 0.875rem; color: var(--color-ink-2); line-height: 1.2; min-height: 1.2em; }
.chat__body { display: grid; gap: 7px; padding: 14px var(--space-md); align-content: start; }
.msg {
  max-width: 92%; padding: 0.5em 0.8em 0.35em; border-radius: 14px; background: var(--color-surface); color: var(--color-ink);
  font-size: 1rem; line-height: 1.42; box-shadow: var(--shadow-whisper); justify-self: start; border-start-start-radius: 4px;
}
.msg--me { justify-self: end; background: var(--color-wpp-bubble); border-start-start-radius: 14px; border-start-end-radius: 4px; }
.msg__meta { display: flex; justify-content: flex-end; gap: 0.35em; align-items: baseline; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--color-ink-2); margin-top: 0.1em; }
.msg__meta .tick { align-self: center; width: 1.25em; height: 1.25em; background: var(--color-wpp-tick); -webkit-mask: url(/assets/icones/checks.svg) center / contain no-repeat; mask: url(/assets/icones/checks.svg) center / contain no-repeat; }
.msg.is-new { animation: msg-in var(--dur-long) var(--ease-out) both; }
.msg.is-landing { animation: pousa 1200ms var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pousa { 0% { box-shadow: 0 0 0 0 var(--color-lilac-layer), var(--shadow-whisper); } 30% { box-shadow: 0 0 0 6px var(--color-lilac-layer), var(--shadow-whisper); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow-whisper); } }
.typing { display: inline-flex; gap: 4px; padding: 0.7em 0.9em; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink-2); animation: typing 1s infinite var(--ease-in-out); }
.typing i:nth-child(2) { animation-delay: 150ms; } .typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat__quiet { font-size: 0.9375rem; color: var(--color-ink-2); line-height: 1.45; text-align: center; padding: var(--space-xs) var(--space-sm); }
.chat__try { display: grid; gap: 6px; padding: 10px var(--space-md) 14px; border-top: 1px dashed var(--color-rule-2); }
.chat__try[hidden] { display: none; }
.chat__try-label { font-size: 0.875rem; font-weight: 800; color: var(--color-ink); line-height: 1.3; }
.chat__replies { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.reply {
  min-height: 44px; padding: 0.45em 1.1em; border-radius: var(--radius-pill); border: 0; box-shadow: inset 0 0 0 2px var(--color-teal); background: var(--color-surface);
  color: var(--color-ink); font-weight: 800; font-size: 1rem; white-space: nowrap; cursor: pointer; line-height: 1;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform 100ms var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.reply:hover { background: var(--color-teal-ink); color: var(--color-paper); box-shadow: inset 0 0 0 2px var(--color-teal-ink); }
.reply:active { transform: translateY(1px); }
.reply[disabled] { opacity: 0.5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .typing i, .msg.is-new, .msg.is-landing { animation: none; } }

/* cartão de conversa com o avatar pousado na borda, como nos posts */
.chat--perch { margin-top: 24px; width: calc(100% - var(--layer)); max-width: 26rem; }
.chat--perch .chat__body { padding-top: calc(var(--space-md) + 18px); }
.chat__note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.6em; padding: 0 var(--space-md) 14px; font-size: 0.9375rem; font-weight: 700; color: var(--color-ink-2); line-height: 1.4; }
.chat__note .status { background: var(--color-surface); }
.chat__perch { position: absolute; top: -24px; inset-inline-start: var(--space-md); width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 3px var(--color-surface), var(--shadow-whisper); }

/* ============================ tese · o intervalo ============================ */
.gap { padding-block: var(--space-section); background: var(--color-paper-2); }
.gap h2 { max-width: 24ch; }
.gap__line { display: flex; align-items: center; gap: var(--space-sm); margin-block: var(--space-xl) var(--space-lg); }
.gap__node {
  flex: none; font-weight: 800; font-size: 0.9375rem; color: var(--color-ink);
  background: var(--color-surface); padding: 0.5em 0.95em; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2);
}
.gap__fio { flex: 1; min-width: 0; width: 100%; }
.gap__cut { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-xl); line-height: 1.2; color: var(--color-call); text-align: center; }

/* ============================ um dia com a Tia ============================ */
.day { padding-block: var(--space-section); }
.day__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.day__list { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xl); }
/* o fio da linha do tempo. Parado e inteiro por padrão; com JS e movimento liberado ele desce
   com a rolagem, trançando: --fio-corte é até onde já desceu, --fio-fase é o giro da trama. */
.day__fio { position: absolute; inset-block: 0; inset-inline-start: 0; width: 28px; z-index: 0; }
.day__fio::before, .day__fim { content: ""; position: absolute; inset-inline-start: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 4px var(--color-paper); }
.day__fio::before { top: -6px; z-index: 1; }
.day__fim { bottom: -6px; }
.day__guia { position: absolute; inset-block: 0; inset-inline-start: 13px; width: 2px; border-radius: 2px; background: var(--color-rule-2); }
.day__trama { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 calc(100% - var(--fio-corte, 100%)) 0); }
.day__trama svg { position: absolute; inset-inline-start: 0; top: -64px; width: 28px; height: calc(100% + 64px); transform: translateY(var(--fio-fase, 0px)); }
.day__cauda { display: none; position: absolute; inset-inline-start: 0; top: var(--fio-corte, 100%); width: 28px; height: 40px; overflow: visible; }
.day__cauda path { stroke-linecap: round; }
.day__fio.is-vivo .day__cauda { display: block; }
.day__fio.is-vivo .day__fim { display: none; }
.moment { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-inline-start: calc(28px + var(--space-lg)); }
.moment__time {
  justify-self: start; display: inline-flex; align-items: baseline; gap: 0.55em; margin-inline-start: calc((28px + var(--space-lg)) * -1);
  background: var(--color-paper); padding: 0.3em 0.9em 0.3em 0.75em; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-rule-2);
  font-size: 1.0625rem; line-height: 1.2;
}
.moment__when { font-size: 0.875rem; font-weight: 800; color: var(--color-ink-2); }
.moment__time { transition: box-shadow var(--dur-long) var(--ease-out); }
.moment.is-reached .moment__time { box-shadow: inset 0 0 0 2px var(--color-ink); }
.moment--you.is-reached .moment__time { box-shadow: inset 0 0 0 2px var(--color-lilac-ink); }
.moment--you .moment__time { box-shadow: inset 0 0 0 1.5px var(--color-lilac-layer); background: var(--color-lilac-soft); }
.moment--you .moment__when { color: var(--color-lilac-ink); }
.moment__copy { display: grid; gap: var(--space-md); align-content: start; }
.moment__copy h3 { max-width: 20ch; font-size: var(--text-2xl); }
.moment__copy p { max-width: 52ch; color: var(--color-ink-2); }
.moment__copy p strong { color: var(--color-ink); }
.moment__copy .moment__pull { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-lg); line-height: 1.3; color: var(--color-ink); }
.moment__copy .moment__aside { padding: var(--space-md) var(--space-lg); background: var(--color-accent-soft); border-radius: var(--radius-icon); font-size: 1rem; color: var(--color-ink); line-height: 1.5; }
.pact { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; justify-items: start; counter-reset: pact; }
.pact li { counter-increment: pact; display: inline-flex; align-items: baseline; gap: 0.6em; font-weight: 800; font-size: 1.0625rem; color: var(--color-ink); background: var(--color-lilac-soft); padding: 0.45em 1.1em 0.45em 0.9em; border-radius: var(--radius-pill); line-height: 1.25; }
.pact li::before { content: counter(pact); font-family: var(--font-mono); font-weight: 700; font-size: 0.9375rem; color: var(--color-lilac-ink); }
.day__note { margin-top: calc(var(--space-xl) + 1.25rem); font-size: var(--text-sm); color: var(--color-ink-2); padding-inline-start: calc(28px + var(--space-lg)); }
@media (min-width: 60rem) {
  .day__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: var(--space-2xl); }
  .day__list { gap: 4.5rem; }
  .day__fio { inset-inline-start: calc(50% - 14px); }
  .moment { grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1fr); gap: 0; padding-inline-start: 0; align-items: center; }
  .moment__time { grid-column: 2; grid-row: 1; justify-self: center; margin-inline-start: 0; flex-direction: column; align-items: center; gap: 0.1em; padding: 0.55em 0.9em; border-radius: var(--radius-icon); text-align: center; }
  .moment__copy { grid-column: 1; grid-row: 1; padding-inline-end: var(--space-lg); }
  .moment__chat { grid-column: 3; grid-row: 1; justify-self: start; }
  .moment:nth-child(even) .moment__copy { grid-column: 3; padding-inline: var(--space-lg) 0; }
  .moment:nth-child(even) .moment__chat { grid-column: 1; justify-self: end; margin-inline-end: var(--layer); }
  .day__note { padding-inline-start: 0; text-align: center; }
}

/* ============================ o que a Tia não faz ============================ */
.limits { padding-block: var(--space-section); background: var(--color-paper-2); }
.limits__head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.limits__head h2 { max-width: 18ch; }
.limits__head p { color: var(--color-ink-2); max-width: 56ch; }
@media (min-width: 60rem) { .limits__head { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; } }
.limits__sheet { display: grid; gap: var(--space-xl); background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 48rem) { .limits__sheet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }
.limits__col { display: grid; gap: var(--space-md); align-content: start; }
.limits__col h3 { font-size: var(--text-lg); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule-2); }
.marks { margin: 0; padding: 0; list-style: none; display: grid; }
.marks li { position: relative; padding: 0.7em 0 0.7em 2em; border-bottom: 1px solid var(--color-rule); line-height: 1.4; }
.marks li:last-child { border-bottom: 0; }
.marks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.78em; width: 1.25em; height: 1.25em; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.marks--yes { --ico: url(/assets/icones/check.svg); }
.marks--yes li::before { background: var(--color-teal-ink); }
.marks--no { --ico: url(/assets/icones/recusa.svg); }
.marks--no li::before { background: var(--color-ink-2); }
.limits__to { margin-top: var(--space-xl); max-width: 58ch; font-size: var(--text-md); line-height: 1.5; color: var(--color-ink); }
.limits__cut { margin-top: var(--space-md); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-2xl); line-height: 1.15; color: var(--color-ink); max-width: 24ch; }

/* ============================ ofertas · livro-razão com status ============================ */
.offers { padding-block: var(--space-section); }
.offers__head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.offers__head h2 { max-width: 20ch; }
.legend { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); font-size: 1rem; color: var(--color-ink-2); line-height: 1.5; }
.legend .status { margin-inline-end: 0.4em; }
@media (min-width: 60rem) { .offers__head { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; } }
.ledger { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-ink); }
.offer { display: grid; gap: var(--space-md); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule-2); }
.offer__what { display: grid; gap: var(--space-xs); align-content: start; justify-items: start; }
.offer__what h3 { font-size: var(--text-xl); }
.offer--lead .offer__what h3 { font-size: var(--text-2xl); }
.offer__price { display: grid; gap: 0.1em; line-height: 1.15; }
.offer__price .price { font-size: var(--text-xl); }
.offer--lead .offer__price .price { font-size: var(--text-2xl); }
.offer__tbd { font-weight: 800; font-size: var(--text-md); color: var(--color-ink-2); }
.offer__price small, .offer__prefix { font-weight: 700; font-size: 0.9375rem; color: var(--color-ink-2); line-height: 1.4; }
.offer__status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.6em; }
.offer__status small { font-weight: 700; font-size: 0.9375rem; color: var(--color-ink-2); }
.offer__desc { display: grid; gap: var(--space-sm); align-content: start; color: var(--color-ink-2); }
.offer__desc > p:first-child { color: var(--color-ink); }
.offer__act { display: flex; align-items: flex-start; }
@media (min-width: 60rem) {
  .offer { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 4.4fr) minmax(0, 3fr); gap: var(--space-lg); }
  .offer__act .cta, .offer__act .chip { white-space: nowrap; }
  .offer__status { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; align-self: start; padding-top: 0.35em; }
  .offer__what { grid-column: 2; grid-row: 1; }
  .offer__desc { grid-column: 3; grid-row: 1; }
  .offer__act { grid-column: 4; grid-row: 1; justify-content: flex-end; }
}
.offers__notes { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); font-size: 1rem; color: var(--color-ink-2); max-width: 70ch; line-height: 1.5; }

/* ============================ o compromisso ============================ */
.pledge { padding-block: var(--space-section); background: var(--color-accent-soft); }
.pledge__grid { display: grid; gap: var(--space-xl); align-items: center; }
.pledge__copy { display: grid; gap: var(--space-md); }
.pledge h2 { font-size: var(--text-display); line-height: 1.04; max-width: 13ch; color: var(--color-ink-deep); }
.pledge__lead { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-xl); line-height: 1.2; color: var(--color-call-deep); }
.pledge__copy p:last-child { max-width: 50ch; color: var(--color-ink); }
.pledge__fio { width: min(100%, 24rem); height: auto; justify-self: center; }
@media (min-width: 60rem) { .pledge__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); } .pledge__fio { justify-self: end; } }

/* ============================ dúvidas ============================ */
.faq { padding-block: var(--space-section); }
.faq__grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } .faq h2 { position: sticky; top: calc(var(--bar-h) + var(--space-lg)); } }
.faq__list { display: grid; border-top: 1px solid var(--color-rule-2); }
.faq__item { border-bottom: 1px solid var(--color-rule-2); }
.faq__q {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); text-align: start;
  padding-block: var(--space-md); min-height: 56px; background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: var(--text-lg); line-height: 1.3; color: var(--color-ink);
  transition: color var(--dur-short) var(--ease-out);
}
.faq__q::after {
  content: ""; flex: none; align-self: center; width: 18px; height: 18px;
  background: linear-gradient(var(--color-call), var(--color-call)) center / 100% 2.5px no-repeat, linear-gradient(var(--color-call), var(--color-call)) center / 2.5px 100% no-repeat;
  transition: background-size var(--dur-short) var(--ease-in-out);
}
.faq__q[aria-expanded="true"]::after { background-size: 100% 2.5px, 2.5px 0; }
.faq__q:hover { color: var(--color-call); }
.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur-long) var(--ease-in-out), visibility 0s linear var(--dur-long); }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--color-ink-2); padding-bottom: var(--space-lg); max-width: 62ch; }
.faq__a p a { color: var(--color-ink); font-weight: 800; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
/* sem JavaScript, as respostas ficam abertas */
html:not(.js) .faq__a { grid-template-rows: 1fr; visibility: visible; }
html:not(.js) .faq__q::after { content: none; }

/* ============================ fechamento ============================ */
.close { padding-block: var(--space-section); background: var(--color-paper-2); border-top: 1px solid var(--color-rule); }
.close__grid { position: relative; display: grid; gap: var(--space-lg); justify-items: start; }
.close__fio { position: absolute; bottom: calc(100% - 4px); inset-inline-start: calc(var(--page-gutter) + 34px); width: 28px; height: calc(var(--space-section) + 4px); }
.close__fio svg { width: 28px; height: 100%; }
.close__tia { position: relative; }
.close__tia { width: 96px; height: 96px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 4px var(--color-surface), var(--shadow-soft); }
.close h2 { max-width: 17ch; }
.close .lede { max-width: 46ch; }
.limit { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 62ch; margin-top: var(--space-sm); }

/* ============================ clínicas ============================ */
.clinics { padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.clinics__grid { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .clinics__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; } }
.clinics__copy { display: grid; gap: var(--space-md); }
.clinics h2 { font-size: var(--text-2xl); max-width: 24ch; }
.clinics__copy p { color: var(--color-ink-2); max-width: 60ch; }
.clinics__list { color: var(--color-ink); }
.clinics__action { justify-self: start; }
@media (min-width: 60rem) { .clinics__action { justify-self: end; } }

/* ============================ rodapé em carta ============================ */
.foot { padding-block: var(--space-2xl) calc(var(--space-2xl) + 4rem); border-top: 1px solid var(--color-rule); }
.foot__grid { display: grid; gap: var(--space-lg); max-width: 64ch; }
.foot__close { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-lg); line-height: 1.4; }
.foot__close img { height: 42px; width: auto; margin-top: var(--space-sm); }
.foot__ps { font-size: var(--text-sm); color: var(--color-ink-2); }
.foot__ps a { color: var(--color-ink); font-weight: 800; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot__links a { display: inline-block; padding-block: 0.6em; text-decoration: none; font-weight: 800; font-size: 1rem; white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.foot__links a:hover { border-bottom-color: var(--color-accent); }
.foot__licence { font-size: var(--text-sm); color: var(--color-ink-2); display: grid; gap: var(--space-2xs); }
.foot__handle { font-weight: 800; }

/* ============================ barra fixa (só celular, depois do hero) ============================ */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-dock);
  display: none; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-sm) var(--page-gutter) max(var(--space-sm), env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--color-paper) 95%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-rule);
  transform: translateY(110%); visibility: hidden; transition: transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.dock > span { font-size: 0.9375rem; color: var(--color-ink-2); font-weight: 700; line-height: 1.3; min-width: 0; }
.dock.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
@media (max-width: 60rem) { .dock { display: flex; } }
