/* =========================================================
   Variáveis: mude as cores e fontes aqui
   ========================================================= */
:root {
    --bg: #fbf7f2;
    --surface: #ffffff;
    --ink: #2b2a33;
    --muted: #5f5d6b;
    --line: #e9e1d7;
    --accent: #5b4bdb;
    --accent-dark: #4a3bc4;
    --soft: #efecff;
    --radius: 18px;
    --max: 1080px;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Base */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font: 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--max)); margin: 0 auto; }
.narrow { max-width: 760px; }
.section { padding: 88px 0; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p + p { margin-top: 12px; }

.lead { max-width: 62ch; color: var(--muted); font-size: 1.12rem; }
.head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 5px 12px;
    border-radius: 99px; background: var(--soft); color: var(--accent-dark);
    font-size: 0.85rem; font-weight: 600;
}

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border: 2px solid transparent; border-radius: 99px;
    font-weight: 600; text-decoration: none; transition: 0.2s;
}
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header e rodapé */
.header { position: sticky; top: 0; z-index: 10; background: rgba(251, 247, 242, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { font: 600 1.5rem var(--serif); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.nav a:hover { color: var(--accent-dark); }
.footer { padding: 28px 0; color: var(--muted); font-size: 0.92rem; }
.footer .bar { min-height: 0; flex-wrap: wrap; }
.social { display: flex; gap: 20px; }
.social a:hover { color: var(--accent-dark); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

/* Conversa de exemplo */
.chat { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 50px rgba(91, 75, 219, 0.1); }
.bubble { max-width: 88%; margin: 0 !important; padding: 12px 16px; border-radius: 16px; font-size: 0.97rem; line-height: 1.5; }
.bubble.in { background: #f1eee9; border-bottom-left-radius: 4px; }
.bubble.out { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-cap { margin: 8px 0 0 !important; color: var(--muted); font-size: 0.88rem; text-align: center; }

/* Cartões e listas */
.cards { display: grid; gap: 20px; list-style: none; padding: 0; }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.alt .card { background: var(--bg); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card b { color: var(--ink); }
.steps { counter-reset: step; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
    border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem;
}

/* Tabela comparativa */
.table-wrap { margin-top: 36px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--bg); }
caption { margin-bottom: 12px; color: var(--muted); font-size: 0.95rem; text-align: left; }
th, td { padding: 14px 18px; border: 1px solid var(--line); text-align: left; font-size: 0.97rem; }
thead th { background: var(--soft); color: var(--accent-dark); }
tbody th { font-weight: 600; }

/* Duas colunas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { display: grid; gap: 14px; list-style: none; padding: 0; }
.checks li { position: relative; padding: 18px 20px 18px 54px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.checks li::before { content: "✓"; position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--accent-dark); font-weight: 700; font-size: 0.85rem; }

/* Sobre */
.avatar { width: 132px; height: 132px; margin-bottom: 22px; border: 4px solid var(--surface); border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 3px var(--soft), 0 12px 28px rgba(91, 75, 219, 0.18); }
.project { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.project figcaption { padding: 20px 22px; color: var(--muted); font-size: 0.95rem; }
.project strong { color: var(--ink); }

/* Dúvidas */
details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] { border-color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; color: var(--muted); }

/* Convite final */
.final { padding: 88px 0; background: var(--accent-dark); color: #fff; text-align: center; }
.final .lead { margin: 0 auto; color: rgba(255, 255, 255, 0.85); }
.final .actions { justify-content: center; }

/* Foto do hero: ocupa o lado direito e se funde ao fundo da página */
.hero { position: relative; overflow: hidden; }
.hero-grid { position: relative; }
.hero-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
    mask-image: linear-gradient(to right, transparent, #000 40%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.chat { align-self: end; justify-self: end; max-width: 380px; background: rgba(255, 255, 255, 0.94); }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed; z-index: 20;
    right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
    display: grid; place-items: center; width: 58px; height: 58px;
    border-radius: 50%; background: #25d366; color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Responsivo */
@media (max-width: 900px) {
    .three, .four { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section, .final { padding: 64px 0; }
    .hero { padding: 48px 0 64px; }
    .nav { display: none; }
    .three, .four { grid-template-columns: 1fr; }
    .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

@media (max-width: 900px) {
    .hero { padding-top: 0; }
    .hero-photo {
        position: relative; width: 100%; height: 380px; margin-bottom: -30px;
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
        mask-image: linear-gradient(to bottom, #000 60%, transparent);
    }
    .chat { justify-self: stretch; max-width: none; }
}

/* Menu hambúrguer (celular) */
.menu-toggle { display: none; }
@media (max-width: 640px) {
    .bar { gap: 10px; }
    .header .btn-sm { margin-left: auto; }
    .js .menu-toggle {
        display: grid; place-content: center; gap: 5px; width: 44px; height: 44px;
        border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
    }
    .menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
        padding: 6px 20px 14px; background: var(--bg); border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 24px rgba(43, 42, 51, 0.08);
    }
    .nav.open { display: flex; }
    .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav a:last-child { border-bottom: 0; }
}
