﻿/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --red:        #e53935;
  --red-dim:    #b71c1c;
  --red-dark:   #7f0000;
  --red-glow:   rgba(229,57,53,0.20);
  --bg:         #0d0d0d;
  --bg-alt:     #111111;
  --bg-card:    #161616;
  --bg-header:  #110000;
  --bg-chat:    #0d0d0d;
  --bg-bot:     #1e1e1e;
  --bg-user:    #3b0000;
  --text:       #eeeeee;
  --text-sub:   #bbbbbb;
  --text-muted: #777777;
  --border:     rgba(229,57,53,0.15);
  --border-hv:  rgba(229,57,53,0.40);
  --green:      #25d366;
  --avatar:     36px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
strong { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   SHARED UTILITIES
═══════════════════════════════════════════════════════════ */
.lp-container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.lp-section-label.center { text-align: center; }

.lp-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 40px;
}
.lp-h2.center { text-align: center; }
.lp-h2.left   { text-align: left; }

.lp-red   { color: var(--red); }

.lp-micro {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   CTA BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(229,57,53,0.35);
  white-space: nowrap;
}
.btn-cta:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229,57,53,0.5);
}
.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(229,57,53,0.3);
}
.btn-cta-sm { padding: 10px 20px; font-size: 13px; border-radius: 8px; }
.btn-cta-xl { padding: 18px 40px; font-size: 17px; border-radius: 12px; }

.btn-pulse {
  animation: btn-pulse-anim 2.5s infinite;
}
@keyframes btn-pulse-anim {
  0%, 100% { box-shadow: 0 4px 20px rgba(229,57,53,0.35); }
  50%       { box-shadow: 0 4px 36px rgba(229,57,53,0.75); }
}

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.lp-nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-login-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.lp-login-link:hover {
  color: var(--text);
  border-color: var(--border-hv);
}
.lp-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.lp-logo span { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.lp-hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(229,57,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.lp-pill {
  display: inline-block;
  background: rgba(229,57,53,0.12);
  border: 1px solid var(--border-hv);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.lp-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.lp-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.lp-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.lp-form-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 34px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border-hv);
  background: linear-gradient(180deg, rgba(35,35,35,0.92) 0%, rgba(18,18,18,0.96) 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.lp-form-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  margin-bottom: 18px;
}
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.lp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lp-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  width: 100%;
}
.lp-form input,
.lp-form select {
  width: 100%;
  min-width: 0;
  display: block;
  background: #0f0f0f;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.lp-form input:focus,
.lp-form select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.2);
}
.lp-form-info {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -2px;
}
.lp-form-submit {
  width: 100%;
}
.lp-form-error {
  min-height: 18px;
  color: #ff8a80;
  font-size: 12px;
  text-align: left;
}
.lp-success {
  border: 1px solid rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}
.lp-success h4 {
  color: #75f3a9;
  font-size: 18px;
  margin-bottom: 6px;
}
.lp-success p {
  color: var(--text-sub);
  font-size: 14px;
}
.lp-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-sub);
  font-size: 14px;
}
.lp-av-stack {
  display: flex;
}
.lp-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -10px;
}
.lp-av:first-child { margin-left: 0; }

/* ═══════════════════════════════════════════════════════════
   PAIN SECTION
═══════════════════════════════════════════════════════════ */
.lp-pain {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.pain-card:hover { border-color: var(--border-hv); }
.pain-icon { font-size: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.pain-card p { font-size: 15px; color: var(--text-sub); line-height: 1.6; }
.pain-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.pain-label { font-size: 18px; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   AUTHORITY
═══════════════════════════════════════════════════════════ */
.lp-authority { padding: 96px 0; }
.authority-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
}
.authority-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
}
.authority-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.authority-img-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--red-dim);
}
.authority-img-wrap.img-error .authority-img-fallback {
  display: flex;
  position: absolute;
  inset: 0;
}
.authority-badge-float {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(229,57,53,0.5);
}
.authority-content p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 18px;
  line-height: 1.7;
}
.authority-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.authority-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   WHAT YOU'LL LEARN
═══════════════════════════════════════════════════════════ */
.lp-learn {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.learn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.learn-card:hover { border-color: var(--border-hv); transform: translateY(-4px); }
.learn-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.learn-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.learn-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.learn-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.lp-testi { padding: 96px 0; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-stars { color: #f5a623; font-size: 16px; letter-spacing: 2px; }
.testi-card > p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 14px; color: var(--text); }
.testi-author span   { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   URGENCY / FINAL CTA
═══════════════════════════════════════════════════════════ */
.lp-urgency {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.urgency-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-hv);
  border-radius: 24px;
  box-shadow: 0 0 80px rgba(229,57,53,0.08);
}
.urgency-sub {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.7;
}
.urgency-checklist {
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.urgency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-sub);
}
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(229,57,53,0.15);
  border: 1px solid var(--border-hv);
  border-radius: 50%;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.urgency-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.price-old { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.price-arrow { color: var(--red); font-size: 18px; }
.price-now {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.lp-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   CHAT WIDGET ROOT
═══════════════════════════════════════════════════════════ */
.cw-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* ── Bubble ── */
.cw-bubble {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #f04b47 0%, #b71c1c 100%);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: visible;
  box-shadow: 0 6px 28px rgba(229,57,53,0.55);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(229,57,53,0.7);
}
.cw-bubble-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}
.cw-bubble-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}
.cw-bubble-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.cw-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #fff;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red-dim);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  animation: badge-pop 0.5s ease;
}
@keyframes badge-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ── Chat Window ── */
.cw-window {
  display: none;
  flex-direction: column;
  width: 380px;
  height: 560px;
  max-height: calc(100dvh - 120px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 56px rgba(0,0,0,0.7), 0 0 0 1px var(--border);
  animation: cw-slide-in 0.25s ease-out;
  transform-origin: bottom right;
}
.cw-window.open { display: flex; }
@keyframes cw-slide-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Close Button ── */
.cw-close-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.cw-close-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Mobile: full-width bottom sheet */
@media (max-width: 500px) {
  .cw-root { bottom: 0; right: 0; left: 0; align-items: flex-end; }
  .cw-bubble { position: fixed; bottom: 20px; right: 20px; }
  .cw-bubble-icon {
    width: 32px;
    height: 32px;
  }
  .cw-window {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    animation: cw-slide-up 0.3s ease-out;
    transform-origin: bottom center;
  }
  @keyframes cw-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
  }
  /* Prevent iOS zoom on any input inside chat */
  .cw-window input,
  .cw-window select,
  .cw-window textarea {
    font-size: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   CHAT INTERNALS
═══════════════════════════════════════════════════════════ */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-chat);
}

