/* ============================================
   Truesail — Estilos públicos (dark mode)
   Brand Guidelines v1.0
   ============================================ */

/* CSS Variables */
:root {
  --bg: #00182A;
  --surface: #0E1318;
  --surface2: #121820;
  --border: #1C2228;
  --border2: #2A3038;
  --text: #EDEDEF;
  --muted: #9A9A9E;
  --dim: #666669;
  --teal: #20C997;
  --teal-hover: #00E8BA;
  --sienna: #E76F51;
  --signal: #FF6B35;
}

/* Os quatro tokens de texto e borda acima são HERDADOS pela folha da seção de
   matérias, que usa 24 declarações deles e não declara nenhum por conta
   própria. As duas páginas daquela seção NÃO carregam a folha do sistema, então
   este bloco é a única fonte delas — mexer aqui alcança a seção inteira,
   incluindo o marcador de lista do corpo da matéria.

   Dois tokens saíram nesta limpeza por não terem consumidor algum: um cinza de
   tela clara e um azul, ambos sem uma única leitura em folha ou template. */

/* Reset base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

/* O bloco NAVBAR saiu daqui na F3 (Frente B): o cabeçalho público passou ao
   cromo canônico de `site.css`, escopado por atributo. As quatro classes que
   viviam aqui — a raiz da navbar e as três do menu — não têm mais regra
   alguma. A raiz continua sendo emitida pelo parcial, só como gancho da regra
   de esconder das 4 páginas de auth; some na F5.

   Duas classes de container NÃO saíram, porque 9 templates as usam.

   Os nomes não são citados de propósito: comentário que transcreve o nome
   envenena o grep que verifica se a classe ainda existe no repo. */

/* ---- BUTTONS ---- */
.btn-primary {
  background: #E76F51; color: #FFFFFF;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: all .2s;
  display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: #C95A3F; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(231,111,81,.25); }
.btn-secondary {
  border: 1px solid var(--border2); color: var(--text);
  padding: 14px 32px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: all .2s;
  display: inline-block; background: transparent; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--muted); background: var(--surface); }

/* ---- SECTIONS ---- */
.section {
  max-width: 1200px; margin: 0 auto; padding: 6rem 2rem;
}
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700; letter-spacing: -.03em;
  margin-bottom: 1rem; max-width: 600px;
}
.section .desc {
  font-size: 1rem; color: var(--muted);
  max-width: 540px; line-height: 1.7; margin-bottom: 3rem;
}
.section h2 em { font-style: normal; color: var(--teal); }

/* ---- PRICING ---- */
.pricing { border-top: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.plan {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 2.5rem; background: var(--surface);
  display: flex; flex-direction: column; transition: all .3s;
}
.plan.featured { border-color: var(--teal); position: relative; }
.plan.featured::before {
  content: 'Popular'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%); background: var(--teal); color: #0A0A0B;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 100px;
}
.plan .plan-name {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .5rem;
  font-family: 'Space Mono', monospace;
}
.plan .plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .25rem; }
.plan .plan-price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan .plan-desc { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.5; }
.plan .plan-features {
  list-style: none; display: flex; flex-direction: column;
  gap: .6rem; margin-bottom: 2rem; flex: 1; padding: 0;
}
.plan .plan-features li {
  font-size: .82rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: .5rem; line-height: 1.4;
}
.plan .plan-features li::before { content: '\2713'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.plan .plan-cta { text-align: center; margin-top: auto; }
.plan .plan-cta a {
  display: block; padding: 12px; border-radius: 10px;
  font-weight: 600; font-size: .88rem;
  text-decoration: none; transition: all .2s;
}
.plan .plan-cta a.primary { background: var(--teal); color: #0A0A0B; }
.plan .plan-cta a.primary:hover { background: var(--teal-hover); }
.plan .plan-cta a.outline { border: 1px solid var(--border2); color: var(--text); }
.plan .plan-cta a.outline:hover { border-color: var(--muted); }
@media(max-width:900px) { .pricing-grid { grid-template-columns: 1fr; } }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.extra {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem; background: var(--surface);
}
.extra .el {
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .4rem;
  font-family: 'Space Mono', monospace;
}
.extra h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.extra p { font-size: .82rem; color: var(--muted); line-height: 1.5; }
@media(max-width:600px) { .extras { grid-template-columns: 1fr; } }

/* ---- TOGGLE MENSAL/ANUAL ---- */
.billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 3rem;
}
.billing-toggle span { font-size: .88rem; color: var(--muted); }
.billing-toggle span.active { color: var(--text); font-weight: 600; }
.toggle-switch {
  width: 48px; height: 26px; border-radius: 13px;
  background: var(--border2); cursor: pointer;
  position: relative; transition: background .2s;
  border: none;
}
.toggle-switch.active { background: var(--teal); }
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; transition: transform .2s;
}
.toggle-switch.active::after { transform: translateX(22px); }
.save-badge {
  font-size: .7rem; background: rgba(0,212,170,.15);
  color: var(--teal); padding: 2px 8px; border-radius: 100px;
  font-weight: 600;
}

