/* ==================================================================
   CAIRN CASE STUDY (2026-10-22): /systems/seo-engine as a Cairn page.
   Loaded in <head> through $sys_extra_css, so the colours are in place
   before the hero paints. Same method as .tembr-product-page in
   style.css: re-alias the shared tokens, then override the places the
   product-page styles hardcode Snapline violet or site teal.
   Lichen #8FB174 / #5E7D4A / #4F6B3D, night #161715, chalk #F4F2EC.
   ================================================================== */

body.cairn-product-page {
  --cairn-lichen: #8FB174;
  --cairn-moss: #5E7D4A;
  --cairn-deep: #4F6B3D;
  --cairn-line: rgba(143, 177, 116, .3);
  --teal: #8FB174;
  --blue: #5E7D4A;
  --grad: linear-gradient(135deg, #A2C287 0%, #5E7D4A 100%);
  --grad-hover: linear-gradient(135deg, #B4D19B 0%, #6B8C55 100%);
  --snapline-line: var(--cairn-line);
  --snapline-grad: linear-gradient(135deg, #8FB174, #4F6B3D);
}

/* ---------- hero ---------- */
.cairn-product-page .page-hero--product {
  background:
    radial-gradient(circle at 78% 33%, rgba(143, 177, 116, .14), transparent 36%),
    linear-gradient(145deg, #0E0F0D 0%, #171A15 54%, #101210 100%);
}
.cairn-product-page .page-hero--product::after {
  background: radial-gradient(circle, rgba(94, 125, 74, .14) 0%, transparent 68%);
}
.cairn-product-page .breadcrumb span,
.cairn-product-page .page-hero .overline,
.cairn-product-page .page-hero--product .breadcrumb--hero [aria-current='page'] { color: var(--cairn-lichen); }
.cairn-product-page .sys-product-logo {
  width: 92px;
  height: 92px;
  padding: .75rem .85rem;
  object-fit: contain;
  border: 1px solid rgba(143, 177, 116, .45);
  border-radius: 22px;
  background: #1F201D;
  box-shadow: 0 16px 42px rgba(94, 125, 74, .28);
}
.cairn-product-page .sys-product-hero-art {
  border-color: rgba(143, 177, 116, .28);
  background: rgba(22, 23, 21, .72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .45), 0 0 80px rgba(143, 177, 116, .1);
}
.cairn-product-page .sys-product-hero-credit { color: rgba(244, 242, 236, .62); }

/* White on light lichen is too weak; Cairn's own site sets ink on the
   bright buttons, so the primary CTA follows it here. */
.cairn-product-page .btn-primary,
.cairn-product-page .btn-primary:hover { color: #10140D; }

/* ---------- the method (showcase) ---------- */
.cairn-product-page .sys-product-tour-label { color: var(--cairn-lichen); }
.cairn-product-page .sys-product-tour-media { border-color: rgba(143, 177, 116, .28); background: #161715; box-shadow: 0 24px 64px rgba(0, 0, 0, .35), 0 0 50px rgba(94, 125, 74, .08); }
.cairn-product-page .sys-product-tour-media figcaption { border-top-color: rgba(143, 177, 116, .16); }

/* ---------- Cairn film (above the original engine film) ---------- */
.cairn-film-sec { padding-top: clamp(3.5rem, 7vw, 6rem); }
.cairn-film-frame { margin: 0; }
.cairn-film-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0E0F0D;
  border: 1px solid rgba(143, 177, 116, .3);
  border-radius: 16px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), 0 0 70px rgba(94, 125, 74, .12);
}
.cairn-film-frame figcaption {
  margin-top: .9rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--text-body);
}
.cairn-film-frame figcaption a { color: var(--cairn-lichen); }

/* ---------- final call to action ---------- */
#cta-band.cairn-final-cta {
  background:
    radial-gradient(circle at 50% 30%, rgba(94, 125, 74, .24), transparent 60%),
    #121311;
}
#cta-band.cairn-final-cta .overline { color: var(--cairn-lichen); }

@media (max-width: 680px) {
  .cairn-product-page .sys-product-logo {
    width: 76px;
    height: 76px;
    padding: .6rem .65rem;
    border-radius: 18px;
  }
}