/* HEADER */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 58px;
}
.header-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.header-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red-dim);
  display: block;
}
.avatar-fallback {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-dark);
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--red-dim);
}
.online-ring {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-header);
}
.header-info h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.status-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  margin-top: 2px;
}
.pulse {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-anim 1.8s infinite;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* PROGRESS BAR */
.progress-bar-wrap { height: 3px; background: rgba(229,57,53,0.10); flex-shrink: 0; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dim), var(--red));
  width: 0%;
  transition: width 0.7s ease;
}

/* CHAT BODY */
.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-chat);
  background-image: radial-gradient(circle, rgba(229,57,53,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(229,57,53,0.25); border-radius: 4px; }

/* MESSAGE ROWS */
.msg-row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.msg-row.bot  { justify-content: flex-start; margin-bottom: 2px; }
.msg-row.user { justify-content: flex-end;   margin-bottom: 2px; }
.msg-row.bot + .msg-row.user,
.msg-row.user + .msg-row.bot { margin-top: 8px; }

/* AVATAR */
.msg-avatar {
  width: var(--avatar);
  height: var(--avatar);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-end;
  border: 1.5px solid var(--red-dim);
}

/* BUBBLES */
.bubble {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
  word-wrap: break-word;
  max-width: min(74%, 280px);
  animation: msg-in 0.2s ease-out;
  position: relative;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bubble.bot {
  background: var(--bg-bot);
  color: var(--text);
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.msg-row.bot-first .bubble.bot::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -7px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent var(--bg-bot) transparent;
}
.bubble.user {
  background: var(--bg-user);
  color: var(--text);
  border-bottom-right-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.msg-row.user-last .bubble.user::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -7px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent var(--bg-user);
}
.chat-link {
  display: inline-block;
  margin-top: 6px;
  background: rgba(229,57,53,0.13);
  color: var(--red);
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(229,57,53,0.30);
  transition: background 0.2s, color 0.2s;
  word-break: break-all;
}
.chat-link:hover, .chat-link:focus {
  background: var(--red-dim);
  color: #fff;
  outline: none;
}

/* TYPING */
.typing-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 2px; }
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--bg-bot);
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  animation: msg-in 0.2s ease-out;
}
.typing-bubble span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-dot 1.2s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-4px); }
}

/* OPTIONS */
.chat-options {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 14px;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-options.visible { display: flex; }
.chat-options button {
  width: 100%;
  padding: 11px 16px;
  background: #2a9d5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.18s, transform 0.12s;
  box-shadow: 0 2px 8px rgba(42,157,92,0.25);
}
.chat-options button:hover,
.chat-options button:focus {
  background: #21845c;
  outline: none;
}
.chat-options button:active { transform: scale(0.985); }

/* END MESSAGE */
.end-message {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #0d0d0d;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .authority-inner { grid-template-columns: 1fr; gap: 40px; }
  .authority-img-wrap { max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .urgency-box { padding: 44px 28px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .lp-hero { padding: 64px 0 56px; }
  .lp-h1 { font-size: clamp(32px, 9vw, 48px); }
  .pain-grid { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .authority-stats { gap: 20px; }
  .urgency-box { padding: 32px 20px; }
  .lp-nav-actions .btn-cta { display: none; }
  .lp-login-link { font-size: 12px; padding: 7px 10px; }
  .lp-form-card { padding: 18px; }
  .lp-form-grid { grid-template-columns: 1fr; }

  /* Prevent iOS Safari zoom on input focus (requires font-size >= 16px) */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Chat bubbles — allow wider on small screens */
  .bubble {
    max-width: min(88%, 320px);
    font-size: 14px;
  }

  /* Chat footer input row */
  .chat-footer {
    padding: 8px 10px;
    gap: 6px;
  }
}
