/* Final presentation layer. This file must load after every page stylesheet. */

/* Marketing headings: centred. text-align is inert on flex
   containers, so display:block is forced. */
.wrap:not(.legal) h1,
.wrap:not(.legal) h2,
.wrap:not(.legal) h3 {
  display: block !important;
  text-align: center !important;
}

/* Functional exceptions */
.wrap:not(.legal) form h1,
.wrap:not(.legal) form h2,
.wrap:not(.legal) form h3,
.wrap:not(.legal) fieldset legend { text-align: left !important; }

.wrap.legal h2,
.wrap.legal h3 { display: block !important; text-align: left !important; }
.wrap.legal h1 { text-align: center !important; }

/* Supporting marketing presentation */
.wrap:not(.legal) .eyebrow,
.wrap:not(.legal) :is(.svc-card, .tri-card, .card, .job-card,
  .cred-points > div, .faq-item, .highlight-card, .trial-step) p,
.wrap:not(.legal) .trial-step .n,
.wrap:not(.legal) :is(.page-cta, .cta-block, .cta-row, .btn-row),
.foot-columns { text-align: center !important; }

/* Service-directory links are visible navigation, not hidden SEO text. */
.service-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.service-link:hover { text-decoration: underline; }
.service-directory .svc-card { display: flex; flex-direction: column; }
.service-directory .service-link { margin-top: auto; padding-top: 18px; }

/* Linked service cards behave as one clear, professional target. The existing
   text link remains the semantic link for keyboard and assistive technology. */
.service-directory .svc-card {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
.service-directory .service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.service-directory .svc-card:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-color: rgba(255, 159, 28, 0.52);
}
.service-directory .service-link:focus-visible {
  outline: none;
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  .service-directory .svc-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(255, 159, 28, 0.38);
    background-color: rgba(31, 42, 53, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  }
  .service-directory .svc-card:hover .service-link {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-directory .svc-card {
    transition: border-color 120ms ease, background-color 120ms ease;
  }
  .service-directory .svc-card:hover { transform: none; }
}

/* The three homepage sector cards are also one complete link target. */
.job-card.service-card-link {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
.job-card.service-card-link .service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.job-card.service-card-link:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-color: rgba(255, 159, 28, 0.52);
}
.job-card.service-card-link .service-link:focus-visible {
  outline: none;
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  .job-card.service-card-link:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(255, 159, 28, 0.38);
    background-color: rgba(31, 42, 53, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  }
  .job-card.service-card-link:hover .service-link {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-card.service-card-link {
    transition: border-color 120ms ease, background-color 120ms ease;
  }
  .job-card.service-card-link:hover { transform: none; }
}

/* Allows three-column legacy footers and four-column service footers to share
   the same component without squeezing links on smaller screens. */
.foot-columns { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; }

/* Functional text remains left aligned. */
form :is(label, input, select, textarea, .yn-row, .check-row),
.wrap.legal :is(p, li) { text-align: left !important; }

/* Accessible menu controls: a comfortable pointer and touch target while the
   visible hamburger and close text retain their existing size. */
.nav-toggle-btn {
  width: 44px !important;
  height: 44px !important;
  align-items: center;
}
button.nav-close {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Compact artwork treatment for text-led tiles. These rules intentionally
   live in the final stylesheet so page-level grid rules cannot enlarge them. */
.trial-step:has(> .tile-illustration) {
  display: grid !important;
  grid-template-columns: 88px 40px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 16px !important;
  padding: 20px 0 !important;
}
.trial-step > .tile-illustration {
  grid-column: 1;
  width: 88px !important;
  height: 88px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 8px;
}
.trial-step > .n { grid-column: 2; padding: 0 !important; }
.trial-step > div { grid-column: 3; min-width: 0; }

.highlight-card:has(> .tile-illustration) {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 26px !important;
  row-gap: 8px !important;
  min-height: 0 !important;
}
.highlight-card > .tile-illustration {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 112px !important;
  height: 112px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 8px;
}
.highlight-card > h3 { grid-column: 2; grid-row: 1; margin-bottom: 0 !important; }
.highlight-card > p { grid-column: 2; grid-row: 2; }


@media (max-width: 640px) {
  .trial-step:has(> .tile-illustration) {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px 14px !important;
  }
  .trial-step > .tile-illustration {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 72px !important;
    height: 72px !important;
  }
  .trial-step > .n { grid-column: 2; grid-row: 1; }
  .trial-step > div { grid-column: 2; grid-row: 2; }

  .highlight-card:has(> .tile-illustration) {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    row-gap: 14px !important;
  }
  .highlight-card > .tile-illustration {
    grid-column: 1;
    grid-row: 1;
    width: 96px !important;
    height: 96px !important;
    margin: 0 auto !important;
  }
  .highlight-card > h3 { grid-column: 1; grid-row: 2; }
  .highlight-card > p { grid-column: 1; grid-row: 3; }
}

/* ============================================================
   THE ACCOUNT DESK
   A restrained, editorial B2B layout. The offer is account
   ownership, so supporting capabilities are presented as a
   service framework rather than a grid of task cards.
   ============================================================ */
.account-page section {
  padding: 92px 0;
  border-bottom: 1px solid var(--panel-border);
}
.account-page .wrap h1,
.account-page .wrap h2,
.account-page .wrap h3,
.account-page .wrap .eyebrow {
  text-align: left !important;
}
.account-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 30%, rgba(88, 199, 123, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(26, 34, 43, 0.3), transparent 70%);
}
.account-hero .wrap {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: center;
}
.account-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.account-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.02;
}
.account-brand-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 0 0 24px;
  color: var(--amber);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.account-brand-icon {
  position: relative;
  width: 47px;
  height: 37px;
  flex: 0 0 47px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.account-brand-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.account-brand-icon::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 14px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.account-brand-icon i,
.account-brand-icon i::before,
.account-brand-icon i::after {
  position: absolute;
  right: 7px;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}
.account-brand-icon i { top: 10px; }
.account-brand-icon i::before,
.account-brand-icon i::after { content: ""; right: 0; }
.account-brand-icon i::before { top: 7px; }
.account-brand-icon i::after { top: 14px; width: 9px; }
.account-hero-copy .account-lead {
  max-width: 54ch;
  margin: 26px 0 30px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}
.account-hero-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 24px;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(88, 199, 123, 0.2);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.04), rgba(88, 199, 123, 0.02));
  opacity: 0.76;
  transform: translateY(-50%) rotate(45deg);
}
.account-hero-art::before,
.account-hero-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(245, 166, 35, 0.2);
}
.account-hero-art::before { inset: 15%; }
.account-hero-art::after {
  inset: 34%;
  border-color: rgba(88, 199, 123, 0.42);
  background: rgba(88, 199, 123, 0.035);
}

