/* Home e paginas publicas */
.home-body {
  background:
    radial-gradient(circle at top left, rgba(32, 116, 147, .16), transparent 30%),
    radial-gradient(circle at top right, rgba(13, 47, 79, .12), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, #edf4f9 100%);
  color: var(--color-text);
  overflow-x: hidden;
}

.home-body a,
.home-body a:visited,
.home-body a:hover,
.home-body a:focus,
.home-body a:active {
  text-decoration: none;
}

.home-body a:focus-visible {
  outline: 3px solid rgba(32, 116, 147, .28);
  outline-offset: 3px;
  border-radius: 8px;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 249, 252, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 43, 70, .08);
}

.home-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: 16px 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
}

.home-brand .brand-logo {
  display: block;
  height: 60px;
  width: auto;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.home-nav a {
  color: var(--color-graphite);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.home-nav a:hover,
.home-nav a:focus-visible {
  color: var(--color-primary);
  opacity: .92;
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-page {
  display: block;
}

.home-hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home-hero::before {
  width: 360px;
  height: 360px;
  right: -130px;
  top: -140px;
  background: radial-gradient(circle, rgba(32, 116, 147, .18), transparent 70%);
}

.home-hero::after {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(13, 47, 79, .14), transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  margin: 0 0 var(--sp-4);
  color: var(--color-primary);
  font-size: clamp(2.45rem, 4.8vw, 4.8rem);
  line-height: .98;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 var(--sp-5);
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 43, 70, .10);
  background: rgba(255, 255, 255, .72);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(13, 47, 79, .06);
}

.hero-preview {
  position: relative;
}

.hero-preview__shell {
  border-radius: 28px;
  border: 1px solid rgba(15, 43, 70, .10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(245, 249, 253, .94)),
    linear-gradient(135deg, rgba(32, 116, 147, .08), rgba(13, 47, 79, .06));
  box-shadow: 0 28px 70px rgba(13, 47, 79, .14);
  padding: 22px;
}

.hero-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.hero-preview__header strong {
  display: block;
  color: var(--color-primary);
  font-size: var(--fs-md);
}

.hero-preview__header span {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
}

.hero-preview__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(25, 154, 120, .10);
  color: #17664e;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d8b6b;
  box-shadow: 0 0 0 6px rgba(29, 139, 107, .12);
}

.hero-preview__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.hero-preview__metrics article,
.hero-preview__chart,
.hero-preview__list article {
  border-radius: 18px;
  border: 1px solid rgba(15, 43, 70, .09);
  background: rgba(255, 255, 255, .86);
}

.hero-preview__metrics article {
  min-height: 92px;
  padding: 16px;
}

.hero-preview__metrics span {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  margin-bottom: 10px;
}

.hero-preview__metrics strong {
  color: var(--color-primary);
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1;
}

.hero-preview__chart {
  padding: 18px;
  margin-bottom: 12px;
}

.hero-preview__chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: 16px;
}

.hero-preview__chart-head strong {
  color: var(--color-primary);
  font-size: var(--fs-sm);
}

.hero-preview__chart-head span {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
}

.hero-preview__bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 132px;
}

.hero-preview__bars span {
  display: block;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #2f8db0 0%, #0f4e73 100%);
  box-shadow: 0 10px 18px rgba(13, 47, 79, .12);
}

.hero-preview__bars .bar-1 { height: 44%; }
.hero-preview__bars .bar-2 { height: 68%; }
.hero-preview__bars .bar-3 { height: 54%; }
.hero-preview__bars .bar-4 { height: 82%; }
.hero-preview__bars .bar-5 { height: 63%; }
.hero-preview__bars .bar-6 { height: 92%; }
.hero-preview__bars .bar-7 { height: 76%; }

.hero-preview__list {
  display: grid;
  gap: 12px;
}

.hero-preview__list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32, 116, 147, .10);
  color: var(--color-secondary);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.hero-preview__list strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-size: var(--fs-sm);
}

.hero-preview__list p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.home-section {
  padding: 72px 0;
}

.home-section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(243, 247, 251, .82));
  border-top: 1px solid rgba(15, 43, 70, .05);
  border-bottom: 1px solid rgba(15, 43, 70, .05);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: var(--sp-8);
}

.section-head--wide {
  max-width: 800px;
}

.section-head h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-secondary);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.insight-card {
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(15, 43, 70, .08);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 20px 42px rgba(13, 47, 79, .07);
}

.insight-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32, 116, 147, .10);
  color: var(--color-secondary);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.insight-card h3,
.flow-card h3,
.module-card h3,
.security-card h3,
.plan-card h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: var(--fs-lg);
}

.insight-card p,
.flow-card p,
.module-card p,
.security-card p,
.plan-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.flow-card {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(15, 43, 70, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 248, 252, .92));
  box-shadow: 0 18px 34px rgba(13, 47, 79, .06);
}

.flow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin-bottom: var(--sp-3);
  border-radius: 14px;
  background: rgba(32, 116, 147, .12);
  color: var(--color-secondary);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.module-card {
  position: relative;
  min-height: 182px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 43, 70, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 38px rgba(13, 47, 79, .06);
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #236f8e 0%, #1d8b6b 100%);
}

.module-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 47, 79, .08);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.section-note {
  margin-top: var(--sp-5);
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 43, 70, .08);
  background: rgba(255, 255, 255, .75);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.section-note a {
  color: var(--color-secondary);
  font-weight: 700;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.security-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 43, 70, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(245, 249, 253, .94));
  box-shadow: 0 18px 32px rgba(13, 47, 79, .05);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(15, 43, 70, .08);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 40px rgba(13, 47, 79, .06);
}

