/* CIBA Landing — mobile-first, sem dependências externas.
   Identidade: Deep Ocean #1B3A4B (primary) + Electric Teal #00D9C0 (accent). */

:root {
    --primary: #1B3A4B;
    --primary-dark: #122936;
    --accent: #00D9C0;
    --accent-dark: #00b3a0;
    --ink: #1c2b33;
    --ink-soft: #51636e;
    --bg: #ffffff;
    --bg-soft: #f4f8f9;
    --line: #e2e9ec;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(27, 58, 75, 0.10);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 12px; text-align: center; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
section { padding: 64px 0; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 40px; }

ul { list-style: none; }

a { color: var(--primary); }

/* ===== Botões ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 6px 18px rgba(0, 217, 192, 0.35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.8); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { color: var(--primary); }

/* ===== Topbar ===== */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--primary); color: var(--accent);
    font-weight: 800; font-size: 1.2rem;
}
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: 0.02em; }
.topnav { display: none; gap: 24px; }
.topnav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.topnav a:hover { color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions .btn-ghost { display: none; }

/* ===== Herói (escuro premium) ===== */
.hero {
    background: radial-gradient(1200px 600px at 75% 20%, #24506a 0%, var(--primary) 45%, var(--primary-dark) 100%);
    padding: 56px 0 72px;
    color: #fff;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 12px; }
.hero .hero-sub { color: rgba(255,255,255,0.78); }
.hero-sub { font-size: 1.1rem; margin: 18px 0 26px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.hero-note { margin-top: 16px; font-size: 0.95rem; }
.hero .hero-note { color: rgba(255,255,255,0.65); }
.hero .hero-note strong { color: var(--accent); }

/* Mockup de chat */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
    content: ""; position: absolute; inset: -30px;
    background: radial-gradient(closest-side, rgba(0, 217, 192, 0.28), transparent 70%);
    filter: blur(10px); z-index: 0;
}
.chat-mock {
    width: min(380px, 100%);
    background: #efe7dc;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative; z-index: 1;
}
.chat-mock-header {
    display: flex; align-items: center; gap: 12px;
    background: var(--primary); color: #fff; padding: 14px 16px;
}
.chat-mock-header small { display: block; color: var(--accent); font-size: 0.75rem; }
.chat-avatar { font-size: 1.6rem; }
.chat-mock-body { padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
    max-width: 85%; padding: 10px 14px; border-radius: 14px;
    font-size: 0.92rem; line-height: 1.45; box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    color: #1c2b33; /* explícito — bolhas claras nunca herdam cor do contexto escuro */
}
.bubble-in { background: #ffffff; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-out { background: #d7f8ef; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-sign { display: block; margin-top: 6px; font-size: 0.7rem; color: #51636e; font-style: italic; }

/* ===== Cards genéricos ===== */
.cards-3, .cards-4 { display: grid; gap: 20px; margin-top: 32px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px;
}
.card-icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.card p, .card li { color: var(--ink-soft); font-size: 0.95rem; }
.card ul li { padding: 4px 0 4px 22px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

.pain { background: var(--bg-soft); }

/* ===== Como funciona ===== */
.steps { display: grid; gap: 24px; margin-top: 36px; }
.step { text-align: center; padding: 0 12px; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: var(--accent);
    font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Recursos ===== */
.features { background: var(--bg-soft); }
.features h2 em { color: var(--accent-dark); font-style: normal; }

/* ===== Preços ===== */
.pricing-grid { display: grid; gap: 22px; margin-top: 36px; }
.price-card {
    position: relative;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; display: flex; flex-direction: column; gap: 14px;
    text-align: center;
}
.price-card-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--primary-dark);
    padding: 3px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.price-tagline { color: var(--ink-soft); font-size: 0.9rem; min-height: 2.2em; }
.price-value { color: var(--primary); }
.price-currency { font-size: 1.1rem; font-weight: 600; vertical-align: top; }
.price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.price-period { color: var(--ink-soft); font-size: 0.95rem; }
.price-card ul { text-align: left; margin: 0 auto; }
.price-card ul li { padding: 5px 0 5px 24px; position: relative; color: var(--ink-soft); font-size: 0.95rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.pricing-custom { text-align: center; margin-top: 28px; color: var(--ink-soft); }

/* ===== ROI ===== */
.roi { background: var(--primary); color: #fff; }
.roi h2 { color: #fff; }
.roi-compare { display: grid; gap: 18px; margin-top: 36px; align-items: stretch; }
.roi-col {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.roi-col-featured { background: rgba(0, 217, 192, 0.12); border-color: var(--accent); }
.roi-price { font-size: 1.7rem; font-weight: 800; margin: 10px 0 14px; color: var(--accent); }
.roi-col:first-child .roi-price { color: #ffb4a2; }
.roi-price span { display: block; font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.75); }
.roi-col li { padding: 4px 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.roi-vs {
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.3rem; color: var(--accent);
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px;
}
.faq-list summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.3rem; color: var(--accent-dark); font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== CTA final ===== */
.cta-final {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }
.cta-final .hero-ctas { justify-content: center; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 40px 0; }
.footer .brand-name { color: #fff; }
.footer-inner { display: grid; gap: 24px; }
.footer-tag { font-size: 0.9rem; margin-top: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: 0.85rem; }

/* ===== Responsivo ===== */
@media (min-width: 640px) {
    .cards-3, .steps { grid-template-columns: repeat(3, 1fr); }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr auto auto; align-items: start; }
}

@media (min-width: 960px) {
    .topnav { display: flex; }
    .topbar-actions .btn-ghost { display: inline-block; }
    .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
    .cards-4 { grid-template-columns: repeat(4, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .roi-compare { grid-template-columns: 1fr auto 1fr; max-width: 860px; margin-left: auto; margin-right: auto; }
}
