/* Shared editorial layer for ClaroSi service and AI pages.
   The page copy and evidence stay page-specific; this file unifies the visual rhythm. */
:root {
  --editorial-ink: #0a1838;
  --editorial-muted: #536078;
  --editorial-blue: #0d47c9;
  --editorial-cyan: #38d0ff;
  --editorial-paper: #fff;
  --editorial-wash: #eef3fb;
  --editorial-line: #d9e3f2;
  --editorial-shadow: 0 18px 44px rgba(10, 24, 56, .08);
}

body.cs-editorial {
  background: var(--editorial-wash);
  color: var(--editorial-ink);
  font-family: "Satoshi", system-ui, sans-serif;
}

body.cs-editorial main {
  overflow: clip;
}

/* Dark, high-contrast editorial lead-in shared across service and AI pages. */
body.cs-editorial .hero,
body.cs-editorial .ai-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: linear-gradient(128deg, #07183d 0%, #09265c 58%, #0d47c9 100%);
  color: #fff;
}

/* Page photography belongs in the opening scene. The live headline and lead
   remain the accessible introduction, while the image is decorative. */
body.cs-editorial .hero.hero--photo,
body.cs-editorial .ai-hero.ai-hero--photo,
body.cs-editorial .sr-hero.sr-hero--photo {
  background-color: #07183d;
  background-image:
    linear-gradient(90deg, rgba(5, 17, 42, .9) 0%, rgba(5, 17, 42, .74) 42%, rgba(5, 17, 42, .34) 100%),
    linear-gradient(0deg, rgba(5, 17, 42, .5), transparent 58%),
    var(--editorial-hero-image);
  background-position: center, center, var(--editorial-hero-position, center);
  background-repeat: no-repeat;
  background-size: cover;
}

body.cs-editorial .hero::before,
body.cs-editorial .ai-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 24%, rgba(65, 133, 255, .16) 24% 24.16%, transparent 24.16% 67%, rgba(56, 208, 255, .13) 67% 67.16%, transparent 67.16%),
    radial-gradient(42% 100% at 100% 0%, rgba(56, 208, 255, .14), transparent 72%);
  content: "";
  pointer-events: none;
}

body.cs-editorial .hero::after,
body.cs-editorial .ai-hero::after {
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -170px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 48px rgba(255, 255, 255, .025), 0 0 0 96px rgba(255, 255, 255, .02);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

body.cs-editorial .hero > .container,
body.cs-editorial .hero > .wrap,
body.cs-editorial .ai-hero > .wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-inline: auto;
}

body.cs-editorial .sr-hero > .sr-wrap {
  position: relative;
  z-index: 1;
}

body.cs-editorial .hero h1,
body.cs-editorial .ai-hero h1 {
  max-width: 15ch;
  margin: 0 0 22px;
  color: #fff;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: .98;
  text-transform: uppercase;
}

body.cs-editorial .hero .audit-kicker,
body.cs-editorial .ai-kicker {
  display: inline-block;
  margin: 0 0 15px;
  color: #83e1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.cs-editorial .hero .lede,
body.cs-editorial .hero .hero-copy,
body.cs-editorial .ai-lead {
  max-width: 66ch;
  margin: 0;
  color: #dce7f8;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

body.cs-editorial .audit-hero-actions,
body.cs-editorial .hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

body.cs-editorial .hero .button:not(.button-ghost):not(.secondary),
body.cs-editorial .ai-hero .ai-btn {
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #07183d;
  font-weight: 800;
}

body.cs-editorial .hero .button-ghost,
body.cs-editorial .hero .button.secondary {
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

body.cs-editorial .hero.audit-hero .audit-byline {
  color: #d4e2f7;
}

/* Retain the research preview, dashboard and video layouts while giving them
   the same clean white surface and blue edge used throughout the site. */
body.cs-editorial .hero .audit-demo,
body.cs-editorial .hero .cr-hero-video,
body.cs-editorial .hero .svh-hero-visual {
  border-color: rgba(255, 255, 255, .42);
  border-radius: 15px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .22);
}

/* The research walkthrough is the proof point for this service, so it takes
   the full hero width rather than competing with a side panel. */
body.cs-editorial .hero.cr-video-hero {
  padding-block: clamp(42px, 6vw, 82px);
}

body.cs-editorial .cr-video-hero .cr-hero-copy {
  max-width: 760px;
}

body.cs-editorial .cr-video-hero .cr-hero-copy h1 {
  /* Keep the introduction compact enough that the walkthrough itself is
     immediately visible on a typical desktop viewport. */
  max-width: none;
  font-size: clamp(48px, 4.7vw, 64px);
}

body.cs-editorial .cr-video-hero .cr-hero-copy .lede {
  max-width: 58ch;
}

body.cs-editorial .cr-video-hero .cr-hero-video {
  margin-top: clamp(22px, 3vw, 34px);
}

body.cs-editorial .cr-video-hero .cr-video-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 0;
}

body.cs-editorial .cr-video-hero .cr-demo-label {
  margin: 0 0 8px;
  color: #83e1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.cs-editorial .cr-video-hero .cr-video-intro h2 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  line-height: .98;
  text-transform: uppercase;
}

body.cs-editorial .cr-video-hero .cr-video-intro p:last-child {
  max-width: 49ch;
  margin: 0;
  color: #dce7f8;
  font-size: 16px;
  line-height: 1.55;
}

body.cs-editorial .cr-video-hero .cr-video-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 15px;
  background: #07183d;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .22);
}

