/* AptoChat · preto, verde e branco. Tema escuro com vidro, gradientes e movimento suave. */
:root {
  --bg: #040605; --bg-2: #08100b; --surface: rgba(255, 255, 255, 0.035); --surface-2: rgba(255, 255, 255, 0.06); --solid: #0b120e;
  --ink: #f3faf5; --muted: #9bb1a4; --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --g1: #8cff4f; --g2: #22d863; --action: #2ee36c; --action-ink: #02130a; --action-soft: rgba(46, 227, 108, 0.1);
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, #12b981 100%);
  --warn: #fcd34d; --warn-soft: rgba(252, 211, 77, 0.1); --danger: #fca5a5; --danger-soft: rgba(248, 113, 113, 0.12); --ok: #6ee7a0; --ok-soft: rgba(46, 227, 108, 0.1);
  --focus: #8cff4f; --wa-bg: #efeae2; --wa-in: #ffffff; --wa-out: #d9fdd3; --wa-head: #075e54;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 20px 60px rgba(0, 0, 0, 0.45); --glow: 0 0 0 1px rgba(46, 227, 108, 0.25), 0 10px 40px rgba(46, 227, 108, 0.18);
  --support-h: 64px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); line-height: 1.55;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(46, 227, 108, 0.12), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(140, 255, 79, 0.07), transparent 60%), var(--bg);
  background-attachment: fixed; padding-bottom: calc(var(--support-h) + 12px); -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(46, 227, 108, 0.35); color: #fff; }
a { color: var(--g1); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.accent { color: var(--g1); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--solid); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.page-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }

/* cartões de vidro */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card.flat { box-shadow: none; background: var(--surface); }
.card:hover { border-color: var(--line-2); }
.glow-card { border-color: rgba(46, 227, 108, .35); box-shadow: var(--glow); }
.glow-card::before, .plan.rec::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8;
}
.tilt { transform-style: preserve-3d; will-change: transform; }
.kpi { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.kpi-card small { display: block; margin-top: 4px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--action-soft); color: var(--g1); border: 1px solid rgba(46,227,108,.25); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(252,211,77,.25); }
.pill.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248,113,113,.25); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.gray { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.pill.glow { box-shadow: 0 0 20px rgba(46,227,108,.35); }

/* botões */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; overflow: hidden;
  background: var(--grad); color: var(--action-ink); box-shadow: 0 8px 28px rgba(46, 227, 108, .25);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), filter .2s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(46, 227, 108, .35); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.secondary:hover { border-color: rgba(46,227,108,.5); box-shadow: 0 0 0 4px rgba(46,227,108,.08); }
