/* EasyPoll public site
   UI and typography follow the labs project's public landing shell
   (LandingPage.css + PublicLayout.css): the Segoe UI stack with self-hosted
   Hanken Grotesk behind it, Material Symbols on a plate, white cards on a
   page a touch deeper than white, 1px outline borders, 2/4/6px radii, a
   1280px container and 68px section rhythm, sentence case labels, no gloss.
   Colour follows Textpoll: teal is the only chromatic voice. */

/* Self-hosted faces: nothing is fetched from a CDN at runtime. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('/fonts/material-symbols-outlined.woff2') format('woff2');
}

:root {
  /* Tonal neutrals, ported from the labs @theme block */
  --color-background: #eef1ee;
  --color-on-background: #191c1d;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f2f4f5;
  --color-surface-container: #eceeef;
  --color-on-surface: #191c1d;
  --color-on-surface-variant: #3f4941;
  /* Muted grey-green for secondary text, darkened from #6f7a71: 6.5:1
     with white (AA with room to spare) where the old value measured
     4.47:1, just under the line for small text. The token is text-only -
     borders use --color-outline-variant. */
  --color-outline: #56615a;
  --color-outline-variant: #becabf;

  /* Textpoll teal, matched to the logo artwork (#167d86): 4.87:1 with white */
  --color-primary: #167d86;
  --color-on-primary: #ffffff;
  --color-primary-container: #0f6b74;
  --color-primary-fixed: #a8dade;
  --color-primary-tint: #f0fafb;
  --color-accent: #167d86;

  --color-error: #ba1a1a;

  /* Type: labs' public-page stack. Segoe UI resolves locally where installed,
     Hanken Grotesk (self-hosted) everywhere else. */
  --font-ui: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI',
    'Hanken Grotesk', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-ui);
  --font-body: var(--font-ui);
  --font-data: 'IBM Plex Sans', var(--font-ui);

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;

  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* Phones must not inflate the layout on rotation: the breakpoints below
     own the type scale. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-on-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Material Symbols, sized by the utility class that uses it. */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top app bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--color-surface-container-lowest);
  border-bottom: 1px solid var(--color-outline-variant);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-on-surface);
}

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

.brand-mark {
  height: 30px;
  width: auto;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav a {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-primary);
}

.nav .btn-solid {
  font-size: 16px;
  padding: 10px 18px;
  color: var(--color-on-primary);
}

.nav .btn-solid:hover {
  color: var(--color-on-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  /* 8px + 26px icon + border = a 44px touch target. */
  padding: 8px 10px;
  border: 1px solid var(--color-outline-variant);
  background: transparent;
  color: var(--color-on-surface);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle .material-symbols-outlined {
  font-size: 26px;
}

/* ---------- Buttons: labs' .btn-solid / .btn-outline ---------- */

.btn-solid,
.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-solid {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-solid:hover {
  background: var(--color-primary-container);
  border-color: var(--color-primary-container);
  color: var(--color-on-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(22, 125, 134, 0.08);
  color: var(--color-primary);
}

.btn-solid:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid var(--color-primary-fixed);
  outline-offset: 3px;
}

.btn-solid[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Hero: labs' centred poster composition ---------- */

.hero {
  width: 100%;
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #fbfefe 0%, #f0faf9 58%, #e2f4f2 100%);
  border-bottom: 1px solid var(--color-outline-variant);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 24px;
}

/* The hero's copy stack. As a plain block the accent rule sat flush under
   the heading at its left edge - an accidental underline on phones and a
   stray dash on desktop. Stacked as a centred column with the same 16px
   rhythm as the rest of the hero, it reads as the rule it is meant to be;
   the >=1000px hero below re-pins the column to the left. */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
}

/* short teal rule between heading and lede */
.hero-accent {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-accent);
}

.hero-lede {
  font-size: 17px;
  line-height: 27px;
  color: var(--color-on-surface-variant);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 2px;
}

.hero-reassure {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-on-surface-variant);
}

.hero-audience {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-outline);
  max-width: 46ch;
}

/* ---------- Sections ---------- */

/* Sections run full width so their dividers span the page; .container keeps
   the content on the 1280 grid, exactly like labs' shell. */
.section {
  width: 100%;
  padding: 68px 0;
}

.section-bordered {
  border-bottom: 1px solid var(--color-outline-variant);
}

