/* ==========================================================================
   ProspectPoint Marketing — site styles
   Plain CSS, no build step. Order: tokens, base, layout, components, pages.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Brand */
  --navy-950: #0a1322;
  --navy-900: #0f1b31;
  --navy-800: #14233f; /* brand navy */
  --navy-700: #1b3055;
  --navy-600: #27426f;
  --teal-700: #0a636a;
  --teal-600: #0e7c82; /* text, links and filled buttons on light */
  --teal-500: #1a9aa0; /* brand teal: decorative only, fails AA as text */
  --teal-400: #2bb5bb; /* accents and buttons on navy */
  --teal-100: #d3f0f1;
  --teal-50: #ecf8f8;
  --teal-300: #57cbd0; /* hover for the teal button on navy */
  --cyan-200: #9fe3e6; /* small labels on navy */

  /* Text and surfaces on navy */
  --on-dark: #c7d3e6;
  --on-dark-strong: #dbe4f2;
  --on-dark-muted: #b9c6dc;
  --on-dark-soft: #a9b8d0;
  --dark-card: rgb(255 255 255 / 0.04);
  --dark-rule: rgb(255 255 255 / 0.12);

  /* Neutrals */
  --ink: #0f1b31;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #5b6b82;
  --slate-400: #8493a8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Feedback */
  --error: #b42318;
  --error-bg: #fef3f2;
  --success: #0a6b4f;
  --success-bg: #ecfdf5;
  --warn: #5c4300;
  --warn-bg: #fff1c2;

  /* Type */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.375rem, 1.55rem + 3.9vw, 4.125rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.5vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.55vw, 2.5rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4rem, 2.6rem + 6vw, 7rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 2.5rem);
  --container: 73rem;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(15 27 49 / 0.06);
  --shadow: 0 1px 2px rgb(15 27 49 / 0.05), 0 10px 28px -12px rgb(15 27 49 / 0.18);
  --shadow-lg: 0 2px 4px rgb(5 12 24 / 0.2), 0 28px 60px -20px rgb(5 12 24 / 0.55);

  --focus-ring: var(--teal-600);
  --header-h: 4.5rem;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Short pages: the footer stays at the bottom of the window */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

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

a {
  color: var(--teal-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-700);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--teal-100);
  color: var(--ink);
}

/* A sentence that stays whole: it drops to its own line before it breaks */
.sentence {
  display: inline-block;
  text-wrap: balance;
}

/* A long headline word or an email address breaks before it can run past the
   edge of a narrow screen, as happens with enlarged text or wider spacing. */
.hero__title,
.cta-band__email,
.prose a {
  overflow-wrap: anywhere;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy-800);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

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

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

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

.section--alt {
  background: var(--slate-50);
  border-block: 1px solid var(--slate-200);
}

.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem);
}

.section--dark {
  --focus-ring: var(--cyan-200);
  background: var(--navy-800);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark a:not(.btn) {
  color: var(--cyan-200);
}

.section--dark a:not(.btn):hover {
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
}

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

.section-head:last-child {
  margin-bottom: 0;
}

.section-head > * + * {
  margin-top: var(--space-4);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--teal-500);
  flex: none;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section--dark .eyebrow,
.page-header .eyebrow,
.cta-band .eyebrow {
  color: var(--cyan-200);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--slate-600);
  text-wrap: balance;
  text-wrap: pretty;
}

.section-head .lead,
.page-header .lead,
.callout p {
  text-wrap: balance;
}

.section--dark .lead {
  color: var(--on-dark);
}

/* Every grid starts as one shrinkable column so long words can never
   force a track wider than the screen. */
.grid,
.split,
.steps,
.hero__inner,
.cta-band__inner,
.site-footer__top,
.icon-list,
.check-list,
.form,
.form__row,
.choice-grid {
  grid-template-columns: minmax(0, 1fr);
}

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

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

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

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

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

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

@media (min-width: 62em) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

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

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

  .split--center {
    align-items: center;
  }
}

