/* === WhatsApp Integration page === */

:root {
  --wa-green: #25D366;
  --wa-green-dark: #075E54;
  --wa-green-mid: #128C7E;
  --wa-bubble: #DCF8C6;
}

/* Hero */
.wa-hero { position: relative; padding-top: 32px; padding-bottom: 80px; overflow: hidden; }
.wa-hero::before {
  content: "";
  position: absolute; inset: -10% -20% auto -20%; height: 760px;
  background:
    radial-gradient(50% 60% at 75% 25%, rgba(37,211,102,0.14), transparent 60%),
    radial-gradient(40% 60% at 15% 35%, rgba(7,94,84,0.10), transparent 60%),
    radial-gradient(60% 60% at 50% 0%, rgba(64,204,191,0.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
.wa-hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 64px; align-items: center;
}
.wa-hero h1 {
  font-size: clamp(40px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.025em; text-wrap: balance; margin-top: 16px;
}
.wa-hero h1 .accent {
  background: linear-gradient(120deg, var(--wa-green-dark) 0%, var(--wa-green-mid) 50%, var(--wa-green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wa-hero .lede { color: var(--muted); font-size: 18px; margin-top: 22px; max-width: 52ch; text-wrap: pretty; }
.wa-hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.wa-hero .benefits-row { justify-content: flex-start; margin-top: 24px; }

/* Hero mock */
.wa-connect-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,0.6);
}
.wa-connect-mock .mock-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.wa-connect-mock .mock-head .ttl { font-weight: 700; font-size: 15px; }
.wa-connect-mock .mock-head .status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px; background: #E6F7EC; color: #1B8B43;
}
.wa-connect-mock .mock-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: #1B8B43; box-shadow: 0 0 0 3px rgba(27,139,67,0.18);
}
.wa-connect-row { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.wa-connect-card {
  border: 1px solid var(--line); background: white; border-radius: 14px;
  padding: 16px; display: flex; align-items: center; gap: 12px;
}
.wa-connect-card .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.wa-connect-card .logo.whatsapp { background: linear-gradient(135deg, var(--wa-green-dark), var(--wa-green)); }
.wa-connect-card .logo.salesgem { background: none; }
.wa-connect-card b { display: block; font-weight: 700; font-size: 14px; }
.wa-connect-card small { font-size: 11px; color: var(--muted); }
.wa-pipe { position: relative; height: 2px; background: linear-gradient(90deg, var(--wa-green), var(--teal-500)); border-radius: 2px; }
.wa-pipe::before, .wa-pipe::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 999px; top: 50%; transform: translateY(-50%); }
.wa-pipe::before { left: -2px; background: var(--wa-green); }
.wa-pipe::after  { right: -2px; background: var(--teal-500); }
.wa-pipe .pulse {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 999px; background: white;
  border: 2px solid var(--wa-green); box-shadow: 0 0 0 3px rgba(37,211,102,0.18);
  animation: waPulse 2.4s ease-in-out infinite;
}
@keyframes waPulse { 0% { left: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.wa-events { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.wa-events .lbl { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.wa-events .lbl .live { color: var(--wa-green-mid); display: inline-flex; align-items: center; gap: 4px; }
.wa-events .lbl .live::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--wa-green); animation: waBlink 1.4s ease-in-out infinite; }
@keyframes waBlink { 50% { opacity: 0.3; } }
.wa-events .row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.wa-events .row:last-child { border-bottom: none; }
.wa-events .row .ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(37,211,102,0.12); color: var(--wa-green-mid); display: grid; place-items: center; }
.wa-events .row .ttl { font-weight: 600; color: var(--ink); }
.wa-events .row .sub { font-size: 11px; color: var(--muted); }
.wa-events .row .when { font-size: 11px; color: var(--muted); font-feature-settings: "tnum"; white-space: nowrap; }

/* Pillars */
.wa-pillars { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wa-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.wa-pillar-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.wa-pillar-card .num { position: absolute; top: 24px; right: 24px; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--line); }
.wa-pillar-card .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(37,211,102,0.10); color: var(--wa-green-mid); display: grid; place-items: center; }
.wa-pillar-card h3 { font-size: 22px; letter-spacing: -0.015em; }
.wa-pillar-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.wa-pillar-card .anchor { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--wa-green-mid); font-size: 14px; font-weight: 600; text-decoration: none; }

/* Brand strip */
.wa-brand-strip { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px 36px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(37,211,102,0.06), rgba(7,94,84,0.04) 70%, transparent); border-radius: var(--radius-lg); margin: 64px 0; }
.wa-brand-strip .brands { display: flex; gap: 12px; flex-shrink: 0; }
.wa-brand-strip .brands .brand { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: white; box-shadow: var(--shadow-md); }
.wa-brand-strip h3 { font-size: 22px; letter-spacing: -0.015em; }
.wa-brand-strip p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 70ch; }