.plan-card--teal {
  border-color: rgba(29, 139, 107, .22);
  box-shadow: 0 24px 52px rgba(29, 139, 107, .12);
}

.plan-card--navy {
  border-color: rgba(13, 47, 79, .18);
  box-shadow: 0 24px 52px rgba(13, 47, 79, .10);
}

.plan-card--sand {
  border-color: rgba(205, 162, 109, .22);
  box-shadow: 0 24px 52px rgba(205, 162, 109, .12);
}

.plan-card__header {
  margin-bottom: var(--sp-4);
}

.plan-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32, 116, 147, .10);
  color: var(--color-secondary);
  font-size: var(--fs-xs);
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-card__price {
  margin-bottom: var(--sp-4);
}

.plan-card__price strong {
  display: block;
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan-card__price span {
  display: block;
  margin-top: 6px;
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.plan-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan-card__list li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.plan-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  background: url("../images/icon/check.svg") center/14px 14px no-repeat;
  color: #1d8b6b;
  font-weight: 800;
}

.plan-card__footer {
  margin-top: auto;
  padding-top: var(--sp-5);
}

.home-cta {
  padding: 16px 0 76px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .14), transparent 26%),
    linear-gradient(135deg, #0f2b46 0%, #236f8e 55%, #1d8b6b 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(13, 47, 79, .20);
}

.cta-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, .82);
}

.cta-band .eyebrow::before {
  background: rgba(255, 255, 255, .82);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.cta-band .btn-secondary {
  background: rgba(255, 255, 255, .92);
  color: var(--color-primary);
  border-color: rgba(255, 255, 255, .24);
}

.cta-band .btn-secondary:hover {
  background: #fff;
  color: var(--color-primary);
}

.home-footer {
  background: #081a2b;
  color: #c4d0dd;
  padding: 24px 0;
}

.home-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
}

.home-footer__copy strong {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.home-footer__copy a {
  color: #d8e7f4;
  font-weight: 800;
}

.home-footer__copy a:hover,
.home-footer__copy a:focus-visible {
  color: #fff;
}

.home-footer__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.home-footer__links a {
  color: #d0dbe7;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.home-footer__links a:hover,
.home-footer__links a:focus-visible {
  color: #fff;
}

.legal-body .home-header {
  position: sticky;
}

.legal-page {
  padding: 56px 0 72px;
}

.legal-shell {
  max-width: 1020px;
}

.legal-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.legal-hero h1 {
  margin: 0 0 var(--sp-2);
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.legal-hero p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 760px;
  line-height: 1.7;
}

.content-card {
  padding: var(--sp-5);
  border-radius: 28px;
  border: 1px solid rgba(15, 43, 70, .08);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 52px rgba(13, 47, 79, .08);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.legal-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 43, 70, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 249, 252, .94));
}

.legal-card h2,
.legal-card h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: var(--fs-lg);
}

.legal-card p,
.legal-note {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.legal-note {
  margin-top: var(--sp-5);
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(32, 116, 147, .18);
  background: rgba(32, 116, 147, .08);
}

.legal-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .home-header__inner {
    grid-template-columns: auto 1fr;
  }

  .home-header__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

@media (min-width: 768px) and (max-width: 991px) {
  .home-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-nav,
  .home-header__actions {
    justify-content: flex-start;
  }

  .hero-grid,
  .cta-band,
  .legal-hero,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .security-grid,
  .flow-grid,
  .module-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (min-width: 577px) and (max-width: 767px) {
  .home-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-nav,
  .home-header__actions {
    justify-content: flex-start;
  }

  .home-hero {
    padding: 60px 0 52px;
  }

  .hero-grid,
  .cta-band,
  .legal-hero,
  .legal-grid,
  .insight-grid,
  .security-grid,
  .flow-grid,
  .module-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .cta-band__actions,
  .legal-actions {
    justify-content: flex-start;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 321px) and (max-width: 576px) {
  .home-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px 16px;
  }

  .home-header__actions,
  .hero-actions,
  .cta-band__actions,
  .legal-actions {
    width: 100%;
  }

  .home-header__actions .btn,
  .hero-actions .btn,
  .cta-band__actions .btn,
  .legal-actions .btn {
    width: 100%;
  }

  .home-hero {
    padding: 48px 0 44px;
  }

  .home-brand .brand-logo {
    height: 48px;
  }

  .hero-grid,
  .cta-band,
  .legal-hero,
  .legal-grid,
  .insight-grid,
  .security-grid,
  .flow-grid,
  .module-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview__metrics {
    grid-template-columns: 1fr;
  }

  .hero-preview__bars {
    gap: 8px;
    min-height: 116px;
  }

  .home-section {
    padding: 56px 0;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .home-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-nav {
    display: none;
  }

  .home-header__actions,
  .hero-actions,
  .cta-band__actions,
  .legal-actions {
    width: 100%;
  }

  .home-header__actions .btn,
  .hero-actions .btn,
  .cta-band__actions .btn,
  .legal-actions .btn {
    width: 100%;
  }

  .home-hero {
    padding: 44px 0 40px;
  }

  .home-brand .brand-logo {
    height: 44px;
  }

  .hero-grid,
  .cta-band,
  .legal-hero,
  .legal-grid,
  .insight-grid,
  .security-grid,
  .flow-grid,
  .module-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview__metrics {
    grid-template-columns: 1fr;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
  }
}
