/* ==========================================================================
   WhatsApp CTA — Figma 7:2 › 19:5938
   Card 1181×271 at x=147 (1440 frame): #059669, radius 24, padding 46 / 41.
   Behaviour: js/whatsapp.js
   ========================================================================== */

.wa { padding-top: 36px; }
/* no bottom padding: the next section (Comparison) brings its own 120px top padding */

.wa-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-whatsapp, #059669);
  padding: 40px 24px;
}
@media (min-width: 48rem) { .wa-card { padding: 46px 41px; } }
@media (min-width: 64rem) {
  /* Figma: card spans x=147 → 1328, i.e. 32px in from the content edge on the left */
  .wa-card { margin-left: 32px; margin-right: -3px; }
}

.wa-row { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 64rem) {
  .wa-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Copy column (Figma 19:5994: 496 wide, gap 20) -------------- */
.wa-copy { display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 64rem) { .wa-copy { width: 496px; flex: none; } }

.wa-logo { position: relative; flex: none; width: 32px; height: 32px; }
.wa-logo img { position: absolute; left: 6.46%; top: 6.25%; }

.wa-text { display: flex; flex-direction: column; gap: 15px; color: #fff; }

/* STIX Two Text 36/36, -1px. Figma trims the text box to cap height → baseline
   (24px tall); the negative margins reproduce that box so the gaps match. */
.wa-title {
  font-size: 30px;
  line-height: 32px;
  letter-spacing: -1px;
}
@media (min-width: 48rem) {
  .wa-title { font-size: 36px; line-height: 36px; margin: -5px 0 -7px; }
}
@media (min-width: 64rem) { .wa-title { white-space: nowrap; } }

/* Inter Display 14/16 */
.wa-lead { max-width: 416px; font-size: 14px; line-height: 16px; }

/* Button (Figma 19:5949): 36 tall, radius 8, 1px rgba(0,213,147,.42) border */
.wa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px; /* Figma stroke is inside: 8/14 padding minus the 1px border */
  border: 1px solid rgba(0, 213, 147, 0.42);
  border-radius: 8px;
  background: #fff;
  transition: opacity 0.3s;
}
.wa-btn:hover { opacity: 0.9; }
.wa-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wa-btn img { flex: none; }
.wa-btn span {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.25px;
  color: var(--color-whatsapp, #059669);
}

/* ---------- Chat preview (Figma 19:5991: 449 wide) --------------------- */
.wa-chat { display: flex; flex-direction: column; align-items: flex-start; font-size: 13px; }
@media (min-width: 64rem) { .wa-chat { flex: none; width: 449px; } }

.wa-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.wa-bubble p { line-height: 16px; color: #334155; }

/* Outgoing: #144D37, bottom-right corner 2px, right-aligned (ml 179 in the 449 group) */
.wa-bubble--out { align-self: flex-end; border-bottom-right-radius: 2px; background: #144d37; }
.wa-bubble--out p { color: #fff; }
@media (min-width: 64rem) {
  .wa-bubble--out p { white-space: nowrap; line-height: 13px; }
}

.wa-replies { display: flex; width: 100%; flex-direction: column; gap: 3px; margin-top: 7px; }
.wa-bubble--first { width: 100%; max-width: 341px; }
.wa-bubble--first p { max-width: 316px; }
.wa-bubble--last { width: 100%; max-width: 302px; border-bottom-left-radius: 4px; }
.wa-bubble--last p { max-width: 259px; }
