/* ============================================================================
   SageConnect — identidade & landing page
   Paleta:  verde #15B886 / #0E9F76   ·   tinta #0B1F2A   ·   fundo #F6FAF9
   Tipografia: Outfit (títulos) + Inter (texto)
============================================================================ */
:root {
    --green: #15b886;
    --green-deep: #0e9f76;
    --green-soft: #e7f7f1;
    --ink: #0b1f2a;
    --ink-2: #324a56;
    --muted: #6b8089;
    --bg: #f6faf9;
    --card: #ffffff;
    --border: #e4ecea;
    --shadow: 0 12px 40px rgba(11, 31, 42, .08);
    --radius: 16px;
    --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Outfit", system-ui, sans-serif; line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.eyebrow { color: var(--green-deep); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ── Botões ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
    padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(21, 184, 134, .3); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.24); }

/* ── Navbar ───────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,250,249,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-weight: 800; font-size: 20px; }
.brand-name b { color: var(--green-deep); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--green-deep); }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero h1 .hl { background: linear-gradient(90deg, var(--green), var(--green-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green-deep);
    font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }

/* visual do hero */
.hero-visual { background: linear-gradient(160deg, #0b1f2a, #103a44); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); color: #cfe9e1; }
.flowcard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.flowcard + .flowcard { margin-top: 14px; }
.flowcard .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(21,184,134,.2); display: grid; place-items: center; flex: 0 0 auto; }
.flowcard .ic svg { width: 22px; height: 22px; stroke: #4be0b1; }
.flowcard strong { color: #fff; font-family: "Outfit", sans-serif; display: block; font-size: 15px; }
.flowcard span { font-size: 13px; }
.flow-arrow { text-align: center; color: #4be0b1; font-size: 20px; margin: 6px 0; }

/* ── Tira de confiança ────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: center; padding: 28px 0; }
.trust-item { text-align: center; }
.trust-item b { font-family: "Outfit", sans-serif; font-size: 26px; color: var(--ink); display: block; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ── Secções comuns ───────────────────────────────────────────────────── */
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ── Funcionalidades ──────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: .18s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3e6e0; }
.feat .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 16px; }
.feat .ic svg { width: 24px; height: 24px; stroke: var(--green-deep); }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 15px; }

/* ── Como funciona ────────────────────────────────────────────────────── */
.steps { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px;
    width: 40px; height: 40px; border-radius: 11px; background: var(--green); color: #fff; font-weight: 800;
    font-family: "Outfit", sans-serif; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(21,184,134,.35); }
.step h3 { font-size: 18px; margin: 14px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ── Preços ───────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 22px; align-items: stretch; }
.price { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.price.base { border: 2px solid var(--green); box-shadow: var(--shadow); position: relative; }
.price.base .tag { position: absolute; top: -13px; left: 30px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.price .kicker { font-size: 13px; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: .06em; }
.price h3 { font-size: 22px; margin: 6px 0 4px; }
.price .amount { font-family: "Outfit", sans-serif; font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price .desc { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; min-height: 40px; }
.price ul { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.price li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price li svg { width: 19px; height: 19px; stroke: var(--green); flex: 0 0 auto; margin-top: 2px; }
.price .btn { margin-top: auto; justify-content: center; }
.price.addon { background: linear-gradient(180deg, #fff, #fbfdfc); }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ── CTA final ────────────────────────────────────────────────────────── */
.cta { background: linear-gradient(150deg, #0b1f2a, #0e9f76); color: #fff; border-radius: 24px; padding: 56px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta p { color: #cfe9e1; font-size: 17px; margin: 14px auto 26px; max-width: 540px; }
.cta .hero-actions { justify-content: center; }

/* ── Contacto / formulário ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start;
    background: linear-gradient(150deg, #0b1f2a, #0e9f76); border-radius: 24px; padding: 44px; color: #fff; }
.contact-pitch h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 12px 0 14px; }
.contact-pitch p { color: #cfe9e1; font-size: 17px; }
.contact-pitch .eyebrow { color: #8ff0cf; }
.contact-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: center; color: #e4f6ef; font-size: 15px; }
.contact-list svg { width: 20px; height: 20px; stroke: #4be0b1; flex: 0 0 auto; }
.form-card { background: #fff; border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 13px;
    border: 1px solid var(--border); border-radius: 10px; background: #fcfefe; transition: .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,184,134,.15); }
.field textarea { resize: vertical; min-height: 96px; }
.field .req { color: var(--green-deep); }
.hp { position: absolute; left: -9999px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-card .small { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 16px; }
.alert-ok { background: var(--green-soft); color: var(--green-deep); border: 1px solid #b7e6d6; }
.alert-err { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ── Páginas internas (legais / funcionalidades) ─────────────────────── */
.page-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.page-hero p { color: var(--ink-2); font-size: 17px; margin-top: 12px; max-width: 640px; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { margin: 10px 0 10px 22px; display: grid; gap: 7px; }
.legal .updated { color: var(--muted); font-size: 13.5px; }
.legal a { color: var(--green-deep); font-weight: 600; }

/* blocos de funcionalidades detalhadas */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.detail .item h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.detail .item h3 svg { width: 22px; height: 22px; stroke: var(--green-deep); }
.detail .item p { color: var(--ink-2); font-size: 15px; }
.detail .item ul { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.detail .item li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.detail .item li svg { width: 18px; height: 18px; stroke: var(--green); flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 920px) { .contact-grid, .detail, .form-row2 { grid-template-columns: 1fr; } .contact-grid { padding: 28px; } }

/* ── Rodapé ───────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #a9c2cb; padding: 56px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer h4 { color: #fff; font-family: "Outfit", sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer a { display: block; color: #a9c2cb; padding: 4px 0; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #7e9aa3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 920px) {
    .hero-grid, .footer-grid { grid-template-columns: 1fr; }
    .feat-grid, .steps-grid, .price-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-burger { display: block; }
    .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 4px; }
    .nav-links.open a { padding: 10px 0; }
    .cta { padding: 40px 24px; }
    .section { padding: 64px 0; }
}
