/* Shared layout for PixelRec's search-focused product and learning pages.
   Loaded after the existing compiled stylesheet so the live brand system stays authoritative. */

.seo-page main {
  overflow: clip;
}

.seo-page section[id] {
  scroll-margin-top: 80px;
}

.seo-page a:focus-visible,
.seo-page button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.seo-breadcrumbs {
  position: static;
  top: auto;
  z-index: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-bottom: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.seo-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: var(--text-muted);
  font-size: 13px;
}

.seo-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.seo-breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: rgba(255, 255, 255, 0.2);
}

.seo-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-breadcrumbs a:hover {
  color: var(--accent);
}

.seo-page .hero.seo-hero {
  padding-top: 72px;
  padding-bottom: 42px;
}

.seo-page .seo-hero h1 {
  max-width: 1040px;
}

.seo-page .seo-hero > p {
  max-width: 690px;
  margin-bottom: 32px;
}

.seo-proofline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.seo-proofline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.seo-proofline span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.65);
}

.seo-page .hero-mockup.seo-hero-mockup {
  max-width: 940px;
  margin: 28px auto 58px;
  overflow: hidden;
}

.seo-hero-mockup .canvas-area {
  height: auto;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
}

.seo-hero-mockup .hero-preview-video {
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.seo-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 8, 17, 0.05), rgba(4, 8, 17, 0.55)),
    linear-gradient(0deg, rgba(4, 8, 17, 0.66), transparent 38%);
  pointer-events: none;
}

.seo-product-panel {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 28px;
  width: min(300px, 36%);
  transform: translateY(-50%);
  padding: 20px;
  border: 1px solid rgba(118, 154, 207, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 110%, rgba(18, 88, 166, 0.64), transparent 54%),
    rgba(5, 11, 23, 0.94);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.seo-product-panel-top,
.seo-product-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.seo-product-panel-top {
  padding-bottom: 16px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(118, 154, 207, 0.18);
}

.seo-product-panel-label {
  font-size: 15px;
  font-weight: 700;
}

.seo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.12);
  color: #62e884;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.72);
}

.seo-product-panel-row {
  padding: 9px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.seo-product-panel-row strong {
  color: var(--text);
  font-weight: 650;
}

.seo-product-panel-action {
  width: 100%;
  margin-top: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.seo-section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.seo-section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.seo-section-head.centered .ssub {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.seo-section-link,
.seo-inline-link {
  color: var(--accent-2);
  font-weight: 650;
  text-decoration: none;
}

.seo-section-link:hover,
.seo-inline-link:hover {
  color: #8cd8ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.seo-grid {
  display: grid;
  gap: 18px;
}

.seo-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.seo-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-info-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.1), transparent 46%),
    #15161b;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.seo-info-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.5), transparent);
}

.seo-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.28);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.25);
}

.seo-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 11px;
  background: rgba(10, 132, 255, 0.12);
  color: #65b9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.seo-card-mark.warn {
  border-color: rgba(242, 224, 4, 0.28);
  background: rgba(242, 224, 4, 0.08);
  color: #f2e004;
}

.seo-info-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.25px;
}

.seo-info-card p,
.seo-info-card li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.72;
}

.seo-info-card ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 18px;
}

.seo-surface {
  background: var(--bg-surface);
}

.seo-blue-surface {
  background:
    radial-gradient(circle at 50% 0, rgba(10, 132, 255, 0.12), transparent 44%),
    #071226;
}

.seo-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 70px;
}

.seo-split.reverse > :first-child {
  order: 2;
}

.seo-split-copy .ssub {
  max-width: 590px;
}

.seo-check-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}

.seo-check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.seo-check-list strong {
  color: var(--text);
  font-weight: 650;
}

.seo-visual-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 26% 22%, rgba(69, 199, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 76%, rgba(10, 132, 255, 0.2), transparent 30%),
    #0d1421;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.seo-visual-card img,
.seo-visual-card video {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
}

.seo-visual-card .seo-visual-overlay {
  position: absolute;
  inset: auto 20px 20px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(16px);
}

.seo-visual-overlay strong,
.seo-visual-overlay span {
  display: block;
}

.seo-visual-overlay strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.seo-visual-overlay span {
  color: var(--text-secondary);
  font-size: 12px;
}

.seo-workflow {
  counter-reset: workflow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
  list-style: none;
}

.seo-workflow li {
  counter-increment: workflow;
  position: relative;
  min-width: 0;
  padding: 24px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #15161b;
}

.seo-workflow li::before {
  content: counter(workflow, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.seo-workflow li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 29px;
  right: -13px;
  z-index: 2;
  width: 14px;
  height: 1px;
  background: rgba(10, 132, 255, 0.45);
}

.seo-workflow h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.seo-workflow p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.seo-method-stack {
  display: grid;
  gap: 22px;
}

.seo-method {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: #15161b;
}

.seo-method-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seo-method-content h2,
.seo-method-content h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.8px;
}

