/* =====================================================================
   PetHub — Componentes: header/mega-menu, drawer, footer, hero,
   carrosséis, tabs, cards, stats, depoimentos, newsletter, CTAs, FAQ
   ===================================================================== */

/* ---------- Barra de anúncio ---------- */
.announce {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--announce-h);
  background: var(--brand-pink-soft); color: var(--text-heading); font-size: 13px;
}
.announce__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.announce__text { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce__text .icon { width: 16px; height: 16px; color: var(--brand-pink); }
.announce__text b { font-weight: 800; }
.announce__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.announce__close { display: inline-flex; padding: 6px; border-radius: 50%; }
.announce__close:hover { background: rgba(35,24,63,.08); }
body:not(.has-announce) .announce { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur);
}
body.has-announce .site-header { top: var(--announce-h); }
.site-header.is-scrolled { border-bottom-color: var(--border-light); box-shadow: var(--shadow-sm); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--text-heading); letter-spacing: -.03em; }
.logo img { height: 34px; width: auto; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-purple); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.logo__mark .icon { width: 20px; height: 20px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; color: var(--text-heading); transition: color var(--dur), background var(--dur);
}
.nav__link .icon { width: 16px; height: 16px; transition: transform var(--dur); }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link.is-active { color: var(--accent); }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; padding: 10px; border-radius: 50%; color: var(--text-heading); }
.nav-toggle:hover { background: var(--bg-off-white); }

/* Mega-menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 640px; padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.mega--wide { min-width: 900px; }
.mega--compact { min-width: 520px; }
.nav__item.is-open > .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
/* O primeiro menu (mais largo) alinha à esquerda para não sair da tela */
.nav__item:first-child > .mega { left: -24px; transform: translate(0, 8px); }
.nav__item:first-child.is-open > .mega { transform: translate(0, 0); }
.mega__inner { display: grid; gap: 32px; grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr)); }
.mega__title { margin-bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-pink); }
.mega__list { display: grid; gap: 4px; }
.mega__link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-inline: -12px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; color: var(--text-heading); transition: background var(--dur), color var(--dur);
}
.mega__link:hover { background: var(--bg-off-white); color: var(--accent); }
.mega__link .icon { width: 22px; height: 22px; color: var(--text-muted); }
.mega__link:hover .icon { color: var(--accent); }
.mega__link small { font-weight: 500; color: var(--text-muted); font-size: 13px; display: block; }
.mega__footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border-light); }
.mega__cases { display: grid; gap: 16px; }
.mega__case { display: grid; grid-template-columns: 1fr 90px; gap: 14px; align-items: start; padding: 6px; border-radius: var(--radius-md); }
.mega__case:hover { background: var(--bg-off-white); }
.mega__case img { width: 90px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.mega__case img[src*="rotina-creche-nova-capa"] { object-position: top center; }
.mega__case img[src*="/clientes/"] { object-fit: contain; padding: 4px; }
.mega__case h4 { font-size: 14px; margin-top: 6px; line-height: 1.3; font-weight: 700; }
.mega__case p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; margin-top: 4px; line-height: 1.4; color: var(--text-muted); }
.mega__promo { padding: 20px; border-radius: var(--radius-md); background: var(--bg-off-white); }
.mega__promo h4 { font-size: 16px; }
.mega__promo p { font-size: 13px; margin: 6px 0 12px; color: var(--text-muted); }

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column;
  background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px;
}
.drawer.is-open { display: flex; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.drawer__close { padding: 10px; border-radius: 50%; }
.drawer__group { border-bottom: 1px solid var(--border-light); }
.drawer__group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 800; font-size: 18px; color: var(--text-heading); cursor: pointer; }
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary .icon { transition: transform var(--dur); }
.drawer__group[open] > summary .icon { transform: rotate(180deg); }
.drawer__group .mega__title { margin-top: 8px; }
.drawer__group .mega__list { padding-bottom: 16px; }
.drawer__link { display: block; padding: 16px 0; font-weight: 800; font-size: 18px; color: var(--text-heading); border-bottom: 1px solid var(--border-light); }
.drawer__actions { display: grid; gap: 10px; margin-top: 24px; }

@media (max-width: 1080px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .header-actions .btn-primary { padding: 10px 16px; font-size: 14px; }
  .announce__link span { display: none; }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 10px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-primary { padding: 9px 12px; font-size: 13px; }
  .header-actions .btn-primary .icon { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark-muted); padding: clamp(56px, 7vw, 96px) 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; }
