/*
  NAC website theme stylesheet.
  Every colour, font and shape comes from the NAC brand guidelines, version 2.0.
  No webfont and no theme JavaScript: only the platform's lead-form island runs script.
*/

:root {
  /* Brand colours (guideline section 2) */
  --nac-sky: #2AA3D5;
  --nac-blue: #4280C9;
  --nac-sky-light: #8CCBEA;
  --nac-blue-deep: #1F5FA8;
  --nac-blue-deeper: #174B87;
  --nac-navy: #0F2440;
  --nac-navy-2: #18335A;
  --nac-white: #FFFFFF;
  --nac-tint: #F4F8FC;
  --nac-tint-2: #E8F1FA;
  --nac-muted: #52607A;
  --nac-muted-navy: #C5D3E6;
  --nac-line: #D5E0EC;
  --nac-field: #7388A3;
  --nac-ok: #1F6F43;
  --nac-ok-navy: #7FD1A8;
  --nac-error: #B42318;
  --nac-error-navy: #F4A28C;
  --nac-gradient: linear-gradient(180deg, #2AA3D5 0%, #4280C9 100%);

  /* Island variables read by the lead form (guideline "Theme tokens") */
  --nac-accent: #1F5FA8;
  --nac-radius: 10px;
  --nac-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Type (guideline section 3) */
  --nac-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --nac-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-h1: clamp(2.125rem, 1.404rem + 3.077vw, 3.25rem);       /* 34px to 52px */
  --fs-h2: clamp(1.75rem, 1.43rem + 1.368vw, 2.25rem);         /* 28px to 36px */
  --fs-h3: clamp(1.25rem, 1.17rem + 0.342vw, 1.375rem);        /* 20px to 22px */
  --fs-body: clamp(1rem, 0.92rem + 0.342vw, 1.125rem);         /* 16px to 18px */
  --fs-small: clamp(0.875rem, 0.835rem + 0.171vw, 0.9375rem);  /* 14px to 15px */
  --fs-label: 1rem;                                            /* 16px */
  --fs-mono: clamp(0.8125rem, 0.7725rem + 0.171vw, 0.875rem);  /* 13px to 14px */

  /* Space, on a 4px grid */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2rem);
  --container: 72rem;

  /* Shape and depth: one radius family, hairlines and tints; one soft shadow for the hero scene only */
  --radius: var(--nac-radius);
  --radius-sm: 6px;
  --stroke: 1.5px;
  --shadow-float: 0 1px 2px rgb(15 36 64 / 0.06), 0 10px 28px rgb(15 36 64 / 0.1);

  /* Motion: transform and opacity only, under 300ms */
  --dur: 160ms;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--nac-white);
  color: var(--nac-navy);
  font-family: var(--nac-font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--nac-blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--nac-blue-deeper);
}

:focus-visible {
  outline: 3px solid var(--nac-blue-deep);
  outline-offset: 3px;
}

.on-navy :focus-visible {
  outline-color: var(--nac-sky);
}

code,
.mono {
  font-family: var(--nac-font-mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--back {
  transform: rotate(180deg);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 30;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  background: var(--nac-navy);
  color: var(--nac-white);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--nac-white);
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(46rem + 2 * var(--gutter));
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--nac-tint);
}

.section--tint-2 {
  background: var(--nac-tint-2);
}

.section--navy {
  background: var(--nac-navy);
  color: var(--nac-white);
}

.section__head {
  max-width: 44rem;
  margin-bottom: var(--sp-7);
}

.section__head > * + * {
  margin-top: var(--sp-4);
}

.lede {
  color: var(--nac-muted);
  max-width: 62ch;
}

.section--navy .lede {
  color: var(--nac-muted-navy);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.muted {
  color: var(--nac-muted);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: var(--stroke) solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--nac-blue-deep);
  color: var(--nac-white);
}

.btn--primary:hover {
  background: var(--nac-blue-deeper);
  color: var(--nac-white);
}

.btn--outline {
  border-color: var(--nac-blue-deep);
  background: var(--nac-white);
  color: var(--nac-blue-deep);
}

