/*
 * AlfaFinances: landing de venda.
 * Tokens tirados do app (DESIGN.md / src/theme/palettes.ts): o céu do login, o cofre 3D e o azul da marca.
 */
:root {
  --primary: #1556d6;
  --primary-dark: #0b3ea8;
  --navy: #0e2a5c;
  --text: #0f1b33;
  --text-secondary: #5b6b85;
  --text-on-sky: #4a5a75;
  --sky-dawn: #f9fafd;
  --sky-haze: #c5d8e9;
  --sky-deep: #4895d4;
  --income: #16a34a;
  --income-text: #157f3b;
  --income-soft: #e7f6ec;
  --expense: #e5383b;
  --border: #e1e7f0;
  --input-border: #8794a9;
  --background: #f4f7fc;
  --surface: #ffffff;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-md: 12px;
  --radius-xl: 24px;
  --shadow-sky: 0 28px 56px -24px rgba(11, 58, 156, 0.45);
  --gutter: clamp(16px, 4vw, 40px);
  --topbar-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease-out;
}
.btn:hover {
  background: var(--primary-dark);
}
.btn--sm {
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.link-strong,
.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.link-strong {
  color: var(--navy);
  font-size: 16px;
}
.link-quiet {
  padding: 0 6px;
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
}
.link-quiet:hover {
  text-decoration: underline;
}

/* ---------- topo fixo ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar-h);
  transition:
    background-color 200ms ease-out,
    box-shadow 200ms ease-out;
}
.topbar.is-stuck {
  background: rgba(249, 250, 253, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: auto;
}
.brand__word {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand__word b {
  font-weight: 800;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-on-sky);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(100svh, 820px);
  padding: calc(var(--topbar-h) + 40px) var(--gutter) 96px;
  display: flex;
  align-items: center;
}

/* o céu do login: luz da manhã à esquerda, azul fundo à direita, uma claridade atrás do cofre */
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 72% 44%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%),
    linear-gradient(118deg, var(--sky-dawn) 0%, var(--sky-dawn) 24%, var(--sky-haze) 56%, var(--sky-deep) 100%);
}

/* feixes de luz descendo, a mesma linguagem do login e do Início */
.streak {
  position: absolute;
  left: var(--x);
  top: calc(var(--h) * -1);
  width: 3px;
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: streak var(--t) linear var(--d) infinite;
}
@keyframes streak {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20%,
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(130svh);
    opacity: 0;
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.375rem, 1.1rem + 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.hero__title span {
  display: block;
  text-wrap: balance;
}

.hero__lead {
  max-width: 44ch;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-on-sky);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-on-sky);
}

/* --- o palco: WhatsApp, cofre e a resposta do mês --- */
.stage {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 0.94;
  justify-self: end;
}

.vault {
  position: absolute;
  left: 4%;
  right: 0;
  top: 13%;
}
.vault__float {
  position: relative;
  aspect-ratio: 902 / 591;
  animation: float 2.6s ease-in-out infinite alternate;
}
.vault__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 450ms ease-out;
}
/* sem JS ou com "reduzir movimento": o cofre já aparece aberto */
.vault__img--closed {
  opacity: 0;
}
.vault__shadow {
  display: block;
  width: 72%;
  height: 22px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 58, 156, 0.38), rgba(11, 58, 156, 0));
  animation: shadow 2.6s ease-in-out infinite alternate;
}
@keyframes float {
  to {
    transform: translateY(-10px);
  }
}
@keyframes shadow {
  to {
    transform: scaleX(0.86);
    opacity: 0.6;
  }
}

/* a mensagem como ela chega no WhatsApp (balão enviado) */
.bubble {
  position: absolute;
  top: 2%;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 78%;
  padding: 10px 10px 8px 14px;
  border-radius: 14px 4px 14px 14px;
  background: #d9fdd3;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  box-shadow: 0 12px 28px -14px rgba(11, 58, 156, 0.5);
}
.bubble__meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 11.5px;
  color: #5b6b85;
  font-variant-numeric: tabular-nums;
}
.bubble__meta svg {
  color: #3497d8;
}

/* a resposta do Início, num vidro sobre o céu */
.answer {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(436px, 90%);
  padding: 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-sky);
  font-variant-numeric: tabular-nums;
}
.answer__sentence {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.answer__verb {
  font-weight: 600;
  color: var(--income-text);
}
.answer__amount {
  font-weight: 700;
}
.answer__flows {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-on-sky);
}
.answer__flows b {
  color: var(--navy);
  font-weight: 700;
}
.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 6px;
  vertical-align: 2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.arrow--in {
  border-bottom: 7px solid var(--income);
}
.arrow--out {
  border-top: 7px solid var(--expense);
}

