/* =========================================================================
   FOCASE — Landing page
   Mobile first: estilos base = smartphone; ampliações em 600 / 960 / 1200 px.
   ========================================================================= */

:root {
  /* Cores — focase_design.md */
  --navy: #0F2747;
  --teal: #14B8A6;
  --teal-hover: #0FAF9E;
  --teal-ink: #0F766E;      /* teal com contraste para texto sobre claro */
  --teal-soft: #5EEAD4;     /* teal para texto sobre escuro */
  --slate: #64748B;
  --slate-700: #475569;
  --slate-400: #94A3B8;
  --mist: #CBD5E1;
  --line: #E2E8F0;
  --off: #F8FAFC;
  --white: #FFFFFF;
  --dark: #0B1220;
  --ok-bg: #DCFCE7;
  --ok-fg: #166534;
  --danger: #B91C1C;
  --danger-line: #FECACA;

  /* Tipografia */
  --font-title: Manrope, Inter, system-ui, sans-serif;
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Espaçamento */
  --gutter: 20px;
  --section-y: 64px;
  --radius: 14px;
  --header-h: 60px;

  /* Motion — 120 / 180 / 240 ms (design system) */
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 240ms;
  --t-reveal: 520ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --phone-w: 236px;
  --shadow-phone: 0 40px 80px -36px rgba(15, 39, 71, .5), 0 0 0 1px rgba(15, 39, 71, .1);
}
@media (min-width: 600px) { :root { --gutter: 32px; --section-y: 88px; --phone-w: 280px; } }
@media (min-width: 960px) { :root { --section-y: 120px; --header-h: 68px; --phone-w: 300px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--off); color: var(--navy); font-family: var(--font-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: rgba(15, 39, 71, .35); }
a:hover { color: var(--dark); text-decoration-color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.eyebrow--light { color: var(--slate-400); }
.eyebrow--dot { display: flex; align-items: center; gap: 10px; }
.eyebrow--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .16); flex: none; }
.h1 { font-family: var(--font-title); font-weight: 700; font-size: clamp(32px, 8.4vw, 64px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 6.6vw, 46px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.h2--light { color: var(--off); }
.lead { font-size: 17px; line-height: 1.6; color: var(--slate-700); max-width: 34em; text-wrap: pretty; }
.lead--light { color: var(--mist); }
.note { font-size: 14px; line-height: 1.55; color: var(--slate); max-width: 36em; }
.note--light { color: var(--slate-400); }
.note--center { text-align: center; margin-inline: auto; }
@media (min-width: 960px) { .lead { font-size: 18px; } }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: background var(--t-base) ease, border-color var(--t-base) ease, transform var(--t-fast) ease, box-shadow var(--t-base) ease; }
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn--lg { height: 54px; padding: 0 24px; font-size: 16px; }
/* Navy sobre teal: contraste ~6:1 (branco sobre teal não atinge 4.5:1) */
.btn--primary { background: var(--teal); color: var(--navy); box-shadow: 0 10px 24px -14px rgba(20, 184, 166, .9); }
.btn--primary:hover { background: var(--teal-hover); color: var(--dark); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--mist); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--danger-outline { height: 46px; width: 100%; background: var(--white); color: var(--danger); border-color: var(--danger-line); }
.btn--danger-outline:hover { border-color: var(--danger); color: var(--danger); }
.btn--danger-outline.is-restore { color: var(--navy); border-color: var(--mist); }
.hide-xs { display: none; }
@media (min-width: 360px) { .hide-xs { display: inline; } }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 252, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(203, 213, 225, .6); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.nav__brand { flex: none; display: flex; align-items: center; margin-right: auto; }
.nav__brand img { height: 22px; width: auto; }
.nav__links { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__login { display: none; font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 6px; }
.nav__toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform var(--t-slow) var(--ease), opacity var(--t-base) ease; }
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu-mobile { border-top: 1px solid var(--line); background: var(--off); padding: 8px var(--gutter) 16px; display: flex; flex-direction: column; }
.menu-mobile[hidden] { display: none; }
.menu-mobile a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-mobile a:last-child { border-bottom: 0; color: var(--slate-700); }
@media (min-width: 600px) { .nav__brand img { height: 26px; } .nav__login { display: inline-block; } .nav { gap: 20px; } }
@media (min-width: 1024px) {
  .nav__toggle, .menu-mobile { display: none !important; }
  .nav__brand { margin-right: 0; }
  .nav__links { display: flex; flex: 1; justify-content: center; gap: 28px; }
  .nav__links a { font-size: 14px; font-weight: 500; color: var(--slate-700); text-decoration: none; padding: 8px 0; transition: color var(--t-base) ease; }
  .nav__links a:hover { color: var(--navy); }
}

/* ---------- iPhone (moldura reutilizável) ---------- */
.phone { width: var(--phone-w); padding: 7px; background: var(--dark); border-radius: calc(var(--phone-w) * .15); box-shadow: var(--shadow-phone); flex: none; }
.phone__screen { position: relative; container-type: inline-size; aspect-ratio: 588 / 1280; border-radius: calc(var(--phone-w) * .125); overflow: hidden; background: var(--off); }
.phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__island { position: absolute; top: 1.5%; left: 50%; transform: translateX(-50%); width: 30%; height: 3%; background: var(--dark); border-radius: 999px; z-index: 3; }
/* Troca de telas com leve transição de nitidez (só imagem, nunca texto da página) */
.screen { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; filter: blur(8px); transition: opacity 420ms ease, filter 520ms var(--ease); }
.screen.is-active { opacity: 1; filter: none; z-index: 1; }

/* ---------- Hero ---------- */
.hero { background: var(--off); overflow: hidden; }
.hero__grid { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 0; }
.hero__copy { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.hero__ctas .btn { width: 100%; }
.hero__support { font-size: 13px; color: var(--slate); }
/* Mobile: mockup recortado para mostrar o produto sem empurrar a página */
.hero__visual { position: relative; display: flex; justify-content: center; height: 330px; overflow: hidden; padding-top: 8px; padding-left: 64px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.phone--hero { --phone-w: 220px; }
.capture { position: absolute; z-index: 2; left: max(0px, calc(50% - 168px)); top: 96px; width: 150px; padding: 8px; border-radius: 18px; background: var(--dark); box-shadow: 0 24px 50px -20px rgba(11, 18, 32, .65); display: flex; flex-direction: column; gap: 8px; }
.capture__photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #1E293B; }
.capture__photo img { width: 100%; height: 100%; object-fit: cover; transition: filter 600ms var(--ease), transform 600ms var(--ease); }
.capture__meta { display: flex; flex-direction: column; gap: 6px; }
.capture__chip { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--off); transition: opacity var(--t-slow) ease, transform var(--t-slow) ease; }
.capture__chip--patient { padding: 6px 7px; border-radius: 9px; background: rgba(248, 250, 252, .08); }
.capture__chip--patient img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; }
.capture__chip--patient span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capture__chip--saved { padding: 0 4px; color: var(--teal-soft); font-weight: 600; }
/* Demo do hero: o estado final é o padrão (sem JS). Com JS, main.js percorre data-step 0→3. */
.capture[data-step="0"] .capture__photo img { filter: blur(7px); transform: scale(1.04); }
.capture[data-step="0"] .capture__chip, .capture[data-step="1"] .capture__chip { opacity: 0; transform: translateY(6px); }
.capture[data-step="2"] .capture__chip--saved { opacity: 0; }

@media (min-width: 600px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero__ctas .btn { width: auto; }
  .hero__visual { height: 440px; padding-left: 120px; }
  .phone--hero { --phone-w: 260px; }
  .capture { width: 200px; left: max(0px, calc(50% - 250px)); top: 150px; }
  .capture__chip { font-size: 12px; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
  .hero__copy { gap: 24px; }
  .hero__visual { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 8px 0 8px 110px; }
  .phone--hero { --phone-w: 300px; }
  .capture { width: 228px; top: auto; bottom: 64px; left: max(0px, calc(50% - 270px)); }
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--mist { background: var(--off); border-top: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--off); }
.section--navy { background: var(--navy); color: var(--off); }
.split { display: grid; gap: 40px; align-items: center; }
.split__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.split__copy > .reveal:first-child { display: flex; flex-direction: column; gap: 16px; }
.split__visual { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack__head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.stack__head .h2 { max-width: 820px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--reverse .split__visual { order: -1; }
  .split--compare .split__visual { order: -1; }
  .stack { gap: 56px; }
}

/* ---------- Etapas (Como funciona) ---------- */
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.steps__item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; padding: 16px 0 16px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; min-height: 44px; }
.steps__item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: transparent; transition: background var(--t-slow) ease; }
.steps__num { font-size: 13px; font-weight: 600; color: var(--slate-400); padding-top: 3px; transition: color var(--t-slow) ease; }
.steps__title { font-family: var(--font-title); font-weight: 600; font-size: 18px; color: var(--slate); transition: color var(--t-slow) ease; }
.steps__text { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--slate); }
.steps__item[aria-selected="true"]::before { background: var(--teal); }
.steps__item[aria-selected="true"] .steps__num { color: var(--teal-ink); }
.steps__item[aria-selected="true"] .steps__title { color: var(--navy); }
.steps__item:hover .steps__title { color: var(--navy); }

