/* PlanningBI, site institucional. Identidade: fundo escuro + dourado #F1C40F (mesma do OKR System e dos decks). */
:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --panel: #121b30;
  --panel-2: #172341;
  --border: rgba(255,255,255,.09);
  --text: #e6e9f2;
  --muted: #9aa4b8;
  --gold: #f1c40f;
  --gold-2: #d4ac0d;
  --ok: #2ecc71;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --max: 1160px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s ease, background .15s ease, border-color .15s ease; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: #f7d13a; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Faixa de ambiente (QAS) */
.env-banner { background: repeating-linear-gradient(135deg, #F1C40F 0 14px, #f7d95c 14px 28px); color: #111; text-align: center; font: 700 11px/22px var(--font); letter-spacing: .12em; text-transform: uppercase; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 44px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--gold); text-decoration: none; }
.site-nav a.active { color: var(--gold); }
.site-nav .nav-login { color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--text); margin: 0 auto; transition: transform .2s; }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 16px 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { display: block; padding: 12px; font-size: 1.05rem; }
  .site-nav .btn { margin-top: 8px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; background: linear-gradient(180deg, rgba(11,18,32,.55), rgba(11,18,32,.96)), url('/assets/img/hero-bg.webp') center/cover no-repeat; }
.hero .container { max-width: 860px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .lead { font-size: 1.15rem; color: #cfd6e4; max-width: 680px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .sub { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); background: radial-gradient(1200px 500px at 20% -10%, rgba(241,196,15,.12), transparent 60%), var(--bg-2); }
.page-hero .container { max-width: 820px; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(241,196,15,.45); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(241,196,15,.12); color: var(--gold); margin-bottom: 16px; font-size: 1.3rem; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 18px; height: 18px; border-radius: 50%; background: rgba(241,196,15,.18); border: 2px solid var(--gold); }
.check-list li::after { content: ''; position: absolute; left: 6px; top: calc(.5em + 4px); width: 6px; height: 9px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Split (texto + imagem) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Etapas numeradas */
.steps { counter-reset: etapa; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num { width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: #111; font-weight: 700; font-size: 1.4rem; display: grid; place-items: center; }
.step h3 { margin-bottom: 6px; }
.step .dur { color: var(--gold); font-size: .85rem; font-weight: 600; margin-top: 10px; display: block; }
.step ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.step .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; } .step .two { grid-template-columns: 1fr; } }

/* Depoimentos */
.quote { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 1.02rem; margin: 0; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.quote .who strong { display: block; }
.quote .who span { color: var(--muted); font-size: .9rem; }

/* CTA */
.cta { background: linear-gradient(135deg, rgba(241,196,15,.16), rgba(241,196,15,.04)); border: 1px solid rgba(241,196,15,.35); border-radius: 24px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: #cfd6e4; max-width: 620px; margin: 0 auto 22px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Formulários */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: .92rem; color: #cfd6e4; }
.form input, .form textarea, .form select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #0b1324; color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid rgba(241,196,15,.6); outline-offset: 1px; border-color: var(--gold); }
.form textarea { min-height: 130px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form .consent input { width: 18px; height: 18px; margin-top: 3px; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-msg.ok { display: block; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.5); color: #a9f0c6; }
.form-msg.err { display: block; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.5); color: #ffc2c2; }
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.post-card:hover { border-color: rgba(241,196,15,.45); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.post-card .meta { color: var(--muted); font-size: .82rem; }
.article { max-width: 760px; margin: 0 auto; }
.article header { margin-bottom: 28px; }
.article .meta { color: var(--muted); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.article .cover { border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow); }
.article .content { font-size: 1.05rem; }
.article .content h2 { font-size: 1.5rem; margin-top: 2em; }
.article .content h3 { font-size: 1.2rem; margin-top: 1.6em; }
.article .content img { border-radius: 12px; margin: 1.5em 0; }
.article .content ul, .article .content ol { padding-left: 24px; }
.article .content li { margin: .4em 0; }
.article .content blockquote { border-left: 3px solid var(--gold); margin: 1.5em 0; padding: 4px 0 4px 18px; color: #cfd6e4; font-style: italic; }
.article .content .cta-box { background: var(--panel); border: 1px solid rgba(241,196,15,.35); border-radius: var(--radius); padding: 22px 24px; margin: 2em 0; }
.article .content .cta-box p:last-child { margin: 0; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 32px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Política / texto longo */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; color: var(--gold); }
.prose ul { padding-left: 22px; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--gold); }

/* Logos / marcas */
.logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: center; opacity: .85; }
.logos img { height: 44px; width: auto; filter: grayscale(1) brightness(1.4); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #080d19; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h3 { font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.social a { margin-right: 16px; font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* Cookies e WhatsApp */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--panel-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: .92rem; color: #cfd6e4; flex: 1 1 380px; }
.cookie-actions { display: flex; gap: 10px; }
.whats-float { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.whats-float:hover { transform: scale(1.05); }
body.has-cookie-banner .whats-float { bottom: 120px; }
@media (max-width: 620px) { body.has-cookie-banner .whats-float { bottom: 190px; } }

/* 404 */
.notfound { text-align: center; padding: 100px 0; }
.notfound h1 { font-size: 5rem; color: var(--gold); margin: 0; }