.btn.ghost { background: transparent; color: var(--g1); box-shadow: none; padding-inline: 10px; }
.btn.ghost::after, .btn.secondary::after { display: none; }
.btn.danger { background: #ef4444; color: #fff; box-shadow: none; }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.wa { background: linear-gradient(135deg, #25d366, #128c4a); color: #fff; }
.btn.mic.rec { background: linear-gradient(135deg, #ff5f6d, #c81d4e); color: #fff; border-color: transparent; animation: pulse 1.4s infinite; }

/* formulários */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: #dfeae3; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #6f857a; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 4px rgba(46,227,108,.15); }
select option { background: var(--solid); }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 14px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.alert { padding: 13px 15px; border-radius: 12px; margin: 12px 0; border: 1px solid; animation: fadeUp .4s var(--ease); }
.alert.info, .alert.ok { background: var(--action-soft); border-color: rgba(46,227,108,.3); color: #d7f8e2; }
.alert.warn { background: var(--warn-soft); border-color: rgba(252,211,77,.3); color: #fde9a8; }
.alert.error { background: var(--danger-soft); border-color: rgba(248,113,113,.35); color: #fecaca; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
.table-wrap { overflow-x: auto; }

/* topo */
.top { background: rgba(0,0,0,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: #dfeae3; text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.nav a:not(.btn):hover { background: var(--surface-2); color: #fff; }
.top b { color: #fff; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }
@media (max-width: 480px) { .logo-img { height: 32px; } }

/* página inicial */
.hero { position: relative; padding: 56px 0 30px; overflow: hidden; }
.hero .grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
@media (max-width: 920px) { .hero .grid { grid-template-columns: 1fr; } }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.orb.a { width: 420px; height: 420px; background: #1ed760; top: -120px; right: -80px; opacity: .25; }
.orb.b { width: 320px; height: 320px; background: #8cff4f; bottom: -140px; left: -100px; opacity: .14; animation-delay: -6s; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(46,227,108,.3); background: rgba(46,227,108,.08); color: var(--g1); font-weight: 600; font-size: .85rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 12px var(--action); animation: pulse 2s infinite; }
.lead { font-size: 1.15rem; color: #c3d4ca; max-width: 50ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }
.demo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 560px) { .demo-pair { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px dashed rgba(46,227,108,.35); border-radius: 14px; padding: 14px 16px; font-size: .96rem; color: #dfeae3; }
.quote.solid { border-style: solid; border-color: var(--line-2); }
.section { padding: 64px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps-list li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; position: relative; transition: transform .35s var(--ease), border-color .35s; }
.steps-list li:hover { transform: translateY(-4px); border-color: rgba(46,227,108,.4); }
.steps-list li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: var(--action-ink); font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(46,227,108,.3); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(46,227,108,.1); border: 1px solid rgba(46,227,108,.25); margin-bottom: 14px; }
.cta-band { text-align: center; padding: 46px 22px; background: radial-gradient(600px 220px at 50% 0%, rgba(46,227,108,.22), transparent 70%), var(--surface); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 17px; transition: border-color .2s; }
details[open] { border-color: rgba(46,227,108,.35); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--g1); transition: transform .25s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }

/* celular de demonstração */
.phone-wrap { position: relative; }
.phone-wrap::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(circle, rgba(46,227,108,.45), transparent 65%); filter: blur(40px); z-index: -1; animation: glowPulse 5s ease-in-out infinite; }
.phone { width: min(360px, 100%); margin: 0 auto; background: linear-gradient(145deg, #1b1f1d, #050605); border-radius: 48px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px rgba(255,255,255,.04); position: relative; animation: float 7s ease-in-out infinite; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.screen { background: var(--wa-bg); border-radius: 38px; overflow: hidden; height: 620px; display: flex; flex-direction: column; color: #111b21; }
@media (max-width: 480px) { .screen { height: 540px; } }
.wa-status { height: 44px; background: var(--wa-head); }
.wa-head { background: var(--wa-head); color: #fff; display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; }
.wa-head .av { width: 36px; height: 36px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-weight: 800; color: #063; }
.wa-head b { display: block; font-size: .95rem; color: #fff; }
.wa-head small { color: #cfe9e4; font-size: .75rem; }
.wa-body { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: .9rem; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px .5px rgba(0,0,0,.12); color: #111b21; animation: pop .28s var(--ease); }
.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.sys { align-self: center; background: #fff7d6; font-size: .78rem; color: #5c4a00; max-width: 92%; text-align: center; }
.bubble a { color: #027eb5; font-weight: 600; }
.bubble small { color: #667781; }
.opts { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; width: 84%; animation: pop .3s var(--ease); }
.opts button { background: #fff; border: 0; border-radius: 8px; padding: 9px; color: #027eb5; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 40px; box-shadow: 0 1px .5px rgba(0,0,0,.12); transition: background .15s; }
.opts button:hover { background: #f0f7fb; }
.wa-input { display: flex; gap: 6px; padding: 8px; background: #f0f0f0; }
.wa-input input { border-radius: 22px; border: 0; min-height: 42px; background: #fff; color: #111b21; }
.wa-input input:focus { box-shadow: none; }
.wa-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--wa-head); color: #fff; font-size: 1.1rem; cursor: pointer; flex: none; }
.typing { font-size: .8rem; color: #667781; padding: 0 12px 6px; min-height: 18px; background: var(--wa-bg); }

/* planos */
.cycle-row { justify-content: center; margin: 14px 0 22px; }
.toggle { display: inline-flex; background: rgba(0,0,0,.4); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; gap: 4px; }
.toggle button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; min-height: 40px; color: var(--muted); transition: background .25s, color .25s; }
.toggle button[aria-pressed="true"] { background: var(--grad); color: var(--action-ink); box-shadow: 0 6px 20px rgba(46,227,108,.3); }
.plans-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.plan .feat { flex: 1; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.035em; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-sub { margin: 4px 0 0; font-size: .92rem; }
.plan-tag { margin: 12px 0 4px; }
.plan.rec { border-color: transparent; box-shadow: var(--glow); }
.feat { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 9px; font-size: .93rem; }
.feat li { display: flex; gap: 9px; align-items: flex-start; }
.check { color: var(--action); font-weight: 800; }
.cross { color: #5d7266; }
.integ-explain { margin-top: 22px; }
.switch { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 11px 13px; border: 1px dashed var(--line-2); border-radius: 14px; cursor: pointer; font-weight: 400; min-height: 52px; transition: border-color .25s, background .25s; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 46px; height: 27px; border-radius: 99px; background: #2a3530; position: relative; transition: background .25s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--grad); box-shadow: 0 0 16px rgba(46,227,108,.45); }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch:has(input:checked) { border-style: solid; border-color: rgba(46,227,108,.5); background: var(--action-soft); }
.switch:hover { border-color: rgba(46,227,108,.4); }
.promo-form { margin-top: 12px; }

/* painel e admin */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 66px); }
.side { background: rgba(0,0,0,.35); border-right: 1px solid var(--line); padding: 18px 12px; backdrop-filter: blur(10px); }
.side a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; color: #c9d8cf; text-decoration: none; font-weight: 500; min-height: 44px; margin-bottom: 2px; transition: background .2s, color .2s, transform .2s; }
.side a:hover { background: var(--surface-2); color: #fff; transform: translateX(2px); }
.side a[aria-current="page"] { background: linear-gradient(90deg, rgba(46,227,108,.18), rgba(46,227,108,.04)); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--action); }
.main { padding: 26px; min-width: 0; animation: fadeUp .45s var(--ease); }
.co { padding: 4px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 4px; padding: 8px; position: sticky; top: 66px; z-index: 10; scrollbar-width: none; }
  .side a { white-space: nowrap; padding: 8px 12px; margin: 0; }
  .side a:hover { transform: none; }
  .co { display: none; }
  .main { padding: 16px; }
}
.meter { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .8s var(--ease); }
.meter.warn > span { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.meter.full > span { background: linear-gradient(90deg, #fb7185, #ef4444); }

/* criar com IA */
.builder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; flex: 1; max-width: 520px; }
.meter-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; font-size: .88rem; }
.meter-card .row { margin-bottom: 7px; }
.meter-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.meter-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 12px rgba(46,227,108,.5); transition: width 1s var(--ease); }
.meter-card.warn .meter-bar > span { background: linear-gradient(90deg, #fcd34d, #f59e0b); box-shadow: none; }
.meter-card.full .meter-bar > span { background: linear-gradient(90deg, #fb7185, #ef4444); box-shadow: none; }
.builder { display: grid; grid-template-columns: minmax(280px, 1fr) 380px minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1240px) { .builder { grid-template-columns: 1fr 380px; } .builder .col-steps { grid-column: 1 / -1; } }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } .builder > [hidden-sm] { display: none; } }
.tabs-sm { display: none; }
@media (max-width: 860px) { .tabs-sm { display: flex; gap: 6px; margin-bottom: 12px; position: sticky; top: 120px; z-index: 5; background: rgba(4,6,5,.9); backdrop-filter: blur(10px); padding: 6px 0; } .tabs-sm button { flex: 1; } }
.chat-log { max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.msg { padding: 11px 13px; border-radius: 14px; background: var(--surface-2); white-space: pre-wrap; border: 1px solid var(--line); animation: fadeUp .35s var(--ease); }
.msg.me { background: linear-gradient(135deg, rgba(46,227,108,.18), rgba(46,227,108,.06)); border-color: rgba(46,227,108,.3); align-self: flex-end; max-width: 92%; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 7px 13px; font: inherit; font-size: .87rem; cursor: pointer; min-height: 36px; color: var(--ink); transition: border-color .2s, background .2s, transform .2s; }
.chip:hover { border-color: var(--action); background: var(--action-soft); transform: translateY(-1px); }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--surface); transition: border-color .25s; }
.step:hover { border-color: rgba(46,227,108,.35); }
.step .t { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--g1); font-weight: 800; }
.step.changed { border-color: #f59e0b; background: rgba(245,158,11,.08); }
.chain { display: flex; flex-wrap: wrap; gap: 7px; align-items: stretch; margin: 7px 0 15px; }
.chain .step { flex: 1 1 160px; }
.arrow { align-self: center; color: var(--g1); }
.diff del { background: rgba(248,113,113,.15); color: #fecaca; text-decoration: line-through; }
.diff ins { background: rgba(46,227,108,.15); color: #c9f7d8; text-decoration: none; }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* suporte fixo: barra reservada no rodapé, nunca por cima de Salvar/Publicar/campo de mensagem */
.support-bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--support-h); background: rgba(0,0,0,.82); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; z-index: 30; }
.support-bar .btn { min-height: 44px; }
@media (max-width: 480px) { .support-bar .extra { display: none; } }
footer.site { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; font-size: .9rem; color: var(--muted); }
footer.site a { color: #c9d8cf; }
dialog { border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; max-width: min(540px, calc(100vw - 32px)); box-shadow: 0 30px 90px rgba(0,0,0,.7); color: var(--ink); background: var(--solid); animation: pop .3s var(--ease); }
dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--support-h) + 16px); background: var(--solid); color: #fff; border: 1px solid rgba(46,227,108,.4); box-shadow: var(--glow); padding: 13px 18px; border-radius: 14px; z-index: 50; max-width: calc(100vw - 32px); animation: fadeUp .35s var(--ease); }

/* movimento */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes glowPulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,227,108,.55); } 70% { box-shadow: 0 0 0 10px rgba(46,227,108,0); } 100% { box-shadow: 0 0 0 0 rgba(46,227,108,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