/* The text column of a split keeps a readable measure when the split stacks */
.split > .stack {
  max-width: 40rem;
}

/* Its short intro breaks into even lines */
.split > .stack .lead {
  text-wrap: balance;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack--lg > * + * {
  margin-top: var(--space-6);
}

/* ---------- 4. Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

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

/* A button that is sending is marked aria-disabled, so it keeps keyboard focus */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}

.btn--primary {
  background: var(--teal-600);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-700);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  border-color: var(--slate-400);
  color: var(--navy-800);
}

.btn--secondary:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--on-dark {
  background: var(--teal-400);
  color: var(--navy-900);
}

.btn--on-dark:hover {
  background: var(--teal-300);
  color: var(--navy-900);
}

.btn--ghost-on-dark {
  background: transparent;
  border-color: rgb(255 255 255 / 0.38);
  color: var(--white);
}

.btn--ghost-on-dark:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: var(--white);
  color: var(--white);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: var(--fs-small);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- 5. Header ---------- */
.site-header {
  --focus-ring: var(--cyan-200);
  position: relative;
  z-index: 50;
  background: var(--navy-800);
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
}

/* The header is pinned only where it is sure to fit: on desktop, where it is
   always one row, and on smaller screens once the script has collapsed the
   menu and the window is tall enough to show the menu when it is opened.
   Everywhere else (scripts off, a phone held sideways) it scrolls away with
   the page, so the expanded menu can never cover the screen.

   These widths are in em, so they follow the reader's text size. Below 20em
   (a narrow phone with enlarged text) the menu button no longer fits beside
   the logo and the header is two rows tall, so it is not pinned there. */
@media (min-width: 62em) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

@media (min-width: 20em) and (max-width: 61.99em) and (min-height: 30em) {
  .js .site-header {
    position: sticky;
    top: 0;
  }
}

/* The padding gives the first row its height, so the logo and the menu
   button stay where they are when the menu wraps onto the rows below. */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-5);
  min-height: var(--header-h);
  padding-block: calc((var(--header-h) - 2.75rem) / 2);
}

/* Below the desktop layout the first row holds only the logo and the menu
   button. A small gap lets them share that row at larger text sizes. */
@media (max-width: 61.99em) {
  .site-header__inner {
    column-gap: var(--space-2);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  min-height: 2.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand__mark {
  width: 2.375rem;
  height: 2.375rem;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand__name b {
  font-weight: inherit;
  color: var(--teal-400);
}

.brand__sub {
  margin-top: 0.3125rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan-200);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgb(255 255 255 / 0.38);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav {
  width: 100%;
  padding-block: var(--space-2) var(--space-3);
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  color: var(--on-dark-strong);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--white);
}

.site-nav__link[aria-current="page"] {
  font-weight: 600;
}

.site-nav__cta {
  margin-top: var(--space-4);
}

.site-nav__cta .btn {
  width: 100%;
}

/* On a short screen the browser scrolls a focused menu item into view; the
   margin brings the lower edge of its focus ring along. */
.site-nav a {
  scroll-margin-bottom: var(--space-2);
}

@media (min-width: 62em) {
  .js .nav-toggle,
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav.is-open {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    width: auto;
    padding-block: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav__link {
    position: relative;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
    font-size: var(--fs-small);
  }

  .site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--teal-400);
  }

  .site-nav__cta {
    margin-top: 0;
  }

  .site-nav__cta .btn {
    width: auto;
  }
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  --focus-ring: var(--cyan-200);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 34rem at 88% -8%, rgb(43 181 187 / 0.2), transparent 62%),
    radial-gradient(40rem 26rem at -8% 108%, rgb(39 66 111 / 0.55), transparent 65%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 2.2rem + 5.5vw, 6.5rem) clamp(4rem, 2.6rem + 6vw, 7rem);
}

@media (min-width: 62em) {
  .hero__inner {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  }
}

.cap-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.125rem;
  margin-bottom: var(--space-5);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-200);
}

