/* IBPD Pay — site institucional
   Paleta derivada da logo: marinho #01143D, azul #005EFC, ciano #009AF4, verde #21E6B0.
   Um acento só (azul); o gradiente da marca aparece apenas no split e em detalhes mínimos. */

:root {
  --navy-950: #040c22;
  --navy-900: #061230;
  --navy-800: #0b1c45;
  --ink: #0f1a2e;
  --ink-2: #3c4658;
  --ink-3: #5f6878;
  --paper: #f7f6f2;
  --paper-2: #efede7;
  --card: #ffffff;
  --line: #e2dfd7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #005efc;
  --accent-hover: #004fd6;
  --accent-soft: #e6efff;
  --cyan: #009af4;
  --green: #21e6b0;
  --on-dark: #eef2f9;
  --on-dark-2: #a9b4c8;
  --danger: #b42318;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: inherit; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.center { text-align: center; margin-top: 40px; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

.eyebrow {
  font: 600 0.78rem/1 var(--font-body);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow--light { color: var(--green); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 18, 48, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--on-dark-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(0, 154, 244, .16), transparent 60%),
    radial-gradient(700px 420px at 10% 110%, rgba(33, 230, 176, .08), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
  padding: 88px 0 96px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.lead { font-size: 1.12rem; color: var(--on-dark-2); margin-top: 22px; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 24px; }
.hero__facts strong { display: block; color: #fff; font: 700 .98rem/1.3 var(--font-head); }
.hero__facts span { display: block; color: var(--on-dark-2); font-size: .85rem; margin-top: 4px; line-height: 1.45; }

/* Cartão de split */
.split-card {
  margin: 0; background: #fff; color: var(--ink);
  border-radius: 16px; padding: 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.split-card__head { display: flex; align-items: center; gap: 10px; }
.split-card__title { font-weight: 600; font-size: .95rem; }
.tag { font: 600 .7rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.split-card__total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 14px; }
.split-card__total span { color: var(--ink-3); font-size: .9rem; }
.split-card__total strong { font: 800 1.7rem/1 var(--font-head); }
.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--paper-2); gap: 2px; }
.seg--a { width: 85%; background: var(--accent); }
.seg--b { width: 12%; background: var(--cyan); }
.seg--c { width: 3%; background: var(--green); }
.split-list { margin: 20px 0 0; }
.split-list div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.split-list div:last-child { border-bottom: 0; }
.split-list dt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.split-list dd { margin: 0; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot--a { background: var(--accent); } .dot--b { background: var(--cyan); } .dot--c { background: var(--green); }
.split-card figcaption { margin-top: 14px; font-size: .78rem; color: var(--ink-3); }

/* Seções */
.section { padding: 96px 0; }
.section--tight { padding: 80px 0 32px; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head .muted { margin-top: 14px; }
.statement { max-width: 900px; }
.statement h2 { font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; }
.statement .muted { margin-top: 22px; font-size: 1.05rem; max-width: 70ch; }

/* Camadas */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.layer__num { font: 700 .85rem/1 var(--font-head); color: var(--accent); }
.layer h3 { font-size: 1.3rem; margin-top: 18px; }
.layer__who { color: var(--ink-3); font-size: .93rem; margin-top: 8px; min-height: 3.1em; }
.note { margin-top: 18px; font-size: .82rem; color: var(--ink-3); }

.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 26px; margin: 10px 0; font-size: .95rem; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 .85rem/1 var(--font-head); color: var(--accent); display: block; margin-bottom: 14px; }
.steps p { color: var(--ink-3); font-size: .93rem; margin-top: 8px; }

/* Módulos */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.modules article { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.modules p { color: var(--ink-3); font-size: .92rem; margin-top: 10px; }

/* Pilares */
.section--dark h2 { color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.pillars article { padding: 28px 24px 4px 0; }
.pillars article + article { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.pillars h3 { color: #fff; }
.pillars p { color: var(--on-dark-2); font-size: .93rem; margin-top: 10px; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan h3 { font-size: 1.25rem; }
.plan__for { color: var(--ink-3); font-size: .9rem; margin-top: 4px; }
.plan--featured { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.plan--featured .plan__for, .plan--featured .checks li { color: var(--on-dark-2); }
.plan--featured .checks li::before { border-color: var(--green); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 1.05rem/1.4 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-3); padding: 0 0 22px; max-width: 68ch; }

/* Contato */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__copy .muted { margin-top: 14px; }
.contact__info { list-style: none; padding: 0; margin: 32px 0 0; }
.contact__info li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.contact__info span { width: 90px; color: var(--ink-3); flex-shrink: 0; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid #cfcbc1; border-radius: var(--radius-sm); background: #fff;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: .85rem; margin-top: 6px; min-height: 0; }
.field__err:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.field__err--consent { margin: 0 0 14px 32px; }
.form .btn { margin-top: 12px; }
.form__status { margin-top: 14px; font-size: .92rem; color: var(--ink-2); }
.form__status:empty { display: none; }

/* Rodapé */
.footer { background: var(--navy-950); color: var(--on-dark-2); padding: 56px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer__top img { height: 48px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { color: var(--on-dark-2); text-decoration: none; font-size: .9rem; }
.footer__nav a:hover { color: #fff; }
.footer__legal { margin-top: 28px; font-size: .82rem; line-height: 1.65; max-width: 90ch; }
.footer__id { margin-top: 14px; font-size: .82rem; }

/* Páginas internas */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.page h2 { font-size: 1.2rem; margin-top: 36px; }
.page p, .page li { color: var(--ink-2); margin-top: 12px; }
.page ul { padding-left: 20px; }
.page .updated { color: var(--ink-3); font-size: .9rem; margin-top: 10px; }

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound img { height: 32px; width: auto; }
.notfound h1 { margin-top: 40px; }

/* Responsivo */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .split-card { max-width: 480px; }
  .modules, .plans { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars article:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
    padding: 8px 20px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav .btn { margin-top: 16px; }
  .layers { grid-template-columns: 1fr; }
  .layer__who { min-height: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 64px 0; }
  .modules, .plans, .pillars, .steps { grid-template-columns: 1fr; }
  .pillars article, .pillars article + article { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line-dark); padding-bottom: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px; }
  .split-card { padding: 20px; }
}
