/**
 * Shared cinematic chapter layout for marketing pages (blog, community, growth).
 * Extends landing-cinematic.css. Loaded per-page via extra_css block.
 */

/* --- Scroll reveals --- */
.lc-marketing-page .lc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.lc-marketing-page .lc-chapter__header.lc-reveal {
  transform: translateY(18px);
}

.lc-marketing-page .lc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lc-marketing-page .lc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Chapter ambient washes --- */
.lc-marketing-page .lc-chapter {
  overflow: hidden;
}

.lc-marketing-page .lc-chapter::before {
  content: "";
  position: absolute;
  inset: -15% -8%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px) saturate(1.1);
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 15%, transparent 72%);
}

.lc-marketing-page .lc-chapter > .lc-shell {
  position: relative;
  z-index: 1;
}

.lc-mkt-hero::before {
  background:
    radial-gradient(circle at 30% 40%, rgba(37, 171, 161, 0.35), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(244, 196, 95, 0.22), transparent 50%);
}

.lc-mkt-chapter--teal::before {
  background: radial-gradient(circle at 25% 55%, rgba(37, 171, 161, 0.28), transparent 55%);
}

.lc-mkt-chapter--gold::before {
  background: radial-gradient(circle at 70% 50%, rgba(244, 196, 95, 0.2), transparent 55%);
}

.lc-mkt-chapter--green::before {
  background: radial-gradient(circle at 50% 50%, rgba(30, 215, 96, 0.15), transparent 55%);
}

.lc-mkt-chapter--cyan::before {
  opacity: 0.35;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.12), transparent 60%);
}

/* --- Hero --- */
.lc-mkt-hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.lc-mkt-hero--center .lc-mkt-hero__copy {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.lc-mkt-hero--center .lc-subtitle {
  margin-inline: auto;
}

.lc-mkt-hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .lc-mkt-hero__grid--split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.lc-mkt-hero__copy .lc-title em {
  color: var(--lc-primary);
  font-style: normal;
}

.lc-mkt-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.lc-mkt-hero--center .lc-mkt-hero__nav {
  justify-content: center;
}

.lc-mkt-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--lc-gold);
  background: rgba(244, 196, 95, 0.08);
  border: 1px solid rgba(244, 196, 95, 0.35);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lc-mkt-pill:hover,
.lc-mkt-pill.is-active {
  background: rgba(244, 196, 95, 0.16);
  border-color: rgba(244, 196, 95, 0.55);
  box-shadow: 0 0 20px var(--lc-glow-gold);
  transform: translateY(-1px);
}

.lc-mkt-hero__frame {
  padding: 0.65rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 212, 115, 0.12) inset,
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 48px var(--lc-glow-cyan);
}

.lc-mkt-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--lc-radius) - 4px);
}

/* --- Card grids --- */
.lc-mkt-card-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .lc-mkt-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.lc-mkt-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.3s, box-shadow 0.3s;
}

.lc-mkt-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.12) inset,
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 36px var(--lc-glow-cyan);
}

.lc-mkt-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  background: rgba(244, 196, 95, 0.12);
  border: 1px solid rgba(244, 196, 95, 0.3);
  box-shadow: 0 0 20px rgba(244, 196, 95, 0.12);
}

.lc-mkt-card__icon--teal {
  background: rgba(37, 171, 161, 0.12);
  border-color: rgba(37, 171, 161, 0.35);
  box-shadow: 0 0 20px rgba(37, 171, 161, 0.15);
}

.lc-mkt-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.65rem;
}

.lc-mkt-card p,
.lc-mkt-card li {
  color: var(--lc-muted);
  line-height: 1.65;
}

.lc-mkt-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.lc-mkt-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* --- Featured / content panels --- */
.lc-mkt-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.lc-mkt-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lc-brand-teal);
  margin-bottom: 0.85rem;
}

.lc-mkt-panel__title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.lc-mkt-panel__deck {
  font-size: 1.02rem;
  color: var(--lc-muted);
  line-height: 1.65;
  margin: 0 0 1.15rem;
  max-width: 52rem;
}

.lc-mkt-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-brand-teal);
  margin: 0 0 0.75rem;
}

/* --- Pill tags --- */
.lc-mkt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.lc-mkt-tags li {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lc-gold);
  background: rgba(244, 196, 95, 0.08);
  border: 1px solid rgba(244, 196, 95, 0.28);
}

/* --- Steps grid --- */
.lc-mkt-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lc-mkt-steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .lc-mkt-steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lc-mkt-step {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--lc-muted);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.lc-mkt-step:hover {
  border-color: rgba(244, 196, 95, 0.28);
  box-shadow: 0 0 24px rgba(244, 196, 95, 0.08);
}

.lc-mkt-step strong {
  display: block;
  color: var(--lc-gold);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

/* --- FAQ --- */
.lc-mkt-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lc-mkt-faq-item {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}

.lc-mkt-faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.lc-mkt-faq-item p {
  margin: 0;
  color: var(--lc-muted);
  line-height: 1.65;
}

/* --- CTAs & footnotes --- */
.lc-mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lc-mkt-cta-row--center {
  justify-content: center;
}

.lc-mkt-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--lc-muted);
}

.lc-mkt-footnote a {
  color: var(--lc-gold);
}

.lc-mkt-related {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--lc-muted);
}

.lc-mkt-related a {
  color: var(--lc-gold);
}

.lc-mkt-prose {
  color: var(--lc-muted);
  line-height: 1.7;
}

.lc-mkt-prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.65rem;
}

.lc-mkt-prose p {
  margin: 0;
}

.lc-mkt-prose a {
  color: var(--lc-gold);
}

/* --- Scroll anchor offset --- */
.lc-marketing-page [id] {
  scroll-margin-top: 5.5rem;
}
