@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: hsl(220, 72%, 42%);
  --primary-foreground: #fff;
  --secondary: hsl(216, 28%, 17%);
  --muted-foreground: hsl(215, 19%, 34%);
  --accent: hsl(220, 80%, 95%);
  --accent-foreground: hsl(220, 80%, 40%);
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(216, 28%, 17%);
  --card: #fff;
  --border: hsl(214, 20%, 90%);
  --radius: 0.75rem;
  --font-sans: "Plus Jakarta Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.nav-cta:hover {
  filter: brightness(1.05);
  color: var(--primary-foreground);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch-sep {
  color: var(--border);
  font-weight: 400;
  user-select: none;
}

.lang-switch-link {
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.lang-switch-link:hover {
  color: var(--primary);
  background: var(--accent);
}

.lang-switch-link.is-active {
  color: var(--primary);
  cursor: default;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Timeline - Como funciona */
.timeline {
  padding: 5rem 1.5rem;
}

.timeline-header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.timeline-subtitle {
  font-size: 1.125rem;
  color: hsl(215, 20%, 30%);
}

.timeline-inner {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}


.timeline-line-svg {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4rem;
  margin-left: -2rem;
  height: 100%;
  color: var(--primary);
  opacity: 0.35;
  pointer-events: none;
  display: none;
}

@media (min-width: 769px) {
  .timeline-line-svg {
    display: block;
  }
}

/* Linha reta tracejada - apenas no mobile */
.timeline-line-mobile {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 2px dashed var(--primary);
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 769px) {
  .timeline-line-mobile {
    display: none;
  }
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}


@media (min-width: 769px) {
  .timeline-step {
    align-items: center;
    gap: 0;
  }

  /* Ordem: conteúdo 1, ícone 2, spacer 3 → passo 1 e 3: [conteúdo][ícone][vazio] */
  .timeline-step-content {
    order: 1;
    width: 41.666%; /* 5/12 */
    max-width: none;
    padding-right: 3rem; /* pr-12: afasta da linha */
    text-align: right;
  }
  .timeline-step-icon {
    order: 2;
    flex: 0 0 16.666%; /* 2/12: coluna central onde a linha passa */
    width: 16.666%;
    display: flex;
    justify-content: center;
  }
  .timeline-step-spacer {
    order: 3;
    width: 41.666%;
    max-width: none;
  }

  /* Passo 2 e 4: [vazio][ícone][conteúdo], texto à esquerda */
  .timeline-step:nth-child(even) .timeline-step-content {
    order: 3;
    padding-right: 0;
    padding-left: 3rem;
    text-align: left;
  }
  .timeline-step:nth-child(even) .timeline-step-spacer {
    order: 1;
  }
}

.timeline-step-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsl(220, 80%, 96%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2; /* caixinha por cima da linha */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.timeline-step-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.timeline-step-content {
  flex: 1;
  max-width: 42%;
}

.timeline-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.timeline-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.timeline-step-desc {
  font-size: 0.9375rem;
  color: hsl(215, 20%, 30%);
  line-height: 1.6;
}

.timeline-step-spacer {
  flex: 1;
  max-width: 42%;
}

@media (max-width: 768px) {
  .timeline-step-content,
  .timeline-step-spacer {
    max-width: none;
    text-align: left;
    padding-left: 0.5rem;
    padding-right: 0;
  }

  .timeline-step-spacer {
    display: none;
  }

  /* Mobile: ícone à esquerda, conteúdo à direita; ordem já é conteúdo, ícone, spacer — forçar [ícone][conteúdo] */
  .timeline-step-content {
    order: 2;
  }
  .timeline-step-icon {
    order: 1;
  }
}

/* CTA Section */
.cta-section {
  padding: 5rem 1.5rem;
}

.cta-card {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.cta-card-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.cta-card-desc {
  font-size: 1.125rem;
  color: hsl(215, 20%, 30%);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .hero-cta {
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-logo img {
  height: 2rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ========== Páginas legais (LGPD, termos, cookies, exclusão) ========== */
.lgpd-page {
  background: var(--background);
}

.lgpd-header {
  padding: 6rem 0 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(220, 80%, 48%) 100%);
  color: white;
  text-align: center;
  margin-top: 65px;
}

.lgpd-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.lgpd-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  margin: 0 auto 0.5rem;
}

.lgpd-content {
  padding: 2.5rem 0;
}

.lgpd-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.lgpd-section h2 {
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.lgpd-section h3 {
  font-size: 1.125rem;
  color: var(--foreground);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.lgpd-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.lgpd-section strong {
  color: var(--foreground);
  font-weight: 600;
}

.privacy-list, .terms-list, .cookies-list, .data-list {
  list-style: none;
  padding-left: 0;
}

.privacy-list li, .terms-list li, .cookies-list li, .data-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.privacy-list li::before, .terms-list li::before, .cookies-list li::before, .data-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.page-link:hover {
  text-decoration: underline;
}

.back-to-home {
  text-align: center;
  margin: 2rem 0;
}

.back-to-home a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.info-box {
  background: hsl(220, 80%, 97%);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.warning-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.warning-box p {
  color: #78350f;
  margin-bottom: 0.5rem;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.steps-list li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 0.75rem;
  background: var(--background);
  border-radius: var(--radius);
  position: relative;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.steps-list li strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-email {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-email:hover {
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .lgpd-header { padding: 5rem 0 2rem; margin-top: 60px; }
  .lgpd-section { padding: 1.5rem 1rem; }
}

/* Footer expandido (Legal + Redes Sociais) */
.footer-dark {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.9);
  border-top: none;
  padding: 2.5rem 1.5rem;
}

.footer-dark .footer-section .footer-section-heading {
  color: white;
}

.footer-dark .footer-section ul a,
.footer-dark .footer-links a {
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-dark .footer-section ul a:hover,
.footer-dark .footer-links a:hover {
  opacity: 1;
}

.footer-dark .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

/* Centraliza logo Contas do Dia e box Saldo 365 na primeira coluna */
.footer-dark .footer-content .footer-section:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top:30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Rodapé páginas ES: sem Saldo 365 — Legal à esquerda, redes à direita */
.footer-dark .footer-content.footer-content--es .footer-section:first-child {
  display: block;
  align-items: stretch;
  text-align: left;
  margin-top: 0;
}

.footer-dark .footer-content.footer-content--es {
  justify-items: start;
}

@media (min-width: 640px) {
  .footer-dark .footer-content.footer-content--es {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-dark .footer-content.footer-content--es .footer-section:last-child {
    justify-self: end;
    text-align: right;
  }
}

.footer-section .footer-section-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--foreground);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: background 0.2s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Bloco comercial "Um produto do Saldo 365" no footer */
.footer-saldo365 {
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  text-align: center;
}
.footer-saldo365 p {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}
.footer-saldo365 a {
  display: inline-block;
  transition: opacity 0.2s;
}
.footer-saldo365 a:hover {
  opacity: 0.9;
}
.footer-saldo365 img {
  height: 2rem;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}
.footer-saldo365 .footer-saldo365-cta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