.ruler {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ruler__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.ruler__head b {
  color: var(--navy);
}
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--income-soft);
  color: var(--income-text);
  font-size: 12px;
  font-weight: 600;
}
.ruler__track {
  position: relative;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--border);
}
.ruler__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--income);
  transform-origin: left;
  transform: scaleX(var(--p));
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
}
/* as faixas de 40% (atenção) e 60% (alto) */
.ruler__tick {
  position: absolute;
  left: var(--at);
  top: -3px;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: var(--input-border);
}

/* ---------- abertura: o gasto chega, o cofre abre, o mês responde (só com JS e movimento) ---------- */
.intro [data-step] {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity 500ms ease-out,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.intro [data-step].is-on {
  opacity: 1;
  transform: none;
}
.intro .answer .ruler__fill {
  transform: scaleX(0);
}
.intro .answer.is-on .ruler__fill {
  transform: scaleX(var(--p));
}
.intro .vault__img--closed {
  opacity: 1;
}
.intro .vault__img--open {
  opacity: 0;
}
.intro .stage.is-open .vault__img--closed {
  opacity: 0;
}
.intro .stage.is-open .vault__img--open {
  opacity: 1;
  transition-duration: 0ms;
}
.vault__img--opening {
  opacity: 1;
  transition: none;
}

/* ---------- 2. a dor ---------- */
/* o céu do hero assenta no fundo da página, sem corte */
.sky::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(244, 247, 252, 0), var(--background));
}

.pain {
  padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(64px, 9vw, 120px);
}
.pain__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pain__title {
  max-width: 60ch;
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}

.pain__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
.pain__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 32px clamp(32px, 6vw, 96px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
}
.pain__text h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}
.pain__text p {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* os "papéis" do antes: brancos, cantos pequenos, sem o azul da marca */
.sheet,
.drain,
.bill__paper {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(14, 42, 92, 0.06);
  font-variant-numeric: tabular-nums;
}
.sheet,
.drain,
.bill {
  width: 100%;
  justify-self: end;
}

.sheet {
  overflow: hidden;
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-secondary);
}
.sheet th,
.sheet td {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.sheet th {
  background: #eef1f6;
  font-weight: 600;
}
.sheet tr > :first-child {
  width: 22%;
  border-left: 0;
}
.sheet tr > :last-child {
  border-right: 0;
  text-align: right;
}
.sheet thead th {
  border-top: 0;
}
.sheet tbody tr:last-child td {
  border-bottom: 0;
}
/* o cursor parado na primeira linha vazia */
.sheet tbody tr:nth-child(6) td:first-child {
  outline: 2px solid var(--input-border);
  outline-offset: -2px;
}

.drain ul {
  margin: 0;
  padding: 8px 20px;
  list-style: none;
  font-size: 14px;
}
.drain li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #eef1f6;
  color: var(--text-secondary);
}
.drain li:last-child {
  border-bottom: 0;
}
.drain li b {
  font-weight: 600;
}
.drain__in b {
  color: var(--income-text);
}
.drain__more {
  font-style: italic;
}
.drain__left {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.drain__left b {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.bill {
  position: relative;
  margin: 0;
  padding-top: 28px;
}
.bill__paper {
  padding: 24px;
}
.bill__label {
  font-size: 14px;
  color: var(--text-secondary);
}
.bill__total {
  margin-top: 6px;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #c62828;
}
/* o valor "de cabeça", num papelzinho colado por cima */
.bill__note {
  position: absolute;
  top: 0;
  right: 16px;
  padding: 10px 16px 12px;
  border-radius: 2px;
  background: #fef3c7;
  color: #a14a05;
  font-family: 'Caveat', 'Segoe Print', cursive;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px -8px rgba(161, 74, 5, 0.45);
}

.pain__turn {
  max-width: 44ch;
  margin-top: 0;
  padding-top: clamp(32px, 5vw, 56px);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.pain__turn .link-strong {
  display: inline;
  min-height: 0;
  font-size: inherit;
  color: var(--primary);
}

@media (max-width: 959px) {
  .pain__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet,
  .drain,
  .bill {
    max-width: 440px;
    justify-self: start;
  }
}

/* ---------- 3. whatsapp: como funciona ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wa {
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
}
/* o mesmo céu do painel do login, agora como um painel dentro da página */
.wa__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  align-items: center;
  gap: 48px clamp(40px, 6vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(40% 55% at 78% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, var(--sky-dawn) 0%, var(--sky-haze) 50%, var(--sky-deep) 100%);
}

.wa__title {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
}
.wa__lead {
  max-width: 42ch;
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-on-sky);
}

/* os passos são uma sequência de verdade: número e um fio ligando um ao outro */
.steps {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 28px 52px;
  counter-increment: step;
}
.steps > li:last-child {
  padding-bottom: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 10px -6px rgba(11, 58, 156, 0.5);
}
.steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: rgba(14, 42, 92, 0.14);
}
.steps h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.steps p {
  max-width: 44ch;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-sky);
}

