/* ============================================================
   Complya — site.css
   Design system: teal, clean, B2B. Tokens vêm do <style> inline
   no layout (lidos da tabela configuracoes). Aqui só fallback.
   ============================================================ */

:root {
  --primary: #0F766E;
  --primary-dark: #115E59;
  --secondary: #14B8A6;
  --accent: #F59E0B;
  --ink: #0E1726;
  --ink-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #ECFDF8;
  --footer-bg: #0E1726;
  --footer-text: #CBD5E1;

  --line: #E5E7EB;
  --line-soft: #F1F5F9;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 38, 0.04);
  --shadow: 0 6px 24px rgba(15, 23, 38, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 23, 38, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.2; color: var(--ink); margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 12px; color: var(--ink); }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, .25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, .35); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-soft); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.brand-name { font-family: 'Space Grotesk'; font-size: 1.25rem; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: var(--line-soft); color: var(--ink); }
.nav-link.is-active { color: var(--primary); background: var(--bg-alt); }
.nav-link.is-cta {
  background: var(--primary); color: #fff;
}
.nav-link.is-cta:hover { background: var(--primary-dark); color: #fff; }

.header-cta { display: flex; gap: 8px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px; margin: 0;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============ HERO ============ */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(60% 80% at 85% 10%, var(--bg-alt) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, #fff 100%);
}
.hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 .accent { color: var(--primary); }
.hero .lead { font-size: 1.15rem; color: var(--ink-light); max-width: 540px; margin: 4px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-checks li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: .95rem;
}
.hero-checks i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.hero-mesh svg { width: 100%; height: auto; max-width: 520px; margin-left: auto; display: block; }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 32px; }
  .hero-mesh svg { max-width: 380px; margin: 0 auto; }
}

/* ============ STATS ============ */
.stats { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat > i { font-size: 1.4rem; color: var(--primary); display: block; margin-bottom: 8px; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1;
  display: flex; align-items: baseline; gap: 2px; justify-content: center;
}
.stat-aff { color: var(--primary); font-size: 1.4rem; font-weight: 600; }
.stat-label { font-size: .9rem; color: var(--ink-light); margin-top: 8px; }

@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-light); font-size: 1.05rem; margin-top: 8px; }

.grid { display: grid; gap: 20px; }
.grid-modules { grid-template-columns: repeat(4, 1fr); }
.grid-segs { grid-template-columns: repeat(4, 1fr); }
.grid-depo { grid-template-columns: repeat(3, 1fr); }
.grid-plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

@media (max-width: 1000px) { .grid-modules, .grid-segs { grid-template-columns: repeat(2, 1fr); } .grid-depo { grid-template-columns: 1fr; } .grid-plans { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-modules, .grid-segs { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: rgba(15, 118, 110, .35); box-shadow: var(--shadow); }
.card-link {
  margin-top: auto; padding-top: 16px;
  color: var(--primary); font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.card-link i { transition: transform .2s; }
.card:hover .card-link i { transform: translateX(3px); }

/* Módulos */
.mod-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-alt); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.mod h3 { margin-bottom: 4px; }
.mod-sub { color: var(--ink-light); font-size: .85rem; margin-bottom: 8px; }
.mod p { color: var(--ink-light); font-size: .94rem; }

/* Segmentos */
.seg {
  --accent-seg: var(--primary);
  position: relative; overflow: hidden;
  cursor: pointer; color: var(--ink);
}
.seg::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-seg);
}
.seg-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-seg)15; color: var(--accent-seg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 14px;
}
.seg h3 { margin-bottom: 2px; }
.seg-sub { color: var(--ink-light); font-size: .85rem; margin-bottom: 8px; }
.seg p { color: var(--ink-light); font-size: .92rem; }

/* Depoimentos */
.depo { padding: 28px; }
.depo-stars { color: var(--accent); margin-bottom: 12px; font-size: .9rem; }
.depo blockquote {
  margin: 0 0 16px; padding: 0;
  font-size: 1.02rem; line-height: 1.55; color: var(--ink);
}
.depo figcaption { display: flex; flex-direction: column; }
.depo figcaption strong { color: var(--ink); }
.depo figcaption span { color: var(--ink-light); font-size: .88rem; }

/* Parceiros */
.parceiros { padding: 56px 0; border-top: 1px solid var(--line); }
.parceiros-title { text-align: center; color: var(--ink-light); font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 24px; }
.parceiros-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.parc { opacity: .75; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.parc:hover { opacity: 1; filter: none; }
.parc img { height: 32px; width: auto; display: block; }
.parc-text { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink-light); font-size: 1.1rem; }

/* Planos */
.plan { padding: 32px 24px; position: relative; }
.plan.is-featured { border-color: var(--primary); box-shadow: 0 12px 32px rgba(15, 118, 110, .12); transform: translateY(-4px); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.plan-head i { color: var(--primary); font-size: 1.4rem; }
.plan-head h3 { margin: 0; font-size: 1.3rem; }
.plan-price { margin: 0 0 12px; }
.plan-price strong { font-family: 'Space Grotesk'; font-size: 2rem; font-weight: 700; color: var(--ink); }
.plan-price span { color: var(--ink-light); font-size: .95rem; margin-left: 4px; }
.plan-desc { color: var(--ink-light); font-size: .94rem; margin-bottom: 20px; }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; color: var(--ink); }
.plan-benefits li i { flex-shrink: 0; margin-top: 3px; font-size: .95rem; }
.plan-benefits li.inc i { color: var(--primary); }
.plan-benefits li.exc { color: var(--ink-light); }
.plan-benefits li.exc i { color: #cbd5e1; }
.plan-benefits li.is-highlight { font-weight: 600; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; padding: 18px 20px;
  background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; font-size: 1rem; font-weight: 600; color: var(--ink);
}
.faq-q i { transition: transform .2s; color: var(--ink-light); }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 20px 18px; margin: 0; color: var(--ink-light); }

/* CTA */
.cta { padding: 72px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 4px; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta .btn-primary { background: #fff; color: var(--primary); border-color: #fff; box-shadow: none; }
.cta .btn-primary:hover { background: var(--bg-alt); transform: translateY(-1px); }

/* ============ FOOTER ============ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 24px; margin-top: 0; }
.brand-on-dark { color: #fff; }
.brand-on-dark:hover { color: #fff; }
.brand-on-dark .brand-name { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot-about { color: var(--footer-text); margin: 16px 0; font-size: .94rem; max-width: 360px; }
.foot-contact, .foot-social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.foot-contact i { color: var(--secondary); margin-right: 6px; }
.foot-contact a { color: var(--footer-text); }
.foot-contact a:hover { color: #fff; }
.foot-social { flex-direction: row; gap: 10px; }
.foot-social a {
  --rs: var(--secondary);
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: background .15s;
}
.foot-social a:hover { background: var(--rs); color: #fff; }
.foot-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; font-weight: 700; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--footer-text); font-size: .94rem; }
.foot-col a:hover { color: #fff; }
.foot-col a.is-highlight { color: #fff; font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; color: rgba(255, 255, 255, .55); font-size: .85rem; }
.foot-bottom-links a { color: rgba(255, 255, 255, .65); }
.foot-bottom-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* Logo como imagem no header/rodapé */
.brand-logo-img {
  max-height: 36px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-logo-img--footer {
  max-height: 44px;
  max-width: 200px;
}
