/* ppftec.com: one stylesheet, self-hosted fonts, no scripts, no third parties.
   Palette and type come from the PPFTEC mark: navy square, white P, blue dot. */

@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Named colours */
  --ink: #0e1a2b;        /* text, footer */
  --slate: #475569;      /* secondary text */
  --navy: #13294a;       /* contact band, mark square */
  --blue: #2a5797;       /* links, buttons, live status */
  --dot: #7fb2ff;        /* the dot of the mark: decorative only */
  --mist: #f2f5f9;       /* alternate sections, table heads */
  --line: #dbe2ea;       /* hairlines */
  --paper: #ffffff;

  /* Roles (doc pages use these names) */
  --bg: var(--paper);
  --surface: var(--paper);
  --surface-2: var(--mist);
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: var(--line);
  --accent: var(--blue);
  --accent-strong: #1d4278;
  --accent-soft: #e9f0fa;
  --code-bg: #eef2f6;
  --focus: #2f6fd6;
  --shadow: 0 1px 2px rgb(14 26 43 / 5%), 0 8px 24px rgb(14 26 43 / 7%);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --measure: 70ch;
  --page: 1160px;
  --gutter: 20px;

  --font: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  margin-top: 2em;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

p,
ul,
ol,
table,
pre {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 600;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.12em 0.38em;
}

kbd {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  z-index: 20;
}

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

/* The dot of the mark, used as the full stop of a page's main heading. */
.dot {
  color: var(--dot);
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

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

.brand img {
  width: 30px;
  height: 30px;
}

.site-nav {
  margin-left: auto;
}

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

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--dot);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.lang-switch a {
  padding: 7px 11px;
  color: var(--slate);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="true"] {
  background: var(--navy);
  color: #fff;
}

main {
  padding: 48px 0 80px;
}

main.landing {
  padding: 0;
}

/* Shared page parts (product, support, consulting, about pages) */

.hero {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 8px 0 8px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
}

.eyebrow {
  font: 500 0.75rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 0.9em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.note {
  font-size: 0.95rem;
  color: var(--slate);
}

.actions + .note {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 28px 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}

.card h2,
.card h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.product-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.product-card img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
}

.figure {
  margin: 36px 0;
}

.figure img {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

.figure figcaption {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 12px;
}

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  margin: 0 0 1.2em;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Long-form documents (privacy, terms, support) */

.doc {
  max-width: var(--measure);
}

.doc h2 {
  padding-top: 0.2em;
}

.doc .meta {
  color: var(--slate);
  font-size: 0.95rem;
}

.toc {
  background: var(--mist);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin: 28px 0 8px;
}

.toc h2 {
  font: 500 0.75rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin: 0 0 0.8em;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 0.95rem;
}

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

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

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

td code {
  overflow-wrap: anywhere;
}

dl.faq dt {
  font-weight: 600;
  margin-top: 1.3em;
}

dl.faq dd {
  margin: 0.3em 0 0;
}

dl.details {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 8px 24px;
  max-width: var(--measure);
}

dl.details dt {
  color: var(--slate);
}

dl.details dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.founder {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.founder-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

/* Landing page */

.section {
  padding: 88px 0;
}

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

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-top: 0;
}

.section-head p {
  color: var(--slate);
  margin: 0;
}

.intro {
  padding: 80px 0 88px;
  border-bottom: 1px solid var(--line);
}

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

.intro h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 0.45em;
  text-wrap: balance;
}

.intro .lead {
  max-width: 50ch;
}

/* Signature: the product catalogue, a spec plate listing every product with its real status. */

.catalogue {
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.catalogue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--navy);
  color: #c9d6e8;
  font: 500 0.72rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.catalogue ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalogue li {
  margin: 0;
}

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

.catalogue a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.catalogue a:hover {
  background: var(--mist);
}

