/* ==========================================================================
   Econvênios — Design tokens
   ========================================================================== */
:root {
  --primary: #1c398e;
  --primary-dark: #132963;
  --primary-light: #1e40af;
  --accent: #7ccf00;
  --accent-dark: #5ea500;
  --footer-bg: #101828;

  --text: #1c1c1c;
  --text-muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e3e7ee;

  --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius: 0.65rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0, 20, 50, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 20, 50, 0.10);
  --shadow-lg: 0 20px 48px rgba(0, 20, 50, 0.14);

  --container-w: 1280px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

.btn--ghost {
  background: transparent;
  color: #475569;
  font-weight: 400;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.btn--ghost:hover { background: var(--bg-alt); color: #1e293b; transform: none; }
.btn--ghost .icon { width: 16px; height: 16px; }
.btn--ghost .icon--chevron { width: 12px; height: 12px; }

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn .icon--arrow { width: 20px; height: 20px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.header__logo img { height: 30px; width: auto; }

.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: #475569;
  transition: color 0.15s ease;
}
.nav a:hover { color: #1e293b; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 76px;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.mobile-nav.is-open { max-height: 320px; }
.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: #fff;
  padding: 32px 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 3.3fr 1fr;
  align-items: start;
  gap: 24px;
}
.hero__product-logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 24px;
}
.hero__content h1 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 2.65rem;
  color: var(--text-muted);
  max-width: none;
  line-height: 1.3;
  margin-bottom: 220px;
}
.hero__tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--accent);
  font-size: 1.125rem;
  padding: 12px 24px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__login { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.hero__login a { color: var(--primary); font-weight: 600; }
.hero__login a:hover { text-decoration: underline; }

.hero__media { display: flex; justify-content: flex-end; }
.hero__app-img {
  max-width: 280px;
  border-radius: 10px;
  border: 4px solid var(--accent);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Asaas BaaS feature block
   ========================================================================== */
.baas-feature { background: #fff; padding: 48px 0; }
.baas-feature__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.baas-feature__icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.baas-feature__icon svg { width: 32px; height: 32px; color: #fff; }
.baas-feature__text { flex: 1; }
.baas-feature__text h3 { font-size: 1.15rem; margin-bottom: 6px; }
.baas-feature__text p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
.baas-feature__seal { flex: none; }

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
#features .section__header,
#convenios .section__header {
  max-width: none;
}
#features .section__header h2,
#convenios .section__header h2 {
  white-space: nowrap;
  font-size: clamp(1.15rem, 2.9vw, 2.2rem);
}
.section__header p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

#features .section__header p { color: var(--primary-light); font-weight: 600; }

/* ==========================================================================
   Problema / Solução
   ========================================================================== */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.ps-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.ps-col--problem { border-top: 4px solid #d64545; }
.ps-col--solution {
  border-top: 4px solid var(--accent);
  background: var(--primary);
  color: rgba(255, 255, 255, 0.92);
}
.ps-col h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ps-col--problem h3 { color: #c0392b; }
.ps-col--solution h3 { color: var(--accent); }

.ps-list { display: flex; flex-direction: column; gap: 20px; }
.ps-list li { display: flex; align-items: flex-start; gap: 16px; }
.ps-list li strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}
.ps-col--solution .ps-list li strong { color: #fff; }
.ps-icon {
  flex: none;
  width: 26px;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.4;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  text-align: center;
}
.stat {
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  background: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
  color: #fff;
}
.stat:nth-child(3),
.stat:nth-child(4) {
  background: linear-gradient(to bottom right, var(--accent), var(--accent-dark));
  color: var(--primary);
}
.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.1rem;
  color: inherit;
  margin-bottom: 8px;
}
.stat__label { font-size: 0.9rem; color: inherit; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.feature-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.feature-card__icon--circle {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon--circle svg { width: 40px; height: 40px; color: #fff; }
.feature-card__icon--img { flex: none; width: 112px; height: 112px; object-fit: contain; }
.feature-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.supported-by {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-top: 48px;
  color: #fff;
}
.supported-by > p {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.125rem;
}
.supported-by__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.supported-by__brand { display: flex; flex-direction: column; align-items: center; }
.supported-by__brand img { height: 40px; width: auto; object-fit: contain; margin-bottom: 8px; }
.supported-by__brand p {
  font-size: 0.75rem;
  color: #d1d5db;
  max-width: 130px;
  margin: 0;
}
.supported-by__divider { width: 1px; height: 64px; background: var(--accent); }
.supported-by__text { display: flex; flex-direction: column; text-align: left; }
.supported-by__text strong { color: #fff; font-family: var(--font-heading); font-size: 0.9rem; }
.supported-by__text span { color: #d1d5db; font-size: 0.75rem; }

/* ==========================================================================
   Clients grid
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.clients-grid__card {
  background: #fff;
  border-radius: var(--radius-lg);
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  height: 128px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clients-grid__card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card--popular {
  background: var(--primary);
  color: #fff;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.price-card--popular .price-card__desc,
.price-card--popular .price-card__price,
.price-card--popular .price-card__min,
.price-card--popular .price-card__list { color: #fff; }
.price-card--popular h3 { color: #fff; }
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-card__desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.price-card__price { margin-bottom: 24px; }
.price-card__amount {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--primary);
}
.price-card__suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.price-card--popular .price-card__amount { color: #fff; }
.price-card--popular .price-card__suffix { color: #d1d5db; }
.price-card__min { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.price-card .btn { width: 100%; margin-bottom: 28px; }
.price-card__list { display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.price-card__list li { display: flex; align-items: flex-start; gap: 8px; }
.price-card__list .check-icon { color: var(--accent); font-weight: 700; flex: none; }
.price-card--popular .price-card__list .check-icon { color: var(--accent); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--primary);
  padding: 88px 0;
  text-align: center;
  color: #fff;
}
.cta-final h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.cta-final p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__logo { height: 26px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer__col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { transition: color 0.15s ease; }
.footer__col a:hover { color: #fff; }

.footer__accelerators {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__accelerators > p {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer__accelerators-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__accelerators-logos img { height: 36px; width: auto; opacity: 0.9; }

.footer__bottom { padding-top: 24px; font-size: 0.82rem; opacity: 0.7; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__content h1 { margin-bottom: 32px; }
  .hero__cta { align-items: center; }
  .hero__media { order: -1; margin-bottom: 24px; }
  .hero__app-img { max-width: 240px; }

  .baas-feature__inner { flex-direction: column; text-align: center; }

  .problem-solution { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--popular { transform: none; order: -1; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .supported-by__logos { flex-direction: column; gap: 20px; }

  #features .section__header h2,
  #convenios .section__header h2 {
    white-space: normal;
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
  }
}