body.cs-editorial .cr-video-hero .cr-video-figure video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #07183d;
}

body.cs-editorial .cr-video-hero .audit-hero-actions {
  margin-bottom: 18px;
}

/* The evidence-audit film is the service's explanation in motion: keep it
   directly in the hero, without native playback controls competing with it. */
body.cs-editorial .audit-video-hero {
  padding-block: clamp(42px, 6vw, 82px);
}

body.cs-editorial .audit-video-hero .audit-video-copy {
  max-width: 790px;
}

body.cs-editorial .audit-video-hero .audit-video-copy h1 {
  max-width: none;
  font-size: clamp(48px, 4.7vw, 64px);
}

body.cs-editorial .audit-video-hero .audit-video-copy .lede {
  max-width: 60ch;
}

body.cs-editorial .audit-video-hero .audit-decision-video {
  margin: clamp(22px, 3vw, 34px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 15px;
  background: #07183d;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .22);
}

body.cs-editorial .audit-video-hero .audit-decision-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #07183d;
}

body.cs-editorial .audit-video-hero .audit-hero-actions {
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  body.cs-editorial .cr-video-hero .cr-video-intro {
    display: block;
  }

  body.cs-editorial .cr-video-hero .cr-video-intro p:last-child {
    margin-top: 14px;
  }
}

/* Spacious editorial sections alternate white and pale blue surfaces. */
body.cs-editorial:not(.ai-page) .section {
  padding-block: clamp(58px, 7.5vw, 96px);
}

body.cs-editorial:not(.ai-page) .section-title,
body.cs-editorial:not(.ai-page) .section-head h2,
body.cs-editorial.ai-page .ai-section > h2 {
  color: var(--editorial-ink);
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: .98;
  text-transform: uppercase;
}

body.cs-editorial:not(.ai-page) .section-copy,
body.cs-editorial:not(.ai-page) .section-intro {
  color: var(--editorial-muted);
  line-height: 1.58;
}

body.cs-editorial:not(.ai-page) .section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

body.cs-editorial:not(.ai-page) .section-head h2::after,
body.cs-editorial.ai-page .ai-section > h2::after {
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 15px;
  background: linear-gradient(90deg, var(--editorial-blue), var(--editorial-cyan));
  content: "";
}

body.cs-editorial:not(.ai-page) .svh-card,
body.cs-editorial:not(.ai-page) .info-card,
body.cs-editorial:not(.ai-page) .audit-answer,
body.cs-editorial:not(.ai-page) .price-card,
body.cs-editorial:not(.ai-page) .booking-card,
body.cs-editorial:not(.ai-page) .card,
body.cs-editorial:not(.ai-page) .audit-demo,
body.cs-editorial:not(.ai-page) .sample-card {
  border: 1px solid var(--editorial-line);
  border-radius: 14px;
  background: var(--editorial-paper);
  box-shadow: var(--editorial-shadow);
}

body.cs-editorial:not(.ai-page) .svh-card,
body.cs-editorial:not(.ai-page) .info-card,
body.cs-editorial:not(.ai-page) .audit-answer,
body.cs-editorial:not(.ai-page) .price-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.cs-editorial:not(.ai-page) .svh-card:hover,
body.cs-editorial:not(.ai-page) .info-card:hover,
body.cs-editorial:not(.ai-page) .audit-answer:hover,
body.cs-editorial:not(.ai-page) .price-card:hover {
  border-color: rgba(13, 71, 201, .38);
  box-shadow: 0 22px 44px rgba(10, 24, 56, .12);
  transform: translateY(-2px);
}

body.cs-editorial:not(.ai-page) .svh-card h3 a,
body.cs-editorial:not(.ai-page) .info-card a,
body.cs-editorial:not(.ai-page) .audit-answer a {
  color: var(--editorial-blue);
}

body.cs-editorial:not(.ai-page) .svh-grid {
  gap: 18px;
}

body.cs-editorial:not(.ai-page) .svh-card {
  position: relative;
  padding: 26px;
}

