/* Design tokens (spec V2, chapter 5). The only file allowed to contain raw colour values. */

:root {
  /* Colour – dark (default) */
  --bg: #070b12;
  --surface: #0e1624;
  --surface-2: #142036;
  --line: #1c2a3e;
  --accent: #3ee6e0;
  --on-accent: #04201f;
  --eur: #5b9bef;
  --on-eur: #04101f;
  --blue: #3b7dd8;
  --text: #e6eef7;
  --muted: #8a9bb0;
  --good: #34d399;
  --warn: #f5b84a;
  --danger: #f87171;
  --grid: rgba(62, 230, 224, 0.05);
  --glow: rgba(62, 230, 224, 0.16);
  --scrim: rgba(3, 6, 10, 0.72);
  /* Product logo tile stays dark in both themes ("screen" element; light logos need it). */
  --logo-tile: #0e1624;
  --logo-tile-line: #1c2a3e;
  /* Opaque colour for CSS masks (only the alpha matters). */
  --mask: #000;
  color-scheme: dark;

  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --fs-h1: clamp(2.5rem, 6vw, 4.25rem);
  --fs-h2: clamp(2rem, 4.5vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 2vw, 1.25rem);
  --fs-body: clamp(1rem, 1.5vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;
  --fs-tag: 0.75rem;

  /* Spacing (4 px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.5rem;
  --space-10: 3rem;
  --space-11: 4rem;
  --space-12: 6rem;
  --section-pad: clamp(4rem, 8vw, 6rem);
  --gutter: 1.25rem;
  --container: 75rem;
  --container-text: 47.5rem;
  --header-h: 3.75rem;
  --target: 2.75rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-3xl: 18px;
  --r-pill: 999px;

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-zoom: 350ms;
  --dur-flip: 450ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme='light'] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --line: #d3ddea;
  --accent: #0a7f7b;
  --on-accent: #ffffff;
  --eur: #2a62b0;
  --on-eur: #ffffff;
  --blue: #2a62b0;
  --text: #0c1420;
  --muted: #4c5c70;
  --good: #0e8a5f;
  --warn: #8f5a00;
  --danger: #b42318;
  --grid: rgba(10, 127, 123, 0.07);
  --glow: rgba(10, 127, 123, 0.14);
  --scrim: rgba(12, 20, 32, 0.45);
  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --header-h: 4.5rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 2.5rem;
  }
}

/* Fonts: self-hosted variable woff2, latin subset (SIL OFL 1.1, see /fonts/LICENSE.md). */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.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;
}

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

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.l-container--text {
  max-width: calc(var(--container-text) + 2 * var(--gutter));
}

/* Typography */
.t-h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.t-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.t-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Components (spec V2, 5.5). Mobile-first; breakpoints 768 px and 1200 px. */

/* ---------- Icons ---------- */
.c-icon,
.c-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Wordmark ---------- */
.c-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: var(--target);
  flex-shrink: 0;
}

.c-wordmark--header {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
}

.c-wordmark--footer {
  font-size: 1.375rem;
}

.c-wordmark__targeted {
  font-weight: 700;
  color: var(--blue);
}

.c-wordmark__soft {
  font-weight: 500;
  color: var(--accent);
}

.c-wordmark__reticle {
  width: 0.92em;
  height: 0.92em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

/* ---------- Buttons ---------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    background-color var(--dur-fast),
    color var(--dur-fast);
}

.c-btn:hover {
  border-color: var(--accent);
}

.c-btn--primary {
  min-height: 3.25rem;
  padding: 0 var(--space-6);
  border-color: var(--accent);
  border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
}

.c-btn--primary:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 36px var(--glow);
}

.c-btn--secondary {
  min-height: 3.25rem;
  padding: 0 var(--space-6);
  border-radius: var(--r-lg);
  font-size: 1rem;
}

.c-btn--ghost {
  background: transparent;
  color: var(--accent);
}

.c-btn--icon {
  width: var(--target);
  padding: 0;
}

.c-btn--icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.c-btn:disabled,
.c-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.c-btn--disabled:hover {
  border-color: var(--line);
}

/* ---------- Theme toggle ---------- */
.c-theme-toggle__icon {
  display: none;
}

.c-theme-toggle__fill {
  fill: currentColor;
  stroke: none;
}

[data-theme-pref='dark'] .c-theme-toggle__icon--dark,
[data-theme-pref='light'] .c-theme-toggle__icon--light,
[data-theme-pref='auto'] .c-theme-toggle__icon--auto {
  display: block;
}

/* ---------- Header & navigation ---------- */
.c-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.c-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.c-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.c-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast);
}

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

.c-menu-toggle {
  display: none;
}

