/* ClinicDash — páginas públicas (site institucional estático).
   Abertura em roxo-noite (a mesma identidade da arte da Play Store) e conteúdo em fundo branco. */

:root {
  --ink: #120f1c;
  --text: #3d3a4b;
  --muted: #6c6880;
  --line: #e9e6f0;
  --soft: #f7f6fa;
  --white: #ffffff;
  --brand: #7c3aed;
  --brand-2: #9333ea;
  --brand-ink: #5b21b6;
  --brand-soft: #f3edff;
  --brand-line: #ddd0fb;
  --ok: #059669;
  --ok-soft: #e8f7f0;
  --ok-line: #bfe6d5;
  --warm: #c2410c;
  --warm-soft: #fff2e9;
  --night: #0c0717;
  --night-2: #1b0c31;
  --night-line: rgba(255, 255, 255, 0.09);
  --lilac: #d8c3ff;
  --app: #110e1b;
  --app-2: #1a1626;
  --app-line: #2a2539;
  --app-text: #ece9f5;
  --app-muted: #9b95b0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 15, 28, 0.04), 0 10px 30px -14px rgba(18, 15, 28, 0.16);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
strong, b { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid #a78bfa; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 780px; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 7, 23, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--night-line);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { color: rgba(255, 255, 255, 0.74); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.link-login { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; }
.link-login:hover { color: #fff; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(124, 58, 237, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-dark-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); }
.btn-dark-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-line); background: var(--brand-soft); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; border-radius: 10px; }

/* ---------- abertura (hero) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(147, 51, 234, 0.38), transparent 62%),
    radial-gradient(760px 460px at 0% 100%, rgba(124, 58, 237, 0.24), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 48px; align-items: center; padding-block: 76px 92px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; margin: 22px 0 22px; }
.hero h1 .l2 { color: var(--lilac); display: block; }
.hero .lead { color: rgba(255, 255, 255, 0.8); font-size: 1.16rem; max-width: 33em; }
.hero .lead b { color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86); font-size: 0.88rem; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip-dark { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.86); font-size: 0.9rem; font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.chip-dark svg { width: 16px; height: 16px; color: var(--lilac); }
.trust { margin-top: 26px; color: rgba(255, 255, 255, 0.56); font-size: 0.88rem; }

/* abertura menor das páginas internas */
.hero.compact .hero-grid { padding-block: 56px 72px; }
.crumbs { font-size: 0.86rem; color: rgba(255, 255, 255, 0.58); }
.crumbs a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: 0.6; }
.hero.compact h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 18px 0 18px; }

