/* ==========================================================================
   Resmilabs — Design System
   High-performance, accessible, responsive. Mobile-first.
   ========================================================================== */

:root {
  /* Brand palette */
  --c-bg: #0b1020;
  --c-bg-soft: #11182e;
  --c-surface: #ffffff;
  --c-surface-soft: #f5f7fb;
  --c-ink: #0f172a;
  --c-ink-soft: #475569;
  --c-muted: #94a3b8;
  --c-border: #e2e8f0;
  --c-primary: #0f62fe;
  --c-primary-dark: #0353e9;
  --c-accent: #10b981;
  --c-accent-2: #1e3a8a;
  --c-wa: #25d366;
  --c-warn: #f59e0b;

  /* Type */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --fs-300: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --fs-400: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  --fs-500: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-600: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-700: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --fs-800: clamp(2.4rem, 1.7rem + 3.4vw, 4rem);

  /* Layout */
  --maxw: 1180px;
  --radius: 4px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --space: clamp(3rem, 6vw, 6rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.16; font-weight: 600; letter-spacing: -0.015em; color: var(--c-ink); }
h1 { font-weight: 700; }
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-500); }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }

/* Responsive hardening — never allow horizontal overflow on mobile */
html, body { overflow-x: clip; max-width: 100%; }
h1, h2, h3, h4, p, li, a, blockquote, summary { overflow-wrap: break-word; }
.grid > *, .hero-grid > *, .feature-row > *, .price-grid > *, .footer-grid > *, .wa-demo__stage > *, .stats > * { min-width: 0; }
@media (max-width: 480px) {
  .btn-lg { padding: .85rem 1.2rem; font-size: var(--fs-400); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .mcta .btn { padding: .7rem .4rem; font-size: .85rem; gap: .3rem; }
}

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--space); }
.section--soft { background: var(--c-surface-soft); }
.section--dark { background: var(--c-bg); color: #e2e8f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: var(--fs-300); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-primary); margin-bottom: .75rem;
}
.lead { font-size: var(--fs-500); color: var(--c-ink-soft); max-width: 60ch; }
.muted { color: var(--c-ink-soft); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack > * + * { margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-400); line-height: 1; letter-spacing: 0;
  padding: .85rem 1.6rem; border-radius: 2px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-accent { background: var(--c-accent); color: #04241a; }
.btn-wa { background: var(--c-wa); color: #04241a; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-border); }
.section--dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-lg { padding: 1rem 1.9rem; font-size: var(--fs-500); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--c-ink); letter-spacing: -.04em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent-2)); color: #fff; font-weight: 900;
}
.brand span b { color: var(--c-primary); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-ic { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; }
@media (max-width: 480px) { .brand-logo { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--c-ink-soft); font-weight: 600; padding: .5rem .75rem; border-radius: 8px; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--c-primary); background: var(--c-surface-soft); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-border); border-radius: 8px; padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.btn-call { padding: .55rem .9rem; font-size: .92rem; gap: .35rem; }
.btn-call .icon-sm { width: 15px; height: 15px; }

/* Services mega-menu */
.has-mega { position: relative; }
.mega-toggle {
  display: inline-flex; align-items: center; gap: .3rem; background: none; border: none; cursor: pointer;
  font: inherit; color: var(--c-ink-soft); font-weight: 600; padding: .5rem .75rem; border-radius: 8px; font-size: .98rem;
}
.mega-toggle:hover, .mega-toggle.is-active { color: var(--c-primary); background: var(--c-surface-soft); }
.mega-toggle .chev { width: 16px; height: 16px; transition: transform .2s ease; }
.has-mega:hover .mega-toggle .chev, .has-mega:focus-within .mega-toggle .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 0; width: min(620px, 90vw); z-index: 60;
  background: #fff; border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: .85rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.mega-grid a { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .75rem; border-radius: 11px; color: var(--c-ink); }