.btn--outline:hover {
  border-color: var(--nac-blue-deeper);
  color: var(--nac-blue-deeper);
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 3rem;
  font-weight: 600;
}

.link-arrow .icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.on-navy a {
  color: var(--nac-sky-light);
}

.on-navy a:hover {
  color: var(--nac-white);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--nac-white);
  border-bottom: 1px solid var(--nac-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 4.5rem;
}

.site-logo {
  display: block;
  flex: none;
  padding-block: var(--sp-2);
  text-decoration: none;
}

.site-logo img {
  width: 6rem;
  height: auto;
}

.site-nav,
.site-header__cta {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.site-nav a,
.site-menu__panel a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--nac-navy);
  font-size: var(--fs-label);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-menu__panel a:not(.btn):hover {
  color: var(--nac-blue-deep);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--nac-blue-deep);
}

.site-menu summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  padding-inline: var(--sp-3);
  border: var(--stroke) solid var(--nac-field);
  border-radius: var(--radius);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--sp-3) var(--gutter) var(--sp-5);
  background: var(--nac-white);
  border-bottom: 1px solid var(--nac-line);
}

.site-menu__panel li + li {
  border-top: 1px solid var(--nac-line);
}

.site-menu__panel a:not(.btn) {
  min-height: 3rem;
  padding-inline: 0;
}

.site-menu__panel .btn {
  margin-top: var(--sp-4);
}

@media (min-width: 62rem) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .site-logo img {
    width: 6.75rem;
  }

  .site-nav,
  .site-header__cta {
    display: flex;
  }

  .site-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) var(--section-y);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

.hero__copy > * + * {
  margin-top: var(--sp-5);
}

.hero__sub {
  max-width: 34rem;
  color: var(--nac-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-6);
}

.hero__note {
  max-width: 34rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--nac-line);
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.hero__visual figcaption {
  margin-top: var(--sp-4);
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-align: center;
}

/* The scene: what you say, the page being drawn, the console card */

.scene {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--sp-5) var(--sp-4);
}

.scene__arch {
  position: absolute;
  inset: 0 12% 0 12%;
  border-radius: 12rem 12rem var(--radius) var(--radius);
  background: var(--nac-gradient);
}

.scene__card {
  position: relative;
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--nac-white);
  box-shadow: var(--shadow-float);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.scene__who {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--nac-muted);
  font-weight: 600;
}

.scene__sketch {
  padding: var(--sp-3);
  color: var(--nac-navy);
}

.sketch {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sketch .accent {
  stroke: var(--nac-blue);
}

.sketch .accent-fill {
  fill: var(--nac-blue);
  stroke: var(--nac-blue);
}

.sketch .paper {
  fill: var(--nac-white);
}

.sketch .paper-tint {
  fill: var(--nac-tint);
}

.sketch .dotted {
  stroke-dasharray: 1 9;
}

.console__title {
  font-weight: 600;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  margin-top: var(--sp-2);
  color: var(--nac-muted);
}

.stepper li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.stepper .is-current {
  color: var(--nac-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

.console__check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  color: var(--nac-ok);
  font-weight: 600;
}

.console__check .icon,
.ui .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.console__meta {
  margin-top: var(--sp-1);
  color: var(--nac-muted);
}

@media (min-width: 40rem) {
  .scene {
    display: block;
    aspect-ratio: 10 / 9.4;
    padding: 0;
  }

  .scene__arch {
    inset: 0 4% 0 24%;
    border-radius: 14rem 14rem var(--radius) var(--radius);
  }

  .scene__card {
    position: absolute;
  }

  .scene__bubble {
    top: 9%;
    left: 0;
    width: 60%;
  }

  .scene__sketch {
    top: 33%;
    right: 0;
    width: 60%;
  }

  .scene__console {
    bottom: 6%;
    left: 5%;
    width: 62%;
  }
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--sp-8);
  }
}

/* ---------- How it works ---------- */