/* o pedaço do Extrato do app, com a marca de "veio do WhatsApp" */
.mini-statement {
  max-width: 380px;
  margin-top: 16px;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 32px -20px rgba(11, 58, 156, 0.55);
  font-variant-numeric: tabular-nums;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.mini-row + .mini-row {
  border-top: 1px solid var(--border);
}
.mini-row__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.mini-row__name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}
.mini-row b {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.wa-mark {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25d366;
}
/* um balãozinho branco desenhado (não é o logo do WhatsApp) */
.wa-mark::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  width: 14px;
  height: 10px;
  border-radius: 5px;
  background: #fff;
}
.wa-mark::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid transparent;
}

/* a conversa */
.chat {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #eef2f7;
  box-shadow: var(--shadow-sky);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.chat__head img {
  box-sizing: content-box;
  width: 26px;
  height: auto;
  padding: 8px 6px;
  border-radius: 50%;
  background: var(--primary-soft, #e8f0fd);
}
.chat__head span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.chat__head small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 20px;
}

.msg {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 2px 10px;
  max-width: 84%;
  padding: 8px 10px 6px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  box-shadow: 0 1px 1px rgba(14, 42, 92, 0.08);
}
.msg p {
  flex: 1 1 auto;
}
.msg b {
  font-weight: 600;
}
.msg__time {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.msg--me {
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
  background: #d9fdd3;
}
.msg--alfa {
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
  background: var(--surface);
}
.msg--alfa + .msg--me {
  margin-top: 6px;
}
.msg--reminder {
  margin-top: 10px;
  background: #fef3c7;
}
.msg--reminder b {
  color: #a14a05;
}

.msg--audio {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
}
.play {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #4a5a75;
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
}
.wave i {
  display: block;
  width: 3px;
  height: var(--h);
  border-radius: 2px;
  background: rgba(21, 127, 59, 0.6);
}

.msg--photo {
  position: relative;
  padding: 4px;
}
.receipt {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 132px;
  height: 150px;
  padding: 16px 14px 12px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(14, 42, 92, 0.06), rgba(14, 42, 92, 0) 60%),
    #f6f7f9;
}
.receipt i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #c9d3e2;
}
.receipt i.short {
  width: 60%;
}
.receipt em {
  margin-top: auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}
.msg--photo .msg__time {
  position: absolute;
  right: 10px;
  bottom: 8px;
}

@media (max-width: 959px) {
  .wa__panel {
    grid-template-columns: minmax(0, 1fr);
    background:
      radial-gradient(70% 30% at 50% 78%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%),
      linear-gradient(180deg, var(--sky-dawn) 0%, var(--sky-haze) 50%, var(--sky-deep) 100%);
  }
  .chat {
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  /* no celular estreito o painel quase encosta na borda, para a conversa ter espaço */
  .wa {
    padding-left: 8px;
    padding-right: 8px;
  }
  .wa__panel {
    padding: 32px 16px 16px;
  }
  .wa__copy {
    padding: 0 4px;
  }
  .mini-statement {
    margin-left: -52px;
    max-width: none;
  }
}

/* ---------- 4. o app por dentro ---------- */
.tour {
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
}
.tour__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.tour__title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
}
.tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 32px clamp(32px, 5vw, 72px);
}

/* as perguntas são as abas */
.tour__tabs {
  display: flex;
  flex-direction: column;
}
.tab {
  display: block;
  width: 100%;
  padding: 14px 0 14px 20px;
  border: 0;
  border-left: 3px solid var(--border);
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tab__q {
  display: block;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  transition: color 160ms ease-out;
}
.tab__screen {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.tab__desc {
  display: block;
  max-width: 40ch;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-sky);
}
.tab:hover .tab__q {
  color: var(--navy);
}
.tab[aria-selected="true"] {
  border-left-color: var(--primary);
}
.tab[aria-selected="true"] .tab__q {
  color: var(--navy);
}
.tab[aria-selected="true"] .tab__screen {
  color: var(--primary);
}
.tour--js .tab[aria-selected="false"] .tab__desc {
  display: none;
}
.tab:focus-visible {
  outline-offset: -3px;
}

.tour__note {
  display: none;
  margin: -16px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-sky);
}
@media (max-width: 959px) {
  .tour--js .tour__note {
    display: block;
  }
}

