/* pm.ai marketing site. The tokens are the app's (frontend/app/globals.css),
   so pm.ai and app.pm.ai read as one product. Layout follows the design
   handoff: rows are flex-wrap with a flex-basis per column, so columns stack
   on their own as the page narrows and only a few rules need breakpoints. */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* surfaces */
  --paper: #f7f8f5;
  --surface: #ffffff;
  --rail: #f1f3ee;
  --line: #e2e5de;
  --line-subtle: #eef0eb;
  --line-strong: #d6dad2;
  --control-border: #c5ccc5;
  /* ink */
  --ink: #17211d;
  --ink-2: #3b4540;
  --muted: #4a544f;
  --disabled: #6b746f;
  /* brand / done */
  --primary: #234f42;
  --primary-hover: #1a3d33;
  --primary-ink: #17362d;
  --primary-tint: #e1ebe5;
  --primary-selected-bg: #f3f7f4;
  --done-text: #1f4a3b;
  --done-bg: #e6f0ea;
  --done-border: #b8d2c3;
  /* needs attention */
  --attn-text: #8a5300;
  --attn-bg: #fcf0d9;
  --attn-border: #efd9ac;
  --attn-strong: #d9a441;
  --attn-title: #6b4000;
  --attn-mark: #9a5b00;
  --attn-mark-light: #e3aa4a;
  /* blocked / failed */
  --blocked-text: #9e3326;
  --blocked-bg: #f9e5e0;
  --blocked-border: #e4b4aa;
  --blocked-mark: #b2412f;
  --blocked-title: #7d2519;
  /* pm.ai judgments and suggestions */
  --judgment-text: #4b4f8a;
  --judgment-bg: #eceef8;
  --judgment-surface: #f4f5fb;
  --judgment-edge: #8f93c4;
  /* not assessed and neutral */
  --unassessed-edge: #8b938e;
  --neutral-tag-bg: #eceee9;
  --quiet-mark: #cdd6cf;
  /* site only */
  --chart-active: #7f978b;
  --chart-dormant: #d7ded8;
  --cta-band: #1c4035;
  --cta-button: #e6f2d9;
  --on-primary: #e6f0ea; /* body text on primary green */
  --on-primary-2: #d6e5dc; /* captions on primary green and the CTA band */

  --font: "Public Sans", system-ui, sans-serif;
  --r-tag: 5px;
  --r-control: 8px;
  --r-card: 10px;
  --r-panel: 12px;
  --r-figure: 14px;
  --r-pill: 22px;
  --shadow-1: 0 1px 2px rgba(23, 33, 29, 0.05);
  --shadow-2: 0 12px 32px -18px rgba(23, 33, 29, 0.25);
  --focus-ring: 3px solid #8fb8a6;
  /* The app's ring is about 2:1 against paper and white, under the 3:1 that
     WCAG 1.4.11 asks of a focus indicator, so light surfaces use primary and
     the dark CTA band keeps the app's ring. */
  --focus-ring-light: 3px solid var(--primary);
  --target: 44px;

  --content: 1132px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-pad: clamp(56px, 7vw, 96px);
  --header-height: 68px;
}

/* ------------------------------------------------------------------ base */

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

html {
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "tnum" 1;
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

/* The design balances the hero and problem headlines and evens out the
   ragged edge of the longer paragraphs; everything else wraps normally. */
.balance {
  text-wrap: balance;
}

.pretty {
  text-wrap: pretty;
}

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

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

a:hover {
  color: var(--primary-ink);
}

:focus-visible {
  outline: var(--focus-ring-light);
  outline-offset: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 16px;
  border-radius: var(--r-control);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

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

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-hover);
  color: #fff;
}

.button-large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.button-secondary {
  padding: 0 22px;
  border-color: var(--control-border);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-selected-bg);
  color: var(--ink);
}

.button-cta {
  background: var(--cta-button);
  color: var(--primary-ink);
  font-weight: 700;
}

.button-cta:hover {
  background: var(--surface);
  color: var(--primary-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease;
  }
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(247 248 245 / 94%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--target);
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-control);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
}

/* Links carry 8 px of padding each side so every target is 44 px; the gap
   makes up the design's 28 px between labels. */
.site-nav {
  display: flex;
  gap: 12px;
  margin-left: auto;
  font-size: 15px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target);
  min-height: var(--target);
  padding: 0 8px;
  border-radius: var(--r-control);
  color: var(--ink-2);
  text-decoration: none;
}

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

.header-inner > .button {
  margin-left: auto;
}

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