.section-head {
  margin-bottom: 32px;
  max-width: 60ch;
}

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

.section-head h2 {
  font-size: 30px;
  line-height: 1.2;
}

.section-head .lede {
  margin-top: 10px;
  font-size: 17px;
  line-height: 27px;
  color: var(--color-on-surface-variant);
}

.section-head.center .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 56ch;
}

/* ---------- Cards: labs' .reason-card ---------- */

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.reason-card {
  /* Flex column so a card's CTA can pin to the bottom edge and every
     "Open page" in a row lines up, however long the copy above it runs. */
  display: flex;
  flex-direction: column;
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px;
  /* Resting depth: white on the near-white page needs more than a hairline
     to read as a card before it is hovered. */
  box-shadow: 0 1px 2px rgba(25, 28, 29, 0.05), 0 6px 16px rgba(25, 28, 29, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Only cards that really go somewhere lift on hover - an article card that
   highlights without a cursor change reads as a broken link. */
a.reason-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(25, 28, 29, 0.06), 0 12px 26px rgba(25, 28, 29, 0.12);
}

/* icon row: plate left, the big editorial index right */
.reason-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* a teal-tinted tile with a firm teal edge: the plate reads as a plate on
   the white card instead of white on white */
.reason-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  font-size: 24px;
  color: var(--color-primary);
}

/* The index is the card's hook: set large enough to catch the eye before
   the title does, with a short accent bar under it echoing the hero rule.
   Teal measures 4.87:1 on white (AA). */
.reason-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.reason-card__num::after {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--color-accent);
}

.reason-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 27px;
  font-weight: 700;
  color: var(--color-on-surface);
  text-wrap: balance;
}

.reason-card__body {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-on-surface-variant);
}

/* capability variant: smaller title, keeps the editorial numeral */
.reason-card--compact {
  padding: 24px;
}

.reason-card--compact .reason-card__num {
  display: inline-block;
  /* The card is a flex column, so its span children blockify to full width
     and the accent bar would centre to the card. Pinning the cross-axis
     start shrinks it back to the numeral, so the bar sits under the number. */
  align-self: flex-start;
  /* the accent bar under the numeral carries the spacing now */
  margin-bottom: 4px;
}

.reason-card--compact .reason-card__title {
  font-size: 19px;
  line-height: 26px;
  margin-bottom: 6px;
}

.reason-card--compact .reason-card__body {
  font-size: 16px;
  line-height: 24px;
}

/* card used as a link to a real page */
a.reason-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.reason-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* pinned to the card's bottom edge (flex column above): every CTA in a
     row shares one baseline, with a floor of 18px off the copy */
  margin-top: auto;
  padding-top: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.reason-card__cta .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.15s ease;
}

a.reason-card:hover .reason-card__cta {
  text-decoration: underline;
}

a.reason-card:hover .reason-card__cta .material-symbols-outlined {
  transform: translateX(3px);
}

.reason-card--cta {
  background: var(--color-primary-tint);
  border-color: var(--color-primary-fixed);
}

/* its plate would otherwise match the card's tinted background */
.reason-card--cta .reason-card__icon {
  background: var(--color-surface-container-lowest);
}

.reason-card--cta:hover {
  border-color: var(--color-primary);
}

/* inline link to another page */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .material-symbols-outlined {
  font-size: 18px;
}

/* ---------- Configured strip ---------- */

.config-strip-title {
  margin-top: 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.config-strip {
  display: grid;
  /* Two columns at every width: four never fit below 768px, so the old 4-up
     base only ever showed as four cramped cells on small tablets. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.config-strip div {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
  border-left: 1px solid var(--color-outline-variant);
}

.config-strip div:first-child {
  border-left: none;
}

.config-strip div:nth-child(3) {
  border-left: none;
}

.config-strip div:nth-child(n + 3) {
  border-top: 1px solid var(--color-outline-variant);
}

.config-strip strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--color-on-surface);
}

/* ---------- Stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.stat-note {
  margin-top: 4px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s ease;
}

.step:hover {
  border-color: var(--color-primary);
}

/* "STEP" stays a quiet label; the numeral itself is the loud part. */
.step-num {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-outline);
}

.step-num__n {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--color-primary);
}

.step h3 {
  font-size: 19px;
  line-height: 26px;
}

