/* ==========================================================================
   WhatsApp Automation API — Landing Page
   Design tokens, layout and components
   ========================================================================== */

:root {
  /* Cores da marca */
  --color-primary: #25D366;
  --color-primary-dark: #1FB85A;
  --color-secondary: #128C7E;
  --color-dark: #075E54;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-text: #0e1a17;
  --color-text-muted: #5b6b68;
  --color-border: #e6ebe9;

  --gradient-primary: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  --gradient-dark: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  --gradient-radial: radial-gradient(circle at 30% 20%, rgba(37, 211, 102, 0.16), transparent 60%);

  /* Tipografia */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Raios e sombras */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(7, 94, 84, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 94, 84, 0.09);
  --shadow-lg: 0 20px 48px rgba(7, 94, 84, 0.14);

  --transition-fast: 0.2s ease;
  --transition-med: 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  --header-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 800px; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition-fast); }

.btn--primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-secondary);
  background: rgba(18, 140, 126, 0.06);
  transform: translateY(-2px);
}

.btn--light {
  background: #ffffff;
  color: var(--color-dark);
  box-shadow: var(--shadow-lg);
}
.btn--light:hover { transform: translateY(-2px) scale(1.02); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar__brand-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar__brand-icon svg { width: 19px; height: 19px; }
.navbar__brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-dark);
}
.navbar__brand-text strong { font-weight: 800; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}
.navbar__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.navbar__link:hover { color: var(--color-dark); }
.navbar__link:hover::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.navbar__toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  margin: 0 auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  border-radius: 2px;
}
.navbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-active span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 3.5rem) 0 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-radial), var(--color-bg-alt);
  z-index: -1;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(7, 94, 84, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(37, 211, 102, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.eyebrow--center { margin-left: auto; margin-right: auto; display: table; }
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero__trust svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; }

.hero__scroll-cue {
  display: none;
}

/* ---- Hero visual: flow illustration (signature element) ---- */
.hero__visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__line {
  stroke: var(--color-secondary);
  stroke-width: 1.5;
  opacity: 0.35;
  fill: none;
  stroke-dashoffset: 0;
  animation: dashFlow 3.5s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -140; } }

.flow__glow {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.14;
  filter: blur(60px);
  top: 40%; left: 40%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.flow__card {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 0.9rem 1.05rem;
  animation: floatCard 5s ease-in-out infinite;
}

.flow__card--request {
  top: 2%;
  left: 0;
  width: 240px;
  animation-delay: 0s;
}
.flow__card--webhook {
  top: 30%;
  right: 0;
  width: 160px;
  animation-delay: 0.6s;
}
.flow__card--chat {
  bottom: 18%;
  right: 6%;
  width: 220px;
  animation-delay: 1.2s;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}
.flow__card--response {
  bottom: 0;
  left: 6%;
  width: 190px;
  animation-delay: 1.8s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.flow__card-head { display: flex; gap: 5px; margin-bottom: 0.6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.flow__method {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.flow__method span { color: var(--color-secondary); font-weight: 500; }

.flow__code-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tok-key { color: var(--color-secondary); }
.tok-str { color: var(--color-primary-dark); }
.tok-num { color: #b3852d; }

.flow__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  background: rgba(18, 140, 126, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}
.flow__webhook-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
}
.flow__pulse-row { display: flex; gap: 5px; }
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulseSeq 1.4s ease-in-out infinite;
}
.pulse-dot:nth-child(2) { animation-delay: 0.2s; }
.pulse-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulseSeq {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.flow__status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #1f8a3c;
  background: rgba(37, 211, 102, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.55rem;
}

.chat-bubble {
  background: #dcf8c6;
  border-radius: 14px 14px 4px 14px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: #111b17;
  box-shadow: var(--shadow-md);
  position: relative;
}
.chat-bubble__meta {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
  font-size: 0.62rem;
  color: #5f7a6f;
  margin-top: 0.3rem;
}

/* ==========================================================================
   Section generic
   ========================================================================== */
.section {
  padding: var(--space-2xl) 0;
}
.section--benefits, .section--ideal, .section--why { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-xl);
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}
.section-subtitle--left { margin: 0 0 1.75rem; max-width: 46ch; }

/* ==========================================================================
   Benefits grid
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.benefit-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 211, 102, 0.35);
}
.benefit-card__icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.1);
  color: var(--color-secondary);
  margin-bottom: 1.1rem;
}
.benefit-card__icon svg { width: 22px; height: 22px; }
.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.benefit-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Features grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-item__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
}
.feature-item__icon svg { width: 19px; height: 19px; }
.feature-item h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ==========================================================================
   Ideal para grid
   ========================================================================== */
.ideal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.ideal-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.ideal-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #ffffff, rgba(37, 211, 102, 0.06));
}

/* ==========================================================================
   Timeline (Como funciona)
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.timeline__step {
  position: relative;
  padding-left: 4.25rem;
}
.timeline__step::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -2.25rem;
  width: 2px;
  background: linear-gradient(var(--color-primary), transparent);
}
.timeline__step:last-child::before { display: none; }
.timeline__marker {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.timeline__step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.timeline__step p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   Por que RapidAPI
   ========================================================================== */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.why__list { margin: 1.25rem 0 2rem; }
.why__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.98rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.why__list li:last-child { border-bottom: none; }
.why__icon { font-size: 1.1rem; }

.why__visual { display: flex; justify-content: center; }
.rapid-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  width: 100%;
  max-width: 340px;
}
.rapid-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 0.55rem 0;
}
.rapid-card__row strong { color: var(--color-dark); font-family: var(--font-display); }
.rapid-card__status { color: var(--color-primary-dark); }
.rapid-card__bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  overflow: hidden;
  margin: 0.4rem 0;
}
.rapid-card__bar-fill {
  height: 100%;
  width: 25%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  animation: barGrow 2.2s ease-out forwards;
}
@keyframes barGrow { from { width: 0%; } to { width: 25%; } }

