/* ============================================================
   ABASync Landing — design system (vanilla CSS)
   Raio: pill (interativos) · 16px (cards) · 10px (elementos)
   Acento único: verde da marca. Âmbar apenas em alertas de mockup.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --ink: #16211c;
  --muted: #55645c;
  --line: rgba(22, 33, 28, 0.11);
  --brand: #007a55;          /* blocos e superfícies de marca */
  --brand-deep: #005941;
  --accent: #007a55;         /* texto e interação (AA sobre --bg) */
  --tint: #e2f3ea;
  --on-brand: #f2fbf7;
  --amber: #92400e;
  --amber-bg: #fdf0d5;
  --amber-line: #f5c66b;
  --blue: #1d4ed8;
  --blue-bg: #e4ecfd;
  --red: #b42318;
  --red-bg: #fbe9e7;
  --shadow: 0 1px 2px rgba(22, 33, 28, 0.05), 0 12px 32px -12px rgba(22, 33, 28, 0.14);
  --shadow-lift: 0 2px 4px rgba(22, 33, 28, 0.06), 0 24px 48px -16px rgba(22, 33, 28, 0.22);
  --r-card: 16px;
  --r-el: 10px;
  --font: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main, section, footer, .wrap { min-width: 0; }
/* Safari mais antigo não trata `clip` como um bloqueio de rolagem horizontal. */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Tipografia ---------- */
.display {
  font-size: clamp(2.7rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 34em; }
.body-m { color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.accent-word { color: var(--accent); }

/* ---------- Botões (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px rgba(0, 122, 85, 0.55); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 14px 30px -10px rgba(0, 122, 85, 0.6); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- Navbar pílula ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 14px;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: 1rem;
}
/* Navbar em "liquid glass" (aproximação web: blur + bordas e brilhos em camadas) */
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 60px;
  padding-inline: 1.4rem 0.55rem;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    color-mix(in srgb, var(--surface) 10%, transparent);
  /* Vidro líquido: blur médio (dissolve texto, deixa formas e cores fluírem) */
  backdrop-filter: blur(16px) saturate(1.8) brightness(1.05) contrast(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.05) contrast(1.04);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(255, 255, 255, 0.3),
    inset 3px 0 3px -2px rgba(255, 255, 255, 0.5),
    inset -3px 0 3px -2px rgba(255, 255, 255, 0.5),
    inset 0 0 22px rgba(255, 255, 255, 0.1),
    0 14px 36px -14px rgba(22, 33, 28, 0.32);
  transition: box-shadow 0.25s var(--ease);
  max-width: 100%;
}
.nav-pill::before {
  /* Faixa especular fina (reflexo de lente), não véu leitoso */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 32%, rgba(255, 255, 255, 0.5) 43%,
    rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  pointer-events: none;
}
.nav-pill::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Nav adaptativo: sobre seções escuras, texto e logo claros */
.nav-logo .logo-dark { display: none; }
.nav-over-dark .nav-logo .logo-light { display: none; }
.nav-over-dark .nav-logo .logo-dark { display: block; }
.nav-over-dark .nav-links a { color: rgba(242, 251, 247, 0.85); }
.nav-over-dark .nav-links a:hover { color: #fff; }
.nav-over-dark .nav-links a::after { background: #8fe6c5; }
.nav-over-dark .nav-login { border-color: rgba(143, 230, 197, 0.42); background: rgba(242, 251, 247, 0.08); color: #bdf5dc; }
.nav-over-dark .nav-login:hover { border-color: #8fe6c5; background: rgba(143, 230, 197, 0.14); color: #fff; }
.nav-over-dark .nav-pill { border-color: rgba(255, 255, 255, 0.35); }
/* Sem suporte a blur: fundo sólido para manter legibilidade */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill { background: color-mix(in srgb, var(--surface) 96%, transparent); }
}
/* Preferência por menos transparência: vidro vira superfície sólida */
@media (prefers-reduced-transparency: reduce) {
  .nav-pill {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--line);
  }
  .nav-pill::before, .nav-pill::after { display: none; }
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.nav-login {
  padding: 0.48rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-login:hover { border-color: color-mix(in srgb, var(--accent) 56%, var(--line)); background: var(--tint); transform: translateY(-1px); }
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav .btn { padding-block: 0.6rem; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-pill { gap: 1rem; }
}
@media (max-width: 480px) {
  .nav { top: 10px; }
  .nav-pill { height: 54px; padding-inline: 1rem 0.4rem; gap: 0.7rem; width: 100%; justify-content: space-between; }
  .nav-logo img { height: 22px; }
  .nav-login { padding: 0.4rem 0.68rem; font-size: 0.84rem; }
  .nav .btn { font-size: 0.88rem; padding: 0.5rem 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: clamp(5.5rem, 11vh, 7.5rem); /* folga para a navbar fixa */
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero .wrap { width: 100%; max-width: 1280px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy .lead { margin-top: 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-visual { position: relative; perspective: 1100px; }
.hero-visual .mock-browser {
  /* Composição: achatamento por scroll (--hp) + tilt do mouse (--rx/--ry) + lift de hover (--hs) */
  transform:
    rotateX(calc(4deg * (1 - var(--hp, 0)) + var(--rx, 0deg)))
    rotateY(var(--ry, 0deg))
    translateY(calc(-14px * var(--hp, 0)))
    scale(var(--hs, 1));
  transform-origin: 50% 40%;
  will-change: transform;
  transition: box-shadow 0.45s var(--ease);
}
.hero-visual:hover .mock-browser { --hs: 1.012; box-shadow: var(--shadow-lift); }
/* Brilho que segue o cursor durante o tilt */
.mock-glare {
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  will-change: transform;
  z-index: 7;
}
.hero-visual:hover .mock-glare { opacity: 0.4; }
/* Escala maior do painel no hero (preenche a altura da tela) */
.hero-visual .mock { font-size: 14px; }
.hero-visual .mock-side { padding: 1.15rem 1rem; gap: 0.45rem; }
.hero-visual .mock-side img { height: 19px; margin-bottom: 0.9rem; }
.hero-visual .mock-side-item { font-size: 13px; padding: 0.42rem 0.6rem; }
.hero-visual .mock-side-label { font-size: 10px; margin-top: 0.8rem; }
.hero-visual .mock-main { padding: 1.35rem 1.5rem; }
.hero-visual .mock-main-head { margin-bottom: 1rem; }
.hero-visual .mock-main-head strong { font-size: 17px; }
.hero-visual .mock-main-head small { font-size: 12px; }
.hero-visual .mock-cta { font-size: 12px; padding: 0.4rem 0.95rem; }
.hero-visual .mock-banner { font-size: 13px; padding: 0.65rem 0.85rem; margin-bottom: 1rem; }
.hero-visual .mock-tiles { gap: 0.65rem; margin-bottom: 1rem; }
.hero-visual .mock-tile { padding: 0.7rem 0.65rem; }
.hero-visual .mock-tile b { font-size: 21px; }
.hero-visual .mock-tile span { font-size: 11px; letter-spacing: -0.01em; }
.hero-visual .mock-event-row { padding: 0.8rem 0.9rem; }
.hero-visual .mock-event-row .who b { font-size: 14px; }
.hero-visual .mock-event-row .who span { font-size: 12px; }
.hero-visual .mock-mini-actions i { font-size: 12px; padding: 0.28rem 0.75rem; }
.hero-visual .mock-dash { grid-template-columns: 152px 1fr; }
/* Sem largura para 4 tiles em linha: vira 2x2 antes de estourar texto */
@media (max-width: 1180px) {
  .hero-visual .mock-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero-visual .mock-dash { grid-template-columns: 118px 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: glow-breathe 7s ease-in-out infinite; }
}
@keyframes glow-breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Vida da demo do hero: hovers, cursor fantasma e bumps de estado */
.mock-dash { position: relative; }
.mock-tile, .mock-side-item, .mock-cta {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.mock-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mock-side-item:hover { background: var(--surface-2); color: var(--ink); }
.mock-side-item.on:hover { background: var(--tint); color: var(--accent); }
.mock-cta:hover { background: var(--brand-deep); }
.mock-mini-actions i {
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.3s var(--ease);
}
.mock-mini-actions i:hover { border-color: var(--accent); color: var(--accent); }
.mock-mini-actions i.go:hover { background: var(--brand-deep); color: var(--on-brand); border-color: transparent; }
.mock-mini-actions i.pressed { transform: scale(0.9); }
.mock-mini-actions i.ghosted { opacity: 0.4; }
.mock-event-row .chip { transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.mock-cursor {
  position: absolute;
  top: 0; left: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.35s var(--ease);
  will-change: transform;
  filter: drop-shadow(0 2px 5px rgba(22, 33, 28, 0.3));
}
.mock-cursor.is-on { opacity: 1; }
.mock-cursor svg { transition: transform 0.15s var(--ease); }
.mock-cursor.click svg { transform: scale(0.8); }
.bump { animation: bump 0.5s var(--ease); }
@keyframes bump {
  0% { transform: translateY(7px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.hero-glow {
  position: absolute;
  inset: 8% -6% -10% -6%;
  background: radial-gradient(55% 55% at 50% 45%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
}

/* ---------- Barra de credibilidade ---------- */
.credbar {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 38%, var(--surface-2)), var(--surface-2) 42%, color-mix(in srgb, var(--tint) 30%, var(--surface-2)));
}
.credbar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(24rem, 42vw);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent);
  background-size: 200% 100%;
  background-position: 100% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .credbar::before { animation: credbar-glide 4.5s ease-in-out infinite; }
}
@keyframes credbar-glide {
  0%, 100% { background-position: 100% 50%; opacity: 0.55; }
  50% { background-position: 0% 50%; opacity: 1; }
}
.credbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  padding-block: 1rem;
}
.credbar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  padding-inline: 1.8rem;
}
.credbar-item + .credbar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  width: 1px;
  height: 56%;
  background: linear-gradient(transparent, var(--line), transparent);
}
.credbar-item svg {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  flex: none;
  padding: 0.38rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 82%, var(--surface));
  color: var(--accent);
}
@media (max-width: 760px) {
  .credbar::before { width: 11rem; }
  .credbar-item { padding-inline: 0.9rem; }
  .credbar-item + .credbar-item::before { display: none; }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.section-head { max-width: 780px; }
.section-head .body-m { margin-top: 1.1rem; }

/* Problema: três pontos de ruptura da operação */
.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.4rem;
}
.pain {
  --pain: var(--accent);
  --pain-soft: var(--tint);
  position: relative;
  display: flex;
  min-height: 276px;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.25rem;
  overflow: hidden;
  padding: clamp(1.45rem, 2.4vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--pain) 22%, var(--line));
  border-radius: calc(var(--r-card) + 4px);
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pain-soft) 85%, transparent), transparent 45%), var(--surface);
  box-shadow: 0 14px 30px -26px color-mix(in srgb, var(--pain) 56%, transparent);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.pain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--pain), color-mix(in srgb, var(--pain) 8%, transparent));
  background-size: 220% 100%;
  box-shadow: 0 1px 10px -2px color-mix(in srgb, var(--pain) 64%, transparent);
}
.pain:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--pain) 42%, var(--line)); box-shadow: var(--shadow-lift); }
.pain:nth-child(1) { --pain: #b45309; --pain-soft: #fef3c7; }
.pain:nth-child(2) { --pain: #0f766e; --pain-soft: #ccfbf1; }
.pain:nth-child(3) { --pain: #4f46e5; --pain-soft: #e0e7ff; }
@media (prefers-reduced-motion: no-preference) {
  .pain::before { animation: pain-sweep 4.8s ease-in-out infinite; }
  .pain:nth-child(2)::before { animation-delay: -1.6s; }
  .pain:nth-child(3)::before { animation-delay: -3.2s; }
}
@keyframes pain-sweep {
  0%, 100% { background-position: 100% 50%; opacity: 0.62; }
  50% { background-position: 0% 50%; opacity: 1; }
}
.pain-num {
  font-size: clamp(3.5rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: color-mix(in srgb, var(--pain) 46%, var(--surface));
}
.pain h3 { margin-bottom: 0.55rem; }
.pain p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 880px) {
  .pains { grid-template-columns: 1fr; }
  .pain { min-height: 0; gap: 1.8rem; }
  .pain::before { left: 1.3rem; right: 1.3rem; }
}

/* ---------- Cena pinned (sticky) ---------- */
.scene { position: relative; }
.scene-track { height: 320vh; }
.scene-sticky {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: clip;
}
.scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}
.scene-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scene-steps { position: relative; min-height: 11.5rem; }
.scene-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.scene-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.scene-step h3 { font-size: 1.5rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.scene-step p { color: var(--muted); max-width: 46ch; }
.scene-dots { display: flex; gap: 0.5rem; margin-top: 1.6rem; }
.scene-dots i {
  width: 26px; height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.3s var(--ease);
}
.scene-dots i.is-on { background: var(--accent); }
@media (max-width: 960px) {
  .scene-track { height: auto !important; }
  .scene-sticky { position: static; min-height: 0; display: block; padding-block: 1rem; }
  .scene-grid, .scene-grid.flip { grid-template-columns: 1fr; }
  .scene-steps { min-height: 0; display: grid; gap: 1.6rem; }
  .scene-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .scene-dots { display: none; }
  .mock-panes { min-height: 0; }
  .mock-pane { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .mock-pane + .mock-pane { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
  .mock-stack { display: grid; gap: 1.2rem; }
  .mock-stack > * { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
}

/* ============================================================
   MOCKUPS CODIFICADOS (fiéis aos prints, dados fictícios)
   ============================================================ */
.mock { font-size: 13px; line-height: 1.45; user-select: none; }
.mock * { min-width: 0; }

/* Moldura navegador */
.mock-browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-url {
  margin-left: 0.5rem;
  flex: 1;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Chips e badges dos mockups */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  font-size: 11px;
  font-weight: 600;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.chip-pending { background: var(--amber-bg); color: var(--amber); }
.chip-going { background: var(--blue-bg); color: var(--blue); }
.chip-done { background: var(--tint); color: var(--accent); }
.chip-cancel { background: var(--red-bg); color: var(--red); }
.chip-type { background: var(--blue-bg); color: var(--blue); }
.chip-alert { background: var(--amber-bg); color: var(--amber); }

/* Avatar círculo */
.avat {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.avat.small { width: 22px; height: 22px; font-size: 9px; }
.av-1 { background: #2a9d8f; } .av-2 { background: #457b9d; }
.av-3 { background: #6d597a; } .av-4 { background: #b5838d; }

/* --- Mockup: dashboard (hero) --- */
.mock-dash { display: grid; grid-template-columns: 150px 1fr; }
.mock-side {
  border-right: 1px solid var(--line);
  padding: 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
}
.mock-side img { height: 16px; width: auto; margin-bottom: 0.7rem; margin-left: 2px; }
.mock-side-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.6rem; }
.mock-side-item {
  padding: 0.32rem 0.5rem;
  border-radius: var(--r-el);
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.mock-side-item.on { background: var(--tint); color: var(--accent); font-weight: 700; }
.mock-main { padding: 1rem 1.1rem; background: var(--bg); }
.mock-main-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.mock-main-head strong { font-size: 15px; letter-spacing: -0.01em; }
.mock-main-head small { display: block; color: var(--muted); font-size: 11px; }
.mock-cta { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mock-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  border-radius: var(--r-el);
  padding: 0.5rem 0.7rem;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 0.8rem;
}
.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 0.8rem; }
@media (max-width: 520px) {
  .mock-dash { grid-template-columns: 112px 1fr; }
  .mock-tiles { grid-template-columns: 1fr 1fr; }
}
.mock-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.5rem 0.6rem;
}
.mock-tile b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.mock-tile span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.mock-tile.t-pending b { color: var(--amber); }
.mock-tile.t-going b { color: var(--blue); }
.mock-tile.t-done b { color: var(--accent); }
.mock-tile.t-cancel b { color: var(--red); }
.mock-event-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.6rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.mock-event-row .who { flex: 1; min-width: 130px; }
.mock-event-row .who b { font-size: 12.5px; display: block; }
.mock-event-row .who span { font-size: 11px; color: var(--muted); }
.mock-mini-actions { display: flex; gap: 0.35rem; }
.mock-mini-actions i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  color: var(--muted);
}
.mock-mini-actions i.go { background: var(--brand); color: var(--on-brand); border-color: transparent; }

/* Pilha de mockups que alternam por passo da cena */
.mock-stack { display: grid; }
.mock-stack > * {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  align-self: start;
}
.mock-stack > .is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Formulário de evento (criação/edição) */
.mock-form { padding: 1rem 1.1rem; display: grid; gap: 0.6rem; }
.mock-fields.three { grid-template-columns: 1fr 1fr 1fr; }
.mock-select-list {
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  padding: 0.25rem;
}
.mock-select-list span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
.mock-select-list span.on { background: var(--surface-2); font-weight: 700; }
.mock-select-list span.on i { margin-left: auto; color: var(--accent); font-style: normal; }
.mock-select-list .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mock-recur {
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  background: var(--surface);
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.25rem;
  font-size: 11px;
  color: var(--muted);
}
.mock-recur > b { font-size: 13px; color: var(--ink); }
.mock-recur .meta { display: flex; gap: 0.7rem; align-items: baseline; margin-top: 0.15rem; }
.mock-recur .meta b { font-size: 11.5px; color: var(--ink); }
.mock-recur .days { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.mock-recur .days span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.mock-form-foot { display: flex; justify-content: flex-end; }
.mock-save {
  background: color-mix(in srgb, var(--brand) 55%, var(--surface));
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 12px;
  font-weight: 700;
}
.mock-danger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
  background: var(--red-bg);
  border-radius: var(--r-el);
  padding: 0.55rem 0.7rem;
  font-size: 11px;
}
.mock-danger b { display: block; color: var(--red); font-size: 12px; }
.mock-danger span.grow span { color: color-mix(in srgb, var(--red) 70%, var(--muted)); font-size: 10px; }
.mock-danger .del {
  background: color-mix(in srgb, var(--red) 14%, var(--surface));
  color: var(--red);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* --- Mockup: planner semanal (cena Agenda) --- */
.mock-planner { min-height: 330px; }
.mock-planner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.mock-planner-head strong { font-size: 13.5px; }
.mock-week { display: grid; grid-template-columns: 84px repeat(3, 1fr); font-size: 11px; }
.mock-week-head { padding: 0.45rem 0.6rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.mock-prof-cell {
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 11.5px;
}
.mock-day-cell { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.45rem; display: grid; gap: 0.4rem; align-content: start; }
.mock-sess {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mock-sess b { display: block; font-size: 11.5px; }
.mock-sess span { font-size: 10px; color: var(--muted); }
.mock-sess .chip { margin-top: 0.25rem; font-size: 9.5px; padding-block: 0.08rem; }
.mock-sess.is-in { opacity: 1; transform: none; }
.mock-sess.is-alert {
  border-color: var(--amber-line);
  border-left-color: var(--amber);
  background: var(--amber-bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 12%, transparent);
}
.mock-sess.is-alert .alert-line { display: flex; }
.alert-line {
  display: none;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
}
.mock-sess.is-fixed { border-color: color-mix(in srgb, var(--accent) 45%, transparent); border-left-color: var(--accent); background: var(--tint); box-shadow: none; }
.mock-sess.is-fixed .alert-line { display: none; }
.mock-sess .fixed-line { display: none; align-items: center; gap: 0.3rem; margin-top: 0.3rem; color: var(--accent); font-size: 10px; font-weight: 700; }
.mock-sess.is-fixed .fixed-line { display: flex; }

/* --- Mockup: ficha do aprendiz (Prontuário) --- */
.mock-learner { padding: 1.1rem; display: grid; gap: 0.9rem; }
.mock-learner-top { display: flex; gap: 0.9rem; align-items: center; }
.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }
.ring .avat { position: absolute; inset: 9px; width: auto; height: auto; font-size: 20px; background: #2a9d8f; }
.ring-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  color: var(--accent);
}
.mock-learner-top b { font-size: 16px; letter-spacing: -0.01em; display: block; }
.mock-learner-top span { font-size: 11.5px; color: var(--muted); }
.mock-learner-level {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.55rem 0.7rem;
  font-size: 11.5px;
}
.mock-learner-level .bar { display: block; height: 6px; border-radius: 999px; background: var(--line); margin-top: 0.4rem; overflow: hidden; }
.mock-learner-level .bar i { display: block; height: 100%; width: calc(var(--ring, 0.14) * 100%); background: var(--accent); border-radius: inherit; transition: width 0.2s linear; }
.mock-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.mock-tab .warn { color: var(--amber); font-style: normal; }
.mock-tab .warn.is-out { display: none; }
.mock-tab { transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.mock-tab.on, .mock-tab.is-on { background: var(--tint); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Painéis das abas do aprendiz (um por passo da cena) */
.mock-panes { position: relative; min-height: 176px; }
.mock-pane {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.mock-pane.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mock-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mock-field {
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.42rem 0.6rem;
  background: var(--surface);
}
.mock-field small { display: block; font-size: 9.5px; color: var(--muted); }
.mock-field b { font-size: 12px; font-weight: 600; }
.mock-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  font-size: 12px;
}
.mock-line .grow { flex: 1; min-width: 0; }
.mock-line .grow b { display: block; font-size: 12.5px; }
.mock-line .grow span { font-size: 11px; color: var(--muted); }
.mock-line.subtle { background: var(--surface-2); color: var(--muted); }
.mock-line.ghost {
  justify-content: center;
  color: var(--muted);
  border-style: dashed;
  background: transparent;
  font-weight: 600;
}
.mock-search {
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--r-el);
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.mock-search b { color: var(--ink); }
.caret {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: caret-blink 1.1s steps(2) infinite; }
}
@keyframes caret-blink { 50% { opacity: 0; } }
.mock-cid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.5rem 0.7rem;
  background: var(--surface);
  font-size: 12px;
}
.mock-cid b { color: var(--accent); font-size: 11.5px; }
.mock-cid span { color: var(--muted); font-size: 11px; }

/* --- Mockup: celular (cena App) --- */
.mock-phone-stage { display: grid; place-items: center; }
.mock-phone {
  width: min(300px, 82vw);
  aspect-ratio: 9 / 18.6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow-lift), 0 0 0 8px color-mix(in srgb, var(--ink) 88%, var(--bg));
  overflow: hidden;
  position: relative;
}
.mock-phone::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 88%, var(--bg));
  z-index: 5;
}
.mock-screens { position: absolute; inset: 0; }
.mock-screen {
  position: absolute;
  inset: 0;
  padding: 46px 14px 14px;
  background: var(--bg);
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}
.mock-screen.is-on { opacity: 1; transform: none; }
.mock-push {
  position: absolute;
  top: 40px; left: 10px; right: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 0.55rem 0.7rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  z-index: 6;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  font-size: 11.5px;
}
.mock-push.is-on { opacity: 1; transform: none; }
.mock-push .app-ic {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.mock-push .app-ic img { height: 14px; width: auto; filter: brightness(0) invert(1); }
.mock-push b { display: block; font-size: 11.5px; }
.mock-push span { color: var(--muted); font-size: 10.5px; }
.mock-greeting b { font-size: 16px; display: block; letter-spacing: -0.01em; }
.mock-greeting span { font-size: 10.5px; color: var(--muted); }
.mock-green-card {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}
.mock-green-card small { opacity: 0.85; font-size: 10.5px; }
.mock-green-card b { display: block; font-size: 15.5px; margin-block: 0.15rem 0.35rem; }
.mock-green-card .chip { background: rgba(255, 255, 255, 0.18); color: var(--on-brand); }
.mock-next-label { display: flex; align-items: center; gap: 0.4rem; font-size: 10.5px; font-weight: 700; color: var(--amber); }
.mock-app-event {
  background: var(--surface);
  border: 1.5px solid var(--amber-line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.45rem;
}
.mock-app-event .top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12.5px; }
.mock-app-row { display: flex; align-items: center; gap: 0.5rem; }
.mock-app-row b { font-size: 12.5px; display: block; }
.mock-app-row span { font-size: 10.5px; color: var(--muted); }
.mock-hold-hint { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 10px; }
.mock-app-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.mock-app-btn {
  border-radius: 999px;
  padding: 0.45rem 0;
  text-align: center;
  font-weight: 700;
  font-size: 11.5px;
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.mock-app-btn.start { background: var(--blue-bg); color: var(--blue); border-color: transparent; }
.mock-app-btn.finish { background: var(--tint); color: var(--accent); border-color: transparent; }
.mock-app-btn.cancel { background: var(--red-bg); color: var(--red); border-color: transparent; }
.mock-app-btn .hold-fill {
  position: absolute;
  inset: 0;
  width: calc(var(--hold, 0) * 100%);
  background: color-mix(in srgb, currentColor 18%, transparent);
}
.mock-sheet-note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.5rem 0.6rem;
  font-size: 10.5px;
  color: var(--muted);
}
/* Tab bar fiel ao app: ícone + rótulo, item ativo em verde */
.mock-tabbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
  text-align: center;
}
.mock-tabbar span {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted);
}
.mock-tabbar svg { width: 15px; height: 15px; }
.mock-tabbar span.on { color: var(--accent); font-weight: 700; }

/* Appbar do app: logo, clínica e sino com badge */
.mock-appbar { display: flex; align-items: center; justify-content: space-between; }
.mock-appbar img { height: 13px; width: auto; }
.mock-appbar .right { display: flex; align-items: center; gap: 0.45rem; }
.mock-bell {
  position: relative;
  width: 25px; height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.mock-bell i {
  position: absolute;
  top: -3px; right: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mock-screen-title b { font-size: 15px; display: block; letter-spacing: -0.01em; }
.mock-screen-title span { font-size: 10px; color: var(--muted); }
.mock-toggle { display: flex; align-items: center; gap: 0.45rem; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.mock-switch { width: 27px; height: 16px; border-radius: 999px; background: var(--brand); position: relative; flex: none; }
.mock-switch::after {
  content: "";
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
}
.mock-switch.off { background: color-mix(in srgb, var(--muted) 35%, var(--surface)); }
.mock-switch.off::after { right: auto; left: 2px; }
.mock-week7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.mock-week7 span { font-size: 8px; font-weight: 600; color: var(--muted); padding: 0.3rem 0; border-radius: 9px; }
.mock-week7 span b { display: block; font-size: 11.5px; color: var(--ink); }
.mock-week7 span.on { background: var(--brand); color: var(--on-brand); }
.mock-week7 span.on b { color: #fff; }
.mock-search.slim { display: flex; align-items: center; gap: 0.45rem; box-shadow: none; border-color: var(--line); color: color-mix(in srgb, var(--muted) 75%, transparent); }
.mock-line .avat { position: relative; }
.mini-pct {
  position: absolute;
  top: -6px; right: -9px;
  background: var(--surface);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 3px;
  line-height: 1.5;
}
.mock-notif {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.5rem 0.65rem;
  display: grid;
  gap: 0.12rem;
}
.mock-notif .t { display: flex; align-items: center; gap: 0.4rem; font-size: 11.5px; font-weight: 700; }
.mock-notif .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.mock-notif.read .dot { background: var(--line); }
.mock-notif.read .t { font-weight: 600; color: var(--muted); }
.mock-notif .d { font-size: 10px; color: var(--muted); }
.mock-notif .m { display: flex; justify-content: space-between; font-size: 9px; color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* Detalhe do evento e do aprendiz (telas do app) */
.chev { color: var(--muted); font-size: 15px; font-weight: 600; flex: none; }
.warn-tri { color: var(--amber); font-size: 9px; flex: none; font-style: normal; }
.mock-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.mock-info {
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  background: var(--surface);
  padding: 0.4rem 0.55rem;
}
.mock-info small { display: flex; align-items: center; gap: 0.3rem; font-size: 8.5px; color: var(--muted); }
.mock-info b { display: block; font-size: 10.5px; margin-top: 1px; }
.mock-status-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.6rem 0.7rem;
  display: grid;
  gap: 0.45rem;
}
.mock-status-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.mock-app-btns.stack { grid-template-columns: 1fr; }
.mock-line.sec { padding: 0.45rem 0.6rem; }
.mock-line.sec .grow b { font-size: 11.5px; }
.mock-line.sec .grow span { font-size: 9.5px; }
.mock-level-red {
  background: var(--red-bg);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  border-radius: var(--r-el);
  padding: 0.5rem 0.65rem;
  font-size: 9.5px;
  color: var(--muted);
  display: grid;
  gap: 2px;
}
.mock-level-red .row { display: flex; justify-content: space-between; align-items: center; }
.mock-level-red b { font-size: 11px; color: var(--ink); }
.mock-level-red .pct { color: var(--red); font-weight: 700; font-size: 11px; }
.mock-level-red .bar { display: block; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--red) 16%, transparent); overflow: hidden; margin-top: 2px; }
.mock-level-red .bar i { display: block; height: 100%; width: 14%; background: var(--red); border-radius: inherit; }
.mock-banner.tall {
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.4;
}
.mock-banner.tall b { display: block; font-size: 12px; margin-bottom: 1px; }
.mock-banner.tall span { font-size: 10px; color: color-mix(in srgb, var(--accent) 75%, var(--muted)); }

/* --- Home da gestão (cena Gestão do dia) --- */
.mock-gestao { padding: 1.1rem 1.2rem; }
.mock-panes.tall { min-height: 258px; }
.mock-sec-title { margin-bottom: 0.15rem; }
.mock-sec-title b { font-size: 13.5px; display: block; }
.mock-sec-title span { color: var(--muted); font-size: 11px; }
.mock-days { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mock-day {
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  background: var(--surface);
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mock-day b { font-size: 12px; }
.mock-day > span { font-size: 11px; color: var(--muted); }
.mock-day .chip { margin-left: auto; font-size: 9.5px; padding-block: 0.1rem; }
.mock-admin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.mock-admin-card {
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  background: var(--surface);
  padding: 0.55rem 0.7rem;
}
.mock-admin-card.wide { grid-column: 1 / -1; }
.mock-admin-card .head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mock-admin-card .head b { font-size: 12px; }
.mock-admin-card .cnt {
  background: var(--tint);
  color: var(--accent);
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 0.08rem 0.45rem;
}
.mock-admin-card .sub { display: block; font-size: 10.5px; color: var(--muted); }
.mock-admin-card .names {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 0.35rem 0.55rem;
  margin-top: 0.4rem;
}
.mock-admin-card .open { display: inline-block; margin-top: 0.35rem; font-size: 11px; font-weight: 700; color: var(--accent); }
.mock-att-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.6rem 0.7rem;
  background: var(--surface);
}
.mock-att-item .sev {
  flex: none;
  margin-top: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mock-att-item.crit .sev { background: var(--red); }
.mock-att-item.warn .sev { background: var(--amber); }
.mock-att-item b { font-size: 12px; display: block; }
.mock-att-item span { font-size: 11px; color: var(--muted); }

/* ---------- Bloco Segurança (color block da marca) ---------- */
.security {
  background: linear-gradient(180deg, var(--brand-deep), var(--brand) 130%);
  color: var(--on-brand);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: clip;
  position: relative;
}
.security .h2, .security .h3 { color: #fff; }
.security .body-m { color: color-mix(in srgb, var(--on-brand) 78%, transparent); }
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}
.sec-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-card);
  padding: 1.3rem 1.4rem;
}
.sec-card svg { color: #8fe6c5; margin-bottom: 0.8rem; }
.sec-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: #fff; }
.sec-card p { font-size: 0.92rem; color: rgba(242, 251, 247, 0.75); }

/* ---------- Roadmap ---------- */
.roadmap-section .section-head .body-m { margin-top: 1rem; }
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2.6rem;
  left: 25%;
  right: 25%;
  height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 42%, transparent) 0 8px, transparent 8px 16px);
}
.roadmap-card {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.2rem;
  padding: 1.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: calc(var(--r-card) + 4px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tint) 62%, var(--surface)), var(--surface));
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.roadmap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.roadmap-card-top { display: flex; align-items: center; gap: 0.75rem; }
.roadmap-step {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.roadmap-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--brand) 85%, transparent);
}
.roadmap-badge {
  margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tint) 80%, var(--surface));
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  padding: 0.3rem 0.65rem;
  text-transform: uppercase;
}
.roadmap-card h3 { margin-bottom: 0.6rem; }
.roadmap-card p { color: var(--muted); font-size: 0.98rem; }
.roadmap-result {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--accent) !important;
  font-size: 0.87rem !important;
  font-weight: 600;
}
.roadmap-result svg { flex: none; }
.roadmap-card--ai {
  border: 2px solid transparent;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 91%, #e7e3ff), color-mix(in srgb, var(--surface) 92%, #e8fbf8)) padding-box,
    linear-gradient(110deg, #f97316, #ec4899, #8b5cf6, #0ea5e9, #14b8a6, #f59e0b, #f97316) border-box;
  background-size: auto, 300% 100%;
  background-position: 0 0, 0 50%;
  box-shadow: 0 18px 38px -22px rgba(91, 74, 196, 0.45);
}
.roadmap-card--ai:hover { box-shadow: 0 24px 48px -22px rgba(91, 74, 196, 0.5); }
.roadmap-icon--ai {
  background: linear-gradient(135deg, #7c3aed, #2563eb 52%, #0d9488);
  box-shadow: 0 12px 24px -12px rgba(91, 74, 196, 0.8);
}
.roadmap-badge--ai {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}
.roadmap-result--ai { color: #5b3cc4 !important; }
@media (prefers-reduced-motion: no-preference) {
  .roadmap-card--ai { animation: roadmap-spectrum 7s linear infinite; }
}
@keyframes roadmap-spectrum { to { background-position: 0 0, 300% 50%; } }
.soon-vision {
  margin-top: 2.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 30em;
}
@media (max-width: 800px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { top: 5.5rem; bottom: 5.5rem; left: 5rem; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 42%, transparent) 0 8px, transparent 8px 16px); }
  .roadmap-card { min-height: 0; gap: 1.75rem; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--tint); }
.faq .faq-a { padding-bottom: 1.4rem; color: var(--muted); max-width: 62ch; }

/* ---------- Formulário ---------- */
.form-section { background: var(--surface-2); border-top: 1px solid var(--line); }
.form-card {
  max-width: 820px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  margin-top: 2.8rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.94rem; margin-bottom: 0.4rem; }
.field input, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-el);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: 0.85rem; margin-top: 0.35rem; }
.field.invalid .err { display: block; }
.form-foot { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.form-state { text-align: center; padding: 2.5rem 1rem; display: none; }
.form-state.is-on { display: block; }
.form-state .ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
}
.form-state.ok .ic { background: var(--tint); color: var(--accent); }
.form-state.fail .ic { background: var(--red-bg); color: var(--red); }
.form-state h3 { margin-bottom: 0.4rem; }
.form-state p { color: var(--muted); }
.form-state .btn { margin-top: 1.35rem; }
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 60;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lift);
  transition: transform 0.4s var(--ease);
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer {
  background: #141a17;
  color: #e9efeb;
  padding-block: 3.2rem 2.4rem;
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.footer-links a { color: #9fb2a9; text-decoration: none; transition: color 0.18s var(--ease); }
.footer-links a:hover { color: #35c895; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(233, 239, 235, 0.18);
  display: grid;
  place-items: center;
  color: #9fb2a9;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-social a:hover { color: #35c895; border-color: #35c895; transform: translateY(-2px); }
.footer-bottom { margin-top: 2rem; color: #7e8f86; font-size: 0.88rem; }

/* ---------- Página: Política de Privacidade ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: clamp(4rem, 8vw, 6.5rem) 5rem; }
.legal-logo { display: inline-flex; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal-logo img { width: 144px; height: auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1rem; }
.legal .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 3rem; }
.legal section { margin-bottom: 2.6rem; }
.legal h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; }
.legal p { color: var(--muted); margin-bottom: 0.8rem; }
.legal ul { color: var(--muted); padding-left: 1.3rem; margin: 0.4rem 0 0.8rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--accent); }

/* ============================================================
   Animações de entrada (reveal) e utilitários de movimento
   ============================================================ */
.rv { opacity: 0; transform: translateY(26px); }
.js-off .rv, .rv.is-in { opacity: 1; transform: none; }
.rv.is-in { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

/* Reveal por palavra nas headlines de seção */
.wr .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
}
.js-off .wr .w, .wr.is-in .w { opacity: 1; transform: none; }
.wr.is-in .w { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: calc(var(--wi) * 55ms); }

/* ---------- Layout compacto: leitura linear, sem animações por rolagem ---------- */
@media (max-width: 960px) {
  html { scroll-behavior: auto; }

  /* Garante conteúdo visível mesmo ao alternar da viewport desktop para uma menor. */
  .rv, .wr .w { opacity: 1; transform: none; }
  .rv.is-in, .wr.is-in .w { transition: none; }

  .hero {
    min-height: 0;
    padding-top: 6.75rem;
    padding-bottom: 3.75rem;
  }
  .hero-grid { gap: 2.25rem; }
  .hero-copy { max-width: 42rem; }
  .hero-visual { width: 100%; max-width: 720px; margin-inline: auto; }
  .hero-visual .mock-browser { transform: none; }

  .credbar-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding-block: 1.1rem;
  }
  .credbar-item { justify-content: center; padding-inline: 0.25rem; text-align: center; }

  .section { padding-block: clamp(3.75rem, 9vw, 5.5rem); }
  .pains { margin-top: 2.4rem; }
  .scene-sticky { padding-block: 1.5rem; }
  .scene-grid { gap: 2rem; }
  .scene-steps { gap: 1.25rem; }
  .scene-step h3 { font-size: 1.28rem; }
  .mock-stack { gap: 1rem; }

  /* A Agenda apresenta título, demo automática e explicações nessa ordem. */
  #agenda .agenda-copy { display: contents; }
  #agenda .agenda-copy > .eyebrow { order: 0; margin-bottom: 0; }
  #agenda .agenda-copy > .h2 { order: 1; margin-top: -1rem; }
  #agenda .scene-grid > .mock-stack { order: 2; display: grid; gap: 0; position: relative; }
  #agenda .agenda-copy > .scene-steps { order: 3; }
  #agenda .agenda-copy > .scene-dots { order: 4; }
  #agenda .mock-stack > * {
    display: block;
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  #agenda .mock-stack > :not(.agenda-demo-cursor).is-on { opacity: 1; transform: none; pointer-events: auto; }
  #agenda .mock-stack > .agenda-demo-cursor {
    position: absolute;
    z-index: 5;
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(22, 33, 28, 0.28));
    transition: transform 0.72s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.28s var(--ease);
  }
  #agenda .mock-stack > .agenda-demo-cursor.is-on { opacity: 1; }
  #agenda .mock-stack > .agenda-demo-cursor.is-clicking svg { transform: scale(0.8); }
  #agenda .agenda-demo-pressed {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
    filter: brightness(0.97);
  }

  /* O Prontuário segue a mesma leitura: título, demo automática e detalhes. */
  #prontuario .prontuario-copy { display: contents; }
  #prontuario .prontuario-copy > .eyebrow { order: 0; margin-bottom: 0; }
  #prontuario .prontuario-copy > .h2 { order: 1; margin-top: -1rem; }
  #prontuario .prontuario-demo { order: 2; position: relative; }
  #prontuario .prontuario-copy > .scene-steps { order: 3; }
  #prontuario .prontuario-copy > .scene-dots { order: 4; }
  #prontuario .mock-panes { position: relative; min-height: 176px; }
  #prontuario .mock-pane {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  #prontuario .mock-pane.is-on { opacity: 1; transform: none; pointer-events: auto; }
  #prontuario .prontuario-demo > .prontuario-demo-cursor {
    position: absolute;
    z-index: 5;
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(22, 33, 28, 0.28));
    transition: transform 0.72s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.28s var(--ease);
  }
  #prontuario .prontuario-demo > .prontuario-demo-cursor.is-on { opacity: 1; }
  #prontuario .prontuario-demo > .prontuario-demo-cursor.is-clicking svg { transform: scale(0.8); }
  #prontuario .mock-tab.prontuario-demo-pressed {
    background: var(--tint);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent);
  }

  /* App: título, demonstração automática e explicações. */
  #app .app-copy { display: contents; }
  #app .app-copy > .eyebrow { order: 0; margin-bottom: 0; }
  #app .app-copy > .h2 { order: 1; margin-top: -1rem; }
  #app .app-demo { order: 2; position: relative; }
  #app .app-copy > .scene-steps { order: 3; }
  #app .app-copy > .scene-dots { order: 4; }
  #app .mock-phone { position: relative; }
  #app .mock-phone > .app-demo-cursor {
    position: absolute;
    z-index: 8;
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(22, 33, 28, 0.28));
    transition: transform 0.72s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.28s var(--ease);
  }
  #app .mock-phone > .app-demo-cursor.is-on { opacity: 1; }
  #app .mock-phone > .app-demo-cursor.is-clicking svg { transform: scale(0.8); }
  #app .app-demo-pressed { filter: brightness(0.96); outline: 2px solid color-mix(in srgb, var(--accent) 52%, transparent); outline-offset: 2px; }

  /* Gestão: título, demonstração automática e explicações. */
  #gestao .gestao-copy { display: contents; }
  #gestao .gestao-copy > .eyebrow { order: 0; margin-bottom: 0; }
  #gestao .gestao-copy > .h2 { order: 1; margin-top: -1rem; }
  #gestao .gestao-demo { order: 2; position: relative; }
  #gestao .gestao-copy > .scene-steps { order: 3; }
  #gestao .gestao-copy > .scene-dots { order: 4; }
  #gestao .gestao-demo .mock-panes { position: relative; min-height: 258px; }
  #gestao .gestao-demo .mock-pane {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  #gestao .gestao-demo .mock-pane.is-on { opacity: 1; transform: none; pointer-events: auto; }
  #gestao .gestao-demo > .gestao-demo-cursor {
    position: absolute;
    z-index: 5;
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(22, 33, 28, 0.28));
    transition: transform 0.72s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.28s var(--ease);
  }
  #gestao .gestao-demo > .gestao-demo-cursor.is-on { opacity: 1; }
  #gestao .gestao-demo > .gestao-demo-cursor.is-clicking svg { transform: scale(0.8); }
  #gestao .gestao-demo-pressed { filter: brightness(0.96); outline: 2px solid color-mix(in srgb, var(--accent) 52%, transparent); outline-offset: 2px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 1.15rem; }
  .display { font-size: clamp(2.35rem, 11vw, 3.1rem); }
  .h2 { font-size: clamp(1.85rem, 8.5vw, 2.35rem); }
  .lead { font-size: 1.06rem; }

  .nav { top: 8px; padding-inline: 0.6rem; }
  .nav-pill {
    width: 100%;
    height: 52px;
    gap: 0.45rem;
    padding-inline: 0.7rem 0.38rem;
    justify-content: space-between;
  }
  .nav-logo img { width: 82px; height: auto; }
  .nav-login { padding: 0.4rem 0.58rem; font-size: 0.78rem; }
  .nav .btn { padding: 0.48rem 0.68rem; font-size: 0.78rem; }

  .hero { padding-top: 6rem; padding-bottom: 3.2rem; }
  .hero-grid { gap: 1.8rem; }
  .hero-copy .lead { margin-top: 1.05rem; }
  .hero-ctas { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1.65rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual .mock { font-size: 11px; }
  .hero-visual .mock-browser-bar { padding: 0.42rem 0.6rem; }
  .hero-visual .mock-url { padding-inline: 0.55rem; font-size: 9px; }
  .hero-visual .mock-dash { grid-template-columns: 84px minmax(0, 1fr); }
  .hero-visual .mock-side { gap: 0.14rem; padding: 0.6rem 0.45rem; }
  .hero-visual .mock-side img { height: 12px; margin-bottom: 0.35rem; }
  .hero-visual .mock-side-label { margin-top: 0.35rem; font-size: 7px; }
  .hero-visual .mock-side-item { padding: 0.2rem 0.28rem; font-size: 8.5px; }
  .hero-visual .mock-main { padding: 0.65rem; }
  .hero-visual .mock-main-head { margin-bottom: 0.55rem; }
  .hero-visual .mock-main-head strong { font-size: 11px; }
  .hero-visual .mock-banner { display: none; }
  .hero-visual .mock-tiles { gap: 0.35rem; margin-bottom: 0.45rem; }
  .hero-visual .mock-tile { padding: 0.38rem; }
  .hero-visual .mock-tile b { font-size: 14px; }
  .hero-visual .mock-tile span { font-size: 8.5px; }
  .hero-visual .mock-event-row { gap: 0.4rem; padding: 0.42rem; }
  .hero-visual .mock-event-row .who { min-width: 0; }
  .hero-visual .mock-event-row .who b { font-size: 10px; }
  .hero-visual .mock-event-row .who span { font-size: 8.5px; }
  .hero-visual .mock-mini-actions { display: none; }

  .credbar-row { grid-template-columns: 1fr; gap: 0.7rem; padding-block: 1rem; }
  .credbar-item { justify-content: flex-start; padding-inline: 0; text-align: left; font-size: 0.9rem; }
  .credbar-item svg { margin-left: 0.15rem; }

  .section { padding-block: 3.5rem; }
  .pains { margin-top: 2rem; }
  .pain { padding: 1.35rem; gap: 1.55rem; }
  .pain-num { font-size: 3.35rem; }
  .scene-sticky { padding-block: 1.25rem; }
  .scene-grid { gap: 1.6rem; }
  .scene-steps { gap: 1.1rem; }
  .scene-step p { font-size: 0.98rem; }
  #agenda .agenda-copy > .h2 { margin-top: -0.6rem; }
  #prontuario .prontuario-copy > .h2 { margin-top: -0.6rem; }
  #app .app-copy > .h2 { margin-top: -0.6rem; }
  #gestao .gestao-copy > .h2 { margin-top: -0.6rem; }
  .mock-phone { width: min(286px, 86vw); }

  .security { border-radius: 22px; padding: 2rem 1.35rem; }
  .sec-grid { margin-top: 1.8rem; }
  .roadmap { margin-top: 2rem; }
  .roadmap::before { left: 2.3rem; }
  .roadmap-card { padding: 1.3rem; }
  .roadmap-card-top { gap: 0.55rem; }
  .roadmap-icon { width: 42px; height: 42px; border-radius: 12px; }
  .roadmap-badge { padding-inline: 0.52rem; font-size: 0.63rem; }

  .form-card { margin-top: 2rem; padding: 1.35rem; }
  .form-foot { display: block; }
  .form-foot .btn { width: 100%; }
  .toast { top: 70px; font-size: 0.88rem; }

  .footer { margin-top: 0; padding-block: 2.5rem 2rem; }
  .footer-grid { align-items: flex-start; gap: 1.35rem; min-width: 0; }
  .footer-links { min-width: 0; max-width: 100%; gap: 0.8rem 1.1rem; }
  .footer-links li { min-width: 0; }
  .footer-bottom { margin-top: 1.6rem; }
}

/* ---------- Reduced motion: tudo vira estático/fade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv, .wr .w { opacity: 1 !important; transform: none !important; }
  .scene-track { height: auto !important; }
  .scene-sticky { position: static !important; min-height: 0 !important; display: block; padding-block: 2rem; }
  .scene-steps { min-height: 0; display: grid; gap: 1.6rem; }
  .scene-step { position: static; opacity: 1 !important; transform: none !important; pointer-events: auto; }
  .scene-dots { display: none; }
  .mock-sess { opacity: 1 !important; transform: none !important; }
  .mock-screen { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 1rem; }
  .mock-push { opacity: 1 !important; transform: none !important; }
  .mock-panes { min-height: 0; }
  .mock-pane { position: static; opacity: 1 !important; transform: none !important; }
  .mock-stack { gap: 1.2rem; }
  .mock-stack > * { grid-area: auto; opacity: 1 !important; transform: none !important; }
  .hero-visual .mock-browser { transform: none !important; }
}