.steps {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.375rem;
  bottom: 1.375rem;
  left: calc(1.375rem - 0.75px);
  border-left: var(--stroke) solid var(--nac-navy);
}

.step {
  position: relative;
  padding-left: 4rem;
}

.step > * + * {
  margin-top: var(--sp-2);
}

.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--stroke) solid var(--nac-navy);
  border-radius: 50%;
  background: var(--nac-tint);
  font-weight: 600;
  line-height: 1;
}

.step__who {
  color: var(--nac-muted);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.55;
}

.step p:not(.step__who) {
  color: var(--nac-muted);
}

.steps__pencil {
  display: none;
}

.connect-note {
  display: flex;
  gap: var(--sp-3);
  max-width: 46rem;
  margin-bottom: var(--sp-7);
  color: var(--nac-navy);
}

.connect-note .icon {
  margin-top: 0.2em;
  color: var(--nac-muted);
}

.after-grid {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
  margin-top: var(--sp-7);
}

.panel {
  padding: var(--sp-5);
  border: 1px solid var(--nac-line);
  border-radius: var(--radius);
  background: var(--nac-white);
}

.panel > * + * {
  margin-top: var(--sp-3);
}

.panel__title {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.panel__title .icon {
  margin-top: 0.15em;
  color: var(--nac-blue);
}

.panel p {
  color: var(--nac-muted);
}

.checklist {
  display: grid;
  gap: var(--sp-3);
}

.checklist li {
  display: flex;
  gap: var(--sp-3);
  color: var(--nac-navy);
}

.checklist .icon {
  margin-top: 0.2em;
  color: var(--nac-muted);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-7);
    padding-right: 3.5rem;
  }

  .steps::before {
    top: calc(1.375rem - 0.75px);
    bottom: auto;
    left: 1.375rem;
    right: 2.25rem;
    border-left: 0;
    border-top: var(--stroke) solid var(--nac-navy);
  }

  .step {
    padding-left: 0;
    padding-top: 4rem;
  }

  .steps__pencil {
    position: absolute;
    display: block;
    top: -1.125rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--nac-navy);
  }

  .after-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---------- Agent session (navy) ---------- */

.demo {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

.demo__copy > * + * {
  margin-top: var(--sp-4);
}

.notes {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.notes li {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--nac-navy-2);
}

.notes h3 {
  font-size: var(--fs-body);
  line-height: 1.4;
}

.notes p {
  margin-top: var(--sp-1);
  color: var(--nac-muted-navy);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.transcript {
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--nac-navy-2);
  font-family: var(--nac-font-mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
}

.transcript__label {
  margin-bottom: var(--sp-4);
  color: var(--nac-muted-navy);
  font-family: var(--nac-font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.55;
}

.transcript ol {
  display: grid;
  gap: var(--sp-3);
}

.t {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: var(--sp-2);
  overflow-wrap: anywhere;
}

.t__who {
  color: var(--nac-sky-light);
}

.t--person .t__who,
.t--person .t__text {
  color: var(--nac-white);
  font-weight: 600;
}

.t code {
  color: var(--nac-muted-navy);
  font-size: inherit;
}

.t--error .t__text {
  color: var(--nac-error-navy);
}

.t--ok .t__text {
  color: var(--nac-ok-navy);
}

.t__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: var(--sp-2);
  color: var(--nac-ok-navy);
  font-family: var(--nac-font-sans);
  font-weight: 600;
  white-space: nowrap;
}

.t__tag .icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 62rem) {
  .demo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-8);
  }
}

/* ---------- Proof: why it is safe to let an AI build ---------- */

.proof-grid {
  display: grid;
  gap: var(--sp-5);
}

.proof {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nac-line);
  border-radius: var(--radius);
  background: var(--nac-white);
}

/* The stage takes the spare height of the row, so the text of neighbouring cards starts on one line */

.proof__stage {
  display: grid;
  flex: 1;
  place-items: center;
  padding: var(--sp-5);
  background: var(--nac-tint);
}

.proof__stage .ui {
  width: 100%;
  max-width: 27rem;
}

