/*
 * The institutional site's one stylesheet. The colours are the portal's tokens
 * (web-portal/src/app/globals.css), value for value, so the site and the product read as the
 * same thing; they are copied rather than imported because the site ships on its own and has no
 * build step. The site is light only, whatever the reader's system theme (8 Oct 2026).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --ink: #0b1628;
  --ink-soft: #2a3647;
  --muted: #586472;
  --paper: #ffffff;
  --paper-100: #f1f4f7;
  --paper-200: #e9eef3;
  --rule: #dbe2e9;
  --rule-strong: #c7d0db;
  --field: #7b8794;
  --brand: #0a2749;
  --brand-hover: #133a66;
  --brand-container: rgb(10 39 73 / 0.08);
  --on-brand: #ffffff;
  /* The hero's and page heads' glow: parchment (navy at 8% read as a grey smudge). */
  --glow: rgb(226 200 155 / 0.28);

  /* The wordmark's gold, a step deeper than the portal's #8a7244 so the eyebrows clear 4.5:1 on
     the grey sections too (4.97 on paper-100). */
  --accent: #7d6638;
  --green-ground: #dff0e6;

  /* The one full-bleed band, navy. */
  --band: #0a2749;
  --band-ink: #f1ead9;
  --band-muted: #c3cad6;
  --band-accent: #e2c89b;
  --band-rule: rgb(255 255 255 / 0.12);

  --shadow-lg: 0 1px 2px rgb(11 22 40 / 0.06), 0 12px 32px -8px rgb(11 22 40 / 0.18),
    0 32px 64px -24px rgb(11 22 40 / 0.22);
  --shadow-sm: 0 1px 2px rgb(11 22 40 / 0.05), 0 4px 12px -4px rgb(11 22 40 / 0.08);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --gutter: 20px;
  --width: 1200px;
  --prose: 70ch;
  --header: 64px;

  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-100);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

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