/* Dividers only where the strip fits on one line. It does not between 62em,
   where the hero becomes two columns, and 70em: there it wraps with a plain gap. */
@media (min-width: 40em) and (max-width: 61.99em), (min-width: 70em) {
  .cap-strip {
    gap: 0;
  }

  .cap-strip span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.8em;
    margin-inline: 0.75rem;
    background: rgb(159 227 230 / 0.5);
    vertical-align: -0.05em;
  }
}

/* The size also follows the width of the screen, so the longest word of the
   headline stays whole on a narrow phone with enlarged text. At the default
   text size this changes nothing from 302px up. */
.hero__title {
  font-size: min(var(--fs-display), calc((100vw - 2 * var(--gutter)) / 6.9));
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero__title em {
  font-style: normal;
  color: var(--teal-400);
}

.hero__lead {
  max-width: 35rem;
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--on-dark);
}

.hero .btn-row {
  margin-top: var(--space-6);
}

/* On the narrowest phones the two buttons no longer fit side by side, so
   each takes the full width instead of stacking at uneven widths. */
@media (max-width: 23.99em) {
  .hero .btn-row .btn {
    width: 100%;
  }
}

.hero__note {
  margin-top: var(--space-5);
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
}

.brand-rule {
  position: absolute;
  left: var(--gutter);
  bottom: 0;
  width: 7rem;
  height: 6px;
  border-radius: 3px 3px 0 0;
  background: var(--teal-400);
}

/* Hero visual: three sample-layout cards */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  max-width: 34rem;
  margin-inline: auto;
  width: 100%;
}

.mock {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--slate-600);
  font-size: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.mock__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.mock__tag {
  padding: 0.125rem 0.5rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-pill);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  white-space: nowrap;
}

.mock__body {
  padding: 0.875rem;
}

/* The cards overlap by 1.5rem; the covered card keeps that much empty
   padding at its bottom so no content is ever hidden. */
.mock--list {
  grid-column: 1 / span 9;
  grid-row: 1;
  z-index: 1;
}

.mock--list .mock__body {
  padding-bottom: 2.25rem;
}

.mock--email {
  grid-column: 4 / span 9;
  grid-row: 2;
  margin-top: -1.5rem;
  z-index: 2;
}

.mock--email .mock__body {
  padding-bottom: 2.375rem;
}

.mock--report {
  grid-column: 1 / span 8;
  grid-row: 3;
  margin-top: -1.5rem;
  z-index: 3;
}

.mock__rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.mock__rows li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mock__rows li:first-child {
  padding-top: 0;
}

.mock__avatar {
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 7px;
  background: var(--teal-50);
  color: var(--teal-600);
}

.mock__avatar svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

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

.mock__meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--slate-500);
}

.mock__ok {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem 0.125rem 0.375rem;
  border-radius: var(--radius-pill);
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.6875rem;
  font-weight: 600;
}

.mock__ok svg {
  width: 0.75rem;
  height: 0.75rem;
}

.mock__from {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mock__logo {
  display: grid;
  place-items: center;
  height: 1.75rem;
  padding-inline: 0.625rem;
  border: 1px dashed var(--slate-300);
  border-radius: 7px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--slate-500);
}

.mock__line {
  height: 0.4375rem;
  margin-top: 0.4375rem;
  border-radius: 4px;
  background: var(--slate-200);
}

.mock__line--head {
  width: 68%;
  height: 0.625rem;
  margin-top: 0;
  background: var(--slate-300);
}

.mock__line--w90 {
  width: 92%;
}

.mock__line--w60 {
  width: 58%;
}

.mock__from {
  justify-content: space-between;
}

.mock__sender {
  font-size: 0.6875rem;
  color: var(--slate-500);
}

.mock__sender b {
  font-weight: 600;
  color: var(--ink);
}