.proof__body {
  padding: var(--sp-5);
}

.proof__body > * + * {
  margin-top: var(--sp-2);
}

.proof__worry {
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.proof__worry::before {
  content: "\201C";
}

.proof__worry::after {
  content: "\201D";
}

.proof__body p:not(.proof__worry) {
  color: var(--nac-muted);
}

@media (min-width: 56rem) {
  .proof-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .proof__stage,
  .proof__body {
    padding: var(--sp-6);
  }

  .proof__stage {
    min-height: 17rem;
  }

  .proof--7 {
    grid-column: span 7;
  }

  .proof--5 {
    grid-column: span 5;
  }
}

/* Small console drawings used as product proof. They are illustrations, and the page says so. */

.ui {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--nac-line);
  border-radius: var(--radius);
  background: var(--nac-white);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.ui-row {
  display: flex;
  gap: var(--sp-3);
}

.ui-row + .ui-row {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--nac-line);
}

.ui-row .icon {
  margin-top: 0.15em;
}

.ui-strong {
  font-weight: 600;
}

.ui-sub {
  color: var(--nac-muted);
}

.ui-row--error .icon,
.ui-row--error .ui-strong {
  color: var(--nac-error);
}

.ui-row--ok .icon,
.ui-row--ok .ui-strong {
  color: var(--nac-ok);
}

.ui-mono {
  font-family: var(--nac-font-mono);
  font-size: var(--fs-mono);
  overflow-wrap: anywhere;
}

.ui-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  row-gap: 0;
}

/* Both frames share the same three rows, so the drawings line up when a label wraps */

.mini {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

.mini__label {
  align-self: end;
  font-weight: 600;
}

.mini .sketch {
  margin-block: var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid var(--nac-line);
  border-radius: var(--radius-sm);
}

.mini__state {
  color: var(--nac-muted);
}

.ui-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
}

.ui-version + .ui-version {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--nac-line);
}

.ui-chip {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--nac-field);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.ui-chip--status {
  border-color: transparent;
  background: var(--nac-tint-2);
}

.ui-field {
  display: grid;
  gap: var(--sp-1);
}

.ui-field__label {
  font-weight: 600;
}

.ui-input {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.5rem;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--nac-field);
  border-radius: var(--radius-sm);
}

.ui-bar {
  display: block;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: var(--nac-tint-2);
}

.ui-bar--name {
  width: 55%;
}

.ui-bar--scope {
  width: 6rem;
}

.ui-thumb {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  color: var(--nac-navy);
}

.ui-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.figure-note {
  margin-top: var(--sp-4);
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.more-list {
  display: grid;
  gap: var(--sp-5) var(--sp-7);
  margin-top: var(--sp-7);
}

.more-list > div {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--nac-line);
}

.more-list dt {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

.more-list dd {
  margin-top: var(--sp-2);
  color: var(--nac-muted);
}

@media (min-width: 48rem) {
  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Trust ---------- */

.trust {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

.trust__intro > * + * {
  margin-top: var(--sp-4);
}

.trust__figure {
  margin-top: var(--sp-6);
  max-width: 24rem;
}

.trust__figure dl {
  display: grid;
  gap: var(--sp-2);
}

.trust__figure dt {
  color: var(--nac-muted);
}

.trust__figure dd {
  font-weight: 600;
}

.ui-kv {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
}

.ui-kv + .ui-kv {
  padding-top: var(--sp-2);
  border-top: 1px solid var(--nac-line);
}

/* A drawn button is never deep blue: that colour is kept for the page's real call to action */

.ui-button {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--nac-field);
  border-radius: var(--radius-sm);
  background: var(--nac-white);
  color: var(--nac-navy);
  font-weight: 600;
  justify-self: start;
}

.points {
  display: grid;
}

.point {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--nac-line);
}

.point:last-child {
  border-bottom: 1px solid var(--nac-line);
}

.point .icon {
  margin-top: 0.25em;
  color: var(--nac-navy);
}

.point dd {
  margin-top: var(--sp-2);
  color: var(--nac-muted);
}

.point dt {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 62rem) {
  .trust {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-8);
  }

  .trust__intro {
    position: sticky;
    top: 7rem;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}

.faq__head > * + * {
  margin-top: var(--sp-4);
}

.faq__item {
  border-top: 1px solid var(--nac-line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--nac-line);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover h3 {
  color: var(--nac-blue-deep);
}

.faq__marker {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.2em;
}

.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  top: calc(50% - 0.75px);
  border-top: var(--stroke) solid var(--nac-navy);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease);
}