/* ---- FAQ ---- */
.faq-list { max-width: 700px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; width: 100%; background: none; border: none;
  color: var(--text); font-size: .95rem; font-weight: 600;
  text-align: left; padding: 0; font-family: 'DM Sans', sans-serif;
}
.faq-q .arrow {
  color: var(--teal); font-size: 1.2rem; transition: transform .2s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  font-size: .88rem; color: var(--muted); line-height: 1.7;
  padding-top: 1rem;
}

/* ---- CTA SECTION ---- */
.cta-section { border-top: 1px solid var(--border); text-align: center; }
.cta-section h2 { max-width: 500px; margin: 0 auto 1rem; }
.cta-section .desc { margin: 0 auto 2rem; }

/* O bloco FOOTER saiu daqui na F3 (Frente B), pelo mesmo motivo do NAVBAR.
   A raiz do rodapé e as três classes de coluna que viviam aqui não têm mais
   regra alguma; a raiz segue emitida só como gancho das 4 de auth. Nomes
   omitidos pelo mesmo motivo do bloco acima. */

/* ---- ABOUT PAGE ---- */
/* 3,25rem no topo é só o respiro abaixo da barra: o cabeçalho canônico ocupa
   88px no fluxo e a compensação saiu daqui (Frente B, F3). Era 10rem quando
   cada página compensava a barra fixa por conta própria. */
.about-hero {
  max-width: 800px; margin: 0 auto;
  padding: 3.25rem 2rem 4rem; text-align: center;
}
.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.1; margin-bottom: 1.5rem;
}
.about-hero h1 em { font-style: normal; color: var(--teal); }
.about-hero p { font-size: 1.1rem; color: var(--muted); line-height: 1.7; max-width: 600px; margin: 0 auto; }

.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.principle {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem; background: var(--surface);
}
.principle h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--teal); }
.principle p { font-size: .82rem; color: var(--muted); line-height: 1.6; }
@media(max-width:600px) { .principles-grid { grid-template-columns: 1fr; } }

/* ---- SIGNUP PAGE ---- */
.signup-container {
  max-width: 460px; margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.signup-container h1 {
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: .5rem; text-align: center;
}
.signup-container .sub {
  font-size: .95rem; color: var(--muted);
  text-align: center; margin-bottom: 2rem;
}
.signup-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 500;
  color: var(--muted); margin-bottom: .4rem;
}
.form-group input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: .88rem; font-family: 'DM Sans', sans-serif;
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--teal); }
.form-group input::placeholder { color: var(--dim); }
.form-error {
  font-size: .78rem; color: var(--signal); margin-top: .3rem;
  display: none;
}
.signup-error {
  background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.3);
  border-radius: 10px; padding: .75rem 1rem;
  font-size: .82rem; color: var(--signal);
  display: none;
}
.signup-note {
  font-size: .75rem; color: var(--dim); text-align: center;
  margin-top: 1rem; line-height: 1.5;
}
.signup-note a { color: var(--teal); text-decoration: none; }
.signup-note a:hover { text-decoration: underline; }

/* ---- LOGIN PAGE (dark mode) ---- */
.login-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  text-align: left;
}
.login-form label {
  display: block; font-size: .82rem; font-weight: 500;
  color: var(--muted); margin-bottom: .4rem;
}
.login-form input {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-size: .88rem; font-family: 'DM Sans', sans-serif;
}
.login-form input:focus { outline: none; border-color: #E76F51; box-shadow: 0 0 0 2px rgba(231,111,81,.15); }
.login-form input::placeholder { color: var(--dim); }
.login-error {
  background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.3);
  border-radius: 10px; padding: .75rem 1rem;
  font-size: .82rem; color: var(--signal);
  display: none;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