.mock__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.mock__unsub {
  font-size: 0.6875rem;
  color: var(--slate-500);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mock__cta {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 7px;
  background: var(--teal-600);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
}

/* The chips keep their size and their text stays whole. In a narrow card the
   connecting lines between them shorten first, so the row stays on one line;
   it wraps only when it cannot fit even then, as with enlarged text. */
.mock__seq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.mock__seq span {
  flex: none;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  white-space: nowrap;
}

.mock__seq span:first-child {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-700);
}

.mock__seq i {
  flex: 1 1 0.25rem;
  max-width: 0.75rem;
  height: 1px;
  background: var(--slate-300);
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

/* The figure sits at the bottom of its tile, so the three stay level when
   one label wraps onto a second line. */
.mock__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.625rem 0.5rem 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
}

.mock__stat dt {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.mock__stat dd {
  margin-top: 0.125rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-300);
}

.mock__hint {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  color: var(--slate-500);
}

@media (max-width: 30em) {
  .mock--list {
    grid-column: 1 / span 11;
  }

  .mock--email {
    grid-column: 2 / span 11;
  }

  .mock--report {
    grid-column: 1 / span 11;
  }
}

/* ---------- 7. Cards and features ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.card > * + * {
  margin-top: var(--space-3);
}

.card h2 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  background: var(--teal-50);
  color: var(--teal-600);
  flex: none;
}

.icon-tile svg {
  width: 1.375rem;
  height: 1.375rem;
}

.icon-tile--lg {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 13px;
}

.icon-tile--lg svg {
  width: 1.625rem;
  height: 1.625rem;
}

.section--dark .icon-tile {
  background: rgb(43 181 187 / 0.14);
  color: var(--teal-400);
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature__num {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--teal-600);
}

.feature > * + * {
  margin-top: 0;
}

.feature p {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--slate-600);
}

/* On phones a feature becomes a compact row: icon left, text right */
@media (max-width: 39.99em) {
  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem var(--space-4);
    align-items: start;
  }

  .feature__top {
    grid-row: span 2;
  }

  .feature__num {
    display: none;
  }

  .feature h3 {
    padding-top: 0.125rem;
  }
}

/* In two columns an odd last card would sit alone beside an empty cell, so
   it takes the whole row. */
@media (min-width: 40em) and (max-width: 61.99em) {
  .grid--3 > .feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Steps */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

@media (min-width: 52em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.step {
  position: relative;
  padding-top: var(--space-5);
  border-top: 3px solid var(--slate-200);
  counter-increment: step;
}

.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--teal-500);
}

.step__num {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal-600);
}

.step h3 {
  font-size: 1.3125rem;
}

/* Stacked steps keep a readable measure */
.step p {
  max-width: 34rem;
  margin-top: var(--space-3);
  color: var(--slate-600);
}

/* Side by side, the three steps share their rows, so number, heading and
   text line up even when one heading wraps and its neighbor does not. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 52em) {
    .steps:not(.steps--4) {
      row-gap: 0;
    }

    .steps:not(.steps--4) .step {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
    }
  }
}

.section--dark .step {
  border-top-color: var(--navy-600);
}

.section--dark .step::before {
  background: var(--teal-400);
}

.section--dark .step__num {
  color: var(--teal-400);
}

.section--dark .step p {
  color: inherit;
}

/* Icon list (additional services, criteria) */
.icon-list {
  display: grid;
  gap: 0;
}

.icon-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--slate-200);
}

.icon-list li:first-child {
  border-top: 1px solid var(--slate-200);
}

.icon-list h3 {
  font-size: 1.0625rem;
}

.icon-list p {
  margin-top: 0.125rem;
  font-size: var(--fs-small);
  color: var(--slate-600);
}

.section--dark .icon-list li {
  border-color: var(--navy-600);
}

.section--dark .icon-list p {
  color: inherit;
}

/* Short texts should not end on a single word */
.check-list li,
.num-list li,
.icon-list p,
.reach-card p,
.feature p {
  text-wrap: balance;
  text-wrap: pretty;
}

/* Check list */
.check-list {
  display: grid;
  gap: var(--space-3);
}