.faq__marker::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__marker::after {
  transform: rotate(0deg);
}

.faq__answer {
  max-width: 62ch;
  padding-bottom: var(--sp-5);
  color: var(--nac-muted);
}

@media (min-width: 62rem) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--sp-8);
  }

  .faq__head {
    position: sticky;
    top: 7rem;
  }
}

/* ---------- Article cards ---------- */

.cards {
  display: grid;
  gap: var(--sp-5);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-5);
  border: 1px solid var(--nac-line);
  border-radius: var(--radius);
  background: var(--nac-white);
  transition: transform var(--dur) var(--ease);
}

.card:has(a):hover {
  transform: translateY(-2px);
}

.card__title {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: 0;
}

.card__title a {
  color: var(--nac-navy);
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card:has(a):hover .card__title a {
  color: var(--nac-blue-deep);
  text-decoration: underline;
}

.card__summary {
  color: var(--nac-muted);
}

.card__meta {
  margin-top: auto;
  padding-top: var(--sp-2);
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.cards__more {
  margin-top: var(--sp-6);
}

.empty {
  padding: var(--sp-6);
  border: 1px solid var(--nac-line);
  border-radius: var(--radius);
  background: var(--nac-white);
  color: var(--nac-muted);
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Collection page: the newest entry leads, full width */

@media (min-width: 40rem) {
  .cards--lead > li:first-child {
    grid-column: 1 / -1;
  }

  .cards--lead > li:first-child .card {
    padding: var(--sp-6);
  }

  .cards--lead > li:first-child .card__title {
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .cards--lead > li:first-child .card__summary {
    max-width: 62ch;
  }
}

/* ---------- Lead form ---------- */

.lead {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}

.lead__copy > * + * {
  margin-top: var(--sp-4);
}

.form {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--nac-white);
}

.form__helper {
  margin-top: var(--sp-2);
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

@media (min-width: 40rem) {
  .form {
    padding: var(--sp-6);
  }
}

@media (min-width: 62rem) {
  .lead {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-8);
  }
}

/* ---------- Call-to-action band ---------- */

.cta-band {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}

.cta-band p {
  margin-top: var(--sp-3);
  color: var(--nac-muted);
}

@media (min-width: 48rem) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- Page head, article ---------- */

.page-head {
  padding-block: clamp(2.5rem, 1rem + 5vw, 4.5rem) var(--sp-7);
}

.page-head > .container > * + * {
  margin-top: var(--sp-4);
}

.breadcrumb {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.55;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.article-dek {
  color: var(--nac-muted);
}

.article-body {
  padding-bottom: var(--section-y);
}

.prose {
  max-width: 66ch;
}

.prose > * + * {
  margin-top: var(--sp-5);
}

.prose h2 {
  margin-top: var(--sp-7);
}

.prose h2 + * {
  margin-top: var(--sp-4);
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--sp-3);
  padding-left: 1.5rem;
}

.prose li::marker {
  color: var(--nac-muted);
  font-weight: 600;
}

.prose strong {
  font-weight: 600;
}

/* An agent transcript inside an article sits on navy, like the one on the home page */

.prose pre {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--nac-navy);
  color: var(--nac-white);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prose pre code {
  font-size: var(--fs-mono);
}

.prose pre + .caption {
  margin-top: var(--sp-3);
}

.prose .caption {
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.prose blockquote {
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--nac-tint);
}

.prose :not(pre) > code {
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap:focus-visible {
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.55;
  text-align: left;
}

th,
td {
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  border-bottom: 1px solid var(--nac-line);
  vertical-align: top;
}

thead th {
  border-bottom: var(--stroke) solid var(--nac-navy);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
}

/* On a narrow screen a table row becomes a stacked block: the first cell leads, the others carry their column name */

@media (max-width: 39.99rem) {
  .prose table {
    min-width: 0;
  }

  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .prose tbody tr {
    display: block;
    padding-block: var(--sp-4);
    border-bottom: 1px solid var(--nac-line);
  }

  .prose tbody tr:first-child {
    border-top: var(--stroke) solid var(--nac-navy);
  }

  .prose td {
    display: block;
    padding: 0;
    border: 0;
  }

  .prose td:first-child {
    font-weight: 600;
  }

  .prose td + td {
    margin-top: var(--sp-2);
  }

  .prose td + td::before {
    content: attr(data-label) ": ";
    color: var(--nac-muted);
    font-weight: 600;
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--section-y);
}

.not-found__copy > * + * {
  margin-top: var(--sp-4);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-6);
}

.not-found .sketch {
  max-width: 22rem;
  margin-inline: auto;
  color: var(--nac-navy);
}

@media (min-width: 48rem) {
  .not-found {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: var(--sp-8) var(--sp-6);
  background: var(--nac-navy);
  color: var(--nac-muted-navy);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-7);
}

.site-footer__brand img {
  width: 7.5rem;
  height: auto;
}

.site-footer__brand p {
  max-width: 30rem;
  margin-top: var(--sp-5);
  color: var(--nac-white);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}

.site-footer h2 {
  color: var(--nac-white);
  font-size: var(--fs-small);
  line-height: 1.55;
  letter-spacing: 0;
}

.site-footer ul {
  margin-top: var(--sp-2);
}

.site-footer li {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer__legal {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--nac-navy-2);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-8);
  }

  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .btn:active,
  .card:has(a):hover,
  .link-arrow:hover .icon,
  .form .nac-lead-submit:hover,
  .form .nac-lead-submit:active {
    transform: none;
  }
}

/* ---------- Theme-only rules ---------- */

/* Shown in place of the logo until a logo image is chosen in the theme settings */
.site-logo__text {
  color: var(--nac-navy);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.site-footer .site-logo__text {
  color: var(--nac-white);
}

.article-date {
  color: var(--nac-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.prose img {
  height: auto;
  border-radius: var(--radius);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-6);
  font-weight: 600;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* ---------- Lead-form island ---------- */

/* The platform draws the form fields. These rules bring its controls to the brand's sizes, borders and states. */
.form .nac-lead-form,
.form .nac-lead-form form {
  gap: var(--sp-5);
}

.form .nac-lead-field {
  gap: var(--sp-2);
}

.form .nac-lead-field label {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
}

.form .nac-lead-input {
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border-color: var(--nac-field);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.form .nac-lead-input:focus-visible,
.form .nac-lead-consent input:focus-visible {
  outline: 3px solid var(--nac-blue-deep);
  outline-offset: 1px;
}

.form .nac-lead-input[aria-invalid="true"],
.form .nac-lead-consent input[aria-invalid="true"] {
  border-color: var(--nac-error);
  outline-color: var(--nac-error);
}

.form .nac-lead-problem {
  color: var(--nac-error);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.form .nac-lead-consent {
  column-gap: var(--sp-3);
}

.form .nac-lead-consent label {
  color: var(--nac-muted);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

.form .nac-lead-consent input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
}

.form .nac-lead-submit {
  align-self: stretch;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  font-size: var(--fs-label);
  font-weight: 600;
  transition: transform var(--dur) var(--ease);
}

.form .nac-lead-submit:hover {
  background: var(--nac-blue-deeper);
  filter: none;
  transform: translateY(-2px);
}

.form .nac-lead-submit:active {
  transform: translateY(1px);
}

.form .nac-lead-status,
.form .nac-lead-success {
  font-size: var(--fs-small);
  line-height: 1.55;
}
