/* =====================================================================
   CRM LivingLabs - landing page e login
   ===================================================================== */
:root {
    --ink: #14213D;
    --ink-2: #1F2E52;
    --paper: #F4F7F6;
    --surface: #FFFFFF;
    --line: #DCE3E1;
    --text: #18233A;
    --muted: #5D6B7E;
    --signal: #0F7B6C;
    --signal-dark: #0B6155;
    --signal-soft: #E1F2EE;
    --pulse: #E9A23B;
    --danger: #B4372A;
    --font-ui: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-ui); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); }
a { color: var(--signal-dark); }
:focus-visible { outline: 3px solid rgba(15, 123, 108, .45); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 20px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
    color: #fff; background: var(--signal); border: 1px solid var(--signal); border-radius: 10px; cursor: pointer;
}
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: #fff; }
.btn-quiet { color: var(--ink); background: transparent; border-color: #C3CECA; }
.btn-quiet:hover { color: var(--ink); background: var(--surface); border-color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* Cabeçalho */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover { color: var(--signal-dark); }

/* Herói: a conversa que vira negócio */
.hero { padding: 48px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 {
    margin: 0; max-width: 15ch;
    font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4rem);
    line-height: 1.02; letter-spacing: -.035em; color: var(--ink);
}
.hero-lead { max-width: 46ch; margin: 22px 0 30px; font-size: 1.15rem; color: #34425A; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

.demo { position: relative; }
.demo-chat {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.demo-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ink); color: #fff; }
.demo-head .who { line-height: 1.25; }
.demo-head small { display: block; color: #9DAAC2; font-size: .8rem; }
.demo-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2BB39F; color: var(--ink); font-weight: 700; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: #F3C77C; }
.demo-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); }
.demo-body {
    display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 92px; min-height: 380px;
    background-color: #EEF3F1; background-image: radial-gradient(rgba(20, 33, 61, .06) 1px, transparent 1px); background-size: 18px 18px;
}
.bubble { max-width: 78%; padding: 9px 13px; font-size: .95rem; line-height: 1.45; border-radius: 13px; }
.bubble small { display: block; margin-top: 3px; font-size: .72rem; color: var(--muted); text-align: right; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid #E1E8E6; border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #D9F0EA; border: 1px solid #C2E5DC; border-top-right-radius: 4px; }
.bubble.bot { align-self: flex-end; background: #fff; border: 1px dashed #9CC9BF; border-top-right-radius: 4px; }
.deal-card {
    position: absolute; right: -22px; bottom: -26px; width: min(300px, 80%);
    padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pulse); border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(20, 33, 61, .45);
}
.deal-card .stage { display: inline-block; margin-bottom: 6px; padding: 1px 9px; font-size: .78rem; font-weight: 700; color: #7A5310; background: #FCF0DB; border-radius: 999px; }
.deal-card strong { display: block; color: var(--ink); }
.deal-card .row { display: flex; justify-content: space-between; margin-top: 6px; font-size: .9rem; color: var(--muted); }

/* Sequência única de entrada do herói */
.demo [data-step] { opacity: 0; transform: translateY(8px); animation: step-in .45s ease-out forwards; }
.demo [data-step="1"] { animation-delay: .3s; }
.demo [data-step="2"] { animation-delay: 1.1s; }
.demo [data-step="3"] { animation-delay: 1.9s; }
.demo [data-step="4"] { animation-delay: 2.7s; }
.demo [data-step="5"] { animation-delay: 3.6s; }
@keyframes step-in { to { opacity: 1; transform: none; } }

/* Seções */
.section { padding: 84px 0; }
.section-ink { color: #D6DDEA; background: var(--ink); }
.section h2 {
    margin: 0 0 14px; max-width: 22ch;
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.025em; color: var(--ink);
}
.section-ink h2 { color: #fff; }
.section-lead { max-width: 60ch; margin: 0 0 44px; color: var(--muted); font-size: 1.08rem; }
.section-ink .section-lead { color: #AEB9CD; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.feature { padding: 26px 28px 8px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding: 9px 0; border-bottom: 1px solid #E5EBE9; }
.feature li:last-child { border-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); background: #2BB39F; border-radius: 50%;
}
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; }
.steps p { margin: 0; color: #AEB9CD; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.plan { padding: 28px 26px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.plan .price { margin: 10px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.02em; color: var(--ink); }
.plan .price small { font-family: var(--font-ui); font-weight: 400; font-size: .95rem; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 7px 0; border-bottom: 1px solid #EEF2F1; }
.plan li:last-child { border-bottom: 0; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px 40px; background: var(--signal-soft); border-radius: 18px; }
.cta h2 { margin: 0; }
.cta p { margin: 8px 0 0; color: #23524A; }

.site-footer { padding: 34px 0 44px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Login */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-form-side { display: flex; flex-direction: column; padding: 28px clamp(20px, 6vw, 80px); }
.auth-form { width: 100%; max-width: 400px; margin: auto 0; padding: 40px 0; }
.auth-form h1 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -.025em; color: var(--ink); }
.auth-form > p { margin: 0 0 28px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; color: var(--ink); }
.field input {
    min-height: 46px; padding: 10px 13px; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid #C3CECA; border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(15, 123, 108, .18); }
.field-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; font-size: .95rem; }
.field-row label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.field-row input { width: 17px; height: 17px; accent-color: var(--signal); }
.auth-form .btn { width: 100%; }
.auth-error { margin: 0 0 18px; padding: 11px 14px; color: #8A2A20; background: #FBE7E4; border-radius: 10px; font-weight: 700; }
.auth-error[hidden] { display: none; }
.auth-aside {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: clamp(28px, 5vw, 64px);
    color: #D6DDEA; background: var(--ink);
}
.auth-aside blockquote { margin: 0; max-width: 30ch; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.auth-aside p { margin: 0; max-width: 44ch; color: #AEB9CD; }


@media (max-width: 900px) {
    .site-nav { display: none; }
    .site-header .btn { margin-left: auto; }
    .hero .wrap { grid-template-columns: 1fr; gap: 64px; }
    .deal-card { right: 10px; }
    .features, .steps { grid-template-columns: 1fr; }
    .feature + .feature { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
    .section { padding: 60px 0; }
    .cta { padding: 28px 24px; }
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .demo [data-step] { opacity: 1; transform: none; animation: none; }
}