/* Tela de câmera reconstruída */
.camera { background: var(--dark); display: flex; flex-direction: column; color: var(--off); }
.camera__top { height: 12%; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 0 7% 3%; font-size: 11px; }
.camera__top span { font-size: 10px; color: var(--mist); }
.camera__view { position: relative; flex: 1; overflow: hidden; }
.camera__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera__guide { position: absolute; inset: 14% 16% 22%; border: 1.5px solid rgba(248, 250, 252, .55); border-radius: 46% 46% 42% 42%; }
.camera__label { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(11, 18, 32, .66); font-size: 10px; white-space: nowrap; }
.camera__bottom { height: 17%; display: flex; align-items: center; justify-content: center; }
.camera__shutter { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--off); position: relative; }
.camera__shutter::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--off); }

/* ---------- Comparador ---------- */
.features { display: flex; flex-direction: column; border-top: 1px solid rgba(203, 213, 225, .14); }
.features li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid rgba(203, 213, 225, .14); }
.features h3 { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--off); }
.features .tag { font-size: 12px; color: var(--slate-400); align-self: center; }
.features p { grid-column: 1 / -1; font-size: 15px; line-height: 1.55; color: var(--mist); }
.compare-wrap { width: 100%; }
.compare { --pos: 50%; position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #1E293B; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 1px rgba(203, 213, 225, .12); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__img--a { filter: saturate(.82) brightness(.95); } /* remover quando houver par real */
.compare__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); -webkit-clip-path: inset(0 0 0 var(--pos)); }
.compare__badge { position: absolute; top: 12px; width: 28px; height: 28px; border-radius: 8px; background: rgba(11, 18, 32, .72); color: var(--off); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.compare__badge--a { left: 12px; }
.compare__badge--b { right: 12px; }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--off); box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.compare__handle { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--off); color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 17px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform var(--t-fast) ease; }
.compare.is-dragging .compare__handle { transform: scale(1.08); }
.compare__handle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--teal), 0 8px 24px rgba(0, 0, 0, .35); border-radius: 50%; }
.compare__legend { width: 100%; max-width: 460px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mist); }
.compare__legend b { color: var(--teal-soft); font-weight: 600; margin-right: 4px; }
.compare__hint { font-size: 13px; color: var(--slate-400); }
.compare-wrap .note { text-align: center; max-width: 460px; }

