/* iGlowy — site da lista de espera. Cores do design system "Bloom" do app (DESIGN.md). */
:root {
  --page: #FAF0F7;
  --page-top: #FFFBFE;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #FFFFFF;
  --text: #3A2F2A;
  --text-2: rgba(58, 47, 42, 0.68);
  --heading: #35233F;
  --border: rgba(231, 231, 231, 0.9);

  --quartz: #E8A7B3;
  --quartz-deep: #B5677A;
  --quartz-light: #FBE9EC;
  --lavender: #B9AEE0;
  --lavender-deep: #7264A8;
  --lavender-light: #F0ECFA;
  --sage-deep: #5F7A52;
  --sage-light: #EAF0E4;
  --peach-deep: #C27A5C;
  --peach-light: #FDEBE1;
  --rose-gold: #C9A26A;

  --primary: linear-gradient(90deg, #D9718F, #8E6BC2);
  --selected: linear-gradient(90deg, #D9718F, #C064A0);
  --hero: linear-gradient(90deg, #9883CC, #C39AD0, #EDB8CB);

  --shadow: 0 10px 30px rgba(58, 47, 42, 0.07), 0 2px 6px rgba(58, 47, 42, 0.04);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #17111C;
    --page-top: #21172B;
    --surface: #231A2A;
    --surface-solid: #231A2A;
    --text: #F7EEF0;
    --text-2: rgba(247, 238, 240, 0.66);
    --heading: #F7EEF0;
    --border: #362B3E;
    --quartz-deep: #F4AFC0;
    --quartz-light: #40243A;
    --lavender-deep: #C7BCF4;
    --lavender-light: #2C2648;
    --sage-deep: #B4CDA3;
    --sage-light: #26332A;
    --peach-deep: #F5B99D;
    --peach-light: #4A2F28;
    --rose-gold: #E3BF88;
    --primary: linear-gradient(90deg, #B8506F, #6D5BB8);
    --selected: linear-gradient(90deg, #B8506F, #8E4A86);
    --hero: linear-gradient(90deg, #6D5BB8, #B8506F);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--page-top) 0, var(--page) 520px);
  background-color: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { color: var(--heading); margin: 0 0 14px; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h1 em, h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
p { margin: 0 0 14px; color: var(--text-2); }

.eyebrow { font-size: 0.85rem; font-weight: 700; color: var(--quartz-deep); margin: 0 0 10px; }
.center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; max-width: 680px; }
.section-title.center { margin-left: auto; margin-right: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 700 0.98rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(181, 103, 122, 0.3); }
.btn-light { background: #fff; color: #7E3A4D; box-shadow: 0 10px 24px rgba(53, 35, 63, 0.18); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.88rem; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--page-top) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--heading); text-decoration: none; letter-spacing: -0.02em; }
.brand-icon { width: 36px; height: 36px; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  color: var(--lavender-deep); background: var(--lavender-light); border: 1px solid color-mix(in srgb, var(--lavender) 40%, transparent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #D9718F; box-shadow: 0 0 0 0 rgba(217, 113, 143, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(217, 113, 143, 0); } }
.hero-sub { font-size: 1.1rem; max-width: 540px; margin-bottom: 28px; }

/* Formulário */
.wl-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 22px; box-shadow: var(--shadow); max-width: 560px;
}
.wl-interest { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-interest legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.95rem; color: var(--heading); }
.wl-interest label { position: relative; cursor: pointer; }
.wl-interest input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl-interest span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--lavender-deep); background: var(--lavender-light);
  transition: background 0.15s, color 0.15s;
}
.wl-interest input:checked + span { background: var(--selected); color: #fff; }
.wl-interest input:focus-visible + span { outline: 3px solid var(--lavender); outline-offset: 2px; }
.wl-row { display: flex; gap: 10px; }
.wl-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--text);
  font: 500 1rem var(--font); transition: border-color 0.15s, box-shadow 0.15s;
}
.wl-row input::placeholder { color: var(--text-2); opacity: 0.7; }
.wl-row input:focus { outline: none; border-color: var(--quartz); box-shadow: 0 0 0 4px color-mix(in srgb, var(--quartz) 25%, transparent); }
.wl-row input[aria-invalid="true"] { border-color: #C0392B; }
.wl-msg { margin: 12px 4px 0; font-size: 0.92rem; font-weight: 600; min-height: 0; }
.wl-msg:empty { display: none; }
.wl-msg.is-error { color: #C0392B; }
@media (prefers-color-scheme: dark) { .wl-msg.is-error { color: #FF9C8F; } }
.wl-note { margin: 12px 4px 0; font-size: 0.82rem; }
.wl-note a { color: var(--quartz-deep); }

.wl-success { text-align: center; padding: 10px 6px 4px; animation: pop 0.5s ease-out; }
.wl-success .wl-pos {
  display: inline-block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: var(--primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wl-success h3 { font-size: 1.3rem; margin: 6px 0 6px; }
.wl-success p { margin: 0 0 14px; }
.wl-share { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wl-share .btn { min-height: 44px; font-size: 0.88rem; }
.btn-soft { background: var(--quartz-light); color: var(--quartz-deep); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Celular ilustrativo */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.55; pointer-events: none; }
.glow-a { width: 300px; height: 300px; background: #EDB8CB; top: 0; left: 4%; }
.glow-b { width: 260px; height: 260px; background: #B9AEE0; bottom: 0; right: 2%; }
@media (prefers-color-scheme: dark) { .glow { opacity: 0.25; } }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19; padding: 12px; border-radius: 46px;
  background: #1C1420; box-shadow: 0 40px 80px rgba(53, 35, 63, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #1C1420; z-index: 2; }
.screen {
  height: 100%; border-radius: 35px; overflow: hidden; padding: 54px 16px 16px;
  background: linear-gradient(180deg, #FFFBFE, #FAF0F7); color: #3A2F2A;
  display: flex; flex-direction: column; gap: 12px;
}
.s-wordmark { margin: 0; text-align: center; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.22em; color: #B5677A; }
.s-title { margin: 0; font-size: 1.35rem; font-weight: 800; color: #35233F; letter-spacing: -0.03em; }
.s-hero { border-radius: 22px; padding: 16px; color: #fff; background: linear-gradient(90deg, #9883CC, #C39AD0, #EDB8CB); box-shadow: 0 12px 24px rgba(152, 131, 204, 0.35); display: flex; flex-direction: column; gap: 4px; }
.s-hero-label { font-size: 0.72rem; opacity: 0.9; font-weight: 600; }
.s-hero strong { font-size: 1.05rem; }
.s-progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.35); margin-top: 6px; overflow: hidden; }
.s-progress span { display: block; height: 100%; width: 66%; border-radius: inherit; background: #fff; }
.s-hero-meta { font-size: 0.7rem; opacity: 0.9; }
.s-steps { list-style: none; margin: 0; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 6px 16px rgba(58, 47, 42, 0.06); display: flex; flex-direction: column; gap: 10px; }
.s-steps li { display: flex; gap: 10px; align-items: center; }
.s-steps i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #E8A7B3; }
.s-steps li.done i { border: 0; background: #5F7A52 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.s-steps strong { display: block; font-size: 0.8rem; color: #35233F; }
.s-steps span { display: block; font-size: 0.7rem; color: rgba(58, 47, 42, 0.6); }
.s-steps li.done strong { text-decoration: line-through; text-decoration-color: rgba(53, 35, 63, 0.35); }
.s-chip { align-self: flex-start; padding: 8px 12px; border-radius: 999px; background: #F0ECFA; color: #7264A8; font-size: 0.72rem; font-weight: 700; }

.float-card {
  position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.86rem; color: var(--heading); }
.float-card span { display: block; font-size: 0.74rem; color: var(--text-2); }
.fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--quartz-light); font-size: 1.1rem; }
.fc-1 { top: 2%; left: -2%; animation-delay: -2s; }
.fc-2 { bottom: 4%; right: -4%; animation-delay: -4s; }
.fc-2 .fc-icon { background: var(--lavender-light); }

/* Faixa */
.marquee { overflow: hidden; padding: 18px 0; background: var(--hero); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { color: #fff; font-weight: 700; font-size: 1rem; padding: 0 26px; white-space: nowrap; }
.marquee-track span::before { content: "✦"; margin-right: 26px; opacity: 0.75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Seções */
.how, .features, .faq { padding: 88px 0 0; }
.how-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-list li, .feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: var(--shadow);
}
.how-list strong { display: block; font-size: 1.12rem; color: var(--heading); margin: 14px 0 6px; }
.how-list li > span:last-child { color: var(--text-2); }
.how-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }

.features-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { transition: transform 0.2s ease-out; }
.feature:hover { transform: translateY(-3px); }
.feature h3 { font-size: 1.1rem; margin: 16px 0 6px; }
.feature p { margin: 0; font-size: 0.95rem; }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }
.f-rose { background: var(--quartz-light); }
.f-lav { background: var(--lavender-light); }
.f-sage { background: var(--sage-light); }
.f-peach { background: var(--peach-light); }

.faq-inner { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; margin-top: 12px; box-shadow: var(--shadow); }
.faq details:first-of-type { margin-top: 32px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--quartz-deep); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; }
.faq details a { color: var(--quartz-deep); }

/* CTA final */
.cta-final { padding: 88px 0; }
.cta-final-inner {
  text-align: center; border-radius: 32px; padding: 56px 24px; background: var(--hero);
  box-shadow: 0 24px 50px rgba(152, 131, 204, 0.3);
}
.cta-final-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.cta-final-inner > p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; }
.cta-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 24px rgba(53, 35, 63, 0.2); }
.wl-form-compact { margin: 24px auto 0; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; padding: 10px; border-radius: 999px; }
.wl-form-compact .wl-row input { border-color: transparent; }
.wl-form-compact .wl-msg { color: #fff; padding-bottom: 6px; }
.wl-form-compact .wl-msg.is-error { color: #fff; }
.wl-form-compact.is-done { border-radius: 26px; background: var(--surface-solid); padding: 22px; }

/* Rodapé */
.site-footer { padding: 0 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 28px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-2); font-size: 0.9rem; }
.footer-copy { margin: 0; font-size: 0.85rem; }

/* Entrada ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Páginas de texto (privacidade) */
.legal { max-width: 760px; padding: 48px 20px 88px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal a { color: var(--quartz-deep); }
.legal li { color: var(--text-2); margin-bottom: 6px; }

@media (max-width: 920px) {
  .hero { padding-top: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: 2; }
  .how-list, .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .wl-form { padding: 18px; }
  .wl-form-compact { border-radius: 26px; padding: 12px; }
  .how-list, .features-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .how, .features, .faq { padding-top: 64px; }
  .cta-final { padding: 64px 0; }
  .cta-final-inner { padding: 44px 18px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
