/* ============================================================
   SANDRA — estilos de navegação multi-página + componentes de página
   Complementa sandra.css. Carregar depois dele.
   ============================================================ */

/* ---------------- Shared animated backgrounds (also used by interior heroes) ---------------- */
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0; pointer-events: none; filter: blur(8px); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; filter: blur(60px); }
.aurora .a1 { width: 46vw; height: 46vw; left: 52%; top: -8%; background: radial-gradient(circle, rgba(236,11,106,.34), transparent 62%); animation: aur1 18s var(--ease) infinite alternate; }
.aurora .a2 { width: 40vw; height: 40vw; left: -6%; top: 6%; background: radial-gradient(circle, rgba(106,43,217,.26), transparent 64%); animation: aur2 22s var(--ease) infinite alternate; }
.aurora .a3 { width: 32vw; height: 32vw; left: 24%; top: 28%; background: radial-gradient(circle, rgba(255,106,61,.22), transparent 66%); animation: aur1 26s var(--ease) infinite alternate-reverse; }
@keyframes aur1 { to { transform: translate(-7%, 9%) scale(1.12); } }
@keyframes aur2 { to { transform: translate(9%, -6%) scale(1.08); } }
.section--dark .aurora i { mix-blend-mode: screen; }
.gridbg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); opacity: .55; }

/* ---------------- Mega menu (desktop) ---------------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__trigger { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: 100px; font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: background .2s, color .2s; cursor: pointer; }
.nav__trigger .caret { width: 14px; height: 14px; transition: transform .25s var(--ease); opacity: .65; }
.nav__trigger:hover, .nav__item.open .nav__trigger { background: var(--bone-2); color: var(--ink); }
.nav__item.open .caret { transform: rotate(180deg); }
.nav__trigger.is-active, .nav__link.is-active { color: var(--magenta-700); }

.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 620px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
  z-index: 120;
}
.mega--sm { min-width: 460px; }
.nav__item.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover bridge */
.mega__inner {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; overflow: hidden;
}
.mega--sm .mega__inner { grid-template-columns: 1fr 200px; }
.mm { display: grid; gap: 2px; padding: 8px; }
.mm--grid { grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mm__col { display: grid; gap: 2px; align-content: start; }
.mm__h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 8px 10px 4px; }
.mm__link { display: block; padding: 9px 10px; border-radius: 11px; transition: background .18s; }
.mm__link:hover { background: var(--bone); }
.mm__t { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.mm__d { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; line-height: 1.35; }
.mega__promo { background: linear-gradient(165deg, var(--ink), #2a1430); color: #fff; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 200px; position: relative; overflow: hidden; }
.mega__promo::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(236,11,106,.6), transparent 70%); }
.mega__promo-k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-300); font-weight: 700; position: relative; }
.mega__promo-t { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.15; position: relative; }
.mega__promo .arrowlink { color: #fff; margin-top: 6px; font-size: 14px; position: relative; }

/* ---------------- Mobile drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(18,10,20,.4); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); }
.drawer.open { opacity: 1; visibility: visible; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px); background: var(--paper); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__x { font-size: 30px; line-height: 1; color: var(--ink-soft); width: 40px; height: 40px; }
.drawer__body { overflow-y: auto; padding: 12px 14px 30px; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 8px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__pm { width: 26px; height: 26px; border-radius: 50%; background: var(--bone-2); position: relative; flex: none; }
.drawer__pm::before, .drawer__pm::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--ink); border-radius: 2px; }
.drawer__pm::before { width: 11px; height: 2px; } .drawer__pm::after { width: 2px; height: 11px; transition: transform .25s; }
.drawer__group[open] .drawer__pm::after { transform: translate(-50%,-50%) scaleY(0); }
.drawer__sub { display: grid; gap: 2px; padding: 0 8px 14px; }
.drawer__sub a { padding: 9px 8px; color: var(--ink-soft); font-weight: 500; border-radius: 8px; }
.drawer__sub a:hover { background: var(--bone); color: var(--ink); }
.drawer__solo { display: block; padding: 16px 8px; font-family: var(--display); font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--line); }
.drawer__cta { display: grid; gap: 10px; margin-top: 20px; }
.drawer__cta .btn { width: 100%; }

/* ---------------- Page hero (interior pages) ---------------- */
.phero { position: relative; padding-top: clamp(120px, 14vw, 168px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.phero .aurora { opacity: .6; }
.phero__inner { position: relative; z-index: 2; max-width: 820px; }
.phero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-top: 18px; letter-spacing: -.035em; }
.phero .lead { margin-top: 20px; }
.phero__ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* breadcrumb */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-faint); flex-wrap: wrap; }
.crumb a { color: var(--ink-faint); }
.crumb a:hover { color: var(--magenta-700); }
.crumb svg { width: 13px; height: 13px; opacity: .6; }
.crumb b { color: var(--ink-2); font-weight: 600; }

