/* govreader.com
   Palette: Wealthreader navy + European gold on warm paper. Type: Newsreader (display) and
   DM Sans (text), both self-hosted. No inline styles anywhere: the CSP forbids them. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #071c30;
  --navy-800: #0a2540;
  --navy-700: #0f3554;
  --navy-600: #1b4d78;
  --gold-500: #d9a62e;
  --gold-400: #e7bd55;
  --gold-700: #8a6410;
  --gold-100: #f8efd6;
  --paper: #ffffff;
  --ivory: #faf7f0;
  --sand: #f1ebdd;
  --line: #e4dccb;
  --ink: #14212e;
  --slate: #4c5a68;
  --mist: #b9c6d4;
  --green-700: #17694a;
  --green-100: #e2f2e9;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 12px 32px -12px rgba(10, 37, 64, .18);
  --shadow-lift: 0 2px 4px rgba(10, 37, 64, .08), 0 24px 48px -16px rgba(10, 37, 64, .28);
  --header-height: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-500);
  color: var(--navy-800);
  font-weight: 600;
  border-radius: var(--radius-small);
}

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

/* Sprite symbols take their paint from the referencing element, so it is set here. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold-700);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--gold-400);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.button .icon {
  transition: transform .2s;
}

.button:hover .icon {
  transform: translateX(3px);
}

.button--small {
  min-height: 42px;
  padding: 9px 20px;
  font-size: .9375rem;
}

.button--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 28px -12px rgba(217, 166, 46, .7);
}

.button--gold:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
}

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

.button--primary:hover {
  background: var(--navy-800);
}

.button--ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--navy-700);
}

.button--ghost:hover {
  border-color: var(--navy-700);
}

.button--ghost-light {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.button--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}

.button[disabled] {
  opacity: .6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold-500);
  padding-bottom: 3px;
}

.link-arrow .icon {
  transition: transform .2s;
}

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

.link-arrow--light {
  color: #fff;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.link-row--center {
  justify-content: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-800);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .25s, box-shadow .25s;
}

.site-header.is-scrolled {
  background: rgba(10, 37, 64, .92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-height);
}

.brand {
  flex: none;
  display: block;
}

.brand__logo {
  width: 182px;
  height: auto;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__list {
  display: flex;
  gap: 4px;
}

.site-nav__link {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mist);
  font-size: .9688rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: #fff;
}

.site-nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, .08);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-menu {
  position: relative;
}

.lang-menu__summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--mist);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  list-style: none;
}

.lang-menu__summary::-webkit-details-marker {
  display: none;
}

.lang-menu__summary:hover {
  color: #fff;
}

.lang-menu__chevron {
  width: 1em;
  height: 1em;
  transition: transform .2s;
}

.lang-menu[open] .lang-menu__chevron {
  transform: rotate(180deg);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  min-width: 180px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.lang-menu__list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-small);
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}

.lang-menu__list a:hover {
  background: var(--ivory);
}

.lang-menu__list a[aria-current="true"] {
  color: var(--gold-700);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

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

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

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(217, 166, 46, .16), transparent 62%),
    radial-gradient(760px 520px at 8% 110%, rgba(27, 77, 120, .55), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero > .container,
.page-hero > .container {
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
}

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

.hero__lead {
  max-width: 36em;
  margin-top: 26px;
  color: var(--mist);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--mist);
  font-size: .9375rem;
}

.pulse {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #4ad08f;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 208, 143, .5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(.6);
    opacity: 1;
  }

  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero__visual {
  position: relative;
  min-height: 570px;
}

.doc-card {
  position: absolute;
  border-radius: 18px;
}

.doc-card--back {
  top: 0;
  right: 0;
  width: 74%;
  padding: 22px 24px 150px;
  background: rgba(7, 28, 48, .82);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-lift);
  transform: rotate(2.5deg);
}

.doc-card__code {
  color: #d6e2ee;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.7;
  overflow: hidden;
}

.doc-card--front {
  left: 0;
  bottom: 0;
  width: 82%;
  padding: 26px 28px 22px;
  background: linear-gradient(180deg, #fff, var(--ivory));
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .5);
  transform: rotate(-1.5deg);
}

.doc-card__head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.doc-card__seal,
.body-card__seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
}

.doc-card__source {
  color: var(--gold-700);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.doc-card__head > div {
  min-width: 0;
}

.doc-card__title {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
}

.doc-card__fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px 20px;
  padding-block: 18px;
}

.doc-card__wide {
  grid-column: 1 / -1;
}

.doc-card__fields dt {
  color: var(--slate);
  font-size: .75rem;
}

.doc-card__fields dd {
  font-weight: 600;
  font-size: .9688rem;
}

.doc-card__mono {
  font-family: var(--font-mono);
  font-size: .8438rem !important;
  letter-spacing: .04em;
}

.doc-card__checks {
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.doc-card__checks li {
  display: flex;
  gap: 9px;
  align-items: center;
}

.doc-card__checks .icon {
  padding: 2px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
}

.doc-card__sample {
  margin-top: 14px;
  color: var(--slate);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tok-key {
  color: #9ecbff;
}

.tok-str {
  color: #f0cf7e;
}

.tok-lit {
  color: #7fe0b3;
}

.tok-com {
  color: #7f93a8;
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 3fr);
  gap: 16px 40px;
  align-items: center;
  padding-block: 26px 34px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--mist);
  font-size: .9063rem;
}

.trust__title {
  color: #fff;
  font-weight: 600;
}

.trust__list {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 12px 32px;
}

.trust__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.trust__list .icon {
  margin-top: 1px;
}

.trust__list .icon {
  color: var(--gold-400);
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(56px, 8vw, 104px);
}

.page-hero__title {
  max-width: 18em;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.018em;
}

.page-hero__lead {
  max-width: 40em;
  margin-top: 22px;
  color: var(--mist);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.page-hero--center {
  padding-block: clamp(96px, 14vw, 180px);
  text-align: center;
}

.page-hero--center .page-hero__title,
.page-hero--center .page-hero__lead {
  margin-inline: auto;
}

.page-hero--center .link-row {
  margin-top: 36px;
}

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

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

.section--tint {
  background: var(--ivory);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
}

.section__head {
  max-width: 46em;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  margin-bottom: 0;
  text-align: left;
}

.section__title {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
}

.section__lead {
  margin-top: 18px;
  color: var(--slate);
  font-size: 1.125rem;
}

.section--dark .section__lead {
  color: var(--mist);
}

.section__head--left .link-arrow {
  margin-top: 28px;
}

.section__more {
  margin-top: clamp(32px, 4vw, 48px);
  justify-content: center;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

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

/* ---------- Features, facts, steps ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

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

.feature h2,
.feature h3 {
  margin-top: 20px;
  font-size: 1.375rem;
}

.feature p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 1rem;
}

.feature__icon,
.case-card__icon,
.case-tile__icon,
.europe__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--navy-700);
}

.feature__icon .icon,
.case-card__icon .icon,
.case-tile__icon .icon,
.europe__icon .icon {
  width: 26px;
  height: 26px;
}

.feature--card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.facts > div {
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
}

.facts > div + div {
  border-left: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  color: var(--navy-700);
}

.facts dd {
  margin-top: 10px;
  color: var(--slate);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--navy-700);
}

.step__number {
  display: block;
  color: var(--gold-700);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.step h3 {
  margin-top: 16px;
  font-size: 1.3125rem;
}

.step p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 1rem;
}

/* ---------- Coverage teaser ---------- */

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

