/* Solution — source: sections/Solution.tsx */

#solution {
  position: relative; /* containing block for the blob */
  background: var(--page-panel);
}

/*
 * Elementor gives every container a flex gap (--gap: var(--widgets-spacing, 20px)).
 * This section is spaced entirely by the source's own margins, so zero the gap
 * and keep one source of truth for the vertical rhythm.
 */
#solution,
#solution .lt-sol-text,
#solution .lt-solution-phone {
  gap: 0;
}

/*
 * .elementor-widget is position:relative, so the blob would resolve its offsets
 * against a zero-height widget wrapper sitting at the top of the section rather
 * than against the section itself (bottom:-100px would land at the top edge).
 */
#solution > .lt-sol-blob-w,
#solution > .lt-sol-blob-w > .elementor-widget-container {
  position: static;
}

#solution .lt-sol-blob {
  bottom: -100px;
  inset-inline-start: -80px;
  width: 560px;
  height: 440px;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  background: linear-gradient(135deg, rgba(41, 128, 242, 0.09), rgba(126, 176, 242, 0.06));
  animation: lt-blob 14s var(--ease) infinite;
}

/* Real CSS grid, not Elementor's flex row — see the note in 02-hero.css. */
#solution .lt-solution-grid {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

/* ---- Text column (right in RTL) ---- */

/* tokens' .lt-eyebrow carries no colour of its own; the source paints it blue.
   align-self keeps the pill shrink-to-fit — a flex item would otherwise stretch
   to the full column width and the pill would read as a bar. */
#solution .lt-sol-eyebrow {
  align-self: flex-start;
  color: var(--brand-primary);
  background: rgba(41, 128, 242, 0.08);
  box-shadow: inset 0 0 0 1px rgba(41, 128, 242, 0.18);
}

#solution .lt-sol-h2 {
  margin-top: 18px;
}

/* Elementor hard-sets .elementor-heading-title{line-height:1}, so type has to be
   declared on the title itself — setting it on the widget wrapper never lands. */
#solution .lt-sol-h2 .elementor-heading-title {
  font-size: var(--t-h1);
  font-weight: 900;
  line-height: 1.08;
  color: var(--page-fg-strong);
}

#solution .lt-sol-sub p {
  margin: 18px 0 32px;
  font-size: var(--t-lead);
  line-height: 1.65;
  color: var(--page-fg-muted);
}

#solution .lt-sol-points {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#solution .lt-sol-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--page-fg);
}

#solution .lt-sol-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: grid;
  place-items: center;
}

/* Blue CTA — the red one is Hero's. */
#solution .lt-btn-blue .elementor-button {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 28px -4px rgba(41, 128, 242, 0.35);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

#solution .lt-btn-blue .elementor-button:hover {
  background: #1a6fd8;
  transform: translateY(-2px);
}

/* ---- Phone column (left in RTL) ---- */

#solution .lt-solution-phone {
  position: relative; /* containing block for the floating badge */
}

#solution .lt-sol-phone-frame {
  width: 100%;
  max-width: 280px;
  padding: 14px;
  border-radius: 44px;
  background: #0d1a2e;
}

#solution .lt-sol-phone-img img {
  display: block;
  width: 100%;
  border-radius: 32px;
}

/* Same wrapper trap as the blob: the badge must resolve against the phone
   column, not against its own zero-height widget wrapper. */
#solution .lt-solution-phone > .elementor-widget-html,
#solution .lt-solution-phone > .elementor-widget-html > .elementor-widget-container {
  position: static;
}

#solution .lt-sol-badge {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  inset-inline-end: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

/* Carried as a second class so tokens' reduced-motion rule — which matches
   [class*="lt-badge"] — switches this animation off too. */
#solution .lt-badge-sol {
  animation: lt-float-badge 3.5s ease-in-out infinite;
}

#solution .lt-sol-badge-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(41, 128, 242, 0.12);
  display: grid;
  place-items: center;
}

#solution .lt-sol-badge-txt {
  display: flex;
  flex-direction: column;
}

#solution .lt-sol-badge-txt b {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--page-fg-strong);
}

#solution .lt-sol-badge-txt i {
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: var(--page-fg-muted);
}

@media (max-width: 720px) {
  #solution .lt-solution-grid { grid-template-columns: 1fr !important; }
  #solution .lt-solution-phone { order: -1; } /* phone above the text */
}
