/* Vela · hospital veterinário (conceito Noctu)
   Clínica clara e quente: creme e pêssego de base, petróleo no texto, coral no agendar.
   Escuro só onde é urgente (emergência). Fonte: Figtree (OFL), sans amigável de clínica.
   Landing page: cada seção cabe em uma tela; nada de rolagem presa. */

:root {
  --cream: #FBF6EF;
  --cream-2: #F5EDE2;
  --peach: #F8E7D8;
  --peach-2: #F2D7C2;
  --ink: #15302F;
  --ink-2: #4B605E;
  --line: rgba(21, 48, 47, .12);
  --teal: #1F6F68;
  --teal-soft: #DCEFEA;
  --coral: #EE7A5B;
  --coral-hover: #F28D70;
  --coral-ink: #A8462B;
  --night: #12302F;
  --ok: #24936B;

  --font: 'Figtree', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(4.5rem, 8vw, 7rem);
  --shadow: 0 30px 60px -36px rgba(21, 48, 47, .45), 0 2px 8px rgba(21, 48, 47, .05);
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: #C9B7A6 transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--coral);
}

::selection { background: #F6C2B0; color: var(--ink); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 10px; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: var(--header-h); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--coral); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }

/* ---------- tipografia ---------- */
h1, h2, .display { font-weight: 600; letter-spacing: -0.028em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 3.7vw, 3.45rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1.25vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.data { font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- botões ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 10px; font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { background: var(--coral-hover); transform: translateY(-2px); }
.btn--line { border-color: rgba(21, 48, 47, .25); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn--line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #22463F; transform: translateY(-2px); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.dot--live { background: #5BD3A7; }

.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #D5F0E4; color: var(--ok); flex: none; }
.tick svg { width: 13px; height: 13px; stroke-width: 3; }
.tick--heart { background: #FBE1D8; color: var(--coral-ink); }
.tick--heart svg { stroke-width: 2.4; }

/* ---------- cabeçalho ---------- */
.utility { background: var(--ink); color: #D6E3DF; font-size: .8125rem; }
.utility__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility p { display: flex; align-items: center; gap: 8px; }
.utility b { color: #fff; font-weight: 650; display: inline-block; transition: opacity .4s, filter .4s; }
.utility b.is-changing { opacity: 0; filter: blur(4px); }
.utility .sep { opacity: .45; }
.utility__right { gap: 18px !important; }
.utility a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.utility a:hover { text-decoration-color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  padding-inline: var(--gutter); background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.is-scrolled, .topbar.is-open { border-bottom-color: var(--line); }

/* logo: "vela" com o l desenhado como uma vela acesa */
.logo { justify-self: center; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo__word, .vcard__logo, .foot__logo { display: inline-flex; align-items: baseline; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.logo__word { font-size: 2.125rem; }
.logo__candle { width: .25em; height: 1.134em; flex: none; margin: 0 .01em; overflow: visible; }
.logo__desc { font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--line); }

.nav { justify-self: start; display: flex; gap: clamp(16px, 2vw, 28px); }
.nav a {
  font-size: .9688rem; font-weight: 550; text-decoration: none; color: var(--ink-2);
  background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 2px no-repeat; padding-bottom: 4px;
  transition: color .3s, background-size .5s var(--ease-out);
}
.nav a:hover { color: var(--ink); background-size: 100% 2px; }
.topbar__actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.emerg { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .9688rem; color: var(--coral-ink); text-decoration: none; }
.emerg:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.emerg__ic, .ic-cross { width: 14px; height: 14px; flex: none; fill: currentColor; }
.btn .ic-cross { color: var(--coral-ink); }
.urgent .ic-cross { color: var(--coral); }
.menu-toggle { display: none; height: 44px; padding: 0 16px; border-radius: 10px; background: none; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 24px 0 0; background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 55%, var(--peach) 100%); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px clamp(32px, 5vw, 80px); align-items: center;
  min-height: calc(100svh - var(--header-h) - 38px - 120px); padding-bottom: 36px;
}
.hero__copy { display: grid; gap: 24px; max-width: 34rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); font-size: .9375rem; }
.status b { color: var(--ink); font-weight: 650; display: inline-block; transition: opacity .4s, filter .4s; }
.status b.is-changing { opacity: 0; filter: blur(4px); }
.status .sep { opacity: .4; }

.checkup {
  position: relative; margin: 0; justify-self: end;
  width: min(100%, calc(min(76svh, 740px) * 2 / 3)); aspect-ratio: 2 / 3;
}
.checkup__frame {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--peach-2);
}
.checkup__frame img { width: 100%; height: 100%; object-fit: cover; }
.checkup__missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-weight: 500; }
.checkup.is-ready .checkup__missing { display: none; }
.checkup.is-missing img { visibility: hidden; }
.checkup__chip {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 12px 30px -18px rgba(21, 48, 47, .6);
}
.checkup__chip strong { display: block; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.checkup__chip span span { display: block; font-size: .8125rem; color: var(--ink-2); }
.checkup__chip .paw { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); }
.checkup__chip .paw svg { width: 20px; height: 20px; }

/* marcação: ponto medido na foto, linha até a etiqueta fora da foto */
.mark { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 3; }
.mark__dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--coral); border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(21, 48, 47, .45);
}
.mark__line {
  position: absolute; left: 0; top: -.75px; width: var(--len, 0); height: 1.5px; border-radius: 2px;
  background: var(--ink); opacity: .55; transform-origin: 0 50%; transform: rotate(var(--a, 0deg)) scaleX(var(--s, 1));
}
.mark__tag {
  position: absolute; left: var(--tx, 0); top: var(--ty, 0); transform: translate(-100%, -50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 8px;
  background: #fff; color: var(--ink); font-size: .875rem; font-weight: 600; box-shadow: 0 10px 24px -14px rgba(21, 48, 47, .55);
}
.mark__tag small { font-weight: 500; color: var(--ink-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ecg-mini { width: 40px; height: 16px; flex: none; max-width: none; }
.ecg-mini path { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 46 54; animation: ecg 1.4s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.js .checkup .mark { opacity: 0; }
.js .checkup.is-ready .mark { opacity: 1; }
.checklist { display: none; list-style: none; margin: 0; padding: 0; }

/* jeitos de ser atendido */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.way { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 24px 28px 28px 0; text-decoration: none; }
.way + .way { border-left: 1px solid var(--line); padding-left: 28px; }
.way strong { font-size: 1.0625rem; font-weight: 650; }
.way span { grid-column: 1; color: var(--ink-2); font-size: .9375rem; }
.way svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--teal); transition: transform .5s var(--ease-out); }
.way:hover svg { transform: translateX(5px); }

/* ---------- especialidades: mapa do corpo ---------- */
.specs { padding-block: var(--section-y); background: var(--cream); }
.specs__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "intro stage" "list stage"; grid-template-rows: auto 1fr;
  gap: 28px clamp(32px, 5vw, 80px); align-items: start;
}
.specs__intro { grid-area: intro; display: grid; gap: 16px; }
.specs__list { grid-area: list; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.specs__stage { grid-area: stage; align-self: center; display: grid; gap: 12px; }

.spec { position: relative; border-top: 1px solid var(--line); }
.spec::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--coral);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; transition: opacity .3s;
}
.spec.is-active::after { opacity: 1; }
.spec__btn {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 0; background: none; border: 0;
  text-align: left; cursor: pointer; color: var(--ink-2); transition: color .3s;
}
.spec__btn:hover, .spec.is-active .spec__btn { color: var(--ink); }
.spec__name { font-size: clamp(1.125rem, 1.5vw, 1.3rem); font-weight: 650; letter-spacing: -0.015em; }
.spec__bullet { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(21, 48, 47, .25); flex: none; transition: background-color .3s, border-color .3s; }
.spec.is-active .spec__bullet { background: var(--coral); border-color: var(--coral); }
.spec__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.spec.is-active .spec__more { grid-template-rows: 1fr; }
.spec__more > div { overflow: hidden; padding-left: 24px; }
.spec__more p { color: var(--ink-2); max-width: 32em; }
.spec__who { display: block; color: var(--teal); font-weight: 600; font-size: .9375rem; padding: 6px 0 16px; }

.bodymap {
  --x: 48%; --y: 50%; --r: 600px;
  position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: #F3EADF; box-shadow: var(--shadow);
}
.bodymap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease-out); }
.bodymap .is-cat { opacity: 0; }
.bodymap[data-animal="cat"] .is-cat { opacity: 1; }
.bodymap[data-animal="cat"] .is-dog { opacity: 0; }
.bodymap__veil {
  position: absolute; inset: 0; background: rgba(251, 246, 239, .76);
  -webkit-mask: radial-gradient(circle at var(--x) var(--y), transparent calc(var(--r) * .8), #000 calc(var(--r) * 1.25));
  mask: radial-gradient(circle at var(--x) var(--y), transparent calc(var(--r) * .8), #000 calc(var(--r) * 1.25));
}
.bodymap__ring {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2.1); height: calc(var(--r) * 2.1);
  transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(238, 122, 91, .9);
  opacity: var(--ring, 1); transition: opacity .4s; animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(1turn); } }
.bodymap__pin {
  position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--coral); border: 2px solid #fff; box-shadow: 0 1px 6px rgba(21, 48, 47, .4); opacity: var(--ring, 1); transition: opacity .4s;
}
.bodymap__missing { position: absolute; inset: 0; display: none; place-items: center; color: var(--ink-2); font-weight: 500; }
.bodymap.is-missing .bodymap__missing { display: grid; }
.bodymap.is-missing img { visibility: hidden; }
.bodymap__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-inline: 6px; color: var(--ink-2); }
.bodymap__caption strong { color: var(--ink); font-size: 1.0625rem; }
.swap { transition: opacity .35s var(--ease-out), filter .35s var(--ease-out), transform .35s var(--ease-out); }
.swap.is-out { opacity: 0; filter: blur(8px); transform: translateY(5px); }

