/* ── Sunlia LP · sections: chat, dor, solução, passos, faq, cta ───── */

/* ── Section headers ────────────────────────────────────────────── */

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--text-h2); }
.section-head p { margin-top: 1rem; font-size: var(--text-lg); color: var(--ink-60); }

/* ── Chat section (Night Deep) ──────────────────────────────────── */

.chat-section {
  background: var(--night-deep);
  color: var(--cream);
}

.chat-section .section-head h2 { color: var(--cream); }
.chat-section .section-head p { color: var(--cream-70); }

.chat-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.chat-caption {
  font-size: var(--text-lg);
  color: var(--cream-70);
  border-left: 3px solid var(--sun);
  padding-left: 1.4rem;
  margin-top: 2rem;
}

.chat-caption strong { color: var(--cream); }

/* phone frame */
.phone {
  background: #111b21;
  border-radius: 34px;
  border: 1px solid var(--cream-12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: #202c33;
}

.phone__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sun);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.phone__avatar img { width: 24px; height: 24px; }

.phone__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #e9edef;
  line-height: 1.2;
}

.phone__status {
  font-size: 0.75rem;
  color: #8696a0;
}

.phone__status .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  margin-right: 4px;
}

.phone__chat {
  padding: 1.1rem 0.9rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(254, 173, 3, 0.05), transparent 45%),
    #0b141a;
  min-height: 480px;
}

.msg {
  max-width: 84%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
}

.msg time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.55;
  text-align: right;
  margin-top: 0.2rem;
}

.msg--lead {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-bottom-right-radius: 3px;
}

.msg--lia {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-bottom-left-radius: 3px;
}

.msg--photo {
  padding: 0.35rem;
}

.msg__photo {
  width: 190px;
  height: 110px;
  border-radius: 7px;
  background: linear-gradient(135deg, #24343f 0%, #1a262e 100%);
  display: grid;
  place-items: center;
  color: #8696a0;
  font-size: 0.72rem;
  gap: 0.3rem;
  text-align: center;
}

.msg__photo svg { color: var(--sun); }

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 0.75rem 0.9rem;
  background: #202c33;
  border-radius: 10px;
  border-bottom-left-radius: 3px;
}

.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sun);
  animation: typing-pulse 1.2s infinite var(--ease-out);
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ── Dor (editorial) ────────────────────────────────────────────── */

.pain__body {
  max-width: 46rem;
  font-size: var(--text-lg);
  color: var(--ink-60);
  display: grid;
  gap: 1.4rem;
}

.pain__body .knife {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-left: 1.4rem;
  border-left: 4px solid var(--flare);
}

/* ── Solução (bento) ────────────────────────────────────────────── */

.solution { background: var(--paper); }

.solution__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--sun);
  box-shadow: 0 24px 48px -24px rgba(13, 12, 10, 0.18);
}

.card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-40);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card__num::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ink-12);
}

.card h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  margin-bottom: 0.7rem;
}

.card p { color: var(--ink-60); font-size: 1rem; }
.card p strong { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .solution__grid { grid-template-columns: 1fr; }
  .chat-section__grid { grid-template-columns: 1fr; }
}

/* ── Como funciona ──────────────────────────────────────────────── */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-card);
  background: var(--paper);
  border: 1px solid var(--ink-08);
}

.step__badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.step p { color: var(--ink-60); font-size: 0.97rem; }

@media (max-width: 860px) {
  .steps__grid { grid-template-columns: 1fr; }
}

/* ── Objeção (statement) ────────────────────────────────────────── */

.objection {
  background: var(--night);
  color: var(--cream);
}

.objection__inner { max-width: 50rem; }

.objection h2 {
  font-size: var(--text-h2);
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.objection h2 em {
  font-style: normal;
  color: var(--sun);
}

.objection p {
  font-size: var(--text-lg);
  color: var(--cream-70);
  margin-bottom: 1.2rem;
}

.objection p strong { color: var(--cream); }

/* ── CRM + Confiança ────────────────────────────────────────────── */

.crm-trust__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: start;
}

.crm-trust__crm h2 { font-size: var(--text-h2); margin-bottom: 1.1rem; }
.crm-trust__crm > p { font-size: var(--text-lg); color: var(--ink-60); }

.trust-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.trust-list li {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-60);
}

.trust-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--leaf); }
.trust-list li strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }

@media (max-width: 860px) {
  .crm-trust__grid { grid-template-columns: 1fr; }
}

/* ── CTA final ──────────────────────────────────────────────────── */

.final-cta {
  background: var(--night-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: min(560px, 80vw);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: var(--sun);
  opacity: 0.08;
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  max-width: 46rem;
  text-align: left;
}

.final-cta h2 { font-size: var(--text-h2); color: var(--cream); margin-bottom: 1rem; }
.final-cta > .container > p { color: var(--cream-70); }

.final-cta__intro { font-size: var(--text-lg); color: var(--cream-70); margin-bottom: 1.8rem; }

.demo-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

.demo-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--cream-70);
  font-size: 1.02rem;
}

.demo-list li svg { flex-shrink: 0; margin-top: 4px; color: var(--sun); }
.demo-list li strong { color: var(--cream); }

.final-cta .btn-note { color: var(--cream-40); }

/* ── FAQ ────────────────────────────────────────────────────────── */

.faq__list { max-width: 50rem; display: grid; gap: 0.85rem; }

.faq__item {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 14px;
  transition: border-color var(--dur) var(--ease-out);
}

.faq__item[open] { border-color: var(--sun); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary .chev {
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
  color: var(--ink-40);
}

.faq__item[open] summary .chev { transform: rotate(45deg); color: var(--flare); }

.faq__item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-60);
  font-size: 0.97rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--cream-70);
  padding-block: 2.5rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  font-size: 1.1rem;
}

.site-footer__brand img { height: 28px; filter: drop-shadow(0 0 0 transparent); }

.site-footer__tag { font-size: 0.9rem; }
.site-footer__tag .sun-emoji { color: var(--sun); }

/* ── Reveal on scroll ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .typing i { animation: none; opacity: 0.7; }
  .btn, .card { transition: none; }
}
