/*
  Meier Tech Solutions site styles.

  Contents
    1. Design tokens (light theme, dark theme)
    2. Base elements
    3. Layout helpers
    4. Header and navigation
    5. Buttons, badges, chips
    6. Hero and page hero
    7. Sections, cards and lists
    8. Page-specific blocks
    9. Footer
   10. User preferences (motion, contrast, forced colors, print)

  Accessibility rules this file must keep:
    - Text contrast is at least 7:1 in every theme (WCAG 1.4.6, Level AAA).
    - Interactive targets are at least 44 by 44 CSS pixels (WCAG 2.5.5).
    - Focus is always visible, 3px thick (WCAG 2.4.13).
    - No inline styles: the content security policy blocks them.
*/

/* ---------- 1. Design tokens ---------- */

:root {
  color-scheme: light;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-subtle: #f3f6fb;
  --surface: #ffffff;
  --border: #d5dce8;
  --border-strong: #6b7a90;
  --text: #0c1524;
  --text-muted: #3b4861;
  --link: #0b46a0;
  --link-hover: #072f6e;
  --accent: #0b46a0;
  --accent-hover: #08357a;
  --on-accent: #ffffff;
  --accent-soft: #e4edfb;
  --accent-soft-text: #0b3b87;
  --tag-bg: #eaeff7;
  --badge-bg: #fdf0d5;
  --badge-text: #5c3a00;
  --focus: #0b46a0;
  --brand-tile: #0b46a0;
  --shadow: 0 1px 2px rgb(12 21 36 / 6%), 0 8px 24px rgb(12 21 36 / 8%);

  /* The dark bands (hero, call to action) keep one look in both themes. */
  --band-from: #0a1a38;
  --band-to: #10306a;
  --band-text: #ffffff;
  --band-muted: #d3def2;
  --band-accent: #8fdcf8;

  --radius-s: 0.5rem;
  --radius-m: 0.875rem;
  --radius-l: 1.25rem;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(3.5rem, 8vw, 6rem);
}

/* Dark tokens apply when the visitor chose dark, or the system is dark and
   the visitor has not chosen light. The two blocks below must stay identical. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a101c;
  --bg-subtle: #0f1727;
  --surface: #131d30;
  --border: #26334b;
  --border-strong: #7486a3;
  --text: #edf2fa;
  --text-muted: #b9c5d9;
  --link: #9cc4ff;
  --link-hover: #c6ddff;
  --accent: #9cc4ff;
  --accent-hover: #bcd7ff;
  --on-accent: #06142b;
  --accent-soft: #15284a;
  --accent-soft-text: #b5d2ff;
  --tag-bg: #1b2740;
  --badge-bg: #3a2a05;
  --badge-text: #ffdf9e;
  --focus: #9cc4ff;
  --brand-tile: #1a5fd0;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
  --band-from: #070d18;
  --band-to: #0f2552;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a101c;
    --bg-subtle: #0f1727;
    --surface: #131d30;
    --border: #26334b;
    --border-strong: #7486a3;
    --text: #edf2fa;
    --text-muted: #b9c5d9;
    --link: #9cc4ff;
    --link-hover: #c6ddff;
    --accent: #9cc4ff;
    --accent-hover: #bcd7ff;
    --on-accent: #06142b;
    --accent-soft: #15284a;
    --accent-soft-text: #b5d2ff;
    --tag-bg: #1b2740;
    --badge-bg: #3a2a05;
    --badge-text: #ffdf9e;
    --focus: #9cc4ff;
    --brand-tile: #1a5fd0;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
    --band-from: #070d18;
    --band-to: #0f2552;
  }
}

/* ---------- 2. Base elements ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.45rem + 3.6vw, 3.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.375rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 650;
}

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

p {
  text-wrap: pretty;
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 0.14em;
}

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

/* The main region takes focus from the skip link; it needs no outline of its own. */
main:focus {
  outline: none;
}

svg {
  flex-shrink: 0;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
}

/* ---------- 3. Layout helpers ---------- */

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

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--on-accent);
  outline-color: var(--text);
  transform: none;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

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

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.prose {
  max-width: 44rem;
}