/* ---------- celular (ilustração) ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 46px; padding: 12px;
  background: #07060b; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 7px #16131f, 0 0 80px -10px rgba(147, 51, 234, 0.45);
}
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--app); color: var(--app-text); }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.statusbar { display: flex; justify-content: space-between; padding: 14px 22px 0; font-size: 0.78rem; font-weight: 700; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 10px; }
.app-head b { color: #fff; font-size: 1.28rem; letter-spacing: -0.02em; }
.me { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8b5cf6, #b708ff); }
.search { margin: 0 14px 8px; padding: 9px 12px; border-radius: 10px; background: var(--app-2); color: var(--app-muted); font-size: 0.8rem; }
.convs { list-style: none; }
.convs li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.convs li.on { background: rgba(139, 92, 246, 0.12); }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 800; color: #fff; background: var(--c, #7c3aed); }
.convs b { display: block; color: #fff; font-size: 0.86rem; font-weight: 700; letter-spacing: -0.01em; }
.convs small { display: block; color: var(--app-muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convs .meta { text-align: right; font-size: 0.7rem; color: var(--app-muted); }
.convs .meta em { display: inline-grid; place-items: center; margin-top: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: #8b5cf6; color: #fff; font-style: normal; font-weight: 800; font-size: 0.66rem; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55); min-width: 238px;
}
.float b { display: block; font-size: 0.92rem; letter-spacing: -0.01em; }
.float small { display: block; color: var(--muted); font-size: 0.8rem; }
.float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.float .ic svg { width: 20px; height: 20px; }
.ic-ok { background: linear-gradient(135deg, #10b981, #059669); }
.ic-brand { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.ic-warm { background: linear-gradient(135deg, #fb923c, #ea580c); }
.f1 { top: 128px; left: -10px; }
.f2 { top: 47%; right: -18px; }
.f3 { bottom: 54px; left: 4px; }

/* ---------- seções ---------- */
.sec { padding-block: 92px; }
.sec.soft { background: var(--soft); }
.sec.tight { padding-block: 64px; }
.sec-head { max-width: 740px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.sec h2 { font-size: clamp(1.8rem, 3.3vw, 2.55rem); letter-spacing: -0.025em; font-weight: 800; }
.sec-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.prose p + p { margin-top: 16px; }
.prose h2 { margin: 44px 0 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.prose ul { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 3px; background: var(--brand); transform: rotate(45deg); opacity: 0.85; }
.prose ol { margin: 16px 0 0; padding-left: 0; list-style: none; counter-reset: passo; display: grid; gap: 14px; }
.prose ol li { position: relative; padding-left: 46px; counter-increment: passo; }
.prose ol li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 0.95rem; }

/* resposta direta (o resumo que as IAs citam) */
.answer {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 34px 30px 38px; box-shadow: var(--shadow); font-size: 1.14rem; line-height: 1.72; color: var(--text);
}
.answer::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.answer .label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* cartões */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card h3 { font-size: 1.16rem; margin: 18px 0 8px; font-weight: 800; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 18px; color: var(--brand); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
a.card:hover .more svg { transform: translateX(3px); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.icon svg { width: 22px; height: 22px; }
.icon.warm { background: var(--warm-soft); color: var(--warm); }
.icon.ok { background: var(--ok-soft); color: var(--ok); }
.card .tag { display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--warm); background: var(--warm-soft); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }

/* passos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: etapa; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: etapa; }
.step::before { content: "0" counter(etapa); display: block; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 14px; }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; font-weight: 800; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* números */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.stat .n { font-size: clamp(2.2rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--ink); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: 0.5em; letter-spacing: -0.01em; color: var(--brand); margin-left: 2px; }
.stat .t { margin-top: 12px; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.4; }
.stat .src { margin-top: auto; padding-top: 14px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* lista de checagem */
.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks .ck { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.checks .ck svg { width: 16px; height: 16px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 0.97rem; }

/* duas colunas: texto + ilustração */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }

/* janela do sistema (ilustrações) */
.appwin { background: var(--app); color: var(--app-text); border-radius: 22px; border: 1px solid #241f33; box-shadow: 0 40px 80px -36px rgba(30, 10, 60, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02); overflow: hidden; }
.appwin .bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--app-line); background: #0d0b15; }
.appwin .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a344b; }
.appwin .bar span { margin-left: 8px; font-size: 0.82rem; font-weight: 700; color: var(--app-muted); }
.appwin .body { padding: 22px; }

/* conversa */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 0.94rem; line-height: 1.45; }
.bubble .who { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 4px; }
.bubble.in { align-self: flex-start; background: var(--app-2); border: 1px solid var(--app-line); border-bottom-left-radius: 5px; }
.bubble.in .who { color: #a5b4fc; }
.bubble.out { align-self: flex-end; background: #4c1d95; border-bottom-right-radius: 5px; color: #fff; }
.bubble.out .who { color: #ddd0ff; }
.bubble .time { display: block; text-align: right; font-size: 0.68rem; opacity: 0.6; margin-top: 4px; }
.sysnote { align-self: center; font-size: 0.75rem; color: var(--app-muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--app-line); padding: 5px 12px; border-radius: 999px; }
.sysnote.ok { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.25); background: rgba(16, 185, 129, 0.08); }

/* régua (linha do tempo) */
.tl { list-style: none; position: relative; display: grid; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #7c3aed, rgba(124, 58, 237, 0.15)); }
.tl li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.tl .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1f1933; border: 2px solid #7c3aed; color: #c4b5fd; font-size: 0.72rem; font-weight: 800; z-index: 1; }
.tl li.stop .dot { border-color: #10b981; color: #6ee7b7; background: #0f2a22; }
.tl .when { font-size: 0.78rem; font-weight: 800; color: #c4b5fd; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tl li.stop .when { color: #6ee7b7; }
.tl .msg { margin-top: 4px; background: var(--app-2); border: 1px solid var(--app-line); border-radius: 12px; padding: 9px 12px; font-size: 0.9rem; line-height: 1.45; color: var(--app-text); }
.tl .msg .rb { color: var(--app-muted); font-size: 0.74rem; display: block; margin-bottom: 2px; }

/* resumo de disparo */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--app-2); border: 1px solid var(--app-line); border-radius: 14px; padding: 14px 16px; }
.kpi b { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: 0.8rem; color: var(--app-muted); }
.kpi.ok b { color: #6ee7b7; }
.kpi.warn b { color: #fdba74; }
.bar-row { margin-top: 16px; }
.bar-row .lbl { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--app-muted); margin-bottom: 6px; }
.meter { height: 8px; border-radius: 99px; background: #241f33; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8b5cf6, #b708ff); }

/* tabela da ilustração */
.mtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mtable th { text-align: left; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-muted); padding: 0 10px 10px; border-bottom: 1px solid var(--app-line); }
.mtable td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--app-text); vertical-align: middle; }
.mtable td.num, .mtable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mtable .ad { display: flex; align-items: center; gap: 10px; }
.mtable .thumb { width: 34px; height: 34px; border-radius: 8px; flex: none; background: var(--g, linear-gradient(135deg, #a78bfa, #7c3aed)); }
.mtable .ad small { display: block; color: var(--app-muted); font-size: 0.74rem; }
.mtable .hl { color: #6ee7b7; font-weight: 800; }

/* comparativo */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.compare thead th.us { color: var(--brand-ink); background: var(--brand-soft); }
.compare td.us { background: #fbf9ff; color: var(--ink); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 26%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* perguntas frequentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 2px 24px; color: var(--text); max-width: 72ch; }
.faq .a p + p { margin-top: 12px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 8px; }

/* chamada final */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(183, 8, 255, 0.35), transparent 65%),
    radial-gradient(500px 300px at 10% 100%, rgba(124, 58, 237, 0.4), transparent 60%),
    linear-gradient(180deg, #160a29, #0c0717);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22em; margin: 0 auto; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 16px auto 0; max-width: 36em; font-size: 1.08rem; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .phone-line { margin-top: 18px; color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }
.cta-band .phone-line b { color: #fff; }

/* leia também */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color 0.18s ease, background 0.18s ease; }
.related a:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--ink); }
.related .icon { width: 40px; height: 40px; border-radius: 11px; }
.related .icon svg { width: 20px; height: 20px; }

/* nota de rodapé de fonte */
.note { margin-top: 22px; font-size: 0.86rem; color: var(--muted); }

/* rodapé */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding-block: 64px 36px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .brand { color: var(--ink); }
.foot .brand:hover { color: var(--ink); }
.foot-about { margin-top: 14px; color: var(--muted); max-width: 30em; }
.foot h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--brand); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.legal a { color: var(--muted); }

/* pilha de cartões nas aberturas internas */
.stack { display: grid; gap: 14px; justify-items: start; align-content: center; }
.stack .float { position: relative; inset: auto; min-width: 0; width: min(100%, 360px); }
.stack .float:nth-child(2) { margin-left: 44px; }
.stack .float:nth-child(3) { margin-left: 18px; }
.hero-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* etiquetas claras ("Também no ClinicDash") */
.chips-light { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.chips-light .lbl { font-weight: 700; color: var(--ink); margin-right: 4px; }
.chips-light span.c { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.caption { margin-top: 12px; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* pular para o conteúdo e botão curto no celular */
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }
.short { display: none; }

/* ---------- celular e tablet ---------- */
@media (max-width: 1020px) {
  .cards.four, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar .wrap { justify-content: space-between; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 52px 64px; gap: 28px; }
  .hero.compact .hero-grid { padding-block: 40px 52px; }
  .stage { min-height: 560px; }
  .cards, .steps, .related { grid-template-columns: minmax(0, 1fr); }
  .cards.two { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-block: 68px; }
  .answer { padding: 24px 22px 24px 28px; font-size: 1.06rem; }
  .cta-band { padding: 48px 22px; border-radius: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards.four, .stats { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .link-login { display: none; }
  .long { display: none; }
  .short { display: inline; }
  .hero-ctas .btn { width: 100%; }
  .stack .float:nth-child(2), .stack .float:nth-child(3) { margin-left: 0; }
  .stage { min-height: 520px; transform: scale(0.92); transform-origin: top center; margin-bottom: -40px; }
  .f1 { left: 0; top: 40px; }
  .f2 { right: 0; }
  .f3 { left: 0; bottom: 40px; }
  .float { min-width: 0; max-width: 250px; }
  .appwin .body { padding: 16px; }
  .kpi b { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