/* ------------------------------------------------------------------ hero */

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
  padding-block: clamp(48px, 7vw, 104px);
}

.hero-copy {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

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

.availability {
  color: var(--muted);
  font-size: 15px;
}

/* The briefing: one square per open task from a real pilot import. The
   flex-basis adds the padding and border to the text column's 420 px, so the
   two columns split the row as in the design. */
.briefing {
  display: flex;
  flex: 1 1 486px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-figure);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  container-type: inline-size;
}

.briefing-source {
  color: var(--muted);
  font-size: 14px;
}

.briefing-title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.briefing-summary {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

.briefing-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.label-need {
  color: var(--attn-text);
}

.label-kept {
  color: var(--ink-2);
}

/* The nth-child ranges encode the legend's counts (104, 41, 51, then 170
   dormant); change them together. */
.waffle {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.waffle i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--chart-dormant);
}

.waffle i:nth-child(-n + 104) {
  background: var(--attn-mark);
}

.waffle i:nth-child(n + 105):nth-child(-n + 145) {
  background: var(--attn-mark-light);
}

.waffle i:nth-child(n + 146):nth-child(-n + 196) {
  background: var(--chart-active);
}

/* Four stats in a row, or two by two when four 110 px columns don't fit. */
.legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@container (max-width: 475px) {
  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.legend li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legend-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
}

.swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.swatch-past {
  background: var(--attn-mark);
}

.swatch-quiet {
  background: var(--attn-mark-light);
}

.swatch-other {
  background: var(--chart-active);
}

.swatch-dormant {
  background: var(--chart-dormant);
}

.legend-label {
  color: var(--ink-2);
  font-size: 14px;
}

.briefing figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .waffle i {
    width: 7px;
    height: 7px;
  }
}

/* -------------------------------------------------------------- sections */

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

.section-surface {
  background: var(--surface);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: var(--section-pad);
}

.section-inner-wide-gap {
  gap: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.section-head-narrow {
  max-width: 720px;
}

h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-lede {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.body-muted {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

/* Text beside an illustration. */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}

.split-text {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.illustration {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.illustration img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-figure);
  background: var(--surface);
}

.illustration figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- problem */

.signals {
  display: flex;
  flex-direction: column;
}

.signals h3 {
  padding-bottom: 8px;
  font-size: 16px;
}

/* Filled dot: detected today. Ring: planned. The key repeats this in words,
   and each planned item says so to screen readers. */
.signal-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.signal-list li::before,
.key-now::before,
.key-later::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.signal-list .is-later {
  color: var(--muted);
}

.signal-list .is-later::before,
.key-later::before {
  border: 1.5px solid var(--disabled);
  background: none;
}

.signal-key {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}

.signal-key span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------------------------------- how it works */

.how-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
}

.steps {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 22px;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 16px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.steps li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.steps p {
  color: var(--ink-2);
  line-height: 1.5;
}

/* Product figure: a concern in the app's layout, with demo data. */
.product {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.product figcaption {
  color: var(--muted);
  font-size: 14px;
}

.concern {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-figure);
  background: var(--paper);
}

.concern-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  padding: 2px 8px;
  border-radius: var(--r-tag);
  font-size: 13px;
  font-weight: 600;
}

.tag-attn {
  background: var(--attn-bg);
  color: var(--attn-text);
}

.concern-where {
  color: var(--muted);
  font-size: 14px;
}

.concern-title {
  font-size: 20px;
  font-weight: 700;
}

.concern-reason {
  font-size: 15px;
  line-height: 1.5;
}

.concern-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  font-size: 14px;
}

.concern-boxes .box {
  flex: 1 1 230px;
}

.box-judgments {
  border: 1px dashed var(--judgment-edge);
}

.box-title {
  font-weight: 600;
}

.box-title span {
  color: var(--muted);
  font-weight: 400;
}

.box-judgments .box-title,
.box-judgments .box-title span {
  color: var(--judgment-text);
}

.box dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.box dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.box dd {
  font-weight: 700;
}

.box-message {
  font-size: 15px;
  line-height: 1.5;
}

.box-policy {
  color: var(--done-text);
  font-size: 13px;
}

.concern-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Pictures of buttons inside the figure; they do nothing. */
.concern-actions span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--control-border);
  border-radius: var(--r-control);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.concern-actions .is-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.notes > div {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 8px;
}

/* --------------------------------------------------------- how it decides */

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  counter-reset: stage;
}

.pipeline li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  counter-increment: stage;
}

