/* ===================================================================
   Landing page do Mutuu
   Paleta e tipografia reaproveitadas do app (www/index.html).
   Projeto separado, nao afeta o app em producao.
   =================================================================== */

:root {
  --brand: #4338CA;
  --brand-dark: #3730A3;
  --brand-light: #E0E7FF;
  --accent: #E0E7FF;
  --accent-deep: #4338CA;

  --bg: #F5F3FF;
  --bg-alt: #EEF0FF;
  --surface: #FFFFFF;
  --fg: #1E1B4B;
  --fg2: #6B6796;
  --border: #E3E2F5;

  --income: #4338CA;
  --expense: #C1392B;
  --warning: #E9A43A;

  --grad: linear-gradient(148deg, #312E81 0%, #4338CA 62%, #6366F1 100%);
  --grad-soft: linear-gradient(148deg, #EEF0FF 0%, #F5F3FF 100%);

  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 4px rgba(30, 27, 75, .06);
  --shadow: 0 18px 50px rgba(67, 56, 202, .12);
  --shadow-lg: 0 30px 80px rgba(30, 27, 75, .18);

  --maxw: 1120px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --leading-tight: 1.1;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;
  --track-display: -.024em;
  --track-tight: -.014em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F1A;
    --bg-alt: #16162A;
    --surface: #1A1A2E;
    --fg: #F5F5F0;
    --fg2: #9B9AB5;
    --border: #2E2E4A;
    --brand: #818CF8;
    --brand-dark: #6366F1;
    --brand-light: #252540;
    --accent: #E0E7FF;
    --accent-deep: #818CF8;
    --grad-soft: linear-gradient(148deg, #16162A 0%, #0F0F1A 100%);
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .4);
  }
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Utilitarios de layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand); text-transform: uppercase;
  background: var(--brand-light); padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow .mi { font-size: 15px; }

h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: var(--track-display); color: var(--fg); text-wrap: balance; }
h2.section-title { font-size: clamp(28px, 4vw, 40px); line-height: var(--leading-tight); margin-bottom: 16px; }
.section-lead { font-size: clamp(16px, 2vw, 18px); line-height: var(--leading-normal); color: var(--fg2); max-width: 58ch; text-wrap: pretty; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.mi { font-family: 'Material Icons Round'; font-weight: normal; font-style: normal; line-height: 1; vertical-align: middle; text-transform: none; letter-spacing: normal; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s, border-color .18s;
  white-space: nowrap;
}
.btn .mi { font-size: 20px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(67, 56, 202, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(67, 56, 202, .38); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-light); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.btn-lg { font-size: 17px; padding: 18px 34px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.scrolled { border-bottom-color: var(--border); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.brand-word { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: var(--track-display); color: var(--fg); }
.brand-word .dim { opacity: .42; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a.navlink { font-size: 15px; font-weight: 600; color: var(--fg2); transition: color .15s; }
.header-nav a.navlink:hover { color: var(--fg); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 10px 18px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; }
.menu-toggle .mi { font-size: 28px; }

@media (max-width: 860px) {
  .header-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1200px 520px at 15% -10%, var(--brand-light) 0%, transparent 60%);
  opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.06; margin-bottom: 24px; }
.hero h1 .hl { color: var(--brand); }
.hero-sub { font-size: clamp(17px, 2.1vw, 20px); line-height: var(--leading-normal); color: var(--fg2); max-width: 48ch; margin-bottom: 32px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--fg2); }
.hero-trust .mi { font-size: 17px; color: var(--brand); }

.play-badge {
  display: inline-block; margin-top: 22px;
  border-radius: 8px; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.play-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.play-badge img { display: block; width: 168px; height: auto; border-radius: 8px; }

.footer-brand .play-badge { margin-top: 18px; }

.hero-visual { position: relative; }
.hero-visual .mock { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: #fff; }
.hero-visual .float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 12px 15px; display: flex; gap: 11px; align-items: center;
}
.float-badge .fb-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.float-badge .fb-icon .mi { font-size: 21px; }
.float-badge .fb-title { font-size: 13px; font-weight: 700; color: var(--fg); line-height: 1.2; }
.float-badge .fb-sub { font-size: 12px; line-height: var(--leading-snug); color: var(--fg2); }
.float-badge.one { top: 26px; left: -26px; }
.float-badge.one .fb-icon { background: var(--brand-dark); }
.float-badge.two { bottom: 30px; right: -22px; }
.float-badge.two .fb-icon { background: var(--brand); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .float-badge.one { left: 0; }
  .float-badge.two { right: 0; }
}
@media (max-width: 480px) {
  .float-badge { display: none; }
}

/* ---------- Problema ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.pain .mi { font-size: 26px; color: var(--expense); margin-bottom: 14px; display: inline-block; }
.pain h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: var(--track-tight); margin-bottom: 10px; }
.pain p { font-size: 15px; line-height: var(--leading-normal); color: var(--fg2); }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Uso (individual / parceria) split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split + .split { margin-top: 80px; }
.split-body .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-light); padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.split-body h3 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 16px; line-height: var(--leading-tight); }
.split-body > p { font-size: 17px; line-height: var(--leading-normal); color: var(--fg2); max-width: 52ch; margin-bottom: 24px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: var(--leading-normal); }
.check-list li .mi { font-size: 21px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.check-list li strong { color: var(--fg); font-weight: 700; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 440px; }
}

/* ---------- Como funciona (passos) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; margin-bottom: 20px;
}
.step-num::before { content: counter(step); }
.step .mi { font-size: 22px; color: var(--brand); margin-bottom: 6px; display: block; }
.step h3 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: var(--track-tight); margin-bottom: 8px; }
.step p { font-size: 15px; line-height: var(--leading-normal); color: var(--fg2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Ferramentas centrais ---------- */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Destaque: icone ocupa a coluna da esquerda inteira, o texto empilha a direita.
   Sem posicionamento explicito os quatro filhos caem na ordem do grid e a
   descricao vai parar ao lado do proprio titulo. */
.tool.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; align-items: start; column-gap: 24px; row-gap: 12px; padding: 36px 32px; }
.tool.is-featured .tool-icon { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
.tool.is-featured h3 { grid-column: 2; grid-row: 1; font-size: 24px; margin-bottom: 0; }
.tool.is-featured p { grid-column: 2; grid-row: 2; margin-bottom: 0; }
.tool.is-featured .tool-benefit { grid-column: 2; grid-row: 3; justify-self: start; }
.tool {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .22s var(--ease), border-color .2s;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.tool-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tool-icon .mi { font-size: 27px; }
.tool h3 { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: var(--track-tight); margin-bottom: 12px; }
.tool p { font-size: 16px; line-height: var(--leading-normal); color: var(--fg2); max-width: 56ch; margin-bottom: 16px; }
.tool .tool-benefit { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-light); padding: 8px 14px; border-radius: 10px; }
.tool .tool-benefit .mi { font-size: 17px; }
@media (max-width: 860px) {
  .tools { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tool.is-featured { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 12px; padding: 30px 26px; }
  .tool.is-featured .tool-icon,
  .tool.is-featured h3,
  .tool.is-featured p,
  .tool.is-featured .tool-benefit { grid-column: 1; grid-row: auto; }
  .tool.is-featured .tool-icon { margin-bottom: 8px; }
  .tool.is-featured h3 { font-size: 20px; }
}

/* ---------- Diferenciais ---------- */
.diffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.diff { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.diff .di { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.diff .di .mi { font-size: 23px; }
.diff h3 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: var(--track-tight); margin-bottom: 6px; }
.diff p { font-size: 15px; line-height: var(--leading-normal); color: var(--fg2); }
@media (max-width: 720px) { .diffs { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-block {
  background: var(--grad); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-block::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .06); top: -140px; right: -100px; }
.cta-block::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .05); bottom: -110px; left: -70px; }
.cta-block h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: var(--leading-tight); margin-bottom: 16px; position: relative; }
.cta-block p { color: rgba(255, 255, 255, .82); font-size: 18px; line-height: var(--leading-normal); max-width: 48ch; margin: 0 auto 32px; position: relative; }
.cta-block .btn { position: relative; }
.cta-note { color: rgba(255, 255, 255, .72); font-size: 13px; margin-top: 18px; position: relative; display: inline-flex; align-items: center; gap: 7px; }
.cta-note .mi { font-size: 16px; color: var(--brand-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--surface); transition: border-color .18s; }
.faq-item.open { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 700; line-height: var(--leading-snug); color: var(--fg); text-align: left; }
.faq-q .mi { font-size: 24px; color: var(--fg2); flex-shrink: 0; transition: transform .22s var(--ease), color .18s; }
.faq-item.open .faq-q .mi { transform: rotate(180deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 24px 20px; font-size: 16px; color: var(--fg2); line-height: var(--leading-relaxed); max-width: 62ch; }
.faq-a-inner strong { color: var(--fg); }

/* ---------- Rodape ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 34px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; margin-bottom: 34px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 15px; line-height: var(--leading-normal); color: var(--fg2); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg2); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; font-size: 15px; color: var(--fg); margin-bottom: 12px; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--fg2); }
.footer-bottom a { color: var(--brand); font-weight: 600; }

/* ---------- Menu mobile ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 24px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; height: 44px; margin-bottom: 20px; }
.mobile-menu-top .mi { font-size: 28px; cursor: pointer; color: var(--fg); }
.mobile-menu a.navlink { font-size: 20px; font-weight: 700; color: var(--fg); padding: 16px 4px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Reveal ao rolar ----------
   O estado oculto so vale quando ha JavaScript (classe .js no <html>).
   Sem JS, o conteudo aparece normalmente, nada fica invisivel. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