.c-menu-toggle__icon--close,
.c-menu-toggle[aria-expanded='true'] .c-menu-toggle__icon--open {
  display: none;
}

.c-menu-toggle[aria-expanded='true'] .c-menu-toggle__icon--close {
  display: block;
}

/* Mobile: links collapse into a disclosure panel – only when JS runs (no-JS keeps them visible). */
@media (max-width: 767.98px) {
  .c-header__inner {
    flex-wrap: wrap;
  }

  .c-nav {
    order: 3;
    width: 100%;
  }

  .js .c-menu-toggle {
    display: inline-flex;
  }

  .js .c-nav {
    order: 0;
    width: auto;
  }

  .js .c-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-4);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .js .c-nav__list[data-open] {
    display: flex;
  }

  .js .c-nav__link {
    width: 100%;
    font-size: 1.0625rem;
    color: var(--text);
  }
}

@media (min-width: 768px) {
  .c-nav {
    margin-left: auto;
  }

  .c-nav__list {
    gap: var(--space-9);
  }

  .c-header__actions {
    margin-left: var(--space-6);
  }
}

/* ---------- Sections ---------- */
.c-section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}

.c-section--surface {
  background: var(--surface);
}

.c-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-9);
}

.c-section__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.c-section__text {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 36rem;
}

.c-section__text p + p {
  margin-top: var(--space-4);
}

.c-split {
  display: grid;
  gap: var(--space-9);
}

@media (min-width: 1200px) {
  .c-section__head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .c-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-11);
  }
}

/* ---------- Hero ---------- */
.c-hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.c-hero__inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.c-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7);
}

.c-hero__lead {
  max-width: 32.5rem;
}

.c-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.c-hero__art {
  display: flex;
  justify-content: center;
}

.c-hero__img {
  width: 100%;
  max-width: 20rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, var(--mask) 58%, transparent 71%);
  mask-image: radial-gradient(circle, var(--mask) 58%, transparent 71%);
}

@media (min-width: 768px) {
  .c-hero__img {
    max-width: 26.25rem;
  }
}

@media (min-width: 1200px) {
  .c-hero__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10);
  }

  .c-hero__img {
    max-width: 33.75rem;
  }
}

/* Terminal line */
/* Inline flow (not flex): if the line wraps on a very narrow screen, the cursor stays at the end of the text. */
.c-terminal {
  font-family: var(--font-mono);
  /* larger than the old small size, so the status counts read at a glance; 14.4 px on phones keeps one line with the cursor */
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 768px) {
  .c-terminal {
    font-size: var(--fs-body);
  }
}

.c-terminal__prompt {
  color: var(--accent);
}

/* Block cursor as a glyph glued to the last character: it follows the typing and never wraps on its own. */
.c-terminal__text::after {
  content: '\258B';
  display: inline;
  margin-left: 0.15em;
  color: var(--accent);
  animation: c-blink 1.1s steps(1) infinite;
}

@keyframes c-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Chips (status filter) ---------- */
.c-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 2px;
  margin: -2px;
  scrollbar-width: none;
}

.c-chip {
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
  transition:
    border-color var(--dur-fast),
    color var(--dur-fast);
}

.c-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.c-chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* ---------- Badge & tags ---------- */
.c-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.c-badge--available {
  color: var(--good);
}

.c-badge--in-development {
  color: var(--warn);
}

/* "Launching soon": the euro blue (≥ 4.5:1 on the card surface in both themes) */
.c-badge--launching {
  color: var(--eur);
}

.c-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: c-pulse 2s ease-in-out infinite;
}

@keyframes c-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--muted);
  line-height: 1.2;
}

/* ---------- Logo tile ---------- */
.c-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--logo-tile-line);
  border-radius: var(--r-2xl);
  background: var(--logo-tile);
  overflow: hidden;
}

.c-logo-tile--64 {
  width: 4rem;
  height: 4rem;
}

.c-logo-tile--56 {
  width: 3.5rem;
  height: 3.5rem;
}

.c-logo-tile__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-logo-tile__icon {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Card ---------- */
.c-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7);
  }
}

.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.c-card:hover,
.c-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 36px var(--glow);
}

/* Front/back faces for the flip (modal.js adds .is-flipping only while animating). */
.c-card__face--front {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 4.25rem var(--space-5) var(--space-5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .c-card__face--front {
    padding: 4.5rem var(--space-8) var(--space-8);
  }
}

.c-card__face--back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  border-radius: inherit;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  visibility: hidden;
}

.c-card.is-flipping {
  transform-style: preserve-3d;
  z-index: 1;
  /* opacity < 1 would flatten the 3D context. A running scroll-reveal transition outranks even
     !important in the cascade, so the transition itself is dropped (jumps to its end state). */
  opacity: 1 !important;
  transition: none !important;
}

