/*
 * IRL StreamGate — website styles
 * Colours, spacing, radii and type come only from tokens.css (custom properties).
 * Mobile first; dark is the default, light follows prefers-color-scheme (handled by the tokens).
 */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see ../fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Rubik-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Rubik-Bold.ttf") format("truetype");
}

/* Only 400 and 700 are shipped: map the 500/800 tokens to real weights (no faux bold). */
:root {
  --weight-medium: 400;
  --weight-extrabold: 700;
  --header-height: 3.5rem;
  --section-space: var(--space-16);
}

@media (min-width: 60rem) {
  :root {
    --header-height: 4.5rem;
    --section-space: calc(var(--space-16) * 1.75);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  font-synthesis: none;
  overflow-x: clip;
}

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

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

h1,
h2,
h3 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
}

main:focus {
  outline: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 48rem) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: var(--weight-bold);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font: inherit;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

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

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

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.btn-lg {
  min-height: 3.25rem;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-lg);
}

.btn-sm {
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: translateY(1px);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-2);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--radius-sm);
  /* clear space around the logo: 1/5 of its height */
  padding-block: var(--space-2);
}

.brand img {
  height: 28px;
  width: auto;
}

@media (min-width: 60rem) {
  .brand img {
    height: 34px;
  }
}

.lang-switch {
  order: 2;
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding-inline: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.lang-switch a[aria-current="page"] {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.lang-switch .sep {
  color: var(--color-border-strong);
}

.nav-toggle {
  order: 3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

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

/* Menu: without JS it is simply always visible below the logo row (mobile). */
.site-menu {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  width: 100%;
  padding-block: var(--space-2) var(--space-3);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-1);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--color-text);
  background: var(--color-surface);
}

/* With JS on small screens: collapsible menu, icon-only toggle, only the other language shown */
@media (max-width: 59.99rem) {
  .js .lang-switch a[aria-current="page"],
  .js .lang-switch .sep {
    display: none;
  }

  .js .nav-toggle {
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
  }

  .js .nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-block: var(--space-2) var(--space-5);
  }

  .js .site-menu.is-open {
    display: flex;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav a {
    width: 100%;
    min-height: 3rem;
    padding-inline: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
  }

  .js .site-menu .btn {
    width: 100%;
    min-height: 3rem;
    font-size: var(--text-base);
  }
}

@media (min-width: 60rem) {
  .header-inner {
    flex-wrap: nowrap;
    column-gap: var(--space-5);
  }

  .site-menu {
    display: contents;
  }

  .site-nav {
    order: 2;
    margin-inline-start: auto;
  }

  .site-menu .btn {
    order: 3;
  }

  .lang-switch {
    order: 4;
    margin-inline-start: 0;
  }

  .site-nav ul {
    flex-wrap: nowrap;
  }
}

/* ---------- Sections ---------- */
main > section,
.cta-band-wrap {
  scroll-margin-top: var(--header-height);
}

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

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-10);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-link);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

.lead {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

h3 {
  font-size: var(--text-xl);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-link);
}

.card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.section-alt .card {
  background: var(--color-bg);
}

/* ---------- Status badges (colour is never the only cue: always a text label) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  white-space: nowrap;
  background: var(--color-surface-2);
  color: var(--color-text);
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: currentColor;
  flex: none;
}

.badge-live {
  background: var(--color-live-bg);
  color: var(--color-live);
}

.badge-low {
  background: var(--color-low-bg);
  color: var(--color-low);
}

.badge-lost {
  background: var(--color-offline-bg);
  color: var(--color-offline);
}

.badge-outro {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge-outro::before {
  background: transparent;
  border: 2px solid currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-12) var(--section-space);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto auto;
  width: min(60rem, 140vw);
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

/* the brand's red "on air" dot — graphic accent only */
.on-air-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-signal);
  flex: none;
}

.hero h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin-top: var(--space-4);
  color: var(--color-link);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.hero-text {
  max-width: 36rem;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.trust-line li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-line li + li::before {
  content: "·";
  color: var(--color-border-strong);
}

@media (max-width: 29.99rem) {
  .hero-ctas .btn {
    width: 100%;
  }
}

@media (min-width: 60rem) {
  .hero {
    padding-top: var(--space-16);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-16);
  }
}

/* ---------- Hero visual: status window mock ---------- */
.status-card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.status-card__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.status-card__bar img {
  width: 1.25rem;
  height: 1.25rem;
}

.window-controls {
  display: flex;
  gap: var(--space-3);
  margin-inline-start: auto;
  color: var(--color-text-muted);
}