.account-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 88px;
  align-items: start;
}
.account-section-intro { position: sticky; top: 116px; }
.account-section-intro h2,
.account-value-head h2,
.account-related-wrap h2,
.account-cta h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.08;
}
.account-section-intro p,
.account-value-head p {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.72;
}
.account-feature-list {
  border-top: 1px solid var(--panel-border);
}
.account-feature-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 26px 0 27px 24px;
  border-bottom: 1px solid var(--panel-border);
}
.account-feature-list article::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(88, 199, 123, 0.1);
}
.account-feature-list h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.account-feature-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.68;
}

.account-value { background: rgba(26, 34, 43, 0.42); }
.account-value-head { max-width: 720px; }
.account-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.account-outcomes > div {
  padding: 30px 34px;
}
.account-outcomes > div:first-child { padding-left: 0; }
.account-outcomes > div + div { border-left: 1px solid var(--panel-border); }
.account-outcomes h3 {
  margin-bottom: 11px;
  font-size: 22px;
  font-weight: 600;
}
.account-outcomes p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.account-related-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 88px;
  align-items: start;
}
.account-related {
  border-top: 1px solid var(--panel-border);
}
.account-related a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  min-height: 76px;
  padding: 24px 48px 24px 0;
  border-bottom: 1px solid var(--panel-border);
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease;
}
.account-related a::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--amber);
  font-size: 22px;
  transform: translateY(-50%);
}
.account-related a:hover { padding-left: 8px; color: var(--amber); }
.account-related span {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 19px;
  font-weight: 600;
}
.account-related small {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.account-cta { text-align: center; }
.account-cta .wrap { max-width: 760px; }
.account-cta :is(h2, .eyebrow) { text-align: center !important; }
.account-cta p {
  max-width: 600px;
  margin: 18px auto 28px;
  color: var(--text-muted);
  font-size: 17px;
}

@media (max-width: 960px) {
  .account-page section { padding: 72px 0; }
  .account-service-grid,
  .account-related-wrap {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .account-hero-copy { max-width: 720px; }
  .account-hero-copy h1 { max-width: 16ch; }
  .account-hero-art { right: -160px; width: 430px; opacity: 0.38; }
  .account-section-intro { position: static; max-width: 720px; }
}

@media (max-width: 640px) {
  .account-page section { padding: 60px 0; }
  .account-service-grid,
  .account-related-wrap { gap: 38px; }
  .account-hero .wrap { min-height: 0; }
  .account-hero-copy h1 { font-size: 34px; }
  .account-brand-heading {
    gap: 11px;
    margin-bottom: 19px;
    font-size: 34px;
  }
  .account-brand-icon { width: 42px; height: 34px; flex-basis: 42px; }
  .account-hero-copy .account-lead { font-size: 17px; }
  .account-hero-art { right: -250px; width: 420px; opacity: 0.24; }
  .account-feature-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0 23px 22px;
  }
  .account-feature-list article::before { top: 30px; }
  .account-outcomes {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .account-outcomes > div,
  .account-outcomes > div:first-child { padding: 24px 0; }
  .account-outcomes > div + div {
    border-top: 1px solid var(--panel-border);
    border-left: 0;
  }
  .account-related a {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 20px 40px 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-related a { transition: none; }
  .account-related a:hover { padding-left: 0; }
}

/* ============================================================
   PAY PER CALL & TASK
   Premium, editorial presentation aligned with The Account Desk.
   Pricing and internal capacity stay deliberately off-page.
   ============================================================ */
.page-usage .usage-hero {
  background:
    radial-gradient(circle at 83% 34%, rgba(245, 166, 35, 0.075), transparent 30%),
    radial-gradient(circle at 71% 69%, rgba(88, 199, 123, 0.055), transparent 28%),
    linear-gradient(180deg, rgba(26, 34, 43, 0.3), transparent 72%);
}
.page-usage .account-hero-copy h1 { max-width: 14ch; }
.usage-brand-heading { font-size: clamp(31px, 3.6vw, 45px); }
.usage-brand-icon {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.usage-brand-icon::before,
.usage-brand-icon::after,
.usage-brand-icon i {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
}
.usage-brand-icon::before {
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(88, 199, 123, 0.1);
}
.usage-brand-icon::after {
  bottom: 8px;
  width: 22px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}
.usage-brand-icon i {
  top: 20px;
  width: 2px;
  height: 7px;
  background: currentColor;
}
.usage-hero-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 7%;
  width: min(31vw, 390px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.usage-ring,
.usage-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.usage-ring { border: 1px solid rgba(245, 166, 35, 0.22); }
.usage-ring-one { width: 100%; height: 100%; }
.usage-ring-two { width: 68%; height: 68%; border-color: rgba(88, 199, 123, 0.26); }
.usage-core {
  display: flex;
  width: 37%;
  height: 37%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(245, 166, 35, 0.42);
  background: rgba(10, 22, 36, 0.72);
  box-shadow: 0 0 70px rgba(245, 166, 35, 0.08);
}
.usage-core i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.usage-core i:nth-child(2) { background: var(--green); }

.usage-options { border-top: 1px solid var(--panel-border); }
.usage-options article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--panel-border);
}
.usage-index {
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.usage-options h3 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 600;
}
.usage-options p {
  max-width: 600px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.68;
}
.usage-outcomes > div { position: relative; }
.usage-outcomes > div::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--amber), var(--green));
}