.mega-grid a:hover { background: var(--c-surface-soft); text-decoration: none; }
.mega-grid a[aria-current="page"] { background: #eef2ff; }
.mega-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg,#eef2ff,#ede9fe); color: var(--c-primary); border: 1px solid #e4e8f5; }
.mega-ic .icon { width: 20px; height: 20px; }
.mega-txt b { display: block; font-size: .92rem; font-weight: 700; line-height: 1.2; }
.mega-txt small { color: var(--c-ink-soft); font-size: .8rem; line-height: 1.25; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; padding: .85rem .75rem .35rem; border-top: 1px solid var(--c-border); }
.mega-foot span { color: var(--c-ink-soft); font-size: .9rem; font-weight: 600; }
.mega-foot .btn { padding: .55rem 1rem; font-size: .9rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-border); padding: .75rem 1rem; gap: .25rem;
    box-shadow: var(--shadow); display: none; max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .mega-toggle { padding: .75rem; width: 100%; justify-content: space-between; }
  .nav .nav-cta .btn-call, .nav .nav-cta .btn-primary { display: none; }
  /* mega becomes inline accordion on mobile */
  .mega {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; padding: 0 0 .5rem; display: none;
  }
  .has-mega.open .mega { display: block; }
  .has-mega.open .mega-toggle .chev { transform: rotate(180deg); }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-foot { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #dbe4f0;
  background:
    radial-gradient(820px 460px at 88% -12%, rgba(15,98,254,.26), transparent 62%),
    linear-gradient(180deg, #0a1224, #0a1530 55%, #0b1838);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(1000px 620px at 50% 0%, #000, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--c-primary);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero .container { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p { color: #c7d2e6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.75rem; list-style: none; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: .5rem; color: #cbd5e1; font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--c-accent); font-weight: 900; }
.hero-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px; padding: 0; overflow: hidden; backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(2,6,23,.55);
}
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: #075e54; color: #fff; }
.chat-head .ph { width: 38px; height: 38px; border-radius: 50%; background: #25d366; color: #04241a; display: grid; place-items: center; font-weight: 800; }
.chat-head b { font-family: var(--font-display); font-size: .98rem; line-height: 1.1; }
.chat-head small { display: block; color: #b9f6ca; font-size: .74rem; }
.chat-head .dots { margin-left: auto; opacity: .7; letter-spacing: 2px; }
.chat-body { padding: 1.1rem 1rem 1.2rem; background:
  radial-gradient(circle at 20% 10%, rgba(37,211,102,.06), transparent 40%), #0e1626; }
.chatbubble { display: flex; margin-bottom: .55rem; max-width: 86%; }
.chatbubble .msg {
  position: relative; background: #1f2937; padding: .5rem .7rem .55rem; border-radius: 10px;
  font-size: .86rem; color: #e8edf5; box-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.chatbubble .msg time { display: block; text-align: right; font-size: .62rem; color: #94a3b8; margin-top: .15rem; }
.chatbubble.me { margin-left: auto; justify-content: flex-end; }
.chatbubble.me .msg { background: #134d3a; color: #eafff4; border-top-right-radius: 2px; }
.chatbubble.me .msg time { color: #8fd3b6; }
.chatbubble:not(.me) .msg { border-top-left-radius: 2px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { text-align: center; padding: 1.25rem; }
.stat b { display: block; font-size: var(--fs-700); color: var(--c-primary); line-height: 1; }
.stat span { color: var(--c-ink-soft); font-weight: 600; font-size: .95rem; }

/* Cards */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { box-shadow: none; border-color: var(--c-primary); }
.card .ico {
  width: 48px; height: 48px; border-radius: 2px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: #eaf1ff; color: var(--c-primary); border: 1px solid #d3e0fb;
}
.card:hover .ico { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
/* numbered step chips reuse .ico but with display font */
.ico.is-num { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--c-ink-soft); font-size: .98rem; }
.card .card-link { margin-top: auto; padding-top: 1rem; font-weight: 700; }
.card .card-link::after { content: " →"; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 2px; background: #eef2ff; color: var(--c-primary); }

/* Feature list */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-row.rev > div:first-child { order: 2; }
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; } .feature-row.rev > div:first-child { order: 0; } }
.checklist { list-style: none; padding: 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-weight: 900; font-size: .85rem; margin-top: 2px; }

/* Pricing */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.75rem; background: #fff; display: flex; flex-direction: column; }
.price.featured { border-color: var(--c-primary); box-shadow: var(--shadow); position: relative; }
.price.featured::before { content: "Most popular"; position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .75rem; border-radius: 2px; letter-spacing: .05em; }
.price .amt { font-size: var(--fs-700); font-weight: 900; color: var(--c-ink); line-height: 1; margin: .5rem 0; }
.price .amt small { font-size: 1rem; font-weight: 600; color: var(--c-muted); }
.price ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; }
.price ul li { display: flex; gap: .5rem; font-size: .95rem; color: var(--c-ink-soft); }
.price ul li::before { content: "✓"; color: var(--c-accent); font-weight: 900; }
.price .btn { margin-top: auto; justify-content: center; }

/* FAQ */
.faq details { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; background: #fff; }
.faq details + details { margin-top: .75rem; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--c-ink-soft); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--c-primary), var(--c-accent-2)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e0e7ff; max-width: 55ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--c-primary); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* Forms */
.form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; max-width: 100%; padding: .8rem .9rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Blog */
.post-card { overflow: hidden; padding: 0; }
.post-card .post-body { padding: 1.4rem; display: flex; flex-direction: column; height: 100%; }
.post-card .post-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--c-primary), var(--c-accent-2)); display: grid; place-items: center; color: #fff; position: relative; }
.post-card .post-cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.post-card .post-cover .icon { width: 46px; height: 46px; stroke-width: 1.6; position: relative; z-index: 1; }
.post-meta { font-size: .82rem; color: var(--c-muted); display: flex; gap: .75rem; }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 2.25rem; }
.article h3 { margin-top: 1.75rem; }
.article p, .article ul, .article ol { margin-top: 1rem; color: #1e293b; }
.article img { border-radius: var(--radius); margin-top: 1.5rem; }
.article blockquote { border-left: 4px solid var(--c-primary); padding-left: 1rem; margin-top: 1.5rem; color: var(--c-ink-soft); font-style: italic; }
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--c-ink-soft); }

/* Footer */
.site-footer { background: var(--c-bg); color: #94a3b8; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #94a3b8; display: block; padding: .25rem 0; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #94a3b8; margin-top: .75rem; max-width: 34ch; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--c-wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  animation: wa-pulse 2.4s infinite; transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-label {
  position: fixed; right: clamp(82px, 11vw, 96px); bottom: clamp(24px, 4vw, 36px); z-index: 90;
  background: #fff; color: var(--c-ink); font-weight: 700; font-size: .85rem; padding: .5rem .85rem;
  border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; border: 1px solid var(--c-border);
}
@media (max-width: 520px) { .wa-label { display: none; } }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } html { scroll-behavior: auto; } }

