/* ── Core page SEO expansion blocks ── */
.core-seo-expanded {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.core-prose {
  max-width: 900px;
  margin: 0 auto;
}

/* ── SEO long-form article pages ── */

.seo-page {
  padding-top: 100px;
}

.seo-hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.seo-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.seo-hero-text h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.seo-hero-text .hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

.seo-hero-visual {
  position: relative;
}

.seo-hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Landscape hero (16:9 general pages) */
.hero-landscape {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 420px;
}

/* Portrait hero (9:16 adult pages — no crop) */
.hero-portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  max-width: 360px;
  margin: 0 auto;
}

.hero-portrait {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.seo-hero.adult-hero .seo-hero-inner {
  grid-template-columns: 1.2fr 0.8fr;
}

.seo-article-wrap {
  padding: 48px 0 80px;
}

.seo-article-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* Table of contents */
.seo-toc {
  position: sticky;
  top: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.seo-toc h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
}

.seo-toc ol {
  list-style: none;
  counter-reset: toc;
}

.seo-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}

.seo-toc a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1.4;
}

.seo-toc a::before {
  content: counter(toc) ". ";
  color: var(--emerald);
  font-weight: 700;
}

.seo-toc a:hover,
.seo-toc a.active {
  background: rgba(0, 255, 157, 0.08);
  color: var(--text);
}

/* Prose content */
.seo-prose {
  max-width: 780px;
}

.seo-prose section {
  padding: 0;
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.seo-prose h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.seo-prose h3 {
  font-size: 20px;
  margin: 28px 0 14px;
  color: var(--emerald);
}

.seo-prose p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.85;
  font-size: 16px;
}

.seo-prose p strong {
  color: var(--text);
}

.seo-prose ul,
.seo-prose ol {
  margin: 0 0 20px 24px;
  color: var(--muted);
}

.seo-prose li {
  margin-bottom: 10px;
  line-height: 1.7;
  list-style: disc;
}

.seo-prose ol li {
  list-style: decimal;
}

.seo-prose a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-prose a:hover {
  color: var(--cyan);
}

.seo-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.seo-prose th,
.seo-prose td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.seo-prose th {
  background: var(--card2);
  color: var(--text);
  font-weight: 700;
}

.seo-prose td {
  color: var(--muted);
}

.seo-prose .info-box {
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.seo-prose .info-box p:last-child {
  margin-bottom: 0;
}

.seo-prose .cta-inline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}

.seo-prose .cta-inline h3 {
  color: var(--text);
  margin-top: 0;
}

/* Pricing cards in article */
.seo-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.seo-price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.seo-price-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.seo-price-card .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--emerald);
}

.seo-price-card p {
  font-size: 13px;
  margin-bottom: 12px;
}

/* FAQ in article */
.seo-faq .faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.seo-faq .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.seo-faq .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.seo-faq .faq-a-inner {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.seo-faq .faq-item.open .faq-a {
  max-height: 600px;
}

/* Related keywords block */
.related-keywords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-keywords-grid a {
  font-size: 13px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}

.related-keywords-grid a:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Hub page (pages/index.html) */
.hub-page {
  padding: 120px 0 80px;
}

.hub-search {
  width: 100%;
  max-width: 480px;
  margin: 24px auto 40px;
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: inherit;
}

.hub-search:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.hub-letter-group {
  margin-bottom: 40px;
}

.hub-letter-group h2 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--emerald);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.hub-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.hub-links a:hover {
  color: var(--emerald);
  border-color: rgba(0, 255, 157, 0.3);
}

.hub-links a.hidden-by-search {
  display: none;
}

.hub-stats {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Sticky CTA for SEO pages */
.seo-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(3, 5, 8, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.seo-page-body .wa-float {
  bottom: 72px;
}

@media (max-width: 1024px) {
  .seo-article-grid {
    grid-template-columns: 1fr;
  }

  .seo-toc {
    position: static;
  }

  .seo-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-portrait-wrap {
    max-width: 240px;
  }
}

/* SEO landing pages (homepage-style guides) */
body.seo-landing .hero { position: relative; }
body.seo-landing .breadcrumb { margin-bottom: 16px; font-size: 13px; }
body.seo-landing .breadcrumb a { color: var(--muted); }
body.seo-landing .breadcrumb span { color: var(--text); }

.seo-guide-prose {
  max-width: 900px;
  margin: 0 auto;
}

.seo-guide-prose .guide-block,
.seo-guide-prose section {
  margin-bottom: 24px;
  padding: 0;
  scroll-margin-top: 100px;
}

.seo-guide-prose .guide-block h2,
.seo-guide-prose section h2 {
  margin-top: 0;
}

.seo-guide-prose .guide-filler {
  margin-bottom: 14px;
  padding-bottom: 0;
}

.seo-guide-prose .guide-filler p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--muted);
}

.seo-guide-prose h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.seo-guide-prose h3 {
  font-size: 20px;
  margin: 28px 0 14px;
  color: var(--emerald);
}

.seo-guide-prose p,
.seo-guide-prose li {
  color: var(--muted);
  line-height: 1.85;
  font-size: 16px;
}

.seo-guide-prose ul,
.seo-guide-prose ol {
  margin: 0 0 20px 24px;
}

.seo-pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .seo-pricing-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Visual band — tech-first imagery (min 5 per page) */
.seo-visual-band {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
}

.seo-visual-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.seo-visual-head h2 {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 8px;
}

.seo-visual-head p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.seo-visual-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.seo-visual-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 4 / 3;
}

.seo-visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.seo-visual-item:hover img {
  transform: scale(1.04);
}

.seo-visual-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.seo-media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 8px;
}

.seo-media-duo figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.seo-media-duo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.seo-media-duo figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* Hub preview cards (static, no autoplay video) */
.preview-card-section {
  padding: 56px 0;
}

.preview-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.preview-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  background: var(--card2);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

body.adult-page .seo-visual-item,
body.adult-page .preview-card {
  border-color: rgba(255, 77, 157, 0.12);
}

body.adult-page .preview-card img,
body.adult-page .seo-visual-item img {
  object-fit: contain;
  background: var(--bg2);
}

body.adult-page .seo-media-duo img,
body.adult-page .hero-portrait-wrap img,
body.adult-page .hero-landscape {
  object-fit: contain !important;
  background: var(--bg2);
}

@media (max-width: 1024px) {
  .seo-visual-strip,
  .preview-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .seo-pricing-grid {
    grid-template-columns: 1fr;
  }

  .seo-page {
    padding-top: 80px;
  }

  .seo-visual-strip,
  .preview-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seo-media-duo {
    grid-template-columns: 1fr;
  }
}