/* ============================================================
   wa-bot.css — WhatsApp chat bot (wab-) + lead-magnet guides (gd-)
   ============================================================ */
:root { --wa: #25D366; --wa-deep: #128C7E; --wa-chat: #EFE7DD; --wa-out: #DCF8C6; }

/* ── Launcher ── */
.wab { position: fixed; right: 20px; bottom: 96px; z-index: 95; font-family: var(--font-body); }
.wab-launch { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  font-size: 1.75rem; box-shadow: 0 14px 32px -10px rgba(37,211,102,.7); transition: transform .3s var(--ease, ease); text-decoration: none; }
.wab-launch:hover, .wab-launch:focus-visible { transform: scale(1.07); color: #fff; }
.wab-launch:focus-visible { outline: 3px solid var(--gold, #B08D57); outline-offset: 3px; }
.wab-launch__dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--coral, #E85D5F); border: 2px solid #fff; }
.wab.is-seen .wab-launch__dot { display: none; }
.wab.is-open { z-index: 1000; }
@media (max-width: 899px) { .wab { bottom: 76px; right: 14px; } .wab-launch { display: none; } .wab.is-open .wab-launch { display: none; } }
@media (min-width: 900px) { .wab { bottom: 28px; right: 28px; } }

.wab-teaser { position: absolute; right: 70px; bottom: 8px; display: flex; align-items: center; gap: 4px; background: #fff; color: var(--charcoal, #1E1D1B);
  border-radius: 14px 14px 4px 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); padding: 4px 6px 4px 4px; width: max-content; max-width: 240px; animation: wabPop .35s ease both; }
.wab-teaser__msg { border: 0; background: none; font: inherit; font-size: .85rem; text-align: left; padding: 8px 6px 8px 10px; cursor: pointer; color: inherit; }
.wab-teaser__x { border: 0; background: none; font-size: 1.1rem; line-height: 1; color: var(--muted, #77716A); cursor: pointer; padding: 4px 6px; order: 2; }
@media (max-width: 899px) { .wab-teaser { display: none !important; } }

/* ── Panel ── */
.wab-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 28px)); height: min(600px, calc(100vh - 130px)); display: flex; flex-direction: column;
  background: var(--wa-chat); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); animation: wabPop .3s ease both; }
.wab-panel[hidden] { display: none; }
@media (max-width: 899px) { .wab-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: min(86vh, 640px); border-radius: 18px 18px 0 0; bottom: 0; } }
@keyframes wabPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.wab-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--wa-deep); color: #fff; }
.wab-head__av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.wab-head__av .liv-mark { width: 24px; height: 24px; }
.wab-head__t { flex: 1; min-width: 0; }
.wab-head__t p { margin: 0; font-weight: 700; font-size: .98rem; }
.wab-head__t small { opacity: .85; font-size: .76rem; display: flex; align-items: center; gap: 6px; }
.wab-online { width: 8px; height: 8px; border-radius: 50%; background: #7CFC9A; display: inline-block; }
.wab-head__x { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.wab-head__x:hover { background: rgba(255,255,255,.22); }

.wab-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wab-msg { max-width: 86%; padding: 8px 11px 7px; border-radius: 10px; font-size: .9rem; line-height: 1.42; color: #111; background: #fff;
  box-shadow: 0 1px .5px rgba(0,0,0,.13); align-self: flex-start; border-top-left-radius: 2px; animation: wabPop .25s ease both; overflow-wrap: anywhere; }
.wab-msg--me { align-self: flex-end; background: var(--wa-out); border-top-left-radius: 10px; border-top-right-radius: 2px; }
.wab-msg small { display: block; text-align: right; font-size: .66rem; color: #667; margin-top: 2px; }
.wab-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.wab-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa; animation: wabDot 1s infinite; }
.wab-typing i:nth-child(2) { animation-delay: .15s; } .wab-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wabDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.wab-card { display: flex; gap: 10px; align-items: center; padding: 10px; margin-top: 6px; border-radius: 10px; background: #F6F3EE; color: #111; text-decoration: none; border: 1px solid rgba(0,0,0,.06); }
.wab-card:hover { background: #EFEAE2; color: #111; }
.wab-card i { width: 36px; height: 36px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--coral, #E85D5F); color: #fff; }
.wab-card b { display: block; font-size: .86rem; } .wab-card span { font-size: .74rem; color: #555; }

.wab-foot { padding: 8px 10px 12px; background: #F0F0F0; border-top: 1px solid rgba(0,0,0,.06); max-height: 52%; overflow-y: auto; }
.wab-foot:empty { display: none; }
.wab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wab-chip { border: 1px solid var(--wa-deep); color: var(--wa-deep); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; text-align: left; }
.wab-chip:hover, .wab-chip:focus-visible { background: var(--wa-deep); color: #fff; outline: none; }
.wab-chip--block { display: flex; width: 100%; border-radius: 12px; gap: 10px; align-items: center; padding: 10px 12px; }
.wab-chip--block i { width: 18px; text-align: center; }
.wab-form { display: grid; gap: 8px; }
.wab-form input { width: 100%; border: 1px solid rgba(0,0,0,.15); border-radius: 22px; padding: 10px 14px; font: inherit; font-size: .92rem; background: #fff; color: #111; }
.wab-form input:focus { outline: 2px solid var(--wa-deep); outline-offset: 0; border-color: transparent; }
.wab-form input[aria-invalid="true"] { border-color: var(--danger, #B5443F); }
.wab-send { border: 0; border-radius: 22px; padding: 11px 14px; background: var(--wa-deep); color: #fff; font: inherit; font-weight: 700; cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; }
.wab-send[disabled] { opacity: .6; cursor: wait; }
.wab-send--wa { background: var(--wa); color: #073B1F; text-decoration: none; }
.wab-send--wa:hover { color: #073B1F; filter: brightness(.96); }
.wab-err { color: var(--danger, #B5443F); font-size: .8rem; margin: 0; }
.wab-fine { font-size: .7rem; color: #666; margin: 0; line-height: 1.4; }
.wab-fine a { color: inherit; }
.wab-link { border: 0; background: none; color: var(--wa-deep); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 4px 0 0; }

@media (prefers-reduced-motion: reduce) { .wab-panel, .wab-msg, .wab-teaser { animation: none; } .wab-typing i { animation: none; opacity: .6; } }

/* ── Guides (/guides/:slug) ── */
.gd-cover { background: var(--grad-dark, #1E1D1B); color: #fff; padding: clamp(110px, 14vw, 170px) 0 clamp(40px, 6vw, 70px); }
.gd-cover .eyebrow { color: var(--gold-3, #D9BE8C); display: flex; gap: 8px; align-items: center; }
.gd-cover__title { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); margin: 10px 0 12px; max-width: 18ch; color: #fff; }
.gd-cover__lead { max-width: 58ch; opacity: .85; font-size: var(--fs-md, 1.125rem); }
.gd-cover__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.gd-cover__hint { font-size: .82rem; opacity: .7; }
.gd-lock { padding: clamp(32px, 5vw, 64px) var(--gutter, 16px); }
.gd-lock__card { max-width: 640px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
.gd-body { padding: clamp(28px, 5vw, 56px) var(--gutter, 16px); max-width: 900px; }
.gd-sec { margin-bottom: clamp(28px, 4vw, 44px); break-inside: avoid; }
.gd-sec h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 10px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0; }
.gd-table th, .gd-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gd-table th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gd-table--num td:not(:first-child), .gd-table--num th:not(:first-child) { text-align: right; white-space: nowrap; }
.gd-table small { display: block; color: var(--muted); font-size: .76rem; }
@media (max-width: 599px) { .gd-sec { overflow-x: auto; } .gd-table { font-size: .84rem; } .gd-table th, .gd-table td { padding: 8px 6px; } }
.gd-list { padding-left: 1.2em; display: grid; gap: 8px; margin: 10px 0 16px; }
.gd-list--num { list-style: decimal; }
.gd-check { list-style: none; padding: 0; display: grid; gap: 8px; }
.gd-check li { display: flex; gap: 10px; align-items: flex-start; }
.gd-box { width: 16px; height: 16px; border: 1.5px solid var(--gold, #B08D57); border-radius: 3px; flex: none; margin-top: 3px; }
.gd-note { font-size: .84rem; color: var(--muted); }
.gd-cta { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: clamp(24px, 4vw, 40px) var(--gutter, 16px) clamp(48px, 6vw, 80px); max-width: 900px; }
.gd-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-print-only { display: none; }

@media print {
  .hdr, .ftr, .mbar, .wab, .cw, .cookie-bar, .modal, .search, .no-print, .skip-link { display: none !important; }
  body { padding: 0 !important; background: #fff !important; }
  .gd-cover { background: #fff !important; color: #111 !important; padding: 0 0 14px !important; border-bottom: 2px solid #B08D57; }
  .gd-cover__title, .gd-cover .eyebrow { color: #111 !important; }
  .gd-body, .gd-cta { padding: 14px 0 !important; max-width: none; }
  .gd-print-only { display: block; font-size: .78rem; color: #555; margin-top: 10px; }
  .gd-table th, .gd-table td { padding: 6px 8px; }
  a { color: #111; text-decoration: none; }
}
