/* Quoly não tem letras acentuadas nem ç: usar só no logo e em números (classe .num). */
@font-face {
  font-family: "Quoly";
  src: url("assets/fonts/quoly.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* DM Sans (SIL OFL) servida daqui, para a página não chamar o Google Fonts. Arquivo variável: um só para os pesos 400 a 700. */
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* marca */
  --brand: #00A09C;   /* turquesa */
  --mint: #BEE2D8;    /* menta */
  --ink: #263D3C;     /* grafite */
  --bg: #F6F6F2;      /* fundo */
  /* derivadas */
  --surface: #ffffff;
  --ink-2: #60716F;
  --mint-soft: #E5F0EA;
  --line: #D9E2DC;
  --red: #D43235;     /* só para marcar dado fictício */
  --dark-hi: #33514F;
  --dark-lo: #1F3231;
  /* cantos no padrão Apple: raio em valor circular equivalente; com corner-shape viram cantos contínuos (ver fim do arquivo) */
  --k: 1;
  --r-card: 28px;
  --shadow: 0 1px 2px rgba(38, 61, 60, .04), 0 12px 32px -12px rgba(38, 61, 60, .18);
  --wrap: 1180px;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* papel: pintas e fibras (multiply) e grão fino (overlay) sobre a cor de fundo da marca */
  background-color: var(--bg);
  background-image: url("assets/textura-manchas.webp"), url("assets/textura-grao.webp");
  background-size: 1000px 1000px, 192px 192px;
  background-blend-mode: multiply, overlay;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 500; }
h1 strong { font-weight: 700; color: var(--brand); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

.num {
  font-family: "Quoly", "DM Sans", system-ui, sans-serif;
  font-weight: 400; font-synthesis: none; letter-spacing: 0; line-height: 1; word-spacing: -.14em;
}
h2 .num { color: var(--brand); font-size: 1.06em; margin-inline: .03em .1em; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.lead--light { color: var(--mint); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem; line-height: 1.2;
  padding: 18px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(0, 160, 156, .8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(0, 160, 156, .85); }
.btn--sm { white-space: nowrap; padding: 11px 18px; font-size: .95rem; box-shadow: none; }
.btn--sm:hover { box-shadow: none; }
.arrow {
  width: 18px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M1 6h15M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M1 6h15M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }
.link { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.link:hover { color: var(--brand); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 246, 242, .85);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; }
.logo__word {
  font-family: "Quoly", "DM Sans", system-ui, sans-serif; font-weight: 400; font-synthesis: none;
  font-size: 1.75rem; line-height: 1; color: var(--brand);
}

/* hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 13vw, 190px); overflow: hidden; }
.hero__ecg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; pointer-events: none; }
.hero__ecg path, .cta__ecg path {
  fill: none; stroke: var(--mint); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3.200s .3s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__copy .lead { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }

.hero__art { position: relative; min-height: 620px; display: grid; place-items: center; }
.hero__glow {
  position: absolute; inset: 6% -10% 0 -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 226, 216, .75), rgba(190, 226, 216, 0));
}
.hero__map {
  position: absolute; width: 92%; max-width: none; left: -8%; top: 20%;
  filter: drop-shadow(0 30px 30px rgba(38, 61, 60, .14));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.phone {
  --screen-r: 34px; --pad: 9px;
  position: relative; border-radius: calc((var(--screen-r) + var(--pad)) * var(--k)); padding: var(--pad); background: #1B2C2B;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 40px 60px -30px rgba(38, 61, 60, .55), 0 12px 24px -12px rgba(38, 61, 60, .3);
}
.phone img { border-radius: calc(var(--screen-r) * var(--k)); width: 100%; }
.phone--hero { width: min(290px, 62vw); margin-left: 44%; transform: rotate(3deg); }
/* números em cartões: número e rótulo na mesma linha de base */
/* números: número e rótulo sempre na mesma linha.
   O tamanho do texto sai da largura da faixa (cqi). As larguras de cada linha, medidas com o número em 100px,
   somam 18,55 × o tamanho do número; 272px = respiros internos e espaços entre os cartões. */
.figs { container-type: inline-size; display: flex; gap: 20px; }
.fig {
  flex: 1 1 auto; display: flex; justify-content: center; align-items: baseline; gap: .25em; padding: 24px;
  font-size: 2.400rem; font-size: min(3.200rem, calc((100cqi - 272px) / 18.55));
  background: var(--surface); border-radius: calc(var(--r-card) * var(--k)); box-shadow: var(--shadow);
}
.fig__n { font-size: 1em; color: var(--brand); white-space: nowrap; }
.fig h3 { font-size: .5em; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; white-space: nowrap; }

/* sections */
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--flush { padding-top: 0; }
.section--tint { background: linear-gradient(180deg, rgba(190, 226, 216, .28), rgba(190, 226, 216, 0)); }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; }
.step .phone { --screen-r: 24px; --pad: 7px; margin-bottom: 26px; transition: transform .35s ease; }
.step:hover .phone { transform: translateY(-8px); }
.step p { color: var(--ink-2); margin-top: 8px; font-size: .98rem; }
.step .phone { margin-bottom: 22px; }

/* hospital */
.hospital {
  background: radial-gradient(120% 90% at 20% 0%, var(--dark-hi) 0%, var(--ink) 45%, var(--dark-lo) 100%);
  color: #fff; padding: clamp(48px, 7vw, 96px) 0; border-radius: calc(clamp(28px, 4vw, 48px) * var(--k)); margin-inline: clamp(0px, 1.5vw, 20px);
}
.hospital__in { display: block; }
.hospital__art { position: relative; max-width: 820px; margin-inline: auto; padding-bottom: 12%; }
.panel { background: var(--bg); border-radius: calc(var(--r-card) * var(--k)); box-shadow: 0 40px 70px -30px rgba(10, 22, 21, .8); color: var(--ink); }
.panel--map { padding: 22px; width: 88%; }
.panel--room { position: absolute; right: 0; bottom: 0; width: 44%; padding: 16px 12px 46px; border: 1px solid var(--line); }
.panel__tag {
  position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center;
  font-size: .7rem; font-weight: 600; color: var(--ink); background: #fff; border-radius: 99px; padding: 6px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line);
}

/* split / question */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split__copy .lead { margin-top: 20px; }
/* seletor de especialização: controla a questão mostrada no celular */
.pick { margin-top: clamp(28px, 3.400vw, 44px); max-width: 420px; }
.pick__label { font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }

/* celular simulado com a tela de questão do app */
.sim { --screen-r: 44px; --pad: 10px; width: min(390px, 100%); margin-inline: auto; }
.q { display: flex; flex-direction: column; min-height: 760px; background: var(--bg); border-radius: calc(var(--screen-r) * var(--k)); overflow: hidden; }
.sim__status { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 18px; font-size: .82rem; font-weight: 600; }
.sim__status svg { fill: currentColor; }
.sim__home { width: 124px; height: 5px; border-radius: 5px; background: var(--ink); opacity: .5; margin: 12px auto 0; }
.q__head { background: radial-gradient(120% 100% at 30% 0%, var(--dark-hi), var(--ink) 55%, var(--dark-lo)); color: #fff; padding: 18px 22px 28px; border-radius: 0 0 calc(36px * var(--k)) calc(36px * var(--k)); }
.q__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.q__back { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); }
.arrow--back { width: 14px; height: 10px; transform: scaleX(-1); }
.q__mod { margin-top: 18px; font-size: .82rem; font-weight: 600; color: var(--mint); }
.q__count { font-size: .74rem; font-weight: 600; white-space: nowrap; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .35); }
.q__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); margin: 12px 0 20px; overflow: hidden; }
.q__bar i { display: block; height: 100%; width: 20%; background: var(--brand); border-radius: 6px; }
.q__text { font-size: 1.08rem; line-height: 1.5; font-weight: 500; }
.q__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 12px; }
.q__hint { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.q__fict { margin-top: 16px; visibility: hidden; line-height: 1; }
.q__fict.is-on { visibility: visible; }
.q__fict span {
  display: inline-block; font-size: .8rem; font-weight: 700; line-height: 1;
  color: var(--red); border: 1.500px solid var(--red); border-radius: 99px; padding: 6px 11px; background: #fff;
}
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: #fff; border: 1.500px solid var(--line); border-radius: calc(16px * var(--k)); padding: 10px 14px 10px 10px; cursor: pointer;
  font-size: .98rem; transition: border-color .15s, background .15s, transform .15s;
}
.opt b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: calc(6px * var(--k)); background: var(--mint-soft); color: var(--ink); font-weight: 600; transition: inherit; }
.opt:hover { border-color: rgba(0, 160, 156, .55); }
.opt[aria-checked="true"] { border-color: var(--brand); background: #EEF7F4; }
.opt[aria-checked="true"] b { background: var(--ink); color: #fff; }
.opt:disabled { cursor: default; }
.opt:disabled:not([aria-checked="true"]) { opacity: .5; }
.opt:disabled:hover { border-color: var(--line); }
.opt[aria-checked="true"]:disabled:hover { border-color: var(--brand); }
.q__go {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: auto; text-align: center; font-weight: 700; font-size: 1.2rem; line-height: 1.2; padding: 16px; border-radius: 99px;
  background: var(--mint-soft); color: var(--ink-2); pointer-events: none; transition: background .2s, color .2s;
}
.q__go.is-on { background: var(--brand); color: #fff; pointer-events: auto; }
.q-tabs { display: grid; gap: 8px; }
.q-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  font-size: 1.08rem; font-weight: 600; line-height: 1.2; padding: 16px 20px; border-radius: calc(16px * var(--k)); cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.500px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.q-tab::after {
  content: ""; width: 18px; height: 12px; flex: none; background: var(--brand); opacity: 0; transition: opacity .15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M1 6h15M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M1 6h15M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.q-tab:hover { border-color: rgba(0, 160, 156, .55); }
.q-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.q-tab[aria-selected="true"]::after { opacity: 1; }

/* modos */
.modes { display: grid; grid-template-columns: .78fr 1fr 1fr; grid-template-rows: 1fr auto; gap: 20px; }
.mode {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.800vw, 34px);
  background: var(--surface); border-radius: calc(var(--r-card) * var(--k)); box-shadow: var(--shadow);
}
.mode h3 { font-size: clamp(1.5rem, 2.400vw, 1.9rem); letter-spacing: -.025em; }
.mode--main { grid-column: 1; grid-row: 1; justify-content: flex-end; background: radial-gradient(120% 120% at 20% 0%, var(--dark-hi), var(--ink) 50%, var(--dark-lo)); color: #fff; }
.mode--main p { color: var(--mint); }
.mode--soon { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; background: transparent; box-shadow: none; border: 1.500px dashed #B9C8C1; }
.mode--soon h3 { color: var(--ink-2); }
.mode--uti { grid-column: 2; grid-row: 1 / span 2; }
.mode--plantao { grid-column: 3; grid-row: 1 / span 2; }
.mode__fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mode__fig .num { font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--brand); white-space: nowrap; }
.mode__fig span { flex: 0 1 auto; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.mode__facts { display: grid; gap: 10px; color: var(--ink-2); }
.mode__facts li { position: relative; padding-left: 18px; }
.mode__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.soon {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  background: var(--mint); color: var(--ink); padding: 6px 10px; border-radius: 99px;
}

/* especialidades */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.group {
  flex: 1 1 auto; display: flex; align-items: center; gap: 14px;
  padding: 20px 26px 20px 22px; background: var(--surface); border-radius: calc(var(--r-card) * var(--k)); box-shadow: var(--shadow);
}
.group__ic { display: grid; place-items: center; flex: none; color: var(--brand); }
.group__ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.group h3 { font-size: 1.15rem; line-height: 1.25; }

/* cta */
.cta { padding: 0 0 clamp(56px, 7vw, 96px); }
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--brand); color: #fff;
  border-radius: calc(clamp(28px, 4vw, 48px) * var(--k)); padding: clamp(48px, 7vw, 96px) 24px;
  /* espaço extra embaixo para o traçado do batimento (.cta__ecg, 130px) não ficar atrás do texto */
  padding-bottom: calc(clamp(48px, 7vw, 96px) + 72px);
}
.cta__ecg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; opacity: .3; }
.cta__ecg path { stroke: #fff; }
.cta__card > *:not(svg) { position: relative; }
.cta__card p { margin-top: 16px; font-size: 1.1rem; }
.nw { white-space: nowrap; }
.form { display: flex; gap: 10px; max-width: 540px; margin: 34px auto 0; background: var(--surface); padding: 8px; border-radius: 999px; border: 1.500px solid transparent; box-shadow: var(--shadow); }
.form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; padding: 0 16px; }
.form input::placeholder { color: var(--ink-2); }
.form input:focus { outline: none; }
.form:focus-within { border-color: var(--ink); }
.form .btn { background: var(--ink); box-shadow: none; padding: 15px 22px; }
.form__msg { min-height: 1.6em; font-size: .95rem !important; }
.cta__card .form__aviso { max-width: 30em; margin: 14px auto 0; font-size: .875rem; line-height: 1.45; }
.form__aviso a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* campo-armadilha fora da tela; não usar display:none, que alguns robôs reconhecem */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot__link { font-size: .9rem; color: var(--ink-2); }
.foot__link:hover { color: var(--ink); }

/* página de texto (aviso de privacidade) */
.doc { padding: clamp(48px, 7vw, 96px) 0; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.doc__date { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
.doc h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin-top: 40px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--brand); font-weight: 600; }
.doc a:hover { text-decoration: underline; }
/* trecho a preencher antes de publicar */
.fill { background: #FFE9A8; color: var(--ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ilustrações de fundo: figuras de corpo gigantes, metade fora da tela, alinhadas às laterais, em multiply */
.has-art { position: relative; overflow: clip visible; }
/* as figuras podem passar de uma seção para a outra, mas não aumentam a página no fim */
main { overflow: clip; }
.has-art > .wrap { position: relative; z-index: 1; }
.art {
  position: absolute; z-index: 0; top: -60px; width: 1150px; max-width: none; height: auto;
  pointer-events: none; user-select: none; mix-blend-mode: multiply; opacity: .4;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.art--esq { left: -560px; }
.art--dir { right: -560px; }
/* bloco escuro do hospital: traço claro (screen), bem transparente, preso ao cartão arredondado */
.hospital.has-art { overflow: clip; }
.art--neg-esq, .art--neg-dir { mix-blend-mode: screen; opacity: .2; top: -40px; }
.art--neg-esq { width: 700px; left: -160px; }
.art--neg-dir { width: 560px; right: -150px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__in .btn { margin-left: auto; }
  .hero__in, .split { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; padding: 30px 0 10px; }
  .hero__map { width: 96%; left: -22%; top: 20%; }
  .phone--hero { margin-left: 36%; }
  /* no celular e no tablet, os temas viram uma fileira rolável logo acima do aparelho */
  .pick { max-width: none; }
  .q-tabs {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
  }
  .q-tabs::-webkit-scrollbar { display: none; }
  .q-tab { width: auto; flex: none; white-space: nowrap; scroll-snap-align: center; font-size: .95rem; padding: 12px 17px; border-radius: 99px; }
  .q-tab::after { display: none; }
  .steps {
    grid-template-columns: repeat(4, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 20px; scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: center; }
  .figs { display: grid; grid-template-columns: 1fr 1fr; }
  .groups { grid-template-columns: 1fr 1fr; }
  .fig { font-size: min(3.400rem, calc(((100cqi - 20px) / 2 - 58px) / 5.44)); }
  .modes { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mode--main, .mode--soon, .mode--uti, .mode--plantao { grid-column: auto; grid-row: auto; }
  .mode--main { order: 1; } .mode--soon { order: 2; } .mode--uti { order: 3; } .mode--plantao { order: 4; }
}
@media (max-width: 700px) {
  .modes { grid-template-columns: 1fr; gap: 16px; }
  .mode--main { order: 1; } .mode--uti { order: 2; } .mode--plantao { order: 3; } .mode--soon { order: 4; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .nav__in { gap: 12px; }
  .nav__in .btn { padding: 9px 15px; font-size: .875rem; }
  .hero__cta .btn { width: 100%; }
  .panel__tag { white-space: normal; border-radius: calc(16px * var(--k)); line-height: 1.25; }
  .panel--room { width: 52%; padding-bottom: 58px; }
  .panel--map { width: 100%; }
  .hospital__art { padding-bottom: 34%; }
  .form { flex-direction: column; border-radius: 36px; }
  .form input { padding: 14px 14px; text-align: center; }
  .form .btn { justify-content: center; }
  .figs { grid-template-columns: 1fr; gap: 12px; }
  .fig { padding: 20px 22px; font-size: min(3.400rem, calc((100cqi - 58px) / 5.44)); }
  /* margens no celular: tudo alinhado ao gutter de 16px, blocos com 72px entre si */
  .hero { padding-bottom: 64px; }
  .hero__ecg { height: 90px; }
  .hero__map { width: 88%; left: 0; top: 30%; }
  .phone--hero { margin-left: 24%; }
  .steps { margin-top: -10px; }
  .hospital { margin-inline: var(--gutter); }
  .hospital .wrap { width: calc(100% - 48px); }
  .split { gap: 10px; }
  .cta { padding-bottom: 72px; }
  .art { width: 560px; opacity: .26; }
  .art--esq { left: -290px; }
  .art--dir { right: -290px; }
  .art--neg-esq, .art--neg-dir { width: 420px; opacity: .18; }
  .q { min-height: 700px; }
  .groups { grid-template-columns: 1fr; gap: 12px; }
  .group { padding: 18px 20px; }
}
/* cantos contínuos (squircle), como os do iOS. Sem suporte, o navegador mostra o canto circular equivalente.
   Cápsulas e círculos ficam fora da lista: eles são redondos de propósito. */
@supports (corner-shape: squircle) {
  :root { --k: 1.6; }
  .phone, .phone img, .q, .q__head, .opt, .opt b, .q-tab, .fig, .mode, .group, .panel, .hospital, .cta__card {
    corner-shape: squircle;
  }
  @media (max-width: 980px) { .q-tab { corner-shape: round; } }
  @media (max-width: 560px) { .panel__tag { corner-shape: squircle; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__ecg path, .cta__ecg path { stroke-dashoffset: 0; }
}
