/* PixPay Digital Finance — tema escuro roxo, vidro e gradiente violeta → rosa */

:root {
  --bg: #11002a;
  --bg-2: #1b0842;
  --violet: #7c4dff;
  --pink: #ff4d7a;
  --grad: linear-gradient(100deg, var(--violet), var(--pink));
  --text: #f5f0ff;
  --muted: #b8a8d8;
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --ok: #5ee6a8;
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Brilhos de fundo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 50vw at 85% -10%, rgba(124, 77, 255, .38), transparent 60%),
    radial-gradient(50vw 45vw at -10% 35%, rgba(255, 77, 122, .16), transparent 60%),
    radial-gradient(60vw 50vw at 60% 110%, rgba(124, 77, 255, .22), transparent 60%);
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

:focus-visible { outline: 3px solid #b79bff; outline-offset: 3px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: #11002a; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow);
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: #d9ccff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(255, 77, 122, .65), 0 10px 30px -14px rgba(124, 77, 255, .9); }
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 77, 122, .8), 0 12px 34px -12px rgba(124, 77, 255, 1); }
.btn--ghost { background: var(--glass); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--glass-strong); }
.btn--light { background: #fff; color: #2a0a5e; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand__img { width: 40px; height: 40px; object-fit: contain; border-radius: 12px; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--grad); font-weight: 800; font-size: 1.25rem; }
.brand__name { display: flex; flex-direction: column; font-size: 1.2rem; line-height: 1.05; letter-spacing: -.02em; }
.brand__name small { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cabeçalho ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.header.is-scrolled, .header--solid {
  background: rgba(17, 0, 42, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.header__user { display: flex; align-items: center; gap: 16px; font-size: .9rem; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn) { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #ddd2f7; transition: background-color .18s, color .18s; }
.nav > a:not(.btn):hover { background: var(--glass); color: #fff; }
.nav .btn { margin-left: 6px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; place-items: center; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 70px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(2.35rem, 5.4vw, 4.3rem); font-weight: 800; }
.lead { max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__bullets { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #d9ccff; font-size: .95rem; font-weight: 500; }
.hero__bullets li { display: flex; align-items: center; gap: 8px; }
.hero__bullets .icon { color: var(--ok); }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__visual::before { content: ''; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: .42; }

.phone {
  position: relative;
  width: min(340px, 100%);
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3a2470, #170536);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 2px rgba(255, 255, 255, .05);
  transform: rotate(3deg);
}
.phone__notch { position: absolute; top: 24px; left: 50%; z-index: 2; width: 92px; height: 24px; margin-left: -46px; border-radius: 999px; background: #0a0018; }
.phone__screen { padding: 62px 16px 18px; border-radius: 42px; background: linear-gradient(180deg, #230a52, #14022f 55%); }
.phone__top { display: flex; flex-direction: column; padding: 0 6px 16px; }
.phone__hello { color: var(--muted); font-size: .85rem; }
.phone__top strong { font-size: 1.12rem; letter-spacing: -.02em; }
.phone__list { display: grid; gap: 8px; margin-bottom: 16px; }
.phone__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .18s, transform .18s; }
.phone__list a:hover { background: var(--glass-strong); transform: translateX(3px); }
.phone__list a > .icon { margin-left: auto; color: var(--muted); width: 1em; height: 1em; }
.phone__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.phone__text strong { font-size: .9rem; }
.phone__text small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chip-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 13px; background: var(--grad); color: #fff; }
.chip-icon .icon { width: 20px; height: 20px; }
.chip-icon--lg { width: 56px; height: 56px; border-radius: 18px; }
.chip-icon--lg .icon { width: 28px; height: 28px; }

/* ---------- Seções ---------- */
.section { padding: 70px 0; }
.section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { margin: 18px 0 14px; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* Serviços */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 46px; margin-bottom: 26px; }
.service:nth-of-type(even) .service__copy { order: 2; }
.service__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tag { padding: 6px 14px; border-radius: 999px; background: rgba(124, 77, 255, .2); border: 1px solid rgba(124, 77, 255, .45); color: #d9ccff; font-size: .8rem; font-weight: 700; }
.service h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.service__copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 48ch; }
.service__list { display: grid; gap: 10px; }
.service__list li { display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); font-weight: 500; }
.tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; }
.tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 34px; }
.step__num { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 18px; background: var(--grad); font-size: 1.4rem; font-weight: 800; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--r-md); box-shadow: none; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--glass-strong); transition: transform .25s ease, background .25s ease; }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #fff; }
.faq__plus::after { transform: rotate(90deg); transition: transform .25s ease; }
.faq__item[open] .faq__plus { background: var(--grad); transform: rotate(180deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__item p { padding: 0 24px 24px; color: var(--muted); }

/* Chamada final */
.cta { position: relative; overflow: hidden; padding: 64px 32px; border-radius: var(--r-lg); background: var(--grad); text-align: center; box-shadow: 0 40px 90px -40px rgba(255, 77, 122, .7); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { max-width: 20ch; margin: 0 auto 14px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.cta p { max-width: 52ch; margin: 0 auto 30px; color: rgba(255, 255, 255, .92); font-size: 1.08rem; }

/* Rodapé */
.footer { margin-top: 50px; padding: 54px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: rgba(8, 0, 22, .5); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand p { max-width: 40ch; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer__nav strong { margin-bottom: 4px; }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Animação de entrada (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Login ---------- */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 32px 20px; }
.auth__card { width: 100%; max-width: 440px; padding: 40px 34px; }
.auth__card h1 { margin: 28px 0 8px; font-size: 1.9rem; font-weight: 800; }
.form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: .92rem; }
.field input { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-size: 1rem; transition: border-color .18s, box-shadow .18s; }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 77, 255, .3); }
.alert { margin-top: 22px; padding: 14px 18px; border-radius: var(--r-sm); background: rgba(255, 77, 122, .14); border: 1px solid rgba(255, 77, 122, .5); color: #ffd3de; font-weight: 600; font-size: .95rem; }
.demo-hint { display: grid; gap: 2px; margin-top: 22px; padding: 16px 18px; border-radius: var(--r-sm); border: 1px dashed rgba(255, 255, 255, .25); color: var(--muted); font-size: .9rem; }
.demo-hint strong { color: var(--text); }
.demo-hint code { color: #d9ccff; }
.auth__foot { margin-top: 24px; color: var(--muted); font-size: .9rem; text-align: center; }
.auth__foot a, .link { color: #c9b6ff; font-weight: 700; }
.auth__foot a:hover, .link:hover { color: #fff; }

/* ---------- Área do cliente ---------- */
.app { padding: 120px 0 40px; }
.app__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.app__head h1 { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.badge { padding: 7px 14px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .3); color: var(--muted); font-size: .8rem; font-weight: 700; }

.app__summary { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 18px; margin-bottom: 44px; }
.balance { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: var(--r-lg); background: var(--grad); box-shadow: 0 30px 70px -34px rgba(255, 77, 122, .8); }
.balance::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 100% at 100% 0%, rgba(255, 255, 255, .3), transparent 60%); pointer-events: none; }
.balance > * { position: relative; }
.balance__row { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.balance__value { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.balance small { color: rgba(255, 255, 255, .85); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .3); }
.icon-btn[aria-pressed='true'] { opacity: .7; }

.stat { display: flex; flex-direction: column; justify-content: center; padding: 26px 28px; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.stat strong { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.stat small { color: var(--muted); }

.app__section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.app__section-head h2 { font-size: 1.55rem; font-weight: 800; }
.empty { padding: 28px; color: var(--muted); }

.case { padding: 30px; margin-bottom: 18px; }
.case__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.case__head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.status { padding: 6px 14px; border-radius: 999px; background: rgba(124, 77, 255, .22); border: 1px solid rgba(124, 77, 255, .5); color: #dcd0ff; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.status--done { background: rgba(94, 230, 168, .14); border-color: rgba(94, 230, 168, .5); color: var(--ok); }
.case__note { margin: 26px 0 14px; padding: 16px 18px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .22); color: #ddd2f7; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: .95rem; }
.link .icon { width: 1em; height: 1em; }

/* Etapas */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); }
.stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.stepper__item::before { content: ''; position: absolute; top: 18px; right: 50%; width: 100%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.stepper__item:first-child::before { display: none; }
.stepper__item.is-done::before, .stepper__item.is-current::before { background: var(--grad); }
.stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2a1458; border: 2px solid rgba(255, 255, 255, .16); color: var(--muted); font-weight: 800; font-size: .9rem; }
.stepper__dot .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.is-done .stepper__dot { background: var(--grad); border-color: transparent; color: #fff; }
.is-current .stepper__dot { background: #2a1458; border-color: var(--pink); color: #fff; box-shadow: 0 0 0 6px rgba(255, 77, 122, .2); }
.stepper__label { font-size: .86rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.is-done .stepper__label, .is-current .stepper__label { color: var(--text); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(24, 6, 58, .97);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 4px 0 0; min-height: 50px; }

  .hero { padding: 120px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 54px; }
  .service { grid-template-columns: 1fr; gap: 30px; padding: 30px 24px; }
  .service:nth-of-type(even) .service__copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .app__summary { grid-template-columns: 1fr 1fr; }
  .balance { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .section { padding: 50px 0; }
  .section__head { margin-bottom: 34px; }
  .hero__actions .btn, .service__copy .btn, .cta .btn { width: 100%; white-space: normal; text-align: center; }
  .phone { transform: none; }
  .cta { padding: 46px 22px; }
  .auth__card { padding: 32px 22px; }
  .case { padding: 22px 18px; }
  .stepper__label { font-size: .72rem; }
  .stat { padding: 20px; }
  .stat strong { font-size: 2.1rem; }
  .hide-sm { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
