/* ============================================================
   cluster.css — Estilo compartilhado das páginas de apoio
   (Solução Sistemas Web — notaitape.com.br)
   Derivado do index v2 (header minimalista) para manter
   identidade visual consistente entre home e páginas cluster.
============================================================ */

/* ============ TOKENS ============ */
:root{
  --orange:#EB4A1C;
  --orange-600:#D1401A;
  --orange-50:#FFF1EC;
  --navy:#0E1A2C;
  --navy-700:#182944;
  --navy-500:#2B3E5C;
  --ink:#0E1A2C;
  --text:#25324A;
  --muted:#5E6C84;
  --line:#E6E2DB;
  --line-2:#D9D3C8;
  --bg:#FAF7F2;
  --bg-2:#F1EDE4;
  --white:#FFFFFF;
  --green:#1FA855;
  --green-600:#17934A;
  --shadow-sm: 0 1px 2px rgba(14,26,44,.06), 0 2px 6px rgba(14,26,44,.04);
  --shadow-md: 0 8px 24px rgba(14,26,44,.08), 0 2px 6px rgba(14,26,44,.04);
  --shadow-lg: 0 24px 60px rgba(14,26,44,.12), 0 4px 12px rgba(14,26,44,.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --maxw-reading: 780px;
  --pad: clamp(20px, 4vw, 40px);
  --space: clamp(64px, 8vw, 112px);
  --serif: 'Figtree', system-ui, -apple-system, Segoe UI, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============ RESET / BASE ============ */
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top: 100px;}
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-wrap: pretty;
}
img{max-width:100%; display:block; height:auto}
a{color:var(--orange); text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit; cursor:pointer; border:0; background:none}

h1,h2,h3,h4,h5{font-family:var(--serif); color:var(--ink); margin:0; line-height:1.15; letter-spacing:-0.01em; font-weight:800}
h1{font-size: clamp(30px, 4.6vw, 52px); letter-spacing:-0.02em; font-weight:900; line-height:1.08}
h2{font-size: clamp(24px, 3vw, 36px); letter-spacing:-0.015em}
h3{font-size: clamp(19px, 1.9vw, 22px)}
h4{font-size: 17px}
p{margin:0}

.container{max-width:var(--maxw); margin:0 auto; padding: 0 var(--pad)}
.container-reading{max-width: var(--maxw-reading); margin:0 auto; padding: 0 var(--pad)}

