/* =========================================================================
   Valida — tema principal
   ========================================================================= */

:root {
  --navy: #0c1b3d;
  --navy-800: #12244b;
  --navy-900: #071230;
  --blue: #193cb8;
  --blue-600: #1d4ed8;
  --blue-400: #3b82f6;
  --blue-50: #eff6ff;
  --emerald: #00bb7f;
  --emerald-600: #009588;
  --teal-50: #ecfdf5;
  --ink: #020618;
  --slate: #45556c;
  --slate-400: #62748e;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --amber: #fe6e00;
  --danger: #e7000b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(2, 6, 24, 0.05);
  --shadow: 0 10px 30px -12px rgba(12, 27, 61, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(12, 27, 61, 0.35);
  --container: 1180px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.icon { flex: none; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.container-read { max-width: 760px; }
.center { text-align: center; }

/* ------------------------------------------------------------- BOTÕES -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-xs { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #12309b 100%);
  color: #fff; box-shadow: 0 12px 24px -14px rgba(25, 60, 184, 0.9);
}
.btn-primary:hover { box-shadow: 0 18px 30px -14px rgba(25, 60, 184, 0.95); }

.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cbd5e1; background: #fff; }

.btn-white { background: #fff; color: var(--navy); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.6); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fef2f2; border-color: #fecaca; }

/* ------------------------------------------------------------ CABEÇALHO */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, var(--navy) 70%);
  box-shadow: 0 8px 18px -10px rgba(25, 60, 184, 0.9);
}
.brand-mark-lg { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; margin: 0 auto 16px; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { font-size: 11.5px; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--slate); transition: background 0.16s, color 0.16s;
}
.nav-link:hover { background: var(--blue-50); color: var(--blue); }
.nav-link.is-active { color: var(--blue); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- HERO -- */
.hero { position: relative; overflow: hidden; padding: 78px 0 88px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 380px at 12% -8%, rgba(25, 60, 184, 0.16), transparent 65%),
    radial-gradient(760px 420px at 88% 4%, rgba(0, 187, 127, 0.16), transparent 65%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 78%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(12, 27, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 27, 61, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.8); border: 1px solid #dbe6ff; color: var(--blue);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800; letter-spacing: -0.038em; margin-bottom: 20px;
}
.grad {
  background: linear-gradient(100deg, var(--blue) 0%, var(--emerald-600) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--slate); max-width: 620px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-bullets { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 34px; }
.hero-bullets li { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--slate); font-weight: 500; }
.hero-bullets .icon { color: var(--emerald); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.stat span { font-size: 13px; color: var(--slate-400); }

/* Visual do hero */
.hero-visual { position: relative; }
.browser {
  border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb); border-bottom: 1px solid var(--line-soft);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.browser-bar span:nth-child(1) { background: #ff6058; }
.browser-bar span:nth-child(2) { background: #ffbd2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar em { font-style: normal; font-size: 12px; color: var(--slate-400); margin-left: 10px; }
.browser-body { padding: 14px; background: #fff; }
.browser-body img { width: 100%; border-radius: 12px; border: 1px solid var(--line-soft); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 15px; box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.float-card .icon { color: var(--emerald); background: var(--teal-50); padding: 6px; border-radius: 9px; width: 32px; height: 32px; }
.float-card strong { display: block; font-size: 13.5px; }
.float-card span { font-size: 12px; color: var(--slate-400); }
.float-1 { left: -26px; bottom: 42px; }
.float-2 { right: -18px; top: 46px; animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* -------------------------------------------------------------- SEÇÕES -- */
.section { padding: 92px 0; position: relative; }
.section-first { padding-top: 40px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { color: var(--slate); font-size: 16.5px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; text-align: left; max-width: none; }
.section-head-row > div { max-width: 700px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow-dark { color: #6ee7c8; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Cards de solução */
.feature-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdcff; }
.feature-icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-50), #e6fbf3); color: var(--blue);
  margin-bottom: 18px; transition: transform 0.22s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.06) rotate(-4deg); }
.feature-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.feature-card p { color: var(--slate); font-size: 14.8px; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.card-link:hover { gap: 10px; }

/* Benefícios */
.grid-why .why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.grid-why .why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num {
  position: absolute; top: 14px; right: 18px; font-size: 42px; font-weight: 800;
  color: rgba(12, 27, 61, 0.06); letter-spacing: -0.05em;
}
.why-card h3 { font-size: 17px; margin-bottom: 7px; }
.why-card p { color: var(--slate); font-size: 14.5px; margin: 0; }

/* Seção escura / como funciona */
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.72); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
  padding: 26px 24px; transition: background 0.2s ease, transform 0.2s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, var(--emerald), var(--emerald-600));
  color: #04231a; font-weight: 800; font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; color: #fff; }
.step p { color: rgba(255, 255, 255, 0.7); font-size: 14.3px; margin: 0; }

/* Split (relatórios) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-tight { gap: 26px; align-items: stretch; margin-top: 44px; }
.split-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; }
.split-copy > p { color: var(--slate); }

.check-list { display: grid; gap: 13px; margin-top: 24px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--navy); font-weight: 500; }
.check-list .icon {
  color: var(--emerald); background: var(--teal-50); border-radius: 8px;
  padding: 4px; width: 26px; height: 26px; margin-top: 1px;
}

.media-frame {
  border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px;
}
.media-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.media-chips span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--slate);
  padding: 8px 14px; border-radius: 999px;
}
.media-chips .icon { color: var(--blue); }

/* Uso responsável (teal) */
.section-teal { background: linear-gradient(180deg, #f0fdf9 0%, #e6fbf4 100%); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag {
  background: #fff; border: 1px solid #b9f0dd; color: #046c56;
  font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.panel h3 { font-size: 18px; margin-bottom: 16px; }

.not-list { display: grid; gap: 12px; }
.not-item {
  display: flex; align-items: center; gap: 11px; font-size: 14.6px; color: var(--navy);
  background: #fef7f7; border: 1px solid #ffe2e2; border-radius: 12px; padding: 12px 15px;
  position: relative;
}
.not-x {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #ffe2e2; color: #c10007; flex: none;
}
.audience { display: flex; flex-wrap: wrap; gap: 9px; }
.audience-chip {
  font-size: 13.6px; font-weight: 500; color: var(--navy);
  background: var(--blue-50); border: 1px solid #d5e3ff;
  padding: 8px 14px; border-radius: 999px;
}

/* Blog / cards de artigo */
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdcff; }
.post-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #eef4ff, #e9fdf5); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.card-cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--blue); opacity: 0.5; }
.post-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(12, 27, 61, 0.86);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--slate-400); margin-bottom: 10px; }
.post-body h3 { font-size: 18.5px; margin-bottom: 9px; }
.post-body p { color: var(--slate); font-size: 14.5px; flex: 1; }
.post-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.post-card:hover .post-link { gap: 11px; }
.empty { color: var(--slate); grid-column: 1 / -1; text-align: center; padding: 30px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: #cfdcff; box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); flex: none; transition: transform 0.2s ease;
}
.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-answer { padding: 0 22px 20px; color: var(--slate); font-size: 15.2px; }
.faq-answer p { margin: 0; }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 65%, var(--navy-900) 100%);
  color: #fff; padding: 72px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px;
  background: radial-gradient(circle, rgba(0, 187, 127, 0.4), transparent 65%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.cta-inner h2 { font-size: clamp(1.6rem, 2.9vw, 2.4rem); color: #fff; max-width: 640px; font-weight: 800; letter-spacing: -0.035em; }
.cta-inner p { color: rgba(255, 255, 255, 0.75); max-width: 620px; margin: 0; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* --------------------------------------------------------------- RODAPÉ -- */
.site-footer { background: var(--navy-900); color: #cbd5e1; padding: 68px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 42px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #7d8db3; }
.footer-brand p { font-size: 14.4px; color: #93a3c4; margin: 18px 0; max-width: 340px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #6ee7c8; background: rgba(0, 187, 127, 0.12); border: 1px solid rgba(0, 187, 127, 0.28);
  padding: 8px 14px; border-radius: 999px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 14.3px; color: #93a3c4; transition: color 0.16s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px; color: #7d8db3;
}

/* ------------------------------------------------------------ PÁGINAS -- */
.page-hero {
  padding: 74px 0 46px; text-align: center;
  background:
    radial-gradient(620px 320px at 20% -20%, rgba(25, 60, 184, 0.14), transparent 65%),
    radial-gradient(620px 320px at 82% -10%, rgba(0, 187, 127, 0.14), transparent 65%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.038em; }
.page-hero .lead { margin: 0 auto; }

.search-box {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 20px;
  max-width: 560px; margin: 30px auto 18px; box-shadow: var(--shadow);
  color: var(--slate-400);
}
.search-box input { flex: 1; border: 0; outline: none; background: transparent; padding: 12px 0; font-size: 15.5px; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.chip {
  background: #fff; border: 1px solid var(--line); color: var(--slate);
  padding: 8px 17px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--blue-400); color: var(--blue); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ------------------------------------------------------------ ARTIGO --- */
.article-head { padding: 56px 0 30px; text-align: center; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--blue); margin-bottom: 22px;
}
.back-link .icon { transform: rotate(180deg); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-bottom: 20px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--slate-400); }
.article-meta .post-cat { position: static; background: var(--blue-50); color: var(--blue); }
.article-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; letter-spacing: -0.038em; }
.article-head .lead { margin: 0 auto; }

.article-cover { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.article-cover img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); }

.article-body { font-size: 17.5px; color: #1e293b; padding: 46px 0 10px; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-size: 26px; margin: 40px 0 16px; font-weight: 700; letter-spacing: -0.03em; }
.article-body h3 { font-size: 20px; margin: 30px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 4px; display: grid; gap: 10px; }
.article-body li { position: relative; padding-left: 28px; }
.article-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--emerald);
}
.article-body ol { counter-reset: n; }
.article-body ol li { counter-increment: n; }
.article-body ol li::before {
  content: counter(n); position: absolute; left: 0; top: 2px; width: 21px; height: 21px;
  border-radius: 7px; background: var(--blue-50); color: var(--blue);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--navy); }
.article-body blockquote {
  margin: 28px 0; padding: 20px 26px; background: var(--bg-soft);
  border-left: 4px solid var(--emerald); border-radius: 0 14px 14px 0;
  color: var(--slate); font-style: italic;
}
.article-body img { border-radius: 16px; margin: 26px 0; box-shadow: var(--shadow); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.article-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff;
  border-radius: 20px; padding: 32px 36px; margin: 44px 0 20px;
}
.article-cta h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.article-cta p { color: rgba(255, 255, 255, 0.76); margin: 0; font-size: 15px; }

.related-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); }
.related-card h3 { font-size: 17.5px; margin: 10px 0 8px; }
.related-card p { color: var(--slate); font-size: 14.3px; margin: 0; }

/* --------------------------------------------------- ANIMAÇÕES DE SCROLL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
}

/* --------------------------------------------------- BARRA ADMIN + EDIÇÃO */
.admin-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 90;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  max-width: calc(100vw - 28px);
}
.admin-bar-inner {
  padding: 9px 14px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.admin-bar-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; opacity: 0.9; }
.admin-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }
.btn-bar {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.13); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background 0.16s;
}
.btn-bar:hover { background: rgba(255, 255, 255, 0.26); }
.btn-bar-accent { background: var(--emerald); border-color: transparent; color: #04231a; }
.btn-bar-accent:hover { background: #22d39a; }
body.editing .btn-bar#toggle-edit { background: #fff; color: var(--navy); border-color: #fff; }

/* Modo de edição inline */
body.editing [data-edit] {
  outline: 1.5px dashed rgba(25, 60, 184, 0.55); outline-offset: 4px;
  border-radius: 6px; cursor: text; transition: background 0.15s, outline-color 0.15s;
}
body.editing [data-edit]:hover { background: rgba(59, 130, 246, 0.09); outline-color: var(--blue); }
body.editing [data-edit]:focus { outline: 2px solid var(--blue); background: #fff; box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.16); }
body.editing [data-edit-img] {
  cursor: pointer; outline: 2px dashed rgba(0, 187, 127, 0.75); outline-offset: 5px;
  border-radius: 10px; position: relative;
}
body.editing [data-edit-img]:hover { box-shadow: 0 0 0 6px rgba(0, 187, 127, 0.16); }
body.editing [data-edit-img]::after {
  content: 'Trocar imagem'; position: absolute; left: 10px; bottom: 10px;
  width: max-content; max-width: calc(100% - 20px);
  background: rgba(4, 35, 26, 0.9); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; pointer-events: none;
}
.list-del {
  display: none; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 8px; border: 0; background: #fee2e2; color: #c10007;
  font-size: 16px; line-height: 1; cursor: pointer; z-index: 5;
}
.list-del:hover { background: #fecaca; }
body.editing .list-del { display: block; }
body.editing [data-list-item] { position: relative; }
.list-add-wrap { display: none; justify-content: center; margin-top: 26px; }
body.editing .list-add-wrap { display: flex; }
.list-add {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px;
  background: #fff; color: var(--blue); border: 1.5px dashed var(--blue-400);
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
}
.list-add:hover { background: var(--blue-50); }

.edit-toast {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.28s ease; z-index: 200;
  display: flex; align-items: center; gap: 9px;
}
.edit-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.edit-toast.ok { background: #046c56; }
.edit-toast.err { background: #b91c1c; }

/* ------------------------------------------------------------- RESPONSIVO */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 13px 16px; font-size: 15.5px; border-radius: 12px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .brand-text small { display: none; }

  .split { grid-template-columns: 1fr; gap: 38px; }
  .section { padding: 68px 0; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .float-1 { left: -8px; bottom: -18px; }
  .float-2 { right: -6px; top: -18px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 64px; }
  .hero-stats { gap: 22px; }
  .stat strong { font-size: 22px; }
  .container { padding: 0 18px; }
  .panel { padding: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .admin-bar-inner { padding: 9px 10px; gap: 8px; }
  .admin-bar-tag span, .admin-bar-tag { font-size: 0; gap: 0; }
  .admin-bar-tag .icon { width: 16px; height: 16px; }
  .btn-bar span { display: none; }
  .btn-bar { padding: 9px 12px; }
  .article-body { font-size: 16.5px; }
  .article-cta { padding: 26px 22px; }
}
