/* lunia · site (lunia.app.br). Mesma identidade do painel: as cores do logo (roxo da
   lua e do nome), base branca, noite só no bloco final. Sem build: CSS puro. */

:root {
  --brand: #6f5bd0; /* o roxo claro, um tom acima do brilho da lua */
  --brand-strong: #4d39a5; /* o roxo do nome: botões e links (9:1 no branco) */
  --brand-strong-hover: #38247f;
  --brand-ink: #24165a; /* o roxo quase preto dos títulos */
  --brand-soft: #ece8fa;
  --brand-softer: #f6f4fd;
  --night: #150d38;
  --lavender: #e6e1f7;
  --text: #171a33;
  --muted: #5b5f77; /* ~6:1 no branco */
  --border: #e8eaf2;
  --soft: #f6f7fc;
  --surface: #ffffff;
  --wa-bg: #efeae2;
  --wa-out: #d9fdd3;
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- Topo ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
}

/* O nome no mesmo degradê da lua; o padding evita cortar a ponta das letras no recorte. */
.brand-word {
  padding: 0.1em 0.04em;
  background: linear-gradient(135deg, #38247f 0%, #5642ad 50%, #342275 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand.small .brand-mark {
  width: 26px;
  height: 26px;
}

.brand.small {
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.nav a,
.link-quiet {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.nav a:hover,
.link-quiet:hover {
  color: var(--text);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--brand-strong);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-ink);
}

.btn-ghost {
  border-color: #d8d3e3;
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

.btn-light {
  background: #fff;
  color: var(--night);
}
.btn-light:hover {
  background: var(--lavender);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(111, 91, 208, 0.16) 0%, rgba(111, 91, 208, 0) 70%),
    var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
}

.accent {
  color: var(--brand-strong);
}

.lead {
  margin: 22px 0 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

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

.fine {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Celular com a conversa de exemplo */
.phone {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  border-radius: 32px;
  border: 10px solid var(--night);
  background: var(--wa-bg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(21, 13, 56, 0.35);
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #075e54;
  color: #fff;
}
.phone-head strong {
  display: block;
  font-size: 15px;
}
.phone-head small {
  font-size: 12px;
  opacity: 0.85;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #075e54;
  font-size: 13px;
  font-weight: 700;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 8px;
}

.msg {
  max-width: 82%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.msg.in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 4px;
}
.msg.out {
  align-self: flex-end;
  background: var(--wa-out);
  border-top-right-radius: 4px;
}

.phone figcaption {
  padding: 4px 0 12px;
  text-align: center;
  color: #54656f;
  font-size: 11px;
}

/* ---------- Seções ---------- */
.section {
  padding: 88px 0;
}
.section.soft {
  background: var(--soft);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  max-width: 720px;
}

.section-lead {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
}

.steps h3,
.feature h3 {
  font-size: 18px;
  font-weight: 600;
}

.steps p,
.feature p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Recursos */
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.channels li {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Planos */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
}

.plan.featured {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 1px var(--brand-strong);
  background: var(--brand-softer);
}

.plan h3 {
  font-size: 18px;
  font-weight: 600;
}

.badge {
  position: absolute;
  top: 28px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.price {
  margin: 10px 0 20px;
  color: var(--muted);
}
.price strong {
  color: var(--text);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan ul {
  flex: 1;
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan li {
  position: relative;
  padding-left: 28px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand-strong);
  border-bottom: 2px solid var(--brand-strong);
  transform: rotate(-45deg);
}

.plans-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Perguntas */
.faq {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Chamada final (noite da marca) */
.cta {
  padding: 96px 0;
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(111, 91, 208, 0.34) 0%, rgba(111, 91, 208, 0) 70%),
    var(--night);
  color: var(--lavender);
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-moon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  color: var(--lavender);
  filter: drop-shadow(0 0 28px rgba(138, 114, 220, 0.55));
}

.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

.cta p {
  margin: 14px 0 32px;
  color: #d2cbee;
  font-size: 17px;
}

/* Rodapé */
.foot {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-right: auto;
}

.foot-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features,
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
  .steps,
  .features,
  .plans {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .top-actions .btn {
    width: auto;
  }
}