/* ===== WhatsApp automation live demo ===== */
.wa-demo__tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.wa-tab {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--c-border); background: #fff;
  border-radius: 2px; padding: .5rem 1.05rem; font-family: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; color: var(--c-ink-soft); transition: all .15s ease;
}
.wa-tab:hover { border-color: #c7d2fe; }
.wa-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.wa-demo__stage { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 2rem; align-items: start; max-width: 920px; margin-inline: auto; }
@media (max-width: 860px) { .wa-demo__stage { grid-template-columns: 1fr; justify-items: center; } .wa-panel { width: 100%; max-width: 420px; } }

.wa-phone { width: 100%; max-width: 360px; background: #0e1626; border: 9px solid #05080f; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-lg); }
.wa-phone .chat-head { border-radius: 0; }
.wa-phone .chat-head small { color: #b9f6ca; }
.wa-phone .chat-body { height: 430px; overflow-y: auto; scroll-behavior: smooth; }
.wa-phone .chat-body::-webkit-scrollbar { width: 0; }
.wa-phone .chat-input { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: #0b1426; border-top: 1px solid rgba(255,255,255,.06); }
.wa-phone .ci-box { flex: 1; background: #1f2937; border-radius: 999px; padding: .5rem .85rem; color: #8b97a8; font-size: .82rem; }
.wa-phone .ci-send { width: 34px; height: 34px; border-radius: 50%; background: var(--c-wa); display: grid; place-items: center; color: #04241a; flex: 0 0 auto; }
.wa-phone .ci-send svg { width: 17px; height: 17px; }
.wa-typing { display: inline-flex; gap: 4px; align-items: center; background: #1f2937; padding: .6rem .8rem; border-radius: 10px; border-top-left-radius: 2px; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: wa-blink 1s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .18s; } .wa-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes wa-blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-phone .chatbubble { animation: wa-pop .25s ease; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.wa-panel { background: #fff; border: 1px solid var(--c-border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; width: 100%; }
.wa-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-border); font-family: var(--font-display); font-weight: 700; }
.wa-panel__head .live { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: #16a34a; font-weight: 700; }
.wa-panel__head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: wa-livedot 1.5s infinite; }
@keyframes wa-livedot { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.wa-panel__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-border); }
.wa-stat { background: #fff; padding: .95rem 1.25rem; }
.wa-stat b { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--c-ink); line-height: 1; }
.wa-stat span { font-size: .78rem; color: var(--c-ink-soft); font-weight: 600; }
.wa-stat.bump b { animation: wa-bump .4s ease; color: var(--c-primary); }
@keyframes wa-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.wa-feed { padding: .9rem 1.25rem 1.1rem; }
.wa-feed h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--c-muted); margin-bottom: .5rem; font-weight: 800; }
.wa-feed__list { display: grid; gap: .15rem; max-height: 210px; overflow-y: auto; }
.wa-feed__item { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--c-surface-soft); animation: wa-slidein .35s ease; }
@keyframes wa-slidein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wa-feed__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: var(--c-surface-soft); color: var(--c-primary); }
.wa-feed__ic .icon { width: 17px; height: 17px; }
.wa-feed__ic.ok { background: #dcfce7; color: #16a34a; }
.wa-feed__ic.warn { background: #fef3c7; color: #b45309; }
.wa-feed__txt b { font-size: .85rem; font-weight: 700; display: block; line-height: 1.2; }
.wa-feed__txt small { display: block; color: var(--c-ink-soft); font-size: .76rem; }

/* ===== Trust / testimonials / Google Ads landing ===== */
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 1rem; }
.testimonial { gap: .6rem; }
.testimonial blockquote { margin: .6rem 0 1rem; font-size: 1rem; color: var(--c-ink); line-height: 1.55; }
.testimonial figcaption b { display: block; font-weight: 700; }
.testimonial figcaption span { color: var(--c-ink-soft); font-size: .88rem; }

.trust-bar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; }
.trust-bar span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--c-ink-soft); font-size: .95rem; }
.trust-bar .icon { width: 20px; height: 20px; color: var(--c-accent); }