body.cs-editorial:not(.ai-page) .svh-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--editorial-blue), var(--editorial-cyan));
  content: "";
}

body.cs-editorial:not(.ai-page) .section.audit-answers,
body.cs-editorial:not(.ai-page) .section.audit-related,
body.cs-editorial:not(.ai-page) .section.ongoing-review,
body.cs-editorial:not(.ai-page) .section.cr-page-path,
body.cs-editorial:not(.ai-page) .section.cr-trial,
body.cs-editorial:not(.ai-page) .section.audit-next {
  background: linear-gradient(135deg, #f5f8fd, #eaf2ff);
}

body.cs-editorial:not(.ai-page) .timeline-item,
body.cs-editorial:not(.ai-page) .audit-step,
body.cs-editorial:not(.ai-page) .cr-step,
body.cs-editorial:not(.ai-page) .faq details {
  border-color: var(--editorial-line);
  border-radius: 12px;
  background: var(--editorial-paper);
}

body.cs-editorial:not(.ai-page) .booking-section .booking-card {
  border: 1px solid var(--editorial-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--editorial-shadow);
}

/* Photo-led editorial breaks give long service pages a visual pause without
   replacing useful detail or presenting stock images as client evidence. */
body.cs-editorial .cs-photo-break {
  padding: clamp(30px, 5vw, 68px) 0;
  background: linear-gradient(180deg, #f7f9fd 0%, #eaf1fb 100%);
}

body.cs-editorial .cs-photo-break-inner {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

body.cs-editorial .cs-photo-break-figure {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 42vw, 560px);
  overflow: hidden;
  margin: 0;
  background: #071943;
  color: #fff;
  box-shadow: 18px 18px 0 rgba(13, 71, 201, .13);
}

body.cs-editorial .cs-photo-break-figure > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  filter: saturate(.78) contrast(1.04);
}

body.cs-editorial .cs-photo-break-figure::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 17, 42, .88) 0%, rgba(5, 17, 42, .68) 34%, rgba(5, 17, 42, .06) 100%),
    linear-gradient(0deg, rgba(5, 17, 42, .45), transparent 48%);
  content: "";
}

body.cs-editorial .cs-photo-break-figure::after {
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  content: "";
  pointer-events: none;
}

body.cs-editorial .cs-photo-break-copy {
  position: relative;
  z-index: 3;
  width: min(640px, 78%);
  padding: clamp(30px, 5.5vw, 72px);
}

body.cs-editorial .cs-photo-break-kicker {
  margin: 0 0 18px;
  color: #8de4e8;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.cs-editorial .cs-photo-break-copy h2 {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(2.7rem, 5.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: .96;
  text-wrap: balance;
  text-transform: uppercase;
}

