/* ==========================================================================
   pages.css — styles specific to individual pages

   Section geometry measured on the original at 1440px is noted in comments.
   ========================================================================== */

/* --------------------------------------------------------------------------
   A solid dark section — no photograph, used where the comps go dark
   (Enterprise Platform, the closing call to action).
   -------------------------------------------------------------------------- */
.section--dark {
  background: var(--c-brand-deep);
  color: var(--c-inverse);
  --c-heading: var(--c-inverse);
}

/* --------------------------------------------------------------------------
   Home — hero. The photograph runs full bleed and the copy sits in the right
   half, as drawn in the comp.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 52rem);
  padding-block: calc(var(--header-h) + var(--section-y)) var(--section-y);
  color: var(--c-inverse);
  isolation: isolate;
}

.hero__body {
  width: min(100%, 34rem);
  margin-left: auto;
}

@media (min-width: 62rem) {
  .hero__body {
    width: 48%;
  }
}

.hero__question {
  font-weight: 600;
  text-wrap: balance;
}

.hero__title {
  margin-top: var(--block);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-inverse);
  text-wrap: balance;
}

/* The second half of the line carries the accent, as in the comp. */
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--c-accent-light);
}

.hero__lead {
  margin-top: var(--stack);
  color: rgba(255, 255, 255, 0.88);
}

.hero__tagline {
  margin-top: var(--stack);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-accent-light);
}

.hero__cta {
  margin-top: var(--block);
}

/* --------------------------------------------------------------------------
   Interior pages — the first section clears the fixed header
   -------------------------------------------------------------------------- */
.page .section--first {
  padding-top: calc(var(--header-h) + var(--section-y));
}

/* A phrase inside a heading that carries the accent, on light or dark ground. */
.accent {
  color: var(--c-accent-text);
  font-style: normal;
}

.on-dark .accent,
.section--media .accent {
  color: var(--c-accent-light);
}

.t-h1 em.accent,
.t-h1 em {
  display: block;
}

/* The single centred line some comp sections close on. */
.closing-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--block);
  padding-top: var(--block);
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Home — closing call to action
   -------------------------------------------------------------------------- */
.closing__title {
  text-wrap: balance;
}

.closing__title span,
.closing__title em {
  display: block;
  font-style: normal;
}

.closing__title span {
  opacity: 0.82;
}

.closing__title em {
  color: var(--c-accent-light);
}

.closing__lead {
  margin-top: var(--stack);
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
}

.closing__cta {
  margin-top: var(--block);
}

/* --------------------------------------------------------------------------
   Request a demo — the booking page
   -------------------------------------------------------------------------- */
.booking {
  padding-block: calc(var(--header-h) + var(--section-y)) var(--section-y);
}

.booking__head {
  max-width: 44rem;
  margin-bottom: var(--block);
}

.booking__lead {
  margin-top: var(--stack);
  color: var(--c-muted);
}

.booking__note {
  margin-top: var(--stack);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.booking__note a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Blog — layout follows the Netcoder blog: a dark title band above a listing
   on a light ground, then articles on white with a capped banner.
   -------------------------------------------------------------------------- */

/* Title band, full bleed, sitting under the fixed header. */
.blog-head {
  padding: calc(var(--header-h) + clamp(2.5rem, 4vw, 3.75rem))
    var(--gutter) clamp(2.25rem, 3.5vw, 3.125rem);
  /* One tone lighter than the header bar. The bar is translucent and sits over
     this panel, so an identical colour made the two read as a single block. */
  background: var(--c-brand-light);
  color: var(--c-inverse);
  text-align: center;
  --c-heading: var(--c-inverse);
}

.blog-head__inner {
  max-width: 44rem;
  margin-inline: auto;
}

.blog-head__kicker {
  display: inline-block;
  margin-bottom: 0.875rem;
  /* The standard cyan drops to 3.97:1 on this lighter ground; this one clears AA. */
  color: var(--c-accent-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-head__title {
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.blog-head__lead {
  color: rgba(255, 255, 255, 0.82);
}

/* Listing sits on the tinted ground so the white cards read as cards. */
.blog-list {
  padding-block: clamp(2.5rem, 4vw, 3.75rem) clamp(3rem, 5vw, 4.375rem);
  background: var(--c-surface-alt);
}

/* --------------------------------------------------------------------------
   Article — a single post
   -------------------------------------------------------------------------- */
.article {
  padding-bottom: clamp(3rem, 5vw, 4.375rem);
  background: var(--c-surface);
}

.article__banner {
  margin-top: var(--header-h);
  max-height: 28.75rem;
  overflow: hidden;
}

.article__banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article__wrap {
  max-width: 47.5rem;
  margin-inline: auto;
}

.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.875rem;
  padding: 1.625rem 0 0.6rem;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.875rem;
}

.article__tag {
  color: var(--c-accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.125em;
  text-transform: uppercase;
}

.article__sep {
  color: var(--c-line);
}

.article__title {
  text-wrap: balance;
}

/* Prose — the running body of an article ---------------------------------- */
.prose {
  margin-top: 1.875rem;
  color: var(--c-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose .lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.prose h2 {
  margin-top: 2.375rem;
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.5625rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-heading);
  text-wrap: balance;
}

/* The short accent rule under each section heading is the Netcoder blog's
   signature detail; here it is the brand cyan. */
.prose h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.625rem;
  background: var(--c-accent);
}

.prose h3 {
  margin-top: 2rem;
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--c-heading);
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose strong {
  color: var(--c-heading);
}

.prose blockquote {
  margin-block: 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--c-accent);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--c-heading);
}

.prose a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover,
.prose a:focus {
  color: var(--c-brand);
}

.prose figure {
  margin-block: 2rem;
}

.prose figure img {
  width: 100%;
  border-radius: 8px;
}

.prose figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-micro);
  color: var(--c-muted);
}

/* Author signature ---------------------------------------------------------*/
.article__signature {
  margin-top: 2.5rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.9375rem;
}

.article__signature strong {
  color: var(--c-heading);
}

/* Related posts ------------------------------------------------------------*/
.article__related {
  margin-top: 2.75rem;
  padding: 1.5rem 1.625rem;
  border-left: 4px solid var(--c-accent);
  border-radius: 8px;
  background: var(--c-surface-alt);
}

.article__related h2 {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--c-heading);
}

.article__related li + li {
  margin-top: 0.65rem;
}

.article__related a {
  color: var(--c-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__related a:hover {
  color: var(--c-accent-text);
}

/* Back to the index --------------------------------------------------------*/
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.875rem;
  color: var(--c-accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Document pages — privacy policy, terms, etc.
   -------------------------------------------------------------------------- */
.doc {
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem))
    clamp(3rem, 8vw, 7rem);
}

.doc__title {
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
}

.doc__body {
  max-width: 46rem;
}

.doc__body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-h4);
  font-weight: 400;
}

.doc__body h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.doc__body p {
  font-size: 1rem;
}

.doc__body p + p {
  margin-top: 1rem;
}

.doc__body ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 1rem;
}

.doc__body li + li {
  margin-top: 0.5rem;
}

.doc__body a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Banner marking content carried over unedited from the Wix template. */
.doc__notice {
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-accent);
  background: rgba(15, 140, 201, 0.07);
  font-size: var(--fs-micro);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound {
  display: grid;
  place-content: center;
  gap: 1.5rem;
  min-height: 70svh;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
  text-align: center;
  justify-items: center;
}