/* a "tela": o tema claro do app, com o fundo da página do app em volta */
.device {
  padding: clamp(12px, 1.6vw, 18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-sky);
  font-variant-numeric: tabular-nums;
}
.scr + .scr {
  margin-top: 16px;
}
.tour--js .device {
  display: grid;
}
.tour--js .scr {
  grid-area: 1 / 1;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 220ms ease-out,
    visibility 0s linear 220ms;
}
/* todas as telas têm a altura da mais alta: a folha branca cresce até o fim */
.tour--js .scr:not(.scr--split) {
  display: flex;
  flex-direction: column;
}
.tour--js .scr__sheet {
  flex: 1;
}
.tour--js .scr--split .tx {
  align-self: stretch;
}
.tour--js .scr.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 220ms ease-out;
}
.scr:focus-visible {
  outline-offset: 4px;
  border-radius: 16px;
}

.scr__sky {
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(115deg, var(--sky-dawn) 0%, var(--sky-haze) 62%, #9cc0e3 100%);
}
.scr__sentence {
  max-width: 26ch;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.scr__sentence b {
  font-weight: 700;
}
.v-in {
  font-weight: 600;
  color: var(--income-text);
}
.scr__flows {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-on-sky);
}
.scr__flows b {
  color: var(--navy);
}
.scr__ruler {
  margin-top: 14px;
}
.scr__ruler p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--text-on-sky);
}
.scr__ruler b {
  color: var(--navy);
}
.scr__ruler .ruler__track {
  background: rgba(255, 255, 255, 0.7);
}
.ruler__fill--warn {
  background: #d97706;
}

.chip--warn {
  background: #fef3c7;
  color: #a14a05;
}
.chip--bad {
  background: #fdecec;
  color: #c62828;
}
.scr__sheet {
  margin-top: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
}
.scr__h {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.scr__h small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}
.scr__h--gap {
  margin-top: 20px;
}

.compo {
  display: flex;
  gap: 2px;
  height: 10px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
}
.compo i {
  flex: 0 0 var(--w);
  background: var(--c);
}
.legend {
  margin: 0;
  padding: 0;
  list-style: none;
}
.legend li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text);
}
.legend li + li {
  border-top: 1px solid var(--border);
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.legend span {
  color: var(--text-secondary);
}
.legend b {
  min-width: 84px;
  color: var(--navy);
  text-align: right;
}

/* extrato */
.scr--split {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.cal {
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--surface);
}
.cal__month {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
  font-size: 12px;
  text-align: center;
  color: var(--text);
}
.cal__grid b {
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.cal__grid span {
  position: relative;
  height: 26px;
  line-height: 24px;
}
.cal__grid .d-out,
.cal__grid .d-in,
.cal__grid .d-both {
  font-weight: 700;
}
.cal__grid .d-out::after,
.cal__grid .d-in::after,
.cal__grid .d-both::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--expense);
}
.cal__grid .d-in::after {
  background: var(--income);
}
.cal__grid .d-both::after {
  margin-left: -5px;
  box-shadow: 6px 0 0 var(--income);
}
.cal__grid .d-today {
  justify-self: center;
  width: 26px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-weight: 700;
}

