/* ===================== NexGo Market — Landing "Em Breve" ===================== */

:root {
  /* Marca */
  --green: #1f9d55;
  --green-dark: #167a41;
  --orange: #f2901e;
  --orange-dark: #e07712;
  --ink: #1f2a24; /* texto principal (verde-acinzentado escuro) */
  --muted: #5d6b63; /* texto secundário */
  --cream: #fbfaf6; /* fundo claro/creme */
  --tint: #f3f7f2; /* fundo de seção tonalizada */
  --white: #ffffff;
  --line: #e7e6df;

  /* Semânticos — alternam entre tema claro e escuro */
  --bg: #fbfaf6; /* fundo da página */
  --surface: #ffffff; /* cartões, pílulas, passos */
  --footer-bg: #1f2a24; /* fundo do rodapé */

  --brand-gradient: linear-gradient(90deg, var(--green) 0%, var(--orange) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(31, 42, 36, 0.08);
  --shadow-lg: 0 22px 60px rgba(31, 42, 36, 0.12);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===================== Botões / pílulas ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--primary {
  color: var(--white);
  background: var(--brand-gradient);
  box-shadow: 0 10px 24px rgba(242, 144, 30, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(242, 144, 30, 0.4);
}

.badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge--soon {
  color: var(--white);
  background: var(--brand-gradient);
  box-shadow: 0 6px 16px rgba(31, 157, 85, 0.28);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pill__icon {
  width: 18px;
  height: 18px;
  fill: var(--green);
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(
      900px 480px at 50% -8%,
      rgba(242, 144, 30, 0.1),
      transparent 60%
    ),
    radial-gradient(
      820px 460px at 12% 4%,
      rgba(31, 157, 85, 0.12),
      transparent 60%
    ),
    var(--bg);
}

.hero__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 70%;
  background: radial-gradient(
    closest-side,
    rgba(31, 157, 85, 0.1),
    transparent
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 44px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero__media {
  position: relative;
  width: 100%;
}

.hero__photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

/* Desktop: hero em duas colunas (texto à esquerda, foto à direita) */
@media (min-width: 880px) {
  .hero {
    text-align: left;
  }
  .hero__inner {
    grid-template-columns: 1.04fr 0.96fr;
    gap: 56px;
    align-items: stretch;
  }
  .hero__content {
    align-items: flex-start;
  }
  /* Foto preenche toda a altura do hero (recorta com object-fit) */
  .hero__media {
    display: flex;
  }
  .hero__photo {
    height: 100%;
  }
}

.hero__logo {
  width: min(420px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(31, 42, 36, 0.1));
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero__title strong {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--muted);
}

.hero__subtitle strong {
  color: var(--ink);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

/* ===================== Seções ===================== */

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section--tint {
  background: var(--tint);
}

.eyebrow {
  margin: 0 0 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.section__title {
  margin: 0 auto 14px;
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section__lead {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ===================== Como funciona — passos ===================== */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease,
    background-color 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step__num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: var(--white);
  background: var(--brand-gradient);
  box-shadow: 0 8px 18px rgba(242, 144, 30, 0.32);
}

.step__icon {
  width: 40px;
  height: 40px;
  fill: var(--green);
  margin: 6px 0 14px;
}

.step__title {
  margin: 0 0 6px;
  font-size: 1.16rem;
  font-weight: 700;
}

.step__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ===================== Vantagens — cards ===================== */

.cards {
  margin-top: 46px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease,
    background-color 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    rgba(31, 157, 85, 0.14),
    rgba(242, 144, 30, 0.14)
  );
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--green-dark);
}

.card__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card__text {
  margin: 0;
  color: var(--muted);
}

/* ===================== Localização — endereço e contato ===================== */

.location {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location__address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
}

.location__pin {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  fill: var(--green);
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location__action {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 0.96rem;
}

.location__action svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.btn--outline {
  color: var(--green-dark);
  background: var(--surface);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  color: var(--white);
  background: var(--green);
  transform: translateY(-2px);
}

.location__action:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .location {
    grid-template-columns: 1fr auto;
    padding: 28px 32px;
  }
}

@media (max-width: 560px) {
  .location__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ===================== Mapa ===================== */

.map {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===================== Rodapé ===================== */

.footer {
  background: var(--footer-bg);
  color: #d9e0db;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-top: 52px;
  padding-bottom: 40px;
}

.footer__logo {
  width: 180px;
  height: auto;
  /* logo colorido sobre fundo escuro: leve realce */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.footer__tag {
  margin: 14px 0 0;
  max-width: 36ch;
  color: #aab4ae;
  font-size: 0.96rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #e8ede9;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer__link:hover {
  color: var(--orange);
  transform: translateX(2px);
}

.footer__link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 0.86rem;
  color: #93a09a;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
}

/* ===================== Responsivo ===================== */

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps,
  .cards {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .map {
    aspect-ratio: 4 / 5;
  }
}

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

/* ===================== Tema escuro ===================== */

[data-theme="dark"] {
  --green: #2bb86a;
  --green-dark: #38c878;
  --orange: #ffa23d;
  --orange-dark: #ffb162;
  --ink: #e9f1ec; /* texto vira claro */
  --muted: #9fb1a8;
  --bg: #0d1411; /* fundo escuro esverdeado */
  --surface: #161f1a; /* cartões elevados */
  --tint: #111a16; /* seção tonalizada escura */
  --line: rgba(255, 255, 255, 0.09);
  --footer-bg: #080d0b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
}

/* Brilho neon no logo do hero, no tema escuro */
[data-theme="dark"] .hero__logo {
  filter: drop-shadow(0 0 24px rgba(43, 184, 106, 0.38))
    drop-shadow(0 0 34px rgba(255, 162, 61, 0.24));
}

[data-theme="dark"] .hero__photo {
  border-color: rgba(43, 184, 106, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 46px rgba(43, 184, 106, 0.18);
}

/* ===================== Botão de alternar tema ===================== */

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease,
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(-12deg);
  box-shadow: var(--shadow-lg);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* No claro mostra a lua (clique → escuro); no escuro mostra o sol */
.theme-toggle__sun {
  display: none;
}
.theme-toggle__moon {
  display: block;
}
[data-theme="dark"] .theme-toggle__sun {
  display: block;
}
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

/* ===================== Página de suporte ===================== */

.support-header {
  padding: 28px 0 26px;
  text-align: center;
  background:
    radial-gradient(
      620px 300px at 10% 0%,
      rgba(31, 157, 85, 0.12),
      transparent 65%
    ),
    var(--bg);
}

.support-header__logo {
  width: min(230px, 62vw);
  height: auto;
  margin: 0 auto 20px;
}

.support-header__title {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  line-height: 1.15;
  font-weight: 800;
}

.support-header__lead {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--muted);
}

.support-main {
  padding: 0 0 48px;
}

.support-contacts {
  display: grid;
  gap: 18px;
}

.contact-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card__name {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.contact-card__role {
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card__phone {
  margin: 0 0 18px;
  font-size: 1.18rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.contact-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-card__action {
  min-height: 48px;
  padding: 11px 16px;
  font-size: 0.94rem;
}

.contact-card__action svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contact-card__action--full {
  grid-column: 1 / -1;
}

.contact-card__action--call {
  color: var(--green-dark);
  background: var(--surface);
  border: 2px solid var(--green);
  box-shadow: none;
}

.contact-card__action--call:hover {
  color: var(--surface);
  background: var(--green);
  transform: translateY(-2px);
}

.contact-card__action:focus-visible,
.footer__link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.support-guidance {
  padding-top: 48px;
}

.support-guidance__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}

.support-tip {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.support-tip__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--tint);
  border-radius: 12px;
}

.support-tip__icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.support-tip__title {
  margin: 0 0 3px;
  font-size: 1rem;
}

.support-tip__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 390px) {
  .contact-card__actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .support-header {
    padding: 42px 0 32px;
  }
  .support-main {
    padding-bottom: 64px;
  }
  .support-contacts {
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    align-items: stretch;
  }
  .contact-card {
    display: flex;
    flex-direction: column;
  }
  .contact-card__actions {
    margin-top: auto;
  }
  .support-guidance__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-theme="dark"] .support-header__logo {
  filter: drop-shadow(0 0 20px rgba(43, 184, 106, 0.3));
}

/* ===================== DOCUMENTO LEGAL (privacidade) ===================== */

/* Texto corrido de leitura longa, não cartão. A largura é limitada em `ch`
   porque o que cansa numa política de privacidade é a linha comprida, não o
   tamanho da letra. */
.legal-doc {
  max-width: 76ch;
  display: grid;
  gap: 40px;
}

/* Item de grid nasce com `min-width: auto`, ou seja: estica até caber o filho
   mais largo. Sem isto a `<table>` (min-width 460px) inflava a seção inteira e
   quem rolava de lado era a PÁGINA, não a tabela — medido em bloco de 360px,
   a seção ficava com 460. */
.legal-doc > * {
  min-width: 0;
}

.legal-doc p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* Títulos à esquerda, ao contrário do resto do site: aqui o leitor procura
   uma seção específica ("por quanto tempo guardam?"), e título centralizado
   sobre texto à esquerda faz o olho perder a coluna a cada seção. */
.legal-doc .section__title,
.legal-doc .eyebrow {
  text-align: left;
  margin-bottom: 12px;
}

.legal-doc a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.legal-updated {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.7;
}

/* Observação que interrompe a leitura de propósito — o cliente quer achar
   "e o meu cartão?" sem ler a seção inteira. */
.legal-note {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--tint);
}

.legal-doc .legal-note {
  margin-top: 18px;
  margin-bottom: 0;
}

/* A tabela é larga demais para caber num celular. Rola dentro do próprio
   contêiner: sem isso a PÁGINA inteira rolaria de lado. */
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.legal-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.legal-table thead th {
  font-weight: 700;
  color: var(--ink);
  background: var(--tint);
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table td:first-child {
  font-weight: 600;
}

@media print {
  html,
  body,
  .support-header,
  .contact-card,
  .support-tip,
  .footer {
    color: #1f2a24 !important;
    background: #ffffff !important;
  }
  .theme-toggle {
    display: none !important;
  }
  .contact-card,
  .support-tip,
  .btn {
    box-shadow: none !important;
  }
  /* Política de privacidade impressa: a tabela precisa caber na folha e o
     destaque some se depender de cor de fundo. */
  .legal-table-wrap {
    overflow: visible !important;
  }
  .legal-table {
    min-width: 0 !important;
  }
  .legal-table thead th,
  .legal-note {
    background: #ffffff !important;
    color: #1f2a24 !important;
  }
  .legal-table th,
  .legal-table td,
  .legal-table-wrap {
    border-color: #d9d8d1 !important;
  }
  .legal-doc section {
    break-inside: avoid;
  }
  .contact-card,
  .support-tip {
    break-inside: avoid;
  }
  .support-header__lead,
  .contact-card__role,
  .support-tip__text {
    color: #46534c !important;
  }
  .footer__tag,
  .footer__link,
  .footer__bottom {
    color: #1f2a24 !important;
  }
}
