/* Saddl OS Capability Reports: Returns & Reviews and SEO Listing Engine */
/* Follows Saddl Core Design System: tokens, typography, surfaces and components */

:root {
  --paper: var(--saddl-paper, #F5F3ED);
  --ink: var(--saddl-ink, #28332D);
  --forest: var(--saddl-forest, #26352E);
  --stone: var(--saddl-stone, #ECE9DF);
  --accent: var(--saddl-terracotta, #BC452F);
  --sage: var(--saddl-sage, #819582);
  --pale-sage: var(--saddl-pale-sage, #E4EADC);
  --rule: var(--saddl-rule, #C9C9BD);
  --muted: var(--saddl-muted, #536457);
  --mist: var(--saddl-mist, #D4DFD5);
  --peach: var(--saddl-peach, #E7B494);
  --line: var(--saddl-rule, #C9C9BD);
}

/* Skip link */
.skip-link {
  position: fixed;
  z-index: 200;
  left: 16px;
  top: -100px;
  background: var(--forest);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: SaddlBody, "Manrope", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

body.capability-report-page {
  background: var(--paper);
  color: var(--ink);
  font-family: SaddlBody, "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  overflow-x: clip;
}

body.capability-report-page * {
  box-sizing: border-box;
}

body.capability-report-page a {
  color: inherit;
  text-decoration: none;
}

body.capability-report-page a:focus-visible,
body.capability-report-page button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Dark Surfaces: Process steps, dark owner cards, final CTA, hero side */
.capability-report-page :is(.step, .owner.dark, .final-cta, .hero-side) :is(h1, h2, h3, h4) {
  color: #ffffff;
}

.capability-report-page :is(.step, .owner.dark, .final-cta, .hero-side) :is(p, ul, ol, li) {
  color: var(--mist);
}

.capability-report-page :is(section, [id]) {
  scroll-margin-top: 104px;
}

/* Headings Hierarchy */
body.capability-report-page h1,
body.capability-report-page h2,
body.capability-report-page h3,
body.capability-report-page h4 {
  font-family: SaddlDisplay, "Barlow Condensed", Arial, sans-serif;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.capability-report-page h1 em,
body.capability-report-page h2 em {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

body.capability-report-page p {
  color: var(--muted);
  line-height: 1.65;
}

/* Container Width: exactly aligns with cinema-header nav and site-footer across all breakpoints */
.capability-report-page .wrap {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

@media (max-width: 1000px) {
  .capability-report-page .wrap {
    width: calc(100% - 48px);
  }
}

@media (max-width: 680px) {
  .capability-report-page .wrap {
    width: calc(100% - 36px);
  }
}

/* Eyebrows / Kickers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: SaddlDisplay, "Barlow Condensed", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Standard Saddl Buttons */
.button,
.pill-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: SaddlBody, "Manrope", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.button:hover,
.pill-link:hover,
.btn:hover {
  transform: translateY(-2px);
}

.button-dark,
.pill-link {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.button-dark:hover,
.pill-link:hover {
  background: #a43c28;
  border-color: #a43c28;
  color: #ffffff;
}

.button-plain {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.button-plain:hover {
  background: var(--stone);
  color: var(--forest);
}

.button-light {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.button-light:hover {
  background: #a43c28;
  border-color: #a43c28;
  color: #ffffff;
}

/* Breadcrumbs */
.crumb {
  padding: 24px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.crumb span {
  color: var(--rule);
}

.crumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Hero Section */
.hero {
  padding: 56px 0 68px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px 0 22px;
  font-weight: 600;
  max-width: 660px;
}

.hero-desc {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 26px;
}

.hero-desc strong {
  color: var(--forest);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-pill {
  border: 1px solid var(--rule);
  background: var(--stone);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* App Screenshot Frame */
.hero-shot {
  min-width: 0;
}

.app-frame {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--forest);
  box-shadow: 0 12px 32px rgba(38, 53, 46, 0.08);
  border: 1px solid var(--rule);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: #1f2c26;
  color: #ffffff;
  font-family: SaddlBody, "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-bar i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.app-bar .dots {
  display: flex;
  gap: 6px;
}

.app-bar .tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach);
}

.app-frame button.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #17221d;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.app-frame button.zoom:hover {
  opacity: 0.96;
}

.app-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.app-frame figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  background: var(--stone);
  border-top: 1px solid var(--rule);
}

.app-frame figcaption b {
  color: var(--forest);
  font-weight: 600;
}

.zoom-hint {
  display: block;
  margin-top: 4px;
  color: var(--sage);
  font-size: 11px;
}

/* Divider Highlights Band */
.divider-band {
  background: var(--stone);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band-grid {
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.band-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.band-icon {
  height: 24px;
  width: 24px;
  flex: none;
  background: var(--pale-sage);
  border: 1px solid var(--sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--forest);
  font-weight: 700;
}

.band-item strong {
  color: var(--forest);
}

/* General Sections */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--stone);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 14px 0 16px;
  color: var(--forest);
}

.section-head p {
  font-size: 16px;
  color: var(--muted);
  max-width: 660px;
  margin: 0;
  line-height: 1.6;
}

/* Feature Cards Grid */
.six-cols,
.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  border: 1px solid var(--rule);
  background: #ffffff;
  border-radius: 10px;
  padding: 28px;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(38, 53, 46, 0.03);
}

.feature-card .num {
  color: var(--accent);
  font-family: SaddlDisplay, "Barlow Condensed", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--forest);
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Screenshot Stacks */
.shot-stack {
  display: grid;
  gap: 28px;
  margin-top: 42px;
}

.narrow {
  max-width: 960px;
  margin-inline: auto;
  width: 100%;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Details Grid: Evidence & Output */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.details-col {
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--rule);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(38, 53, 46, 0.03);
}

.details-col h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--forest);
}

.details-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.details-col li {
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--pale-sage);
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.details-col li:first-child {
  border-top: 0;
  padding-top: 0;
}

.details-col li:before {
  content: '↗';
  position: absolute;
  left: 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.details-col li strong {
  color: var(--ink);
  font-weight: 600;
}

.fineprint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 24px;
}

/* Process Section */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: steps;
}

.step {
  background: var(--forest);
  color: #ffffff;
  border-radius: 10px;
  padding: 24px;
  min-height: 200px;
  border: 1px solid #384c42;
  display: flex;
  flex-direction: column;
}

.step .step-no {
  color: var(--peach);
  font-family: SaddlDisplay, "Barlow Condensed", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 18px 0 10px;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.step p {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.6;
}

/* Ownership / Software + People */
.ownership {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.owner {
  padding: 34px;
  border: 1px solid var(--rule);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(38, 53, 46, 0.03);
}

.owner.dark {
  background: var(--forest);
  color: #ffffff;
  border-color: #384c42;
}

.owner .owner-tag {
  font-family: SaddlDisplay, "Barlow Condensed", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.owner.dark .owner-tag {
  color: var(--peach);
}

.owner h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
  color: var(--forest);
}

.owner.dark h3 {
  color: #ffffff;
}

.owner p,
.owner ul {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.owner.dark p,
.owner.dark ul {
  color: var(--mist);
}

.owner ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.owner li {
  margin: 6px 0;
}

/* Proof Section */
.proof {
  background: var(--pale-sage);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  padding: 36px;
  align-items: center;
}

.proof h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  color: var(--forest);
}

.proof p {
  font-size: 14px;
  max-width: 650px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.proof a {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: color 0.2s;
}

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

.proof-big {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}

.proof-big strong {
  display: block;
  font-family: SaddlDisplay, "Barlow Condensed", Arial, sans-serif;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--forest);
  font-weight: 600;
}

.proof-big span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* Split Section (Marketplace differences) */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.split h2 {
  font-size: clamp(30px, 3.5vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 12px 0 14px;
  color: var(--forest);
}

.split p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
  line-height: 1.65;
}

.split ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* FAQ Section */
.faq {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
}

.faq-heading h2 {
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 12px 0;
  color: var(--forest);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0 22px;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--forest);
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Final CTA Section */
.final-cta {
  background: var(--forest);
  color: #ffffff;
  padding: 68px 0 76px;
}

.final-cta .eyebrow {
  color: var(--peach);
}

.final-cta .eyebrow::before {
  background: var(--peach);
}

.final-cta h2 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 12px 0 12px;
  color: #ffffff;
}

.final-cta p {
  color: var(--mist);
  margin: 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
}

.cta-inner {
  display: flex;
  gap: 36px;
  justify-content: space-between;
  align-items: center;
}

/* Lightbox Modal */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
}

.lightbox::backdrop {
  background: rgba(14, 23, 19, 0.88);
}

.lightbox .lb-inner {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 64px 20px 24px;
  background: rgba(14, 23, 19, 0.95);
  text-align: center;
}

.lightbox img {
  display: inline-block;
  max-width: none;
  width: auto;
  height: auto;
  border-radius: 8px;
  vertical-align: top;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lightbox .lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: SaddlBody, "Manrope", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox .lb-close:hover {
  background: #a43c28;
}

/* Accessibility & Screen Readers */
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Responsive Media Queries */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 0 54px;
  }

  .hero h1 {
    font-size: clamp(38px, 6.5vw, 54px);
  }

  .six-cols,
  .three-cols {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .details-grid,
  .ownership,
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proof {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .proof-big {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 18px;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 54px 0;
  }

  .final-cta {
    padding: 54px 0;
  }

  .band-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .six-cols,
  .three-cols,
  .grid2 {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: auto;
  }

  .app-bar .tag {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .process {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .pill-link,
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