.c-card.is-flipping .c-card__face--back {
  visibility: visible;
}

.c-card__back-reticle {
  width: 4.5rem;
  height: 4.5rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}

.c-card__back-name {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.c-card__face--front > .c-badge {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
}

.c-card__head {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.c-card__id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.c-card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.c-card__platform {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--muted);
}

.c-card__short {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
}

.c-card__more {
  margin-top: auto;
}

.c-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-2);
  list-style: none;
  cursor: pointer;
}

.c-card__foot::-webkit-details-marker {
  display: none;
}

.c-card__foot::marker {
  content: '';
}

.c-card__foot:focus-visible {
  outline: none;
}

.c-card__foot:focus-visible .c-card__details {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.c-card__tags {
  display: none;
}

@media (min-width: 768px) {
  .c-card__tags {
    display: flex;
  }
}

.c-card__details {
  margin-left: auto;
}

.c-card__more[open] .c-card__details svg {
  transform: rotate(90deg);
}

/* ---------- Detail (card details / modal body) ---------- */
.c-detail {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.c-detail__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

/* The detail header (badge, logo, name) is only shown inside the modal. */
.c-detail__head {
  display: none;
}

.c-dialog .c-detail__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.c-detail__id {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.c-detail__name {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .c-dialog .c-detail__name {
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  }
}

.c-detail__name:focus {
  outline: none;
}

.c-detail__name:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.c-detail__shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
}

.c-detail__shot-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.c-detail__note {
  font-size: var(--fs-small);
  color: var(--muted);
}

.c-detail__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.c-detail__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--muted);
}

.c-detail__title {
  font-size: 1rem;
  font-weight: 600;
}

.c-tier {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-tier + .c-tier {
  margin-top: var(--space-4);
}

.c-tier__name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.c-detail__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-detail__features li {
  display: flex;
  gap: var(--space-3);
}

.c-detail__check {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-detail__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.c-detail__site {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.c-detail__hint {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--muted);
}

/* ---------- Pricing (modal) ---------- */
/* The Monthly/Yearly and team-size switches need JS; without it the default prices are shown. */
html:not(.js) [data-js-only],
html.js [data-no-js-only] {
  display: none;
}

.c-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
}

.c-seg__btn {
  height: 2.5rem;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  cursor: pointer;
}

.c-seg__btn[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.c-seg--sm .c-seg__btn {
  height: 1.75rem;
  padding: 0 var(--space-3);
  font-size: var(--fs-tag);
}

.c-pricing {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.c-pricing__head,
.c-pricing__lead,
.c-pricing__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.c-pricing__head {
  justify-content: space-between;
}

.c-pricing__title {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Amber while Monthly is selected (saving 0%), green with a pulsing dot while Yearly is selected. */
.c-yearly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 1.75rem;
  padding: 0 10px;
  border: 1px solid var(--good);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  white-space: nowrap;
}

.c-yearly-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: c-pulse 2s ease-in-out infinite;
}

.c-yearly-badge[data-state='monthly'] {
  border-color: var(--warn);
}

.c-yearly-badge[data-state='monthly']::before {
  background: var(--warn);
  animation: none;
}

/* Currency switch: $ takes the accent, € the blue; the group border follows the choice. */
.c-seg--currency .c-seg__btn {
  min-width: 2.25rem;
  padding: 0 var(--space-3);
  font-weight: 600;
}

.c-seg--currency:has(.c-seg__btn--usd[aria-pressed='true']) {
  border-color: var(--accent);
}

.c-seg--currency:has(.c-seg__btn--eur[aria-pressed='true']) {
  border-color: var(--eur);
}

.c-seg--currency .c-seg__btn--usd[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}

.c-seg--currency .c-seg__btn--eur[aria-pressed='true'] {
  background: var(--eur);
  color: var(--on-eur);
}

.c-pricing__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1fr);
}

.c-pricing__note {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  line-height: 1.5;
  color: var(--muted);
}

.c-plan {
  --plan-bg: var(--bg);
  --plan-list-h: 10rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--plan-bg);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-base),
    transform var(--dur-base) var(--ease-out);
}

/* The plan whose yearly saving the badge shows keeps a soft accent border; hover/focus go full. */
.c-plan[data-active='true'] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.c-plan:hover,
.c-plan:focus-within {
  border-color: var(--accent);
  box-shadow: 0 10px 28px var(--glow);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .c-plan:hover {
    transform: translateY(-3px);
  }
}