.tx {
  margin: 0;
  padding: 4px 16px 8px;
  border-radius: 16px;
  background: var(--surface);
  list-style: none;
}
.tx__day {
  padding: 12px 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.tx__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.tx__row--sub {
  padding: 2px 0 8px 28px;
}
.tx__row--sub .tx__name {
  font-weight: 500;
}
.tx__row--sub b {
  color: var(--text-secondary);
  font-weight: 600;
}
.tx__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.tx__name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}
.tx__name em,
.ending em {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef1f6;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-secondary);
  vertical-align: 1px;
}
.tx__row b {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tx__row .pos {
  color: var(--income-text);
}
.tx__row .neg {
  color: #c62828;
}

/* o círculo de dar baixa: pago, vencida ou em aberto */
.st {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #c9d3e2;
  border-radius: 50%;
}
.st--ok {
  border-color: var(--income);
  background: var(--income);
}
.st--ok::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.st--late {
  border-color: #c62828;
}
.st--late::after {
  content: "!";
  position: absolute;
  inset: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  color: #c62828;
}

/* planejamento */
.scr__sheet--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.goal {
  margin-top: 12px;
}
.goal p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
}
.goal p span {
  font-weight: 600;
}
.goal p b {
  font-weight: 700;
  white-space: nowrap;
}
.bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c);
  transform-origin: left;
  transform: scaleX(var(--p));
}
.goal small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.goal small.chip {
  display: inline-block;
}
.ending {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.ending small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}
.ending b {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* perfil: o céu da família, com você e o lugar de convidar */
.scr__family {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.scr__family small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-on-sky);
}
.people {
  display: flex;
  gap: 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.people li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.people small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-on-sky);
}
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
/* o lugar vago: círculo tracejado com o "+" desenhado */
.avatar--add {
  position: relative;
  border: 2px dashed var(--primary);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.avatar--add::before,
.avatar--add::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 1px;
  background: var(--primary);
}
.avatar--add::after {
  transform: rotate(90deg);
}

