/* ============================================================
   Lumi — site institucional (lumiskincare.com.br)
   Design system estático, alinhado aos tokens do app.
   Títulos: Fraunces (serif display) · Corpo: Plus Jakarta Sans
   ============================================================ */

/* ---- Tokens (claro = padrão "Luminous Pearl") ---- */
:root {
  --background: #fcfbf8;
  --foreground: #1d1832;
  --muted: #f2ecf4;
  --muted-foreground: #4a4458;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(191, 166, 255, 0.28);

  --primary: #6750a2;
  --secondary: #00658f;
  --cta: #326578;
  --cta-strong: #2c5a6b;

  --lavender: #bfa6ff;
  --lavender-soft: #e9ddff;
  --sky: #7ac9fd;
  --sky-soft: #c8e6ff;
  --gold: #e8d5a4;

  --gradient-headline: linear-gradient(120deg, #6750a2 0%, #00658f 100%);
  --gradient-iridescent: linear-gradient(135deg, #bfa6ff 0%, #c8b6ff 30%, #c8e6ff 65%, #e8d5a4 100%);
  --gradient-cta: linear-gradient(180deg, #3a7388 0%, #2c5a6b 100%);
  --gradient-aurora:
    radial-gradient(60% 50% at 12% 6%, rgba(191, 166, 255, 0.30), transparent 70%),
    radial-gradient(55% 45% at 92% 12%, rgba(124, 203, 255, 0.20), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(232, 213, 164, 0.16), transparent 70%);

  --shadow-card: 0 4px 28px -12px rgba(64, 58, 86, 0.14);
  --shadow-cta: 0 12px 34px -14px rgba(50, 101, 120, 0.55);
  --radius: 20px;
  --radius-lg: 28px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #15101f;
    --foreground: #f5eeff;
    --muted: #2a2440;
    --muted-foreground: #cdc5df;
    --card: rgba(50, 45, 72, 0.55);
    --border: rgba(208, 188, 255, 0.20);

    --primary: #d0bcff;
    --secondary: #87ceff;
    --cta: #4a8da3;
    --cta-strong: #3a7388;

    --lavender-soft: rgba(191, 166, 255, 0.18);
    --sky-soft: rgba(135, 206, 255, 0.18);

    --gradient-headline: linear-gradient(120deg, #d0bcff 0%, #87ceff 100%);
    --gradient-aurora:
      radial-gradient(60% 50% at 12% 6%, rgba(103, 80, 162, 0.42), transparent 70%),
      radial-gradient(55% 45% at 92% 12%, rgba(0, 101, 143, 0.32), transparent 70%),
      radial-gradient(70% 60% at 50% 100%, rgba(232, 213, 164, 0.10), transparent 70%);
    --shadow-card: 0 6px 30px -14px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  background-image: var(--gradient-aurora);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }

/* ---- Acessibilidade ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cta); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: clamp(64px, 10vw, 128px) 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: color-mix(in srgb, var(--background) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand .word { background: var(--gradient-headline); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--foreground); }

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem;
  padding: 0 26px; height: 52px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-sm { height: 44px; padding: 0 20px; font-size: 0.92rem; }
.btn-primary { background: var(--gradient-cta); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(50, 101, 120, 0.7); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: color-mix(in srgb, var(--lavender-soft) 60%, transparent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--primary); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---- Hero ---- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 600;
  margin-bottom: 22px; letter-spacing: -0.02em;
}
.hero h1 .accent { background: var(--gradient-headline); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted-foreground); max-width: 34ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 0.86rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 8px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .glow {
  position: absolute; inset: 6% 10%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(191, 166, 255, 0.55) 0%, rgba(124, 203, 255, 0.28) 45%, transparent 70%);
  filter: blur(28px);
}
.hero-visual img { position: relative; z-index: 1; width: min(100%, 420px); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Cards / glass ---- */
.glass {
  background: var(--card); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--muted-foreground); }

/* ---- Grid de valor (assimétrico intencional) ---- */
.value-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.value-card { padding: clamp(24px, 3vw, 34px); grid-column: span 3; }
.value-card:nth-child(1) { grid-column: span 4; }
.value-card:nth-child(2) { grid-column: span 2; }
.value-card:nth-child(3) { grid-column: span 2; }
.value-card:nth-child(4) { grid-column: span 4; }
.value-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 20px; font-size: 1.5rem;
  background: var(--lavender-soft); color: var(--primary);
}
.value-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.value-card p { color: var(--muted-foreground); font-size: 0.98rem; }

/* ---- Como funciona (passos) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: clamp(26px, 3vw, 36px); position: relative; }
.step-num {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; line-height: 1;
  background: var(--gradient-headline); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; display: block;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted-foreground); font-size: 0.98rem; }

/* ---- Seção "por trás do produto" ---- */
.craft { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.craft-list { display: grid; gap: 16px; margin-top: 26px; }
.craft-item { display: flex; gap: 14px; align-items: flex-start; }
.craft-item .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--secondary); font-size: 0.85rem; margin-top: 2px;
}
.craft-item p { color: var(--muted-foreground); font-size: 0.98rem; }
.craft-item strong { color: var(--foreground); font-weight: 600; }

/* ---- CTA final ---- */
.cta-final { text-align: center; padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.cta-final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.cta-final p { color: var(--muted-foreground); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 30px; }
.cta-final .hero-actions { justify-content: center; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 72px) 0 40px; margin-top: clamp(48px, 8vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted-foreground); font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted-foreground); font-size: 0.96rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer-bottom p { color: var(--muted-foreground); font-size: 0.88rem; }
.footer-disclaimer { color: var(--muted-foreground); font-size: 0.82rem; max-width: 60ch; }

/* ---- Página legal (privacidade / termos) ---- */
.legal-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); }
.legal-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 14px; }
.legal-hero .updated { color: var(--muted-foreground); font-size: 0.95rem; }
.legal-body { padding-bottom: clamp(64px, 9vw, 120px); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 14px; }
.legal-toc a { display: block; font-size: 0.92rem; color: var(--muted-foreground); padding: 5px 0; transition: color 0.2s ease; }
.legal-toc a:hover { color: var(--primary); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 46px 0 16px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p { color: var(--muted-foreground); margin-bottom: 16px; }
.prose ul { color: var(--muted-foreground); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--foreground); font-weight: 600; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .callout {
  background: var(--lavender-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 22px 0; color: var(--foreground);
}
.prose .callout p { color: var(--foreground); margin: 0; font-size: 0.96rem; }

/* ---- Motion: reveal ao entrar no viewport (uma vez) ----
   Só esconde quando há JS (classe .js no <html>): sem JS, tudo aparece
   normalmente — conteúdo sempre presente no HTML inicial (SEO/a11y). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Responsivo ---- */
@media (max-width: 1024px) {
  .value-card, .value-card:nth-child(n) { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(70%, 300px); }
  .steps { grid-template-columns: 1fr; }
  .craft { grid-template-columns: 1fr; }
  /* menu mobile */
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 4px; padding: 16px 24px 24px; background: var(--background);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card);
  }
  .nav-links.open a { padding: 10px 0; font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card, .value-card:nth-child(n) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .btn { width: 100%; }
  .nav-cta .btn { width: auto; }
}
