/* ========================================
   LANDING PAGES — Patreon-Style Immersive Scroll
   ======================================== */

/* --- Hero: Full Viewport with Parallax --- */
.lp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-16) clamp(2rem, 5vw, 6rem);
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.lp-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 6vh, 6rem);
}

.lp-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-6) 0;
}

.lp-hero__title span {
  display: block;
  padding-left: clamp(1rem, 4vw, 5rem);
}

.lp-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 0 var(--space-8) 0;
}

.lp-hero__cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.lp-hero__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(162, 207, 100, 0.25);
}

.lp-hero__scroll-arrow {
  position: absolute;
  bottom: 2rem;
  right: clamp(2rem, 5vw, 6rem);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: lp-bounce 2s infinite;
  cursor: pointer;
}

.lp-hero__scroll-arrow svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes lp-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* --- Content Sections --- */
.lp-section {
  padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 5vw, 6rem);
  position: relative;
}

.lp-section--dark {
  background-color: #000000;
}

.lp-section--dark-alt {
  background-color: #0a0a0a;
}

.lp-section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Display Heading --- */
.lp-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 var(--space-6) 0;
}

.lp-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
}

/* --- Feature Image (centered in section) --- */
.lp-feature-img {
  width: 100%;
  max-width: 900px;
  margin: clamp(2.5rem, 4vh, 4rem) auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lp-feature-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Photo Break: Full-Bleed Parallax --- */
.lp-section--photo {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
}

.lp-section--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

/* --- Split Layout --- */
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.lp-split--reverse {
  direction: rtl;
}

.lp-split--reverse > * {
  direction: ltr;
}

.lp-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-split__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lp-split__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Final CTA Section --- */
.lp-cta {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vh, 6rem) clamp(2rem, 5vw, 6rem);
  overflow: hidden;
}

.lp-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.lp-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.lp-cta__card {
  position: relative;
  z-index: 2;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(2.5rem, 4vw, 4rem);
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.lp-cta__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #ffffff;
  margin: 0 0 var(--space-4) 0;
  line-height: 1.15;
}

.lp-cta__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 var(--space-8) 0;
  line-height: 1.6;
}

.lp-cta__btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.lp-cta__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(162, 207, 100, 0.25);
}

.lp-cta__login {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.lp-cta__login a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-cta__login a:hover {
  color: #ffffff;
}

.lp-cta__badges {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

.lp-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-decoration: none;
  transition: background 0.2s;
}

.lp-cta__badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lp-cta__badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Intro Section with centered text + image below --- */
.lp-intro {
  text-align: center;
}

.lp-intro .lp-display {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lp-intro .lp-body {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Scroll Reveal for LP elements --- */
.lp-section .lp-display,
.lp-section .lp-body,
.lp-section .lp-feature-img,
.lp-split__text,
.lp-split__image,
.lp-cta__card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.lp-section .visible .lp-display,
.lp-section .visible .lp-body,
.lp-section .visible .lp-feature-img,
.visible .lp-split__text,
.visible .lp-split__image,
.visible .lp-cta__card,
.lp-section .lp-display.visible,
.lp-section .lp-body.visible,
.lp-section .lp-feature-img.visible,
.lp-split__text.visible,
.lp-split__image.visible,
.lp-cta__card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for split layouts */
.visible .lp-split__image {
  transition-delay: 0.15s;
}

/* --- Stat/number callout --- */
.lp-stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 var(--space-3) 0;
}

/* --- Inline feature list --- */
.lp-features-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lp-features-list li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  padding-left: 28px;
  position: relative;
}

.lp-features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 768px) {
  .lp-hero {
    padding: var(--space-8) var(--space-6);
    min-height: 85vh;
  }

  .lp-hero__bg {
    background-attachment: scroll; /* Fixed BG doesn't work on mobile Safari */
  }

  .lp-hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .lp-hero__title span {
    padding-left: 0.5rem;
  }

  .lp-hero__scroll-arrow {
    display: none;
  }

  .lp-section {
    padding: clamp(3rem, 6vh, 5rem) var(--space-6);
  }

  .lp-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .lp-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .lp-split--reverse {
    direction: ltr;
  }

  .lp-split__image {
    order: -1;
  }

  .lp-section--photo {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .lp-cta {
    min-height: auto;
    padding: clamp(3rem, 6vh, 5rem) var(--space-6);
  }

  .lp-cta__bg {
    background-attachment: scroll;
  }

  .lp-cta__card {
    padding: var(--space-8) var(--space-6);
  }

  .lp-cta__badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .lp-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .lp-hero__subtitle {
    font-size: 0.95rem;
  }
}

/* FAQ blocks (Phase 6 SEO rewrites) — native <details>/<summary>. */
.lp-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}
.lp-faq:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lp-faq > summary {
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.lp-faq > summary::-webkit-details-marker {
  display: none;
}
.lp-faq > summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}
.lp-faq[open] > summary::after {
  content: '\2212';
}
.lp-faq > p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}
.lp-faq > p a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ad-mockup gallery (Phase 6.6 — /digital-marketing) — the source images
   already include phone bezels baked in, so we render them at natural
   aspect with no fake frame, no fake background, no object-fit padding. */
.ad-mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: end;
}
.ad-mockup-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  align-items: stretch;
}
.ad-mockup {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ad-mockup img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.ad-mockup--wide img {
  max-width: 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.ad-mockup figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .ad-mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .ad-mockup img {
    max-width: 200px;
  }
}
@media (max-width: 560px) {
  .ad-mockup-grid,
  .ad-mockup-grid--wide {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ad-mockup img {
    max-width: 240px;
  }
}

/* Ads-page step images + audio advertising composite — source PNGs include
   their own device-frame/bezel, so we render at natural aspect with no
   fake container background, no border-radius (which clipped the framed
   image and made internal padding visible). Center in the column.
   Scoped to .ad-step-img only — homepage/landing .split__image and
   .lp-split__image rely on object-fit:cover with a fixed aspect ratio
   so photo cards render edge-to-edge inside their rounded frames. */
.ad-step-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
}

/* Legal page (Phase 6.6 — /terms-privacy) — tabbed layout with sticky
   sidebar TOC matching the live disctopia.com/privacy-policy/ +
   /terms-of-use/ pattern. */
.legal-page {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.legal-tabs {
  display: flex;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
  padding-bottom: 0;
}
.legal-tab {
  background: none;
  border: 0;
  padding: 0.875rem 0;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
  margin-bottom: -1px;
  letter-spacing: 0.01em;
}
.legal-tab:hover { color: rgba(255, 255, 255, 0.85); }
.legal-tab.active {
  color: #A2CF64;
  border-bottom-color: #A2CF64;
}
.legal-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 7rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}
.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-toc__list[hidden] { display: none; }
.legal-toc__list a {
  color: #A2CF64;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  display: block;
  padding: 0.25rem 0;
  transition: color 150ms ease;
}
.legal-toc__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 760px;
  min-width: 0;
}
.legal-content__body[hidden] { display: none; }
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
  color: #fff;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.legal-content p { margin: 0 0 1rem; }
.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-toc {
    position: static;
    max-height: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
  }
  .legal-tabs { gap: 1.5rem; }
}
