/* ===================================================================
   LANDING — Jade Mestre em Perfumaria (template page-jade)
   Carregado só nessa página (ver am_enqueue_jade_landing em functions.php).
   Segue o design system do tema: gold #C8A153 / dark #161616,
   Cinzel (títulos) + Montserrat (corpo).
=================================================================== */

.jl { overflow-x: clip; }

/* 2026-07-10: .btn--outline (style.css) passou a usar --am-gold-darker por padrão
   (a maioria dos usos do site é em fundo claro, onde gold.500 falha 3:1 — ver
   element-specs.md §10). A landing inteira da Jade é fundo escuro (var(--am-bg-hero)
   em toda seção — hero/marquee/stats/features/showcase/tech/final/spotlight/
   taxonomy/beginners), onde gold.500 já passa em 7.48:1 — restaura o dourado puro
   aqui, escopado só a esta página, pros botões "Explorar a loja"/"Ver a coleção".
   2026-07-10 (validação visual local, screenshot jade_desktop.png): a regra sem
   !important perdia pro dourado escuro global em produção/local mesmo com
   especificidade maior (2 classes vs 1) — análise estática não achou outra regra
   concorrente nem outro !important no tema, então a causa raiz não foi
   confirmada, mas o !important blinda a exceção contra qualquer ambiguidade de
   cascata (ordem de enqueue, cache de build, etc.) sem custo — é um seletor já
   scoped só a esta página, não há efeito colateral em outras páginas. */
.jl .btn--outline,
.jl .wp-block-button.btn--outline .wp-block-button__link {
  border-color: var(--am-gold) !important;
  color: var(--am-gold) !important;
}

/* Reveal on scroll — a classe .jl-hidden é aplicada só via JS
   (progressive enhancement: sem JS tudo fica visível). O reveal é
   BIDIRECIONAL: o JS alterna .jl-hidden/.jl-visible ao entrar E sair da
   viewport (descendo ou subindo), em todas as seções. */
.jl-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .5s ease;
}
.jl-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease var(--jl-delay, 0s), transform .7s ease var(--jl-delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .jl-hidden, .jl-visible { opacity: 1; transform: none; transition: none; }
}

/* Tipografia compartilhada */
.jl-eyebrow {
  font-family: var(--am-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--am-gold);
  margin: 0 0 12px;
}
.jl-h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.jl-lead {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--am-text-muted, #9a9a9a);
  font-size: 17px;
  line-height: 1.7;
}

/* ================= HERO ================= */
.jl-hero {
  position: relative;
  background: var(--am-bg-hero, #161616);
  color: #fff;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.jl-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 72% 45%, rgba(200,161,83,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(200,161,83,0.07) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}
.jl-hero__particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200,161,83,0.55);
  animation: jl-float 9s ease-in-out infinite;
}
.jl-hero__particles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.jl-hero__particles span:nth-child(2) { top: 70%; left: 8%;  animation-delay: 1.2s; }
.jl-hero__particles span:nth-child(3) { top: 30%; left: 46%; animation-delay: 2.4s; }
.jl-hero__particles span:nth-child(4) { top: 82%; left: 38%; animation-delay: 3.1s; }
.jl-hero__particles span:nth-child(5) { top: 14%; left: 78%; animation-delay: 1.8s; }
.jl-hero__particles span:nth-child(6) { top: 62%; left: 88%; animation-delay: 0.6s; }
.jl-hero__particles span:nth-child(7) { top: 44%; left: 66%; animation-delay: 4s; }
.jl-hero__particles span:nth-child(8) { top: 88%; left: 72%; animation-delay: 2s; }
@keyframes jl-float {
  0%, 100% { transform: translateY(0);     opacity: .25; }
  50%      { transform: translateY(-26px); opacity: .9;  }
}
@media (prefers-reduced-motion: reduce) {
  .jl-hero__particles span { animation: none; }
}

/* Hero centralizado (coluna única): eyebrow → avatar → Jade → papel →
   slogan → texto → botões, tudo centrado. */
.jl-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
/* Respiro real até o avatar: o halo/anel se estende acima do retrato. */
.jl-hero__inner > .jl-eyebrow { margin-bottom: 38px; }
.jl-hero__inner > .jl-hero__portrait { margin: 0 0 26px; }
.jl-hero__title {
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  margin: 0 0 6px;
  color: var(--am-gold);
}
.jl-hero__role {
  font-family: var(--am-font-heading);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
}
.jl-hero__slogan {
  font-size: clamp(20px, 2.6vw, 26px);
  font-style: italic;
  color: var(--am-dune, #E0D4C3);
  margin: 0 0 16px;
}
.jl-hero__sub {
  color: var(--am-text-muted, #9a9a9a);
  max-width: 620px;
  line-height: 1.7;
  margin: 0 auto 32px;
}
.jl-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.jl-hero__portrait {
  position: relative;
  justify-self: center;
  width: min(320px, 72vw);
  aspect-ratio: 1;
}
/* Contêiner do avatar vivo (módulo compartilhado avatar-vivo.css): preenche o
   quadrado do retrato e é a âncora do anel "Sinal de Vida" (.am-vivo__ring). */
.jl-hero__portrait .jl-hero__avatar {
  position: absolute;
  inset: 0;
}
.jl-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(200,161,83,0.6);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 60px rgba(200,161,83,0.18);
  display: block;
}
/* O anel do módulo acompanha a borda do retrato (o retrato tem borda de 2px);
   afasta um pouco para o glow do "Sinal de Vida" respirar em volta. */
.jl-hero__avatar .am-vivo__ring { inset: -6px; border-color: rgba(200,161,83,0.45); }
.jl-hero__ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(200,161,83,0.35);
  animation: jl-ring 14s linear infinite;
}
.jl-hero__ring::before {
  content: '◆';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--am-gold);
  font-size: 12px;
}
@keyframes jl-ring { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .jl-hero__ring { animation: none; }
}