.seo-method-content > p {
  max-width: 740px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.seo-numbered-guide {
  counter-reset: guide;
  display: grid;
  gap: 12px;
  margin-top: 28px;
  list-style: none;
}

.seo-numbered-guide li {
  counter-increment: guide;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.seo-numbered-guide li::before {
  content: counter(guide);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.seo-numbered-guide strong {
  color: var(--text);
}

.seo-comparison {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: #15161b;
}

.seo-comparison table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.seo-comparison th,
.seo-comparison td {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}

.seo-comparison thead th {
  background: rgba(10, 132, 255, 0.08);
  color: var(--text);
  font-size: 14px;
}

.seo-comparison tbody th {
  width: 22%;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.seo-comparison td {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.seo-comparison tbody tr:last-child th,
.seo-comparison tbody tr:last-child td {
  border-bottom: 0;
}

.seo-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.seo-choice-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: #15161b;
}

.seo-choice-card.pixelrec-choice {
  border-color: rgba(10, 132, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.12), transparent 46%),
    #15161b;
}

.seo-choice-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.seo-choice-card p {
  margin-bottom: 17px;
  color: var(--text-secondary);
  font-size: 14px;
}

.seo-choice-card ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.seo-platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.seo-platform-card {
  min-width: 0;
  padding: 24px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #15161b;
  text-align: center;
}

.seo-platform-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.seo-platform-card span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.seo-callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(242, 224, 4, 0.18);
  border-radius: 16px;
  background: rgba(242, 224, 4, 0.05);
}

.seo-callout-mark {
  flex: 0 0 auto;
  color: #f2e004;
  font-size: 18px;
  line-height: 1.3;
}

.seo-callout p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

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

.seo-related {
  background: var(--bg-surface);
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 180px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #15161b;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.seo-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.32);
  background: #171a21;
}

.seo-related-card span {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.seo-related-card h3 {
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.35;
}

.seo-related-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.62;
}

.seo-related-card::after {
  content: 'Read more →';
  margin-top: auto;
  padding-top: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.seo-page .faq-list {
  max-width: 860px;
}

.seo-page .fitem.open .fa {
  max-height: 420px;
}

.seo-page .fa a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.seo-page .fa a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-page .fcta .hero-ctas {
  position: relative;
  z-index: 1;
}

.seo-footer-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .seo-reveal-ready .seo-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .seo-reveal-ready .seo-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .seo-grid.cols-4,
  .seo-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .seo-workflow li:not(:last-child)::after {
    display: none;
  }

  .seo-split {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .seo-breadcrumbs {
    padding: 20px 20px 0;
  }

  .seo-page .hero.seo-hero {
    padding-top: 58px;
  }

  .seo-page .seo-hero .hero-line {
    white-space: normal;
  }

  .seo-split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .seo-split.reverse > :first-child {
    order: initial;
  }

  .seo-visual-card,
  .seo-visual-card img,
  .seo-visual-card video {
    min-height: 340px;
  }

  .seo-product-panel {
    right: 20px;
    width: min(280px, 42%);
  }
}

@media (max-width: 768px) {
  .seo-grid.cols-2,
  .seo-grid.cols-3,
  .seo-grid.cols-4,
  .seo-related-grid,
  .seo-choice-grid {
    grid-template-columns: 1fr;
  }

  .seo-grid.cols-3.compact-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-workflow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seo-workflow li {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 12px;
    padding: 20px;
  }

  .seo-workflow li::before {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 14px;
  }

  .seo-workflow p {
    font-size: 13px;
  }

  .seo-method {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px;
  }

  .seo-comparison {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .seo-comparison table,
  .seo-comparison tbody,
  .seo-comparison tr,
  .seo-comparison th,
  .seo-comparison td {
    display: block;
    width: 100%;
  }

  .seo-comparison thead {
    display: none;
  }

  .seo-comparison tr {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: #15161b;
  }

  .seo-comparison tbody th,
  .seo-comparison td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .seo-comparison tbody th {
    background: rgba(10, 132, 255, 0.08);
    font-size: 14px;
  }

  .seo-comparison td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .seo-comparison tbody tr:last-child th,
  .seo-comparison tbody tr:last-child td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .seo-comparison tbody tr td:last-child {
    border-bottom: 0;
  }

  .seo-product-panel {
    display: none;
  }

  .seo-hero-mockup .canvas-area {
    aspect-ratio: 4 / 3;
  }

  .seo-section-head {
    margin-bottom: 34px;
  }
}

@media (max-width: 700px) {
  .seo-breadcrumbs {
    padding: 18px 16px 0;
  }

  .seo-breadcrumbs ol {
    font-size: 11px;
  }

  .seo-page .hero.seo-hero {
    padding: 48px 16px 34px;
  }

  .seo-page .hero-mockup.seo-hero-mockup {
    margin-top: 20px;
    margin-bottom: 38px;
  }

  .seo-info-card {
    padding: 23px;
  }

  .seo-card-mark {
    margin-bottom: 16px;
  }

  .seo-visual-card,
  .seo-visual-card img,
  .seo-visual-card video {
    min-height: 280px;
  }

  .seo-visual-card .seo-visual-overlay {
    inset: auto 12px 12px;
  }

  .seo-choice-card {
    padding: 24px;
  }

  .seo-related-card {
    min-height: 0;
  }
}

@media (max-width: 500px) {
  .seo-breadcrumbs {
    padding-left: 14px;
    padding-right: 14px;
  }

  .seo-proofline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .seo-stage-scrim {
    background: linear-gradient(0deg, rgba(4, 8, 17, 0.72), transparent 50%);
  }

  .seo-platform-grid,
  .seo-grid.cols-3.compact-mobile {
    grid-template-columns: 1fr;
  }

  .seo-method {
    padding: 22px;
  }

  .seo-method-content > p {
    font-size: 14px;
  }

  .seo-workflow li {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .seo-callout {
    padding: 18px;
  }
}

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

  .seo-page .hero.seo-hero {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-page *,
  .seo-page *::before,
  .seo-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