.step p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-on-surface-variant);
}

/* Flow connectors between steps: a tinted node sitting in the grid gap so
   the cards read as one path - right when they sit side by side, down when
   they stack. content/position are set per breakpoint below. */
.step::after {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  border: 1px solid var(--color-primary-fixed);
  color: var(--color-primary);
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  line-height: 1;
  z-index: 1;
}

@media (min-width: 1025px) {
  .step:not(:last-child)::after {
    content: 'arrow_forward';
    right: -27px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Two across: only the pairs that actually flow left to right (1->2, 3->4)
   get the arrow; 2->3 wraps to the next row, where a horizontal arrow lies. */
@media (min-width: 561px) and (max-width: 1024px) {
  .step:nth-child(odd):not(:last-child)::after {
    content: 'arrow_forward';
    right: -27px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 560px) {
  .step:not(:last-child)::after {
    content: 'arrow_downward';
    left: 50%;
    bottom: -27px;
    transform: translateX(-50%);
  }
}

/* ---------- Pull quote ---------- */

.pullquote {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--color-primary-tint);
  border: 1px solid var(--color-primary-fixed);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pullquote p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--color-primary);
}

.pullquote span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--color-outline-variant);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-on-surface-variant);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li strong {
  display: block;
  font-weight: 700;
  color: var(--color-on-surface);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.note-box {
  padding: 24px;
  background: var(--color-primary-tint);
  border: 1px solid var(--color-primary-fixed);
  border-radius: var(--radius-md);
}

.split .note-box {
  margin-top: 24px;
}

/* A panel stacked under the note-box inside a split column needs the same
   lift: .side-block only spaces itself against a sibling side-block. */
.split .side-block.panel {
  margin-top: 24px;
}

.note-box h3 {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-primary);
}

.note-box p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

.note-box p strong {
  font-weight: 700;
  color: var(--color-on-surface);
}

/* ---------- Tables ---------- */

.table-wrap {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

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

th,
td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-outline-variant);
}

thead th {
  background: var(--color-surface-container-low);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-on-surface);
  white-space: nowrap;
}

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

tbody th {
  font-weight: 600;
  color: var(--color-on-surface);
  width: 34%;
}

.compare td:last-child {
  color: var(--color-primary);
}

/* ---------- Audit excerpt card ---------- */

.log-card {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.log-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--color-surface-container-low);
  border-bottom: 1px solid var(--color-outline-variant);
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--color-on-surface-variant);
}

.log-card-head strong {
  font-weight: 700;
  color: var(--color-on-surface);
}

.log-rows {
  padding: 8px 0;
}

.log-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 7px 20px;
  font-family: var(--font-data);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-on-surface-variant);
}

.log-row .t {
  color: var(--color-outline);
}

.log-row .r {
  font-weight: 700;
}

.r-ok {
  color: var(--color-primary);
}

.r-denied {
  color: var(--color-error);
}

.log-card-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--color-outline-variant);
  background: var(--color-surface-container-low);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-outline);
}

/* ---------- Closing CTA: labs' .landing-close ---------- */

.close {
  width: 100%;
  padding: 68px 0 76px;
  text-align: center;
}

.close__inner {
  max-width: 62ch;
  margin: 0 auto;
}

.close__title {
  position: relative;
  margin: 0 0 12px;
  padding-top: 20px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
}

/* centred teal rule above the closing title */
.close__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-accent);
}

.close__body {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-on-surface-variant);
  margin: 0 0 28px;
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.close__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-top: 28px;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-on-surface-variant);
}

.close__contact a {
  font-weight: 600;
  color: var(--color-primary);
}

.close__contact a:hover {
  text-decoration: underline;
}

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

.site-footer {
  width: 100%;
  background: var(--color-surface-container-low);
  border-top: 1px solid var(--color-outline-variant);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.footer-about p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-on-surface-variant);
}

.footer-col h4 {
  position: relative;
  margin: 0 0 4px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-surface);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}

.footer-col ul {
  margin-top: 8px;
  display: grid;
  gap: 0;
}

.footer-col a {
  display: inline-block;
  padding: 10px 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-on-surface-variant);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--color-outline-variant);
  font-size: 14px;
  color: var(--color-on-surface-variant);
}

/* ---------- Sub pages ---------- */

.page-head {
  width: 100%;
  background: var(--color-surface-container-lowest);
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 56px 0 48px;
}