/* ---------- Documentação ---------- */
.segmented { display: flex; width: 100%; padding: 4px; gap: 4px; border-radius: 14px; background: var(--line); }
.segmented button { flex: 1 1 auto; height: 42px; padding: 0 8px; font-size: 13px; border: 0; border-radius: 10px; background: transparent; color: var(--slate-700); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--t-base) ease, color var(--t-base) ease; }
.segmented button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 39, 71, .12); }
.doc-desc { display: grid; margin-top: 18px; }
.doc-desc__item { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) ease; }
.doc-desc__item.is-active { opacity: 1; visibility: visible; }
.doc-desc h3 { font-family: var(--font-title); font-size: 18px; font-weight: 600; }
.doc-desc p { font-size: 15px; line-height: 1.6; color: var(--slate-700); max-width: 32em; }
html:not(.js) .doc-desc__item { opacity: 1; visibility: visible; grid-area: auto; }
.split--reverse .split__copy > .note { padding-top: 16px; border-top: 1px solid var(--line); }

/* Tela de consentimento reconstruída */
.consent { background: var(--off); padding: 16% 7% 0; display: flex; flex-direction: column; gap: 8px; }
.consent__patient { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--slate); }
.consent__title { font: 700 17px/1.2 var(--font-title); }
.consent__meta, .consent__foot { font-size: 10px; color: var(--slate); line-height: 1.4; }
.consent__pills { display: flex; gap: 6px; margin: 2px 0 6px; }
.consent__pills span { padding: 3px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); font-size: 10px; font-weight: 600; }
.consent__label { font-size: 11px; font-weight: 600; }
.consent__list { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.consent__list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; font-size: 11px; border-bottom: 1px solid var(--line); }
.consent__list li:last-child { border-bottom: 0; }
.consent__list b { font-size: 10px; color: var(--slate); white-space: nowrap; }
.consent__list b.ok { color: var(--teal-ink); }

/* ---------- Tablet: ferramentas da fotografia (demonstração interativa) ---------- */
.tablet { width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(7px, 1.4vw, 14px); background: var(--dark); border-radius: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-phone); }
.tablet__screen { display: grid; grid-template-areas: "top" "photo" "tools" "side"; grid-template-columns: minmax(0, 1fr); border-radius: clamp(13px, 2vw, 22px); overflow: hidden; background: var(--off); }
.tb-top { grid-area: top; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--white); border-bottom: 1px solid var(--line); min-width: 0; }
.tb-top__back { font-size: 24px; line-height: 1; color: var(--navy); }
.tb-top__title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tb-top__title strong { font: 700 15px var(--font-title); }
.tb-top__title span { font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tb-photo { grid-area: photo; position: relative; aspect-ratio: 1 / 1.08; background: var(--dark); display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; min-height: 0; }
.tb-frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #1E293B; isolation: isolate; }
.tb-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) ease, visibility var(--t-slow) ease; }
.tb-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-tool-active="zoom"] .tb-layer--single,
[data-tool-active="eyes"] .tb-layer--single,
[data-tool-active="mark"] .tb-layer--single,
[data-tool-active="compare"] .tb-layer--compare,
[data-tool-active="ghost"] .tb-layer--ghost,
[data-tool-active="collage"] .tb-layer--collage { opacity: 1; visibility: visible; }

/* Smart Zoom: transform calculado em main.js a partir de DEMO_MEDIA.zoom */
.tb-main { transform-origin: 50% 50%; transition: transform 900ms var(--ease); will-change: transform; }

/* Ocultar olhos: coordenadas em % da foto (DEMO_MEDIA.eyeMask) */
.tb-mask { position: absolute; left: var(--mask-x, 28%); top: var(--mask-y, 31.5%); width: var(--mask-w, 44%); height: var(--mask-h, 8.5%); border-radius: 999px; background: var(--dark); box-shadow: 0 0 0 1px rgba(248, 250, 252, .12); opacity: 0; transform: scaleX(.3); transition: transform 420ms var(--ease), opacity var(--t-slow) ease; }
[data-tool-active="eyes"].is-masked .tb-mask { opacity: 1; transform: none; }

/* Marcar: SVG no mesmo sistema de coordenadas da foto 4:5 (100 × 125) */
.tb-mark { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--t-base) ease; pointer-events: none; overflow: visible; }
[data-tool-active="mark"] .tb-mark { opacity: 1; }
.tb-mark path { fill: none; stroke: var(--teal); stroke-width: .75; stroke-linecap: round; stroke-linejoin: round; }
.tb-mark__pen { fill: var(--white); stroke: var(--teal); stroke-width: 2px; vector-effect: non-scaling-stroke; }

/* Comparar (versão compacta) */
.mini-compare { --pos: 50%; position: absolute; inset: 0; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.mini-compare img { pointer-events: none; }
.mini-compare__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); -webkit-clip-path: inset(0 0 0 var(--pos)); }
.mini-compare__tag { position: absolute; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(11, 18, 32, .72); color: var(--off); font-size: 11px; font-weight: 600; }
.mini-compare__tag--a { left: 8px; }
.mini-compare__tag--b { right: 8px; }
.mini-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--off); }
.mini-compare__handle { position: absolute; top: 50%; left: var(--pos); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--off); color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.mini-compare__handle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--teal), 0 6px 18px rgba(0, 0, 0, .35); border-radius: 50%; }

