/**
 * Wirqo programmatic SEO landing pages — premium UI (scoped under .wpl-root).
 * Uses --main-color from saas-app layout :root (admin primary).
 */
:root {
  --wpl-accent: var(--main-color, #4f46e5);
  --wpl-accent-soft: color-mix(in srgb, var(--wpl-accent) 18%, transparent);
  --wpl-ink: #0f172a;
  --wpl-ink-muted: #475569;
  --wpl-surface: #ffffff;
  --wpl-surface-2: #f8fafc;
  --wpl-border: rgba(15, 23, 42, 0.08);
  --wpl-radius-lg: 20px;
  --wpl-radius-md: 14px;
  --wpl-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --wpl-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --wpl-max: 1120px;
  --wpl-prose: 38rem;
}

/* Legacy internal-links band (markup may live only on some deploys / includes). */
.seo-lp-related-wrap {
  display: none !important;
}

.wpl-root {
  font-family: inherit;
  color: var(--wpl-ink);
  background: var(--wpl-surface-2);
}

.wpl-container {
  width: 100%;
  max-width: var(--wpl-max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 28px);
}

.wpl-container--narrow {
  max-width: 760px;
}

/* ----- Hero ----- */
.wpl-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--wpl-accent-soft) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--wpl-border);
  overflow: hidden;
}

.wpl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 120%, color-mix(in srgb, var(--wpl-accent) 12%, transparent), transparent 45%);
  pointer-events: none;
}

.wpl-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

@media (max-width: 991px) {
  .wpl-hero-grid {
    grid-template-columns: 1fr;
  }
}

.wpl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wpl-accent);
  margin-bottom: 14px;
}

.wpl-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--wpl-accent);
}

.wpl-h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--wpl-ink);
}

.wpl-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--wpl-ink-muted);
  max-width: var(--wpl-prose);
}

.wpl-lead p {
  margin: 0 0 12px;
}

.wpl-lead p:last-child {
  margin-bottom: 0;
}

.wpl-lead a {
  color: var(--wpl-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wpl-lead a:hover {
  color: color-mix(in srgb, var(--wpl-accent) 85%, #000);
}

.wpl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}

.wpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wpl-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wpl-accent) 45%, transparent);
  outline-offset: 2px;
}

.wpl-btn--primary {
  background: var(--wpl-accent);
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--wpl-accent) 35%, transparent);
}

.wpl-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--wpl-accent) 42%, transparent);
}

.wpl-btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--wpl-ink);
  border: 1px solid var(--wpl-border);
  box-shadow: var(--wpl-shadow-sm);
}

.wpl-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--wpl-accent) 35%, #cbd5e1);
  color: var(--wpl-ink);
  transform: translateY(-1px);
}

.wpl-hero-media {
  position: relative;
}

.wpl-hero-media::after {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 6%;
  background: linear-gradient(135deg, var(--wpl-accent-soft), transparent);
  border-radius: var(--wpl-radius-lg);
  z-index: 0;
}

.wpl-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--wpl-radius-lg);
  border: 1px solid var(--wpl-border);
  box-shadow: var(--wpl-shadow);
  object-fit: cover;
}

/* ----- Sections ----- */
.wpl-section {
  padding: clamp(56px, 9vw, 96px) 0;
  background: var(--wpl-surface);
}

.wpl-section--muted {
  background: var(--wpl-surface-2);
}

.wpl-section-head {
  max-width: 42rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.wpl-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wpl-h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--wpl-ink);
}

.wpl-kicker {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wpl-accent);
}

.wpl-sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--wpl-ink-muted);
}

/* Outcomes (pain points) */
.wpl-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .wpl-outcomes-grid {
    grid-template-columns: 1fr;
  }
}

.wpl-outcome-card {
  height: 100%;
  padding: 26px 22px;
  border-radius: var(--wpl-radius-md);
  background: var(--wpl-surface);
  border: 1px solid var(--wpl-border);
  box-shadow: var(--wpl-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpl-section--muted .wpl-outcome-card {
  background: #fff;
}

.wpl-outcome-card:hover {
  border-color: color-mix(in srgb, var(--wpl-accent) 28%, var(--wpl-border));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.wpl-h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--wpl-ink);
}

.wpl-outcome-card .wpl-h3 {
  color: var(--wpl-accent);
}

.wpl-p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--wpl-ink-muted);
}