.footer__brand .logo { color: #fff; }
.footer__brand .logo img { filter: brightness(0) invert(1); }
.footer__tagline { margin: 18px 0 24px; max-width: 280px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: inline-flex; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background var(--dur); }
.footer__social a:hover { background: var(--accent); }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 13px; font-weight: 600; }
.store-badge .icon { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { transition: color var(--dur); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 1080px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 0%, var(--brand-purple-soft), transparent 70%),
    radial-gradient(50% 45% at 85% 10%, var(--brand-pink-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-off-white), #fff 80%);
}
.hero--center { text-align: center; }
.hero--center .hero__content { max-width: 880px; margin-inline: auto; }
.hero__content .lead { margin-top: 20px; max-width: 640px; }
.hero--center .hero__content .lead { margin-inline: auto; }
.hero__content .btn-group { margin-top: 32px; }
.hero__content .pill-note { margin-bottom: 20px; }
.hero--split .split { align-items: center; }
.hero__media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero__media--plain img { box-shadow: none; border-radius: 0; }
.hero--dark { color: var(--text-on-dark-muted); }
.hero--dark::before { background: radial-gradient(60% 60% at 50% 0%, #3a2a6a, var(--bg-dark) 70%); }

/* Abas de segmento: ícone + nome sempre visíveis, tamanho fixo (nada muda de lugar) */
.segment-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.segment-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light); background: #fff; color: var(--text-heading);
  font-size: 15px; font-weight: 700; transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.segment-tab .icon { width: 18px; height: 18px; }
.segment-tab:hover { border-color: var(--accent); color: var(--accent); }
.segment-tab.is-active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.segment-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Carrossel de cards (hero) */
.carousel { position: relative; margin-top: 40px; }
.carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 12px var(--gutter) 32px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-dark); color: #fff; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur), transform var(--dur);
}
.carousel__btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.06); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.seg-card {
  position: relative; flex: 0 0 300px; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  scroll-snap-align: center; color: #fff; border: 3px solid transparent; opacity: .72;
  transition: border-color var(--dur), opacity var(--dur);
}
.seg-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.seg-card img[src*="rotina-creche-nova-capa"],
.seg-card img[src*="hotel-beagle"] { object-position: top center; }
.seg-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,24,63,0) 35%, rgba(35,24,63,.85)); }
/* O texto fica sempre no mesmo lugar: embaixo, à esquerda */
.seg-card__body { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
.seg-card__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.seg-card__title .icon { width: 20px; height: 20px; }
.seg-card__cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.6); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.seg-card.is-active { border-color: var(--brand-lime); opacity: 1; }
.seg-card.is-active .seg-card__cta { background: var(--brand-lime); border-color: var(--brand-lime); color: var(--ink); }
.seg-card:hover { opacity: 1; }
.seg-card:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .seg-card { flex-basis: 240px; } .carousel__btn { display: none; }
  .segment-tab { height: 42px; padding: 0 14px; font-size: 14px; }
  .segment-tab .icon { display: none; }
}

/* ---------- Faixa de logos (marquee) ---------- */
.logo-band { padding: 40px 0 16px; text-align: center; }
.logo-band .eyebrow { color: var(--text-muted); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; padding-block: 12px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text-muted); letter-spacing: -.02em; opacity: .75; white-space: nowrap; }
.logo-item .icon { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Parado: cada item uma vez só (as cópias do laço são aria-hidden) e sem a máscara das bordas */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 16px; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}

/* ---------- Grid de funcionalidades ---------- */
.feature-card { display: flex; flex-direction: column; }
.feature-card .link-arrow { margin-top: auto; padding-top: 18px; }

/* ---------- Bloco imagem + texto ---------- */
.media-block img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.media-block__copy h2 { margin-bottom: 16px; }
.media-block__copy h3 { margin-top: 32px; }
.media-block__copy p + p { margin-top: 12px; }
.media-block__copy .btn-group { margin-top: 28px; }

