/* Paleta e tipografia da marca Asynta (ver documento de arquitetura/marca) — os mesmos tokens já
   aplicados no meu-backtest e no financas-familia, pra essa página de plataforma parecer a mesma
   família visual dos dois apps que ela apresenta. */

:root {
  --bg: #100E17;
  --panel: #1A1826;
  --panel-2: #221F30;
  --line: #2A2836;
  --text: #F1EFF8;
  --muted: #A49DBA;
  --dim: #726C87;
  --accent: #8F81FF;
  --accent-hover: #A79AFF;
  --warm: #DBA54A;
  --green: #4FBF88;
  --red: #E2726C;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(241,239,248,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.logo-sm { width: 22px; height: 22px; }

.wordmark-brand { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600; font-size: 19px; }
.wordmark-sep { opacity: 0.4; margin: 0 3px; }
.wordmark-tool { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; color: var(--muted); font-size: 15px; }

.topbar-nav { display: flex; gap: 8px; }
.topbar-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.topbar-link:hover { color: var(--text); border-color: var(--dim); }

.nav-toggle-input { display: none; }
.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-btn svg { width: 18px; height: 18px; display: block; }

@media (max-width: 640px) {
  .topbar { position: relative; }
  .nav-toggle-btn { display: inline-flex; }
  .topbar-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 28px;
    left: 28px;
    flex-direction: column;
    gap: 2px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    z-index: 20;
  }
  .nav-toggle-input:checked ~ .topbar-nav { display: flex; }
  .topbar-link { border: none; padding: 12px 14px; }
}

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  text-align: left;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  top: -260px; left: -140px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(143,129,255,0.22), transparent 68%);
}
.hero::after {
  top: -180px; right: -200px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(219,165,74,0.14), transparent 68%);
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero-copy { max-width: 560px; }

.hero-art { margin: 0; min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-art .limite { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 5; }
.hero-art .curva { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.hero-art .rotulo {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  fill: var(--dim);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art .curva {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: draw-curva 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
  }
}
@keyframes draw-curva { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
}

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

.acoes { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #100E17;
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }

.btn-vazado {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 20px;
}
.btn-vazado:hover { border-color: var(--dim); }

.ferramentas {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.ferramentas h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 24px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .grid-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card.card-warm { border-top-color: var(--warm); }

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-wordmark .wordmark-brand { font-size: 17px; }

.price {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.price-period { color: var(--muted); font-weight: 400; font-size: 12px; }

.card-desc { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }

.card-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.card-acoes .btn, .card-acoes .btn-vazado { padding: 10px 16px; font-size: 13px; }

.combo-note {
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid var(--warm);
  padding-left: 14px;
}
.combo-note strong { color: var(--text); font-weight: 600; }

.futuro-titulo {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 44px 0 8px;
}
.futuro-lede { color: var(--dim); font-size: 13px; max-width: 62ch; margin: 0 0 18px; }

.grid-futuro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .grid-futuro { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-futuro { grid-template-columns: 1fr; } }

.card-futuro {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
}
.card-futuro h4 { font-size: 14px; font-weight: 600; margin: 8px 0 6px; color: var(--muted); }
.card-futuro p { font-size: 12.5px; color: var(--dim); margin: 0; line-height: 1.5; }

.futuro-tag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warm);
  border: 1px solid var(--warm);
  border-radius: 20px;
  padding: 2px 8px;
}

/* ---------- seções de conteúdo (Sobre, Por dentro, Recursos, O que não é) ---------- */

section.sobre, section.deep, section.what, section.isnot, section.painel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
section.sobre::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,165,74,0.10), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
section.sobre > * { position: relative; z-index: 1; }

.pilar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pilar-icon svg { width: 20px; height: 20px; }
.pilar-icon.ico-accent { background: rgba(143,129,255,0.14); color: var(--accent); }
.pilar-icon.ico-warm { background: rgba(219,165,74,0.14); color: var(--warm); }

section.what { padding-bottom: 8px; }
section.isnot { padding-bottom: 8px; }
section.painel { padding-bottom: 56px; }

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 20px;
}

.sobre-lede, .deep-lede, .isnot p {
  color: var(--muted);
  max-width: 62ch;
  font-size: 15.5px;
  margin: 0 0 16px;
}
.sobre-lede:last-child, .isnot p:last-child { margin-bottom: 40px; }

.deep-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
}
.deep-row:last-child { padding-bottom: 40px; }
.deep-row.reverse .deep-text { order: 2; }
.deep-row.reverse .panel { order: 1; }

.deep-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.deep-text p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  max-width: 46ch;
}
.deep-text p:last-child { margin-bottom: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-title {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--muted);
}
.panel-tag {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
}

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 10px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.tbl th:not(:first-child) { text-align: right; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.tbl .pos { color: var(--green); }
.tbl .neg { color: var(--red); }
.tbl tr.hl td { background: rgba(143, 129, 255, 0.08); box-shadow: inset 2px 0 0 var(--accent); }

.tag { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); }
.tag-pago { color: var(--green); border-color: var(--green); }
.tag-pend { color: var(--warm); border-color: var(--warm); }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.metric { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; }
.metric dt { font-size: 10px; color: var(--muted); margin: 0 0 3px; line-height: 1.35; }
.metric dd { margin: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 14px; font-weight: 600; }
.metric .pos { color: var(--green); }
.metric .neg { color: var(--red); }

figcaption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.what h3.tool-heading, .isnot h3.tool-heading {
  font-size: 13px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 32px 0 14px;
}
.what h3.tool-heading:first-of-type { margin-top: 0; }

.features {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.features li { background: var(--bg); padding: 18px 16px; }
.features h4 { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.features p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- teaser do painel do usuário (o painel de verdade mora em /painel) ---------- */

.painel-lede { max-width: 62ch; color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }

/* ---------- pilares (proposta) ---------- */

.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 40px;
}
.pilar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.pilar h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.pilar p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- FAQ ---------- */

section.faq {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 8px;
  border-top: 1px solid var(--line);
}
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; color: var(--warm); }
.faq-item summary:hover::after { color: var(--warm); }
.faq-item p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 62ch;
}

/* ---------- rodapé ---------- */

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px;
  border-top: 1px solid var(--line);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}
.foot-brand p { color: var(--dim); font-size: 12.5px; margin: 10px 0 0; max-width: 34ch; }
.foot-col h4 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px;
}
.foot-col a { display: block; color: var(--dim); text-decoration: none; font-size: 13px; margin-bottom: 9px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 12px;
}

@media (max-width: 760px) {
  .pilares { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  .deep-row { grid-template-columns: 1fr; gap: 22px; }
  .deep-row.reverse .deep-text { order: 0; }
  .deep-row.reverse .panel { order: 0; }
  .deep-text p { max-width: none; }
  .features { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