/* ---------------- Prose / article ---------------- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(24px,3vw,34px); margin-top: 48px; }
.prose h3 { font-size: clamp(19px,2vw,24px); margin-top: 36px; }
.prose p, .prose li { font-size: 18px; line-height: 1.66; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose li { padding-left: 4px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--magenta-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose blockquote { border-left: 3px solid var(--magenta); padding: 6px 0 6px 22px; font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; line-height: 1.4; }
.prose img, .prose .mock { border-radius: var(--r); }
.callout { background: var(--bone); border: 1px solid var(--line); border-left: 3px solid var(--magenta); border-radius: 12px; padding: 18px 22px; }
.callout p { margin: 0; font-size: 16.5px; }

/* TOC / key takeaways box (good for LLM/AEO) */
.keybox { background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.keybox h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-700); font-weight: 700; margin-bottom: 12px; }
.keybox ul { list-style: none; display: grid; gap: 9px; }
.keybox li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.keybox li svg { width: 18px; height: 18px; color: var(--magenta); flex: none; margin-top: 2px; }

/* ---------------- Generic feature/value cards ---------------- */
.cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cards2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.vcard { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vcard__ic { width: 46px; height: 46px; border-radius: 13px; background: var(--magenta-100); color: var(--magenta-700); display: grid; place-items: center; margin-bottom: 16px; }
.vcard__ic svg { width: 23px; height: 23px; }
.vcard h3 { font-size: 19px; }
.vcard p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.section--dark .vcard { background: rgba(255,255,255,.03); border-color: var(--dark-line); }
.section--dark .vcard h3 { color: #fff; } .section--dark .vcard p { color: var(--on-dark-soft); }
.section--dark .vcard__ic { background: rgba(236,11,106,.16); color: var(--magenta-300); }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } .cards2 { grid-template-columns: 1fr; } }

/* alternating feature rows */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,68px); align-items: center; }
.frow + .frow { margin-top: clamp(56px, 8vw, 104px); }
.frow--flip .frow__media { order: -1; }
.frow__copy h2 { font-size: clamp(26px,3vw,38px); }
.frow__copy p { color: var(--ink-soft); margin-top: 16px; font-size: 17px; }
.frow__copy ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.frow__copy li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.frow__copy li svg { width: 19px; height: 19px; color: var(--magenta); flex: none; margin-top: 2px; }
@media (max-width: 900px) { .frow { grid-template-columns: 1fr; } .frow--flip .frow__media { order: 0; } }

/* ---------------- Comparison / "Sandra vs planilha" table ---------------- */
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.ctable th, .ctable td { padding: 16px 20px; text-align: left; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.ctable thead th { font-family: var(--display); font-weight: 600; font-size: 16px; background: var(--bone); }
.ctable thead th:last-child { background: var(--magenta-100); color: var(--magenta-700); }
.ctable td:first-child { color: var(--ink-soft); font-weight: 500; }
.ctable td.yes { color: var(--ok); font-weight: 600; } .ctable td.no { color: var(--ink-faint); }
.ctable tr:last-child td, .ctable tbody tr:last-child td { border-bottom: 0; }
.ctable td svg, .ctable th svg { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------------- Contact form ---------------- */
.formcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 15.5px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bone); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--magenta-100); background: #fff; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.form-ok { display: none; text-align: center; padding: 20px; }
.form-ok.show { display: block; }

/* ---------------- Blog cards ---------------- */
.bloggrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post__cover { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ink), #2a1430); position: relative; overflow: hidden; }
.post__cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(140px circle at 75% 25%, rgba(236,11,106,.55), transparent 60%); }
.post__cover span { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--display); font-weight: 600; color: #fff; font-size: 19px; letter-spacing: -.02em; max-width: 80%; line-height: 1.1; }
.post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post__tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--magenta-700); }
.post__title { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin-top: 8px; line-height: 1.2; }
.post__meta { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 900px) { .bloggrid { grid-template-columns: 1fr; } }

/* ---------------- Reusable CTA band ---------------- */
.ctaband { background: var(--dark-bg); position: relative; overflow: hidden; }
.ctaband .aurora { opacity: .55; }
.ctaband__inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin-inline: auto; }

/* logo-ish pill grid for integrations page */
.logos-rich { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.logo-rich { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--paper); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.logo-rich:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--magenta); }
.logo-rich b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.logo-rich p { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
@media (max-width: 900px) { .logos-rich { grid-template-columns: 1fr 1fr; } }

/* small stat band reused */
.statband { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 700px) { .statband { grid-template-columns: 1fr; gap: 18px; } }

/* anchor offset so sticky nav doesn't cover headings */
:target { scroll-margin-top: 100px; }

/* 5-col plans on pricing */
.plans5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .plans5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .plans5 { grid-template-columns: 1fr; } }
.plan--free { background: var(--bone); }
