/* ==========================================================================
   Altis CRM — LP (/altis-crm)
   Identidade visual própria do Altis (docs/direcao-visual.md do produto):
   fundo claro, superfícies claras, acentos escuros/teal-azul, editorial,
   contraste elegante. NÃO usa a identidade visual escura/roxa/lime da
   Clicksoft — este é um produto "by Clicksoft", não a marca-mãe.
   ========================================================================== */

:root {
  --bg-app: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-muted: #eef0f4;
  --bg-dark: #0d1321;
  --bg-dark-soft: #141b2e;

  --text-primary: #10162b;
  --text-secondary: #5b6274;
  --text-tertiary: #8b93a8;
  --text-on-dark: #f5f6f8;
  --text-on-dark-muted: #9aa2b8;

  --border-subtle: #e4e6ec;
  --border-strong: #d3d7e0;

  --accent-teal: #1fb8c8;
  --accent-blue: #1f5fa8;
  --accent-gradient: linear-gradient(120deg, #2fd4c8 0%, #1f8fd6 55%, #1a4fa0 100%);
  --accent-success: #1f9d63;
  --accent-warning: #b8790a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 22, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 22, 43, 0.14);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent-gradient);
  display: inline-block;
  border-radius: 2px;
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; color: var(--text-primary); }
.section-head p { margin-top: 16px; font-size: 17px; }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--bg-dark);
  color: #fff;
}
.btn--primary:hover { background: #1c2438; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.btn--full { width: 100%; }
.btn--loading .btn-text { visibility: hidden; }
.btn-spinner { display: none; }
.btn--loading .btn-spinner {
  display: block;
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--primary { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo { height: 36px; width: auto; display: block; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.brand-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  border-left: 1px solid var(--border-subtle);
  padding-left: 8px;
  margin-left: 2px;
}
.brand-by-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}
.brand-by-link:hover { opacity: 1; filter: grayscale(0); }
.brand-by-logo { width: auto; height: 13px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; }
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  color: var(--text-primary);
}
.hero-lead {
  font-size: clamp(17px, 2vw, 19px);
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text-secondary);
}
.hero-lead strong { color: var(--text-primary); }
.hero-sub {
  font-size: 15px;
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text-tertiary);
}
.hero-actions { margin-top: 36px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-tagline {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.hero-visual {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.hero-visual img { width: 100%; height: auto; }

/* ── Narrative blocks ────────────────────────────────────────────── */
.narrative { background: var(--bg-surface); }
.narrative-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.narrative h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.28; color: var(--text-primary); }
.narrative h2 .muted { color: var(--text-tertiary); font-weight: 600; }
.narrative-lead {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: 16px;
}
.narrative-visual {
  margin: 40px auto 0;
  max-width: 780px;
}
.narrative-visual img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.narrative-highlight {
  margin-top: 32px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Scenario / email mockup ─────────────────────────────────────── */
.scenario { background: var(--bg-app); }
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) { .scenario-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; } }
.scenario-text p { font-size: 16px; margin-bottom: 16px; }
.scenario-text .lead-line { font-size: 17px; color: var(--text-primary); font-weight: 500; }
.scenario-callout {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-teal);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-secondary);
}
.scenario-callout strong { color: var(--text-primary); }

.email-mock-wrap { display: flex; justify-content: center; }
.email-mock-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.insight-list { margin-top: 36px; }
.insight-list p { font-size: 15px; margin-bottom: 20px; }
.insight-list ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.insight-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-secondary);
}
.insight-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin-top: 8px;
  flex-shrink: 0;
}
.insight-final { font-size: 18px; font-weight: 700; color: var(--text-primary); }

/* ── Compare table (automação vs autopilot) ─────────────────────── */
.compare { background: var(--bg-surface); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 800px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare-card--highlight {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}
.compare-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 20px; }
.compare-card--highlight h3 { color: var(--text-on-dark-muted); }
.compare-card ol { margin: 0; padding: 0 0 0 20px; }
.compare-card li { font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; }
.compare-card--highlight li { color: var(--text-on-dark-muted); }
.compare-note {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 15px;
}
.compare-note strong { color: var(--text-primary); }

/* ── Timeline (Da reunião ao próximo contato) ───────────────────── */
.timeline { background: var(--bg-app); }
.timeline-list {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}
.timeline-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item h3 { font-size: 17px; color: var(--text-primary); margin-bottom: 8px; }
.timeline-item p { font-size: 15px; }
.timeline-item strong { color: var(--text-primary); }

/* ── Idle / calm state ───────────────────────────────────────────── */
.calm { background: var(--bg-surface); }
.calm-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.calm-list { margin: 32px 0; display: grid; gap: 12px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
.calm-list p { font-size: 15px; }
.calm-final {
  margin-top: 20px;
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 16px;
}

/* ── Content gap ─────────────────────────────────────────────────── */
.gap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .gap-grid { grid-template-columns: 1fr 1fr; } }
.gap-text p { font-size: 15px; margin-bottom: 14px; }
.gap-highlight { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 20px 0; }
.gap-privacy {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-tertiary);
}
.gap-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-app);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 8px;
}
.gap-flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.gap-flow-step + .gap-flow-step { margin-top: 6px; }
.gap-flow-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gap-flow-icon svg { width: 15px; height: 15px; }

