:root {
  --purple-950: #210731;
  --purple-900: #2c0b49;
  --purple-850: #37105a;
  --purple-800: #45156d;
  --purple-700: #65269a;
  --purple-600: #7b2fb7;
  --purple-500: #9145c8;
  --purple-200: #dec8ed;
  --purple-100: #f1e8f7;
  --purple-50: #faf7fc;
  --ink-950: #19131f;
  --ink-800: #302638;
  --ink-600: #62586a;
  --ink-500: #786e80;
  --line: #e7deeb;
  --white: #fff;
  --success: #167654;
  --shadow-sm: 0 8px 24px rgba(40, 12, 60, .08);
  --shadow-md: 0 18px 48px rgba(40, 12, 60, .14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1380px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-950);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; background: #fff; color: var(--purple-800); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  height: var(--header-h);
  position: relative;
  z-index: 100;
  background: var(--purple-950);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-divider { width: 1px; height: 31px; background: rgba(255,255,255,.45); }
.brand-name { font-size: 1.03rem; letter-spacing: -.02em; }
.brand-name strong { font-weight: 750; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a, .main-nav button { border: 0; background: transparent; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 650; font-size: .92rem; padding: 10px 13px; border-radius: 10px; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-cta { color: var(--purple-950); background: #fff; margin-left: 6px; padding-inline: 18px; box-shadow: 0 7px 20px rgba(0,0,0,.12); }
.main-nav .nav-cta:hover { background: var(--purple-100); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); border-radius: 12px; align-items: center; justify-content: center; }

.pricing-hero {
  min-height: calc(100svh - var(--header-h));
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(161, 70, 219, .28), transparent 28%),
    radial-gradient(circle at 15% 88%, rgba(132, 50, 184, .24), transparent 30%),
    linear-gradient(145deg, var(--purple-950) 0%, var(--purple-900) 48%, #3d125f 100%);
}
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); border: 1px solid rgba(255,255,255,.12); }
.hero-orb-one { width: 390px; height: 390px; right: -190px; top: 60px; }
.hero-orb-two { width: 260px; height: 260px; left: -130px; bottom: -70px; }
.pricing-hero-inner { position: relative; z-index: 1; padding: clamp(26px, 4vh, 48px) 0 24px; }
.hero-heading { text-align: center; max-width: 920px; margin: 0 auto clamp(24px, 3.5vh, 38px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .77rem; line-height: 1; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #d8b7ef; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-purple { color: var(--purple-700); }
.hero-heading h1 { margin: 14px auto 12px; max-width: 1050px; font-size: clamp(2.15rem, 3.5vw, 3.65rem); line-height: 1.03; letter-spacing: -.055em; }
.hero-heading p { margin: 0 auto; max-width: 850px; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.35vw, 1.16rem); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(370px, 48vh, 440px);
  padding: clamp(20px, 2vw, 27px);
  color: var(--ink-950);
  background: rgba(255,255,255,.975);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 65px rgba(12, 2, 19, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 30px 76px rgba(12,2,19,.3); }
.price-card-featured { border: 2px solid #a85ddd; box-shadow: 0 28px 72px rgba(121, 43, 174, .35); }
.price-card-trial { background: linear-gradient(180deg, #fff 0%, #fbf8fd 100%); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #fff; background: linear-gradient(90deg, var(--purple-700), var(--purple-500)); border-radius: 99px; padding: 6px 16px; font-size: .72rem; font-weight: 800; box-shadow: 0 8px 20px rgba(87, 26, 128, .3); }
.plan-head { min-height: 93px; }
.plan-type { display: block; margin-bottom: 4px; color: var(--purple-700); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-head h2 { margin: 0 0 4px; font-size: clamp(1.28rem, 1.65vw, 1.62rem); letter-spacing: -.035em; }
.plan-head p { margin: 0; color: var(--ink-600); font-size: .86rem; line-height: 1.42; }
.price-block { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 13px; }
.price-block .currency { color: var(--purple-700); font-weight: 800; font-size: .95rem; }
.price-block strong { color: var(--purple-800); font-size: clamp(2.25rem, 3vw, 3.2rem); line-height: .9; letter-spacing: -.06em; }
.price-block .period { color: var(--ink-600); font-size: .82rem; font-weight: 650; }
.connection-box { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--purple-200); border-radius: 12px; background: var(--purple-50); }
.connection-box > svg { flex: 0 0 auto; color: var(--purple-700); width: 24px; height: 24px; }
.connection-box div { min-width: 0; display: flex; flex-direction: column; }
.connection-box strong { color: var(--purple-800); font-size: 1rem; }
.connection-box span { color: var(--ink-600); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-list { display: grid; gap: 7px; margin: 15px 0 18px; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: center; gap: 8px; color: var(--ink-800); font-size: .82rem; }
.plan-list svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--success); stroke-width: 2.4; }
.plan-button { width: 100%; min-height: 44px; margin-top: auto; border: 1px solid var(--purple-700); border-radius: 11px; color: #fff; background: var(--purple-700); font-weight: 800; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.plan-button:hover { background: var(--purple-800); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(91, 32, 135, .25); }
.plan-button-outline { color: var(--purple-700); background: #fff; }
.plan-button-outline:hover { color: #fff; }
.pricing-note { margin: 16px auto 0; max-width: 950px; text-align: center; color: rgba(255,255,255,.75); font-size: .78rem; }
.pricing-note strong { color: #fff; }

.trust-strip { position: relative; z-index: 2; background: #fff; box-shadow: 0 10px 32px rgba(38, 12, 55, .08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { display: flex; align-items: center; gap: 12px; padding: 22px 20px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid svg { flex: 0 0 auto; width: 25px; height: 25px; color: var(--purple-700); }
.trust-grid span { display: flex; flex-direction: column; }
.trust-grid strong { font-size: .92rem; }
.trust-grid small { color: var(--ink-600); font-size: .74rem; }

.section { padding: clamp(72px, 8vw, 112px) 0; }
.operation-section { background: var(--purple-50); }
.operation-layout { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(42px, 7vw, 90px); }
.section-copy h2, .section-heading h2 { margin: 14px 0 16px; font-size: clamp(2rem, 3.3vw, 3.25rem); line-height: 1.08; letter-spacing: -.045em; }
.section-copy > p, .section-heading > p { max-width: 760px; margin: 0; color: var(--ink-600); font-size: 1.02rem; }
.audience-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.audience-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; color: var(--purple-800); background: #fff; border: 1px solid var(--purple-200); border-radius: 99px; font-size: .82rem; font-weight: 750; box-shadow: var(--shadow-sm); }
.audience-pills svg { width: 18px; height: 18px; }
.benefit-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.benefit-panel article { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 27px 30px; border-bottom: 1px solid var(--line); }
.benefit-panel article:last-child { border-bottom: 0; }
.benefit-number { display: grid; place-items: center; width: 58px; height: 58px; color: var(--purple-700); background: var(--purple-100); border-radius: 16px; font-weight: 900; }
.benefit-panel h3 { margin: 0 0 6px; font-size: 1.15rem; }
.benefit-panel p { margin: 0; color: var(--ink-600); font-size: .9rem; }

.how-section { background: #fff; }
.section-heading { text-align: center; max-width: 900px; margin: 0 auto 46px; }
.section-heading > p { margin-inline: auto; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.how-grid li { position: relative; min-height: 260px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.how-grid li::after { content: ""; position: absolute; top: 52px; right: -17px; width: 18px; border-top: 2px dashed var(--purple-200); }
.how-grid li:last-child::after { display: none; }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--purple-700); background: var(--purple-100); border-radius: 15px; }
.step-icon svg { width: 25px; height: 25px; }
.step-number { position: absolute; top: 22px; right: 22px; color: var(--purple-200); font-size: 1.7rem; font-weight: 900; }
.how-grid h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.how-grid p { margin: 0; color: var(--ink-600); font-size: .88rem; }
.integrator-note { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 22px 26px; color: #fff; background: linear-gradient(110deg, var(--purple-900), var(--purple-700)); border-radius: var(--radius-md); }
.integrator-note > svg { flex: 0 0 auto; width: 37px; height: 37px; }
.integrator-note strong { display: block; margin-bottom: 3px; font-size: 1.05rem; }
.integrator-note p { margin: 0; color: rgba(255,255,255,.76); font-size: .88rem; }

.faq-section { background: var(--purple-50); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 7vw, 92px); align-items: start; }
.faq-copy { position: sticky; top: 96px; }
.faq-copy .button { margin-top: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 20px rgba(42, 14, 60, .05); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px; cursor: pointer; list-style: none; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: 0 0 auto; color: var(--purple-700); transition: transform .2s ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list p { margin: 0; padding: 0 21px 21px; color: var(--ink-600); font-size: .9rem; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; }
.button-primary { color: #fff; background: var(--purple-700); }
.button-primary:hover { background: var(--purple-800); }
.button-white { color: var(--purple-900); background: #fff; }
.button-ghost-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.45); }
.button-full { width: 100%; }

.final-cta { padding: 64px 0; color: #fff; background: linear-gradient(120deg, var(--purple-950), var(--purple-700)); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.final-cta h2 { margin: 12px 0 8px; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.08; letter-spacing: -.04em; }
.final-cta p { margin: 0; max-width: 760px; color: rgba(255,255,255,.75); }
.final-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; min-width: 235px; }
.site-footer { color: rgba(255,255,255,.7); background: #180522; }
.footer-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; }
.footer-brand span, .site-footer p { font-size: .78rem; }

.contact-dialog { width: min(92vw, 650px); max-height: 90vh; padding: 0; border: 0; border-radius: 22px; box-shadow: 0 34px 100px rgba(22, 4, 33, .45); }
.contact-dialog::backdrop { background: rgba(17, 3, 25, .76); backdrop-filter: blur(4px); }
.contact-form { position: relative; padding: clamp(28px, 5vw, 44px); }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-600); background: #fff; }
.contact-form h2 { margin: 13px 0 7px; font-size: 2rem; letter-spacing: -.04em; }
.contact-form > p { margin: 0 0 24px; color: var(--ink-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; margin-bottom: 14px; color: var(--ink-800); font-size: .82rem; font-weight: 750; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #dcd1e1; border-radius: 10px; padding: 12px 13px; color: var(--ink-950); background: #fff; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--purple-600); box-shadow: 0 0 0 3px rgba(123,47,183,.12); }
.selected-plan-preview { margin: 2px 0 14px; padding: 11px 13px; color: var(--purple-800); background: var(--purple-100); border-radius: 10px; font-size: .82rem; font-weight: 800; }
.contact-form > small { display: block; margin-top: 10px; text-align: center; color: var(--ink-500); font-size: .7rem; }

:focus-visible { outline: 3px solid #dba8ff; outline-offset: 3px; }

@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-hero { min-height: auto; }
  .price-card { min-height: 390px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid li::after { display: none; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; padding: 12px; background: var(--purple-950); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: var(--shadow-md); }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav button { width: 100%; text-align: left; padding: 12px 14px; }
  .main-nav .nav-cta { margin: 4px 0 0; text-align: center; }
  .operation-layout, .faq-layout { grid-template-columns: 1fr; }
  .faq-copy { position: static; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .final-actions { width: 100%; flex-direction: row; }
  .final-actions .button { flex: 1; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-name { font-size: .92rem; }
  .brand img { width: 37px; height: 37px; }
  .brand-divider { height: 27px; }
  .pricing-hero-inner { padding-top: 30px; }
  .hero-heading { text-align: left; margin-bottom: 24px; }
  .hero-heading h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .hero-heading p { font-size: .96rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; padding: 22px; }
  .plan-head { min-height: 0; }
  .price-block { margin-block: 14px; }
  .price-block strong { font-size: 2.7rem; }
  .pricing-note { text-align: left; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section-copy h2, .section-heading h2 { font-size: 2.05rem; }
  .benefit-panel article { grid-template-columns: 54px 1fr; gap: 14px; padding: 22px 18px; }
  .benefit-number { width: 48px; height: 48px; border-radius: 13px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid li { min-height: auto; }
  .integrator-note { align-items: flex-start; padding: 20px; }
  .final-actions { flex-direction: column; }
  .footer-inner { min-height: 132px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 12px; padding-block: 24px; }
  .site-footer p { margin: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 30px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   V4 — navegação fixa clara e revisão de responsividade
   ========================================================= */
html {
  scroll-padding-top: calc(var(--header-h) + 18px);
}

#inicio,
#planos,
#beneficios,
#como-funciona,
#duvidas,
#contato {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  color: var(--ink-950);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(70, 21, 109, .12);
  box-shadow: 0 5px 22px rgba(39, 11, 57, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 10px 30px rgba(39, 11, 57, .13);
}

.header-inner {
  position: relative;
}

.brand {
  color: var(--purple-800);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-divider {
  background: rgba(69, 21, 109, .28);
}

.brand-name {
  color: var(--purple-800);
  font-weight: 560;
}

.brand-name strong {
  color: var(--purple-700);
  font-weight: 820;
}

.main-nav {
  gap: 2px;
}

.main-nav a,
.main-nav button {
  color: var(--ink-600);
  font-size: .88rem;
  padding: 10px 11px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active,
.main-nav a[aria-current="page"] {
  color: var(--purple-800);
  background: var(--purple-100);
}

.main-nav a.is-active,
.main-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--purple-600);
}

.main-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  box-shadow: 0 8px 20px rgba(101, 38, 154, .22);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
}

.nav-toggle {
  border-color: var(--purple-200);
  color: var(--purple-800);
  background: var(--purple-50);
}

.nav-toggle:hover {
  background: var(--purple-100);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 990;
  background: rgba(24, 5, 34, .36);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Evita cortes de texto nos cards em telas intermediárias. */
.connection-box span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

@media (max-width: 1080px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 16px;
    left: 16px;
    z-index: 1002;
    display: none;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    color: var(--ink-950);
    background: rgba(255, 255, 255, .99);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(32, 7, 48, .24);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: var(--ink-800);
    text-align: left;
    border-radius: 10px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.is-active,
  .main-nav a[aria-current="page"] {
    color: var(--purple-800);
    background: var(--purple-100);
    box-shadow: none;
  }

  .main-nav .nav-cta {
    min-height: 48px;
    justify-content: center;
    margin: 7px 0 0;
    text-align: center;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .brand-divider {
    height: 27px;
  }

  .brand-name {
    overflow: hidden;
    font-size: .9rem;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    top: calc(var(--header-h) + 6px);
    right: 12px;
    left: 12px;
    border-radius: 14px;
  }

  .pricing-hero-inner {
    padding: 28px 0 22px;
  }

  .hero-heading {
    margin-bottom: 22px;
    text-align: left;
  }

  .hero-heading h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 9.7vw, 2.72rem);
    line-height: 1.04;
  }

  .hero-heading p {
    font-size: .96rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price-card {
    min-height: 0;
    padding: 20px;
    border-radius: 16px;
  }

  .price-card:hover {
    transform: none;
  }

  .popular-badge {
    top: -10px;
  }

  .plan-head {
    min-height: 0;
  }

  .plan-head h2 {
    font-size: 1.45rem;
  }

  .plan-head p {
    max-width: 34ch;
  }

  .price-block {
    margin: 13px 0;
  }

  .price-block strong {
    font-size: 2.72rem;
  }

  .connection-box {
    min-height: 56px;
  }

  .plan-list {
    margin: 14px 0 17px;
  }

  .plan-button {
    min-height: 46px;
  }

  .pricing-note {
    margin-top: 18px;
    text-align: left;
    line-height: 1.45;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid > div,
  .trust-grid > div:nth-child(2) {
    min-width: 0;
    padding: 17px 13px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:nth-child(even) {
    border-right: 0;
  }

  .trust-grid > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .trust-grid strong {
    font-size: .82rem;
  }

  .trust-grid small {
    font-size: .68rem;
    line-height: 1.3;
  }

  .section {
    padding: 64px 0;
  }

  .operation-layout,
  .faq-layout {
    gap: 34px;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }

  .section-copy > p,
  .section-heading > p {
    font-size: .96rem;
  }

  .audience-pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .audience-pills span {
    justify-content: flex-start;
    width: 100%;
    box-shadow: none;
  }

  .benefit-panel {
    border-radius: 18px;
  }

  .benefit-panel article {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 17px;
  }

  .benefit-number {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .benefit-panel h3 {
    font-size: 1.03rem;
  }

  .benefit-panel p {
    font-size: .86rem;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading > p {
    margin-inline: 0;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .how-grid li {
    min-height: auto;
    padding: 20px 18px;
  }

  .step-icon {
    width: 48px;
    height: 48px;
  }

  .step-number {
    top: 18px;
    right: 18px;
  }

  .how-grid h3 {
    margin-top: 17px;
  }

  .integrator-note {
    align-items: flex-start;
    gap: 13px;
    padding: 19px 17px;
  }

  .integrator-note > svg {
    width: 30px;
    height: 30px;
  }

  .faq-copy .button {
    width: 100%;
  }

  .faq-list summary {
    padding: 17px 16px;
    font-size: .9rem;
  }

  .faq-list p {
    padding: 0 16px 17px;
    font-size: .86rem;
  }

  .final-cta {
    padding: 54px 0;
  }

  .final-cta-inner {
    gap: 28px;
  }

  .final-actions {
    width: 100%;
    flex-direction: column;
  }

  .final-actions .button {
    width: 100%;
  }

  .footer-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 25px 0;
  }

  .site-footer p {
    margin: 0;
  }

  .contact-dialog {
    width: calc(100% - 16px);
    max-height: 94dvh;
    border-radius: 17px;
  }

  .contact-form {
    max-height: 94dvh;
    overflow-y: auto;
    padding: 29px 18px 22px;
  }

  .contact-form h2 {
    max-width: calc(100% - 40px);
    font-size: 1.65rem;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 430px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div,
  .trust-grid > div:nth-child(even),
  .trust-grid > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 360px) {
  .brand-divider {
    display: none;
  }

  .brand-name {
    font-size: .84rem;
  }
}

/* =========================================================
   V5 — correção de navegação, encontro das seções e contraste
   Mantém o desenho original e ajusta apenas ritmo/UX.
   ========================================================= */

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}

#inicio,
#planos,
#beneficios,
#como-funciona,
#duvidas,
#contato {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* Menos espaço morto ao acessar uma seção pelo menu. */
.section {
  padding: clamp(54px, 6vw, 82px) 0;
}

.section-heading {
  margin-bottom: clamp(28px, 3vw, 38px);
}

/* Separação visual mais clara entre os blocos, sem alterar a identidade. */
.operation-section {
  background: #f3edf7;
}

.how-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(123, 47, 183, .08), transparent 28%),
    linear-gradient(180deg, #eee5f4 0%, #f5f0f8 100%);
  border-top: 1px solid rgba(101, 38, 154, .10);
  border-bottom: 1px solid rgba(101, 38, 154, .10);
}

.faq-section {
  background: #f7f2f9;
}

/* Os cards continuam brancos para ganhar destaque sobre o novo fundo. */
.how-grid li,
.benefit-panel,
.faq-list details {
  background: rgba(255, 255, 255, .98);
}

/* Estado ativo mais nítido e sem parecer apenas "hover". */
.main-nav a.is-active,
.main-nav a[aria-current="page"] {
  color: var(--purple-800);
  background: #eee3f6;
  box-shadow: inset 0 -3px 0 var(--purple-600);
}

.main-nav a {
  position: relative;
}

/* Evita que o cabeçalho da seção fique visualmente distante do conteúdo. */
.how-section .section-heading {
  max-width: 960px;
}

@media (max-width: 1080px) {
  .main-nav a.is-active,
  .main-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--purple-600);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }
}

/* =========================================================
   V6 — ajuste pontual da seção "Como funciona"
   Reduz o espaço superior e mantém a observação final visível.
   ========================================================= */
.how-section {
  padding-top: clamp(30px, 3.2vw, 44px);
  padding-bottom: clamp(40px, 4.5vw, 62px);
}

.how-section .section-heading {
  margin-bottom: clamp(22px, 2.4vw, 30px);
}

.how-section .section-heading h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.how-section .how-grid li {
  min-height: 228px;
  padding: 22px 24px;
}

.how-section .how-grid h3 {
  margin-top: 17px;
}

.how-section .integrator-note {
  margin-top: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (max-width: 760px) {
  .how-section {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .how-section .how-grid li {
    min-height: auto;
    padding: 19px 17px;
  }
}