.check-list li {
  position: relative;
  padding-left: 1.875rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230e7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.3 2.7 2.7L14 7.6'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
}

.check-list--x li::before {
  background: var(--slate-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6b82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7l6 6M13 7l-6 6'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
}

/* Numbered list (short ordered steps) */
.num-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  counter-reset: num;
}

.num-list li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: num;
}

.num-list li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
}

.check-list strong {
  color: var(--ink);
  font-weight: 600;
}

.section--dark .check-list strong {
  color: var(--white);
}

/* Industry cards (dark sections) */
.reach-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  border: 1px solid var(--dark-rule);
  border-radius: var(--radius-lg);
  background: var(--dark-card);
}

.reach-card h3 {
  color: var(--white);
}

.reach-card p {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

@media (max-width: 39.99em) {
  .reach-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem var(--space-4);
    align-items: start;
  }

  .reach-card .icon-tile {
    grid-row: span 2;
  }

  .reach-card h3 {
    padding-top: 0.25rem;
  }
}

.reach-card--light {
  border-color: var(--slate-200);
  background: var(--white);
}

.reach-card--light h3 {
  color: var(--ink);
}

.reach-card--light p {
  color: var(--slate-600);
}

/* Side by side, the cards in a row share their rows (icon, heading, text),
   so the text lines up even when one heading wraps and its neighbor does
   not. The plain columns of the home page's "Why" section do the same and
   keep their own spacing. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 40em) {
    .grid > .reach-card,
    #why .grid--4 > li {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: var(--space-3);
    }

    #why .grid--4 > li {
      row-gap: 0;
    }
  }
}

/* The illustration beside the intro of the home page's "Who we reach" section */
.reach-intro {
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
}

.reach-intro .section-head {
  margin-bottom: 0;
}

.reach-art {
  margin: 0;
  padding: clamp(0.75rem, 0.25rem + 2vw, 1.5rem) clamp(0.75rem, 0.25rem + 2vw, 1.5rem) 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.reach-art img {
  display: block;
  width: 100%;
  height: auto;
}

.state-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (min-width: 48em) {
  .state-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 22.49em) {
  .state-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.state-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--dark-rule);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
}

/* Narrow phones: tighter tiles, so the longest name keeps its padding.
   This has to follow the rule above to take effect. */
@media (max-width: 23.99em) {
  .state-tile {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }
}

.state-tile__code {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 9px;
  background: var(--teal-400);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex: none;
}

.state-tile--light {
  border-color: var(--slate-200);
  background: var(--white);
  color: var(--ink);
}

.state-tile--light .state-tile__code {
  background: var(--navy-800);
  color: var(--white);
}

.grid + .state-row {
  margin-top: var(--space-5);
}

/* Under a row of cards with the same number of columns, the tiles take the
   cards' gutter so that their edges line up. */
@media (min-width: 40em) and (max-width: 47.99em), (min-width: 62em) {
  .grid--4 + .state-row {
    gap: var(--space-5);
  }
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}

/* ---------- 8. Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 40em) and (max-width: 61.99em) {
  .price-grid > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--space-5) / 2);
  }
}

.price-card__name {
  font-size: 1.25rem;
}

.price-card__tag {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--slate-500);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--slate-200);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2.1rem + 1.4vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.price-card__price {
  flex-wrap: wrap;
}

.price-card__per {
  font-size: var(--fs-small);
  color: var(--slate-500);
  white-space: nowrap;
}

.price-card__volume {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: var(--space-5);
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 600;
}

.price-card__volume svg {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

.price-card__volume span {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.35;
}

.price-card__volume strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.price-card__incl {
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
  color: var(--slate-600);
}

.price-card .btn {
  margin-top: auto;
}

.note {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-top: var(--space-5);
  font-size: var(--fs-small);
  color: var(--slate-600);
}

.note svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2em;
  flex: none;
  color: var(--teal-600);
}

.note--center {
  justify-content: center;
}

/* ---------- 9. FAQ ---------- */
.faq {
  border-top: 1px solid var(--slate-200);
}