.c-plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.c-plan__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-plan__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.c-plan__svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-plan__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.c-plan__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Amount with its unit beside it; the info line(s) sit underneath (height reserved so rows stay aligned). */
.c-plan__amountline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  column-gap: var(--space-2);
}

.c-plan__cur {
  margin-inline-end: 0.22em;
  font-weight: 600;
  opacity: 0.8;
}

.c-plan__info .c-plan__cur {
  opacity: 1;
}

.c-plan__amount {
  font-size: 1.625rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.c-plan__info {
  --info-lines: 1;
  min-height: calc(1.4em * var(--info-lines));
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}

.c-pricing[data-plans='3'] .c-plan__info {
  --info-lines: 2;
}

.c-plan__info > span,
.c-plan__info-line {
  display: block;
}

.c-plan__info-line {
  color: var(--accent);
}

.c-plan__unit,
.c-plan__label,
.c-plan__users {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
}

.c-plan__unit,
.c-plan__label {
  color: var(--muted);
}

.c-plan__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3rem;
}

.c-plan__users {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2.25rem;
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* "+ VAT" beside the price of a paid plan (prices are net, spec 15.3). */
.c-plan__vat {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--muted);
}

/* "final price shown at checkout" under a paid price (legal review 2026-10-31); an empty line of the same height on Free
   keeps the card rows aligned. */
.c-plan__vatline {
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}

/* Fixed height keeps the cards (and their buttons) aligned; only the list scrolls. */
.c-plan__scroll {
  flex: none;
  height: var(--plan-list-h);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  background:
    linear-gradient(var(--plan-bg) 30%, transparent) 0 0 / 100% 1.5rem no-repeat local,
    linear-gradient(transparent, var(--plan-bg) 70%) 0 100% / 100% 1.5rem no-repeat local,
    linear-gradient(var(--line), transparent) 0 0 / 100% 0.5rem no-repeat scroll,
    linear-gradient(transparent, var(--line)) 0 100% / 100% 0.5rem no-repeat scroll;
}

.c-plan__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  line-height: 1.4;
}

.c-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.c-plan__check {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1em;
  fill: none;
  stroke: var(--good);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-plan__cta {
  width: 100%;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  opacity: 1;
}

/* An active "Select" / "Install" link: solid, not the dashed placeholder look. */
.c-plan__cta.c-btn--primary {
  border-style: solid;
  background: var(--accent);
  color: var(--on-accent);
}

.c-plan__cta.c-btn--secondary {
  border-style: solid;
  color: var(--text);
}

/* Phone sheet and tablet left column (< 1280 px): the surface is --surface, so the cards sit on --bg,
   stacked in one column; touch-sized switches, the billing switch on its own row. */
@media (max-width: 1279.98px) {
  .c-seg--billing {
    display: flex;
    width: 100%;
  }

  .c-seg--billing .c-seg__btn {
    flex: 1;
  }

  .c-pricing__controls {
    display: contents;
  }

  .c-seg__btn {
    height: 2.75rem;
  }

  .c-seg--sm .c-seg__btn {
    height: 2.5rem;
    padding: 0 var(--space-5);
  }

  .c-pricing__head {
    row-gap: var(--space-3);
  }

  .c-pricing__controls .c-seg--billing {
    order: 3;
    flex-basis: 100%;
  }
}

@media (min-width: 1280px) {
  .c-pricing__grid {
    grid-template-columns: repeat(var(--plans, 1), minmax(0, 1fr));
  }

  .c-pricing[data-plans='2'] .c-pricing__grid {
    --plans: 2;
  }

  .c-pricing[data-plans='3'] .c-pricing__grid {
    --plans: 3;
  }

  /* Desktop: the whole feature list shows. The three cards share one grid row, so they all take the height of
     the longest list and the button stays at the bottom; below 1280 px the list keeps its fixed-height scroll box. */
  .c-plan__scroll {
    flex: 1 1 auto;
    height: auto;
    overflow: visible;
    background: none;
  }

  .c-plan__top {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .c-plan__icon {
    width: 2rem;
    height: 2rem;
  }

  .c-plan__name {
    font-size: 1.125rem;
  }

  .c-plan__price {
    align-items: flex-start;
  }

  .c-plan__amountline {
    justify-content: flex-start;
  }

  .c-plan__info,
  .c-plan__vatline {
    text-align: left;
  }

  .c-plan__amount {
    font-size: 1.75rem;
  }

  .c-plan__row {
    min-height: 2.25rem;
  }

  .c-plan__cta {
    min-height: 2.75rem;
  }
}

.c-grid-empty {
  padding: var(--space-8);
  border: 1px dashed var(--line);
  border-radius: var(--r-3xl);
  text-align: center;
  color: var(--muted);
}

/* ---------- About principles ---------- */
.c-principles {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 360px) {
  .c-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.c-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
}

.c-feature__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-feature__title {
  font-size: clamp(1.0625rem, 3.6vw, 1.25rem);
  font-weight: 600;
}

@media (min-width: 768px) {
  .c-feature {
    padding: var(--space-6);
  }
}

.c-feature__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Contact form ---------- */
.c-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--surface);
}