/* ============ TAGS / BADGES ============ */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono);
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted);
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%; background:var(--orange);
  box-shadow: 0 0 0 4px var(--orange-50);
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 14px; border-radius:100px;
  background:#fff; border:1px solid var(--line);
  font-size:13px; color:var(--text); font-weight:500;
  box-shadow: var(--shadow-sm);
}
.pill.pill-urgent{
  background:#FEF3EC; border-color:#F8C7AF; color:#8C2B0C;
}
.pill.pill-urgent .dot{width:8px;height:8px;border-radius:50%;background:var(--orange); box-shadow:0 0 0 3px rgba(235,74,28,.18)}
.pill .dot{width:8px;height:8px;border-radius:50%;background:var(--green); box-shadow:0 0 0 3px rgba(31,168,85,.15)}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:52px; padding: 0 22px;
  border-radius:12px; font-weight:600; font-size:15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap; text-decoration:none !important;
}
.btn svg{width:18px; height:18px}
.btn-primary{ background: var(--orange); color:#fff; box-shadow: 0 8px 20px -8px rgba(235,74,28,.6); }
.btn-primary:hover{ background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(235,74,28,.7); color:#fff }
.btn-secondary{ background: #fff; color:var(--ink); border:1px solid var(--line-2); }
.btn-secondary:hover{ border-color:var(--ink); transform: translateY(-1px); color:var(--ink) }
.btn-ghost{ background: transparent; color:var(--ink); }
.btn-ghost:hover{ background: rgba(14,26,44,.06); color:var(--ink) }
.btn-whats{ background: var(--green); color:#fff; }
.btn-whats:hover{ background: var(--green-600); transform: translateY(-1px); color:#fff }
.btn-dark{ background: var(--ink); color:#fff }
.btn-dark:hover{ background:#000; transform: translateY(-1px); color:#fff }
.btn-lg{ height:60px; padding:0 28px; font-size:16px; border-radius:14px }

/* ============ HEADER ============ */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(250,247,242,.85);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  will-change: transform;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(230,226,219,.8);
}
.site-header.is-hidden{ transform: translateY(-110%) }
.site-header.is-scrolled{ box-shadow: 0 8px 24px -12px rgba(14,26,44,.18) }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height: 80px; gap:24px;
}
.brand{display:flex; align-items:center; gap:12px; font-family:var(--serif); font-weight:800; color:var(--ink); text-decoration:none}
.brand-img{height:52px; width:auto; display:block}
@media (max-width:720px){ .brand-img{height:44px} }

/* ============ BREADCRUMB ============ */
.breadcrumb{
  padding: 24px 0 0;
  font-size: 13px; color: var(--muted);
  font-family: var(--mono); letter-spacing:.04em;
}
.breadcrumb ol{list-style:none; padding:0; margin:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.breadcrumb a{color:var(--muted); text-decoration:none}
.breadcrumb a:hover{color:var(--orange)}
.breadcrumb li + li::before{content:"/"; margin-right:8px; color:var(--line-2)}
.breadcrumb [aria-current="page"]{color:var(--ink); font-weight:500}

/* ============ ARTICLE HERO ============ */
.article-hero{
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}
.article-hero .eyebrow{margin-bottom: 16px}
.article-hero h1{margin: 0 0 18px; max-width: 880px}
.article-hero .lead{
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text); line-height: 1.55; max-width: 760px;
  margin: 0 0 28px;
}
.article-hero .meta{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  font-size:13px; color:var(--muted);
}
.article-hero .meta .sep{width:4px;height:4px;border-radius:50%;background:var(--line-2)}
.article-hero .hero-ctas{display:flex; gap:12px; margin-top:28px; flex-wrap:wrap}

/* ============ ARTICLE BODY ============ */
.article{
  padding: 56px 0 clamp(56px, 8vw, 96px);
}
.article-grid{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.toc{
  position: sticky; top: 100px;
  font-size: 13.5px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.toc h4{
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight:600;
  margin: 0 0 14px;
}
.toc ol{list-style:none; padding:0; margin:0; display:grid; gap:10px; counter-reset: toc}
.toc li{counter-increment: toc}
.toc a{
  display:flex; gap:10px; color: var(--text); text-decoration:none;
  line-height:1.45; transition: color .2s;
}
.toc a::before{
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  flex-shrink:0; padding-top:2px;
}
.toc a:hover, .toc a.active{color: var(--orange)}

.prose{
  font-size: 16.5px; line-height: 1.75;
  color: var(--text);
}
.prose > * + *{margin-top: 1.2em}
.prose h2{
  margin-top: 2em; margin-bottom: .6em;
  padding-top: .6em;
  scroll-margin-top: 100px;
}
.prose h2:first-child{margin-top: 0; padding-top: 0}
.prose h3{margin-top: 1.6em; margin-bottom: .4em; scroll-margin-top: 100px}
.prose p{margin: 1.1em 0}
.prose p strong, .prose li strong{color: var(--ink); font-weight:700}
.prose a{color: var(--orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px}
.prose a:hover{color: var(--orange-600)}
.prose ul, .prose ol{margin: 1.1em 0; padding-left: 22px}
.prose li{margin: .5em 0}
.prose ul li::marker{color: var(--orange)}
.prose blockquote{
  margin: 1.6em 0;
  padding: 18px 24px;
  background: var(--bg-2);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  font-style: normal;
  color: var(--ink);
}
.prose blockquote p{margin: 0}
.prose hr{
  border: 0; height: 1px; background: var(--line);
  margin: 2.4em 0;
}

/* Info cards inside prose */
.info-card{
  display: grid; gap: 14px;
  padding: 24px 26px;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 1.6em 0;
  box-shadow: var(--shadow-sm);
}
.info-card.info-warn{
  background: #FFF8F1; border-color: #F5D8B8;
}
.info-card.info-ok{
  background: #F0F9F3; border-color: #BFE5CC;
}
.info-card h4{
  font-size: 15px;
  display:flex; align-items:center; gap:10px;
  margin: 0;
}
.info-card h4 .ic{
  width:30px; height:30px; border-radius:8px;
  background: var(--orange); color:#fff;
  display:grid; place-items:center; flex-shrink:0;
}
.info-card.info-warn h4 .ic{background:#E88A3C}
.info-card.info-ok h4 .ic{background:var(--green)}
.info-card p{margin: 0; font-size: 15px; line-height:1.6}

/* Tables */
.prose .table-wrap{
  overflow-x:auto; margin: 1.6em 0;
  border:1px solid var(--line); border-radius: 14px;
  background:#fff;
}
.prose table{
  width:100%; border-collapse: collapse;
  font-size: 15px;
}
.prose thead th{
  text-align:left; padding: 14px 18px;
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.prose tbody td{
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tbody tr:last-child td{border-bottom: 0}
.prose tbody tr:nth-child(even) td{background: rgba(250,247,242,.6)}

/* Steps */
.steps{
  display: grid; gap: 16px;
  counter-reset: step;
  margin: 1.6em 0;
  padding: 0;
  list-style: none !important;
}
.steps li{
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px 22px 76px;
  position: relative;
  box-shadow: var(--shadow-sm);
  margin: 0 !important;
}
.steps li::before{
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 20px; top: 22px;
  font-family: var(--serif); font-weight: 900;
  font-size: 22px; color: var(--orange);
  background: var(--orange-50);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  letter-spacing: -.02em;
}
.steps li b, .steps li strong{
  display:block; font-family: var(--serif); color: var(--ink);
  font-size: 17px; margin-bottom: 4px;
}
.steps li p{margin: 0; color: var(--text); font-size: 15.5px}

/* Inline CTA box */
.cta-box{
  margin: 2em 0;
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  border-radius: 18px;
  color: #fff;
  display: grid; gap: 16px;
}
.cta-box h3{color: #fff; margin: 0; font-size: 22px}
.cta-box p{color: #C5CEE0; margin: 0; font-size: 15px; line-height: 1.55}
.cta-box .cta-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}

/* ============ SECTION ============ */
.section{padding: var(--space) 0}
.section-head{display:flex; flex-direction:column; gap:14px; align-items:flex-start; max-width:780px; margin-bottom: clamp(40px, 5vw, 64px)}
.section-head.center{align-items:center; text-align:center; margin-left:auto; margin-right:auto}
.section-head p{color:var(--muted); font-size: 17px; line-height:1.6}

/* ============ FAQ ============ */
.faq-wrap{max-width: 860px; margin: 0 auto}
.faq-item{
  background:#fff; border:1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow:hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open{border-color: var(--ink); box-shadow: var(--shadow-md)}
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding: 22px 24px; width:100%; text-align:left; color:var(--ink);
  font-family:var(--serif); font-weight:700; font-size:17px;
  cursor:pointer;
}
.faq-q .chev{
  width:32px; height:32px; border-radius:50%; background:var(--bg-2);
  display:grid; place-items:center; flex-shrink:0; transition: transform .25s, background .2s;
}
.faq-item.open .faq-q .chev{transform: rotate(180deg); background: var(--orange); color:#fff}
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .35s ease, padding .25s;
  color:var(--muted); font-size:15.5px; line-height:1.65;
  padding: 0 24px;
}
.faq-a p{margin: 0}
.faq-a p + p{margin-top: 12px}
.faq-item.open .faq-a{max-height: 600px; padding: 0 24px 24px}

/* ============ RELATED ============ */
.related{background: var(--bg-2); padding: clamp(56px, 7vw, 80px) 0}
.related-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.related-card{
  background:#fff; border:1px solid var(--line); border-radius: 16px;
  padding: 24px 24px 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none !important; color: var(--ink);
}
.related-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.related-card .tag{
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--orange); font-weight: 600;
}
.related-card h3{font-size: 17px; line-height: 1.3; margin: 0}
.related-card p{font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1}
.related-card .arrow{
  font-family: var(--serif); font-weight: 700; color: var(--orange); font-size: 14px;
}

/* ============ FINAL CTA ============ */
.final-cta{
  background:
    radial-gradient(ellipse at 20% 30%, rgba(235,74,28,.2) 0%, transparent 50%),
    var(--ink);
  color:#fff;
  padding: clamp(64px, 8vw, 112px) 0;
}
.final-grid{display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items:center}
.final-cta h2{color:#fff; max-width: 520px}
.final-sub{color: #B7C0D1; font-size:17px; margin-top:18px; max-width:500px}
.final-ctas{display:flex; gap:12px; margin-top:28px; flex-wrap:wrap}
.final-nap{
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px;
}
.final-nap h3{color:#fff; font-size:18px; display:flex; align-items:center; gap:10px}
.final-nap h3 .ic{width:32px; height:32px; border-radius:8px; background:var(--orange); display:grid; place-items:center; color:#fff}
.final-nap dl{margin:18px 0 0; display:grid; gap:14px}
.final-nap dt{font-family:var(--mono); font-size:11px; color:#98A4BA; letter-spacing:.12em; text-transform:uppercase}
.final-nap dd{margin:2px 0 0; color:#fff; font-size:15px}
.final-nap a{color:#fff}

/* ============ FOOTER ============ */
.footer{
  background: var(--bg-2); border-top:1px solid var(--line);
  padding: 60px 0 30px;
}
.foot-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.foot-col h4{font-family:var(--serif); font-size:13.5px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); font-weight:600; margin-bottom: 16px}
.foot-col ul{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.foot-col li a{color:var(--text); font-size:14.5px; text-decoration:none}
.foot-col li a:hover{color:var(--orange)}
.foot-about p{color:var(--muted); font-size:14px; line-height:1.6; margin-top:12px; max-width: 320px}
.foot-social{display:flex; gap:10px; margin-top:18px}
.foot-social a{
  width:40px; height:40px; border-radius:10px; background:#fff; border:1px solid var(--line);
  display:grid; place-items:center; color:var(--ink); text-decoration:none;
  transition: background .2s, color .2s, border-color .2s;
}
.foot-social a:hover{background:var(--ink); color:#fff; border-color:var(--ink)}
.foot-bottom{
  margin-top:48px; padding-top:20px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  color:var(--muted); font-size:13px;
}
.foot-bottom a{color:var(--muted); text-decoration:none}
.foot-bottom a:hover{color:var(--ink)}
.footer .brand-img{height:56px}
@media (max-width:720px){ .footer .brand-img{height:48px} }

/* ============ WHATSAPP FLOAT ============ */
.wa-float{
  position:fixed; right: 22px; bottom: 22px; z-index: 60;
  background: var(--green); color:#fff;
  border-radius:100px; padding: 12px 18px 12px 14px;
  display:flex; align-items:center; gap:10px;
  box-shadow: 0 16px 40px -8px rgba(31,168,85,.5), 0 4px 12px rgba(0,0,0,.1);
  font-weight:600; font-size:14px;
  transition: transform .2s;
  text-decoration: none !important;
}
.wa-float:hover{transform: scale(1.05); background: var(--green-600); color:#fff}
.wa-float svg{width:22px; height:22px}
.wa-float::after{
  content:""; position:absolute; inset:-6px; border-radius:100px;
  border:2px solid var(--green); opacity:0; animation: waRing 2.8s ease-out infinite;
}
@keyframes waRing{
  0%{opacity:.5; transform:scale(.9)}
  100%{opacity:0; transform:scale(1.25)}
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal{opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease}
.reveal.in{opacity:1; transform: translateY(0)}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px){
  .article-grid{grid-template-columns: 1fr; gap: 32px}
  .toc{position: static; order: -1}
  .final-grid{grid-template-columns: 1fr}
  .foot-grid{grid-template-columns: 1fr 1fr; gap: 32px}
}
@media (max-width: 560px){
  .foot-grid{grid-template-columns: 1fr}
  .article-hero .hero-ctas .btn{width: 100%}
  .steps li{padding-left: 68px}
  .steps li::before{left: 16px; width: 36px; height: 36px; font-size: 18px}
  .wa-float span{display:none}
  .wa-float{padding: 14px}
}
