/* Prumio — site institucional + blog
   Tokens de marca herdados do app (frontend/index.html) para manter
   consistência visual entre o site público e o sistema logado. */
:root {
  --brand-deep: #003F3C;      /* Verde Prumo */
  --brand-primary: #006B68;   /* Teal Operação */
  --brand-secondary: #6AD4C9; /* Menta Digital */
  --brand-highlight: #A7D129; /* Lima Ação — só destaque/CTA, nunca fundo dominante */
  --brand-highlight-soft: #EAF4C6;
  --brand-ink: #18201F;       /* Grafite */

  --surface-0: #F4F7F6; --surface-1: #FDFEFC;
  --text-primary: #18201F; --text-secondary: #55635F; --text-muted: #8A9793;
  --border: #DCE5DF; --border-strong: #C3D0C8;
  --bg-accent: #EAF4C6; --text-accent: #003F3C;
  --radius: 12px; --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(11,59,60,0.08), 0 8px 24px rgba(11,59,60,0.06);
}
[data-theme="dark"] {
  --surface-0: #0A1614; --surface-1: #12211F;
  --text-primary: #EDF2EF; --text-secondary: #A9B8B2; --text-muted: #74847E;
  --border: #1E2E2B; --border-strong: #2C3E3A;
  --bg-accent: #17322B; --text-accent: #8FE0D6;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.24);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-0: #0A1614; --surface-1: #12211F;
    --text-primary: #EDF2EF; --text-secondary: #A9B8B2; --text-muted: #74847E;
    --border: #1E2E2B; --border-strong: #2C3E3A;
    --bg-accent: #17322B; --text-accent: #8FE0D6;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.24);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-primary); outline-offset: 2px;
}
body {
  margin: 0; background: var(--surface-0); color: var(--text-primary);
  font-family: "Aptos", "Aptos Display", -apple-system, "Segoe UI", Inter, sans-serif;
  font-size: 16px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 12px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-primary); margin-bottom: 12px;
}
[data-theme="dark"] .eyebrow, @media (prefers-color-scheme: dark) { }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: var(--radius); padding: 12px 22px; text-decoration: none;
  border: 1.5px solid var(--border-strong); background: var(--surface-1); color: var(--text-primary);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand-highlight); border-color: var(--brand-highlight); color: var(--brand-deep); }
.btn.primary:hover { background: #97BC24; }
.btn.ghost-on-dark { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn.ghost-on-dark:hover { background: rgba(255,255,255,0.08); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--surface-0);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand-mark { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark span { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-primary); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a.nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.site-nav a.nav-link:hover { color: var(--text-primary); }
.site-nav a.mobile-only-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface-1); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; padding: 0; flex-shrink: 0;
}
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { background: var(--brand-deep); color: #fff; overflow: hidden; position: relative; }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { font-size: 40px; font-weight: 700; max-width: 560px; }
.hero p.lede { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 460px; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-benefits li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.85); }
.hero-benefits .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-highlight); flex-shrink: 0; }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  background: #D9F0E8; border-radius: 28px; padding: 36px 44px;
}
.hero-visual img { position: relative; width: 320px; max-width: 100%; }

/* ---- Sections ---- */
.section { padding: 76px 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--text-secondary); font-size: 15px; }

/* Prova visual — capturas reais do produto (dados fictícios) */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proof-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.proof-card .frame {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(11,59,60,0.10);
}
.proof-card img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.proof-card p.caption { font-size: 13px; color: var(--text-secondary); padding: 14px 8px 6px; margin: 0; }
.proof-lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(3,15,14,0.82); display: none;
  align-items: center; justify-content: center; padding: 32px; cursor: zoom-out;
}
.proof-lightbox.open { display: flex; }
.proof-lightbox img { max-width: min(1100px, 92vw); max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

/* Formulário de contato (lead secundário — CRM interno) */
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.contact-grid .field.full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 14px; padding: 11px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--border-strong); background: var(--surface-1); color: var(--text-primary); box-sizing: border-box;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brand-primary); outline-offset: 1px;
}
.contact-form button[type="submit"] { display: block; margin: 0 auto; min-width: 220px; }
.contact-feedback { text-align: center; font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.contact-feedback.ok { color: var(--brand-primary); font-weight: 600; }
.contact-feedback.error { color: #B3261E; font-weight: 600; }

/* Dor real — cartões de problema/solução */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.pain-card .pain { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pain-card .fix { font-size: 14px; color: var(--text-secondary); }
.pain-card .fix::before { content: "→ "; color: var(--brand-primary); font-weight: 700; }

/* Produto — grid de módulos */
.section-tinted { background: var(--surface-1); }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.module-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--surface-0); }
.module-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-accent); background: var(--bg-accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.module-card h3 { font-size: 17px; margin-bottom: 6px; }
.module-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }
.module-card.highlight { border-color: var(--brand-primary); }

/* Como funciona — passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step .step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-deep); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px;
}
.step h3 { font-size: 16px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* CTA final */
.cta-band { background: var(--brand-deep); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 28px; max-width: 480px; margin: 0 auto 10px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 26px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand { max-width: 320px; }
.footer-brand p.desc { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.footer-nav a:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ---- Blog: listagem ---- */
.blog-hero { padding: 56px 0 8px; }
.blog-hero h1 { font-size: 32px; }
.blog-hero p { color: var(--text-secondary); max-width: 520px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.post-card {
  display: block; text-decoration: none; color: inherit; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: transform 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.post-card .pillar-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-accent); background: var(--bg-accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.post-card h2 { font-size: 18px; margin-bottom: 8px; }
.post-card .excerpt { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }
.post-card .meta { font-size: 12px; color: var(--text-muted); }
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ---- Blog: post individual ---- */
.post-page { max-width: 680px; margin: 0 auto; padding: 56px 24px 80px; }
.post-page .back-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; display: inline-block; margin-bottom: 24px; }
.post-page .back-link:hover { color: var(--text-primary); }
.post-page .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.post-page h1 { font-size: 30px; margin-bottom: 6px; }
.post-body { font-size: 16px; color: var(--text-primary); }
.post-body p { margin: 0 0 18px; }
.post-body h2 { font-size: 21px; margin-top: 32px; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 8px; }
.draft-banner {
  background: var(--bg-accent); color: var(--text-accent); border-radius: var(--radius);
  padding: 10px 16px; font-size: 13px; font-weight: 600; margin-bottom: 24px; display: inline-block;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 30px; }
  .hero-visual { order: -1; padding: 24px 28px; }
  .hero-visual img { width: 180px; }
  .pain-grid, .module-grid, .steps, .post-grid, .proof-grid, .contact-grid { grid-template-columns: 1fr; }

  .site-header .container { flex-wrap: wrap; }
  .header-actions .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    order: 3; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 10px 4px; }
  .site-nav a.mobile-only-cta { display: block; font-weight: 600; }
}