.body-list__item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.body-list__short {
  color: var(--gold-700);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.body-list__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 550;
  line-height: 1.2;
}

.body-list__count {
  color: var(--slate);
  font-size: .9375rem;
  white-space: nowrap;
}

/* ---------- Use case tiles and cards ---------- */

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

.case-tile {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.case-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow);
}

.case-tile__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  line-height: 1.2;
}

.case-tile__arrow {
  color: var(--gold-700);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-card__title {
  margin-top: 22px;
  font-size: 1.625rem;
}

.case-card__text {
  margin-top: 12px;
  color: var(--slate);
}

.case-card__label {
  margin-top: 24px;
  color: var(--gold-700);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-card__docs {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: .9688rem;
}

.case-card__docs li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.case-card__docs .icon {
  margin-top: 3px;
  color: var(--navy-600);
}

/* ---------- Developers ---------- */

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--gold-400);
}

.code-window {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-lift);
  color: #d6e2ee;
  overflow: hidden;
}

.code-window__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}

.code-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.code-window__bar p {
  margin-left: 10px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .75rem;
}

.code-window pre {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .8438rem;
  line-height: 1.75;
  tab-size: 2;
}

.dev-steps {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.dev-step {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.dev-step h2 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.dev-step p {
  margin-top: 12px;
  color: var(--slate);
}

.dev-step .dev-step__note {
  font-size: .875rem;
  font-style: italic;
}

/* ---------- Coverage page ---------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-bottom: clamp(32px, 4vw, 48px);
  color: var(--slate);
  font-size: .9375rem;
}

.legend li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--connected {
  background: var(--green-100);
  color: var(--green-700);
}

.status--roadmap {
  background: var(--gold-100);
  color: var(--gold-700);
}

.chip {
  background: var(--sand);
  color: var(--slate);
  font-weight: 500;
}

.country-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.country-title__code {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.body-card {
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.body-card__head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.body-card__name {
  font-size: 1.5rem;
}

.body-card__short {
  margin-left: 6px;
  color: var(--gold-700);
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  vertical-align: middle;
}

.body-card__desc {
  margin-top: 4px;
  color: var(--slate);
  font-size: .9688rem;
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding: 20px clamp(20px, 3vw, 32px);
}

.doc-row + .doc-row {
  border-top: 1px solid var(--line);
}

.doc-row__label {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.doc-row__official {
  margin-top: 2px;
  color: var(--gold-700);
  font-size: .875rem;
  font-style: italic;
}

.doc-row__desc {
  margin-top: 6px;
  color: var(--slate);
  font-size: .9688rem;
}

.doc-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: flex-end;
  max-width: 340px;
}

.doc-row__link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--navy-600);
  font-size: .8438rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.doc-row__link .icon {
  width: 1em;
  height: 1em;
}

.europe {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
}

.europe__title {
  font-size: 1.625rem;
}

.europe p {
  max-width: 48em;
  margin-top: 10px;
  color: var(--slate);
}

.europe .link-arrow,
.europe .link-row {
  margin-top: 20px;
}

.europe .link-row .link-arrow {
  margin-top: 0;
}

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

.cta {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(217, 166, 46, .2), transparent 65%),
    var(--navy-700);
  color: #fff;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(48px, 7vw, 88px);
}

.cta__title {
  max-width: 16em;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.cta__text {
  max-width: 38em;
  margin-top: 12px;
  color: var(--mist);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field__label {
  font-size: .9063rem;
  font-weight: 600;
}

.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.field__input:focus {
  outline: 0;
  border-color: var(--navy-700);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(15, 53, 84, .12);
}

.field__input--area {
  min-height: 150px;
  resize: vertical;
}

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

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--slate);
  font-size: .9375rem;
}

.check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--navy-700);
}

.check a {
  color: var(--navy-700);
  font-weight: 600;
  text-underline-offset: 3px;
}

.is-invalid .field__input,
.is-invalid.check {
  border-color: #b3261e;
  color: #b3261e;
}

.form .button {
  justify-self: start;
}

.form-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 500;
}

.form-notice .icon {
  margin-top: 3px;
}

.form-notice--ok {
  background: var(--green-100);
  color: var(--green-700);
}

.form-notice--error {
  background: #fbe9e7;
  color: #8c1d18;
}

.contact__aside {
  display: grid;
  gap: 24px;
}

.contact-box {
  padding: clamp(24px, 3vw, 32px);
  background: var(--navy-800);
  border-radius: var(--radius);
  color: #fff;
}

.contact-box h2 {
  font-size: 1.375rem;
}

.contact-box__steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  counter-reset: next;
  color: var(--mist);
}

.contact-box__steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: next;
}

.contact-box__steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 600;
}

.contact-box--plain {
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--ink);
}

.contact-box__list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-box__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-box__list .icon {
  margin-top: 4px;
  color: var(--gold-700);
}

.contact-box__list a {
  text-underline-offset: 3px;
}

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

.site-footer {
  background: var(--navy-900);
  color: var(--mist);
  font-size: .9375rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(48px, 6vw, 80px) 40px;
}

.site-footer__brand p {
  max-width: 22em;
  margin-top: 18px;
}

.site-footer__column h2 {
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer__column ul {
  display: grid;
  gap: 10px;
}

.site-footer a {
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: grid;
  gap: 10px;
  padding-block: 28px 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8438rem;
}

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

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

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

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

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

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

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: 28px var(--gutter) 40px;
    background: var(--navy-800);
    overflow-y: auto;
  }

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

  .nav-open {
    overflow: hidden;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
  }

  .site-nav__link[aria-current="page"] {
    background: none;
    color: var(--gold-400);
  }

  .site-nav__actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }

  .site-nav__actions .button {
    min-height: 52px;
  }

  .lang-menu__summary {
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
  }

  .lang-menu__list {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .hero__inner,
  .split,
  .dev-step,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    min-height: 500px;
    max-width: 520px;
  }

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

  .section__head--left {
    margin-bottom: 8px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  /* Long compounds (German, Dutch) must break rather than overflow. */
  h1,
  h2,
  h3,
  h4 {
    hyphens: auto;
  }

  .feature-grid,
  .feature-grid--three,
  .steps,
  .case-grid,
  .case-list,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .facts > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .body-list__item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .body-list__count {
    grid-column: 2;
  }

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

  .doc-row__meta {
    justify-content: flex-start;
    max-width: none;
  }

  .body-card__head,
  .europe {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__visual {
    min-height: 560px;
  }

  .doc-card--back {
    width: 90%;
  }

  .doc-card--front {
    width: 94%;
    padding: 22px 20px 18px;
  }

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

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

  .cta__inner .button,
  .hero__actions .button {
    width: 100%;
  }
}
