/* dotqr — marketing / landing pages */

body.landing {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 70, 229, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 58, 237, 0.08), transparent 50%),
    var(--bg);
}

.lp-header {
  background: rgba(250, 251, 253, 0.82);
  border-bottom-color: rgba(12, 18, 34, 0.06);
}

.lp-brand {
  text-decoration: none;
  color: inherit;
}

.lp-brand:hover .brand-name {
  color: var(--blue);
}

/* Hero */
.lp-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.lp-hero__mesh {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 40%, rgba(79, 70, 229, 0.18), transparent 42%),
    radial-gradient(circle at 75% 25%, rgba(168, 85, 247, 0.12), transparent 38%),
    radial-gradient(circle at 55% 80%, rgba(59, 130, 246, 0.1), transparent 45%);
  filter: blur(40px);
  opacity: 0.9;
}

.lp-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(79, 70, 229, 0.18);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.lp-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  animation: lp-pulse 2.4s ease-in-out infinite;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

.lp-hero__title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.lp-hero__title-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero__subtitle {
  margin: 1.15rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

.lp-hero__subtitle strong {
  color: var(--text);
  font-weight: 700;
}

.lp-hero__actions {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.9375rem;
  border-radius: 0.875rem;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  border-radius: 0.65rem;
}

.btn-primary {
  background: var(--gradient);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #9333ea 100%);
}

.lp-hero__pills {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.lp-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.lp-hero__pill svg {
  flex-shrink: 0;
  color: var(--blue);
}

.lp-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lp-phone-frame {
  position: relative;
  max-width: min(380px, 100%);
}

.lp-phone-frame::before {
  content: "";
  position: absolute;
  inset: 10% -8% -5% -8%;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(48px);
  z-index: 0;
}

.lp-phone-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 2rem;
  box-shadow:
    0 32px 64px rgba(12, 18, 34, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* Section labels */
.lp-section-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.lp-section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lp-section-lead {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.lp-section-head--center {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.lp-section-head--center .lp-section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.lp-features {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.lp-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.lp-feature-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(79, 70, 229, 0.22);
}

.lp-feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1rem;
}

.lp-feature-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-feature-card__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* How it works */
.lp-how {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  scroll-margin-top: 5.5rem;
}

.lp-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
  position: relative;
}

.lp-how__steps::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.25), transparent);
  pointer-events: none;
}

.lp-step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.lp-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.lp-step-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-step-card__text {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Templates section overrides */
.landing-template-story {
  scroll-margin-top: 5.5rem;
}

.landing-template-story .tp-hub-card {
  border-radius: 1.25rem;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.landing-template-story .tp-hub-card:hover {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 20px 48px rgba(79, 70, 229, 0.14);
}

.landing-template-story .tp-hub-card__link {
  color: var(--blue);
}

/* CTA band */
.lp-cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.lp-cta-band__inner {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
  box-shadow: 0 24px 64px rgba(79, 70, 229, 0.35);
}

.lp-cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.lp-cta-band__title {
  position: relative;
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.lp-cta-band__text {
  position: relative;
  margin: 0.75rem auto 0;
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.lp-cta-band__actions {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.lp-cta-band .btn-primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lp-cta-band .btn-primary:hover {
  background: #f8fafc;
  color: var(--blue-2);
}

.lp-cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.lp-cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

/* Footer */
.lp-footer {
  margin-top: 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
  background: #0c1222;
  border-top: none;
  color: #e2e8f0;
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.lp-footer__brand-col .footer-brand {
  color: #fff;
  font-size: 1.125rem;
}

.lp-footer__tagline {
  margin: 0.65rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 28ch;
}

.lp-footer .footer-small {
  color: #64748b;
}

.lp-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.lp-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lp-footer .footer-link {
  color: #cbd5e1;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.lp-footer .footer-link:hover {
  background: transparent;
  color: #fff;
}

.lp-footer .footer-link.is-current {
  color: #fff;
  font-weight: 700;
}

.lp-footer__cta-text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
}

/* Plans page */
body.landing .plans-main {
  padding-bottom: 0;
}

body.landing .plans-hero {
  border-radius: 1.5rem;
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

body.landing .section.alt {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

body.landing .plan.featured {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 20px 48px rgba(79, 70, 229, 0.12);
}

/* Legal pages */
body.landing .legal-main {
  padding-bottom: 2rem;
}

body.landing .legal-doc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .lp-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .lp-hero__inner {
    grid-template-columns: 1fr;
  }

  .lp-hero__title {
    max-width: none;
  }

  .lp-hero__visual {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .lp-how__steps {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
  }

  .lp-how__steps::before {
    display: none;
  }

  .lp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .lp-features__grid {
    grid-template-columns: 1fr;
  }

  .lp-footer__grid {
    grid-template-columns: 1fr;
  }
}