/* On a container, keep the full-width box (so text lines up with the header)
   and limit the line length of what is inside it instead. */
.container.prose {
  max-width: calc(var(--container) + 2 * var(--gutter));
}

.container.prose > * {
  max-width: 44rem;
}

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

.prose > h2:first-child {
  margin-top: 0;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fine-print {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.bullets {
  padding-left: 1.25rem;
}

.bullets li {
  margin-bottom: 0.5em;
  padding-left: 0.25rem;
}

.bullets li::marker {
  color: var(--border-strong);
}

/* Dark bands: scoped token overrides keep text, links and focus readable. */
.on-dark {
  --text: var(--band-text);
  --text-muted: var(--band-muted);
  --link: var(--band-accent);
  --link-hover: #ffffff;
  --focus: #ffffff;
  background-color: var(--band-from);
  background-image: linear-gradient(135deg, var(--band-from) 0%, var(--band-to) 100%);
  color: var(--band-text);
}

/* ---------- 4. Header and navigation ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-mark__tile {
  fill: var(--brand-tile);
}

.logo-mark__letter {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-s);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

/* The current page is marked by weight and an underline bar, not by color alone. */
.site-nav__link[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -3px 0 var(--link);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-subtle);
}

.theme-switch {
  display: none;
  padding: 0.1875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
}

.js .theme-switch {
  display: inline-flex;
}

.theme-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.theme-switch__option:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.theme-switch__option[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* Small screens: the menu collapses behind a button, but only when script is
   available to open it. Without script the links simply wrap under the logo. */
@media (max-width: 55.99rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
  }

  .js .site-nav[data-open] {
    display: flex;
  }

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

  .js .site-nav__link {
    display: flex;
  }

  .js .theme-switch {
    align-self: flex-start;
  }
}

/* ---------- 5. Buttons, badges, chips ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.button--ghost {
  border-color: currentColor;
  color: var(--text);
}

.button--ghost:hover {
  background: rgb(255 255 255 / 12%);
  color: var(--text);
}

.button--outline {
  border-color: var(--border-strong);
  color: var(--text);
}

.button--outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text);
  color: var(--text);
}

.button--wrap {
  overflow-wrap: anywhere;
}

.on-dark .button--primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a1a38;
}

.on-dark .button--primary:hover {
  background: #dbe7fb;
  border-color: #dbe7fb;
  color: #0a1a38;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  color: var(--accent-soft-text);
}

.icon-chip .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-chip--large {
  width: 3.5rem;
  height: 3.5rem;
}

.icon-chip--large .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--tag-bg);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- 6. Hero and page hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--band-accent);
}

.hero h1 {
  max-width: 16ch;
}

.hero .lead {
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero__note .icon {
  margin-top: 0.2em;
}

.hero-art {
  display: none;
  width: 100%;
  max-width: 32.5rem;
  height: auto;
  justify-self: end;
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .hero-art {
    display: block;
  }
}

.hero-art__grid-dot {
  fill: rgb(255 255 255 / 10%);
}

.hero-art__glow-start {
  stop-color: #3d8bff;
  stop-opacity: 0.4;
}

.hero-art__glow-end {
  stop-color: #3d8bff;
  stop-opacity: 0;
}

.hero-art__wire {
  fill: none;
  stroke: var(--band-accent);
  stroke-width: 2;
  stroke-opacity: 0.6;
}

.hero-art__node {
  fill: rgb(13 31 66 / 88%);
  stroke: rgb(255 255 255 / 22%);
  stroke-width: 1.25;
}

.hero-art__chip {
  fill: rgb(143 220 248 / 16%);
}

.hero-art__icon {
  fill: none;
  stroke: var(--band-accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art__label {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 650;
}

.hero-art__port {
  fill: var(--band-accent);
}

.hero-art__hub {
  fill: #1a5fd0;
  stroke: rgb(255 255 255 / 35%);
  stroke-width: 0.5;
}

.hero-art__hub-letter {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
}

.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- 7. Sections, cards and lists ---------- */

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

.section--subtle {
  background: var(--bg-subtle);
}

.section--tight {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.section--tight + .section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.section__header {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header .lead {
  margin-bottom: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card p {
  color: var(--text-muted);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.card__title {
  margin-top: 1.25rem;
}

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

/* The whole card is the link target; the heading text is its name. */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__tagline {
  font-weight: 650;
}

.card p.card__tagline {
  color: var(--text);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--link);
  font-weight: 650;
}

.card--link:hover {
  border-color: var(--link);
  transform: translateY(-2px);
}

.card--link:hover .card__more {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@supports selector(:has(a)) {
  .card--link:has(a:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }

  .card--link .card__title a:focus-visible {
    outline: none;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  counter-reset: step;
}

.steps__item {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 3px solid var(--accent);
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps__item p,
.principle p,
.feature p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.principle h3 {
  margin-top: 1.25rem;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel--plain {
  background: transparent;
  box-shadow: none;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel__title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

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

.checklist .icon {
  margin-top: 0.2em;
  color: var(--link);
}

.facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.facts__row {
  display: grid;
  gap: 0.25rem 1.5rem;
}

@media (min-width: 40rem) {
  .facts:not(.facts--stacked) .facts__row {
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.facts dt {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.facts--stacked .facts__row + .facts__row {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ---------- 8. Page-specific blocks ---------- */

.toc {
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-subtle);
}

.toc__title {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.toc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
}

.service + .service,
.product + .product {
  border-top: 1px solid var(--border);
}

.service__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .service__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.service__intro h2,
.contact-card h2 {
  margin-top: 1.25rem;
}

.service__details {
  display: grid;
  gap: 1.5rem;
}

.service__details h3 {
  margin-bottom: 0.75rem;
}

.product__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.product__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.product__title-row h2 {
  margin: 0;
}

.product__tagline {
  margin: 0.375rem 0 0;
  font-size: 1.125rem;
  font-weight: 650;
}

.product__summary {
  margin-bottom: 2rem;
}

/* Two classes, to outrank the margin reset on ul[role="list"]. */
.grid.features {
  margin-bottom: 2rem;
}

.feature {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.product .facts {
  margin-bottom: 2rem;
}

.product__overview {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (min-width: 62rem) {
  .product__overview {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* App pages */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 0.75rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.page-hero .product__title-row {
  margin-bottom: 1rem;
}

.app-hero__tagline {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 650;
}

.feature-group + .feature-group {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.feature-group > h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.feature-group__summary {
  max-width: 44rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--bg-subtle);
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.shot--phone img {
  border-radius: var(--radius-l);
}

.shots {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.shots--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.shots--phone {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 17rem));
  justify-content: center;
}

.shots + .shots {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.shots:empty {
  display: none;
}

.prose h2:not(:first-child) {
  margin-top: 1.75em;
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.contact-tips {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.cta {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  margin-bottom: 0.375em;
}

.cta .lead {
  margin-bottom: 0;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.cta__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- 9. Footer ---------- */

.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

@media (min-width: 56rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

.site-footer__about p {
  max-width: 26rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.site-footer__heading {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__link,
.site-footer__detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.site-footer__link {
  color: var(--text);
  font-weight: 600;
}

.site-footer__detail {
  color: var(--text-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

/* ---------- 10. User preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .card--link:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: var(--border-strong);
  }

  .card,
  .panel,
  .feature,
  .toc,
  .contact-card {
    border-width: 2px;
  }
}

/* Windows High Contrast and similar modes replace colors; keep shapes and state visible. */
@media (forced-colors: active) {
  .button,
  .badge,
  .tag,
  .icon-chip {
    border: 1px solid currentColor;
  }

  .theme-switch__option[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -4px;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom: 3px solid Highlight;
  }

  .on-dark {
    background-image: none;
    border-block: 1px solid CanvasText;
  }
}

@media print {
  .site-header .nav-toggle,
  .site-nav,
  .skip-link,
  .hero-art,
  .cta {
    display: none !important;
  }

  .on-dark {
    background: none;
    color: #000000;
    --text: #000000;
    --text-muted: #000000;
    --link: #000000;
  }

  .card,
  .panel {
    box-shadow: none;
  }
}