/* ── Autonomy levels ─────────────────────────────────────────────── */
.autonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.autonomy-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.autonomy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.autonomy-icon svg { width: 18px; height: 18px; }
.autonomy-icon--full {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
}
.autonomy-card--full { border-color: var(--accent-teal); }
.autonomy-card .autonomy-level {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 10px;
  display: block;
}
.autonomy-card h3 { font-size: 16px; color: var(--text-primary); margin-bottom: 8px; }
.autonomy-card p { font-size: 14px; }
.autonomy-note { text-align: center; max-width: 620px; margin: 32px auto 0; font-size: 15px; }
.autonomy-note strong { color: var(--text-primary); }

/* ── Feature grid (CRM completo) ─────────────────────────────────── */
.features { background: var(--bg-surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg-surface);
  padding: 28px 26px;
  transition: background 0.25s ease;
}
.feature-card:not(.feature-card--accent):hover { background: var(--bg-app); }
.feature-card--accent:hover { background: #171e33; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-app);
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.feature-icon svg { width: 17px; height: 17px; }
.feature-icon--accent { background: var(--accent-gradient); color: #fff; }
.feature-card h3 { font-size: 16px; color: var(--text-primary); margin-bottom: 8px; }
.feature-card p { font-size: 14px; }
.feature-card--accent { background: var(--bg-dark); }
.feature-card--accent .feature-icon { background: rgba(255,255,255,.08); }
.feature-card--accent .feature-icon--accent { background: var(--accent-gradient); }
.feature-card--accent h3 { color: #fff; }
.feature-card--accent p { color: var(--text-on-dark-muted); }

/* ── Memory cycle ────────────────────────────────────────────────── */
.cycle { background: var(--bg-app); }
.cycle-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cycle-inner h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.28; color: var(--text-primary); }
.cycle-lead { margin: 18px auto 0; font-size: 16px; max-width: 600px; }
.cycle-final { margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--text-primary); }

/* ── Marketing funnel ─────────────────────────────────────────────── */
.funnel-compare {
  display: grid;
  gap: 16px;
  max-width: 700px;
  margin: 32px auto 0;
}
.funnel-row {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-app);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.funnel-row--full {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.funnel-note { text-align: center; max-width: 600px; margin: 28px auto 0; font-size: 15px; }
.funnel-note strong { color: var(--text-primary); }

/* ── Implantação checklist ───────────────────────────────────────── */
.setup { background: var(--bg-surface); }
.setup-inner { max-width: 900px; margin: 0 auto; }
.setup-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
  margin: 36px 0;
  list-style: none;
  padding: 0;
}
.setup-list li {
  font-size: 14.5px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}
.setup-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 800;
}
.setup-final { text-align: center; font-size: 17px; font-weight: 700; color: var(--text-primary); margin-top: 12px; }

/* ── For who / audience ──────────────────────────────────────────── */
.audience-list {
  columns: 2;
  column-gap: 32px;
  max-width: 720px;
  margin: 32px auto 0;
  list-style: none;
  padding: 0;
}
@media (max-width: 640px) { .audience-list { columns: 1; } }
.audience-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
  break-inside: avoid;
}
.audience-list li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
}
.audience-note { text-align: center; max-width: 600px; margin: 32px auto 0; font-size: 16px; font-weight: 600; color: var(--text-primary); }

/* ── Closing (Quantas oportunidades) ─────────────────────────────── */
.closing { background: var(--bg-dark); color: var(--text-on-dark); }
.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.closing h2 { font-size: clamp(24px, 3.2vw, 32px); color: #fff; line-height: 1.35; }
.closing-list { margin: 32px 0; display: grid; gap: 8px; }
.closing-list p { font-size: 15px; color: var(--text-on-dark-muted); }
.closing-final { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 32px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { background: var(--bg-app); }
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.accordion-icon { font-size: 20px; color: var(--accent-blue); flex-shrink: 0; transition: transform .25s ease; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-item.open .accordion-content { max-height: 400px; }
.accordion-content-inner { padding: 0 24px 22px; font-size: 15px; color: var(--text-secondary); }

/* ── Contact / final form ────────────────────────────────────────── */
.contact { background: var(--bg-surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 0.9fr; } }
.contact-text .eyebrow { color: var(--accent-blue); }
.contact-text h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; color: var(--text-primary); }
.contact-text p { margin-top: 18px; font-size: 16px; }

.form-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(31,95,168,.12);
}
.field-error { display: none; font-size: 12.5px; color: #c0392b; margin-top: 4px; }
.checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; }
.check-outer { position: relative; flex-shrink: 0; margin-top: 2px; }
.check-outer input { position: absolute; opacity: 0; width: 18px; height: 18px; cursor: pointer; }
.check-box {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  font-size: 12px;
  color: transparent;
}
.check-outer input:checked + .check-box { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.check-label { font-size: 13px; color: var(--text-secondary); }
.form-success, .form-error { display: none; margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-success { background: rgba(31,157,99,.1); color: var(--accent-success); }
.form-error { background: rgba(192,57,43,.1); color: #c0392b; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: var(--text-on-dark-muted); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; }
.footer-brand span { font-weight: 700; color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { text-decoration: none; color: var(--text-on-dark-muted); }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 24px; font-size: 12.5px; color: #6b7284; text-align: center; }
.footer-legal a { color: #8b93a8; text-decoration: underline; }

/* ── Fade-in utility ──────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
