/*
  Landing de jipme.com.br. Cores e fonte do design system do app
  (packages/design_system/lib/src/tokens.dart, Nunito). Sem estilo inline:
  a CSP do .htaccess so aceita folhas de estilo do proprio site.
*/

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #FFF8E8;          /* creme */
  --fundo-creme: #FFEFC2;    /* creme200 */
  --superficie: #FFFFFF;
  --borda: #EADFC6;          /* creme300 */
  --texto: #1E2A3A;          /* tinta */
  --texto-suave: #3E5266;    /* tintaSuave */
  --ceu: #3CC4D8;            /* turquesa */
  --sol: #FFC93C;            /* amarelo */
  --duna: #FFD77A;           /* amareloDuna */
  --duna-clara: #FFEFC2;
  --coral: #FF6B4A;
  --coral-sombra: #C23E22;
  --coral-texto: #2A0E05;    /* coralTinta: texto sobre coral */
  --marca-me: #C23E22;
  --link: #0F5E6B;           /* turquesaTexto */
  --foco: #0F7A8A;
  --raio: 20px;
  --largura: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #1E2A3A;
    --fundo-creme: #26303D;
    --superficie: #2E3A4A;
    --borda: #3E5266;
    --texto: #FFF8E8;
    --texto-suave: #C9D3DE;
    --ceu: #13404A;          /* turquesaNoite */
    --duna: #4D3F1C;
    --duna-clara: #26303D;
    --marca-me: #FF6B4A;
    --link: #A6E6EF;
    --foco: #A6E6EF;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible,
.botao:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }

.faixa {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 20px;
}

.pular {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--texto);
  color: var(--fundo);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 10;
}
.pular:focus { top: 12px; }

.visualmente-oculto {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Topo ---------- */

.topo {
  background: var(--ceu);
  color: #1E2A3A;
}
.topo .faixa {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.marca {
  font-weight: 900;
  font-size: 1.75rem;
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1;
}
.marca-jip { color: #1E2A3A; }
.marca-me { color: #C23E22; }
.menu { display: flex; gap: 20px; margin-left: auto; }
.menu a { color: #1E2A3A; font-weight: 700; text-decoration: none; }
.menu a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .topo, .menu a, .marca-jip { color: #FFF8E8; }
  .topo .marca-me { color: #FF6B4A; }
}

@media (max-width: 720px) {
  .menu { display: none; }
  .topo .botao-pequeno { margin-left: auto; }
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.botao-coral {
  background: var(--coral);
  color: var(--coral-texto);
  box-shadow: 0 4px 0 var(--coral-sombra);
}
.botao-coral:hover { background: #F2603F; }
.botao-coral:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-sombra); }
.botao-contorno {
  background: #FFFFFF;
  color: #1E2A3A;
  border: 3px solid #1E2A3A;
}
.botao-contorno:hover { background: #FFF4D6; }
.botao-pequeno { min-height: 42px; padding: 0 18px; font-size: .95rem; box-shadow: 0 3px 0 var(--coral-sombra); }

@media (prefers-reduced-motion: reduce) { .botao { transition: none; } }

/* ---------- Herói ---------- */

.heroi {
  position: relative;
  background: var(--ceu);
  color: #1E2A3A;
  padding: 40px 0 120px;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) { .heroi { color: #FFF8E8; } }

.heroi-grade {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.sobretitulo {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  margin-bottom: .75em;
}
.heroi-sub { font-size: 1.2rem; max-width: 34em; }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.nota-lojas { font-size: .95rem; font-weight: 600; }

.heroi-arte img {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: 0 10px 0 rgba(30, 42, 58, .12);
}

.dunas {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 120px;
}
.duna-fundo { fill: var(--duna); }
.duna-frente { fill: var(--fundo); }

@media (max-width: 820px) {
  .heroi { padding-top: 24px; }
  .heroi-grade { grid-template-columns: 1fr; }
  .heroi-arte { order: -1; }
  .heroi-arte img { max-width: 220px; margin: 0 auto; }
}

/* ---------- Seções ---------- */

.secao { padding: 64px 0; }
.secao-creme { background: var(--fundo-creme); }
.secao h2 { margin-bottom: 28px; }

.cartoes-duplos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cartao {
  background: var(--superficie);
  border: 2px solid var(--borda);
  border-radius: var(--raio);
  padding: 28px;
}
.cartao p { color: var(--texto-suave); }
.link-seta { font-weight: 800; }
.link-seta::after { content: " →"; }

.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.passos li {
  background: var(--superficie);
  border-radius: var(--raio);
  padding: 28px;
  border: 2px solid var(--borda);
}
.passos p { color: var(--texto-suave); margin: 0; }
.passo-numero {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sol);
  color: #1E2A3A;
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.lista-seguranca {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.lista-seguranca li {
  padding-left: 30px;
  position: relative;
  color: var(--texto-suave);
}
.lista-seguranca li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--coral);
}
.lista-seguranca strong { color: var(--texto); }
.aviso-emergencia {
  border-left: 5px solid var(--coral);
  background: var(--superficie);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  margin: 0;
}

.privacidade-grade {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: start;
}
.contato-dpo { font-weight: 700; }
.contato-dpo a { font-size: 1.2rem; }
.docs-legais {
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  border: 2px solid var(--borda);
  border-radius: var(--raio);
  overflow: hidden;
}
.docs-legais a {
  padding: 16px 22px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--borda);
}
.docs-legais a:last-child { border-bottom: 0; }
.docs-legais a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .secao { padding: 48px 0; }
  .cartoes-duplos,
  .passos,
  .lista-seguranca,
  .privacidade-grade { grid-template-columns: 1fr; }
}

/* ---------- Rodapé ---------- */

.rodape {
  background: #1E2A3A;
  color: #FFF8E8;
  padding: 40px 0;
}
.rodape a { color: #A6E6EF; }
.rodape p { margin: 0 0 .5em; }
.marca-rodape .marca-jip { color: #FFF8E8; }
.marca-rodape .marca-me { color: #FF6B4A; }
.rodape-pequeno { font-size: .9rem; color: #C9D3DE; }
@media (prefers-color-scheme: dark) { .rodape { background: #15202C; } }

/* ---------- Página 404 ---------- */

.pagina-simples {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}
.pagina-simples img { width: 180px; margin: 0 auto 24px; border-radius: 50%; }