.catalogue img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.catalogue .name {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.catalogue .platform {
  display: block;
  font: 400 0.78rem/1.4 var(--mono);
  color: var(--slate);
}

/* Status: the fill of the dot encodes the state. Solid = live, half = in review, ring = coming. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 0.74rem/1.2 var(--mono);
  color: var(--slate);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  flex: none;
}

.status.live {
  color: var(--blue);
}

.status.live::before {
  background: var(--blue);
}

.status.review::before {
  background: linear-gradient(90deg, var(--blue) 50%, transparent 50%);
}

.status.soon::before {
  border-color: #94a3b8;
}

/* A narrow catalogue puts the status under the product name instead of beside it. */
@container (max-width: 470px) {
  .catalogue a {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .catalogue .status {
    grid-column: 2;
  }
}

/* Product rows: screenshot and text side by side, alternating. */

.features {
  display: grid;
  gap: 96px;
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature-text h3 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

.feature-text .title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-text .title-row img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.feature-text p {
  color: var(--slate);
  max-width: 52ch;
}

.feature-meta {
  font: 400 0.82rem/1.5 var(--mono);
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
  max-width: 52ch;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  font-weight: 500;
}

.feature-shot {
  margin: 0;
}

.feature-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 2px 4px rgb(14 26 43 / 4%), 0 24px 48px -12px rgb(14 26 43 / 18%);
}

/* Consulting */

.split {
  display: grid;
  gap: 40px;
}

.split h2 {
  margin-top: 0;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin: 0 0 0.35em;
  font-size: 1.1rem;
}

.service-list p {
  margin: 0;
  color: var(--slate);
}

/* Founder strip */

.founder-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 760px;
}

.founder-strip img {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.founder-strip p {
  margin: 0;
  color: var(--slate);
}

.founder-strip .who {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Contact band and footer: the dark close of every page */

.contact-band {
  background: var(--navy);
  color: #d5deea;
  padding: 80px 0;
}

.contact-band h2 {
  color: #fff;
  margin: 0 0 0.4em;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  letter-spacing: -0.025em;
}

.contact-band p {
  margin: 0;
  max-width: 56ch;
}

.contact-band .mail {
  display: inline-block;
  margin-top: 28px;
  font: 500 clamp(1.15rem, 1rem + 0.8vw, 1.6rem)/1.3 var(--mono);
  color: #fff;
  text-decoration-color: var(--dot);
  text-decoration-thickness: 2px;
}

.contact-band .mail:hover {
  color: var(--dot);
}

.site-footer {
  background: var(--ink);
  color: #9aa8bb;
  font-size: 0.9rem;
  padding: 56px 0 40px;
}

.site-footer a {
  color: #d5deea;
  text-decoration: none;
}

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

.footer-cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding-bottom: 36px;
  border-bottom: 1px solid #22324a;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 10px;
}

.footer-brand strong {
  color: #fff;
  letter-spacing: 0.06em;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 30ch;
}

.footer-col h2 {
  font: 500 0.72rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7f8ea3;
  margin: 0 0 14px;
}

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

.footer-col li + li {
  margin-top: 8px;
}

.footer-legal {
  padding-top: 24px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-legal p {
  margin: 0 0 6px;
  max-width: 100ch;
}

.footer-legal .ids {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #b6c2d2;
}

/* Responsive */

@media (min-width: 720px) {
  .hero.with-icon {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 28px;
  }

  .hero.with-icon .hero-icon {
    margin-top: 6px;
  }

  main {
    padding-top: 64px;
  }

  main.landing {
    padding-top: 0;
  }
}

@media (min-width: 960px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .feature {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }

  .feature:nth-child(even) .feature-text {
    order: 2;
  }

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
  }

  .footer-cols {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
  }

  .lang-switch {
    order: 1;
    margin-left: auto;
  }

  .site-nav {
    order: 2;
    flex-basis: 100%;
    margin-left: 0;
  }

  /* One line that scrolls sideways, so the sticky header never grows to two rows. */
  .site-nav {
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    gap: 4px 20px;
    white-space: nowrap;
  }

  /* App pages: four links, all visible on two rows, so the current page is never hidden.
     The header scrolls away with the page instead of staying fixed at twice the height. */
  .site-header.app-nav {
    position: static;
  }

  .site-header.app-nav .site-nav {
    overflow-x: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .site-header.app-nav .site-nav ul {
    flex-wrap: wrap;
    white-space: normal;
    gap: 2px 20px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Finger-sized tap areas; the negative margin keeps the header height unchanged. */
  .site-nav a {
    display: inline-block;
    padding: 12px 0;
    margin: -8px 0;
  }

  .lang-switch a {
    padding: 9px 13px;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
    color: var(--blue);
  }

  .intro {
    padding: 48px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .features {
    gap: 64px;
  }

  .catalogue a {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .catalogue img {
    width: 36px;
    height: 36px;
  }

  .catalogue .status {
    grid-column: 2;
  }

  .founder,
  .founder-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  dl.details {
    grid-template-columns: 1fr;
    gap: 0;
  }

  dl.details dd {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .site-nav,
  .lang-switch,
  .skip-link,
  .contact-band {
    display: none;
  }

  .site-header {
    position: static;
  }
}

/* Inner pages: keep running text at a readable line length. */
main:not(.landing) > .wrap > p,
main:not(.landing) > .wrap > ul,
main:not(.landing) > .wrap > ol,
main:not(.landing) > .wrap > h2 {
  max-width: var(--measure);
}