.faq__item {
  border-bottom: 1px solid var(--slate-200);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary {
  text-wrap: balance;
}

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

.faq__item summary::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 1.5rem no-repeat;
  transition: transform 0.2s ease;
}

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

.faq__item summary:hover {
  color: var(--teal-700);
}

.faq__answer {
  max-width: 44rem;
  padding-bottom: var(--space-5);
  color: var(--slate-600);
}

/* ---------- 10. Callout, badge, table ---------- */
.callout {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--teal-50);
  color: var(--slate-700);
}

.callout h2,
.callout h3 {
  margin-bottom: var(--space-2);
  font-size: 1.125rem;
}

/* The padding is the only space above the first thing in the box, also on
   the policy pages, where headings bring a top margin of their own. */
.callout > :first-child {
  margin-top: 0;
}

.callout--plain {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  text-align: left;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  vertical-align: top;
}

.table thead th {
  background: var(--navy-800);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tbody tr:nth-child(odd) {
  background: var(--slate-50);
}

.table tbody th {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 11. Call-to-action band ---------- */
.cta-band {
  --focus-ring: var(--cyan-200);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50rem 26rem at 100% 0%, rgb(43 181 187 / 0.2), transparent 60%),
    var(--navy-800);
  color: var(--on-dark);
}

.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: clamp(3.5rem, 2.4rem + 5vw, 5.5rem);
}

/* Side by side, the buttons and the email address end flush with the right
   edge of the container. */
@media (min-width: 62em) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .cta-band__actions {
    justify-self: end;
    justify-content: flex-end;
  }

  .cta-band__email {
    text-align: right;
  }
}

.cta-band h2 {
  margin-top: var(--space-4);
  color: var(--white);
}

.cta-band__text {
  margin-top: var(--space-4);
  max-width: 38rem;
  font-size: var(--fs-lead);
  text-wrap: balance;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* As in the hero: full-width buttons on the narrowest phones */
@media (max-width: 23.99em) {
  .cta-band__actions .btn {
    width: 100%;
  }
}

.cta-band__email {
  flex-basis: 100%;
  color: var(--cyan-200);
  font-weight: 500;
}

.cta-band__email:hover {
  color: var(--white);
}

/* ---------- 12. Page header (inner pages) ---------- */
.page-header {
  --focus-ring: var(--cyan-200);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 26rem at 92% -20%, rgb(43 181 187 / 0.2), transparent 62%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--on-dark);
}

.page-header .container {
  position: relative;
}

.page-header__inner {
  position: relative;
  max-width: 50rem;
  padding-block: clamp(3rem, 2rem + 4.5vw, 5.5rem);
}

.page-header h1 {
  margin-top: var(--space-4);
  color: var(--white);
}

.page-header .lead {
  max-width: 44rem;
  margin-top: var(--space-5);
  color: var(--on-dark);
}

.page-header a:not(.btn) {
  color: var(--cyan-200);
}

.page-header a:not(.btn):hover {
  color: var(--white);
}

/* ---------- 13. Prose (policy pages) ---------- */
.prose {
  max-width: 46rem;
  color: var(--slate-700);
  /* A long plain-text word, such as the domain name, breaks before it can
     run past the column at enlarged text sizes. */
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  margin-top: var(--space-7);
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: var(--space-6);
  font-size: 1.125rem;
}

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

.prose li + li {
  margin-top: var(--space-2);
}

.prose li::marker {
  color: var(--teal-600);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose__meta {
  font-size: var(--fs-small);
  color: var(--slate-500);
}

.page-header__action {
  margin-top: var(--space-6);
}

/* Policy pages: reading column plus an on-this-page list on wide screens */
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.toc {
  display: none;
}

@media (min-width: 62em) {
  .policy-layout {
    grid-template-columns: minmax(0, 46rem) minmax(0, 15rem);
    justify-content: space-between;
  }

  .toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    padding-left: var(--space-5);
    border-left: 1px solid var(--slate-200);
    font-size: var(--fs-small);
  }
}

