/* Hub4 People — site institucional. Tokens seguem o design system Aegis do app. */
:root {
  --brand: #1c7296;
  --brand-hover: #175974;
  --brand-light: #def1fb;
  --navy: #14307a;
  --ink: #131417;
  --ink-2: #4a4d58;
  --ink-3: #72778d;
  --bg: #ffffff;
  --bg-2: #f1f1f4;
  --line: #d9dbe1;
  --ok: #15be78;
  --warn: #f9ab10;
  --danger: #b81828;
  --danger-bg: #fde9eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(19, 20, 23, 0.1);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fb4d8;
    --brand-hover: #7cc7e4;
    --brand-light: #12303d;
    --navy: #0b1530;
    --ink: #f3f4f7;
    --ink-2: #c3c6d0;
    --ink-3: #9094a6;
    --bg: #0f1013;
    --bg-2: #181a1f;
    --line: #2b2e36;
    --danger: #ff6b78;
    --danger-bg: #3a1a1e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .brand img { background: #fff; padding: 4px 10px; border-radius: 10px; }
  .btn-primary, .nav .cta, .steps li::before { color: #0b1530; }
  .btn-primary:hover, .nav .cta:hover { color: #0b1530; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 99; }

/* Topo */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); }
.nav .cta { background: var(--brand); color: #fff; font-weight: 600; }
.nav .cta:hover { background: var(--brand-hover); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-light); color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #2346d8 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, 0.86); max-width: 560px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 64px; }
.hero .phones { align-self: end; display: flex; justify-content: center; gap: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
.hero .eyebrow { color: #9fd9f2; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero .actions { padding-bottom: 28px; }
}
.page-hero { background: linear-gradient(160deg, var(--navy), #2346d8); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.page-hero p { margin: 0; max-width: 680px; color: rgba(255, 255, 255, 0.86); font-size: 18px; }

/* Aparelho */
.phone { width: 230px; border-radius: 34px; background: #0c0d10; padding: 8px; box-shadow: var(--shadow); flex: none; }
.phone img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 560 / 1199; object-fit: cover; background: var(--bg-2); }
.hero .phone:nth-child(1) { transform: translateY(34px) rotate(-3deg); margin-right: -28px; }
.hero .phone:nth-child(2) { transform: translateY(8px) rotate(2deg); position: relative; z-index: 1; }
@media (max-width: 520px) { .phone { width: 170px; } }

/* Seções */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.015em; }
h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.25; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 720px; margin: 0 0 36px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--ink-2); }
.icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }
.audience .card { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.audience .card .btn { align-self: flex-start; margin-top: 8px; }

/* Faixas com imagem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev .media { order: 0; } }
.media { display: flex; justify-content: center; gap: 18px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--ink-2); }
.band { background: var(--navy); color: #fff; border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.band h2 { color: #fff; margin: 0 0 8px; }
.band p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 28px; } .band .actions { justify-content: flex-start; } }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--warn); color: #3a2a00; padding: 3px 9px; border-radius: 999px; }

/* Telas conceito do Hub WEB */
.browser { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; width: 100%; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.browser .bar span { margin-left: 8px; font-size: 12px; color: var(--ink-3); background: var(--bg); padding: 3px 10px; border-radius: 6px; flex: 1; }
.hubw { display: grid; grid-template-columns: 138px 1fr; min-height: 300px; }
.hubw aside { background: var(--bg-2); border-right: 1px solid var(--line); padding: 12px 8px; }
.hubw aside b { display: block; font-size: 12px; padding: 4px 8px 8px; }
.hubw aside div { padding: 7px 8px; border-radius: 8px; color: var(--ink-2); font-size: 12.5px; }
.hubw aside div.on { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.hubw main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.hubw h4 { margin: 0; font-size: 15px; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); color: var(--ink-2); }
.field small { display: block; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-light); color: var(--brand); }
.pill.red { background: var(--danger-bg); color: var(--danger); }
.pill.warn { background: #fef7e7; color: #8a5b00; }
.sw-toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--ok); position: relative; flex: none; }
.sw-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.sw-toggle.off { background: var(--line); }
.sw-toggle.off::after { right: auto; left: 3px; }
.map { position: relative; height: 150px; border-radius: 10px; background: #dfeaf0; overflow: hidden; border: 1px solid var(--line); }
.map svg { width: 100%; height: 100%; display: block; }
.caption { color: var(--ink-3); font-size: 13px; margin-top: 10px; text-align: center; }

/* Documentos legais */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 80px; align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 90px; font-size: 14px; }
@media (max-width: 900px) { .toc { position: static; background: var(--bg-2); padding: 16px; border-radius: 12px; } }
.toc b { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); }
.prose td { color: var(--ink-2); }
.note { border-left: 4px solid var(--brand); background: var(--brand-light); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; color: var(--ink); }
.note.warn { border-color: var(--danger); background: var(--danger-bg); }
.updated { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.todo { background: #fff3a8; color: #4a3b00; padding: 0 5px; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .todo { background: #5c4b00; color: #ffe98a; } }

/* Formulário */
form.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); display: grid; gap: 16px; }
label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
input[type="text"], input[type="tel"], select {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--ink-3); background: var(--bg); color: var(--ink);
}
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); }
.hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.err { color: var(--danger); font-size: 14px; min-height: 1em; }

/* Rodapé */
footer { background: #0f1013; color: #c3c6d0; padding: 56px 0 28px; }
footer a { color: #c3c6d0; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
footer .logos { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; }
footer .logos img { height: 34px; width: auto; }
footer .legal { border-top: 1px solid #2b2e36; margin-top: 36px; padding-top: 20px; font-size: 13px; color: #9094a6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
