/* ====================================================================
   Causa — Editorial Justice v3
   A premium publication-meets-product identity.
   Palette: ink dark · electric lime · violet accent · paper cream.
==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16.5px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--paper); }

:root {
  /* SURFACES — Brand v1 (Causa navy + amarelo + creme). Mantém os MESMOS nomes de variável
     pra não quebrar páginas existentes; só troca os valores. */
  --bg-dark: #0F1F4D;             /* navy primário */
  --bg-deep: #0A1538;              /* navy mais profundo */
  --bg-card: #13265A;              /* surface card sobre navy */
  --bg-card-hover: #1A3170;
  --bg-bone: #F2EBD8;              /* creme/bone — para sections light */
  --bg-bone-2: #FAF6EE;
  --bg-paper: #13265A;             /* alias card sobre navy */
  --bg-ink: #0F1F4D;
  --bg-ink-2: #13265A;

  /* BRAND */
  --primary: #FFC700;              /* amarelo Causa = "primary" */
  --primary-2: #FFD740;
  --primary-3: #FFE173;
  --accent: #FFC700;               /* alias amarelo */
  --accent-2: #E8B400;             /* amarelo mais escuro pra hover */
  --ochre: #FFC700;                /* legacy: agora aponta pro amarelo */
  --ochre-deep: #E8B400;
  --ochre-soft: #FFE173;
  --paper: #FAF6EE;                /* creme/paper */
  --paper-dim: rgba(250, 246, 238, 0.7);
  --ember: #FFC700;

  /* TEXT — on navy */
  --text-light: #e8e3d8;           /* creme */
  --text-muted: #8B92B2;           /* navy-acinzentado */
  --text-dim: #5C6790;
  --text-faint: #424F76;

  /* TEXT — on bone (quando flip pra light) */
  --text-ink: #0F1F4D;             /* navy nas seções claras */
  --text-ink-muted: #5C5247;

  /* LINES */
  --border: #1F2D5C;
  --border-soft: #16244D;
  --rule: rgba(232, 227, 216, 0.10);

  /* STATUS */
  --error: #F87171;
  --success: #34D399;
  --live: #4ADE80;

  /* Type */
  --display: 'Fraunces', 'Cormorant Garamond', 'Georgia', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ============ Container ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ============ Glow background — disabled (was the AI tell) ============ */
.glow-1, .glow-2 { display: none; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 17, 30, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--body);
  font-size: 18px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--primary);
}
/* O .brand-dot historicamente é uma bolinha. Brand v1 vira CHEVRON amarelo "›".
   HTML continua <div class="brand-dot"></div> — só o CSS muda. */
.brand-dot {
  width: 10px; height: 10px;
  border: 0; background: transparent !important;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 0;
}
/* .brand-dot rule antiga removida — substituída pelo chevron acima */

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  font-size: 13.5px; color: var(--text-muted); font-weight: 500;
  letter-spacing: -0.1px;
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--text-light); }
.nav-menu a.active { color: var(--text-light); }

.nav-cta {
  background: var(--ochre); color: var(--bg-dark) !important;
  padding: 8px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  transition: background 0.18s, color 0.18s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg-dark) !important; }

.menu-toggle {
  display: none; padding: 8px; color: var(--text-light);
  font-size: 22px;
}

