/* Design system compartilhado entre /consultoria e /aulas.
   Cada página sobrescreve as variáveis de tema em theme-*.css. */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --border: #e4e7eb;
  --text: #1a1d21;
  --text-muted: #5b6270;
  --text-faint: #8a909c;

  --accent: #2b6cb0;
  --accent-hover: #1f5490;
  --accent-soft: #e8f1fb;
  --accent-text-on: #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 30, 0.08);

  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --surface: #1e2127;
    --border: #2c3038;
    --text: #eef0f3;
    --text-muted: #a7acb8;
    --text-faint: #737a87;
    --accent-soft: rgba(43, 108, 176, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }

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

.section {
  padding: 88px 0;
}
.section-alt { background: var(--bg-alt); }
.section-header { max-width: 640px; margin: 0 0 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(24px, 3vw, 32px); color: var(--text); }
.section-header p { font-size: 17px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cross {
  font-size: 14px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-cross:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text-on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 46px); color: var(--text); }
.hero .lede { font-size: 18px; color: var(--text-muted); max-width: 52ch; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { margin-top: 28px; font-size: 14px; color: var(--text-faint); }
.hero-trust strong { color: var(--text); }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card h3 { font-size: 18px; }
.card p { margin-bottom: 0; font-size: 15px; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

/* Process steps */
.steps { display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text-on);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin-bottom: 0; }

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.testimonial .stars { color: #f5a623; font-size: 14px; margin-bottom: 10px; }
.testimonial p { color: var(--text); font-size: 15px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar-initial {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.testimonial-author span { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonials-link { margin-top: 32px; font-size: 15px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price-card .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-text-on);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price-card .amount { font-size: 32px; font-weight: 800; color: var(--text); margin: 8px 0; }
.price-card .amount small { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.price-card .desc { font-size: 14px; color: var(--text-faint); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-question .plus { transition: transform 0.2s ease; font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 20px; margin: 0; }

/* Final CTA */
.cta-band {
  background: var(--accent);
  color: var(--accent-text-on);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--accent-text-on); }
.cta-band p { color: color-mix(in srgb, var(--accent-text-on) 85%, transparent); font-size: 17px; }
.cta-band .btn-primary { background: var(--accent-text-on); color: var(--accent); }
.cta-band .btn-primary:hover { opacity: 0.9; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-bottom { font-size: 13px; color: var(--text-faint); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-cross { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
}
