/* ─── LaudoFácil — shared marketing CSS ───
   Used by every marketing page (landing + benefit pages + audience pages).
   Brand colors mirror the React app theme (Tailwind brand-* tokens). */

:root {
  --brand-900: #14532d;
  --brand-800: #166534;
  --brand-700: #15803d;
  --brand-600: #16a34a;
  --brand-500: #22c55e;
  --brand-300: #86efac;
  --brand-100: #dcfce7;
  --brand-50:  #f0fdf4;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --line: #e5e7eb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

*:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Header ─── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--brand-800);
  text-decoration: none;
}
.logo span { color: var(--brand-500); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.15s;
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-800); }
.nav-links .btn-primary {
  background: var(--brand-800);
  color: white;
  font-weight: 600;
}
.nav-links .btn-primary:hover {
  background: var(--brand-900);
  color: white;
}

@media (max-width: 640px) {
  /* On mobile, keep "Como funciona" + "Cadastrar" visible. Hide secondary
     audience links — footer provides full navigation. The .nav-keep class
     marks links that should stay visible on small screens. */
  .nav-links a:not(.btn-primary):not(.nav-keep) { display: none; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
}

/* ─── Page hero ─── */
.page-hero {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
  color: white;
  padding: 70px 24px 80px;
  text-align: center;
}
.page-hero .container { max-width: 820px; margin: 0 auto; }
.page-hero .eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-300);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 400;
}
.page-hero p.lede {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.92);
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--brand-900);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s;
}
.hero-cta:hover { background: var(--brand-50); transform: translateY(-1px); }

/* ─── Content sections ─── */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}
.section.narrow { max-width: 720px; }
.section.wide { max-width: 1100px; }
.section.alt { background: #f8fafc; max-width: none; }
.section.alt .inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.2;
}
.section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}
.section p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16px; }
.section ul, .section ol { color: var(--ink-soft); padding-left: 20px; margin: 0 0 20px; }
.section li { margin-bottom: 8px; }
.section a { color: var(--brand-700); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--brand-700);
}
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { font-size: 14px; margin: 0; }

/* Steps list */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 0 16px 56px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* FAQ — open by default, semantic <details> */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  font-weight: 300;
  color: var(--brand-700);
  transition: transform 0.2s;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details > *:not(summary) { margin-top: 12px; }

/* Pricing card */
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.price-card.featured {
  border-color: var(--brand-600);
  box-shadow: 0 8px 32px rgba(22,163,74,0.12);
}
.price-card .price {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: var(--brand-800);
  margin: 12px 0;
}
.price-card .price small { font-size: 14px; color: var(--ink-muted); }

/* Big CTA section */
.cta-block {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: white;
  text-align: center;
  padding: 64px 24px;
}
.cta-block h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  margin: 0 0 12px;
  color: white;
}
.cta-block p { color: rgba(255,255,255,0.85); margin: 0 0 24px; font-size: 16px; }
.cta-block .hero-cta { background: white; color: var(--brand-900); }

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 24px 32px;
  font-size: 14px;
}
.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer .copyright {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