body {
  margin: 0;
  background: var(--paper-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.email {
  overflow-wrap: anywhere;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius);
  z-index: 50;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On the navy band and the closing card the brand navy would vanish. */
.band :focus-visible,
.cta-card :focus-visible {
  outline-color: var(--band-accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wordmark-first {
  color: var(--brand);
  font-weight: 700;
}

.wordmark-second {
  color: var(--accent);
  font-weight: 450;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:not(.button):hover {
  background: var(--paper-200);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-container);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

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

.menu summary:hover {
  background: var(--paper-200);
}

.menu .icon-close,
.menu[open] .icon-open {
  display: none;
}

.menu[open] .icon-close {
  display: block;
}

.menu-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.menu-sheet ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-sheet a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 14px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.menu-sheet a:not(.button):hover {
  background: var(--paper-200);
}

.menu-sheet .button {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 959px) {
  .site-nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
}

.button-sm {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 15px;
}

.button-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
  /* The portal's field border: 3:1 on both papers, so it reads as a button. */
  border-color: var(--field);
}

.button-secondary:hover {
  background: var(--paper-200);
  color: var(--ink);
}

@media (max-width: 559px) {
  .actions .button {
    flex: 1 1 100%;
  }

  .cta-card .button-ghost {
    font-size: 15px;
    white-space: nowrap;
  }
}

.button:active {
  transform: scale(0.98);
}

/* ---------- Shared section parts ---------- */

.eyebrow {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.section {
  padding-block: 88px;
}

@media (min-width: 960px) {
  .section {
    padding-block: 128px;
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}

.paper {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 72px;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--glow), transparent 70%),
    var(--paper-100);
}

.hero .container {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1040px) {
  .hero {
    padding-block: 88px 112px;
  }

  .hero .container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
  }
}

.hero h1.eyebrow {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

.slide-title {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero .lead {
  margin-top: 22px;
  margin-bottom: 0;
  max-width: 34em;
  font-size: clamp(18px, 1.8vw, 20px);
  color: var(--ink-soft);
}

/*
 * The hero's slides share one grid cell, so the copy below them never jumps: the tallest slide
 * sets the height. Without the script the others stay `hidden` and the first one, the page's H1,
 * is all there is.
 */
.slides {
  display: grid;
  margin-top: 14px;
}

.slide {
  grid-area: 1 / 1;
}

.has-script .slide[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
}

.has-script .slide {
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

.slide-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.slide-controls[hidden] {
  display: none;
}

.slide-pause {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--field);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.slide-pause .icon {
  width: 16px;
  height: 16px;
}

.slide-pause .icon-play,
.is-paused .slide-pause .icon-pause {
  display: none;
}

.is-paused .slide-pause .icon-play {
  display: block;
}

.slide-dots {
  display: flex;
  gap: 6px;
}

.slide-dot {
  display: grid;
  align-items: center;
  width: 36px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slide-dot span {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--rule-strong);
  overflow: hidden;
}

.slide-dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--brand);
}

.slide-dot[aria-current] span::after {
  width: 100%;
}

.is-running .slide-dot[aria-current] span::after {
  width: 0;
  animation: progress 6s linear forwards;
}

.slide-dot:hover span {
  background: var(--field);
}

@keyframes progress {
  to {
    width: 100%;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/*
 * The hero's illustration: the mark on two rings, with the product's areas as bare glyphs around
 * it. Brand only, never a screen of the product — the site shows no screenshots (competitors).
 */
.hero-art {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.ring-1 {
  background: radial-gradient(circle, var(--paper) 0%, transparent 70%);
}

.ring-2 {
  inset: 18%;
  border-style: dashed;
  border-color: var(--rule-strong);
}

.hero-mark {
  position: absolute;
  inset: 26%;
  display: grid;
  place-items: center;
}

.hero-mark img {
  width: 100%;
  filter: drop-shadow(0 24px 32px rgb(11 22 40 / 0.18));
}

.chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--brand);
  box-shadow: var(--shadow-lg);
  translate: -50% -50%;
}

.chip .icon {
  width: 26px;
  height: 26px;
}

button.chip {
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    scale 0.3s ease;
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  scale: 1.12;
}

.chip-1 { left: 50%; top: 0%; }
.chip-2 { left: 93%; top: 25%; }
.chip-3 { left: 93%; top: 75%; }
.chip-4 { left: 50%; top: 100%; }
.chip-5 { left: 7%; top: 75%; }
.chip-6 { left: 7%; top: 25%; }

.chip-2,
.chip-5 {
  color: var(--accent);
}

@media (max-width: 1039px) {
  .hero-art {
    width: min(78%, 340px);
    margin-top: 8px;
  }

  .chip {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .chip .icon {
    width: 22px;
    height: 22px;
  }
}

/* ---------- Comparison ---------- */

.compare {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.compare table {
  table-layout: fixed;
  font-size: 15.5px;
  line-height: 1.5;
}

.compare table td:first-child {
  white-space: normal;
}

.compare th,
.compare td {
  width: 50%;
  padding: 18px 22px;
  white-space: normal;
  font-weight: 400;
}

.compare th {
  background: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare td:first-child {
  color: var(--muted);
}

.compare th + th,
.compare td + td {
  border-left: 1px solid var(--rule);
  background: var(--brand-container);
}

.compare th + th {
  color: var(--brand);
}

.compare td + td {
  font-weight: 500;
}

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

/* ---------- Roles ---------- */

.roles {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .roles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1120px) {
  .roles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.role {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.role h3 {
  font-size: 19px;
  font-weight: 650;
  margin-top: 18px;
}

.role ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}

.role li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
}

.role li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 9px 0 0 4px;
  border-radius: 50%;
  background: var(--accent);
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--brand-container);
  color: var(--brand);
}

/* ---------- Split (text + comparison) ---------- */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
  }
}

.split .section-head {
  margin-bottom: 0;
}

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--green-ground)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tile h3 {
  font-size: 20px;
  font-weight: 650;
  margin-top: 16px;
}

.tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

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

.band {
  background: var(--band);
  color: var(--band-ink);
}

.band .eyebrow {
  color: var(--band-accent);
}

.band .section-head p:not(.eyebrow) {
  color: var(--band-muted);
}

.band a {
  color: var(--band-accent);
}

.band a:hover {
  color: #f5ead2;
}

.commitments {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--band-rule);
}

@media (min-width: 880px) {
  .commitments {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
}

.commitments li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding-block: 22px;
  border-bottom: 1px solid var(--band-rule);
}

.commitments .icon {
  color: var(--band-accent);
  margin-top: 2px;
}

.commitments strong {
  display: block;
  font-weight: 600;
  color: var(--band-ink);
}

.commitments span {
  display: block;
  margin-top: 4px;
  color: var(--band-muted);
  font-size: 15.5px;
}

.band-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  color: var(--band-muted);
  font-size: 15px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 16px;
}

.steps h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 650;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

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

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-200)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586472' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 44px 22px 0;
  color: var(--ink-soft);
}

.faq .answer > * + * {
  margin-top: 10px;
}