.pipeline li::before {
  content: counter(stage);
  color: var(--muted);
  font-size: 14px;
}

.pipeline h3 {
  font-size: 19px;
}

.pipeline p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.pipeline .stage-judgments {
  border: 1px dashed var(--judgment-edge);
}

.pipeline .stage-judgments h3 {
  color: var(--judgment-text);
}

.pipeline .stage-you {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pipeline .stage-you::before {
  color: var(--on-primary-2);
}

.pipeline .stage-you p {
  color: var(--on-primary);
}

.decide-row,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
}

.decide-main,
.trust-main {
  display: flex;
  flex: 1 1 440px;
  flex-direction: column;
  min-width: 0;
}

.decide-side,
.trust-side {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  min-width: 0;
}

.decide-side {
  gap: 28px;
}

.list-title {
  padding-bottom: 10px;
}

.questions li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.questions .answer {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.bands {
  width: 100%;
  border-collapse: collapse;
}

.bands th,
.bands td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.bands tbody th {
  width: 96px;
  padding-right: 16px;
  font-weight: 700;
}

.bands tbody tr:last-child > * {
  border-bottom: 1px solid var(--line);
}

.bands-note {
  padding-top: 12px;
  font-weight: 600;
}

.corrections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* -------------------------------------------------------------- safeguards */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 40px;
}

.rules li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--primary);
}

.trust-row {
  padding-top: 16px;
}

.trust-row h3 {
  font-size: 20px;
}

.trust-main {
  gap: 16px;
}

/* Autonomy steps: rising, the last one still dashed because it is a plan. */
.ladder {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.ladder li {
  display: flex;
  flex: 1 1 110px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--primary);
  color: #fff;
}

.ladder li:nth-child(1) {
  min-height: 96px;
}

.ladder li:nth-child(2) {
  min-height: 128px;
}

.ladder li:nth-child(3) {
  min-height: 160px;
}

.ladder li:nth-child(4) {
  min-height: 192px;
}

.ladder strong {
  font-size: 15px;
}

.ladder span {
  color: var(--on-primary-2);
  font-size: 13px;
}

.ladder .is-later {
  border: 2px dashed var(--unassessed-edge);
  background: none;
  color: var(--ink);
}

.ladder .is-later span {
  color: var(--ink-2);
}

.ladder-key {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--ink-2);
  font-size: 14px;
}

/* On a phone the four steps sit two by two instead of three and one, and
   rise in smaller increments. */
@media (max-width: 560px) {
  .ladder li {
    flex-basis: calc(50% - 4px);
  }

  .ladder li:nth-child(1) {
    min-height: 72px;
  }

  .ladder li:nth-child(2) {
    min-height: 96px;
  }

  .ladder li:nth-child(3) {
    min-height: 120px;
  }

  .ladder li:nth-child(4) {
    min-height: 144px;
  }
}

.trust-side h3 {
  padding-bottom: 10px;
}

.wont li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.wont li::before {
  content: "×";
  content: "×" / "";
  color: var(--blocked-text);
  font-weight: 700;
}

/* ---------------------------------------------------------------- roadmap */

/* The text comes first in the page; on wide screens the picture sits left. */
.split-roadmap {
  flex-direction: row-reverse;
  gap: 40px 64px;
}

.split-roadmap .split-text {
  gap: 16px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 32px;
}

.timeline li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--quiet-mark);
}

/* Where four cards no longer fit in a row (4 x 220 px plus gaps), show two
   by two rather than three and one. */
@media (max-width: 979px) {
  .pipeline {
    grid-template-columns: repeat(auto-fit, minmax(max(220px, calc(50% - 6px)), 1fr));
  }
}

@media (max-width: 1039px) {
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(max(220px, calc(50% - 16px)), 1fr));
  }
}

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

.faq-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  padding-block: var(--section-pad);
}

.faq-row h2 {
  flex: 1 1 280px;
}

.faq {
  flex: 2 1 520px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

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

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

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

.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  color: var(--primary);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "−";
  content: "−" / "";
}

/* The top margin keeps the summary's focus ring off the answer's first line. */
.faq details p {
  max-width: 640px;
  margin: 6px 0 20px;
}

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

.cta {
  background: var(--cta-band);
  color: #fff;
}

.cta :focus-visible {
  outline: var(--focus-ring);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(48px, 6vw, 80px);
}

.cta-copy {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 10px;
}

.cta h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--on-primary-2);
  font-size: 18px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------- footer */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-block: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

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

.not-found {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: var(--section-pad);
}

.not-found > * {
  max-width: 760px;
}
