/* ==========================================================================
   Escala+ - Site institucional
   ========================================================================== */

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

:root {
  --primary: #0F524D;
  --primary-dark: #0a3d39;
  --primary-light: #d8f0e8;
  --primary-soft: #f0fdf9;

  --warn-soft: #fef3c7;
  --warn-text: #92400e;
  --info-soft: #dbeafe;
  --info-text: #1e40af;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0F172A;

  --text: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;

  --border: #e5e7eb;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { color: var(--text-secondary); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Botoes - usar !important nos botoes pra vencer .nav a etc */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none !important;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}
.btn-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: white !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-secondary:hover { background: var(--primary-soft) !important; }
.btn-large { padding: 16px 32px; font-size: 1rem; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; color: var(--primary);
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--primary); text-decoration: none; }
/* Garantir que .btn dentro da .nav nao herde cor do .nav a */
.nav a.btn-primary { color: white !important; }
.nav a.btn-secondary { color: var(--primary) !important; }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, white 60%);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,82,77,0.08) 0%, transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 850px; margin: 16px auto 24px; }
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--primary), #2DA88B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; max-width: 620px;
  margin: 0 auto 36px; color: var(--text-secondary);
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 16px; font-size: 0.85rem; color: var(--text-tertiary); }

.hero-mockup {
  margin-top: 64px; max-width: 900px;
  margin-left: auto; margin-right: auto; position: relative;
}
.hero-mockup-frame {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden;
}

/* Problema */
.problem { padding: 96px 0; background: var(--bg-alt); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.problem-text h2 { margin-bottom: 16px; }
.problem-text p { font-size: 1.05rem; margin-bottom: 12px; }
.problem-list { margin-top: 24px; }
.problem-list li {
  display: flex; gap: 12px; margin-bottom: 14px;
  align-items: flex-start; color: var(--text-secondary);
}
.problem-list li::before {
  content: '✓'; flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.problem-image {
  background: white; padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* Features */
.features { padding: 96px 0; }
.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white; padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.warn { background: var(--warn-soft); color: var(--warn-text); }
.feature-icon.info { background: var(--info-soft); color: var(--info-text); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); }

/* Comparison */
.comparison { padding: 96px 0; background: var(--bg-alt); }
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 980px; margin: 0 auto;
}
.compare-card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
}
.compare-card.bad { border-color: #fecaca; }
.compare-card.good { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow); }
.compare-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.compare-header h3 { font-size: 1.25rem; }
.compare-card.bad .compare-header h3 { color: #b91c1c; }
.compare-card.good .compare-header h3 { color: var(--primary); }
.compare-list li {
  padding: 10px 0; display: flex;
  align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text-secondary);
}
.compare-list li::before {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem;
}
.compare-card.bad li::before { content: '✕'; background: #fef2f2; color: #dc2626; }
.compare-card.good li::before { content: '✓'; background: var(--primary-light); color: var(--primary); }

/* Pricing */
.pricing { padding: 96px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.price-card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
  position: relative; transition: var(--transition);
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.price-tier {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-tertiary); letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.price-desc { font-size: 0.9rem; color: var(--text-tertiary); margin-bottom: 24px; min-height: 44px; }
.price-features { margin-bottom: 24px; flex-grow: 1; }
.price-features li {
  padding: 8px 0; font-size: 0.95rem; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 8px;
}
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.price-card .btn { width: 100%; }

/* FAQ */
.faq { padding: 96px 0; background: var(--bg-alt); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 12px;
  overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); }
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px;
  font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-question::after {
  content: '+'; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; transition: var(--transition);
}
.faq-item.open .faq-question::after {
  content: '−'; background: var(--primary); color: white;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 250ms ease-out; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
}

/* CTA Final */
.cta { padding: 96px 0; background: var(--primary); color: white; text-align: center; }
.cta h2 { color: white; margin-bottom: 16px; }
.cta p {
  color: rgba(255,255,255,0.85); font-size: 1.1rem;
  max-width: 540px; margin: 0 auto 32px;
}
.cta .btn-primary {
  background: white !important;
  color: var(--primary) !important;
  border-color: white !important;
}
.cta .btn-primary:hover { background: var(--primary-soft) !important; }
.cta .btn-secondary {
  background: transparent !important;
  color: white !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.cta .btn-secondary:hover { background: rgba(255,255,255,0.1) !important; }

/* Contact */
.contact { padding: 96px 0; }
.contact-form {
  max-width: 600px; margin: 0 auto;
  background: white; padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem;
  transition: var(--transition); color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,82,77,0.1);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-success {
  display: none; background: var(--primary-light); color: var(--primary);
  padding: 14px; border-radius: var(--radius);
  text-align: center; font-weight: 600; margin-top: 16px;
}
.form-success.show { display: block; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #94a3b8; padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: #94a3b8; }
.footer-col h4 {
  color: white; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center; font-size: 0.85rem;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 920px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); gap: 16px;
  }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .problem-grid, .comparison-grid, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hero { padding: 64px 0 48px; }
  .problem, .features, .comparison, .pricing, .faq, .cta, .contact { padding: 64px 0; }
}

@media (max-width: 540px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .compare-card, .price-card, .feature-card { padding: 20px; }
  .contact-form { padding: 24px; }
}