/* ---------- Closing CTA ---------- */

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(226 200 155 / 0.22), transparent 60%),
    var(--band);
  color: var(--band-ink);
  text-align: center;
}

.cta-card .eyebrow {
  color: var(--band-accent);
}

.cta-card h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-card > p:not(.eyebrow) {
  margin: 16px auto 0;
  max-width: 40em;
  color: var(--band-muted);
  font-size: 18px;
}

.cta-card .actions {
  justify-content: center;
}

.cta-card .button-primary {
  background: var(--band-accent);
  color: #0b1628;
}

.cta-card .button-primary:hover {
  background: #eedcb8;
}

.cta-card .button-ghost {
  color: var(--band-ink);
  border-color: rgb(255 255 255 / 0.35);
}

.cta-card .button-ghost:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--band-ink);
}

.cta-note {
  margin: 36px auto 0;
  max-width: 44em;
  padding-top: 28px;
  border-top: 1px solid var(--band-rule);
  color: var(--band-muted);
  font-size: 15px;
}

.cta-note a {
  color: var(--band-accent);
}

/* ---------- Prose pages ---------- */

.page-head {
  background:
    radial-gradient(50% 120% at 90% 0%, var(--glow), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
  padding-block: 56px 48px;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.page-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  max-width: 62ch;
}

.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 48px 96px;
}

@media (min-width: 1040px) {
  .prose-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 72px;
  }

  .toc {
    position: sticky;
    top: calc(var(--header) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header) - 48px);
    overflow-y: auto;
  }
}

.toc {
  font-size: 14.5px;
}

.toc h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

@media (min-width: 1040px) {
  .toc-fold {
    display: none;
  }
}

@media (max-width: 1039px) {
  .toc-side {
    display: none;
  }
}

.toc summary {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.toc ol {
  margin: 4px 0 0;
  padding-left: 28px;
  display: grid;
  gap: 4px;
}

.toc a {
  display: inline-block;
  padding-block: 3px;
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 1039px) {
  .toc {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 4px 18px 12px;
  }

  .toc:not([open]) {
    padding-bottom: 4px;
  }
}

.prose {
  max-width: var(--prose);
  line-height: 1.7;
}

.prose h2 {
  font-size: 23px;
  font-weight: 700;
  margin-top: 56px;
  scroll-margin-top: calc(var(--header) + 24px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 18px;
  font-weight: 650;
  margin-top: 28px;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose .table-wrap {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.summary-box {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
}

.prose .summary-box h2 {
  margin-top: 0;
  font-size: 18px;
}

.prose .summary-box ul {
  margin-top: 10px;
}

.back-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 40px;
  font-weight: 500;
}

.note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 15.5px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15.5px;
  line-height: 1.55;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 600;
  background: var(--paper-200);
}

td:first-child {
  font-weight: 500;
}

@media (min-width: 640px) {
  td:first-child {
    white-space: nowrap;
  }
}

/* A two-column table on a phone stacks: the first cell becomes the row's heading. */
@media (max-width: 639px) {
  .table-wrap thead {
    display: none;
  }

  .table-wrap tr,
  .table-wrap td {
    display: block;
  }

  .table-wrap tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rule);
  }

  .table-wrap tr:last-child {
    border-bottom: 0;
  }

  .table-wrap td {
    padding: 0;
    border: 0;
  }

  .table-wrap td + td {
    margin-top: 4px;
    color: var(--muted);
  }
}

.contact-email {
  display: inline-block;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
}

.prose .faq {
  max-width: none;
  margin-top: 8px;
}

.prose .faq summary {
  font-size: 17px;
  min-height: 56px;
}

.prose .faq .answer {
  padding-right: 0;
}

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

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding-block: 56px 32px;
  font-size: 15px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer-grid p {
  margin-top: 14px;
  max-width: 36em;
}

.footer-grid h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
}

@media (min-width: 640px) {
  .footer-links a {
    min-height: 34px;
  }
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
}

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

.not-found {
  padding-block: 120px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.not-found p:not(.eyebrow) {
  margin: 14px auto 0;
  color: var(--muted);
  max-width: 46ch;
}

.not-found .actions {
  justify-content: center;
}

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

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  .chip {
    animation: float 7s ease-in-out infinite;
  }

  .chip-2,
  .chip-5 {
    animation-delay: -2.3s;
  }

  .chip-3,
  .chip-6 {
    animation-delay: -4.6s;
  }

  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.05s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.1s;
  }

  .hero-copy > :nth-child(n + 4) {
    animation-delay: 0.15s;
  }

  .hero-art {
    animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