/* ---------- Métricas ---------- */
.stats-band { border-radius: var(--radius-2xl); padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 64px); background: var(--brand-purple); color: #fff; }
.stats-band .section-head h2, .stats-band .section-head p { color: #fff; }
.stats-band .eyebrow { color: var(--brand-lime); }
.stats-big { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.stat-big { padding: 32px; border-radius: var(--radius-lg); background: rgba(255,255,255,.1); }
.stat-big strong { display: block; font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -.04em; }
.stat-big span { display: block; margin-top: 10px; font-size: 16px; opacity: .85; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font-size: 14px; opacity: .85; }
.stats-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stats-inline .stat { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-off-white); }
.stats-inline .stat strong { color: var(--accent); }
.stats-inline .stat span { color: var(--text-body); opacity: 1; }
@media (max-width: 900px) { .stats-row { grid-template-columns: 1fr 1fr; } .stats-inline { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats-big { grid-template-columns: 1fr; } }

/* ---------- Depoimentos ---------- */
.testi-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: var(--radius-pill); background: var(--bg-off-white); margin-bottom: 32px; }
.testi-tab { padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; color: var(--text-body); transition: all var(--dur); }
.testi-tab.is-active { background: var(--bg-dark); color: #fff; }
.testi-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { flex: 0 0 min(380px, 85vw); scroll-snap-align: start; display: flex; flex-direction: column; }
.testi-card .quote-mark { font-family: var(--font-display); font-size: 56px; line-height: .6; color: var(--brand-pink); }
.testi-card blockquote { margin: 18px 0 24px; color: var(--text-heading); font-size: 16px; line-height: 1.6; flex: 1; }
.testi-card .author { display: flex; align-items: center; gap: 12px; }
.testi-card .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-card .author b { display: block; color: var(--text-heading); }
.testi-card .author span { font-size: 13px; color: var(--text-muted); }
.testi-nav { display: flex; gap: 10px; justify-content: flex-end; }
.testi-nav .carousel__btn { position: static; transform: none; }
.testi-nav .carousel__btn:hover { transform: scale(1.06); }

/* Depoimento destaque (páginas internas) */
.testimonial-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl); background: var(--bg-off-white); }
.testimonial-feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.testimonial-feature blockquote { margin: 16px 0 24px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); line-height: 1.35; color: var(--text-heading); }
@media (max-width: 900px) { .testimonial-feature { grid-template-columns: 1fr; } }

/* ---------- Cards de blog ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card img[src*="rotina-creche-nova-capa"] { object-position: top center; }
.post-card img[src*="/clientes/"] { object-fit: contain; padding: 32px; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-card h3 { font-size: 19px; margin-top: 14px; }
.post-card .excerpt { margin-top: 10px; font-size: 15px; }
.post-card__meta { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--text-muted); }
.post-card--horizontal { flex-direction: row; }
.post-card--horizontal img { width: 40%; aspect-ratio: auto; }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl); background: var(--bg-off-white); border: 1px solid var(--border-light); }
.newsletter h2 { font-size: clamp(26px, 3vw, 36px); }
.newsletter p { margin-top: 10px; font-size: 16px; color: var(--text-muted); line-height: 1.5; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type="email"] { flex: 1; padding: 14px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-light); background: #fff; }
.newsletter input[type="email"]:focus { outline: none; border-color: var(--accent); }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } .newsletter form { flex-direction: column; } }

/* ---------- Badges de avaliação / confiança ---------- */
.rating-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.rating { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: var(--radius-md); border: 1px solid var(--border-light); background: #fff; }
.rating .stars { display: inline-flex; gap: 2px; color: #F5B301; }
.rating .stars .icon { width: 16px; height: 16px; fill: currentColor; }
.rating b { font-family: var(--font-display); font-size: 20px; color: var(--text-heading); }
.rating span { font-size: 13px; color: var(--text-muted); }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--bg-off-white); font-weight: 700; font-size: 13px; color: var(--text-heading); }
.trust-badge .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- CTA "demo personalizada" + card sobreposto ---------- */
.cta-demo { position: relative; background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple)); color: #fff; padding: clamp(64px, 8vw, 120px) 0 clamp(200px, 26vw, 320px); text-align: center; }
.cta-demo h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); }
.cta-demo p { margin: 18px auto 0; max-width: 640px; font-size: 17px; opacity: .92; }
.cta-demo .btn-group { margin-top: 32px; }
.cta-advance { position: relative; padding: clamp(72px, 10vw, 128px) 0; text-align: center;
  /* termina na cor do rodapé: sem emenda entre a seção e o rodapé, em qualquer largura */
  background: radial-gradient(120% 60% at 50% 0%, rgba(59, 40, 158, .9) 0%, rgba(59, 40, 158, 0) 70%), linear-gradient(180deg, var(--surface-deep) 0%, var(--ink) 100%); }