@media (min-width: 768px) {
  .c-form {
    padding: var(--space-8);
  }
}

.c-form__row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .c-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.c-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.c-field__label {
  font-size: var(--fs-small);
  font-weight: 500;
}

.c-field__control {
  width: 100%;
  min-height: 3rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.c-field__control::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.c-field__control:hover {
  border-color: var(--muted);
}

.c-field__control:focus-visible {
  border-color: var(--accent);
}

.c-field__control--area {
  min-height: 8rem;
  padding-block: var(--space-3);
  resize: vertical;
  line-height: 1.5;
}

select.c-field__control {
  cursor: pointer;
}

.c-turnstile {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 300px;
  height: 65px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: var(--fs-small);
  color: var(--muted);
}

.c-turnstile__box {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 2px solid var(--muted);
  border-radius: 6px;
}

.c-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.c-check__input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.c-check__label {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

.c-form__submit {
  width: 100%;
}

.c-form__note {
  font-size: var(--fs-small);
  color: var(--muted);
  text-align: center;
}

.js .c-form__note {
  display: none;
}

.c-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.c-form__fields[hidden],
.c-form__success[hidden] {
  display: none;
}

.c-field__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.c-field__error {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--danger);
}

.c-field__error[hidden] {
  display: none;
}

.c-field__counter {
  margin-left: auto;
  font-size: var(--fs-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.c-field__control[aria-invalid='true'] {
  border-color: var(--danger);
}

.c-form__status {
  margin: 0;
  font-size: var(--fs-small);
  text-align: center;
}

.c-form__status:empty {
  display: none;
}

.c-form__status.is-error {
  color: var(--danger);
}

.c-form__success {
  padding: var(--space-6);
  border: 1px solid var(--good);
  border-radius: var(--r-md);
  color: var(--text);
  line-height: 1.5;
}

.c-form__success:focus-visible {
  outline: none; /* programmatic focus target only; the green border already marks it */
}

/* Honeypot: off-screen, not focusable, hidden from assistive tech (aria-hidden in the markup). */
.c-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.c-turnstile--live {
  height: auto;
  min-height: 65px;
  padding: 0;
  border: 0;
  background: none;
}

.c-turnstile[hidden] {
  display: none;
}

/* Live validation: red while wrong (aria-invalid, set in form.js), cyan once valid. */
.c-field__control.is-valid {
  border-color: var(--accent);
}

.c-check__input[aria-invalid='true'] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.c-form__success-text {
  margin: 0 0 var(--space-4);
}

/* ---------- Footer ---------- */
.c-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.c-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-10);
}

.c-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-footer__tagline {
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 0.6875rem;
}

.c-footer__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.c-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: none;
}

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

/* ---------- Legal pages ---------- */
.c-legal {
  flex: 1;
  padding-block: var(--section-pad);
}

.c-legal .l-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Back link (src/js/back-link.js) before the eyebrow of the legal and help pages; 44 px target. */
.c-legal__top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.c-legal__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-start: -10px;
  border-radius: var(--r-md);
  color: var(--accent);
}

.c-legal__back svg {
  width: 22px;
  height: 22px;
}

.c-legal__back:hover {
  background: var(--surface-2);
}

.c-legal__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.c-legal__updated {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--muted);
}

.c-legal__notice {
  padding: var(--space-4);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

/* Legal texts from content/legal.json (scripts/lib/legal.mjs): headings, paragraphs, lists, tables, inline marks. */
.c-legal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--muted);
}

.c-legal__heading {
  margin-top: var(--space-5);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.c-legal__body strong {
  color: var(--text);
  font-weight: 600;
}

.c-legal__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.c-legal__body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0 0.25em;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
}

.c-legal__ul,
.c-legal__ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding-inline-start: 1.25rem;
}

/* Help pages (content/help/<slug>.md, scripts/lib/markdown.mjs): numbered steps, a nested list, subheadings. */
.c-legal__ol {
  list-style: decimal;
}

.c-legal__ol .c-legal__ul,
.c-legal__ul .c-legal__ul {
  margin-top: var(--space-2);
}

/* Help pages: code blocks, rules, quotes and GitHub-style callouts (scripts/lib/markdown.mjs). */
.c-legal__pre {
  margin: 0;
  padding: var(--space-3);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9em;
  white-space: pre;
}