.usage-how-grid,
.usage-assurance-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 88px;
  align-items: start;
}
.usage-how h2,
.usage-assurance h2 {
  max-width: 13ch;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.08;
}
.usage-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--panel-border);
  list-style: none;
}
.usage-steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 28px;
  padding: 25px 0 26px;
  border-bottom: 1px solid var(--panel-border);
}
.usage-steps > li > span {
  color: var(--green);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.usage-steps h3 { margin-bottom: 7px; font-size: 20px; font-weight: 600; }
.usage-steps p,
.usage-assurance-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.68;
}
.usage-assurance {
  background:
    radial-gradient(circle at 76% 50%, rgba(88, 199, 123, 0.05), transparent 24rem),
    rgba(26, 34, 43, 0.38);
}
.usage-assurance-grid > div:last-child {
  padding-top: 6px;
  border-top: 1px solid rgba(245, 166, 35, 0.34);
}
.usage-assurance-grid p { padding-top: 24px; font-size: 17px; }
.usage-text-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(245, 166, 35, 0.48);
  color: var(--amber);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.usage-text-link:hover { border-bottom-color: var(--amber); color: #ffc45c; }

@media (max-width: 960px) {
  .usage-hero-art { right: -120px; width: 390px; opacity: 0.42; }
  .usage-how-grid,
  .usage-assurance-grid { grid-template-columns: 1fr; gap: 44px; }
  .usage-how h2,
  .usage-assurance h2 { max-width: 17ch; }
}

@media (max-width: 640px) {
  .usage-brand-heading { align-items: flex-start; font-size: 30px; line-height: 1.05; }
  .usage-brand-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .usage-brand-icon::before { top: 6px; width: 8px; height: 8px; }
  .usage-brand-icon::after { bottom: 6px; width: 18px; height: 7px; }
  .usage-brand-icon i { top: 17px; height: 5px; }
  .usage-hero-art { right: -250px; width: 400px; opacity: 0.22; }
  .usage-options article,
  .usage-steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .usage-options h3 { font-size: 22px; }
}