/* Landing page minimal header */
.lp-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-border); }
.lp-header .nav { padding-block: .6rem; }
.lp-header .lp-actions { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 520px) { .lp-header .lp-call-text { display: none; } }

/* Landing hero form card */
.lp-form-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.25rem, 4vw, 1.9rem); }
.lp-form-card h2 { font-size: var(--fs-500); }
.lp-form-card .mini { font-size: .82rem; color: var(--c-ink-soft); }
.lp-badge { display: inline-flex; align-items: center; gap: .4rem; background: #dcfce7; color: #166534; font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 2px; }
.hero .lp-form-card h2, .hero .lp-form-card label, .hero .lp-form-card .mini { color: var(--c-ink); }

/* Compact landing page */
.lp .hero .container { padding-block: clamp(1.5rem, 3.5vw, 2.75rem); }
.lp .hero h1 { font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.9rem); margin-top: .75rem; }
.lp .hero .lead { font-size: var(--fs-400); margin-top: .6rem; }
.lp .hero-grid { gap: 1.75rem; align-items: start; }
.lp .hero-points { gap: .45rem 1.25rem; margin-top: 1.1rem; }
.lp .hero-points li { font-size: .9rem; }
.lp .hero-cta { margin-top: 1.1rem; }
.lp .section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.lp .form { gap: .65rem; padding-top: .85rem !important; }
.lp .form .field { gap: .25rem; }
.lp .form .field input, .lp .form .field select, .lp .form .field textarea { padding: .6rem .8rem; }
.lp .form .field label { font-size: .85rem; }
.lp .lp-form-card { padding: clamp(1rem, 3vw, 1.4rem); }
.lp .lp-form-card h2 { margin: .4rem 0 .15rem !important; }
.lp .form .btn { padding: .8rem 1.5rem; }
.lp .stat b { font-size: var(--fs-600); }
.lp .testimonial blockquote { font-size: .92rem; margin: .5rem 0 .8rem; }

/* Sticky mobile CTA bar (landing) */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: .5rem; padding: .55rem; background: rgba(255,255,255,.97); border-top: 1px solid var(--c-border); box-shadow: 0 -6px 20px rgba(15,23,42,.1); backdrop-filter: blur(8px); }
.mcta a { flex: 1; justify-content: center; }
@media (max-width: 720px) { .mcta { display: flex; } body.has-mcta { padding-bottom: 72px; } body.has-mcta .wa-float, body.has-mcta .wa-label { display: none; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { background: var(--c-surface-soft); border: 1px solid var(--c-border); border-radius: 2px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; color: var(--c-ink-soft); }
.text-balance { text-wrap: balance; }