/* ==========================================================================
   Code block
   ========================================================================== */
.code-block {
  background: #0c1a17;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}
.code-block__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: #0f2420;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-block__dots { display: flex; gap: 6px; }
.code-block__title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.code-block__copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.code-block__copy svg { width: 14px; height: 14px; }
.code-block__copy:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--color-primary);
  color: #fff;
}
.code-block__copy.is-copied {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #08251b;
}
.code-block__pre {
  margin: 0;
  padding: 1.5rem 1.4rem;
  overflow-x: auto;
}
.code-block__pre code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #d9f2e6;
  white-space: pre;
}

/* ==========================================================================
   Grid "Ver mais" toggle (mobile)
   ========================================================================== */
.grid-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin: 1.75rem auto 0;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-secondary);
  background: rgba(18, 140, 126, 0.08);
  border: 1.5px solid rgba(18, 140, 126, 0.25);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.grid-toggle svg {
  width: 16px; height: 16px;
  transition: transform var(--transition-med);
}
.grid-toggle:hover {
  background: rgba(18, 140, 126, 0.14);
  border-color: var(--color-secondary);
}
.grid-toggle.is-expanded svg { transform: rotate(180deg); }

/* ==========================================================================
   CTA intermediário (banners de conversão entre seções)
   ========================================================================== */
.cta-banner {
  padding: var(--space-lg) 0;
  background: var(--color-bg);
}
.cta-banner--alt { background: var(--color-bg-alt); }

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.cta-banner__text h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.cta-banner__text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.cta-banner .btn { width: 100%; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion__item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
}
.accordion__chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--color-secondary);
  transition: transform var(--transition-med);
}
.accordion__item.is-open .accordion__chevron { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-med), padding var(--transition-med);
  padding: 0 1.4rem;
}
.accordion__item.is-open .accordion__panel {
  padding: 0 1.4rem 1.3rem;
}
.accordion__panel p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   CTA Final
   ========================================================================== */
.cta-final {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(37, 211, 102, 0.35), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(37, 211, 102, 0.25), transparent 55%);
}
.cta-final__inner {
  position: relative;
  text-align: center;
  max-width: 620px;
}
.cta-final h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 1rem;
}
.cta-final p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #051f1a;
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer .navbar__brand-text { color: #fff; }
.footer__brand p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 32ch;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--color-primary); }

.footer__note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  max-width: 70ch;
  margin-bottom: 0.75rem;
}
.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 20px);
  background: var(--color-dark);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 200;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .hero__scroll-cue {
    display: block;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero__scroll-cue span {
    display: block;
    width: 22px; height: 34px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    position: relative;
  }
  .hero__scroll-cue span::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    width: 4px; height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    animation: scrollCue 1.8s ease-in-out infinite;
  }
  @keyframes scrollCue {
    0% { opacity: 1; top: 6px; }
    70% { opacity: 0; top: 16px; }
    100% { opacity: 0; top: 6px; }
  }
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
  .hero__content { max-width: 560px; }
  .why__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .timeline { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #ffffff;
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: var(--shadow-md);
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .flow__card--request { width: 200px; }
  .flow__card--chat { width: 180px; }
  .cta-final__inner .btn { width: 100%; }
}

/* Grids colapsáveis: em telas pequenas mostramos apenas os primeiros itens
   e revelamos o restante com o botão "Ver mais". A regra só se aplica
   enquanto o grid NÃO estiver com a classe .is-expanded. */
@media (max-width: 680px) {
  .collapsible-grid[data-limit="4"]:not(.is-expanded) > *:nth-child(n + 5) { display: none; }
  .collapsible-grid[data-limit="6"]:not(.is-expanded) > *:nth-child(n + 7) { display: none; }

  .grid-toggle.has-hidden-items { display: inline-flex; }
}

@media (min-width: 640px) {
  .cta-banner__inner {
    flex-direction: row;
    align-items: center;
    padding: 2.25rem 2.5rem;
  }
  .cta-banner .btn { width: auto; flex-shrink: 0; }
}