.cta-advance__inner h2 { color: #fff; font-weight: 400; margin: 0 auto 18px; }
.cta-advance__inner h2 strong { font-weight: 800; }
.cta-advance .btn-lime { color: var(--ink); }
.cta-advance__inner h2 .hero-title__dot { color: var(--brand-lime); }
.cta-advance__inner > p { max-width: 640px; margin: 0 auto 32px; font-size: 18px; color: var(--text-on-dark-muted); }
.cta-advance .objection { justify-content: center; margin-top: 20px; font-size: 14px; }
.cta-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.cta-option { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-off-white); }
.cta-option h3 { font-size: 18px; }
.cta-option .btn { align-self: flex-start; margin-top: auto; }
.cta-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cta-mini .card { display: flex; gap: 16px; align-items: flex-start; }
.cta-mini .card h3 { margin-top: 0; font-size: 17px; }
.cta-mini .card p { font-size: 14px; }
@media (max-width: 900px) { .cta-options, .cta-mini { grid-template-columns: 1fr; } }

/* CTA simples (final de página) */
.cta-final { text-align: center; padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 64px); border-radius: var(--radius-2xl); background: var(--bg-dark); color: var(--text-on-dark-muted); }
.cta-final h2 { color: #fff; }
.cta-final p { margin: 16px auto 0; max-width: 560px; }
.cta-final .btn-group { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; color: var(--text-heading); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur); color: var(--accent); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq__body { padding: 0 22px 22px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h3 { margin-bottom: 18px; }

/* ---------- Blocos numerados (páginas de segmento) ---------- */
.step-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(32px, 4vw, 56px); }
.step-block:nth-child(even) > :first-child { order: 2; }
.step-block img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; }
.step-block .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-lime); color: var(--text-heading); font-family: var(--font-display); font-weight: 800; margin-bottom: 18px; }
.step-block h3 { font-size: clamp(24px, 2.6vw, 34px); }
.step-block p { margin-top: 14px; }
.step-block .check-list { margin-top: 22px; }
@media (max-width: 900px) { .step-block { grid-template-columns: 1fr; } .step-block:nth-child(even) > :first-child { order: 0; } }

/* ---------- Sub-funcionalidades (páginas de solução) ---------- */
.sub-feature { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: #fff; scroll-margin-top: calc(var(--header-h) + 24px); }
.sub-feature h3 { font-size: 22px; }
.sub-feature p { margin-top: 10px; }
.sub-feature .check-list { margin-top: 16px; }
.solution-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Plataformas ---------- */
.platform-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- Timeline / changelog ---------- */
.timeline { display: grid; gap: 24px; border-left: 2px solid var(--border-light); padding-left: 28px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -35px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline__date { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.timeline__item h3 { margin-top: 6px; font-size: 20px; }
.timeline__item p { margin-top: 8px; }

/* ---------- Paginação ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-pill); font-weight: 700; color: var(--text-heading); }
.pagination a:hover { background: var(--bg-off-white); }
.pagination .is-current { background: var(--bg-dark); color: #fff; }

/* ---------- Prosa (termos, post) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 6px; }
.prose img { border-radius: var(--radius-lg); margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--brand-pink); background: var(--bg-off-white); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--text-heading); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* ---------- Elementos gerados a partir do Markdown ---------- */
.prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 6px; }
.prose ol ul, .prose ul ul, .prose ol ol, .prose ul ol { margin: 8px 0 0; }
.prose li > p { margin: 6px 0 0; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-deep); }
.prose hr { border: 0; border-top: 1px solid var(--border-light); margin: 40px 0; }
.prose figure { margin: 28px 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); text-align: center; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-size: .9em; }
.prose pre { margin: 24px 0; padding: 20px; border-radius: var(--radius-md); background: var(--bg-dark); color: #fff; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose .table-scroll { overflow-x: auto; margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); text-align: left; }
.prose thead th { font-family: var(--font-display); font-size: 14px; color: var(--text-heading); background: var(--bg-off-white); }
.prose tbody tr:hover { background: var(--bg-off-white); }

/* Navegação entre posts */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.post-nav__link { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border-light); font-weight: 700; color: var(--text-heading); transition: border-color var(--dur), transform var(--dur) var(--ease); }
.post-nav__link:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-nav__link--next { justify-content: flex-end; text-align: right; }
.post-nav__link small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { justify-content: flex-start; text-align: left; } }

/* Categoria clicável nos cards e no topo do post */
a.badge { transition: background var(--dur), color var(--dur); }
a.badge:hover { background: var(--bg-dark); color: #fff; }
