/* Shared glow treatment for the public landing page only. */
.homepage:not(.homepage-auth) {
  --lp-font-family: 'Montserrat', sans-serif;
  --lp-font-display: var(--lp-font-family);
  --lp-font-body: var(--lp-font-family);
  --lp-card-surface: linear-gradient(#1a1a1c, #1a1a1c);
  --lp-card-frame: linear-gradient(137deg, #fff 0%, #7dd3fc 45%, #06b6d4 100%);
  --lp-card-copy: #b6c2d2;
  --lp-card-shadow: 0 0 45px rgba(125, 211, 252, 0.18), 0 18px 48px rgba(6, 182, 212, 0.12);
  font-family: var(--lp-font-family);
  font-weight: 400;
}

/* Use the cards' Montserrat typography throughout the public home. */
.homepage:not(.homepage-auth) :is(h1, h2, h3, h4, h5, h6, .lp-hero__title, .footer-slim-brand) {
  font-family: var(--lp-font-family);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.homepage:not(.homepage-auth) :is(.language-switcher__current, .language-switcher__code) {
  font-family: var(--lp-font-family);
}

.homepage:not(.homepage-auth) :is(.lp-btn, .lp-public-blog-btn, .lp-section-eyebrow, .lp-hero__badge, .language-switcher__toggle) {
  font-weight: 600;
}

@media (min-width: 992px) {
  .homepage:not(.homepage-auth) .lp-hero__title {
    width: max-content;
    max-width: calc(100vw - 5rem);
    white-space: nowrap;
  }
}

.homepage:not(.homepage-auth) :is(
  .lp-pain-card,
  .lp-feature-card,
  .lp-step,
  .lp-stat,
  .lp-testimonial,
  .lp-roadmap__item,
  .lp-news__panel,
  .lp-store-badge,
  .lp-hero__store-badge
) {
  position: relative;
  min-width: 0;
  border: 8px solid transparent;
  border-radius: 40px;
  background: var(--lp-card-surface) padding-box, var(--lp-card-frame) border-box;
  box-shadow: var(--lp-card-shadow);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.3s ease, translate 0.3s ease;
  transition-delay: var(--lp-card-delay, 0s), var(--lp-card-delay, 0s), 0s, 0s;
}

.homepage:not(.homepage-auth) .lp-reveal-delay-1 { --lp-card-delay: 0.1s; }
.homepage:not(.homepage-auth) .lp-reveal-delay-2 { --lp-card-delay: 0.2s; }
.homepage:not(.homepage-auth) .lp-reveal-delay-3 { --lp-card-delay: 0.3s; }
.homepage:not(.homepage-auth) .lp-reveal-delay-4 { --lp-card-delay: 0.4s; }
.homepage:not(.homepage-auth) .lp-reveal-delay-5 { --lp-card-delay: 0.5s; }
.homepage:not(.homepage-auth) .lp-reveal-delay-6 { --lp-card-delay: 0.6s; }

/* A blurred ring adds the reference's halo without tinting the card's content. */
.homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step)::after {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  height: auto;
  border: 8px solid #7dd3fc;
  border-radius: inherit;
  background: transparent;
  filter: blur(30px);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.homepage:not(.homepage-auth) :is(.lp-problem__inner, .lp-features__inner, .lp-process__inner) {
  max-width: 1048px;
}

.homepage:not(.homepage-auth) :is(.lp-problem, .lp-features, .lp-process) {
  padding-bottom: clamp(8rem, 12vh, 10rem);
}

.homepage:not(.homepage-auth) :is(.lp-pain-grid, .lp-features__grid, .lp-steps) {
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.4rem, 2.4vw, 1.75rem);
  overflow: visible;
}

.homepage:not(.homepage-auth) .lp-feature-card {
  min-height: 390px;
}

.homepage:not(.homepage-auth) .lp-feature-card__header {
  align-self: stretch;
  margin-bottom: 2.75rem;
}

.homepage:not(.homepage-auth) :is(.lp-feature-card__icon, .lp-pain-card__icon) {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 2rem;
}

.homepage:not(.homepage-auth) .lp-feature-card__badge {
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(56, 189, 248, 0.08);
  color: #b6e9ff;
}

.homepage:not(.homepage-auth) :is(.lp-feature-card h3, .lp-pain-card h4, .lp-step h4) {
  color: #f6faff;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.homepage:not(.homepage-auth) :is(.lp-feature-card p, .lp-pain-card p, .lp-step p) {
  color: var(--lp-card-copy);
  font-size: 0.88rem;
  line-height: 1.6;
}

.homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step) ::selection {
  background: rgba(125, 211, 252, 0.25);
  color: #fff;
}

.homepage:not(.homepage-auth) .lp-feature-card__tags {
  margin-top: auto;
  padding-top: 1.4rem;
}

.homepage:not(.homepage-auth) .lp-feature-card__tags span {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(56, 189, 248, 0.06);
  color: #c2d9e8;
}

.homepage:not(.homepage-auth) .lp-pain-card {
  min-height: 310px;
}

.homepage:not(.homepage-auth) .lp-pain-card__icon {
  margin-bottom: 3rem;
}

.homepage:not(.homepage-auth) .lp-step {
  min-height: 310px;
}

.homepage:not(.homepage-auth) .lp-step::before {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-bottom: 2.25rem;
  border: 1px solid #7dd3fc;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  color: #dcf4ff;
  font-size: 1rem;
}

.homepage:not(.homepage-auth) .lp-stats {
  gap: 1.5rem;
}

.homepage:not(.homepage-auth) .lp-stat {
  display: grid;
  align-content: center;
  min-height: 175px;
  padding: 1.75rem 1.2rem;
}

.homepage:not(.homepage-auth) .lp-stat__number {
  margin-bottom: 0.75rem;
}

.homepage:not(.homepage-auth) :is(.lp-stat__label, .lp-testimonial__author) {
  color: var(--lp-card-copy);
}

.homepage:not(.homepage-auth) .lp-roadmap__grid {
  gap: 1.25rem;
}

.homepage:not(.homepage-auth) .lp-roadmap__item {
  min-height: 105px;
  padding: 1.1rem;
  border-width: 4px;
  border-radius: 24px;
  gap: 0.85rem;
}

.homepage:not(.homepage-auth) .lp-roadmap__item i {
  color: #b6e9ff;
  font-size: 1.15rem;
}

.homepage:not(.homepage-auth) .lp-roadmap__item span {
  color: var(--lp-card-copy);
  line-height: 1.6;
}

.homepage:not(.homepage-auth) .lp-news__panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  gap: 1.2rem;
}