/* ================= MARQUEE ================= */
.jl-marquee {
  background: var(--am-bg-hero); /* 2026-07-10: was #0f0f0f — consolidated near-black drift, token-architecture.md §4 */
  border-top: 1px solid rgba(200,161,83,0.25);
  border-bottom: 1px solid rgba(200,161,83,0.25);
  overflow: hidden;
  padding: 14px 0;
}
.jl-marquee__track {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  animation: jl-marquee 28s linear infinite;
}
.jl-marquee__track span {
  font-family: var(--am-font-heading);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--am-dune, #E0D4C3);
  white-space: nowrap;
}
.jl-marquee__track i { color: var(--am-gold); font-style: normal; font-size: 10px; }
@keyframes jl-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .jl-marquee__track { animation: none; }
}

/* ================= STATS ================= */
.jl-stats { background: var(--am-bg-hero, #161616); color: #fff; }
.jl-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}
.jl-stat strong {
  display: block;
  font-family: var(--am-font-heading);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--am-gold);
  line-height: 1.1;
  margin-bottom: 8px;
}
.jl-stat span {
  color: var(--am-text-muted, #9a9a9a);
  font-size: 15px;
  line-height: 1.6;
  display: inline-block;
  max-width: 260px;
}

/* ================= FEATURES ================= */
.jl-features { background: var(--am-bg-hero); color: #fff; } /* 2026-07-10: was #101010 — consolidated near-black drift, token-architecture.md §4 */
.jl-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.jl-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(200,161,83,0.22);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.jl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,161,83,0.55);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.jl-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-gold);
  background: rgba(200,161,83,0.1);
  border: 1px solid rgba(200,161,83,0.3);
  margin-bottom: 20px;
}
.jl-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: #fff;
}
.jl-card p {
  color: var(--am-text-muted, #9a9a9a);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Card DESTAQUE (o grande diferencial): largura total no topo da grade,
   layout horizontal (ícone + corpo), fundo dourado sutil e CTA. */
.jl-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(120deg, rgba(200,161,83,0.14) 0%, rgba(200,161,83,0.03) 60%);
  border-color: rgba(200,161,83,0.5);
}
.jl-card--featured:hover { transform: none; box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.jl-card__icon--lg { width: 72px; height: 72px; margin-bottom: 0; }
.jl-card--featured h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 12px;
}
.jl-card--featured p { font-size: 16px; max-width: 760px; }
.jl-card--featured .jl-eyebrow { margin-bottom: 8px; }
.jl-card__cta { margin-top: 20px; }
@media (max-width: 720px) {
  .jl-card--featured { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .jl-card__icon--lg { width: 60px; height: 60px; }
  /* Eyebrow proporcional em telas estreitas (o tracking largo dominava a linha) */
  .jl-eyebrow { font-size: 10px; letter-spacing: 0.2em; }
}

/* ================= SHOWCASE ================= */
.jl-showcase { background: var(--am-bg-hero, #161616); color: #fff; }
.jl-showcase .jl-h2 { margin-bottom: 56px; }
.jl-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}
.jl-show:last-child { margin-bottom: 0; }
.jl-show--invert .jl-show__media { order: 2; }
.jl-show--invert .jl-show__text { order: 1; }
.jl-show__media img {
  width: 100%;
  height: auto;
  /* reserva o espaço ANTES do load (imagens lazy): sem isso a página cresce
     ~900px durante o carregamento e desloca âncoras de scroll/reveal */
  aspect-ratio: 792 / 1232;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(200,161,83,0.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.jl-show__media--wide img { aspect-ratio: 2000 / 1333; }
/* width:100% obrigatório: com justify-self:center o item de grid encolhe para a
   largura intrínseca do conteúdo — que é ~0 enquanto a imagem lazy não carrega */
.jl-show__media { width: 100%; max-width: 420px; justify-self: center; }
.jl-show__media--wide { max-width: 640px; }
.jl-show__text h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 16px;
  color: #fff;
}
.jl-show__text p:not(.jl-eyebrow) {
  color: var(--am-text-muted, #9a9a9a);
  line-height: 1.75;
  font-size: 16px;
}

/* ================= TECH ================= */
.jl-tech { background: var(--am-bg-hero); color: #fff; } /* 2026-07-10: was #101010 — consolidated near-black drift, token-architecture.md §4 */
.jl-tech .jl-h2 { margin-bottom: 48px; }
.jl-tech__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
}
.jl-tech__item {
  border-left: 2px solid var(--am-gold);
  padding-left: 24px;
}
.jl-tech__item h3 { font-size: 20px; margin: 0 0 10px; color: var(--am-gold); }
.jl-tech__item p { color: var(--am-text-muted, #9a9a9a); line-height: 1.7; font-size: 15px; margin: 0; }

/* ================= CTA FINAL ================= */
.jl-final {
  position: relative;
  background: var(--am-bg-hero, #161616);
  color: #fff;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}
.jl-final__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(200,161,83,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.jl-final__inner { position: relative; z-index: 1; }
.jl-final h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  max-width: 760px;
  margin: 0 auto 18px;
}
.jl-final p {
  color: var(--am-text-muted, #9a9a9a);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.jl-final__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================= SPOTLIGHT / SIMILARIDADE ================= */
.jl-spotlight {
  position: relative;
  background: var(--am-bg-hero); /* 2026-07-10: was #101010 — consolidated near-black drift, token-architecture.md §4 */
  color: #fff;
  overflow: hidden;
}
.jl-spotlight__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 30%, rgba(200,161,83,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.jl-spotlight__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.jl-spotlight__text h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 18px;
  color: #fff;
}
.jl-spotlight__text p {
  color: var(--am-text-muted, #9a9a9a);
  line-height: 1.75;
  font-size: 16px;
  margin: 0 0 16px;
}
.jl-spotlight__text strong { color: var(--am-dune, #E0D4C3); font-weight: 600; }
.jl-spotlight__cta { margin-top: 24px; }

/* "Gráfico" de similaridade (ilustrativo) */
.jl-simlist {
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(200,161,83,0.28);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.jl-simrow {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.jl-simrow__name {
  font-family: var(--am-font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--am-dune, #E0D4C3);
}
.jl-simbar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(200,161,83,0.14);
  overflow: hidden;
}
.jl-simbar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--jl-match, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--am-gold-dark, #B28F47), var(--am-gold, #C8A153));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.jl-visible .jl-simbar i,
.jl-simlist.jl-visible .jl-simbar i { transform: scaleX(1); }
.jl-simrow__pct {
  text-align: right;
  font-family: var(--am-font-heading);
  font-size: 15px;
  color: var(--am-gold);
}
.jl-simlist__note {
  margin-top: 4px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--am-text-muted, #9a9a9a);
}
@media (prefers-reduced-motion: reduce) {
  .jl-simbar i { transform: scaleX(1); transition: none; }
}

/* ================= TAXONOMIA AVANÇADA ================= */
.jl-taxonomy { background: var(--am-bg-hero, #161616); color: #fff; }
.jl-taxonomy .jl-lead strong { color: var(--am-dune, #E0D4C3); font-weight: 600; }
.jl-taxonomy__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 8px auto 0;
}
.jl-chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(200,161,83,0.35);
  background: rgba(200,161,83,0.06);
  color: var(--am-dune, #E0D4C3);
  font-family: var(--am-font-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.jl-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(200,161,83,0.7);
  background: rgba(200,161,83,0.12);
}

/* ================= PARA QUEM ESTÁ COMEÇANDO ================= */
.jl-beginners {
  position: relative;
  background: var(--am-bg-hero); /* 2026-07-10: was #101010 — consolidated near-black drift, token-architecture.md §4 */
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.jl-beginners__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(200,161,83,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.jl-beginners__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.jl-beginners__inner h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 auto 20px;
  color: #fff;
}
.jl-beginners__lead {
  color: var(--am-text-muted, #cfc4b4);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 auto 16px;
  max-width: 640px;
}
.jl-beginners__lead strong { color: var(--am-gold); font-weight: 600; }
.jl-beginners__cta { margin-top: 28px; display: flex; justify-content: center; }

/* ================= RESPONSIVO ================= */
@media (max-width: 980px) {
  .jl-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .jl-hero__portrait { width: min(240px, 60vw); }
  .jl-stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .jl-show,
  .jl-show--invert { grid-template-columns: 1fr; gap: 32px; }
  .jl-show--invert .jl-show__media { order: 1; }
  .jl-show--invert .jl-show__text { order: 2; }
  .jl-show__media, .jl-show__media--wide { max-width: 100%; }
  .jl-tech__grid { grid-template-columns: 1fr; gap: 32px; }
  .jl-spotlight__inner { grid-template-columns: 1fr; gap: 36px; }
  .jl-simlist { order: 2; }
}
@media (max-width: 640px) {
  .jl-features__grid { grid-template-columns: 1fr; }
}
