/* ============================================================
   InDeGrow Portal — Folha de Estilos Partilhada
   Serve: login.html, dashboard.html, index.html, lgpd.html,
          tcle.html, tcle-aceite.html, produto-l1a/l1b/l2a/l2b/l3.html
   ============================================================ */

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

/* ── Variáveis — dark (padrão) ── */
:root {
  --bg:           #0a0f0d;
  --surface:      #111a14;
  --surface2:     #162019;
  --border:       #1e3024;
  --border2:      #264030;
  --accent:       #4ade80;
  --accent2:      #86efac;
  --text:         #e8f5e9;
  --muted:        #4a6351;
  --muted2:       #6b8f76;
  --danger:       #f87171;
  --in:           #fb923c;
  --in-bg:        rgba(251,146,60,0.08);
  --in-border:    rgba(251,146,60,0.2);
  --de:           #60a5fa;
  --de-bg:        rgba(96,165,250,0.08);
  --de-border:    rgba(96,165,250,0.2);
  --grow:         #4ade80;
  --grow-bg:      rgba(74,222,128,0.08);
  --grow-border:  rgba(74,222,128,0.2);
  --purple:       #c084fc;
  --purple-bg:    rgba(192,132,252,0.08);
  --purple-border:rgba(192,132,252,0.2);
  --shadow-card:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.4);
  --nav-bg:       rgba(10,15,13,0.9);
}

/* ── Variáveis — light ── */
body.light {
  --bg:           #f4f7f5;
  --surface:      #ffffff;
  --surface2:     #f0f5f2;
  --border:       #d0ddd4;
  --border2:      #b8cfc0;
  --accent:       #16a34a;
  --accent2:      #15803d;
  --text:         #1a2e24;
  --muted:        #5a7a64;
  --muted2:       #4a6a55;
  --danger:       #dc2626;
  --in:           #ea6a0a;
  --in-bg:        rgba(234,106,10,0.07);
  --in-border:    rgba(234,106,10,0.2);
  --de:           #2563eb;
  --de-bg:        rgba(37,99,235,0.07);
  --de-border:    rgba(37,99,235,0.2);
  --grow:         #16a34a;
  --grow-bg:      rgba(22,163,74,0.07);
  --grow-border:  rgba(22,163,74,0.2);
  --purple:       #7c3aed;
  --purple-bg:    rgba(124,58,237,0.07);
  --purple-border:rgba(124,58,237,0.2);
  --shadow-card:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.12);
  --nav-bg:       rgba(244,247,245,0.92);
}

/* ── Base ── */
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Grid de fundo ── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(74,222,128,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 1;
}

/* ── Navegação ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-symbol {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--grow), var(--grow));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-logo-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--grow); }

/* ── Wrapper / layout ── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Botão de tema ── */
#themeBtn {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  width: 44px; height: 44px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background 0.25s, transform 0.2s;
}

#themeBtn:hover { transform: scale(1.08); }

/* Variante circular (login) */
.theme-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px; height: 42px;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); }

/* ── Tipografia comum ── */
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* ── Elementos partilhados entre páginas de produto e portal ── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-header { padding: 3.5rem 0 2.5rem; }
.page-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.page-tagline {
  font-size: 1rem;
  color: var(--muted2);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Form partilhado (páginas produto) ── */
.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; cursor: pointer; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.7; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover { opacity: 0.88; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #0a1a0f;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-whatsapp:hover { opacity: 0.88; }

/* ── FAQ partilhado ── */
.faq { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.faq-q { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.faq-a { font-size: 0.82rem; color: var(--muted2); line-height: 1.55; }

/* ── Deliverables ── */
.deliverables { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; }

.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.5;
}

.deliverables li::before {
  content: '→';
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── States ── */
.success-state { display: none; text-align: center; padding: 1.5rem 0; }
.success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.success-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-sub { font-size: 0.88rem; color: var(--muted2); line-height: 1.6; margin-bottom: 1.5rem; }

/* ── Highlight / info boxes (lgpd, tcle) ── */
.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* ── Animações ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeUp 0.5s ease both; }

/* ── Preço ── */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.price-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.price-big sup { font-size: 0.9rem; font-weight: 400; color: var(--muted2); }

.price-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── Form section container ── */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.form-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }

.form-sub {
  font-size: 0.82rem;
  color: var(--muted2);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── TCLE checkbox ── */
.tcle-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted2);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.tcle-line input[type=checkbox] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Phase badge (partilhado) ── */
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Responsivo ── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .wrapper { padding: 0 1rem; }
  h1 { font-size: 1.7rem; }
  .field-row { grid-template-columns: 1fr; }
}

/* ── Print — ocultar UI ── */
@media print {
  #themeBtn, .theme-toggle { display: none !important; }
}