/* Split */
.wpl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

@media (max-width: 991px) {
  .wpl-split {
    grid-template-columns: 1fr;
  }
}

.wpl-split--img-left .wpl-split-media {
  order: -1;
}

@media (max-width: 991px) {
  .wpl-split--img-left .wpl-split-media {
    order: 0;
  }
}

.wpl-prose {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--wpl-ink-muted);
}

.wpl-prose p {
  margin: 0 0 14px;
}

.wpl-prose p:last-child {
  margin-bottom: 0;
}

.wpl-prose a {
  color: var(--wpl-accent);
  font-weight: 600;
}

.wpl-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wpl-bullets li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--wpl-ink-muted);
  line-height: 1.62;
}

.wpl-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--wpl-accent);
}

.wpl-bullets a {
  color: var(--wpl-accent);
  font-weight: 600;
}

.wpl-split-img {
  width: 100%;
  height: auto;
  border-radius: var(--wpl-radius-md);
  border: 1px solid var(--wpl-border);
  box-shadow: var(--wpl-shadow-sm);
  object-fit: cover;
}

/* Bento / feature grid */
.wpl-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 700px) {
  .wpl-bento {
    grid-template-columns: 1fr;
  }
}

.wpl-bento-card {
  padding: 24px 22px;
  border-radius: var(--wpl-radius-md);
  background: var(--wpl-surface);
  border: 1px solid var(--wpl-border);
  box-shadow: var(--wpl-shadow-sm);
}

.wpl-section--muted .wpl-bento-card {
  background: #fff;
}

.wpl-bento-card .wpl-p a {
  color: var(--wpl-accent);
  font-weight: 600;
}

/* Dark strip */
.wpl-strip {
  padding: clamp(36px, 6vw, 52px) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.wpl-strip-inner {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
  padding: 28px 26px;
  border-radius: var(--wpl-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

.wpl-strip-line {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.wpl-strip-line:last-child {
  margin-bottom: 0;
}

.wpl-strip-line a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.wpl-faq {
  border-top: 1px solid var(--wpl-border);
}

.wpl-faq-list {
  margin-top: 8px;
}

.wpl-faq-item {
  border: 1px solid var(--wpl-border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--wpl-surface);
  box-shadow: var(--wpl-shadow-sm);
  overflow: hidden;
}

.wpl-faq-q {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--wpl-ink);
  cursor: pointer;
  list-style: none;
}

.wpl-faq-q::-webkit-details-marker {
  display: none;
}

.wpl-faq-item[open] .wpl-faq-q {
  color: var(--wpl-accent);
}

.wpl-faq-q:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--wpl-accent-soft);
}

.wpl-faq-a {
  padding: 0 18px 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--wpl-ink-muted);
  border-top: 1px solid #f1f5f9;
}

.wpl-faq-a a {
  color: var(--wpl-accent);
  font-weight: 600;
}

.wpl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Trust band (programmatic only; replaces home client strip) */
.wpl-trust {
  border-top: 1px solid var(--wpl-border);
}

.wpl-trust .wpl-section-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.wpl-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding: 8px 0 4px;
  margin: 0;
  list-style: none;
}

.wpl-trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.wpl-trust-logo-img {
  display: block;
  max-height: 44px;
  width: auto;
  max-width: min(160px, 28vw);
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.wpl-trust-logo-img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .wpl-trust-logos {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-inline: calc(-1 * clamp(18px, 4vw, 28px));
    padding-inline: clamp(18px, 4vw, 28px);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .wpl-trust-logo {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Integrations band */
.wpl-integrations .wpl-section-head {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.wpl-integ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

@media (min-width: 900px) {
  .wpl-integ-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wpl-integ-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 18px;
  border-radius: var(--wpl-radius-md);
  background: var(--wpl-surface);
  border: 1px solid var(--wpl-border);
  box-shadow: var(--wpl-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpl-integ-card:hover {
  border-color: color-mix(in srgb, var(--wpl-accent) 22%, var(--wpl-border));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.wpl-integ-card__img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.wpl-integ-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wpl-ink);
}

/* Spacing after programmatic main when followed by site chrome */
.wpl-root + * {
  margin-top: 0;
}