/* Feature sections */
.wa-feature { padding: var(--gutter) 0; }
.wa-feature .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.wa-feature.reverse .container > .wa-feature-copy { order: 2; }
.wa-feature.reverse .container > .wa-feature-visual { order: 1; }
.wa-feature-copy h2 { font-size: 40px; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; margin-top: 16px; }
.wa-feature-copy .lede { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 50ch; text-wrap: pretty; }
.wa-feature-bullets { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.wa-feature-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.wa-feature-bullets li .check { width: 22px; height: 22px; border-radius: 999px; background: rgba(37,211,102,0.12); color: var(--wa-green-mid); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.wa-feature-bullets li b { color: var(--ink); font-weight: 600; }
.wa-feature-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.wa-feature-visual { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); }
.wa-feature-visual.tinted-green { background: linear-gradient(180deg, rgba(37,211,102,0.07), var(--surface) 60%); }
.wa-feature-visual.tinted-dark { background: linear-gradient(180deg, rgba(7,94,84,0.07), var(--surface) 60%); }
.wa-feature-visual .v-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }

/* Lead card */
.wa-lead-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.wa-lead-card .head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.wa-lead-card .av { width: 44px; height: 44px; border-radius: 999px; overflow: hidden; }
.wa-lead-card .name { font-weight: 700; font-size: 15px; }
.wa-lead-card .meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; margin-top: 2px; }
.wa-lead-card .source-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(37,211,102,0.12); color: var(--wa-green-mid); }
.wa-lead-card .field { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 6px 0; font-size: 12px; border-bottom: 1px dashed var(--line-2); }
.wa-lead-card .field:last-of-type { border-bottom: none; }
.wa-lead-card .field .lbl { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; align-self: center; }
.wa-lead-card .field .val { font-weight: 600; color: var(--ink); word-break: break-word; }
.wa-lead-card .field .val small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.wa-lead-card .actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.wa-lead-card .actions .btn-mini { flex: 1; height: 32px; border-radius: 8px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: white; color: var(--ink-2); cursor: pointer; }
.wa-lead-card .actions .btn-mini.primary { background: var(--ink); color: white; border-color: var(--ink); }