/* ---------- a clínica (dioramas) ---------- */
.clinic { padding-block: var(--section-y); background: var(--cream-2); overflow: hidden; }
.clinic__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  grid-template-areas: "intro stage" "info stage"; grid-template-rows: auto 1fr; gap: 28px clamp(32px, 5vw, 80px);
}
.clinic__intro { grid-area: intro; display: grid; gap: 18px; }
.clinic__info { grid-area: info; align-self: end; display: grid; gap: 18px; padding-bottom: 12px; }
.clinic__count { color: var(--ink-2); }
.clinic__caption { font-size: 1.125rem; line-height: 1.55; max-width: 26em; min-height: 5.2em; }
.clinic__tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clinic__tabs button {
  height: 40px; padding: 0 16px; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .6);
  border: 1.5px solid var(--line); font-size: .9375rem; font-weight: 550; transition: background-color .3s, color .3s, border-color .3s;
}
.clinic__tabs button:hover { border-color: var(--ink); }
.clinic__tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.diorama { grid-area: stage; align-self: center; margin: 0; display: grid; gap: 4px; outline: none; }
.diorama:focus-visible .diorama__svg { outline: 2px solid var(--coral); outline-offset: 8px; border-radius: 24px; }
.diorama__svg { width: 100%; height: auto; max-height: 64svh; overflow: visible; touch-action: pan-y; user-select: none; }
.diorama__bar { display: flex; align-items: center; justify-content: center; gap: 18px; }
.diorama__name { font-size: 1.125rem; font-weight: 650; color: var(--teal); min-width: 12em; text-align: center; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  border: 1.5px solid var(--line); cursor: pointer; color: var(--teal); transition: border-color .3s, transform .5s var(--ease-out);
}
.arrow:hover { border-color: var(--teal); }
.arrow:active { transform: scale(.92); }
.arrow svg { width: 20px; height: 20px; }
.dio * { vector-effect: non-scaling-stroke; }
.dio .s, .dio .ln { stroke: #1E4442; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.dio .ln { fill: none; }
.dio .thin { stroke-width: .6; }
.dio .blink { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- internação: a noite passa sozinha quando a seção aparece ---------- */
.vigil { padding-block: var(--section-y); background: var(--peach); --card-h: 76px; }
.vigil__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px clamp(32px, 6vw, 100px); align-items: center; }
.vigil__copy { display: grid; gap: 22px; }
.cam { --night: .62; --day: 0; position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #2A3B44; box-shadow: var(--shadow); max-width: 560px; }
.cam img { width: 100%; height: 100%; object-fit: cover; }
.cam__night { position: absolute; inset: 0; background: #142C4A; mix-blend-mode: multiply; opacity: var(--night); }
.cam__day { position: absolute; inset: 0; background: radial-gradient(80% 90% at 85% 0%, rgba(255, 214, 170, .55), transparent 65%); opacity: var(--day); mix-blend-mode: screen; }
.cam__hud {
  position: absolute; inset: 14px 16px auto; display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.cam__hud span { display: inline-flex; align-items: center; gap: 8px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #FF5A4E; animation: blink 1.2s steps(1) infinite; }
.cam__clock {
  position: absolute; left: 16px; bottom: 12px; color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 650;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); line-height: 1;
}
.cam__missing { position: absolute; inset: 0; display: none; place-items: center; color: #DDE7EA; font-weight: 500; }
.cam.is-missing .cam__missing { display: grid; }
.cam.is-missing img { visibility: hidden; }

.panel { border-radius: 20px; padding: 18px 16px 20px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow); }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 4px 16px; }
.panel__pet strong { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.panel__pet span { font-size: .875rem; color: var(--ink-2); }
.panel__live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 650; font-size: .8125rem; white-space: nowrap; padding-top: 6px; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vigil.is-live .feed { display: block; position: relative; height: calc(var(--card-h) * 4 + 10px * 3 + 24px); overflow: hidden; margin: -6px -10px; padding: 6px 10px; box-sizing: content-box; }
.feed__item {
  height: var(--card-h); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 0 16px 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 14px 30px -20px rgba(21, 48, 47, .5), 0 1px 2px rgba(21, 48, 47, .06);
}
.vigil.is-live .feed__item { position: absolute; inset: 0 0 auto 0; transform-origin: 50% 0; will-change: transform, opacity; opacity: 0; }
.feed__viz { width: 48px; height: 48px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; color: var(--teal); }
.feed__viz svg { width: 34px; height: 24px; }
.feed__txt { display: grid; gap: 1px; min-width: 0; }
.feed__txt strong { font-weight: 650; font-size: .9688rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__txt span { font-size: .8438rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__item time { color: var(--ink-2); align-self: start; padding-top: 16px; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.feed__item--alta { background: var(--ink); color: var(--cream); }
.feed__item--alta .feed__txt span, .feed__item--alta time { color: #BFD3CF; }
.feed__item--alta .feed__viz { background: rgba(255, 255, 255, .08); color: var(--coral); }

/* ---------- histórias ---------- */
.stories { padding-block: var(--section-y); background: var(--cream); }
.stories__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.story { display: grid; gap: 18px; margin: 0; }
.story:nth-child(2) { margin-top: 44px; }
.story blockquote { margin: 0; display: grid; gap: 8px; }
.story blockquote p { font-size: 1.1875rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.story footer { color: var(--ink-2); font-size: .9375rem; }
.photo { margin: 0; display: grid; gap: 12px; }
.photo__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--cream-2); }
.photo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .photo__frame img {
  /* revelada por uma pegada que cresce até cobrir a foto */
  -webkit-mask: var(--paw-mask) center / var(--m, 0%) no-repeat;
  mask: var(--paw-mask) center / var(--m, 0%) no-repeat;
}
.photo.is-shown .photo__frame img { -webkit-mask: none; mask: none; }
.photo__cap { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9375rem; font-weight: 500; }
:root {
  --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='52' rx='21' ry='17'/%3E%3Cellipse cx='25.5' cy='32' rx='7.5' ry='9.5' transform='rotate(-24 25.5 32)'/%3E%3Cellipse cx='40.5' cy='22' rx='7.5' ry='10'/%3E%3Cellipse cx='59.5' cy='22' rx='7.5' ry='10'/%3E%3Cellipse cx='74.5' cy='32' rx='7.5' ry='9.5' transform='rotate(24 74.5 32)'/%3E%3C/svg%3E");
}

/* ---------- dúvidas ---------- */
.faq { padding-block: var(--section-y); background: var(--cream-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 1.125rem; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; max-width: 40em; }

/* ---------- agendar ---------- */
.book { padding-block: var(--section-y); background: linear-gradient(180deg, var(--cream), var(--peach)); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 6vw, 100px); align-items: start; }
.book__copy { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 32px); }
.urgent { margin-top: 14px; padding: 24px 26px; border-radius: 16px; background: var(--night); color: var(--cream); display: grid; gap: 10px; max-width: 30em; scroll-margin-top: calc(var(--header-h) + 24px); }
.urgent h3 { display: flex; align-items: center; gap: 10px; }
.urgent p { color: #C5D6D2; }
.booker { background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.booker__form { display: grid; gap: 24px; }
.field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > legend, .field > label { font-weight: 650; font-size: 1rem; padding: 0; margin-bottom: 10px; }
.field > label { margin-bottom: 0; }
.input {
  height: 52px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream); padding: 0 16px;
  font: inherit; color: var(--ink); width: 100%; transition: border-color .3s, box-shadow .3s;
}
.input::placeholder { color: #75817F; }
.input:hover { border-color: rgba(21, 48, 47, .3); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 111, 104, .16); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--cream); font-size: .9688rem; font-weight: 550; font-variant-numeric: tabular-nums;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease-out);
}
.chip--day span { flex-direction: column; gap: 0; min-height: 60px; min-width: 64px; border-radius: 10px; line-height: 1.15; font-size: 1.0625rem; }
.chip--day small { font-size: .75rem; color: var(--ink-2); font-weight: 500; }
.chip input:hover:not(:disabled) + span { border-color: rgba(21, 48, 47, .4); }
.chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip input:checked + span small { color: #BFD3CF; }
.chip input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.chip input:active:not(:disabled) + span { transform: scale(.96); }
.chip input:disabled + span { color: #8E9997; background: transparent; border-style: dashed; text-decoration: line-through; text-decoration-color: rgba(21, 48, 47, .3); }
.chip input:disabled { cursor: not-allowed; }
.booker__foot { display: grid; gap: 12px; }
.booker__foot .btn { width: 100%; }
.booker__hint { font-size: .9062rem; color: var(--ink-2); text-align: center; min-height: 1.4em; }
.booker__hint.is-error { color: var(--coral-ink); font-weight: 650; }

/* confirmação: carteira de saúde carimbada */
.done { display: grid; gap: 22px; outline: none; }
.vcard { position: relative; border-radius: 14px; padding: 22px 22px 18px; overflow: hidden; background: linear-gradient(180deg, #FFFDF9, #FBF3E8); border: 1.5px solid #EBDCCB; }
.vcard::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--teal); }
.vcard__head { display: flex; align-items: center; gap: 10px; padding: 6px 0 16px; border-bottom: 1.5px dashed #E4D3C0; }
.vcard__logo { font-size: 1.5rem; }
.vcard__head span { margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.vcard__rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; padding-top: 16px; }
.vcard__rows div { display: grid; gap: 2px; }
.vcard__rows dt { font-size: .75rem; font-weight: 600; color: var(--ink-2); letter-spacing: .03em; text-transform: uppercase; }
.vcard__rows dd { margin: 0; font-size: 1.0625rem; font-weight: 650; }
.vcard__rows .wide { grid-column: 1 / -1; }
.stamp {
  position: absolute; right: 18px; bottom: 22px; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 2px; border: 3px double var(--coral-ink); color: var(--coral-ink);
  transform: rotate(-14deg); text-transform: uppercase; text-align: center; opacity: .86; mix-blend-mode: multiply;
}
.stamp b { font-size: 1.125rem; font-weight: 800; letter-spacing: .08em; }
.stamp small { font-size: .625rem; font-weight: 700; letter-spacing: .14em; }
.stamp svg { width: 22px; height: 22px; }
.done__note { color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.done__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.done__actions .btn { flex: 1 1 200px; }

/* ---------- rodapé ---------- */
.foot { padding-block: var(--section-y) 40px; background: var(--peach); }
.foot__logo { font-size: 2.75rem; margin-bottom: 28px; }
.foot__big { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 13em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 32px; border-top: 1px solid var(--line); }
.foot__cols h3 { font-size: 1rem; margin-bottom: 8px; }
.foot__cols p { color: var(--ink-2); }
.foot__credit { margin-top: 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ink-2); font-size: .9062rem; }
.foot__credit a { color: var(--ink); font-weight: 600; }
.foot__cols a { color: var(--ink); font-weight: 600; }

/* ---------- conversão: WhatsApp, ligar, prova perto do topo, atalhos ---------- */
/* No conceito o número é fictício: [data-demo] não sai da página e mostra o aviso (main.js). */
.hero__more { display: grid; gap: 14px; }
.hero__wa { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--teal); text-decoration: underline; text-decoration-color: rgba(31, 111, 104, .35); }
.hero__wa:hover { text-decoration-color: currentColor; }
.hero__wa .ic { width: 20px; height: 20px; flex: none; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; color: var(--ink-2); font-size: .9375rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof b { color: var(--ink); font-weight: 650; }
.proof__id { white-space: nowrap; }
.proof__stars { display: inline-flex; gap: 2px; color: var(--teal); }
.proof__stars svg { width: 15px; height: 15px; fill: currentColor; }

.utility__call { white-space: nowrap; }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; transform: translateY(-2px); }
.urgent .btn { justify-self: start; margin-top: 6px; }

.dock { display: none; }
.demo-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; width: min(calc(100vw - 32px), 420px);
  padding: 14px 18px; border-radius: 12px; background: var(--ink); color: #D6E3DF; font-size: .9375rem; line-height: 1.45;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .3s, transform .5s var(--ease-out), visibility 0s linear .5s; pointer-events: none;
}
.demo-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s, transform .5s var(--ease-out); }
.demo-toast b { color: #fff; font-weight: 650; }

/* ?anuncio: a mesma página para tráfego pago, sem menu; tudo leva a agendar, chamar ou ligar */
html.ad .nav, html.ad .menu-toggle { display: none !important; }
html.ad .topbar { grid-template-columns: auto minmax(0, 1fr); }
html.ad .logo { justify-self: start; }


/* ---------- responsivo ---------- */
@media (max-width: 1120px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr); }
  .nav { display: none; }
  .logo { justify-self: start; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .topbar.is-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--cream); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
  }
  .topbar.is-open .nav a { font-size: 1.5rem; font-weight: 650; color: var(--ink); padding: 10px 0; background: none; }
}

/* hero em uma coluna: foto à direita, etiquetas ainda cabem à esquerda dela */
@media (max-width: 1099px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .checkup { width: min(56%, 420px); }
}

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .logo__desc, .utility__addr, .utility__right a, .emerg { display: none; }
  .logo__word { font-size: 1.875rem; }
  .topbar__actions { gap: 10px; }
  .ways { grid-template-columns: 1fr; }
  .way, .way + .way { border-left: 0; padding: 18px 0; }
  .way + .way { border-top: 1px solid var(--line); }
  .specs__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "stage" "list"; }
  .clinic__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "stage" "info"; }
  .clinic__caption { min-height: 0; }
  .vigil { --card-h: 68px; }
  .vigil__grid { grid-template-columns: 1fr; }
  .vigil.is-live .feed { height: calc(var(--card-h) * 3 + 10px * 2 + 20px); }
  .feed__item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; padding: 0 12px 0 10px; }
  .feed__viz { width: 42px; height: 42px; }
  .stories__head, .faq__grid { grid-template-columns: 1fr; }
  .stories__grid { grid-template-columns: 1fr; gap: 48px; }
  .story:nth-child(2) { margin-top: 0; }
  .book__grid { grid-template-columns: 1fr; }
  .book__copy { position: static; }
  .stamp { width: 108px; height: 108px; right: 12px; bottom: 14px; }
  .foot__cols { grid-template-columns: 1fr; gap: 22px; }
}

/* celular e tablet: barra fixa com agendar, WhatsApp e ligar; a página ganha folga embaixo para ela */
@media (max-width: 899px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line);
  }
  .dock .btn { --h: 50px; padding: 0 8px; font-size: .9375rem; gap: 8px; }
  .dock .btn svg { width: 17px; height: 17px; }
  .demo-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* celular: sem espaço para etiquetas fora da foto; ficam só os pontos e a lista abaixo */
@media (max-width: 639px) {
  .checkup { width: 100%; justify-self: center; }
  .mark__line, .mark__tag { display: none; }
  .checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: .9375rem; font-weight: 600; }
  .checklist li { display: flex; align-items: center; gap: 8px; }
}

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