.plan-line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.plan-line small,
.settings small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}
.plan-line small:first-of-type {
  margin-top: 2px;
}
.settings {
  margin: 0;
  padding: 0;
  list-style: none;
}
.settings li {
  position: relative;
  padding: 12px 28px 12px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.settings li + li {
  border-top: 1px solid var(--border);
}
/* a setinha de "abre" no fim da linha */
.settings li::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: solid #617088;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}

@media (max-width: 959px) {
  .tour__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* no celular as perguntas viram uma fileira que rola para o lado */
  .tour__tabs {
    flex-direction: row;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tab {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
  }
  .tab[aria-selected="true"] {
    border-color: var(--primary);
    background: var(--primary);
  }
  .tab__q {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
  }
  .tab[aria-selected="true"] .tab__q {
    color: #fff;
  }
  .tab__screen,
  .tab__desc {
    display: none;
  }
  /* no celular as telas têm alturas muito diferentes: só a escolhida ocupa espaço */
  .tour--js .scr:not(.is-active) {
    display: none;
  }
}
@media (max-width: 600px) {
  .scr--split,
  .scr__sheet--two {
    grid-template-columns: minmax(0, 1fr);
  }
  .cal {
    display: none;
  }
}

/* ---------- 5. planos ---------- */
.plans {
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
}
.plans__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.plans__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.plans__title {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
}

/* mensal / anual: a pílula segmentada do app */
.billing {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e8f0fd;
}
.billing label {
  position: relative;
  cursor: pointer;
}
.billing input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.billing span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}
.billing input:checked + span {
  background: var(--primary);
  color: #fff;
}
.billing input:focus-visible + span {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.plans__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* Individual: o céu da marca */
.plan-main {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, var(--sky-dawn) 0%, var(--sky-haze) 55%, var(--sky-deep) 120%);
}
.plan-main__name {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.plan-main__who {
  margin-top: 4px;
  font-size: 16px;
  color: var(--text-on-sky);
}

.price {
  margin: 28px 0 0;
  font-variant-numeric: tabular-nums;
}
.price__value {
  font-size: clamp(3rem, 2.2rem + 2.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.price__per {
  margin-left: 10px;
  font-size: 16px;
  color: var(--text-on-sky);
}
.price__note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-on-sky);
}

.checks {
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
}
.checks li + li {
  margin-top: 10px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--surface);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--income);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan-main__cta {
  align-self: flex-start;
  margin-top: auto;
}

/* família: mais quieto, em papel branco */
.plan-family {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.plan-family__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.plan-family__lead {
  max-width: 46ch;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.tiers {
  margin: 24px 0 28px;
}
.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.tier:last-child {
  border-bottom: 1px solid var(--border);
}
.tier dt {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.tier dt small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}
.price--sm {
  margin: 0;
  text-align: right;
}
.price--sm .price__value {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.price--sm .price__per {
  margin-left: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.price--sm .price__note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
/* quanto sai por pessoa (Casal) */
.price__each {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* como se paga: embaixo dos cartões, em voz baixa */
.plans__terms {
  max-width: 70ch;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.btn--outline {
  align-self: flex-start;
  margin-top: auto;
  border: 1.5px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
}
.btn--outline:hover {
  background: #e8f0fd;
}

@media (max-width: 959px) {
  .plans__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 440px) {
  .billing {
    display: flex;
    width: 100%;
  }
  .billing label {
    flex: 1;
  }
  .billing span {
    justify-content: center;
    width: 100%;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .plan-main__cta,
  .btn--outline {
    align-self: stretch;
  }
}

/* ---------- 6. dúvidas ---------- */
.faq {
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
}
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px clamp(32px, 6vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
}
.faq__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
}

.qa {
  border-top: 1px solid var(--border);
}
.qa:last-child {
  border-bottom: 1px solid var(--border);
}
.qa summary {
  position: relative;
  padding: 22px 56px 22px 0;
  list-style: none;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy);
  cursor: pointer;
}
.qa summary::-webkit-details-marker {
  display: none;
}
/* o + que vira × ao abrir */
.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 12px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2px 12px no-repeat,
    #e8f0fd;
  transition: transform 200ms ease-out;
}
.qa[open] summary::after {
  transform: rotate(45deg);
}
.qa summary:hover::after {
  background-color: #d6e4fb;
}
.qa summary:focus-visible {
  outline-offset: 2px;
}
.qa p {
  max-width: 60ch;
  padding: 0 56px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.qa p b {
  font-weight: 600;
  color: var(--navy);
}
.qa p a {
  font-weight: 600;
  color: var(--primary);
  text-underline-offset: 4px;
}

@media (max-width: 959px) {
  .faq__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq__title {
    max-width: 20ch;
  }
  .qa p {
    padding-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qa summary::after {
    transition: none;
  }
}

/* ---------- 7. chamada final ---------- */
/* a página sobe do fundo claro para o céu, e termina com o cofre aberto */
.final {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(80px, 10vw, 128px);
  background:
    radial-gradient(38% 34% at 50% 30%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--background) 0%, #dce8f3 26%, var(--sky-haze) 52%, var(--sky-deep) 100%);
  text-align: center;
}
.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.final__vault {
  width: min(360px, 78vw);
}
.final__vault img {
  width: 100%;
  height: auto;
}
.final__title {
  max-width: 16ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(2.375rem, 1.1rem + 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-wrap: balance;
}
.final__lead {
  max-width: 46ch;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--navy);
}
.final__cta {
  margin-top: 32px;
}
.final__note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--navy);
}
.final__note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 4px;
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ---------- rodapé ---------- */
.footer {
  padding: 48px var(--gutter) 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer__slogan {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer__nav a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
/* AlfaFinances | Lumiset: as duas marcas na mesma linha, separadas por um fio */
.lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lockup__bar {
  width: 1px;
  height: 32px;
  background: var(--border-strong, #c9d3e2);
}
/* a palavra LUMISET fica na parte de baixo da imagem: a imagem sobe para ela ficar na linha do ALFAFINANCES */
.lockup__lumiset {
  width: auto;
  height: 52px;
  transform: translateY(-8px);
}
.footer__copy {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- celular e tablet ---------- */
@media (max-width: 959px) {
  .nav {
    display: none;
  }
  .topbar__actions {
    margin-left: auto;
  }
  .hero {
    min-height: 0;
    padding-top: calc(var(--topbar-h) + 28px);
    padding-bottom: 48px;
  }
  .sky {
    background:
      radial-gradient(70% 34% at 55% 74%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
      linear-gradient(180deg, var(--sky-dawn) 0%, #e3edf6 34%, var(--sky-haze) 58%, var(--sky-deep) 100%);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero__lead {
    margin-top: 20px;
  }
  .hero__cta {
    margin-top: 28px;
  }
  /* no celular o palco vira uma coluna: balão, cofre e a resposta logo abaixo, encostando nele */
  .stage {
    justify-self: center;
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }
  .bubble,
  .vault,
  .answer {
    position: relative;
    inset: auto;
  }
  .bubble {
    align-self: flex-start;
  }
  .vault {
    margin: 4px 0 0 2%;
    width: 96%;
  }
  .answer {
    width: 100%;
    margin-top: -14%;
    padding: 18px;
  }
  .answer__sentence {
    font-size: 20px;
  }
}

@media (max-width: 440px) {
  .brand__word {
    display: none;
  }
  /* no rodapé sobra espaço: o nome volta */
  .footer .brand__word {
    display: inline;
  }
  .hero__cta .btn {
    flex: 1 1 100%;
  }
}

/* ---------- reduzir movimento: tudo parado no estado final ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .streak {
    animation: none;
    opacity: 0.5;
    transform: translateY(40svh);
  }
  .vault__float,
  .vault__shadow {
    animation: none;
  }
}