/* Alinhar com IA: A e B lado a lado, divisor fixo; B recebe translação, rotação e escala uniforme (main.js) */
[data-tool-active="align"] .tb-layer--align { opacity: 1; visibility: visible; }
.tb-layer--align { display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--dark); }
.align-box { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* Cada painel mantém 4:5 (proporção da foto), então as coordenadas dos olhos valem para o painel */
.align-pair { position: relative; width: 100%; aspect-ratio: 8 / 5; /* área da foto é sempre ≤ 1,6:1, então a largura limita */ display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; background: var(--off); border-radius: 10px; overflow: hidden; }
.align-panel { position: relative; overflow: hidden; background: var(--dark); min-height: 0; }
.align-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Só a imagem B se move dentro do painel fixo: escala uniforme + deslocamento, sem rotação */
.align__target { transform-origin: 50% 50%; transition: transform 1000ms cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.align__target.no-anim { transition: none; }
.align__badge { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 7px; background: rgba(11, 18, 32, .72); color: var(--off); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; z-index: 3; }
.align__status { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(11, 18, 32, .8); color: var(--off); font-size: 11px; font-weight: 600; white-space: nowrap; z-index: 4; transition: color var(--t-slow) ease; }
.tb-layer--align.is-aligned .align__status { color: var(--teal-soft); }
@media (min-width: 600px) { .tb-layer--align { padding: 12px; } }

/* Ghost Photo */
.ghost__live { transition: transform 1100ms var(--ease); }
.tb-layer--ghost.is-offset .ghost__live { transform: translate(5%, 4%) scale(1.07); transition: none; }
.ghost__ref { opacity: var(--ghost-op, .35); mix-blend-mode: normal; }
.ghost__guide { position: absolute; inset: 14% 20% 26%; border: 1.5px dashed rgba(248, 250, 252, .55); border-radius: 46% 46% 42% 42%; }
.ghost__pill { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(11, 18, 32, .72); color: var(--off); font-size: 11px; font-weight: 500; white-space: nowrap; }
.ghost__shutter { position: absolute; left: 50%; bottom: 10px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 3px solid var(--off); }
.ghost__shutter::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--off); }

/* Colagem: 2, 3 ou 4 fotos (ocupa a área inteira da foto) */
.tb-layer--collage { inset: 0; padding: 8px; background: var(--dark); }
.collage { height: 100%; display: grid; gap: 6px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; transition: opacity var(--t-base) ease; }
.collage__tile { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: #1E293B; min-height: 0; }
.collage__tile figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(11, 18, 32, .72); color: var(--off); font-size: 10px; font-weight: 500; white-space: nowrap; }
.collage__tile--eyes img { transform: scale(2.3) translate(0, 14.5%); }
.collage__tile--mouth img { transform: scale(2.3) translate(-1%, -8%); }
.collage[data-collage="2"] .collage__tile:nth-child(n+3) { display: none; }
.collage[data-collage="3"] { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; }
.collage[data-collage="3"] .collage__tile:first-child { grid-row: 1 / 3; }
.collage[data-collage="3"] .collage__tile:nth-child(4) { display: none; }
.collage[data-collage="4"] { grid-template-rows: 1fr 1fr; }
.collage.is-switching { opacity: 0; }

/* Barra de ferramentas: rolagem horizontal no celular, distribuída no desktop */
.tb-tools-wrap { grid-area: tools; position: relative; background: var(--white); border-top: 1px solid var(--line); min-width: 0; }
.tb-tools-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.tb-tools { display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tb-tools::-webkit-scrollbar { display: none; }
.tb-tool { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; height: 60px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--slate-700); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background var(--t-base) ease, color var(--t-base) ease; }
.tb-tool:hover { background: rgba(20, 184, 166, .12); color: var(--navy); }
.tb-tool[aria-selected="true"] { background: var(--teal); color: var(--navy); font-weight: 600; }
.tb-tool svg { flex: none; }

/* Painel de informação: todos os textos no HTML; só o ativo aparece (sem salto de altura) */
.tb-side { grid-area: side; display: grid; padding: 16px 18px 20px; background: var(--white); border-top: 1px solid var(--line); min-width: 0; }
.tb-info { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) ease; }
.tb-info.is-active { opacity: 1; visibility: visible; }
html:not(.js) .tb-info { opacity: 1; visibility: visible; grid-area: auto; margin-bottom: 16px; }
.tb-info h3 { font: 600 17px var(--font-title); }
.tb-info p { font-size: 14px; line-height: 1.55; color: var(--slate-700); }
.tb-info .tb-hint { font-size: 12px; color: var(--slate); }
.tb-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-opt { min-height: 40px; padding: 0 14px; white-space: nowrap; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--t-base) ease, border-color var(--t-base) ease, color var(--t-base) ease; }
.tb-opt:hover { border-color: var(--navy); }
.tb-opt[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tb-range { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--navy); }
.tb-range span { grid-column: 1 / -1; }
.tb-range input { width: 100%; accent-color: var(--teal); min-height: 32px; }
.tb-range output { font-size: 13px; color: var(--slate-700); min-width: 3ch; text-align: right; }