.toc h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.toc ul {
  display: grid;
  gap: 0.125rem;
  list-style: none;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--slate-600);
  text-decoration: none;
}

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

/* Marks something that must be filled in before the site goes live */
.todo {
  padding: 0.0625rem 0.375rem;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 500;
}

/* ---------- 14. Forms ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}

.form.card > * + * {
  margin-top: 0;
}

.prose .form {
  margin-block: var(--space-5);
}

.form__row {
  display: grid;
  gap: var(--space-5);
}

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

.field {
  display: grid;
  align-content: start;
  gap: 0.375rem;
}

.field__label,
.fieldset legend {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.field__optional {
  font-weight: 400;
  color: var(--slate-500);
}

.field__help {
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--slate-400);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23475569' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--slate-500);
}

/* Fields get the same focus ring as every other control. It also shows on a
   field marked invalid, whose border stays red, and in forced colors. */
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--teal-600);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--error);
}

.fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: var(--space-3);
  padding: 0;
}

.choice-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 34em) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-700);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice:hover {
  border-color: var(--slate-400);
}

.choice input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--teal-600);
  flex: none;
}

.choice:has(input:checked) {
  border-color: var(--teal-600);
  background: var(--teal-50);
  color: var(--ink);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* The choice box draws the focus ring, so the checkbox does not add a second one */
@supports selector(:has(*)) {
  .choice input:focus-visible {
    outline: none;
  }
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
}

.form__status {
  overflow-wrap: anywhere;
}

.form__status a,
.form__status a:hover {
  color: inherit;
}

/* The "not sent" message keeps the email address whole. On the narrowest phones a
   line is shorter than the address, so there it may wrap after the @ instead. The
   box gives up some side padding so the part after the @ fits a 320px screen. */
@media (max-width: 23.99em) {
  .form__status {
    padding-inline: 0.625rem;
  }

  .form__status .sentence {
    display: inline;
  }
}

.form__status:empty {
  display: none;
}

.form__status[data-state="success"] {
  background: var(--success-bg);
  color: var(--success);
}

.form__status[data-state="error"] {
  background: var(--error-bg);
  color: var(--error);
}

.form__fine {
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

/* On a phone the opt-out button takes the full width, as the proposal form's
   button does. From there up it keeps its width when its label changes to
   "Sending...". */
.optout .btn {
  width: 100%;
}

@media (min-width: 34em) {
  .optout .btn {
    width: auto;
    min-width: 13.25rem;
  }
}

/* Once a form is sent, the heading of its confirmation takes focus so the
   message is read out. It is not a control, so it shows no focus ring. */
.contact-done h2:focus,
#optout-done h3:focus {
  outline: none;
}

/* ---------- 15. Footer ---------- */
.site-footer {
  --focus-ring: var(--cyan-200);
  background: var(--navy-950);
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
}

.site-footer__top {
  display: grid;
  gap: var(--space-7) var(--space-6);
  padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem) var(--space-7);
}

/* Phones: the two link lists sit side by side, which keeps the footer
   short; the blocks above and below them take the full width. */
@media (max-width: 39.99em) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__about,
  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

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

@media (min-width: 62em) {
  .site-footer__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  }
}

/* Between 62em and 75em the last column needs more room for the email address */
@media (min-width: 62em) and (max-width: 74.99em) {
  .site-footer__top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr);
  }
}

/* The email address is as tall as a link in the lists beside it, so their
   first lines sit level. */
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  overflow-wrap: anywhere;
}

.site-footer__about p {
  max-width: 24rem;
  margin-top: var(--space-4);
}

.site-footer h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-200);
}

.site-footer a {
  color: var(--on-dark-strong);
  text-decoration: none;
}

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

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}

.site-footer__contact > * + * {
  margin-top: var(--space-3);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--fs-xs);
}

.site-footer__bottom a {
  text-decoration: underline;
}

/* ---------- 16. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