/* ============ Tipografia ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  color: var(--text-dim); text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 9px; height: 9px;
  background: var(--accent); flex-shrink: 0;
  display: inline-block;
}
.lead { font-size: 17.5px; color: var(--text-muted); line-height: 1.6; }

/* ============ Botões ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 8px;
  font-family: var(--body);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ochre);          /* terracotta primary — warm Brazilian */
  color: var(--bg-dark);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 0 rgba(0,0,0,0.18) inset,
    0 1px 2px 0 rgba(14,9,22,0.4),
    0 12px 28px -10px rgba(232,144,72,0.5);
}
.btn-primary:hover {
  background: var(--accent);          /* hover delivers the lime spark */
  color: var(--bg-dark) !important;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 0 rgba(0,0,0,0.1) inset,
    0 16px 36px -10px rgba(198,244,50,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(242,235,216,0.22);
}
.btn-ghost:hover {
  background: rgba(242,235,216,0.06);
  border-color: rgba(242,235,216,0.5);
  color: var(--text-light) !important;
}
.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.4) inset, 0 12px 28px -10px rgba(198,244,50,0.55);
}
.btn-accent:hover {
  background: var(--accent-2);
  color: var(--bg-dark) !important;
}
.btn-large {
  padding: 16px 24px; font-size: 15px;
  border-radius: 9px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Hero dual CTA ============ */
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ctas-dual { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ctas-dual .btn { flex: 1 1 220px; justify-content: center; }
@media (max-width: 540px) {
  .hero-ctas-dual .btn { flex-basis: 100%; }
}

/* ============ Cards genéricos ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--text-dim); }

/* ============ Footer — bone inversion ============ */
.site-footer {
  background: var(--paper);             /* warm bone — inverts the page bg, editorial finale */
  color: var(--text-ink-muted);
  border-top: 1px solid var(--ochre-soft);
  padding: 72px 0 32px;
  margin-top: 96px;
  position: relative;
  isolation: isolate;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.08   0 0 0 0 0.06   0 0 0 0 0.12   0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.3; pointer-events: none; mix-blend-mode: multiply; z-index: -1;
}
.site-footer .brand { color: var(--text-ink); }
.site-footer .footer-col h4 {
  color: var(--ochre-deep);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer .footer-col a { color: var(--text-ink-muted); }
.site-footer .footer-col a:hover { color: var(--ochre-deep); }
.site-footer .footer-brand-text { color: var(--text-ink-muted); }
.site-footer .footer-bottom {
  border-top-color: rgba(22,17,30,0.10);
  color: var(--text-ink-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 14px; font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 13.5px; color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-light); }
.footer-brand-text {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.55;
  max-width: 320px; margin-top: 10px;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-faint);
  flex-wrap: wrap; gap: 14px;
}

/* ============ Form (waitlist) ============ */
.waitlist-section {
  padding: 80px 0;
  position: relative;
}
.waitlist-card {
  max-width: 520px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  position: relative;
}
.waitlist-card-tag {
  display: inline-block;
  font-family: var(--mono);
  background: transparent;
  color: var(--accent);
  padding: 0; border: 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.waitlist-card h2 {
  font-size: 26px; font-weight: 700;
  line-height: 1.18; margin-bottom: 10px;
  letter-spacing: -0.018em;
}
.waitlist-card .helper {
  font-size: 14.5px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.55;
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 7px;
}
.form-input {
  width: 100%; background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; font-size: 14.5px;
  color: var(--text-light); font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--ochre);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(232,144,72,0.18);
}
.form-input::placeholder { color: var(--text-faint); }

/* ============ Select ============ */
.form-select {
  width: 100%; background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; font-size: 14.5px;
  color: var(--text-light); font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A89E91'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.form-select:focus {
  outline: none;
  border-color: var(--ochre);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(232,144,72,0.18);
}
.form-select option { background: var(--bg-card); color: var(--text-light); }

/* ============ Conditional field ============ */
.field-conditional {
  display: none;
  animation: slideDown 0.16s ease-out;
}
.field-conditional.active { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.submit-btn {
  width: 100%; background: var(--ochre);
  color: var(--bg-dark); padding: 14px 18px;
  border-radius: 6px; font-size: 14.5px;
  font-weight: 700; letter-spacing: -0.005em;
  margin-top: 10px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 0 rgba(0,0,0,0.18) inset,
    0 12px 28px -10px rgba(232,144,72,0.5);
}
.submit-btn:hover {
  background: var(--accent);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 16px 36px -10px rgba(198,244,50,0.55);
}
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-disclaimer {
  font-size: 12px; color: var(--text-dim);
  text-align: left; margin-top: 14px; line-height: 1.55;
}
.form-msg { padding: 11px 14px; border-radius: 6px; font-size: 13px; margin-top: 14px; display: none; }
.form-msg.error { background: rgba(248,113,113,0.10); border: 1px solid rgba(248,113,113,0.4); color: #FCA5A5; display: block; }

.success-state { display: none; padding: 12px 0; }
.success-state.active { display: block; }
.success-icon {
  width: 48px; height: 48px; background: var(--ochre);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 0 20px;
  box-shadow: 0 8px 24px -6px rgba(232,144,72,0.4);
}
.success-icon svg { width: 26px; height: 26px; fill: var(--bg-dark); }
.success-state h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.018em; }
.success-state p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.position-tag {
  display: inline-block;
  font-family: var(--mono);
  background: rgba(232,144,72,0.10);
  border: 1px solid rgba(232,144,72,0.4);
  color: var(--ochre);
  padding: 6px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 14px;
}

/* ============ Success state variants (advogado) ============ */
[data-success-founder], [data-success-fila] { display: none; }
[data-success-founder].active, [data-success-fila].active { display: block; }

/* ============ Editorial helpers ============ */
.rule {
  border: 0; height: 1px; background: var(--border);
  margin: 0;
}

/* ============ Responsivo ============ */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .menu-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open a { padding: 11px 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .waitlist-card { padding: 24px 20px; }
  .waitlist-card h2 { font-size: 22px; }
  .btn-large { padding: 12px 18px; font-size: 14px; }
}