.homepage:not(.homepage-auth) .lp-news__title {
  white-space: normal;
}

.homepage:not(.homepage-auth) .lp-news__text {
  display: block;
  overflow: visible;
  color: var(--lp-card-copy);
  line-height: 1.75;
  -webkit-line-clamp: unset;
}

.homepage:not(.homepage-auth) .lp-news__meta span {
  border-color: #7dd3fc;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.06);
  color: #c6e8f8;
}

.homepage:not(.homepage-auth) :is(.lp-store-badge, .lp-hero__store-badge) {
  border-width: 2px;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.homepage:not(.homepage-auth) :is(.lp-store-badge i, .lp-hero__store-badge i) {
  color: #dcf4ff;
}

.homepage:not(.homepage-auth) :is(.lp-store-badge__text small, .lp-hero__store-badge__text small) {
  color: var(--lp-card-copy);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step, .lp-stat, .lp-roadmap__item):hover {
    translate: 0 -5px;
    transform: none;
    border-color: transparent;
    box-shadow: 0 0 52px rgba(125, 211, 252, 0.27), 0 20px 48px rgba(6, 182, 212, 0.18);
  }

  .homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step):hover::after {
    opacity: 0.6;
  }
}

@media (max-width: 992px) {
  .homepage:not(.homepage-auth) .lp-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .homepage:not(.homepage-auth) :is(.lp-pain-grid, .lp-steps) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin-inline: auto;
    gap: 2rem;
  }
}

@media (max-width: 575px) {
  .homepage:not(.homepage-auth) .lp-features__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage:not(.homepage-auth) :is(.lp-pain-grid, .lp-features__grid, .lp-steps, .lp-stats, .lp-roadmap__grid) {
    gap: 1.75rem;
  }

  .homepage:not(.homepage-auth) :is(.lp-problem__inner, .lp-features__inner, .lp-process__inner, .lp-proof__inner, .lp-roadmap__inner, .lp-news__inner) {
    padding-inline: 1.25rem;
  }

  .homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step, .lp-stat, .lp-news__panel) {
    border-width: 6px;
    border-radius: 32px;
  }

  .homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-step) {
    min-height: 0;
  }

  .homepage:not(.homepage-auth) .lp-feature-card {
    min-height: 350px;
  }

  .homepage:not(.homepage-auth) :is(.lp-pain-card__icon, .lp-step::before) {
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step, .lp-stat, .lp-testimonial, .lp-roadmap__item, .lp-news__panel, .lp-store-badge, .lp-hero__store-badge) {
    transition: none;
    translate: none;
    transform: none;
  }

  .homepage:not(.homepage-auth) :is(.lp-pain-card, .lp-feature-card, .lp-step)::after {
    transition: none;
  }
}