@media (min-width: 600px) { .tb-photo { aspect-ratio: 16 / 10; padding: 12px; } .tb-layer--collage { padding: 12px; } }
@media (min-width: 900px) {
  .tablet__screen { aspect-ratio: 4 / 3; grid-template-areas: "top top" "photo side" "tools tools"; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) auto; }
  .tb-photo { aspect-ratio: auto; padding: 18px; }
  .tb-side { border-top: 0; border-left: 1px solid var(--line); padding: 24px 22px; align-content: start; overflow: auto; }
  .tb-tools-wrap::after { display: none; }
  .tb-tools { justify-content: center; overflow: visible; padding: 10px 16px; }
  .tb-tool { flex: 1 1 0; max-width: 128px; }
}

/* ---------- Privacidade / compartilhamento ---------- */
.facts { display: grid; gap: 22px 32px; }
.facts div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(203, 213, 225, .18); }
.facts dt { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--off); }
.facts dd { font-size: 14px; line-height: 1.55; color: var(--mist); }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }

.share { width: 100%; max-width: 420px; background: var(--white); color: var(--navy); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.share__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share__head h3 { font: 700 18px var(--font-title); }
.share__demo { font-size: 11px; font-weight: 500; color: var(--slate); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.share__item { display: flex; gap: 12px; align-items: center; }
.share__item img { width: 52px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; transition: filter var(--t-slow) ease; }
.share__item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; color: var(--slate); }
.share__item strong { font-size: 14px; color: var(--navy); }
.share__ok { color: var(--teal-ink); font-weight: 500; }
.share__field { border: 0; margin: 0; padding: 0; }
.share__field legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.share__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #F1F5F9; }
.share__seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--slate); font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--t-fast) ease, color var(--t-fast) ease; }
.share__seg button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 39, 71, .14); }
.share__switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; padding: 0; min-height: 44px; cursor: pointer; text-align: left; }
.share__switch > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--slate); }
.share__switch strong { font-size: 13px; color: var(--navy); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--mist); transition: background var(--t-base) ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t-base) ease; }
.share__switch[aria-checked="true"] .switch { background: var(--teal); }
.share__switch[aria-checked="true"] .switch::after { transform: translateX(18px); }
.share__link { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--off); transition: background var(--t-base) ease, border-color var(--t-base) ease; }
.share__link code { font: 500 13px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share__link span { font-size: 12px; color: var(--slate); }
.share.is-revoked .share__link { background: #FEF2F2; border-color: var(--danger-line); }
.share.is-revoked .share__link code { color: var(--slate-400); text-decoration: line-through; }
.share.is-revoked .share__link span { color: var(--danger); }
.share.is-revoked .share__item img { filter: grayscale(1) opacity(.5); }
.share button:disabled { cursor: not-allowed; opacity: .5; }

/* ---------- iPhone + Web ---------- */
.devices { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; padding-bottom: 28px; }
.browser { container-type: inline-size; width: min(100%, 880px); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 40px 90px -40px rgba(15, 39, 71, .45), 0 0 0 1px var(--line); }
.browser__bar { height: 4.4cqw; min-height: 22px; display: flex; align-items: center; gap: .8cqw; padding: 0 1.6cqw; background: #F1F5F9; border-bottom: 1px solid var(--line); }
.browser__bar i { width: max(6px, 1.1cqw); height: max(6px, 1.1cqw); border-radius: 50%; background: var(--mist); }
.browser__bar span { margin: 0 auto; padding: .4cqw 2.4cqw; border-radius: 999px; background: var(--white); font-size: max(9px, 1.25cqw); color: var(--slate); }
.web { display: grid; grid-template-columns: 17% 31% 1fr; aspect-ratio: 16 / 9.4; }
.web__side { background: var(--off); border-right: 1px solid var(--line); padding: 2cqw 1.4cqw; display: flex; flex-direction: column; gap: .6cqw; }
.web__side img { width: 72%; height: auto; margin: 0 0 1.6cqw .4cqw; }
.web__side span { padding: .8cqw 1cqw; color: var(--slate); font-size: 1.3cqw; border-radius: .8cqw; }
.web__side span.is-active { background: #CCFBF1; color: var(--navy); font-weight: 600; }
.web__list { border-right: 1px solid var(--line); padding: 2cqw 1.6cqw; display: flex; flex-direction: column; gap: 1cqw; min-width: 0; }
.web__h { font: 700 2.2cqw var(--font-title); }
.web__search { padding: .8cqw 1.2cqw; border-radius: .8cqw; background: #F1F5F9; color: var(--slate-400); font-size: 1.2cqw; }
.web__row { display: flex; align-items: center; gap: 1cqw; padding: .8cqw; border-radius: 1cqw; }
.web__row.is-active { background: #F0FDFA; box-shadow: inset 0 0 0 1px #99F6E4; }
.web__row img, .web__initials { width: 3.6cqw; height: 3.6cqw; border-radius: .8cqw; object-fit: cover; flex: none; }
.web__initials { background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.1cqw; font-weight: 600; color: var(--slate-700); }
.web__row span { display: flex; flex-direction: column; gap: .2cqw; min-width: 0; }
.web__row b { font-size: 1.3cqw; font-weight: 600; }
.web__row small { font-size: 1cqw; color: var(--slate); }
.web__detail { padding: 2cqw 2.2cqw; display: flex; flex-direction: column; gap: 1.2cqw; min-width: 0; }
.web__patient { display: flex; align-items: center; gap: 1.2cqw; }
.web__patient img { width: 4cqw; height: 4cqw; border-radius: 50%; object-fit: cover; }
.web__patient strong { font: 700 2.2cqw var(--font-title); }
.web__pills { display: flex; gap: .8cqw; }
.web__pills span { padding: .4cqw 1cqw; border-radius: 999px; background: #F1F5F9; font-size: 1.1cqw; color: var(--slate-700); }
.web__pills span.ok { background: var(--ok-bg); color: var(--ok-fg); font-weight: 600; }
.web__tabs { display: flex; gap: 2cqw; border-bottom: 1px solid var(--line); font-size: 1.25cqw; color: var(--slate); }
.web__tabs span { padding-bottom: .8cqw; }
.web__tabs .is-active { border-bottom: 2px solid var(--teal); color: var(--navy); font-weight: 600; }
.web__session { font-size: 1.25cqw; }
.web__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqw; }
.web__tile { position: relative; aspect-ratio: 1; border-radius: .8cqw; overflow: hidden; background: #1E293B; }
.web__tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.web__tile--eyes img { transform: scale(2); object-position: 50% 17.5%; }
.web__tile--mouth img { transform: scale(1.8); object-position: 50% 100%; }
.web__tile small { position: absolute; left: .6cqw; bottom: .6cqw; padding: .2cqw .7cqw; border-radius: 999px; background: rgba(11, 18, 32, .7); color: var(--off); font-size: 1cqw; }
.phone--overlap { --phone-w: clamp(96px, 24vw, 230px); position: absolute; right: 0; bottom: 0; padding: 5px; }
.platforms { display: grid; gap: 20px 48px; max-width: 880px; width: 100%; margin: 0 auto; }
.platforms div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.platforms h3 { font: 600 16px var(--font-title); }
.platforms p { font-size: 15px; line-height: 1.55; color: var(--slate-700); }
@media (min-width: 600px) { .platforms { grid-template-columns: 1fr 1fr; } .devices { padding-bottom: 48px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 56px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 600 17px/1.4 var(--font-title); }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: var(--slate); transition: transform var(--t-slow) var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--slate-700); max-width: 44em; }

/* ---------- Conversão final ---------- */
.final { background: var(--dark); color: var(--off); padding-block: calc(var(--section-y) + 8px); }
.final__grid { display: grid; gap: 40px; align-items: center; }
.final__copy { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.final__symbol { width: 56px; height: 56px; }
.journey { display: grid; gap: 10px; margin: 4px 0; counter-reset: none; }
.journey li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--mist); }
.journey b { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(203, 213, 225, .3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--off); flex: none; }
.journey li:first-child b { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.final__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.final__ctas .btn { width: 100%; }
.appstore-badge { display: inline-flex; border-radius: 8px; }
.appstore-badge img { height: 50px; width: auto; }
.appstore-badge { display: inline-flex; }
.final__support { font-size: 13px; color: var(--slate-400); }
.qr { display: none; }
@media (min-width: 600px) { .final__ctas .btn { width: auto; } .journey { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .final__grid { grid-template-columns: 1fr auto; gap: 80px; }
  .qr { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 200px; padding: 22px; border-radius: 20px; background: var(--white); text-align: center; }
  .qr img { width: 144px; height: 144px; }
  .qr span { font-size: 12px; line-height: 1.45; color: var(--slate-700); }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--dark); color: var(--mist); border-top: 1px solid rgba(203, 213, 225, .12); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 32px; height: 32px; }
.footer__brand span { display: flex; flex-direction: column; gap: 2px; }
.footer__brand strong { font: 600 14px var(--font-title); color: var(--off); }
.footer__brand small, .footer__copy { font-size: 12px; color: var(--slate-400); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { color: var(--mist); text-decoration: none; font-size: 14px; padding: 8px 0; }
.footer__links a:hover { color: var(--off); text-decoration: underline; }

/* ---------- Placeholders de mídia (CONFIG.showPlaceholderLabels) ---------- */
.placeholder-tag { display: none; position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(11, 18, 32, .78); color: var(--mist); font: 500 10px var(--font-mono); z-index: 4; }
.placeholder-tag--light { left: 0; bottom: 0; background: transparent; color: var(--slate); padding: 0; }
.show-placeholders .placeholder-tag { display: block; }

/* ---------- Revelação progressiva (só com JS; texto nunca recebe blur) ---------- */
.js .reveal.is-pending { opacity: 0; transform: translateY(14px); }
.js .reveal--media.is-pending { filter: blur(8px); }
.js .reveal { transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease), filter 700ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; filter: none; }
}

/* Ajustes pós-revisão */
@media (min-width: 600px) { .segmented { display: inline-flex; width: auto; } .segmented button { flex: none; padding: 0 16px; font-size: 14px; } }
.compare__legend { flex-wrap: wrap; font-size: 12px; }
@media (min-width: 400px) { .compare__legend { font-size: 13px; } }
@media (max-width: 599px) { .capture { width: 132px; top: 112px; } }
@media (min-width: 960px) { .hero .h1 { font-size: clamp(44px, 4.6vw, 64px); } }
.browser { width: min(100%, 840px); }

/* ---------- Telas do iPhone reconstruídas em HTML (escala por container query units) ---------- */
.ios { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--off); color: var(--navy); font-family: var(--font-ui); overflow: hidden; line-height: 1.3; }
.ios svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ios__status { flex: none; height: 12cqw; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 8cqw 2cqw 10cqw; font: 600 4.3cqw/1 var(--font-ui); background: var(--off); }
.ios__sig { display: flex; align-items: flex-end; gap: .6cqw; }
.ios__sig i { width: 1cqw; height: 1.6cqw; border-radius: .3cqw; background: var(--navy); }
.ios__sig i:nth-child(2) { height: 2.4cqw; } .ios__sig i:nth-child(3) { height: 3.2cqw; }
.ios__sig b { width: 6cqw; height: 3cqw; margin-left: 1.4cqw; border-radius: 1cqw; border: .4cqw solid var(--navy); background: linear-gradient(90deg, var(--navy) 60%, transparent 60%); }
.ios__kicker { margin: 4cqw 6cqw 0; font: 600 3.3cqw var(--font-ui); letter-spacing: .06em; }
.ios__back { font-size: 7cqw; line-height: 1; }
.ios__chips { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.ios__chips span { padding: 1cqw 2.6cqw; border-radius: 999px; background: #EEF2F7; font-size: 3.1cqw; font-weight: 500; color: var(--slate-700); }
.ios__chips .ok { background: var(--ok-bg); color: var(--ok-fg); font-weight: 600; }
.ios__label { margin: 3cqw 5cqw 1.6cqw; font-size: 3.5cqw; font-weight: 600; color: var(--slate); }
.ios__muted { font-size: 3.1cqw; color: var(--slate); line-height: 1.4; }
.ios-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2cqw; background: #1E293B; }
.ios-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ios-tile--eyes img { object-position: 50% 17.5%; transform: scale(2); }
.ios-tile--mouth img { object-position: 50% 100%; transform: scale(1.8); }
.ios-tile--side img { object-position: 50% 25%; transform: scale(1.35) translateX(6%); }
/* tabbar */
.ios__tabbar { flex: none; margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 2.4cqw 2cqw 5cqw; background: var(--white); border-top: 1px solid var(--line); }
.ios__tabbar span { display: flex; flex-direction: column; align-items: center; gap: 1cqw; font-size: 3cqw; font-weight: 500; color: var(--slate); }
.ios__tabbar svg { width: 6cqw; height: 6cqw; padding: 1.4cqw 4cqw; box-sizing: content-box; border-radius: 999px; }
.ios__tabbar .is-active { color: var(--navy); font-weight: 600; }
.ios__tabbar .is-active svg { background: #E6FAF7; }
.ios__tabbar .is-cta { color: var(--navy); font-weight: 600; }
.ios__tabbar .is-cta svg { background: var(--teal); color: var(--white); }
/* lista de pacientes */
.ios--list .ios__status { border-bottom: .6cqw solid var(--teal); }
.ios__titlerow { display: flex; justify-content: space-between; align-items: center; margin: 2cqw 6cqw 0; }
.ios__titlerow strong { font: 600 7.4cqw var(--font-title); }
.ios__fab { width: 11cqw; height: 11cqw; border-radius: 3cqw; background: var(--teal); color: var(--white); font-size: 7cqw; display: flex; align-items: center; justify-content: center; }
.ios__searchrow { display: flex; gap: 2cqw; margin: 4cqw 6cqw 3.4cqw; }
.ios__search { flex: 1; min-width: 0; height: 10cqw; display: flex; align-items: center; padding: 0 3.5cqw; border-radius: 3cqw; background: #EEF2F7; color: var(--slate-400); font-size: 3.6cqw; white-space: nowrap; overflow: hidden; }
.ios__seg { display: flex; gap: 1cqw; padding: 1cqw; border-radius: 3cqw; background: #EEF2F7; }
.ios__seg i { width: 8cqw; height: 8cqw; border-radius: 2.4cqw; }
.ios__seg i.is-on { background: var(--white); }
.ios__cards { display: flex; flex-direction: column; gap: 2.6cqw; padding: 0 6cqw; }
.ios__cards li { display: flex; align-items: center; gap: 4cqw; padding: 2.4cqw; border-radius: 3.6cqw; background: var(--white); box-shadow: 0 .4cqw 1.6cqw rgba(15, 39, 71, .06); }
.ios__cards img, .ios__initials { width: 16cqw; height: 16cqw; border-radius: 3cqw; object-fit: cover; flex: none; }
.ios__initials { background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 4.4cqw; font-weight: 600; color: var(--slate-700); }
.ios__cards li > span:not(.ios__initials) { display: flex; flex-direction: column; gap: .6cqw; min-width: 0; flex: 1; }
.ios__cards b { font-size: 4.6cqw; font-weight: 500; }
.ios__cards small { font-size: 3.1cqw; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios__cards i { font-style: normal; color: var(--mist); font-size: 5cqw; }
/* histórico da paciente */
.ios__head { flex: none; display: flex; align-items: center; gap: 2.6cqw; padding: 3cqw 5cqw; border-top: .6cqw solid var(--teal); }
.ios__head img { width: 10cqw; height: 10cqw; border-radius: 50%; object-fit: cover; }
.ios__head strong { flex: 1; font: 600 5.2cqw var(--font-title); }
.ios__icons { display: flex; gap: 3cqw; align-items: center; }
.ios__icons i { font-style: normal; font-size: 3.4cqw; font-weight: 600; width: 6cqw; height: 6cqw; border: .45cqw solid var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ios__icons i + i { border: 0; font-size: 4.4cqw; }
.ios--patient > .ios__chips { padding: 0 5cqw 3cqw; border-bottom: 1px solid var(--line); }
.ios__collages { display: flex; gap: 2.6cqw; padding: 0 5cqw; }
.ios-collage { position: relative; width: 26cqw; display: flex; flex-direction: column; gap: 1cqw; }
.ios-collage__in { display: grid; grid-template-columns: 1fr 1fr; gap: .4cqw; aspect-ratio: 4 / 5; border-radius: 2cqw; overflow: hidden; }
.ios-collage__in .ios-tile { aspect-ratio: auto; border-radius: 0; }
.ios-collage em { position: absolute; left: 1.4cqw; top: calc(32.5cqw - 6.6cqw); font-style: normal; font-size: 2.6cqw; font-weight: 600; color: var(--white); background: rgba(11, 18, 32, .7); padding: .6cqw 1.6cqw; border-radius: 1.4cqw; }
.ios-collage small { font-size: 3cqw; color: var(--slate); }
.ios__session { display: flex; justify-content: space-between; margin: 3.4cqw 5cqw 1.6cqw; font-size: 3.6cqw; color: var(--slate); }
.ios__session b { font: 600 3.8cqw var(--font-title); color: var(--navy); }
.ios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; padding: 0 1cqw; }
.ios__actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; padding: 3cqw 5cqw 6cqw; background: var(--white); border-top: 1px solid var(--line); }
.ios__new { display: flex; flex-direction: column; align-items: center; font-size: 5cqw; font-weight: 600; line-height: 1; }
.ios__new small { font-size: 3.1cqw; margin-top: 1cqw; }
.ios__shoot { display: flex; align-items: center; gap: 2cqw; padding: 3cqw 8cqw; border-radius: 4cqw; background: var(--teal); color: var(--navy); font-size: 4.2cqw; font-weight: 600; }
.ios__shoot svg { width: 5cqw; height: 5cqw; }
/* anamnese */
.ios__navbar { flex: none; position: relative; height: 10cqw; display: flex; align-items: center; justify-content: center; background: var(--white); border-bottom: 1px solid var(--line); }
.ios__navbar .ios__back { position: absolute; left: 5cqw; }
.ios__navbar b { font-size: 4.4cqw; font-weight: 600; }
.ios__doc { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.5cqw; padding: 4cqw 6cqw; overflow: hidden; }
.ios__doc .ios__kicker { margin: 0; color: var(--slate); }
.ios__doc-title { font: 600 6cqw/1.2 var(--font-title); }
.ios__doc .ios__label { margin: 2cqw 0 0; font: 600 4cqw var(--font-title); color: var(--navy); }
.ios__box { display: flex; flex-direction: column; gap: .6cqw; padding: 2.6cqw 3cqw; border: 1px solid var(--mist); border-radius: 2.6cqw; background: var(--white); font-size: 3.3cqw; }
.ios__box b { font-weight: 600; }
.ios__line { font-size: 3.5cqw; }
.ios__sign { flex: none; height: 17cqw; display: flex; align-items: center; justify-content: center; border: 1px solid var(--mist); border-radius: 2.6cqw; background: var(--white); }
.ios__sign svg { width: 52%; stroke-width: 1.3; }
.ios__btn { flex: none; text-align: center; padding: 2.4cqw; border: 1px solid var(--mist); border-radius: 2.6cqw; background: var(--white); font-size: 3.7cqw; font-weight: 600; }
/* foto aberta */
.ios__head--viewer { border-top: 0; }
.ios__vt { display: flex; flex-direction: column; min-width: 0; }
.ios__vt strong { font: 600 5cqw var(--font-title); }
.ios__vt small { font-size: 3cqw; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios__photo { flex: 1; min-height: 0; display: flex; justify-content: center; background: var(--dark); }
.ios__photo img { height: 100%; width: auto; max-width: 100%; aspect-ratio: 492 / 615; object-fit: cover; }
.ios__caption { text-align: center; font-size: 3cqw; color: var(--slate); padding: 1.6cqw 0; }
.ios__thumbs { display: flex; gap: 2cqw; padding: 0 4cqw 2cqw; }
.ios__thumbs span { width: 11cqw; height: 11cqw; border-radius: 2cqw; overflow: hidden; border: .6cqw solid transparent; }
.ios__thumbs .is-on { border-color: var(--teal); }
.ios__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ios__tools { flex: none; display: flex; gap: 1.2cqw; padding: 2cqw 3cqw 6cqw; background: var(--white); overflow: hidden; }
.ios__tools span { flex: none; font-size: 2.9cqw; font-weight: 500; padding: 1.6cqw 2.2cqw; border-radius: 2.4cqw; color: var(--slate-700); white-space: nowrap; }
.ios__tools .is-on { background: var(--teal); color: var(--navy); font-weight: 600; }

/* ---------- Links de texto para páginas internas (adicionado na Home candidata) ---------- */
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--navy); }
.text-link--light { color: var(--off); text-decoration-color: rgba(248, 250, 252, .4); }
.text-link--light:hover { color: #fff; }
.split__copy > .text-link, .final__ctas .text-link { align-self: flex-start; }

/* Áreas de toque >= 44 px nos componentes herdados da Home (Home candidata e páginas internas) */
.nav__brand { min-height: 44px; }
.site-header .btn--sm { height: 44px; }
@media (min-width: 600px) { .nav__login { display: inline-flex; align-items: center; min-height: 44px; } }
@media (min-width: 1024px) { .nav__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; } }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.crumbs a { min-width: 44px; }
/* Contraste AA no número das etapas (era #94A3B8 sobre branco, 2,6:1) */
.steps__num { color: var(--slate); }

/* Contraste AA do texto "Buscar paciente" nas telas demonstrativas (era #94A3B8 sobre #EEF2F7, 2,3:1 → 4,85:1) */
.ios__search { color: #5B6B80; }
/* Contraste AA das opções de validade não selecionadas na demonstração de compartilhamento (#64748B sobre #F1F5F9, 4,3:1 → #5B6B80, 5,0:1) */
.share__seg button { color: #5B6B80; }
.share__seg button[aria-pressed="true"] { color: var(--navy); }
/* Mesmo ajuste para a busca da tela Web demonstrativa (#94A3B8 sobre #F1F5F9 → #5B6B80, 5,0:1) */
.web__search { color: #5B6B80; }
