/* Service pages (/<service>/ and /en/<service>/). Loaded after landing-neural.css,
   which still provides tokens, header, buttons, FAQ, CTA and footer. */

.service-page {
  background: #f7f8f5;
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 1.25rem 6rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 0%, rgba(0, 108, 255, 0.22), transparent 30rem),
    linear-gradient(180deg, #02050a 0%, #07111a 100%);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 169, 214, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 169, 214, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  opacity: 0.28;
  pointer-events: none;
}

.service-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.service-hero .section-kicker {
  width: auto;
  margin: 0 0 1rem;
}

.service-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.service-lead {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.72;
}

.service-hero .hero-actions {
  justify-content: flex-start;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  color: rgba(246, 248, 251, 0.66);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(126, 169, 214, 0.5);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #fff;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.service-grid,
.service-related-list {
  width: min(var(--max), 100%);
  margin: 3rem auto 0;
  display: grid;
  gap: 1rem;
}

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

.service-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 26, 27, 0.06);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.service-card p {
  margin: 0;
  color: #59645f;
  line-height: 1.65;
}

.service-prose {
  width: min(var(--max), 100%);
  margin: 3rem auto 0;
}

.service-prose p {
  max-width: 46rem;
  margin: 0 0 1.35rem;
  color: #3b4540;
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-prose p:last-child {
  margin-bottom: 0;
}

.service-band-dark .service-prose p {
  color: var(--muted);
}

.service-prose + .service-grid,
.service-prose + .process-list {
  margin-top: 3.5rem;
}

/* A heading directly above a card grid or a step list, so the cards read as
   part of the section that precedes them and not as a separate page block. */
.section-items-title {
  width: min(var(--max), 100%);
  margin: 3.5rem auto 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-items-title + .service-grid,
.section-items-title + .process-list,
.section-items-title + .timeline,
.section-items-title + .key-points {
  margin-top: 1.4rem;
}

/* A timeline answers `from when / who / what it means` without another card grid. */
.timeline {
  width: min(var(--max), 100%);
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  max-width: 46rem;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 1px solid rgba(24, 26, 27, 0.14);
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: -0.3125rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--blue);
}

.timeline-when {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.timeline-who {
  margin: 0.35rem 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #11181d;
}

.timeline-what {
  margin: 0.45rem 0 0;
  color: #59645f;
  line-height: 1.7;
}

/* The answer-first list: short claims a reader - or a model - can lift whole. */
.key-points {
  width: min(var(--max), 100%);
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.key-points li {
  position: relative;
  max-width: 46rem;
  padding-left: 1.75rem;
  color: #3b4540;
  font-size: 1.05rem;
  line-height: 1.7;
}

.key-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}

.service-prose + .key-points,
.service-prose + .timeline {
  margin-top: 3rem;
}

/* An article is read top to bottom: one column, no second column of commentary. */
.article-page .section-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.article-page .section h2 {
  max-width: 34rem;
  font-size: clamp(1.75rem, 2.9vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-page .section-grid > p {
  max-width: 46rem;
}

.article-page .service-prose {
  margin-top: 1.9rem;
}

.article-page .service-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
}

.article-page .service-grid {
  margin-top: 2.5rem;
}

/* Only links inside the article body: the header, language switch and footer
   keep the styling landing-neural.css gives them. */
.article-page .service-prose a,
.article-page .key-points a,
.article-page .timeline a,
.article-page .service-card a,
.article-page .faq-item a {
  color: inherit;
  text-decoration-color: var(--blue);
  text-underline-offset: 0.18em;
}

.article-page .service-band-dark .service-prose a,
.article-page .service-band-dark .service-card a {
  text-decoration-color: var(--teal);
}

.service-band-dark .timeline li {
  border-left-color: var(--line);
}

.service-band-dark .timeline-who {
  color: #f6f8fb;
}

.service-band-dark .timeline-what,
.service-band-dark .key-points li {
  color: var(--muted);
}

/* landing-neural.css tightens `.section + .section`; a band change needs full air. */
.section.service-band-dark,
.section.service-band-dark + .section {
  padding-top: 7rem;
}

.service-band-dark {
  background: #07111a;
  color: #f6f8fb;
}

.service-band-dark .section-grid > p,
.service-band-dark .service-card p {
  color: var(--muted);
}

.service-band-dark .service-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.service-related h2 {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.service-related-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-related-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(24, 26, 27, 0.08);
  border-radius: var(--radius);
  background: #fff;
  color: #11181d;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.service-related-item:hover,
.service-related-item:focus-visible {
  border-color: var(--blue);
  outline: none;
  transform: translateY(-2px);
}

.service-related-item h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-related-item p {
  margin: 0;
  color: #59645f;
  line-height: 1.6;
}

.service-related-item span {
  margin-top: auto;
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 600;
}

.service-page .cta {
  padding-top: 2rem;
}

@media (max-width: 900px) {
  .service-hero {
    padding-top: 12rem;
  }

  .service-grid,
  .service-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .service-hero {
    padding: 11rem 1rem 4rem;
  }

  .timeline li {
    padding-left: 1.5rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .service-related-item {
    transition: none;
  }
}