.c-legal__code {
  position: relative;
}

.c-legal__code .c-legal__pre {
  padding-top: calc(var(--space-3) + 1.1em);
}

.c-legal__code-lang {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
}

.c-legal__pre code {
  padding: 0;
  background: none;
}

.c-legal__hr {
  width: 100%;
  margin: var(--space-3) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.c-legal__quote,
.c-legal__callout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-inline-start: 3px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.c-legal__callout { border-inline-start-color: var(--blue); }
.c-legal__callout--tip { border-inline-start-color: var(--good); }
.c-legal__callout--important { border-inline-start-color: var(--accent); }
.c-legal__callout--warning { border-inline-start-color: var(--warn); }
.c-legal__callout--caution { border-inline-start-color: var(--danger); }

.c-legal__callout-title {
  font-weight: 600;
  color: var(--text);
}

.c-legal__subheading {
  margin-top: var(--space-4);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* Wide tables scroll sideways inside their own focusable region on small screens. */
.c-legal__table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.c-legal__table:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.c-legal__table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.c-legal__table th,
.c-legal__table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.c-legal__table th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-2);
}

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

/* An unfilled placeholder ([LEGAL_NAME]): clearly visible until the value is set (spec 3.10). */
.c-legal__ph {
  padding: 0 0.2em;
  border: 1px dashed var(--warn);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Checkout page texts reuse the muted paragraph style. */
.c-legal__brand {
  color: var(--muted);
}

/* ---------- 404 ---------- */
.c-missed {
  flex: 1;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.c-missed__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  padding-block: var(--section-pad);
}

.c-missed__reticle {
  width: 5rem;
  height: 5rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.c-missed__shot {
  fill: var(--warn);
  stroke: none;
}

.c-missed__title {
  max-width: 14ch;
}

/* ---------- Grid batching ---------- */
.c-grid-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-8);
}

.c-grid-more__sentinel {
  width: 1px;
  height: 1px;
}

/* ---------- Dialog (modal ≥ 768 px, bottom sheet < 768 px) ---------- */
.c-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--space-6);
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.c-dialog[open] {
  display: grid;
  place-items: center;
}

.c-dialog::backdrop {
  background: var(--scrim);
}

.c-dialog__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(68.75rem, 100%);
  max-height: 85vh;
  max-height: 85dvh;
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--surface);
  box-shadow: 0 30px 80px var(--scrim);
  overflow: hidden;
  transform-origin: 0 0;
}

.c-dialog__handle {
  display: none;
}

.c-dialog__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
}

.c-dialog__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-8);
}

.c-dialog .c-detail {
  margin: 0;
  padding: 0;
  border: 0;
}

/* 768–1279 px: media and pricing stack in the left column (pricing cards one per row), the body spans
   both rows. A full-width pricing row below the body pushed it out of sight on portrait tablets. */
@media (min-width: 768px) {
  .c-dialog__panel {
    max-height: min(94dvh, calc(100dvh - var(--space-6) * 2));
  }

  .c-dialog .c-detail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'media body'
      'pricing body';
    gap: var(--space-8);
    align-items: start;
  }

  .c-dialog .c-detail__media {
    grid-area: media;
  }

  .c-dialog .c-detail__body {
    grid-area: body;
    padding-right: var(--space-8); /* room for the close button */
  }

  .c-dialog .c-pricing {
    grid-area: pricing;
    /* separates the pricing from the video above it */
    padding-top: var(--space-6);
    border-top: 1px solid var(--line);
  }
}

/* >= 1280 px (mockup V2): 1280 px panel, a 700 px left column (media + pricing) on its own surface. */
@media (min-width: 1280px) {
  .c-dialog__panel {
    width: min(80rem, 100%);
  }

  .c-dialog__content {
    padding: 0;
  }

  .c-dialog .c-detail {
    grid-template-columns: 700px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'media body'
      'pricing body';
    gap: 0;
    align-items: stretch;
  }

  .c-dialog .c-detail__media,
  .c-dialog .c-pricing {
    padding-inline: var(--space-8);
    background: var(--bg);
    border-right: 1px solid var(--line);
  }

  .c-dialog .c-detail__media {
    padding-top: var(--space-8);
    /* the rows have no gap here: keep the separator line clear of the video frame */
    padding-bottom: var(--space-6);
  }

  .c-dialog .c-pricing {
    justify-content: flex-start;
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
  }

  .c-dialog .c-plan {
    --plan-bg: var(--surface);
  }

  .c-dialog .c-detail__body {
    padding: var(--space-9) var(--space-9) 2.25rem;
  }
}