.page-head__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.page-head h1 {
  font-size: 36px;
  line-height: 44px;
}

.page-head p {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 27px;
  color: var(--color-on-surface-variant);
}

.form-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.panel {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px;
}

.panel h2 {
  font-size: 22px;
  line-height: 30px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.field .hint {
  font-weight: 400;
  color: var(--color-outline);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-sm);
  background: var(--color-surface-container-lowest);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 125, 134, 0.15);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-status {
  font-size: 15px;
  color: var(--color-on-surface-variant);
}

.form-status.is-error {
  color: var(--color-error);
}

.form-status.is-success {
  color: var(--color-primary);
}

.side-block + .side-block {
  margin-top: 24px;
}

.side-block h3 {
  font-size: 17px;
  line-height: 25px;
}

.side-block p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

.side-block li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--color-outline-variant);
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

.side-block li:last-child {
  border-bottom: 0;
}

.side-block li strong {
  font-weight: 700;
  color: var(--color-on-surface);
}

.side-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.side-block p + p {
  margin-top: 16px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-outline-variant);
  font-size: 15px;
}

.contact-list li::before {
  display: none;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  color: var(--color-outline);
}

.contact-list a,
.contact-list strong {
  font-weight: 600;
  color: var(--color-on-surface);
  text-align: right;
}

/* ---------- Promo band: the product illustrations ---------- */

/* One framed figure per page. The illustrations carry their own colours, so
   they get the same 1px frame and resting shadow as the cards - they read as
   part of the system, not pasted-on artwork. */

.promo {
  max-width: 1000px;
  margin: 0 auto;
}

.promo-frame {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(25, 28, 29, 0.05), 0 10px 24px rgba(25, 28, 29, 0.08);
}

/* Hero media: the illustration inside the hero's own rhythm (mobile first). */
.hero-media {
  width: 100%;
  max-width: 640px;
  margin: 12px auto 0;
}

/* Who it serves: illustration and pull quote read as one spread. */
.promo-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-top: 32px;
}

.promo-story .pullquote {
  margin-top: 0;
}

/* How it works: the shot beside a panel that names what it shows. */
.promo.promo-spotlight {
  max-width: none;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}

.promo-panel {
  background: var(--color-primary-tint);
  border: 1px solid var(--color-primary-fixed);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
}

.promo-panel h3 {
  font-size: 20px;
  line-height: 28px;
  color: var(--color-primary);
}

.promo-panel p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

/* Capabilities: the shot sits inside the page head, beside the title. */
.page-head--with-media .page-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 28px 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .promo-story,
  .promo.promo-spotlight,
  .page-head--with-media .page-head__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer legal nav ---------- */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-legal a {
  color: var(--color-on-surface-variant);
  transition: color 0.15s ease;
}

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

/* ---------- Legal documents (privacy, terms) ---------- */

.legal-body {
  max-width: 760px;
}

.legal-body h2 {
  margin-top: 36px;
  font-size: 21px;
  line-height: 29px;
}

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

.legal-body h3 {
  margin-top: 24px;
  font-size: 17px;
  line-height: 25px;
}

.legal-body p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-on-surface-variant);
}

.legal-body ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal-body li {
  margin-top: 8px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-on-surface-variant);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(25, 28, 29, 0.05), 0 6px 16px rgba(25, 28, 29, 0.06);
}

.team-card__photo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--color-primary-fixed);
  object-fit: cover;
}

.team-card__photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.team-card__name {
  margin-top: 16px;
  font-size: 18px;
  line-height: 26px;
}

.team-card__role {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.team-card__bio {
  margin-top: 12px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-surface-variant);
}

.team-empty {
  max-width: 60ch;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-on-surface-variant);
}

.team-empty a {
  color: var(--color-primary);
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .legal-body h2 {
    font-size: 19px;
    line-height: 27px;
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 18px;
    line-height: 29px;
  }

  .section-head h2 {
    font-size: 34px;
    line-height: 42px;
  }

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

  .config-strip div:nth-child(3) {
    border-left: none;
  }

  .config-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--color-outline-variant);
  }
}

