/* =====================================================================
   Quadro — landing de pré-lançamento
   ---------------------------------------------------------------------
   PALETAS: definidas em [data-theme] no <html>. Trocar a paleta final =
   pôr data-theme="institucional|humano|fresco" no <html> e remover o
   seletor (#theme-picker) + o theme-switcher.js. Ver site/README.md.
   ===================================================================== */

/* ---- Paleta 1: Institucional (default) ---- */
[data-theme="institucional"] {
  --brand: #0f3d4c;
  --brand-strong: #0a2c37;
  --accent: #2c7a7b;
  --accent-soft: #e6f3f3;
  --ink: #1a202c;
  --muted: #5b6675;
  --bg: #f7fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
}

/* ---- Paleta 3: Humano ---- */
[data-theme="humano"] {
  --brand: #c05621;
  --brand-strong: #9c4221;
  --accent: #1e3a5f;
  --accent-soft: #fdebd9;
  --ink: #1a202c;
  --muted: #6b5d52;
  --bg: #fffbf5;
  --surface: #ffffff;
  --border: #efe3d6;
}

/* ---- Paleta 2: Fresco ---- */
[data-theme="fresco"] {
  --brand: #0d9488;
  --brand-strong: #0b7c72;
  --accent: #34d399;
  --accent-soft: #e3fbf3;
  --ink: #111827;
  --muted: #5d6b7a;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e5e9ee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn-primary:hover {
  background: var(--brand-strong);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  text-decoration: none;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  color: var(--brand);
  font-size: 1.3rem;
}
.nav-links {
  display: none;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(60% 60% at 80% 0%, var(--accent-soft) 0%, transparent 70%), var(--bg);
}
.hero-inner {
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--brand);
}
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  margin: 1.25rem 0 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Secções ---- */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  max-width: 720px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0.75rem 0 2.5rem;
  max-width: 640px;
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: 1fr;
}

/* ---- Cards / features ---- */
.card,
.feature,
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
}
.section-alt .card,
.section-alt .feature,
.section-alt .step {
  background: var(--bg);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.card h3,
.feature h3,
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.card p,
.feature p,
.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---- Checks (porquê PT) ---- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
}
.checks li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--accent-soft);
  color: var(--brand);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---- Steps ---- */
.step-n {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ---- CTA band / waitlist ---- */
.cta-band {
  background: var(--brand);
  color: #fff;
}
.cta-band .section,
.cta-inner {
  color: #fff;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  max-width: 640px;
}
.cta-inner > p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0.75rem 0 2rem;
  font-size: 1.05rem;
}
.waitlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--surface);
  color: var(--ink);
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 720px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.wl-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.wl-feedback.ok {
  color: #15803d;
}
.wl-feedback.error {
  color: #b91c1c;
}

/* ---- FAQ ---- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  padding: 0.25rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 2.5rem 0;
}
.footer .brand {
  color: #fff;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}
.footer-tag {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.footer-copy {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}
.footer a {
  color: #cbd5e1;
}

/* ---- Seletor de tema temporário ---- */
#theme-picker {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-size: 0.75rem;
}
#theme-picker .tp-label {
  color: var(--muted);
  padding: 0 4px;
}
#theme-picker button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 9px;
}
#theme-picker button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---- Responsivo ---- */
@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .waitlist {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