@media (max-width: 767.98px) {
  .c-dialog {
    padding: 0;
  }

  .c-dialog[open] {
    align-items: end;
  }

  .c-dialog__panel {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-bottom: 0;
    border-radius: var(--r-3xl) var(--r-3xl) 0 0;
    transform: translateY(var(--drag, 0px));
  }

  .c-dialog__handle {
    display: flex;
    justify-content: center;
    padding: var(--space-3) 0 var(--space-2);
    cursor: grab;
    touch-action: none;
  }

  .c-dialog__handle span {
    width: 2.5rem;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--line);
  }

  .c-dialog__close {
    top: var(--space-3);
    right: var(--space-3);
  }

  .c-dialog__content {
    padding: var(--space-3) var(--space-5) 0;
  }

  .c-dialog .c-detail {
    gap: var(--space-4);
  }

  /* The media switch is as wide as the sheet: start it below the close button. */
  .c-dialog .c-media-switch {
    margin-top: var(--space-6);
  }

  /* The body's children join the detail grid so the pricing can sit between the tags and the actions. */
  .c-dialog .c-detail__body {
    display: contents;
  }

  .c-dialog .c-pricing {
    order: 1;
  }

  .c-dialog .c-detail__actions {
    order: 2;
    position: sticky;
    bottom: 0;
    margin: var(--space-2) calc(-1 * var(--space-5)) 0;
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
}

html.is-modal-open {
  overflow: hidden;
}

/* ---------- Page navigation: next-section crosshair, floating jump buttons ---------- */
.c-next {
  display: flex;
  justify-content: center;
  margin-top: var(--space-9);
}

.c-next__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid transparent;
  border-radius: 50%;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-base),
    transform var(--dur-base) var(--ease-out);
}

.c-next__link:hover,
.c-next__link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

@media (prefers-reduced-motion: no-preference) {
  .c-next__icon {
    transition: transform var(--dur-base) var(--ease-out);
  }

  .c-next__link:hover .c-next__icon,
  .c-next__link:focus-visible .c-next__icon {
    transform: rotate(90deg) scale(1.12);
  }
}

.c-scroll-nav {
  position: fixed;
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-scroll-nav__btn {
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--accent);
  transition:
    opacity var(--dur-base),
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    visibility 0s;
}

.c-scroll-nav__btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

/* Hidden buttons fade out and leave the tab order (visibility flips after the fade). */
.c-scroll-nav__btn[data-visible='false'] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity var(--dur-base),
    transform var(--dur-base) var(--ease-out),
    visibility 0s var(--dur-base);
}

html.is-modal-open .c-scroll-nav {
  display: none;
}

/* Sentinels for the "page top / page bottom in view" checks (no scroll listener). */
.c-edge {
  display: block;
  width: 1px;
  height: 8rem;
  pointer-events: none;
}

.c-edge--top {
  position: absolute;
  top: 0;
  left: 0;
}

.c-edge--bottom {
  margin-top: -8rem;
}

/* ---------- Gallery, lightbox, video ---------- */
.c-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.c-gallery__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-xl);
}

.c-gallery__track::-webkit-scrollbar {
  display: none;
}

.c-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Visible caption = the alt text (aria-hidden, so screen readers hear it once, from the image). */
.c-gallery__caption {
  margin: var(--space-2) 0 0;
  padding-inline: var(--space-1);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.c-gallery__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.c-gallery__img,
.c-video__poster {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  /* contain: wide screenshots (e.g. a Drive window with the side panel) are shown whole, letterboxed */
  object-fit: contain;
  border-radius: var(--r-xl);
  background: var(--surface-2);
}

.c-gallery__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.c-gallery__counter {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--muted);
}

.c-gallery__dots {
  display: flex;
  gap: 6px;
  margin-inline: auto;
}

.c-gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.c-gallery__dot.is-active {
  background: var(--accent);
}

.c-icon--flip {
  transform: scaleX(-1);
}

.c-video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  /* a frame, so the dark poster does not melt into the panel and the pricing below it */
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: none;
  color: var(--text);
}

/* Link from the main-site modal to every screenshot on the product page. */
.c-gallery__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  text-underline-offset: 3px;
}

.c-gallery__more .c-icon {
  flex: none;
  width: 1em;
  height: 1em;
}

/* Media switch (media.compare): product tour ↔ comparison material. Without JS both sets show. */
.c-media-switch {
  align-self: flex-start;
  max-width: 100%;
}

.c-media-set {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.c-media-set__note {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.js [data-media-view='tour'] [data-media-set='compare'],
.js [data-media-view='compare'] [data-media-set='tour'] {
  display: none;
}

.c-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--r-xl);
  background: var(--scrim);
  font-weight: 600;
}

