/* FocoNeuro: site institucional. Mesma paleta do painel (apps/web). Sem fontes externas. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --text: #1b1d24;
  --muted: #5f6572;
  --line: #e3e6ee;
  --accent: #3f51b5;
  --accent-strong: #2f3d94;
  --accent-soft: #e8ebfa;
  --accent-ink: #ffffff;
  --ok: #1e8e3e;
  --warn: #b26a00;
  --warn-soft: #fff4e0;
  --err: #c62828;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d25;
    --surface-2: #20242e;
    --text: #e8eaf0;
    --muted: #9aa1ad;
    --line: #2a2e3a;
    --accent: #8c9eff;
    --accent-strong: #aab7ff;
    --accent-soft: #232945;
    --accent-ink: #0d1030;
    --warn: #f0a24a;
    --warn-soft: #2d2414;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* navegação */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.link-quiet { color: var(--muted); text-decoration: none; font-size: .95rem; }
.link-quiet:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .link-quiet { display: none; } }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-small { padding: 9px 14px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(700px 360px at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .92rem; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ilustração: tablet + celular */
.hero-visual { position: relative; aspect-ratio: 5 / 4; }
.device { position: absolute; background: #14161d; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(20, 25, 60, .45); }
.tablet { inset: 6% 16% 10% 0; padding: 14px; }
.tablet-screen { height: 100%; border-radius: 14px; background: #f9fafc; display: flex; flex-direction: column; padding: 14px; }
.tablet-top { display: flex; justify-content: space-between; font-size: .72rem; color: #6b7280; font-weight: 600; }
.stimulus { flex: 1; display: grid; place-items: center; font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 700; color: #1b1d24; }
.tablet-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tablet-buttons span { display: grid; place-items: center; height: 46px; border-radius: 10px; background: #3f51b5; color: #fff; font-size: .78rem; font-weight: 650; }
.tablet-buttons .alt { background: #e3e6ee; color: #374151; }
.phone { width: 38%; right: 0; bottom: 0; top: 22%; padding: 9px; border-radius: 28px; }
.phone-screen { height: 100%; border-radius: 21px; background: #ffffff; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.phone-title { margin: 0; font-weight: 700; font-size: .9rem; color: #1b1d24; }
.phone-sub { margin: -6px 0 2px; font-size: .72rem; color: #6b7280; }
.progress { height: 6px; border-radius: 3px; background: #e3e6ee; overflow: hidden; }
.progress span { display: block; height: 100%; width: 58%; background: #3f51b5; border-radius: 3px; }
.phone-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: .72rem; color: #374151; }
.phone-list li { display: flex; align-items: center; gap: 7px; }
.phone-list span { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c7cbd6; flex: none; }
.phone-list .ok { background: #1e8e3e; border-color: #1e8e3e; }
.phone-list .now { background: #3f51b5; border-color: #3f51b5; box-shadow: 0 0 0 3px rgba(63, 81, 181, .2); }
.phone-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-actions span { text-align: center; padding: 7px 0; border-radius: 8px; font-size: .7rem; font-weight: 650; background: #e8ebfa; color: #2f3d94; }
@media (max-width: 560px) {
  .hero-visual { aspect-ratio: 1 / 1; }
  .tablet { inset: 2% 20% 30% 0; padding: 10px; border-radius: 20px; }
  .tablet-screen { padding: 10px; }
  .tablet-buttons span { height: 38px; font-size: .68rem; }
  .phone { width: 47%; top: 24%; padding: 7px; border-radius: 22px; }
  .phone-screen { padding: 12px 10px; gap: 6px; border-radius: 16px; }
  .phone-title { font-size: .8rem; }
  .phone-sub { font-size: .66rem; }
  .phone-list { font-size: .66rem; gap: 5px; }
  .phone-actions span { font-size: .64rem; padding: 6px 0; }
}

/* seções */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); font-weight: 750; margin-bottom: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card .card-tag { font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.card .card-paradigm { color: var(--text); font-size: .9rem; font-weight: 600; margin: -4px 0 10px; }
.fineprint { margin-top: 24px; font-size: .9rem; color: var(--muted); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin-top: 32px; }
.feature { padding-left: 18px; border-left: 3px solid var(--accent); }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding: 18px 18px 18px 50px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.checklist strong { color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.notice { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius);
  padding: 36px; max-width: 860px; }
.notice .eyebrow { color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

/* chamada + formulário */
.section-cta { background: linear-gradient(135deg, #2f3d94, #3f51b5 55%, #5868c9); color: #fff; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, .86); }
.eyebrow-light { color: #c9d1ff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); color: var(--text); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px -25px rgba(10, 15, 50, .5); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .9rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); }
.form.done .field, .form.done .field-row, .form.done .consent, .form.done button { display: none; }
.form.done .form-status { font-size: 1.05rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* rodapé */
.footer { border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand-small { font-size: 1rem; }
.brand-small .brand-mark { width: 22px; height: 22px; }
.footer-note { margin: 10px 0 0; }
.footer-links { display: grid; gap: 8px; justify-items: end; text-align: right; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-links p { margin: 6px 0 0; max-width: 32em; }
.footer-copy { margin-top: 24px; font-size: .85rem; }
@media (max-width: 720px) { .footer-links { justify-items: start; text-align: left; } }

/* página de texto (privacidade) */
.prose { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose .meta { font-size: .92rem; }