/* Chat mock */
.wa-chat { background: #ECE5DD; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.wa-chat-header { background: var(--wa-green-mid); color: white; border-radius: 10px 10px 0 0; padding: 12px 16px; margin: -16px -16px 4px; display: flex; align-items: center; gap: 10px; }
.wa-chat-header .av { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.2); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.wa-chat-header .name { font-weight: 700; font-size: 14px; }
.wa-chat-header .online { font-size: 11px; opacity: 0.8; }
.wa-bubble { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.wa-bubble.in { background: white; border-radius: 0 12px 12px 12px; align-self: flex-start; color: var(--ink); }
.wa-bubble.out { background: var(--wa-bubble); border-radius: 12px 12px 0 12px; align-self: flex-end; color: var(--ink); }
.wa-bubble .time { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 4px; }
.wa-bubble.out .time .read { color: #53BDEB; }

/* Automation sequence */
.wa-seq { display: flex; flex-direction: column; }
.wa-seq-step { display: grid; grid-template-columns: 48px 1fr; gap: 12px; position: relative; }
.wa-seq-step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; width: 2px; bottom: 0; background: var(--line); }
.wa-seq-step .marker { width: 48px; height: 48px; border-radius: 12px; background: rgba(37,211,102,0.10); color: var(--wa-green-mid); display: grid; place-items: center; flex-shrink: 0; z-index: 1; }
.wa-seq-step .content { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wa-seq-step .content .delay { font-size: 10px; color: var(--wa-green-mid); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.wa-seq-step .content b { font-size: 13px; font-weight: 700; color: var(--ink); }
.wa-seq-step .content small { font-size: 11px; color: var(--muted); margin-left: 6px; }
.wa-seq-step .content .msg-preview { font-size: 12px; color: var(--ink-2); background: var(--wa-bubble); border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.45; }

/* Stats strip */
.wa-stats-strip { background: var(--ink); color: white; padding: 64px 0; position: relative; overflow: hidden; }
.wa-stats-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 50%, rgba(37,211,102,0.18), transparent 60%), radial-gradient(40% 60% at 20% 50%, rgba(64,204,191,0.18), transparent 60%); pointer-events: none; }
.wa-stats-strip .container { position: relative; z-index: 1; }
.wa-stats-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: end; }
.wa-stats-strip .num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 80px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, var(--wa-green), #7BE495); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wa-stats-strip .num small { font-size: 40px; margin-left: 2px; -webkit-text-fill-color: var(--wa-green); color: var(--wa-green); }
.wa-stats-strip .lbl { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,0.7); max-width: 30ch; }

/* Feature cards */
.wa-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wa-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.wa-card:hover { transform: translateY(-2px); border-color: rgba(37,211,102,0.3); box-shadow: var(--shadow-md); }
.wa-card .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(37,211,102,0.10); color: var(--wa-green-mid); display: grid; place-items: center; }
.wa-card h4 { font-size: 17px; letter-spacing: -0.01em; }
.wa-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Loop */
.wa-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.wa-loop-card { background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.wa-loop-card .num { font-size: 12px; font-weight: 700; color: var(--wa-green-mid); font-feature-settings: "tnum"; letter-spacing: 0.04em; }
.wa-loop-card .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(37,211,102,0.10); color: var(--wa-green-mid); display: grid; place-items: center; }
.wa-loop-card h4 { font-size: 16px; }
.wa-loop-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* FAQ */
.lm-faq { padding: var(--gutter) 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; }
.faq-toggle { width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; background: var(--line-2); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: background .2s, transform .2s; }
.faq-item.open .faq-toggle { background: var(--wa-green-mid); color: white; transform: rotate(45deg); }
.faq-a { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 60ch; margin-top: 14px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }

/* Responsive */
@media (max-width: 980px) {
  .wa-hero .container { grid-template-columns: 1fr; gap: 48px; }
  .wa-feature .container { grid-template-columns: 1fr; gap: 40px; }
  .wa-feature.reverse .container > .wa-feature-copy { order: 1; }
  .wa-feature.reverse .container > .wa-feature-visual { order: 2; }
  .wa-pillars-grid { grid-template-columns: 1fr; }
  .wa-cards-grid { grid-template-columns: 1fr; }
  .wa-loop { grid-template-columns: repeat(2, 1fr); }
  .wa-stats-strip-grid { grid-template-columns: 1fr; gap: 40px; }
  .wa-stats-strip .num { font-size: 64px; }
  .wa-brand-strip { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .wa-connect-row { grid-template-columns: 1fr; }
  .wa-pipe { display: none; }
}