.c-video__icon {
  width: 3rem;
  height: 3rem;
  fill: var(--accent);
  stroke: none;
}

.c-video__player {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
}

.c-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--scrim);
}

.c-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.c-lightbox__img {
  min-height: 0;
  max-width: 100%;
  /* room for the caption box below the image */
  max-height: calc(100dvh - var(--space-6) * 2 - 5rem);
  object-fit: contain;
  border-radius: var(--r-md);
}

/* counter + caption on a solid box, readable on the scrim in both themes */
.c-lightbox__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  max-width: 60rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-align: center;
}

.c-lightbox__counter {
  font-family: var(--font-mono);
  color: var(--muted);
}

.c-lightbox__counter:empty {
  display: none;
}

.c-lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.c-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.c-lightbox__nav[hidden] {
  display: none;
}

.c-lightbox__nav--prev {
  left: var(--space-4);
}

.c-lightbox__nav--next {
  right: var(--space-4);
}

/* From tablets up the arrows sit beside the image, not on it. */
@media (min-width: 768px) {
  .c-lightbox {
    padding-inline: calc(var(--target) + var(--space-4) * 2);
  }
}

/* ---------- Hero reticle ---------- */
.c-hero__art {
  position: relative;
}

.c-reticle {
  position: absolute;
  z-index: 1; /* above the masked hero image, which forms its own stacking context */
  top: 50%;
  left: 50%;
  width: 24%;
  height: auto;
  aspect-ratio: 1;
  margin: -12% 0 0 -12%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 0 6px var(--glow));
  transform: translate(var(--rx, 0px), var(--ry, 0px));
  will-change: transform;
}

.c-reticle__dot {
  fill: var(--accent);
  stroke: none;
}

.c-reticle__ticks {
  stroke-width: 1;
}

/* ---------- Scroll reveal (only once reveal.js has initialised) ---------- */
.reveal-ready [data-reveal] {
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out),
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.reveal-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .c-terminal__text::after,
  .c-badge__dot,
  .c-yearly-badge::before {
    animation: none;
  }

  .c-reticle {
    transform: none;
  }
}

/* Product sites (<slug>.targetedsoft.com, spec 15): only linked by the product-site build, after components.css. */
.c-header__product {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  padding-left: var(--space-4);
  border-left: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.c-header__product .c-logo-tile {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-md);
}

.c-header__product-name {
  display: none;
}

@media (min-width: 768px) {
  .c-header__product-name {
    display: inline;
  }
}

.c-product__hero {
  padding-block: var(--section-pad) var(--space-8);
}

.c-product__hero .l-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.c-product__id {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.c-product__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.c-product__title {
  overflow-wrap: anywhere;
}

.c-product__lead {
  max-width: 48rem;
}

.c-product__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.c-product__notice {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.c-product__grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.c-product__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.c-product__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.c-product__tiers {
  display: grid;
  gap: var(--space-6);
}

/* Media switch and the comparison note span the whole grid row (description above, media below). */
.c-product__grid > .c-media-switch,
.c-product__compare-note {
  grid-column: 1 / -1;
  justify-self: start;
}

.c-product .c-lightbox {
  z-index: 30;
}

.c-product .c-pricing__grid {
  max-width: 44rem;
}

@media (min-width: 768px) {
  /* description across the top, screenshots and video side by side below it */
  .c-product__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .c-product__text {
    grid-column: 1 / -1;
    max-width: 68ch;
  }

  .c-product__tiers {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

@media (min-width: 1280px) {
  .c-product .c-pricing__grid {
    max-width: none;
  }
}

.c-footer__merchant {
  padding-bottom: var(--space-8);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.c-checkout__status {
  padding: var(--space-4);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}


/* ---------- Buying (B2): checkout states, sign-in panel ---------- */
.c-checkout__status.is-error {
  border-color: var(--danger);
  color: var(--danger);
}

.c-checkout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.c-signin {
  width: min(28rem, calc(100vw - 2 * var(--space-4)));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  color: var(--text);
}

.c-signin::backdrop {
  background: var(--scrim);
}

.c-signin__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.c-signin__title {
  margin: 0;
  font-size: var(--fs-h3);
}

.c-signin__plan,
.c-signin__text {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.c-signin__plan strong {
  color: var(--text);
}

.c-signin__label {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  text-transform: uppercase;
}

/* Google renders its own button here (an iframe); the box keeps the layout stable while it loads. */
.c-signin__google {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.c-signin__status {
  margin: 0;
  min-height: 1.5em;
  font-size: var(--fs-small);
}

.c-signin__status.is-error {
  color: var(--danger);
}

.c-signin__cancel {
  align-self: flex-end;
}