.window-controls svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.status-card__body {
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.status-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.metric-label {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
}

.metric-value small {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
}

.badge-pulse::before {
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
}

.chart {
  width: 100%;
  height: auto;
  margin-top: var(--space-4);
  overflow: visible;
}

.chart .zone-low {
  fill: var(--color-low-bg);
}

.chart .zone-lost {
  fill: var(--color-offline-bg);
}

.chart .threshold {
  stroke: var(--color-border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .line-live {
  stroke: var(--color-live);
}

.chart .line-low {
  stroke: var(--color-low);
}

.chart .line-lost {
  stroke: var(--color-offline);
}

.chart .now-dot {
  fill: var(--color-live);
}

.chart text {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
}

.chart .label-low {
  fill: var(--color-low);
}

.chart .label-lost {
  fill: var(--color-offline);
}

.chart .label-axis {
  fill: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

.state-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.state-rail li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-left-width: 3px;
}

.state-rail strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.state-rail .st-live {
  border-left-color: var(--color-live);
}

.state-rail .st-low {
  border-left-color: var(--color-low);
}

.state-rail .st-lost {
  border-left-color: var(--color-offline);
}

.state-rail .st-outro {
  border-left-color: var(--color-border-strong);
}

.state-rail .is-current {
  background: var(--color-live-bg);
  border-color: var(--color-live);
}

.status-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.status-card__foot span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.status-card__foot svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--color-live);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-card__foot b {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

@media (max-width: 26rem) {
  .state-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Subtle motion — only if the visitor has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .badge-pulse::before {
    animation: pulse 2.4s var(--ease-out) infinite;
  }

  .chart .now-dot {
    animation: blink 2.4s ease-in-out infinite;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
    }

    70%,
    100% {
      box-shadow: 0 0 0 0.5rem color-mix(in srgb, currentColor 0%, transparent);
    }
  }

  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.35;
    }
  }
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.problem-grid .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem-grid .icon-tile {
  color: var(--color-signal);
}

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

@media (min-width: 48rem) {
  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

/* ---------- How it works (flow) ---------- */
.flow {
  display: grid;
  gap: var(--space-8);
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  counter-increment: flow;
}

.flow-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-link);
  box-shadow: var(--shadow-sm);
}

.flow-icon .icon {
  width: 2rem;
  height: 2rem;
}

.flow-icon::after {
  content: counter(flow);
  position: absolute;
  top: calc(var(--space-2) * -1);
  right: calc(var(--space-2) * -1);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.flow-step.is-us .flow-icon {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

/* connector line between steps (vertical on mobile) */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(4rem + var(--space-2));
  left: 2rem;
  width: 0;
  height: calc(100% - 4rem + var(--space-8) - var(--space-4));
  border-left: 2px dashed var(--color-border-strong);
}

.flow-step h3 {
  font-size: var(--text-lg);
}

.flow-kicker {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-step p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

@media (min-width: 60rem) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-8);
  }

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

  .flow-step:not(:last-child)::after {
    top: 2rem;
    left: calc(4rem + var(--space-4));
    width: calc(100% - 4rem - var(--space-4) * 2 + var(--space-8));
    height: 0;
    border-left: 0;
    border-top: 2px dashed var(--color-border-strong);
  }
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
  grid-auto-flow: dense;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature h3 {
  margin-top: var(--space-2);
  font-size: var(--text-lg);
}

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

.feature .badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .feature-wide {
    grid-column: span 2;
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Setup timeline ---------- */
.setup-layout {
  display: grid;
  gap: var(--space-10);
}

.setup-aside .section-head {
  margin-bottom: 0;
}

.setup-aside .btn {
  margin-top: var(--space-8);
}

.timeline {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-4);
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.section-alt .timeline li::before {
  background: var(--color-surface);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: calc(1.25rem - 1px);
  height: calc(100% - 2.5rem + var(--space-6));
  border-left: 2px solid var(--color-border);
}

.timeline li:last-child::before {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.timeline h3 {
  padding-top: var(--space-2);
  font-size: var(--text-lg);
}

.timeline p {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}

@media (min-width: 60rem) {
  .setup-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: start;
  }

  .setup-aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
  }

}

/* ---------- Screenshot placeholders ---------- */
.shots {
  display: grid;
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}

.shot figcaption {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.shot figcaption strong {
  display: block;
  color: var(--color-text);
  font-size: var(--text-base);
}

.window {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.window-bar img {
  width: 1rem;
  height: 1rem;
}

.window-body {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: var(--space-4);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 12px,
      color-mix(in srgb, var(--color-border) 45%, transparent) 12px 13px
    ),
    var(--color-bg);
}

.placeholder-label {
  padding: var(--space-2) var(--space-4);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

@media (min-width: 48rem) {
  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
  margin-inline: auto;
}

.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.faq-list details[open] {
  border-color: var(--color-border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--weight-bold);
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-link);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list summary:hover {
  color: var(--color-link);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
}

.faq-answer p + p {
  margin-top: var(--space-3);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: var(--space-12) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      ellipse at 50% 0%,
      color-mix(in srgb, var(--color-primary) 20%, transparent),
      transparent 70%
    ),
    var(--color-surface);
  text-align: center;
  overflow: hidden;
}

.cta-band .icon-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-5);
}

.cta-band p {
  max-width: 36rem;
  margin: var(--space-4) auto 0;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-space);
  padding-block: var(--space-12) var(--space-10);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-brand p {
  margin-top: var(--space-3);
  max-width: 22rem;
}

.footer-links {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--color-text);
  text-decoration: none;
}

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

.footer-title {
  margin-bottom: var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.footer-legal {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.imprint {
  margin-top: var(--space-6);
  scroll-margin-top: var(--header-height);
}

.imprint h2 {
  color: var(--color-text);
  font-size: var(--text-base);
}

.imprint p {
  margin-top: var(--space-1);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .skip-link,
  .hero::before {
    display: none;
  }
}