body.cs-editorial .cs-photo-break-figure figcaption {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: 22px;
  max-width: calc(100% - 52px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(5, 17, 42, .72);
  color: rgba(255, 255, 255, .84);
  font-size: .65rem;
  letter-spacing: .1em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

body.cs-editorial .cs-photo-break-figure--copy-right::before {
  background:
    linear-gradient(270deg, rgba(5, 17, 42, .88) 0%, rgba(5, 17, 42, .66) 35%, rgba(5, 17, 42, .04) 100%),
    linear-gradient(0deg, rgba(5, 17, 42, .45), transparent 48%);
}

body.cs-editorial .cs-photo-break-figure--copy-right .cs-photo-break-copy {
  margin-left: auto;
}

body.cs-editorial .cs-photo-break-figure--copy-right figcaption {
  right: auto;
  left: 26px;
  text-align: left;
}

/* Keep dark service heroes readable when page-level legacy rules set dark type. */
body.cs-editorial .hero h1 {
  color: #fff !important;
}

/* The AI hub keeps its own paths, evidence and safeguards, but gains the same
   editorial hero, spacious banding and legible modular cards. */
body.cs-editorial.ai-page .ai-hero {
  padding: clamp(58px, 8vw, 102px) 0 clamp(52px, 7vw, 86px);
  border-bottom: 0;
}

body.cs-editorial.ai-page .ai-hero h1 {
  max-width: 14ch;
  font-size: clamp(46px, 6vw, 78px);
}

body.cs-editorial.ai-page .ai-kicker {
  color: #83e1ff;
}

body.cs-editorial.ai-page .ai-lead {
  color: #dce7f8;
}

body.cs-editorial.ai-page .ai-main {
  padding: clamp(26px, 4vw, 48px) 0 clamp(64px, 8vw, 96px);
  background: linear-gradient(180deg, #edf3fc, #f7f9fd 52%, #eaf2ff);
}

body.cs-editorial.ai-page .ai-main > .wrap {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
}

body.cs-editorial.ai-page .ai-section {
  margin: 0 0 22px;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--editorial-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 24, 56, .055);
}

body.cs-editorial.ai-page .ai-section > h2 {
  max-width: 18ch;
  margin-bottom: 18px;
}

body.cs-editorial.ai-page .ai-section > h2::after {
  margin-top: 13px;
}

body.cs-editorial.ai-page .ai-section h3,
body.cs-editorial.ai-page .ai-path h2 {
  color: var(--editorial-ink);
}

body.cs-editorial.ai-page .ai-paths {
  gap: 18px;
  margin-bottom: 22px;
}

body.cs-editorial.ai-page .ai-path,
body.cs-editorial.ai-page .ai-two > div {
  border: 1px solid var(--editorial-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--editorial-shadow);
}

body.cs-editorial.ai-page .ai-path-alt {
  background: linear-gradient(145deg, #fff, #edf5ff);
}

body.cs-editorial.ai-page .ai-card {
  min-height: 220px;
  border-color: var(--editorial-line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(10, 24, 56, .06);
}

body.cs-editorial.ai-page .ai-rows li,
body.cs-editorial.ai-page .faq details {
  border-color: var(--editorial-line);
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(10, 24, 56, .04);
}

body.cs-editorial.ai-page .ai-notice {
  border-left-color: var(--editorial-cyan);
  background: #edf5ff;
}

body.cs-editorial.ai-page .ai-closing {
  margin-top: 22px;
  border-radius: 16px;
  background: linear-gradient(128deg, #07183d, #0a2b6d 62%, #0d47c9);
  box-shadow: var(--editorial-shadow);
}

body.cs-editorial.ai-page .ai-section .ai-form {
  max-width: none;
  margin-top: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--editorial-line);
  border-radius: 13px;
  background: #f6f9fe;
}

body.cs-editorial.ai-page .ai-form input,
body.cs-editorial.ai-page .ai-form textarea {
  border-color: #c7d5e9;
  border-radius: 7px;
}

@media (max-width: 900px) {
  body.cs-editorial:not(.ai-page) .audit-hero-grid,
  body.cs-editorial:not(.ai-page) .cr-hero-grid {
    grid-template-columns: 1fr;
  }

  body.cs-editorial:not(.ai-page) .svh-grid,
  body.cs-editorial:not(.ai-page) .audit-answer-grid,
  body.cs-editorial:not(.ai-page) .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.cs-editorial .cs-photo-break-inner {
    width: calc(100% - 32px);
  }

  body.cs-editorial .cs-photo-break-figure {
    min-height: 370px;
  }

  body.cs-editorial .cs-photo-break-copy {
    width: 100%;
    padding: 28px 24px 58px;
  }

  body.cs-editorial .cs-photo-break-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  body.cs-editorial .cs-photo-break-figure figcaption,
  body.cs-editorial .cs-photo-break-figure--copy-right figcaption {
    right: 24px;
    bottom: 16px;
    left: auto;
    max-width: calc(100% - 48px);
    text-align: right;
  }

  body.cs-editorial .cs-photo-break-figure--copy-right .cs-photo-break-copy {
    margin-left: 0;
  }

  body.cs-editorial .cs-photo-break-figure--copy-right::before {
    background:
      linear-gradient(90deg, rgba(5, 17, 42, .9) 0%, rgba(5, 17, 42, .65) 52%, rgba(5, 17, 42, .18) 100%),
      linear-gradient(0deg, rgba(5, 17, 42, .5), transparent 52%);
  }

  body.cs-editorial .hero > .container,
  body.cs-editorial .hero > .wrap,
  body.cs-editorial .ai-hero > .wrap,
  body.cs-editorial.ai-page .ai-main > .wrap {
    width: calc(100% - 32px);
  }

  body.cs-editorial .hero h1,
  body.cs-editorial .ai-hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  body.cs-editorial:not(.ai-page) .svh-grid,
  body.cs-editorial:not(.ai-page) .audit-answer-grid,
  body.cs-editorial:not(.ai-page) .info-grid {
    grid-template-columns: 1fr;
  }

  body.cs-editorial.ai-page .ai-section {
    padding: 23px 19px;
  }

  body.cs-editorial.ai-page .ai-path-actions,
  body.cs-editorial.ai-page .ai-closing-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cs-editorial:not(.ai-page) .svh-card,
  body.cs-editorial:not(.ai-page) .info-card,
  body.cs-editorial:not(.ai-page) .audit-answer,
  body.cs-editorial:not(.ai-page) .price-card {
    transition: none;
  }

  body.cs-editorial:not(.ai-page) .svh-card:hover,
  body.cs-editorial:not(.ai-page) .info-card:hover,
  body.cs-editorial:not(.ai-page) .audit-answer:hover,
  body.cs-editorial:not(.ai-page) .price-card:hover {
    transform: none;
  }
}
