/*
  Lira · wealthassistant.digital
  Narrativa em rolagem no estilo apple.com: blocos de tela cheia que se
  alternam entre noite (marinho) e pérola, e duas cenas presas na tela —
  o celular com a conversa que muda a cada passo, e o painel do gestor.
*/
:root {
  --night: #0D1B2A;
  --abyss: #081320;
  --night-2: #14273A;
  --gold: #C79D5B;
  --gold-bright: #DDB878;
  --pearl: #F5F5F2;
  --paper: #FFFFFF;
  --ink: #0D1B2A;
  --mist: #AEB7BF;
  --slate: #5C6670;
  --line-dark: rgba(255,255,255,.10);
  --line-light: #E1DED4;
  --ok: #3E9B6E;
  --warn: #D49A2A;
  --bad: #C2513F;
  --wa-bg: #EFE7DC;
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: min(1120px, 100% - 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--abyss); color: var(--pearl); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ── Navegação translúcida ─────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 52px; background: rgba(8,19,32,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-dark); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 600 22px/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--gold); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.nav ul a { text-decoration: none; color: rgba(245,245,242,.78); }
.nav ul a:hover { color: var(--pearl); }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; padding: 12px 22px; background: var(--gold); color: var(--ink); white-space: nowrap; transition: background .2s, transform .2s; }
.pill:hover { background: var(--gold-bright); }
.pill.sm { padding: 8px 14px; font-size: 13px; }
.more { color: var(--gold-bright); text-decoration: none; font-weight: 500; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.more::after { content: " ›"; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* ── Tipografia ───────────────────────────────────────────────── */
.eyebrow { font: 600 15px/1.2 var(--body); color: var(--gold); letter-spacing: .01em; margin: 0 0 14px; }
.h-hero { font: 600 clamp(44px, 7.4vw, 96px)/1.02 var(--display); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.h-hero em { font-style: italic; font-weight: 500; color: var(--gold-bright); }
.h-sec { font: 600 clamp(36px, 5.2vw, 64px)/1.06 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h-step { font: 600 clamp(28px, 3.2vw, 40px)/1.12 var(--display); letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.lede { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--mist); max-width: 40ch; margin: 18px auto 0; text-wrap: pretty; }
.light .lede, .light .step p { color: var(--slate); }

/* ── Blocos ───────────────────────────────────────────────────── */
section { position: relative; }
.light { background: var(--pearl); color: var(--ink); }
.night { background: var(--night); }
.center { text-align: center; }
.pad { padding: clamp(96px, 14vh, 160px) 0; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { min-height: 100svh; padding-top: 120px; text-align: center; overflow: hidden; background: radial-gradient(1200px 600px at 50% 115%, rgba(199,157,91,.20), transparent 60%), var(--abyss); }
.hero .ctas { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-stage { margin: 64px auto 0; width: min(340px, 82vw); will-change: transform; }

/* ── Celular ──────────────────────────────────────────────────── */
.phone { position: relative; width: 100%; aspect-ratio: 9 / 19; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #2a3a4c, #0b1520 45%, #1d2b3a); box-shadow: 0 0 0 1.5px #3a4b5e inset, 0 50px 100px -30px rgba(0,0,0,.7), 0 0 80px -20px rgba(199,157,91,.25); }
.phone .screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; color: #111; }
.phone .island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 10px; background: #F7F3EC; border-bottom: 1px solid #e6ddd0; flex-shrink: 0; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold); font: 600 17px/34px var(--display); text-align: center; flex-shrink: 0; }
.wa-head b { display: block; font-size: 14px; }
.wa-head small { font-size: 11.5px; color: #3E9B6E; }
.chat { position: relative; flex: 1; padding: 14px 10px; overflow: hidden; background-color: var(--wa-bg); background-image: radial-gradient(rgba(199,157,91,.16) 1.2px, transparent 1.3px), radial-gradient(rgba(13,27,42,.05) 1px, transparent 1.1px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; }
.day { align-self: center; margin: 2px 0 6px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.85); font-size: 11px; font-weight: 500; color: #54656f; box-shadow: 0 1px .5px rgba(0,0,0,.1); }
.thread { position: absolute; inset: 12px 10px; display: flex; flex-direction: column; justify-content: flex-start; gap: 7px; opacity: 0; transition: opacity .45s ease; }
.thread.on { opacity: 1; }
.msg { max-width: 84%; padding: 8px 11px 6px; border-radius: 14px; font-size: 13px; line-height: 1.38; box-shadow: 0 1px .5px rgba(0,0,0,.12); white-space: pre-line; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.thread.on .msg { opacity: 1; transform: none; }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.msg time { display: block; text-align: right; font-size: 10px; color: #8a8a8a; margin-top: 2px; }
.msg strong { font-weight: 700; }
.msg .file { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.msg .file i { font-style: normal; width: 30px; height: 36px; border-radius: 5px; background: #E25C4A; color: #fff; font: 700 9px/36px var(--body); text-align: center; }
.msg .voice { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.msg .voice .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, #7aa88f 0 2px, transparent 2px 5px); mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.35) 60%); border-radius: 2px; }
.btns { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; width: 84%; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s ease; }
.thread.on .btns { opacity: 1; transform: none; }
.btns span { background: #fff; border-radius: 10px; padding: 7px; text-align: center; color: #027EB5; font-size: 13px; font-weight: 500; box-shadow: 0 1px .5px rgba(0,0,0,.12); }
.typing { align-self: flex-start; background: #fff; border-radius: 14px; padding: 9px 12px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.wa-input { flex-shrink: 0; margin: 0 8px 18px; padding: 10px 14px; border-radius: 22px; background: #fff; font-size: 13px; color: #9aa3a8; }

/* ── Cenas presas na tela ─────────────────────────────────────── */
.scene-intro { text-align: center; padding: clamp(96px, 14vh, 150px) 0 40px; }
.scene { position: relative; }
.scene .sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; }
.scene .grid { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr minmax(300px, 360px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.scene.wide .grid { grid-template-columns: minmax(260px, 340px) 1fr; }
.steps { position: relative; min-height: 280px; }
.step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step p { font-size: 19px; line-height: 1.5; color: var(--mist); margin: 0; max-width: 34ch; }
.step .tag { display: inline-block; font: 500 12px/1 var(--mono); color: var(--gold); margin-bottom: 14px; letter-spacing: .04em; }
.dots { display: flex; gap: 8px; margin-top: 34px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: .22; transition: all .4s ease; }
.dots i.on { width: 26px; opacity: 1; background: var(--gold); }
.inline-screen { display: none; }

/* ── Painel (navegador) ───────────────────────────────────────── */
.browser { width: 100%; border-radius: 16px; overflow: hidden; background: var(--pearl); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.browser .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #E8E5DD; border-bottom: 1px solid var(--line-light); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5D1C6; }
.browser .bar span { margin-left: 14px; flex: 1; max-width: 300px; height: 22px; border-radius: 6px; background: #F6F4EF; font: 500 11px/22px var(--body); color: var(--slate); text-align: center; }
.app { display: grid; grid-template-columns: 150px 1fr; height: clamp(360px, 58vh, 500px); }
.side { background: var(--night); color: var(--mist); padding: 18px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.side b { font: 600 18px/1 var(--display); color: var(--pearl); margin: 0 8px 16px; }
.side b span { color: var(--gold); }
.side a { text-decoration: none; padding: 7px 10px; border-radius: 8px; transition: background .3s, color .3s; }
.side a.on { background: rgba(199,157,91,.16); color: var(--gold-bright); }
.views { position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; padding: 20px; opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .55s ease; overflow: hidden; }
.view.on { opacity: 1; transform: none; }
.view h4 { font: 600 20px/1.1 var(--display); margin: 0 0 14px; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(13,27,42,.08); padding: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #D9D4C7; flex-shrink: 0; font: 600 12px/30px var(--body); text-align: center; color: var(--night); }
.muted { color: var(--slate); font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-ok { background: rgba(62,155,110,.14); color: var(--ok); }
.b-warn { background: rgba(212,154,42,.16); color: #A87410; }
.b-bad { background: rgba(194,81,63,.13); color: var(--bad); }
.b-gold { background: rgba(199,157,91,.18); color: #8a6526; }
.seg { display: inline-flex; background: #E8E5DD; border-radius: 9px; padding: 2px; font-size: 12px; margin-bottom: 14px; }
.seg span { padding: 5px 12px; border-radius: 7px; }
.seg span.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; }
.col { background: #ECE9E1; border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.col > b { font-size: 12px; display: flex; justify-content: space-between; }
.kc { background: #fff; border-radius: 9px; padding: 8px; box-shadow: 0 1px 2px rgba(13,27,42,.06); }
.kc em { font-style: normal; font-size: 11px; }
.frente { display: grid; grid-template-columns: 34px 1fr 90px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ECE9E1; font-size: 13px; }
.frente b { font: 600 12px var(--mono); color: #8a6526; }
.bar-p { height: 6px; border-radius: 9px; background: #ECE9E1; overflow: hidden; }
.bar-p i { display: block; height: 100%; border-radius: 9px; background: var(--gold); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1) .2s; }
.view.on .bar-p i { width: var(--w); }
table.evo { width: 100%; border-collapse: collapse; font-size: 13px; }
.evo td, .evo th { padding: 9px 6px; border-bottom: 1px solid #ECE9E1; text-align: right; white-space: nowrap; }
.evo th { font-size: 11px; color: var(--slate); font-weight: 500; }
.evo td:first-child, .evo th:first-child { text-align: left; color: var(--slate); }
.up { color: var(--ok); font-weight: 600; }
.film { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin-top: 14px; }
.film div { font-size: 12.5px; padding-left: 16px; position: relative; }
.film div::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.film div.win::before { background: var(--ok); }
.film small { display: block; font: 500 10.5px var(--mono); color: var(--slate); }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini { background: #ECE9E1; border-radius: 10px; padding: 9px; font-size: 11px; color: var(--slate); }
.mini b { display: block; font: 600 16px var(--display); color: var(--ink); white-space: nowrap; }
.mini .up { font-size: 10.5px; }

/* ── Tiles "e ainda" ──────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.tile { background: var(--paper); border-radius: 26px; padding: 30px 28px 32px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.tile.in { opacity: 1; transform: none; }
.tile .ico { font-size: 34px; line-height: 1; }
.tile h3 { font: 600 24px/1.15 var(--display); margin: 20px 0 8px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--slate); font-size: 15.5px; }
.tile.dark { background: var(--night); color: var(--pearl); }
.tile.dark p { color: var(--mist); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ── Régua do ciclo ───────────────────────────────────────────── */
.cycle { position: relative; height: 260svh; }
.cycle .sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 64px; }
.rail::before, .rail .fill { content: ""; position: absolute; top: 9px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; background: rgba(255,255,255,.12); }
.rail .fill { background: var(--gold); right: auto; width: calc((100% - 100% / 6) * var(--p, 0)); transition: width .15s linear; }
.stage { position: relative; text-align: center; padding: 0 8px; opacity: .35; transition: opacity .5s; }
.stage.on { opacity: 1; }
.stage i { display: block; width: 20px; height: 20px; margin: 0 auto 18px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255,255,255,.25); transition: all .5s; position: relative; z-index: 1; }
.stage.on i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(199,157,91,.18); }
.stage b { display: block; font: 600 clamp(15px, 1.7vw, 21px)/1.2 var(--display); }
.stage span { display: block; font-size: 13.5px; color: var(--mist); margin-top: 6px; }

/* ── Frentes ─────────────────────────────────────────────────── */
.frentes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line-light); border-radius: 24px; overflow: hidden; }
.frentes div { background: var(--paper); padding: 28px; opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .7s ease; }
.frentes div.in { opacity: 1; transform: none; }
.frentes b { font: 500 13px var(--mono); color: #8a6526; }
.frentes h3 { font: 600 22px/1.2 var(--display); margin: 10px 0 8px; }
.frentes p { margin: 0; font-size: 15px; color: var(--slate); }
@media (max-width: 860px) { .frentes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .frentes { grid-template-columns: 1fr; } }

/* ── Limites ──────────────────────────────────────────────────── */
.limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 56px; text-align: left; }
.limits div { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.limits h3 { font: 600 21px/1.25 var(--display); margin: 0 0 6px; }
.limits p { margin: 0; color: var(--mist); font-size: 15.5px; }
@media (max-width: 700px) { .limits { grid-template-columns: 1fr; } }

/* ── Chamada final e rodapé ───────────────────────────────────── */
.final { background: radial-gradient(900px 500px at 50% 0%, rgba(199,157,91,.22), transparent 65%), var(--abyss); }
footer { background: var(--abyss); border-top: 1px solid var(--line-dark); padding: 36px 0 48px; font-size: 13px; color: var(--mist); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
footer img { height: 22px; width: auto; }
footer a { color: var(--mist); }

/* Revelação simples ao rolar */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }

/* ── Celular e telas pequenas: as cenas viram uma sequência ──── */
@media (max-width: 899px) {
  .scene { height: auto !important; }
  .scene .sticky { position: static; height: auto; display: block; }
  .scene .grid, .scene.wide .grid { display: block; }
  .scene .device, .dots { display: none; }
  .steps { min-height: 0; }
  .step { position: static; opacity: 1; transform: none; pointer-events: auto; padding: 0 0 72px; }
  .inline-screen { display: block; margin-top: 28px; }
  .inline-screen .phone { width: min(300px, 80vw); margin-inline: auto; }
  .inline-screen .thread { opacity: 1; }
  .inline-screen .thread .msg, .inline-screen .thread .btns { opacity: 1; transform: none; }
  .inline-screen .browser .app { grid-template-columns: 1fr; height: auto; }
  .inline-screen .side { display: none; }
  .inline-screen .views { overflow: visible; }
  .inline-screen .view { position: static; opacity: 1; transform: none; }
  .inline-screen .view .bar-p i { width: var(--w); }
  .cols { grid-template-columns: 1fr 1fr; }
  .minis { grid-template-columns: 1fr 1fr; }
  .film { grid-template-columns: 1fr 1fr; }
  .cycle { height: auto; }
  .cycle .sticky { position: static; height: auto; padding: 110px 0; }
  .rail { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  .rail::before, .rail .fill { display: none; }
  .stage { opacity: 1; display: grid; grid-template-columns: 20px 1fr; gap: 0 16px; text-align: left; }
  .stage i { margin: 4px 0 0; grid-row: span 2; background: var(--gold); border-color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .tile, .frentes div { opacity: 1; transform: none; transition: none; }
  .msg, .btns, .thread, .step, .view { transition: none !important; }
  .typing i { animation: none; opacity: .6; }
}

/* ── Chat da Lira no site ─────────────────────────────────────── */
.lc-launch { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--night); color: var(--pearl); font: 600 15px/1 var(--body); cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(199,157,91,.35); transition: transform .25s ease, opacity .25s ease; }
.lc-launch:hover { transform: translateY(-2px); }
.lc-launch .wa-av { width: 38px; height: 38px; line-height: 38px; font-size: 19px; position: relative; }
.lc-launch .wa-av::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--night); }
.lc-launch[hidden] { display: none; }
.lc { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100svh - 40px)); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--pearl); color: var(--ink); box-shadow: 0 40px 90px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(13,27,42,.08); transform-origin: bottom right; animation: lc-in .35s cubic-bezier(.2,.8,.2,1); }
.lc[hidden] { display: none; }
@keyframes lc-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.lc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: var(--night); color: var(--pearl); }
.lc-head .wa-av { width: 40px; height: 40px; line-height: 40px; font-size: 20px; }
.lc-head b { display: block; font: 600 18px/1.1 var(--display); }
.lc-head small { font-size: 12px; color: var(--mist); }
.lc-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--pearl); font-size: 18px; line-height: 1; cursor: pointer; }
.lc-body { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.lc-msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.42; white-space: pre-line; animation: lc-msg .3s ease; }
@keyframes lc-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lc-msg.lira { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(13,27,42,.08); }
.lc-msg.me { align-self: flex-end; background: var(--night); color: var(--pearl); border-bottom-right-radius: 6px; }
.lc-msg.note { align-self: center; background: transparent; color: var(--slate); font-size: 12.5px; text-align: center; padding: 4px 8px; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.lc-chips button { border: 1px solid rgba(199,157,91,.55); background: #fff; color: #7a5a22; border-radius: 999px; padding: 7px 13px; font: 500 13.5px var(--body); cursor: pointer; }
.lc-chips button:hover { background: rgba(199,157,91,.12); }
.lc-typing { align-self: flex-start; background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; gap: 4px; box-shadow: 0 1px 2px rgba(13,27,42,.08); }
.lc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a8; animation: blink 1.2s infinite; }
.lc-typing i:nth-child(2) { animation-delay: .2s; } .lc-typing i:nth-child(3) { animation-delay: .4s; }
.lc-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 2px; padding: 12px; border-radius: 14px; background: #1FA855; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.lc-wa:hover { background: #1b9a4d; }
.lc-foot { padding: 10px 12px 12px; background: #fff; border-top: 1px solid var(--line-light); }
.lc-form { display: flex; gap: 8px; align-items: center; }
.lc-form input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 22px; background: var(--pearl); padding: 0 16px; font: 400 15px var(--body); color: var(--ink); }
.lc-form input:focus { outline: 2px solid rgba(199,157,91,.6); }
.lc-form button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 18px; cursor: pointer; flex-shrink: 0; }
.lc-form button:disabled { opacity: .45; cursor: default; }
.lc-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--slate); }
.lc-meta a { color: #1b8a47; text-decoration: none; font-weight: 600; }
@media (max-width: 560px) {
  .lc { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; }
  .lc-launch { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lc, .lc-msg { animation: none; } .lc-typing i { animation: none; opacity: .6; } }

/* ── Seta "continue rolando": aparece quando a rolagem para e pula como um ícone no Dock ── */
.nudge { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 55; width: 50px; height: 50px; margin-left: -25px; border: 1px solid rgba(221,184,120,.38); border-radius: 50%; background: rgba(13,27,42,.78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); color: var(--gold-bright); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .45s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.nudge.show { opacity: 1; transform: none; pointer-events: auto; }
.nudge svg { width: 22px; height: 22px; }
.nudge.show .bob { animation: dock 2.6s cubic-bezier(.33,0,.2,1) .35s infinite; transform-origin: 50% 100%; }
.nudge::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 22px; height: 5px; margin-left: -11px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(2px); opacity: 0; }
.nudge.show::after { animation: dock-shadow 2.6s cubic-bezier(.33,0,.2,1) .35s infinite; }
.nudge .bob { display: grid; place-items: center; }
@keyframes dock {
  0%   { transform: translateY(0) scale(1, 1); }
  12%  { transform: translateY(-16px) scale(.96, 1.05); }
  24%  { transform: translateY(0) scale(1.08, .9); }
  30%  { transform: translateY(0) scale(1, 1); }
  40%  { transform: translateY(-8px) scale(.98, 1.03); }
  50%  { transform: translateY(0) scale(1.05, .94); }
  56%, 100% { transform: translateY(0) scale(1, 1); }
}
@keyframes dock-shadow {
  0%, 24%, 50%, 100% { opacity: .9; transform: scale(1); }
  12% { opacity: .35; transform: scale(.55); }
  40% { opacity: .6; transform: scale(.8); }
}
.nudge:hover { border-color: rgba(221,184,120,.7); }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; } .nudge.show .bob, .nudge.show::after { animation: none; } .nudge.show::after { opacity: .9; } }
@media (max-width: 560px) { .lc-launch { padding: 7px; } .lc-launch .lc-label { display: none; } .lc-launch .wa-av { width: 42px; height: 42px; line-height: 42px; } }

/* A conversa contínua da cena: os passos se somam; a mais nova fica embaixo, as antigas saem pelo topo. */
.reel { position: absolute; inset: 0; overflow: hidden; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel .thread { position: static; inset: auto; opacity: 1; flex-shrink: 0; display: none; }
.reel .thread.seen { display: flex; }
.reel .thread .day { margin-top: 8px; }
/* No celular de verdade, cada telinha tem a altura do próprio conteúdo. */
.phone.fit { aspect-ratio: auto; }
.phone.fit .screen { height: auto; }
.phone.fit .chat { flex: none; }
.phone.fit .thread { position: static; inset: auto; }
.phone.fit .wa-input { margin-top: 10px; }
.reel .thread.read .msg, .reel .thread.read .btns { transition: none; }
.reel .thread.read .typing { display: none; }