@media (min-width: 1000px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero h1 {
    font-size: 50px;
  }

  /* Hero with media: the claim and the product shot share one composition -
     the illustration is the hero, not a band hung underneath it. */
  .hero--media .hero-inner {
    max-width: var(--container-max);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
    text-align: left;
  }

  .hero--media .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero--media .hero-actions {
    justify-content: flex-start;
  }

  .hero--media .hero-media {
    margin: 0;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .split,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* The desktop nav bar measures ~885px with all six labels; between 861px
   and 1000px the links and the CTA used to wrap into each other. The bar
   now becomes a menu button below 1000px, matching the hero split above. */
@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--color-surface-container-lowest);
    border-top: 1px solid var(--color-outline-variant);
    border-bottom: 1px solid var(--color-outline-variant);
    box-shadow: 0 14px 24px rgba(25, 28, 29, 0.1);
    /* In a short landscape viewport the last items stay reachable. */
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--color-outline-variant);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .btn-solid {
    margin-top: 12px;
    padding: 14px 18px;
    text-align: center;
    border-bottom: none;
  }
}

/* Audience cards keep three columns on tablets only while each still has
   a comfortable measure; two columns from 640px, one below. */
@media (max-width: 899px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .reason-card__title {
    font-size: 19px;
  }

  .section {
    padding: 56px 0;
  }

  .close {
    padding: 56px 0 64px;
  }

  .page-head {
    padding: 44px 0 40px;
  }

  .page-head h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 24px;
  }

  /* iOS zooms the viewport into any field under 16px on focus, which
     breaks the layout until the visitor taps away. */
  .field input,
  .field textarea {
    font-size: 16px;
  }
}

/* Readability floor for phones and tablets: the copy the design set at
   15px runs at 16/26, and the small print moves from 14px to 15px. On a
   hand-held screen these were the strings people actually have to read -
   contact rows, card bodies, step notes, footnotes. */
@media (max-width: 860px) {
  .reason-card__body,
  .reason-card--compact .reason-card__body,
  .step p,
  .note-box p,
  .stat-note,
  .side-block p,
  .side-block li,
  .contact-list li,
  .team-card__bio,
  .promo-panel p,
  .pullquote span,
  .config-strip div,
  .footer-col a,
  .close__contact,
  .form-status {
    font-size: 16px;
    line-height: 26px;
  }

  .hero-reassure,
  .hero-audience,
  .footer-about p,
  .footer-bottom,
  .log-card-head,
  .log-card-foot,
  .field label,
  .field .hint,
  .team-card__role {
    font-size: 15px;
    line-height: 23px;
  }
}

@media (max-width: 639px) {
  .grid-3,
  .grid-2,
  .stat-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stats read stacked on a phone; trim the box so it stays a stat card
     rather than a banner. */
  .stat {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .config-strip {
    grid-template-columns: 1fr;
  }

  .config-strip div {
    border-left: none;
  }

  .config-strip div:nth-child(n + 2) {
    border-top: 1px solid var(--color-outline-variant);
  }

  .hero h1 {
    font-size: 30px;
  }

  /* Two CTAs of unequal width stack awkwardly on a phone: make them full
     width so the pair reads as one column of thumb-sized targets. `.hero-copy`
     is a centre-aligned flex column, so without an explicit width the row
     shrink-wraps to its widest button (~184px) instead of filling the screen. */
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-solid,
  .hero-actions .btn-outline {
    text-align: center;
  }

  .section-head h2,
  .close__title {
    font-size: 26px;
    line-height: 34px;
  }

  /* Cards keep their rhythm but give the text back some width. */
  .reason-card {
    padding: 24px;
  }

  /* Tighter cells keep the comparison table readable without a horizontal
     scroll at phone widths. */
  th,
  td {
    padding: 12px 14px;
  }

  tbody th {
    width: auto;
  }

  .log-row {
    grid-template-columns: 64px 1fr;
  }

  .log-row .r {
    grid-column: 2;
  }

  /* The legal line no longer fights the credits for one row: the three
     parts stack, centred. */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-legal {
    justify-content: center;
    gap: 4px 16px;
  }

  .footer-legal a {
    padding: 6px 0;
  }
}

/* Narrow phones (iPhone SE class): a little more of the viewport goes to
   content instead of gutters. */
@media (max-width: 400px) {
  .container,
  .page-head__inner,
  .footer-grid,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .reason-card {
    padding: 20px;
  }

  .stat {
    padding: 20px 14px;
  }

  .nav {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
