/* =========================================================
   Marcalia · Landing page
   ========================================================= */

:root {
  --brand: #B83268;
  --brand-dark: #8E1F4C;
  --brand-soft: #FCE7EF;
  --peach: #FFD9C7;
  --gold: #E8A951;
  --ink: #2A1A22;
  --ink-soft: #6B5560;
  --bg: #FFF9F6;
  --surface: #FFFFFF;
  --line: #F1E3E8;

  /* chat no estilo do WhatsApp (só no mockup) */
  --wa-header: #075E54;
  --wa-bg: #ECE5DD;
  --wa-out: #DCF8C6;
  --wa-in: #FFFFFF;
  --wa-tick: #34B7F1;

  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(142, 31, 76, .35);
  --shadow-soft: 0 10px 30px -15px rgba(42, 26, 34, .25);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h1 em, h2 em { color: var(--brand); font-style: italic; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.center { display: table; margin-inline: auto; }

section { padding: 96px 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font: inherit; font-weight: 700;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 246, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: var(--peach); top: 20px; right: 10px; }
.blob-2 { width: 260px; height: 260px; background: var(--brand-soft); bottom: 10px; left: 0; }

/* ---------- Celular (mockup) ---------- */
.phone {
  position: relative; z-index: 1;
  margin: 0;
  width: 310px; height: 600px;
  background: var(--wa-bg);
  border: 10px solid #1E1418;
  border-radius: 42px;
  box-shadow: 0 40px 80px -30px rgba(42, 26, 34, .55);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #1E1418; border-radius: 0 0 14px 14px; z-index: 3; }

.chat-header {
  display: flex; align-items: center; gap: 10px;
  background: var(--wa-header); color: #fff;
  padding: 30px 14px 12px;
}
.chat-header.small { padding: 12px 14px; }
.chat-header strong { display: block; font-size: .92rem; }
.chat-status { font-size: .75rem; opacity: .85; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.avatar-lia { background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; }

.chat-body {
  flex: 1;
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 14px 14px;
  justify-content: flex-end;
}
.chat-input {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px; padding: 10px 16px;
  background: #fff; border-radius: 999px;
  color: #9a8f94; font-size: .85rem;
}

.bubble {
  max-width: 82%;
  padding: 7px 10px 18px;
  border-radius: 10px;
  font-size: .85rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  animation: pop .25s ease-out both;
  word-wrap: break-word;
}
.bubble.in { background: var(--wa-in); align-self: flex-start; border-top-left-radius: 2px; }
.bubble.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 2px; }
.bubble .meta { position: absolute; right: 8px; bottom: 3px; font-size: .65rem; color: #8a9a8f; }
.bubble.out .meta::after { content: " ✓✓"; color: var(--wa-tick); }

.bubble.audio { display: flex; align-items: center; gap: 8px; min-width: 190px; padding-bottom: 18px; }
.audio-play { width: 28px; height: 28px; border-radius: 50%; background: #5F6E66; color: #fff; display: grid; place-items: center; font-size: .7rem; flex-shrink: 0; }
.audio-wave { flex: 1; height: 22px; display: flex; align-items: center; gap: 2px; }
.audio-wave i { display: block; width: 3px; background: #9DB1A5; border-radius: 2px; }
.audio-time { font-size: .7rem; color: #6f7d75; }

.bubble .buttons { display: flex; flex-direction: column; gap: 4px; margin: 8px -10px -18px; border-top: 1px solid #eee; }
.bubble .buttons span { text-align: center; color: #0A7CBF; font-weight: 600; padding: 7px; border-bottom: 1px solid #f1f1f1; }
.bubble .buttons span.tapped { background: #E8F4FB; }
.bubble.has-buttons { padding-bottom: 18px; }

.typing { align-self: flex-start; background: var(--wa-in); border-radius: 10px; padding: 10px 12px; display: flex; gap: 4px; animation: pop .2s ease-out both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

.system-note { align-self: center; background: #E1F2FB; color: #3C5B6B; font-size: .72rem; padding: 4px 10px; border-radius: 8px; animation: pop .25s ease-out both; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- Notificação push ---------- */
.push-toast {
  position: absolute; z-index: 2;
  top: 70px; right: -10px;
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,.96);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  max-width: 270px;
  font-size: .85rem;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .4s ease, transform .4s ease;
}
.push-toast.show { opacity: 1; transform: none; }
.push-toast strong { display: block; }
.push-toast span { color: var(--ink-soft); }

/* ---------- Dor ---------- */
.pain { background: var(--surface); border-block: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.pain-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.pain-card p { margin: 0; color: var(--ink-soft); }
.pain-turn { text-align: center; font-size: 1.2rem; margin: 44px auto 0; max-width: 640px; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-soft); position: relative; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Benefícios ---------- */
.benefits { background: linear-gradient(180deg, var(--bg), var(--brand-soft) 60%, var(--bg)); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature.reverse .feature-copy { order: 2; }
.feature-tag { display: inline-block; font-weight: 700; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; font-size: .9rem; }
.feature-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; display: grid; place-items: center; }

.feature-visual { position: relative; display: flex; justify-content: center; }
.mini-phone { width: 300px; height: 470px; border: 8px solid #1E1418; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; background: var(--wa-bg); box-shadow: 0 30px 60px -30px rgba(42,26,34,.5); }

.clock-badge { position: absolute; bottom: -18px; left: calc(50% - 190px); background: #2A1A22; color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); font-size: .8rem; }
.clock-time { font-size: 1.6rem; font-weight: 800; line-height: 1; }

.agenda-card { width: min(380px, 100%); background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.agenda-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.agenda-pill { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border-left: 4px solid var(--line); background: var(--bg); }
.slot time { font-weight: 800; font-size: .9rem; }
.slot strong { display: block; font-size: .92rem; }
.slot span { font-size: .78rem; color: var(--ink-soft); }
.slot em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.s-confirmed { border-left-color: #3BA776; }
.s-confirmed em { background: #E3F5EC; color: #217A52; }
.s-pending { border-left-color: var(--gold); }
.s-pending em { background: #FDF1DE; color: #9A6A1F; }
.s-break { opacity: .6; border-left-style: dashed; }
.s-new { border-left-color: var(--brand); background: var(--brand-soft); }
.s-new em { background: var(--brand); color: #fff; }
.s-new.hidden { opacity: 0; transform: translateX(20px); max-height: 0; padding-block: 0; margin: -4px 0; }
.s-new { transition: opacity .5s ease, transform .5s ease, max-height .5s ease, padding .5s ease, margin .5s ease; max-height: 80px; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.b-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.benefit p { margin: 0; color: var(--ink-soft); }

/* ---------- Um dia com a Lia ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; }
/* a linha e o marcador ficam no meio do vão entre a hora e o texto */
.timeline { --t-col: 70px; --t-gap: 40px; }
.timeline::before { content: ""; position: absolute; left: calc(var(--t-col) + var(--t-gap) / 2 - 1px); top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-soft), var(--brand)); }
.t-item { display: grid; grid-template-columns: var(--t-col) 1fr; gap: var(--t-gap); padding: 0 0 32px; position: relative; }
.t-item time { font-weight: 800; color: var(--brand); padding-top: 2px; }
.t-item::before { content: ""; position: absolute; left: calc(var(--t-col) + var(--t-gap) / 2 - 7px); top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.t-item p { margin: 0; color: var(--ink-soft); }
.t-item.highlight div { background: var(--brand-soft); border-radius: 16px; padding: 14px 18px; margin-top: -10px; }

/* ---------- Calculadora ---------- */
.calc { background: var(--ink); color: #fff; }
.calc .eyebrow { background: rgba(255,255,255,.1); color: var(--peach); }
.calc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.calc-copy p { color: #D9C9D0; font-size: 1.05rem; }
.calc-note { font-size: .82rem !important; opacity: .75; }
.calc-card { background: #fff; color: var(--ink); border-radius: 28px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.calc-card label { display: block; margin-bottom: 18px; }
.calc-card label > span { font-weight: 600; font-size: .92rem; }
.range-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.range-row input { flex: 1; accent-color: var(--brand); height: 28px; }
.range-row output { min-width: 78px; text-align: right; font-weight: 800; color: var(--brand); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.result { background: var(--bg); border-radius: 18px; padding: 16px; text-align: center; }
.result.big { grid-column: 1 / -1; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.r-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.result.big .r-num { font-size: 2.5rem; }
.r-lbl { font-size: .82rem; opacity: .8; }
.calc-foot { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: 16px 0 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { padding-top: 40px; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--brand), #D9577F 60%, var(--gold)); color: #fff; border-radius: 36px; padding: 56px; box-shadow: var(--shadow); }
.cta-copy p { font-size: 1.1rem; opacity: .95; }
.cta-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-weight: 600; }
.cta-form { background: #fff; color: var(--ink); border-radius: 24px; padding: 28px; display: grid; gap: 14px; }
.cta-form label span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.cta-form input, .cta-form select { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-msg { margin: 0; font-weight: 600; text-align: center; min-height: 1.4em; }
.form-msg.ok { color: #217A52; }
.form-msg.err { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 6px; }
.slogan { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--brand); margin: 4px 0; }
.legal { font-size: .78rem; color: var(--ink-soft); margin: 0; max-width: 560px; }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .feature, .calc-grid, .cta-inner { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .hero-visual { min-height: 560px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .benefit-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding: 36px; }
}

@media (max-width: 620px) {
  section { padding: 72px 0; }
  .hero { padding-top: 40px; }
  .pain-grid, .steps, .benefit-grid { grid-template-columns: 1fr; }
  .phone { width: 280px; height: 560px; }
  .push-toast { right: 0; left: 0; margin-inline: auto; top: auto; bottom: -12px; }
  .blob-1 { width: 260px; height: 260px; }
  .mini-phone { width: 100%; max-width: 300px; }
  .clock-badge { left: 0; bottom: -24px; }
  .feature { margin-bottom: 72px; gap: 40px; }
  .timeline { --t-col: 52px; --t-gap: 30px; }
  .cta-inner { padding: 28px 20px; border-radius: 28px; }
  .calc-card { padding: 24px 18px; }
  .r-num { font-size: 1.5rem; }
  .result.big .r-num { font-size: 2rem; }
  .header-inner .btn-sm { padding: 9px 14px; font-size: .82rem; }
}

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