/* data-enricher.com: rational grid, one accent, hairline rules, Archivo.
   The colours below are fallbacks: /theme.css (chosen in the back office, Kleuren) overrides them. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f4f1;
  --paper-2: #ece8e3;
  --surface: #ffffff;
  --ink: #17130f;
  --ink-2: #4a433c;
  --ink-3: #665e56;
  --rule: #ddd6ce;
  --rule-strong: #b2a99f;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-tint: #fde6d5;
  --on-accent: #ffffff;
  --on-accent-2: #fff3eb;
  --reject: #9c3a2b;

  /* Night: header, hero and footer */
  --night: #120e0b;
  --night-2: #1c1713;
  --night-rule: color-mix(in srgb, var(--night-ink) 9%, transparent);
  --night-ink: #f6efe8;
  --night-ink-2: #b8ada2;
  --signal: #ff8a3d;
  --chart: #e8590c;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.4rem + 4.2vw, 5.25rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;

  --gutter: clamp(16px, 2.2vw, 24px);
  --page: min(1320px, 100% - 2 * var(--gutter));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

html {
  scrollbar-color: var(--rule-strong) var(--paper);
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 760;
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--step-4);
  font-stretch: 112%;
  font-weight: 820;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--step-3);
  font-stretch: 108%;
}

h3 {
  font-size: var(--step-1);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  max-width: 68ch;
  text-wrap: pretty;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

.muted {
  color: var(--ink-3);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: var(--space-3);
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ---- Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 640;
  font-stretch: 104%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:active {
  transform: translateY(1px);
}

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

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

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: square;
}

/* ---- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  border-bottom: 1px solid var(--night-rule);
  color: var(--night-ink);
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--night) 97%, transparent);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.site-header a,
.site-header .brand {
  color: var(--night-ink);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    backdrop-filter: saturate(1.2) blur(8px);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.125rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

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

.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 560;
  color: var(--night-ink-2);
}

.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}

.nav ul a:hover::after,
.nav ul a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--night-ink);
}

.nav .button {
  min-height: 40px;
  padding: 0 var(--space-4);
}

.site-header .button:not(.button--primary) {
  border-color: color-mix(in srgb, var(--night-ink) 28%, transparent);
  color: var(--night-ink);
}

.site-header .button:not(.button--primary):hover {
  background: var(--night-ink);
  color: var(--night);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 0 var(--space-4);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: var(--night);
    border-bottom: 1px solid var(--night-rule);
  }

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

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

  .nav ul a {
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--night-rule);
    font-size: var(--step-1);
  }

  .nav ul a::after {
    display: none;
  }

  .nav .button {
    justify-content: center;
    min-height: 48px;
  }
}

/* ---- Sections */

.section {
  padding-block: var(--space-10) var(--space-9);
  border-top: 1px solid var(--rule);
}

.section-head {
  min-width: 0;
  grid-column: 1 / span 5;
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.section-body {
  min-width: 0;
  grid-column: 7 / span 6;
}

h1,
h2 {
  overflow-wrap: break-word;
}

.section-head p + p {
  margin-top: 0;
}

.points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.points .icon {
  margin-top: 4px;
  color: var(--accent);
}

@media (max-width: 900px) {
  .section {
    padding-block: var(--space-9) var(--space-8);
  }

  .section-head,
  .section-body {
    grid-column: 1 / -1;
  }

  .section-body {
    margin-top: var(--space-7);
  }
}

/* ---- Hero: the product page assembling in the grid */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-9) var(--space-10);
  background: var(--night);
  color: var(--night-ink);
}

/* Blueprint grid with a slow scan line; decorative only */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--night-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-rule) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -240px;
  top: -320px;
  background: radial-gradient(circle, color-mix(in srgb, var(--signal) 22%, transparent), transparent 62%);
  pointer-events: none;
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--signal) 12%, transparent) 85%, color-mix(in srgb, var(--signal) 50%, transparent) 100%);
  transform: translateY(-160px);
  opacity: 0;
}

.can-animate .hero-scan {
  animation: scan 7s cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-160px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

.hero-copy {
  grid-column: 1 / span 6;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--space-6);
  padding-top: var(--space-5);
  padding-right: var(--space-5);
}

.hero h1 {
  font-size: clamp(2.5rem, 1rem + 3.6vw, 4.5rem);
  font-stretch: 104%;
  line-height: 1;
  color: var(--night-ink);
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero h1 .accent-word {
  color: var(--signal);
}

.hero .lead {
  color: var(--night-ink-2);
}

.hero .button:not(.button--primary) {
  border-color: color-mix(in srgb, var(--night-ink) 32%, transparent);
  color: var(--night-ink);
}

.hero .button:not(.button--primary):hover {
  background: var(--night-ink);
  border-color: var(--night-ink);
  color: var(--night);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.board {
  grid-column: 7 / span 6;
  min-width: 0;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--night-ink) 50%, transparent);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--signal) 25%, transparent),
    0 40px 90px -30px color-mix(in srgb, var(--signal) 45%, transparent),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

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

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.can-animate .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s var(--ease-out) infinite;
}

@keyframes ping {
  from {
    transform: scale(1);
    opacity: 0.7;
  }

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

/* A light beam that sweeps the board while it assembles */
.board-beam {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--signal) 14%, transparent) 70%, color-mix(in srgb, var(--signal) 55%, transparent) 99%, transparent);
  transform: translateX(-110%);
  pointer-events: none;
  opacity: 0;
}

.can-animate .board.is-building .board-beam {
  animation: beam 1.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes beam {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateX(290%);
    opacity: 0;
  }
}

.board-cap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink-2);
  font: inherit;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}

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

.module {
  position: relative;
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.module + .module {
  border-left: 1px solid var(--rule);
}

.module-label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.m-ean {
  grid-column: 1 / span 3;
}

.m-name {
  grid-column: 4 / span 3;
}

.m-ean .ean {
  font-family: var(--mono);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.ean-caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--accent);
}

.m-name .name {
  font-size: var(--step-1);
  font-weight: 720;
  font-stretch: 104%;
  line-height: 1.2;
}

.m-specs {
  grid-column: 1 / span 3;
  border-left: 0 !important;
}

.m-photos {
  grid-column: 4 / span 3;
}

.m-text {
  grid-column: 1 / -1;
  border-left: 0 !important;
  border-bottom: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.spec-table th,
.spec-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  font-weight: 500;
  color: var(--ink-2);
  padding-right: var(--space-3);
}

.spec-table td {
  font-weight: 640;
  text-align: right;
  white-space: nowrap;
}

/* Photos: the chosen one face-out, the others as spines */
.shelf {
  display: grid;
  grid-template-columns: var(--shelf, 4fr 1fr 1fr 1fr 1fr);
  gap: 4px;
  height: 176px;
  transition: grid-template-columns 420ms var(--ease-out);
}

.shelf-item {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
}

.shelf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 300ms var(--ease-out);
}

.shelf-item:not(.is-face) img {
  filter: grayscale(0.6) contrast(0.95);
}

.shelf-item.is-face {
  border-color: var(--ink);
}

.shelf-item.is-face img {
  object-fit: contain;
  background: #fff;
}

.photo-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.shelf-item.is-face .photo-tag {
  opacity: 1;
}

.photo-tag .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.25;
}

.photo-count {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.m-text .text-title {
  font-weight: 700;
  font-stretch: 104%;
  font-size: var(--step-0);
  margin-bottom: var(--space-2);
}

.m-text .intro {
  font-size: var(--step--1);
  color: var(--ink-2);
  max-width: none;
}

.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 560;
}

.chip .box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--rule-strong);
}

.chip .box .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  opacity: 0;
}

.chip.is-on {
  border-color: var(--accent);
  color: var(--ink);
}

.chip.is-on .box {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.chip.is-on .box .icon {
  opacity: 1;
}

.chip .count {
  color: var(--ink-3);
  font-weight: 500;
}

.chip.is-empty {
  border-style: dashed;
  color: var(--ink-3);
}

/* Assembly motion: only when JS and motion are allowed; content is visible otherwise */
.can-animate .board.is-idle .module > * {
  opacity: 0.12;
}

.can-animate .board.is-building .module.is-built > *,
.can-animate .board.is-done .module > * {
  opacity: 1;
}

.can-animate .board .module > * {
  transition: opacity 520ms var(--ease-out), clip-path 620ms var(--ease-out);
}

.can-animate .board.is-building .module:not(.is-built) > *:not(.module-label) {
  opacity: 0.12;
  clip-path: inset(0 100% 0 0);
}

.can-animate .board.is-building .module.is-built > * {
  clip-path: inset(0 0 0 0);
}

.can-animate .board .module.is-built::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: rule-fill 700ms var(--ease-out) both;
}

@keyframes rule-fill {
  from {
    transform: scaleX(0);
  }

  60% {
    transform: scaleX(1);
    opacity: 1;
  }

  to {
    transform: scaleX(1);
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .hero-copy,
  .board {
    grid-column: 1 / -1;
  }

  .hero-copy {
    padding-right: 0;
  }

  .board {
    margin-top: var(--space-8);
  }
}

@media (max-width: 640px) {
  .m-ean,
  .m-name,
  .m-specs,
  .m-photos {
    grid-column: 1 / -1;
    border-left: 0 !important;
  }

  .shelf {
    height: 150px;
  }
}

/* ---- Photo section (larger shelf) */

.shelf--large {
  height: clamp(260px, 30vw, 420px);
  grid-template-columns: var(--shelf, 5fr 1fr 1fr 1fr 1fr 1fr 1fr);
}

.shelf-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* ---- Sections preview (text section) */

.composer {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
}

.composer-bar {
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: var(--space-3);
}

.composer-bar .hint {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.composer-bar .chip {
  cursor: pointer;
}

.composer-bar .chip:not(.is-empty):hover {
  border-color: var(--ink);
}

.composer-output {
  padding: var(--space-5);
  max-height: 520px;
  overflow: auto;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.composer-output h3,
.composer-output h2 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--step-0);
  color: var(--ink);
}

.composer-output p {
  margin: 0 0 var(--space-3);
}

.composer-output ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.1em;
}

.composer-output li {
  margin-bottom: 2px;
}

.composer-output a {
  color: var(--accent-strong);
  text-decoration-color: var(--accent);
}

.composer-section {
  transition: opacity 220ms var(--ease-out);
}

.languages {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-top: var(--space-6);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.languages span {
  padding: var(--space-2) 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 640;
  text-transform: uppercase;
  color: var(--ink-2);
}

.languages span.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* ---- Category / brand sample */

.page-sample {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
}

.serp {
  padding: var(--space-5);
  border-bottom: 1px solid var(--rule);
}

.serp-url {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.serp-title {
  margin-top: 2px;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1.3;
}

.serp-desc {
  margin-top: var(--space-1);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.measure-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.measure {
  display: grid;
  gap: 4px;
  flex: 1 1 110px;
  max-width: 160px;
}

.measure-bar {
  height: 2px;
  background: var(--rule);
  position: relative;
}

.measure-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
}

.page-sample .composer-output {
  max-height: 440px;
}

.page-sample .sample-link,
.page-sample a {
  box-shadow: inset 0 -0.45em 0 var(--accent-tint);
  text-decoration: none;
  color: var(--ink);
}

/* ---- Measured band: the one committed petrol field */

.band {
  background: var(--accent);
  color: var(--on-accent);
  padding-block: var(--space-9);
}

.band h2 {
  grid-column: 1 / span 5;
}

.band .band-note {
  grid-column: 1 / span 5;
  margin-top: var(--space-4);
  color: var(--on-accent-2);
}

.measures {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  width: 100%;
  border-collapse: collapse;
}

.measures th,
.measures td {
  padding: var(--space-4) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  text-align: left;
  font-weight: 500;
}

.measures td {
  text-align: right;
  font-size: var(--step-2);
  font-weight: 760;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.band ::selection {
  background: var(--on-accent);
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .band h2,
  .band .band-note,
  .measures {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .measures {
    margin-top: var(--space-6);
  }
}

/* ---- Module + API */

.split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--space-7);
  border-top: 1px solid var(--ink);
}

.split > div {
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.split > div + div {
  padding-left: var(--space-6);
  border-left: 1px solid var(--rule);
}

.code {
  margin: 0;
  padding: var(--space-4);
  background: var(--ink);
  color: var(--night-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  font-variant-numeric: normal;
}

.code .c {
  color: var(--signal);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split > div,
  .split > div + div {
    padding: var(--space-6) 0;
    border-left: 0;
  }

  .split > div + div {
    border-top: 1px solid var(--rule);
  }
}

/* ---- Cost route */

.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.route li {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-right: 1px solid var(--rule);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.route li + li {
  padding-left: var(--space-4);
}

.route li:last-child {
  border-right: 0;
}

.route strong {
  font-weight: 700;
}

.route .cost {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.route .cost.is-paid {
  color: var(--ink);
  font-weight: 640;
}

@media (max-width: 640px) {
  .route {
    grid-template-columns: 1fr 1fr;
  }

  .route li:nth-child(2) {
    border-right: 0;
  }

  .route li:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }

  .route li:nth-child(4) {
    border-top: 1px solid var(--rule);
  }
}

/* ---- Close (try it) */

.close {
  padding-block: var(--space-10);
  border-top: 1px solid var(--rule);
}

.close h2 {
  grid-column: 1 / span 6;
}

.close p {
  grid-column: 1 / span 6;
  margin-top: var(--space-4);
  color: var(--ink-2);
}

.close form {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
  align-self: end;
}

@media (max-width: 900px) {
  .close h2,
  .close p,
  .close form {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .close form {
    margin-top: var(--space-6);
  }
}

.ean-form {
  display: grid;
  gap: var(--space-3);
}

.ean-form label {
  font-weight: 640;
}

.ean-input-row {
  display: flex;
  gap: 0;
}

.input,
.ean-input-row input,
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.ean-input-row input {
  font-size: var(--step-1);
  font-weight: 640;
  letter-spacing: 0.04em;
  border-right: 0;
}

.input:hover,
.ean-input-row input:hover,
.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: var(--ink-3);
}

.input:focus,
.ean-input-row input:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.ean-input-row .button {
  flex: none;
}

::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

/* ---- Page header (sub pages) */

.page-head {
  padding-block: var(--space-9) var(--space-7);
}

.page-head h1 {
  grid-column: 1 / span 8;
}

.page-head .lead {
  grid-column: 1 / span 7;
  margin-top: var(--space-5);
}

@media (max-width: 900px) {
  .page-head h1,
  .page-head .lead {
    grid-column: 1 / -1;
  }
}

/* ---- Pricing */

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.package {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5) var(--space-6) 0;
}

.package + .package {
  padding-left: var(--space-5);
  border-left: 1px solid var(--rule);
}

.package.is-highlighted {
  position: relative;
}

.package.is-highlighted::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.package-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--step-2);
  font-weight: 780;
  font-stretch: 108%;
}

.package-flag {
  font-size: var(--step--1);
  font-weight: 640;
  color: var(--accent-strong);
}

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.price strong {
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--ink-3);
  font-size: var(--step--1);
}

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

.package li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.package li .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--accent);
}

.package .button {
  justify-content: center;
}

.note {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .packages {
    grid-template-columns: 1fr;
  }

  .package,
  .package + .package {
    padding: var(--space-6) 0;
    border-left: 0;
  }

  .package + .package {
    border-top: 1px solid var(--rule);
  }
}

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-weight: 640;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  transition: transform 200ms var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: var(--space-4);
  color: var(--ink-2);
}

/* ---- Demo */

.demo {
  padding-bottom: var(--space-10);
}

.demo-form {
  grid-column: 1 / span 6;
}

.demo-form--pick {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-3);
}

.demo-pick-label {
  margin: 0;
  font-weight: 700;
}

.demo-form--pick .example-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.demo-form--pick .example-list button {
  width: 100%;
  min-height: 64px;
  padding: var(--space-3);
}

.example-list button.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.example-list button:disabled {
  cursor: progress;
}

.demo-aside {
  grid-column: 8 / span 5;
  display: grid;
  align-content: start;
  gap: var(--space-3);
}

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

.example-list button {
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  text-align: left;
  cursor: pointer;
}

.example-list button:hover {
  border-color: var(--ink);
}

.example-list button span {
  display: block;
  color: var(--ink-3);
  font-size: 0.75rem;
}

.demo-status {
  grid-column: 1 / -1;
  margin-top: var(--space-7);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.steps li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  font-size: var(--step--1);
  color: var(--ink-3);
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.steps li.is-active {
  color: var(--ink);
  border-top-color: var(--accent);
}

.steps li.is-done {
  color: var(--ink-2);
  border-top-color: var(--ink);
}

.steps .state {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  flex: none;
  display: grid;
  place-items: center;
}

.steps li.is-done .state {
  background: var(--ink);
  border-color: var(--ink);
}

.steps li.is-done .state::after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: rotate(-45deg) translate(1px, -1px);
}

.steps li.is-active .state {
  border-color: var(--accent);
  animation: pending 1.2s steps(2, jump-none) infinite;
}

@keyframes pending {
  from {
    background: transparent;
  }

  to {
    background: var(--accent);
  }
}

.alert {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--reject);
  background: #fbf0ee;
  color: #5c1f15;
}

.result {
  grid-column: 1 / -1;
  margin-top: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.result > section {
  padding: var(--space-5);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.result .r-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}

.result .r-head h2 {
  font-size: var(--step-2);
}

.result .r-photos {
  grid-column: 1 / span 7;
  border-right: 1px solid var(--rule);
}

.result .r-specs {
  grid-column: 8 / span 5;
}

.result .r-text {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.result h3 {
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-3);
}

.result-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.result-photos figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
}

.result-photos figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.result-photos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-photos .photo-tag {
  opacity: 1;
}

.result .serp {
  padding: 0;
  border: 0;
  margin-bottom: var(--space-4);
}

.sources {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.demo-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .demo-form,
  .demo-aside {
    grid-column: 1 / -1;
  }

  .demo-aside {
    margin-top: var(--space-6);
  }

  .result .r-photos,
  .result .r-specs {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Forms (contact) */

.form {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-5);
}

.form .field {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.form .field--wide {
  grid-column: 1 / -1;
}

.form label {
  font-weight: 640;
}

.form .optional {
  font-weight: 400;
  color: var(--ink-3);
}

.form .hint {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form .check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-weight: 400;
}

.form .check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.form .error {
  font-size: var(--step--1);
  color: var(--reject);
  font-weight: 560;
}

.form [aria-invalid="true"] {
  border-color: var(--reject);
}

.form .actions {
  grid-column: 1 / -1;
}

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

.contact-aside {
  grid-column: 9 / span 4;
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding-left: var(--space-5);
  border-left: 1px solid var(--rule);
  color: var(--ink-2);
}

.thanks {
  grid-column: 1 / span 7;
  padding: var(--space-6);
  border: 1px solid var(--accent);
  background: var(--surface);
  display: grid;
  gap: var(--space-3);
}

@media (max-width: 900px) {
  .form,
  .contact-aside,
  .thanks {
    grid-column: 1 / -1;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    margin-top: var(--space-7);
    padding-left: 0;
    border-left: 0;
  }
}

/* ---- Docs (read mode) */

.docs {
  padding-bottom: var(--space-10);
}

.docs-nav {
  grid-column: 1 / span 3;
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
  align-self: start;
  font-size: var(--step--1);
}

.docs-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.docs-nav a {
  display: block;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink-2);
}

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

.prose {
  grid-column: 5 / span 8;
  min-width: 0;
}

.prose h2 {
  font-size: var(--step-2);
  margin: var(--space-8) 0 var(--space-4);
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}

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

.prose h3 {
  margin: var(--space-6) 0 var(--space-3);
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose .code {
  margin: 0 0 var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: var(--space-1);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 1px 4px;
  background: var(--paper-2);
  font-variant-numeric: normal;
}

.prose .code code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

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

.prose th {
  border-bottom-color: var(--ink);
  font-weight: 640;
}

.method {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: normal;
}

@media (max-width: 900px) {
  .docs-nav {
    position: static;
    grid-column: 1 / -1;
    margin-bottom: var(--space-7);
  }

  .prose {
    grid-column: 1 / -1;
  }
}

/* ---- 404 */

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

.notfound h1 {
  grid-column: 1 / span 8;
}

.notfound p {
  grid-column: 1 / span 6;
  margin-top: var(--space-5);
}

.notfound .hero-actions {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
}

/* ---- Footer: see "Footer: the closing module" further down */

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

  .shelf {
    transition: none;
  }

  .can-animate .board .module > * {
    transition: opacity 200ms linear !important;
    clip-path: none !important;
  }

  .can-animate .board .module.is-built::after {
    animation: none;
  }

  .steps li.is-active .state {
    animation: none;
    background: var(--accent);
  }
}

/* Utilities (no inline styles: the CSP forbids them) */
.mt-6 {
  margin-top: var(--space-6);
}

.mt-7 {
  margin-top: var(--space-7);
}

.section-head--wide {
  grid-column: 1 / span 7;
}

@media (max-width: 900px) {
  .section-head--wide {
    grid-column: 1 / -1;
  }
}

.w-0 {
  width: 0%;
}

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-35 {
  width: 35%;
}

.w-40 {
  width: 40%;
}

.w-45 {
  width: 45%;
}

.w-50 {
  width: 50%;
}

.w-55 {
  width: 55%;
}

.w-60 {
  width: 60%;
}

.w-65 {
  width: 65%;
}

.w-70 {
  width: 70%;
}

.w-75 {
  width: 75%;
}

.w-80 {
  width: 80%;
}

.w-85 {
  width: 85%;
}

.w-90 {
  width: 90%;
}

.w-95 {
  width: 95%;
}

.w-100 {
  width: 100%;
}


/* If the assembly script never runs, the hero still shows itself */
.can-animate .board.is-idle .module > * {
  animation: show-anyway 1ms linear 2.5s forwards;
}

@keyframes show-anyway {
  to {
    opacity: 1;
  }
}

/* The accent stripe in the logo follows the palette */
.mark-accent {
  fill: var(--signal);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* ==========================================================================
   Motion layer: ticker, slide-in reveals, sheen, spotlight, line draws.
   Everything here is opt-in through html.can-animate (set before first paint
   only when the visitor allows motion) and through classes site.js adds, so
   without JS or with reduced motion all content is simply visible.
   ========================================================================== */

/* ---- Ticker: the supported facts, sliding past */
.ticker {
  overflow: hidden;
  background: var(--night-2);
  color: var(--night-ink);
  border-block: 1px solid var(--night-rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal);
  transform: rotate(45deg);
}

.can-animate .ticker-track {
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

html:not(.can-animate) .ticker-track {
  width: auto;
}

html:not(.can-animate) .ticker-list {
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

html:not(.can-animate) .ticker-list[aria-hidden="true"] {
  display: none;
}

/* ---- Slide-in reveals (site.js marks the elements and sets --d for stagger) */
.can-animate .reveal {
  opacity: 0;
  transform: translate3d(var(--rx, 0), var(--ry, 32px), 0);
  transition:
    opacity 700ms var(--ease-out) var(--d, 0ms),
    transform 900ms var(--ease-out) var(--d, 0ms),
    clip-path 900ms var(--ease-out) var(--d, 0ms);
}

.can-animate .reveal--left {
  --rx: -56px;
  --ry: 0;
}

.can-animate .reveal--right {
  --rx: 56px;
  --ry: 0;
}

.can-animate .reveal--wipe {
  --ry: 0;
  clip-path: inset(0 100% 0 0);
}

.can-animate .reveal.is-in {
  opacity: 1;
  transform: none;
  /* No clip once shown: inset(0) shaved the 1px border off buttons on a fractional pixel */
  clip-path: none;
}

/* A wipe ends a little outside its box, for the same reason */
.can-animate .reveal--wipe.is-in {
  clip-path: inset(-4px);
}

/* Section titles: a short signal rule draws in above the heading */
.section-head h2,
.band h2,
.close h2 {
  position: relative;
  padding-top: var(--space-5);
}

.section-head h2::before,
.band h2::before,
.close h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
}

.band h2::before {
  background: var(--on-accent);
}

.can-animate .reveal h2::before,
.can-animate h2.reveal::before {
  transform: scaleX(0);
  transition: transform 800ms var(--ease-out) calc(var(--d, 0ms) + 250ms);
}

.can-animate .reveal.is-in h2::before,
.can-animate h2.reveal.is-in::before {
  transform: scaleX(1);
}

/* Lines that draw themselves */
.can-animate .route.reveal,
.can-animate .split.reveal {
  border-top-color: transparent;
  position: relative;
}

.can-animate .route.reveal::before,
.can-animate .split.reveal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1200ms var(--ease-out) 150ms;
}

.can-animate .route.reveal.is-in::before,
.can-animate .split.reveal.is-in::before {
  transform: scaleX(1);
}

.can-animate .measure-bar span {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms var(--ease-out) 500ms;
}

.can-animate .is-in .measure-bar span {
  transform: none;
}

/* ---- Buttons: a sheen that slides across, the arrow nudges forward */
.button {
  position: relative;
  overflow: hidden;
}

.button--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--night-ink) 28%, transparent), transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}

.can-animate .button--primary:hover::after {
  transition: transform 700ms var(--ease-out);
  transform: translateX(220%) skewX(-12deg);
}

.button .icon {
  transition: transform 260ms var(--ease-out);
}

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

.button--primary {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 0%, transparent);
  transition: background-color 150ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 120ms var(--ease-out);
}

.button--primary:hover {
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* ---- Spotlight: a soft signal light follows the pointer over the panels */
.spotlight {
  position: relative;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--signal) 10%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.spotlight.is-lit::after {
  opacity: 1;
}

/* Panels lift a little on hover */
.composer,
.page-sample,
.package,
.result {
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.composer:hover,
.page-sample:hover {
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--night) 35%, transparent);
}

.package:hover {
  transform: translateY(-4px);
}

/* Chips toggle with a small spring */
.chip {
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.chip .box {
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.composer-bar .chip:active {
  transform: scale(0.96);
}

.composer-section[hidden] {
  display: none;
}

.can-animate .composer-section.is-entering {
  animation: section-in 520ms var(--ease-out);
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Languages light up one after another */
.languages span {
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}

.languages span.is-ping {
  background: var(--accent-tint);
  color: var(--accent-strong);
}

/* Shelf photos: face-out photo zooms in softly */
.shelf-item img {
  transition: filter 300ms var(--ease-out), transform 700ms var(--ease-out);
}

.shelf-item:not(.is-face):hover img {
  filter: none;
  transform: scale(1.06);
}

/* Measured band: a fine moving grid behind the numbers */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--night-ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--night-ink) 7%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.can-animate .band::before {
  animation: drift 18s linear infinite;
}

@keyframes drift {
  to {
    background-position: 40px 40px;
  }
}

.measures tr {
  transition: background-color 250ms var(--ease-out);
}

.measures tr:hover {
  background: color-mix(in srgb, var(--night-ink) 6%, transparent);
}

/* Code: a blinking cursor at the end */
.code code::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.2em;
  background: var(--signal);
}

.can-animate .code code::after {
  animation: blink 1.1s steps(2, jump-none) infinite;
}

@keyframes blink {
  to {
    opacity: 0;
  }
}

/* Sub-page heads get the same night treatment as the home hero */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  margin-bottom: var(--space-8);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--night-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 20%, transparent 100%);
}

.page-head .lead {
  color: var(--night-ink-2);
}

.can-animate .page-head h1,
.can-animate .page-head .lead,
.can-animate .hero-copy > * {
  animation: rise 900ms var(--ease-out) both;
}

.can-animate .hero-copy > :nth-child(2),
.can-animate .page-head .lead {
  animation-delay: 120ms;
}

.can-animate .hero-copy > :nth-child(3) {
  animation-delay: 240ms;
}

.can-animate .hero .board {
  animation: board-in 1100ms var(--ease-out) 150ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes board-in {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scan,
  .board-beam,
  .pulse::after {
    display: none;
  }

  .button .icon,
  .package {
    transition: none;
    transform: none !important;
  }
}

/* Slide-ins start off to the side: never let that widen the page */
main {
  overflow-x: clip;
}

@media (max-width: 900px) {
  .can-animate .reveal--left {
    --rx: -24px;
  }

  .can-animate .reveal--right {
    --rx: 24px;
  }
}

.pricing {
  padding-bottom: var(--space-9);
}

/* ---- Language menu: one button, the languages drop down under it */
.lang-menu {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid color-mix(in srgb, var(--night-ink) 24%, transparent);
  color: var(--night-ink);
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

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

.lang-button:hover,
.lang-menu[open] .lang-button {
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 8%, transparent);
}

.lang-button .icon {
  width: 16px;
  height: 16px;
}

.lang-button .chevron {
  transition: transform 260ms var(--ease-out);
}

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

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 200px;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--night-2);
  border: 1px solid var(--night-rule);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--signal) 12%, transparent);
}

.can-animate .lang-menu[open] .lang-list {
  animation: drop 260ms var(--ease-out);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.site-header .lang-list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  color: var(--night-ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 560;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.site-header .lang-list a:hover,
.site-header .lang-list a:focus-visible {
  background: color-mix(in srgb, var(--night-ink) 6%, transparent);
  color: var(--night-ink);
}

.site-header .lang-list a[aria-current="true"] {
  color: var(--night-ink);
}

.lang-list .lang-code {
  min-width: 2.2em;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--signal);
}

.lang-list .icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--signal);
}

@media (max-width: 900px) {
  .lang-button {
    width: 100%;
    min-height: 48px;
  }

  .lang-button .chevron {
    margin-left: auto;
  }

  .lang-list {
    position: static;
    margin-top: var(--space-2);
    box-shadow: none;
  }
}

.nav .lang-list {
  display: block;
}

.site-header .button--primary,
.site-header .button--primary:hover {
  color: var(--on-accent);
}

/* Five fixed rows keep all eighteen languages reachable without covering the page. */
.nav .lang-list {
  max-height: calc(5 * 44px + 2 * var(--space-2) + 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--signal) var(--night-2);
}
.lang-list li { margin: 0; padding: 0; }
.site-header .lang-list a {
  height: 44px;
  white-space: nowrap;
}
.lang-flag {
  display: inline-block;
  flex: 0 0 1.5em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
}

/* ==========================================================================
   Phone widths (checked at 320-768px): nothing may wrap, overflow or overlap.
   ========================================================================== */

.brand {
  white-space: nowrap;
}

.route li {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 900px) {
  /* The open menu covers the page below the header and scrolls on its own.
     Height instead of bottom: the header's backdrop-filter makes it the
     containing block of this fixed panel. */
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .spec-table td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html:not(.can-animate) .ticker-list li {
    padding-block: var(--space-2);
  }
}

@media (max-width: 480px) {
  /* EAN field and button on top of each other, both full width */
  .ean-input-row {
    flex-direction: column;
  }

  .ean-input-row input {
    border-right: 1px solid var(--rule-strong);
    border-bottom: 0;
  }

  .ean-input-row .button {
    justify-content: center;
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .site-header .wrap {
    gap: var(--space-4);
  }

  .brand {
    gap: var(--space-2);
    font-size: 1rem;
  }

  .nav-toggle {
    padding: 0 var(--space-3);
  }
}

/* ==========================================================================
   Footer: the closing module. Same hairline grid as the hero; the page signs
   off with the demo EAN as a real, scannable EAN-13 that builds bar by bar.
   ========================================================================== */

.site-footer {
  position: relative;
  padding-top: var(--space-9);
  background: var(--night);
  color: var(--night-ink-2);
  font-size: var(--step--1);
}

.site-footer a:not(.button) {
  color: inherit;
}

.footer-modules {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-block: 1px solid var(--night-rule);
}

.footer-modules > * {
  min-width: 0;
  padding: var(--space-7) var(--space-6);
}

.footer-brand {
  grid-column: 1 / span 6;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-4);
  padding-left: 0;
}

.footer-pages {
  grid-column: 7 / span 2;
  border-left: 1px solid var(--night-rule);
}

.footer-langs {
  grid-column: 9 / span 4;
  border-left: 1px solid var(--night-rule);
  padding-right: 0;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--night-ink) !important;
  font-weight: 800;
  font-stretch: 116%;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.footer-wordmark .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-title {
  max-width: 16ch;
  margin: var(--space-3) 0 0;
  color: var(--night-ink);
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.footer-by {
  margin: 0;
}

.footer-by a {
  color: var(--night-ink);
  text-decoration-color: var(--signal);
  text-underline-offset: 3px;
}

.footer-cta {
  margin-top: var(--space-4);
}

.footer-cta .icon {
  transition: transform 300ms var(--ease-out);
}

.footer-cta:hover .icon {
  transform: translateX(4px);
}

.footer-heading {
  margin: 0 0 var(--space-4);
  color: var(--night-ink);
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0;
}

.footer-pages ul,
.footer-langs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-pages ul {
  display: grid;
}

/* Links underline from the left on hover, in the signal colour */
.footer-pages a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) left bottom 4px / 0 1px no-repeat;
  transition: background-size 350ms var(--ease-out), color 200ms var(--ease-out);
}

.footer-pages a:hover,
.footer-pages a:focus-visible {
  color: var(--night-ink);
  background-size: 100% 1px;
}

.footer-pages a[aria-current="page"] {
  color: var(--night-ink);
  background-size: 100% 1px;
}

/* Languages: one cell per language code, hairlines between them */
.footer-langs ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--night-rule);
  border: 1px solid var(--night-rule);
}

.footer-langs li {
  background: var(--night);
}

.footer-langs a {
  display: grid;
  place-items: center;
  min-height: 44px;
  font-weight: 640;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.footer-langs a:hover {
  background: var(--night-2);
  color: var(--night-ink);
}

.footer-langs a[aria-current="true"] {
  background: var(--signal);
  color: var(--night);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.footer-langs a:focus-visible {
  outline-offset: -2px;
}

/* The sign-off: the demo EAN as a barcode on a hairline, and the way back up */
.footer-sign {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-7);
}

.footer-ean {
  grid-column: 1 / span 7;
  margin: 0;
  cursor: crosshair;
  --scan-start: 1150ms;
  --scan-dur: 1300ms;
}

.footer-ean.is-rescan {
  --scan-start: 0ms;
}

.footer-ean svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(120px, 15vw, 216px);
  overflow: visible;
}

.footer-ean .bar {
  fill: var(--night-ink);
}

.footer-ean .bar--accent {
  fill: var(--signal);
}

.footer-ean .digit {
  fill: var(--night-ink-2);
  font-family: var(--mono);
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.footer-ean .scanner {
  opacity: 0;
  pointer-events: none;
}

.footer-ean .scanner-beam {
  fill: var(--signal);
}

.footer-ean .scanner-glow {
  fill: var(--signal);
  opacity: 0.22;
}

/* © and back to top, side by side at the bottom right */
.footer-meta {
  grid-column: 8 / span 5;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3) var(--space-5);
}

.footer-meta p {
  margin: 0;
  white-space: nowrap;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--night-rule);
  color: var(--night-ink) !important;
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.footer-top .icon {
  transform: rotate(-90deg);
  transition: transform 300ms var(--ease-out);
}

.footer-top:hover {
  border-color: var(--signal);
  background: var(--night-2);
}

.footer-top:hover .icon {
  transform: rotate(-90deg) translateX(3px);
}

/* Motion (opt-in). 1: the bars rise from the baseline, left to right.
   2: a laser sweeps across; every bar lights up as the beam reads it and each
   digit is decoded underneath. Hover scans it again. */
.can-animate .footer-ean .bar {
  opacity: 0;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition:
    transform 1000ms var(--ease-out) calc(var(--x) * 9ms),
    opacity 200ms linear calc(var(--x) * 9ms);
}

.can-animate .footer-ean.is-in .bar {
  opacity: 1;
  transform: scaleY(1);
}

.can-animate .footer-ean .digit {
  opacity: 0;
}

.can-animate .footer-ean.is-scan .scanner {
  animation: footer-scan var(--scan-dur) cubic-bezier(0.45, 0, 0.55, 1) var(--scan-start) 1 both;
}

.can-animate .footer-ean.is-scan .bar:not(.bar--accent) {
  animation: footer-bar-read 650ms var(--ease-out) calc(var(--scan-start) + var(--scan-dur) * (var(--x) + 9) / 113) 1;
}

.can-animate .footer-ean.is-scan .digit {
  animation: footer-digit 420ms var(--ease-out) calc(var(--scan-start) + var(--scan-dur) * (var(--x) + 9) / 113) 1 both;
}

@keyframes footer-scan {
  0% { opacity: 0; transform: translateX(0); }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(113px); }
}

@keyframes footer-bar-read {
  0% { fill: var(--signal); }
  100% { fill: var(--night-ink); }
}

@keyframes footer-digit {
  0% { opacity: 0; fill: var(--signal); }
  40% { opacity: 1; fill: var(--signal); }
  100% { opacity: 1; fill: var(--night-ink-2); }
}

@media (max-width: 900px) {
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-pages {
    grid-column: 1 / span 5;
    border-left: 0;
    border-top: 1px solid var(--night-rule);
    padding-left: 0;
  }

  .footer-langs {
    grid-column: 6 / span 7;
    border-top: 1px solid var(--night-rule);
  }

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

  .footer-ean,
  .footer-meta {
    grid-column: 1 / -1;
  }

  .footer-meta {
    justify-self: stretch;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: var(--space-8);
  }

  .footer-modules > * {
    padding: var(--space-6) 0;
  }

  .footer-pages,
  .footer-langs {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .footer-pages ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .footer-pages a {
    padding: 10px 0;
  }

  .footer-sign {
    padding-top: var(--space-7);
  }

}

@media (prefers-reduced-motion: reduce) {
  .footer-pages a,
  .footer-langs a,
  .footer-top,
  .footer-top .icon,
  .footer-cta .icon {
    transition: none;
  }
}

/* ==========================================================================
   Customer accounts (/account): log in, sign up, dashboard. Same hairline
   grid; states are drawn (icon + word), never colour alone.
   ========================================================================== */

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent-strong);
}

/* Log in / sign up / forgotten password */
.account-auth {
  padding-bottom: var(--space-10);
}

.account-auth-main {
  grid-column: 1 / span 6;
  min-width: 0;
}

.account-auth-main .form {
  grid-column: auto;
}

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

.account-auth-side {
  grid-column: 8 / span 5;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-4);
  padding-left: var(--space-6);
  border-left: 1px solid var(--rule);
  color: var(--ink-2);
}

.account-auth-side h2 {
  color: var(--ink);
  font-size: var(--step-2);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.account-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.account-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}

.account-step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.account-flash {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--accent);
  background: var(--accent-tint);
  color: var(--ink);
}

.account-flash .icon {
  flex: none;
  color: var(--accent);
}

.account-flash > span {
  flex: 1;
}

.account-flash-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -6px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.account-flash-close:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

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

.account-flash-close .icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.account-flash.is-error {
  border-color: var(--reject);
  background: #fbf0ee;
  color: #5c1f15;
}

.account-flash.is-error .icon {
  color: var(--reject);
}

/* Dashboard */
.account-head .wrap {
  align-items: end;
}

.account-head-main {
  grid-column: 1 / span 9;
}

.account-head-main h1 {
  overflow-wrap: anywhere;
}

.account-head .lead {
  margin-top: var(--space-4);
  overflow-wrap: anywhere;
}

.nav-logout {
  display: contents;
}

/* Room between the last section and the footer */
.account-dash {
  padding-bottom: var(--space-10);
}

/* Where the account stands: three modules on one ruled band */
.account-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
}

.account-status-item {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  color: inherit;
  text-decoration: none;
}

.account-status-item + .account-status-item {
  padding-left: var(--space-5);
  border-left: 1px solid var(--rule);
}

a.account-status-item:hover strong {
  color: var(--accent);
}

.account-status-label {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.account-status-item strong {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: color 200ms var(--ease-out);
}

.account-status-item strong code {
  font-size: 0.75em;
}

.account-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 2px 10px 2px 6px;
  border: 1px solid var(--rule-strong);
  font-size: var(--step--1);
  font-weight: 640;
  color: var(--ink-2);
}

.account-state .icon {
  width: 16px;
  height: 16px;
}

.account-state.is-active {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.account-state.is-unpaid {
  border-style: dashed;
  border-color: var(--ink-3);
}

.account-state.is-none {
  color: var(--ink-3);
}

/* In-page navigation, stays under the header */
.account-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  /* Narrower gaps on smaller screens, so every tab stays in view before it has to scroll */
  gap: clamp(var(--space-4), 2vw, var(--space-6));
  margin-bottom: var(--space-2);
  padding-block: var(--space-3);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}

.account-tabs a {
  padding: var(--space-2) 0;
  color: var(--ink-2);
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  transition: background-size 300ms var(--ease-out), color 200ms var(--ease-out);
}

.account-tabs a:hover,
.account-tabs a:focus-visible {
  color: var(--ink);
  background-size: 100% 2px;
}

.account-section {
  padding-top: var(--space-8);
  scroll-margin-top: calc(var(--header-h) + 64px);
}

.account-section-head {
  display: grid;
  gap: var(--space-3);
  max-width: 62ch;
  margin-bottom: var(--space-6);
}

.account-section-head h2 {
  font-size: var(--step-3);
}

.account-section-head p {
  margin: 0;
  color: var(--ink-2);
}

.account-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--accent);
  background: var(--surface);
}

.account-notice p {
  flex: 1 1 24rem;
  margin: 0;
}

.account-notice .icon {
  flex: none;
  color: var(--accent);
}

/* Plans: one ruled row of packages */
.account-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.account-plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--rule);
}

.account-plan:last-child {
  border-right: 0;
}

.account-plan.is-current,
.account-plan.is-requested {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.account-plan.is-requested {
  box-shadow: inset 0 0 0 2px var(--ink-3);
}

.account-plan h3 {
  font-size: var(--step-2);
}

.account-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--space-2);
  margin: 0;
  line-height: 1.2;
}

.account-plan-price strong {
  font-size: var(--step-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.account-plan-price span {
  color: var(--ink-3);
  font-size: var(--step--1);
}

.account-plan ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}

.account-plan li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--space-2);
}

.account-plan li .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.account-plan form .button {
  width: 100%;
  justify-content: center;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  border: 1px solid var(--accent);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 640;
}

.account-plan-badge.is-pending {
  border: 1px dashed var(--ink-3);
  background: none;
  color: var(--ink-2);
}

.account-fineprint {
  margin-top: var(--space-4);
  max-width: 70ch;
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* API key */
.account-locked {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-6);
  border: 1px dashed var(--rule-strong);
  background: var(--surface);
}

.account-locked.is-ready {
  border: 1px solid var(--accent);
}

.account-locked-icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  border: 1px solid var(--rule-strong);
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.5;
}

.account-locked.is-ready .account-locked-icon {
  border-color: var(--accent);
  stroke: var(--accent);
}

.account-locked h3 {
  font-size: var(--step-1);
}

.account-locked p {
  margin: var(--space-2) 0 var(--space-4);
  max-width: 60ch;
  color: var(--ink-2);
}

.account-newkey {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 2px solid var(--accent);
  background: var(--accent-tint);
}

.account-key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.account-key-row code {
  flex: 1 1 20rem;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  user-select: all;
}

[data-copy].is-copied {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.account-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.account-panel {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.account-panel h3 {
  font-size: var(--step-1);
}

.account-panel > .muted {
  margin: 0;
}

.account-panel .form,
.account-panel.form {
  gap: var(--space-4);
}

/* .form normally spans 7 of 12 page columns; inside the panel grid it takes its own cell */
.account-key-grid > .form {
  grid-column: auto;
}

/* Module download: version choice above the button, one column */
.account-module-form {
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  max-width: 24rem;
}

.account-quickstart {
  margin-top: var(--space-5);
}

.account-renew {
  flex-wrap: wrap;
}

.account-renew p {
  flex: 1 1 280px;
}

.account-renew.is-urgent {
  border-color: var(--reject);
}

.account-renew.is-urgent .icon {
  color: var(--reject);
}

/* Invoices: number, date, what, amount, download */
.account-invoices {
  padding: 0;
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.account-table th,
.account-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}

.account-table th {
  font-size: var(--step--1);
  font-weight: 640;
  color: var(--ink-3);
}

.account-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-table .is-num {
  text-align: right;
  white-space: nowrap;
}

.account-table .is-action {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 600px) {
  .account-table thead {
    display: none;
  }

  .account-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--rule);
  }

  .account-table td {
    padding: 0;
    border: 0;
  }

  .account-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .account-table .is-action {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Enrich in the dashboard: the demo's form, steps and result, inside a panel */
.account-enrich {
  gap: 0;
}

.account-enrich-form {
  grid-column: auto;
}

.account-enrich-parts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  border: 0;
}

.account-enrich-parts legend {
  width: 100%;
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 640;
}

.account-enrich-parts .check {
  grid-column: auto;
}

.account-enrich-credits {
  display: grid;
  max-width: none;
  gap: var(--space-1);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.account-enrich-credits .muted {
  font-size: var(--step--1);
}

.account-enrich .demo-status {
  margin-top: var(--space-6);
}

.account-enrich .result {
  margin-top: var(--space-6);
}

.r-copy-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.r-copy-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.r-copy-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.r-copy-item dt {
  grid-column: 1;
  font-size: var(--step--1);
  font-weight: 640;
  color: var(--ink-3);
}

.r-copy-item dd {
  grid-column: 1;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.r-copy-item dd.composer-output {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.r-copy-item .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 600px) {
  .r-copy-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .r-copy-item .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

.account-quickstart .code {
  margin: 0;
}

.account-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  margin: 0;
}

.account-dl dt {
  color: var(--ink-3);
}

.account-dl dd {
  margin: 0;
  min-width: 0;
}

.account-dl dd,
.account-status-item {
  font-variant-numeric: tabular-nums;
}

.account-meter-box {
  display: contents;
}

.account-meter {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 6px;
  margin: 6px 0 4px;
  border: 0;
  background: var(--paper-2);
  appearance: none;
}

.account-meter::-webkit-progress-bar {
  background: var(--paper-2);
}

.account-meter::-webkit-progress-value {
  background: var(--accent);
}

.account-meter::-moz-progress-bar {
  background: var(--accent);
}

.account-meter-text {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.account-meter-text strong {
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
}

.account-status-item .account-meter-text {
  font-size: var(--step-1);
}

.account-domains {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.account-domains li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.account-domains li.is-empty {
  font-family: var(--font);
  color: var(--reject);
}

.account-domains button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.account-domains button:hover {
  border-color: var(--reject);
  color: var(--reject);
}

.account-inline {
  display: flex;
  gap: 0;
}

.account-inline input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule-strong);
  border-right: 0;
  background: var(--surface);
  font: inherit;
}

.account-inline input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.account-label {
  font-weight: 640;
}

.account-readonly {
  padding: var(--space-3) 0;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .account-auth-main,
  .account-auth-side,
  .account-head-main {
    grid-column: 1 / -1;
  }

  .account-auth-side {
    margin-top: var(--space-7);
    padding: var(--space-6) 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

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

  .account-plan {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .account-plan:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .account-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-status-item,
  .account-status-item + .account-status-item {
    padding: var(--space-4) 0;
    border-left: 0;
  }

  .account-status-item + .account-status-item {
    border-top: 1px solid var(--rule);
  }

  .account-locked {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-5);
  }

  .account-panel {
    padding: var(--space-5);
  }

  .account-inline {
    flex-direction: column;
  }

  .account-inline input {
    border-right: 1px solid var(--rule-strong);
    border-bottom: 0;
  }
}

/* ==========================================================================
   Plans: Free, Starter, Plus, Pro side by side; Custom as a band below with a
   volume slider (on request).
   ========================================================================== */

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

/* Side by side, every card shares the same rows: names, prices and buttons line up */
@media (min-width: 1081px) {
  .packages--4 {
    grid-template-rows: repeat(5, auto);
  }

  .packages--4 .package {
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
}

.package-custom-intro .price strong {
  font-size: var(--step-1);
  color: var(--accent-strong);
}

.package-flag,
.account-plan-flag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.package.is-free .price strong {
  color: var(--accent-strong);
}

.package-custom {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.package-custom-intro {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.package-custom-intro .muted,
.package-custom-intro .price {
  margin: 0;
}

.package-custom-slider {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.package-custom-slider label {
  font-weight: 640;
}

.credits-output {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* The track fills up to the thumb in the accent colour */
.credits-range {
  --fill: 0%;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.credits-range::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--paper-2) var(--fill));
}

.credits-range::-moz-range-track {
  height: 6px;
  background: var(--paper-2);
}

.credits-range::-moz-range-progress {
  height: 6px;
  background: var(--accent);
}

.credits-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  appearance: none;
  transition: transform 150ms var(--ease-out);
}

.credits-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.credits-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

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

.credits-scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.package-custom-action {
  display: grid;
  gap: var(--space-3);
  justify-items: stretch;
  min-width: 0;
}

.package-custom-action .button {
  justify-content: center;
}

.package-custom-action .muted {
  font-size: var(--step--1);
}

.account-custom {
  margin-top: var(--space-5);
  border-color: var(--rule-strong);
}

.account-custom.is-current {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.account-custom h3 {
  font-size: var(--step-2);
}

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

  .packages--4 .package:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .packages--4 .package:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

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

  .package-custom-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .packages--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .package-custom {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-5);
  }
}

/* Subscription: the facts of the current plan on one ruled band, then the actions */
.account-sub {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.account-sub-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.account-sub-facts > div {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  min-width: 0;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}

.account-sub-facts dt {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.account-sub-facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.account-sub-facts dd strong {
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account-sub .account-notice {
  margin: 0;
}

.account-sub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* Cancelling is possible, never prominent: quiet, turns red on hover */
.button--quiet {
  border-color: var(--rule-strong);
  color: var(--ink-2);
}

.button--quiet:hover {
  border-color: var(--reject);
  background: transparent;
  color: var(--reject);
}

.account-plan-badge.is-locked {
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1px dashed var(--rule-strong);
  background: none;
  color: var(--ink-3);
  font-size: var(--step--1);
  font-weight: 560;
  text-align: center;
}

@media (max-width: 900px) {
  .account-sub-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .account-sub {
    padding: var(--space-5);
  }

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

/* Checkout: the plan as an order, total on its own ruled line */
.checkout {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.checkout-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: var(--step-3);
}

.checkout-head .muted {
  margin: var(--space-2) 0 0;
}

.checkout-features {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-features li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--space-2);
  color: var(--ink-2);
}

.checkout-features .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

.checkout-lines {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.checkout-lines > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.checkout-lines dt {
  color: var(--ink-2);
}

.checkout-lines dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.checkout-total {
  border-bottom: 2px solid var(--ink) !important;
}

.checkout-total dt {
  font-weight: 640;
  color: var(--ink) !important;
}

.checkout-total strong {
  font-size: var(--step-2);
  font-weight: 800;
}

.checkout-total span {
  color: var(--ink-3);
  font-size: var(--step--1);
}

.checkout-note {
  margin: 0;
  color: var(--ink-2);
}

/* Per month or a year in advance: two choices side by side, the chosen one ruled in ink */
.checkout-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-3);
}

.checkout-term {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
}

.checkout-term:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.checkout-term[aria-current="true"] {
  border: 2px solid var(--accent);
  padding: calc(var(--space-4) - 1px);
}

.checkout-term .muted {
  color: var(--ink-3);
  font-size: var(--step--1);
}

.checkout-discount dt,
.checkout-discount dd {
  color: var(--accent-strong) !important;
  font-weight: 640;
}

/* Earlybird: the discount and how long it still holds */
.checkout-earlybird {
  align-items: flex-start;
  margin-bottom: 0;
}

.checkout-earlybird > div {
  display: grid;
  flex: 1 1 18rem;
  gap: var(--space-1);
}

.checkout-earlybird p {
  margin: 0;
}

.checkout-clock {
  font-variant-numeric: tabular-nums;
}

.checkout-earlybird.is-expired {
  border-color: var(--rule-strong);
}

.checkout-earlybird.is-expired .icon {
  color: var(--ink-3);
}

.checkout-pay {
  display: grid;
  gap: var(--space-3);
}

.checkout-billing {
  min-width: 0;
  margin: var(--space-2) 0 var(--space-3);
  padding: var(--space-5) 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.checkout-billing legend {
  padding: 0 var(--space-3) 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Payment method: large choice cards at the start of the checkout (MultiSafepay, PayPal) */
.checkout-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: 0;
  margin: var(--space-2) 0 var(--space-3);
  padding: var(--space-5) 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.checkout-methods legend {
  padding: 0 var(--space-3) var(--space-3) 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.checkout-methods .error {
  grid-column: 1 / -1;
}

.checkout-method {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}

.checkout-method:hover {
  border-color: var(--ink);
}

.checkout-method input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkout-method-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  transition: background-color 150ms, color 150ms, border-color 150ms;
}

.checkout-method-mark .icon {
  width: 24px;
  height: 24px;
}

.checkout-method-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.checkout-method-name {
  font-size: var(--step-1);
  font-weight: 720;
}

.checkout-method-about {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.checkout-method-tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: transparent;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.checkout-method-tick .icon {
  width: 14px;
  height: 14px;
}

.checkout-method:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.checkout-method:has(input:checked) .checkout-method-mark {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.checkout-method:has(input:checked) .checkout-method-tick {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.checkout-method:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .checkout-methods {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-method,
  .checkout-method-mark,
  .checkout-method-tick {
    transition: none;
  }
}

.checkout-billing > .hint {
  margin-bottom: var(--space-5);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.checkout-billing-fields { grid-column: auto; }
.checkout-billing input[readonly] { background: var(--paper-2); color: var(--ink-2); }
.checkout-billing .alert { margin-bottom: var(--space-4); }

@media (max-width: 580px) {
  .checkout-billing-fields { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}

.checkout-pay .button {
  justify-content: center;
  min-height: 56px;
}

.checkout-test {
  font-size: var(--step--1);
  color: var(--ink-3);
  text-align: center;
}

.checkout .account-notice {
  margin: 0;
}

.checkout-back {
  margin-top: var(--space-5);
}

@media (max-width: 480px) {
  .checkout {
    padding: var(--space-5);
  }
}

/* Confirmation dialog (replaces the browser's confirm popup) */
.confirm-dialog {
  width: min(460px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}

.confirm-dialog::backdrop {
  background: color-mix(in srgb, var(--night) 55%, transparent);
  backdrop-filter: blur(2px);
}

.confirm-dialog-body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-top: 4px solid var(--accent);
}

.confirm-dialog.is-danger .confirm-dialog-body {
  border-top-color: var(--reject);
}

.confirm-dialog h2 {
  font-size: var(--step-2);
}

.confirm-dialog p {
  margin: 0;
  color: var(--ink-2);
}

.confirm-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.confirm-dialog.is-danger #confirm-ok {
  border-color: var(--reject);
  background: var(--reject);
  color: #fff;
}

.confirm-dialog.is-danger #confirm-ok::after {
  display: none;
}

.can-animate .confirm-dialog[open] {
  animation: confirm-in 220ms var(--ease-out);
}

.can-animate .confirm-dialog[open]::backdrop {
  animation: confirm-fade 220ms var(--ease-out);
}

@keyframes confirm-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes confirm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .confirm-dialog-actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Phones: one line that swipes sideways (wrapped, eleven tabs took four lines of the screen and
   covered the section headings below the sticky bar); the faded edge shows there is more */
@media (max-width: 480px) {
  .account-tabs {
    gap: var(--space-5);
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }

  .account-tabs a {
    scroll-snap-align: start;
  }
}

/* The sitemap is a working route diagram. All nodes remain ordinary links. */
.sitemap-page { padding-block: var(--space-7) var(--space-9); }
.sm-heading { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--ink); }
.sm-heading h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
.sm-heading .lead { max-width: 50ch; margin-top: var(--space-3); }
.sm-xml { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.875rem; flex-shrink: 0; }
.sm-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-bottom: 1px solid var(--ink); }
.sm-board { position: relative; min-width: 0; aspect-ratio: 1000 / 570; }
.sm-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sm-wire { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke 180ms var(--ease-out); }
.sm-wire.is-active { stroke: var(--accent); stroke-width: 3; }
.sm-nodes { list-style: none; padding: 0; margin: 0; }
.sm-node { position: absolute; width: 24%; transform: translate(-50%, -50%); }
.sm-node a { position: relative; display: grid; gap: var(--space-1); padding: var(--space-4); padding-left: var(--space-6); background: var(--surface); border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; min-height: 76px; transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.sm-node strong { font-size: 1rem; line-height: 1.3; }
.sm-node-path { font-size: 0.75rem; color: var(--ink-3); overflow-wrap: anywhere; }
.sm-node .icon { position: absolute; right: var(--space-3); top: var(--space-3); width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.sm-node a:hover, .sm-node a:focus-visible, .sm-node.is-active a { border-color: var(--accent); background: var(--accent-tint); }
.sm-node a:hover .icon, .sm-node a:focus-visible .icon, .sm-node.is-active .icon { opacity: 1; transform: translateX(0); }
.sm-station { position: absolute; left: 12px; top: 20px; width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.sm-node.is-active .sm-station, .sm-node a:hover .sm-station, .sm-node a:focus-visible .sm-station { background: var(--accent); transform: scale(1.25); }
.sm-view-route .sm-node-home { left: 17%; top: 25.44%; }
.sm-view-route .sm-node-pricing { left: 50%; top: 25.44%; }
.sm-view-route .sm-node-demo { left: 83%; top: 25.44%; }
.sm-view-route .sm-node-docs { left: 83%; top: 73.68%; }
.sm-view-route .sm-node-contact { left: 50%; top: 73.68%; }
.sm-view-route .sm-node-privacy { left: 17%; top: 73.68%; }
.sm-view-atlas .sm-node-home { left: 50%; top: 15.79%; }
.sm-view-atlas .sm-node-pricing { left: 81%; top: 32.46%; }
.sm-view-atlas .sm-node-demo { left: 81%; top: 73.68%; }
.sm-view-atlas .sm-node-docs { left: 50%; top: 89.47%; }
.sm-view-atlas .sm-node-contact { left: 19%; top: 73.68%; }
.sm-view-atlas .sm-node-privacy { left: 19%; top: 32.46%; }
.sm-view-network .sm-node-home { left: 18%; top: 20.18%; }
.sm-view-network .sm-node-pricing { left: 50%; top: 42.98%; }
.sm-view-network .sm-node-demo { left: 81%; top: 15.79%; }
.sm-view-network .sm-node-docs { left: 82%; top: 80.7%; }
.sm-view-network .sm-node-contact { left: 18.5%; top: 75.44%; }
.sm-view-network .sm-node-privacy { left: 50%; top: 84%; }
.sm-atlas-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: var(--space-2); justify-items: center; padding: var(--space-3); background: var(--paper); color: var(--ink-3); font-size: 0.75rem; }
.sm-atlas-center svg { width: 44px; height: 44px; stroke: var(--accent); fill: none; stroke-width: 1; }
.sm-detail { padding: var(--space-6) var(--space-5); border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.sm-detail h2 { font-size: 1.375rem; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.sm-detail p { font-size: 0.875rem; color: var(--ink-2); }
.sm-detail .sm-detail-hint { color: var(--ink-3); font-size: 0.75rem; margin-top: auto; }
.sm-detail-mark { display: flex; gap: 5px; padding-block: var(--space-2); }
.sm-detail-mark span { width: 6px; height: 24px; background: var(--accent); transform-origin: bottom; }
.sm-detail-mark span:nth-child(2) { height: 16px; align-self: end; }
.sm-detail-mark span:nth-child(3) { height: 32px; align-self: end; }
.sm-replay { border: 0; border-bottom: 1px solid var(--rule-strong); padding: var(--space-2) 0; background: none; color: var(--ink); display: flex; gap: var(--space-2); align-items: center; font: inherit; font-size: 0.8125rem; cursor: pointer; }
.sm-replay[hidden] { display: none; }
.can-animate [data-animated='1'] .sm-board.is-tracing .sm-wire { stroke-dasharray: 1; animation: sm-draw 1000ms var(--ease-out) both; }
.can-animate [data-animated='1'] .sm-board.is-tracing .sm-node { animation: sm-station-arrive 500ms var(--ease-out) both; }
.can-animate [data-animated='1'] .sm-detail.is-changing .sm-detail-mark span { animation: sm-meter 300ms var(--ease-out); }
@keyframes sm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sm-station-arrive { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes sm-meter { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
@media (max-width: 1000px) {
  .sm-workspace { grid-template-columns: minmax(0, 1fr); }
  .sm-detail { border-left: 0; border-top: 1px solid var(--rule); padding: var(--space-5) 0; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr); }
  .sm-detail-mark { display: none; }
  .sm-detail .sm-detail-hint { margin: 0; }
}
@media (max-width: 620px) {
  .sitemap-page { padding-block: var(--space-5) var(--space-7); }
  .sm-heading h1 { font-size: var(--step-3); }
  .sm-board { aspect-ratio: auto; padding: var(--space-5) 0; }
  .sm-connections, .sm-atlas-center { display: none; }
  .sm-nodes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); position: relative; }
  .sm-nodes::before { content: ''; position: absolute; top: 0; bottom: 0; left: 22px; border-left: 1px solid var(--accent); }
  .sm-node { position: relative; width: auto; transform: none; left: auto !important; top: auto !important; }
  .sm-node a { margin-left: var(--space-5); }
  .sm-node .sm-station { left: -8px; }
  .sm-node strong { font-size: 1.125rem; }
  .sm-node .icon { opacity: 1; transform: none; }
  .sm-view-atlas .sm-nodes { grid-template-columns: 1fr 1fr; }
  .sm-view-atlas .sm-node a { margin-left: 0; padding: var(--space-4) var(--space-3); }
  .sm-view-atlas .sm-station, .sm-view-atlas .sm-nodes::before { display: none; }
  .sm-view-network .sm-node:nth-child(even) { margin-left: var(--space-6); }
  .sm-detail { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .sitemap-page .sm-wire, .sitemap-page .sm-node, .sitemap-page .sm-node *, .sitemap-page .sm-detail-mark span { animation: none !important; transition: none !important; }
}

.sitemap-page[data-animated="0"] .sm-node *, .sitemap-page[data-animated="0"] .sm-wire { transition: none; }
.sm-node strong { overflow-wrap: anywhere; }

/* Universum is an additional, isolated sitemap world. Native scrolling is the journey. */
.universe { --cosmos-ink: #f4f3ff; --cosmos-soft: #c6c7df; --cosmos-light: #b5adff; position: relative; isolation: isolate; color: var(--cosmos-ink); background: #060914; }
.universe-sky { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 70% 20%, #172044 0%, transparent 60%), #060914; }
.universe-sky canvas { position: relative; display: block; width: 100%; height: 100%; }
.universe-nebula { position: absolute; inset: -12%; background: url("../img/universe/nebula.webp") center / cover; opacity: 0.65; transform: translate3d(var(--nebula-x, 0px), var(--nebula-y, 0px), 0) scale(var(--nebula-scale, 1)); }
.universe-content { position: relative; }
.universe-intro { position: relative; min-height: 92svh; padding-block: clamp(64px, 12vh, 140px); display: grid; grid-template-columns: 1fr auto; align-content: center; gap: var(--space-6); }
.universe-intro h1 { position: relative; z-index: 2; font-size: clamp(3rem, 8vw, 6rem); max-width: 12ch; color: var(--cosmos-ink); letter-spacing: -0.035em; }
.universe-intro p { color: var(--cosmos-soft); max-width: 43ch; margin-top: var(--space-5); font-size: var(--step-1); }
.universe a { color: var(--cosmos-ink); }
.universe a:focus-visible, .universe button:focus-visible { outline: 2px solid var(--cosmos-light); outline-offset: 6px; }
.universe-xml { display: flex; align-items: center; gap: var(--space-2); align-self: start; }
.universe-launch { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--space-5); padding-block: var(--space-3); text-decoration: none; border-bottom: 1px solid #b5adff70; }
.universe-launch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.universe-destination { --planet-light: #d1c4ff; --planet-mid: #6868bb; --planet-dark: #172243; position: relative; scroll-margin-top: 100px; padding-block: clamp(80px, 16vh, 200px); min-height: 100svh; display: flex; align-items: center; }
.universe-destination-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.universe-destination:nth-child(even) .universe-copy { grid-column: 1; grid-row: 1; }
.universe-destination:nth-child(even) .universe-orbit { grid-column: 2; grid-row: 1; }
.universe-copy { position: relative; z-index: 2; max-width: 52ch; }
.universe-copy h2 { font-size: clamp(2rem, 3.8vw, 4rem); letter-spacing: -0.025em; line-height: 1.05; color: var(--cosmos-ink); overflow-wrap: normal; word-break: normal; hyphens: auto; }
.universe-copy p { font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.7; margin-top: var(--space-5); color: var(--cosmos-soft); }
.universe-copy a { display: inline-flex; align-items: center; gap: var(--space-5); padding: var(--space-3) 0; margin-top: var(--space-5); font-weight: 700; border-bottom: 1px solid var(--cosmos-light); text-decoration: none; }
.universe-copy a .icon { transition: transform 200ms var(--ease-out); }
.universe-copy a:hover .icon { transform: translateX(7px); }
.universe-coordinate { display: block; color: var(--cosmos-soft); opacity: 0.8; font-size: 0.75rem; margin-top: var(--space-3); overflow-wrap: anywhere; }
.universe-orbit { position: relative; width: 100%; aspect-ratio: 1; transform: translate3d(var(--planet-x, 0px), var(--planet-y, 0px), 0) rotate(var(--planet-tilt, 0deg)); }
.universe-planet { position: absolute; inset: 18%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 24%, var(--planet-light), var(--planet-mid) 32%, var(--planet-dark) 65%, #030611 86%); box-shadow: -12px -8px 38px -10px #b5adff44, 30px 35px 65px #00000055; }
.universe-planet-surface { position: absolute; inset: 0; border-radius: 50%; background: url("../img/universe/planets.webp") var(--planet-texture-x, 2.4%) var(--planet-texture-y, 4.5%) / 333.333% 222.222%; transform: rotate(var(--surface-angle, 0deg)) scale(1.015); }
.universe-planet::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset -22px -18px 38px #00000070, inset 2px 2px 4px #f2eaff66; }
.universe-orbit-line { position: absolute; inset: 9%; border: 1px solid #8994be4d; border-radius: 50%; transform: rotate(-25deg) scaleY(0.4); }
.universe-moon { position: absolute; left: 6%; top: 39%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #e7e4ff, #5b608a 48%, #080c1b 82%); transform: translate3d(var(--moon-x, 0px), var(--moon-y, 0px), 0); box-shadow: 8px 12px 20px #00000060; }
.universe-destination--pricing { --planet-light: #e8d8a3; --planet-mid: #b79669; --planet-dark: #403338; }
.universe-destination--pricing .universe-orbit-line { inset: 2%; border: 24px double #cbb39885; transform: rotate(-28deg) scaleY(0.35); }
.universe-destination--demo { --planet-light: #b3e8e8; --planet-mid: #459a9e; --planet-dark: #0b323f; }
.universe-destination--docs { --planet-light: #efb797; --planet-mid: #b36954; --planet-dark: #462736; }
.universe-destination--contact { --planet-light: #abcdf5; --planet-mid: #5377ac; --planet-dark: #15254a; }
.universe-destination--privacy { --planet-light: #cec5f4; --planet-mid: #7a6f99; --planet-dark: #292a49; }
.universe-destination--privacy .universe-orbit-line { transform: rotate(45deg) scaleY(0.55); }
.universe[data-animated='0'] *, .universe.is-paused * { transition: none; }
@media (max-width: 780px) {
  .universe-intro { min-height: 65svh; padding-block: 64px; }
  .universe-destination { min-height: auto; padding-block: 64px 96px; scroll-margin-top: 150px; }
  .universe-destination-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .universe-destination .universe-orbit, .universe-destination:nth-child(even) .universe-orbit { grid-column: 1; grid-row: 1; width: min(100%, 420px); justify-self: center; }
  .universe-destination .universe-copy, .universe-destination:nth-child(even) .universe-copy { grid-column: 1; grid-row: 2; max-width: 100%; }
  .universe-copy h2 { font-size: clamp(2rem, 7.5vw, 3.5rem); }
}
@media (prefers-reduced-motion: reduce) { .universe * { transition: none !important; scroll-behavior: auto !important; } }

/* Detailed orbital worlds, isolated to the fourth sitemap option. */
.universe-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, #04071375, transparent 65%), radial-gradient(ellipse at center, transparent 30%, #030611b0); }
.universe-tools { position: absolute; right: var(--space-5); top: var(--space-6); display: flex; gap: var(--space-5); align-items: center; z-index: 3; }
.universe-tools button { color: var(--cosmos-soft); background: #080c1999; border: 1px solid #aeb7e04a; padding: 8px 12px; font: inherit; font-size: 0.75rem; cursor: pointer; }
.universe-tools button:hover { color: white; border-color: var(--cosmos-light); }
.universe-tools button[hidden] { display: none; }
.universe-intro-copy { position: relative; z-index: 2; max-width: 690px; text-shadow: 0 3px 30px #030611; }
.universe-intro p { max-width: 39ch; }
.universe-launch { position: relative; z-index: 2; }
.universe-hero-system { position: absolute; width: min(54vw, 760px); aspect-ratio: 1; right: -3%; top: 4%; pointer-events: none; transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0) rotate(-15deg); }
.universe-hero-globe { position: absolute; inset: 19%; border-radius: 50%; background: url('../img/universe/planets.webp') 2.4% 4.5% / 333.333% 222.222%; box-shadow: inset -25px -15px 50px #04071490, -14px -10px 50px -18px #a49eff90, 50px 65px 90px #00000066; }
.universe-hero-ring { position: absolute; inset: 1%; border-radius: 50%; border: 17px double #9ea9e96b; transform: rotate(-18deg) scaleY(0.34); }
.universe-hero-axis { position: absolute; inset: 8%; border: 1px dashed #bbc4f350; border-radius: 50%; transform: rotate(60deg) scaleY(0.75); }
.universe-hero-satellite { position: absolute; left: 5%; top: 56%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: url('../img/universe/planets.webp') 97.6% 95.5% / 333.333% 222.222%; }
.universe-destination { --planet-texture-x: 2.4%; --planet-texture-y: 4.5%; }
.universe-destination--pricing { --planet-texture-x: 50%; }
.universe-destination--demo { --planet-texture-x: 97.6%; }
.universe-destination--docs { --planet-texture-y: 95.5%; }
.universe-destination--contact { --planet-texture-x: 50%; --planet-texture-y: 95.5%; }
.universe-destination--privacy { --planet-texture-x: 97.6%; --planet-texture-y: 95.5%; }
.universe-orbit-chart { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #a2b9e654; stroke-width: 0.6; transform: rotate(var(--chart-angle, 0deg)); }
.universe-orbit-chart circle:nth-child(2) { stroke-dasharray: 3 13; stroke-width: 1; }
.universe-orbit-tick { stroke: #b2c8ee8c; }
.universe-atmosphere { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, transparent 58%, #9faaff20 63%, transparent 72%); }
.universe-ring-front { display: none; position: absolute; inset: 2%; border-radius: 50%; border: 24px double #cbb39885; transform: rotate(-28deg) scaleY(0.35); clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }
.universe-destination--pricing .universe-ring-front { display: block; }
.universe-moon { background: url('../img/universe/planets.webp') 97.6% 95.5% / 333.333% 222.222%; }
.universe-moon--far { width: 4%; left: 82%; top: 27%; opacity: 0.85; transform: translate3d(calc(var(--moon-x, 0px) * -0.6), calc(var(--moon-y, 0px) * -0.6), 0); }
.universe-dust-ring { position: absolute; inset: 0; transform: rotate(-20deg) scaleY(0.36); pointer-events: none; }
.universe-dust-ring i { position: absolute; inset: 0; transform: rotate(var(--dust-angle)); }
.universe-dust-ring i::after { content: ''; position: absolute; left: 50%; top: calc(50% - var(--dust-radius)); width: var(--dust-size); height: var(--dust-size); border-radius: 50%; background: #c9c8e8a6; }
.universe-copy { padding-block: var(--space-5); text-shadow: 0 2px 18px #030611, 0 4px 40px #030611; }
.universe-copy::before { content: ''; position: absolute; inset: -12% -15%; z-index: -1; background: radial-gradient(ellipse, #05091cbb 15%, transparent 70%); pointer-events: none; }
.universe-copy a { border-color: #c9c0ff; }
.universe-copy a:hover { color: #d8d1ff; }
@media (max-width: 1100px) {
  .universe-hero-system { right: 0; width: 56vw; top: 14%; opacity: 0.85; }
  .universe-intro-copy { max-width: 65%; }
}
@media (max-width: 780px) {
  .universe-intro { min-height: 92svh; align-content: start; padding-top: 100px; padding-bottom: 48px; }
  .universe-intro-copy { max-width: 100%; }
  .universe-intro h1 { max-width: 100%; }
  .universe-intro p { max-width: 32ch; }
  .universe-hero-system { width: min(88vw, 460px); top: auto; bottom: -10px; right: -3%; opacity: 0.85; }
  .universe-tools { top: 24px; gap: 20px; }
  .universe-launch { margin-top: 8px; }
  .universe-nebula { background-position: 58% center; opacity: 0.5; }
  .universe-copy::before { inset: -12% 0; }
}
@media (max-width: 480px) {
  .universe-intro { min-height: 820px; }
  .universe-hero-system { bottom: 0; }
}

/* Enhanced flight: scroll advances the camera along Z inside one pinned viewport. */
.universe-flight-controls[hidden] { display: none; }
.universe.is-flight .universe-flight { height: 650svh; }
.universe.is-flight .universe-flight-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 400px; overflow: clip; perspective: 1200px; perspective-origin: 50% 50%; outline-offset: -3px; }
.universe.is-flight .universe-destinations { display: contents; }
.universe.is-flight .universe-destination { position: absolute; inset: 0; min-height: 0; height: 100%; padding: 40px 0 76px; transform: translate3d(var(--flight-x, 0px), var(--flight-y, 0px), var(--flight-z, 0px)); opacity: var(--flight-opacity, 1); pointer-events: none; visibility: var(--flight-visibility, visible); will-change: transform, opacity; }
.universe.is-flight .universe-destination.is-current { pointer-events: auto; }
.universe.is-flight .universe-destination-inner { max-height: 100%; }
.universe.is-flight .universe-orbit { max-height: 65svh; }
.universe.is-flight .universe-flight-controls { display: flex; gap: 12px; align-items: center; position: absolute; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 18px; z-index: 10; color: #dedaff; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.universe-flight-controls button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #c8c5ef70; border-radius: 50%; color: #f4f3ff; background: #070b1dd9; cursor: pointer; }
.universe-flight-controls button:hover { border-color: #fff; background: #232849; }
.universe-flight-controls button:disabled { opacity: 0.3; cursor: default; }
.universe-flight-controls [data-flight-prev] .icon { transform: rotate(180deg); }
.universe.is-flight .universe-copy { min-width: 0; max-height: none; overflow: visible; }
.universe.is-flight .universe-flight-stage:focus-visible { outline: 2px solid #b5adff; }
@media (max-width: 780px) {
  .universe.is-flight .universe-flight { height: 620svh; }
  .universe.is-flight .universe-flight-stage { perspective: 850px; }
  .universe.is-flight .universe-destination { padding: 12px 0 68px; }
  .universe.is-flight .universe-destination-inner { gap: 4px; }
  .universe.is-flight .universe-destination .universe-orbit { width: min(31svh, 220px); }
  .universe.is-flight .universe-copy { max-height: none; padding-block: 0; }
  .universe.is-flight .universe-copy h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
  .universe.is-flight .universe-copy p { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; }
  .universe.is-flight .universe-copy a { margin-top: 8px; padding-block: 8px; }
  .universe.is-flight .universe-coordinate { display: none; }
}
.universe.is-flight .universe-intro { position: absolute; inset: 0; min-height: 0; height: 100%; padding-block: 70px 80px; transform: translate3d(var(--flight-x, 0px), var(--flight-y, 0px), var(--flight-z, 0px)); opacity: var(--flight-opacity, 1); visibility: var(--flight-visibility, visible); pointer-events: none; will-change: transform, opacity; }
.universe.is-flight .universe-intro.is-current { pointer-events: auto; }
.universe.is-flight .universe-flight-controls { z-index: 100; }
@media (max-width: 780px) {
  .universe.is-flight .universe-intro { padding-top: 82px; align-content: start; }
  .universe.is-flight .universe-intro h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); }
  .universe.is-flight .universe-intro p { font-size: 1rem; margin-top: 16px; }
  .universe.is-flight .universe-hero-system { width: min(58vw, 300px); bottom: 45px; right: 0; }
}
.universe-flight-stage { position: relative; }
.universe.is-flight .universe-tools { top: 18px; right: max(24px, calc((100vw - 1320px) / 2)); z-index: 101; }
@media (max-height: 650px) and (min-width: 600px) {
  .universe.is-flight .universe-flight-stage { min-height: 0; }
  .universe.is-flight .universe-destination { padding-block: 48px 62px; }
  .universe.is-flight .universe-destination-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; }
  .universe.is-flight .universe-destination .universe-orbit { grid-column: 1; grid-row: 1; width: min(45svh, 260px); justify-self: center; }
  .universe.is-flight .universe-destination .universe-copy { grid-column: 2; grid-row: 1; padding-block: 0; }
  .universe.is-flight .universe-copy h2 { font-size: clamp(1.3rem, 4svh, 2rem); }
  .universe.is-flight .universe-copy p { margin-top: 8px; font-size: 0.8125rem; line-height: 1.4; }
  .universe.is-flight .universe-copy a { margin-top: 8px; padding-block: 6px; }
  .universe.is-flight .universe-coordinate { display: none; }
}

/* Pricing reflects the authenticated account's active subscription. */
.package.is-current { position: relative; background: var(--accent-tint); }
.package.is-current::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 4px; background: var(--accent); }
.package.is-current .package-name { flex-wrap: wrap; }
.package-flag--current { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; line-height: 1.4; }
.package-flag--current .icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Guided tours (tour.js): dimmed page, spotlight, popover, welcome question and help tips */
.tour-layer,
.tour-tip {
  --tour-bg: var(--surface);
  --tour-ink: var(--ink);
  --tour-muted: var(--ink-2);
  --tour-line: var(--rule);
  --tour-dim: rgba(18, 14, 11, 0.62);
  --tour-radius: 14px;
  --tour-shadow: 0 1px 2px rgba(18, 14, 11, 0.08), 0 24px 60px -18px rgba(18, 14, 11, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tour-layer,
  :root:not([data-theme="light"]) .tour-tip {
    --tour-bg: #1d1814;
    --tour-ink: #f6f4f1;
    --tour-muted: #c9c0b6;
    --tour-line: #3a322b;
    --tour-dim: rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] .tour-layer,
:root[data-theme="dark"] .tour-tip {
  --tour-bg: #1d1814;
  --tour-ink: #f6f4f1;
  --tour-muted: #c9c0b6;
  --tour-line: #3a322b;
  --tour-dim: rgba(0, 0, 0, 0.7);
}

.tour-layer {
  /* Anchored to the document, so the spotlight scrolls with the page itself instead of being
     moved after every scroll event (which lags a frame behind and jitters, mostly on phones) */
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

.tour-layer.is-on {
  opacity: 1;
}

.tour-layer--welcome {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
}

/* The spotlight: its shadow dims everything around it */
.tour-spot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  /* tour.js sets the spread to the page size: the dim covers the page wherever you scroll */
  box-shadow: 0 0 0 var(--tour-spread, 200vmax) var(--tour-dim);
  outline: 2px solid var(--accent);
  outline-offset: 0;
  pointer-events: none;
  transition: transform 380ms var(--ease-out), width 380ms var(--ease-out), height 380ms var(--ease-out), outline-color 200ms;
  will-change: transform;
}

/* Sticky and fixed elements (like the header): the spotlight follows them on the screen */
.tour-spot.is-fixed {
  position: fixed;
}

.tour-layer.is-snap .tour-spot {
  transition: none;
}

/* The pulse is a separate ring that only fades, so it never repaints the dimmed page */
.tour-spot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
}

.tour-layer.is-centered .tour-spot {
  outline-color: transparent;
}

.tour-layer.is-on:not(.is-centered):not(.is-moving):not(.tour-layer--welcome) .tour-spot::after {
  animation: tour-pulse 2.4s ease-in-out 400ms infinite;
}

@keyframes tour-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

.tour-pop {
  position: absolute;
  top: 0;
  left: 0;
  width: min(380px, calc(100vw - 24px));
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--tour-line);
  border-radius: var(--tour-radius);
  background: var(--tour-bg);
  color: var(--tour-ink);
  box-shadow: var(--tour-shadow);
  font-family: var(--font);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  /* No transition on its position: it moves only while hidden between two steps */
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}

.tour-pop.is-fixed,
.tour-pop.is-sheet,
.tour-layer.is-centered .tour-pop {
  position: fixed;
}

.tour-pop:focus {
  outline: none;
}

.tour-pop.is-in {
  opacity: 1;
  transform: none;
}

.tour-layer.is-moving .tour-pop {
  opacity: 0;
  transform: translateY(6px);
  transition-duration: 140ms;
}

.tour-layer.is-centered .tour-pop {
  top: 50%;
  left: 50%;
  width: min(440px, calc(100vw - 24px));
  transform: translate(-50%, calc(-50% + 8px)) scale(0.98);
}

.tour-layer.is-centered .tour-pop.is-in {
  transform: translate(-50%, -50%);
}

/* Phones (and no room beside the element): a sheet at the screen edge away from the spotlight */
.tour-pop.is-sheet {
  top: auto !important;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px !important;
  width: auto;
  max-width: 440px;
  margin-inline: auto;
}

.tour-pop.is-sheet.is-sheet-top {
  top: calc(var(--header-h) + 8px) !important;
  bottom: auto;
}

/* Phones: a compact sheet (about a third of the screen), so the element it explains stays in
   view above or below it; a long text scrolls inside the sheet */
@media (max-width: 640px) {
  .tour-pop.is-sheet {
    gap: var(--space-2);
    max-height: 46vh;
    overflow-y: auto;
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .tour-pop.is-sheet .tour-pop-icon,
  .tour-pop.is-sheet .tour-pop-close {
    width: 28px;
    height: 28px;
  }

  .tour-pop.is-sheet .tour-pop-title {
    margin: 0;
    font-size: var(--step-0);
  }

  .tour-pop.is-sheet .tour-pop-text {
    font-size: var(--step--1);
    line-height: 1.45;
  }

  .tour-pop.is-sheet .tour-pop-hint {
    padding: var(--space-1) var(--space-2);
  }

  .tour-pop.is-sheet .tour-pop-foot {
    gap: var(--space-2);
    margin-top: 0;
  }

  .tour-pop.is-sheet .tour-pop-links {
    font-size: var(--step--1);
  }

  .tour-pop.is-sheet .button {
    min-height: 44px;
    padding-block: var(--space-2);
  }
}

.tour-pop-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tour-pop-icon,
.tour-welcome-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.tour-pop-icon .icon,
.tour-welcome-mark .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tour-pop-count {
  flex: 1;
  color: var(--tour-muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.tour-pop-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--tour-muted);
  cursor: pointer;
}

.tour-pop-close:hover {
  background: color-mix(in srgb, var(--tour-ink) 8%, transparent);
  color: var(--tour-ink);
}

.tour-pop-close .icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tour-pop-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--tour-ink) 10%, transparent);
}

.tour-pop-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 380ms var(--ease-out);
}

.tour-pop-title {
  margin: var(--space-1) 0 0;
  font-size: var(--step-1);
  line-height: 1.25;
}

.tour-pop-text {
  margin: 0;
  color: var(--tour-muted);
  line-height: 1.55;
}

.tour-pop-hint {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: var(--step--1);
}

.tour-pop-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.tour-pop-links,
.tour-pop-buttons,
.tour-welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.tour-pop-buttons {
  margin-left: auto;
}

.tour-pop .button {
  border-radius: 9px;
}

.tour-link {
  padding: var(--space-1) 0;
  border: 0;
  background: none;
  color: var(--tour-muted);
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.tour-welcome {
  justify-items: start;
  padding: var(--space-6);
}

.tour-welcome-buttons {
  margin-top: var(--space-2);
}

.tour-welcome-buttons .tour-link {
  margin-left: var(--space-2);
}

/* Small (i) buttons that explain one thing without a tour */
.tour-help {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3, var(--ink-2));
  vertical-align: middle;
  cursor: pointer;
}

.tour-help:hover,
.tour-help[aria-expanded="true"] {
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.tour-help .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tour-tip {
  position: fixed;
  z-index: 1001;
  width: min(300px, calc(100vw - 16px));
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--tour-line);
  border-radius: 10px;
  background: var(--tour-bg);
  color: var(--tour-ink);
  box-shadow: var(--tour-shadow);
  font-size: var(--step--1);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.tour-tip.is-above {
  transform: translateY(4px);
}

.tour-tip.is-in {
  opacity: 1;
  transform: none;
}

.tour-tip p {
  margin: 0;
}

.account-head-actions {
  grid-column: 10 / -1;
  display: flex;
  justify-content: flex-end;
}

.account-head-actions .button .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 900px) {
  .account-head-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-layer,
  .tour-spot,
  .tour-pop,
  .tour-pop-bar span,
  .tour-tip {
    transition: none;
  }

  .tour-layer.is-on .tour-spot::after {
    animation: none;
  }
}

.tour-layer--welcome.is-on {
  pointer-events: auto;
}

.tour-layer [hidden] {
  display: none !important;
}

/* Affiliate section in the account dashboard */
.account-affiliate-code {
  display: inline-block;
  padding: 0.35em 0.7em;
  font-size: 1.4em;
  letter-spacing: 0.12em;
  user-select: all;
}

.account-affiliate-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4em 1em;
  margin: 0 0 1em;
}

.account-affiliate-stats dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Account → Module: platform cards, then version and downloads */
.account-module-picker {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.account-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  border: 0;
}

.account-platforms legend,
.account-module-choose label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.account-platform {
  position: relative;
  display: grid;
  gap: 2px;
  padding: var(--space-4);
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}

.account-platform:hover {
  border-color: var(--ink);
}

.account-platform input {
  position: absolute;
  opacity: 0;
}

.account-platform-name {
  font-size: var(--step-1);
  font-weight: 720;
}

.account-platform-meta {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.account-platform:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.account-platform:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-module-choose {
  display: grid;
  grid-template-columns: minmax(0, 24rem) auto;
  gap: var(--space-4) var(--space-5);
  align-items: end;
}

.account-module-choose .hint {
  grid-column: 1 / -1;
  margin-top: calc(var(--space-2) * -1);
}

.account-module-choose .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

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

@media (max-width: 720px) {
  .account-platforms,
  .account-module-choose {
    grid-template-columns: minmax(0, 1fr);
  }
}

.account-module-picker [hidden],
.account-module-steps [hidden] {
  display: none !important;
}

.account-module-choose .field {
  display: grid;
  gap: var(--space-2);
}

.account-module-choose select {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.account-module-choose select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.account-module-choose .hint {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* /status: like a status page — banner, per service 90 day bars with uptime, maintenance history */
.status-page { padding: var(--space-8) 0 var(--space-9); }
.status-page .wrap { max-width: 860px; }
.status-banner { max-width: none; display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); color: #fff; font-weight: 700; font-size: var(--step-1); }
.status-banner.is-ok { background: #16a34a; }
.status-banner.is-degraded { background: #d97706; }
.status-banner.is-maintenance { background: #2563eb; }
.status-banner.is-down { background: #dc2626; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.status-window { margin-bottom: var(--space-5); padding: var(--space-4); border-left: 3px solid #2563eb; background: var(--surface); }
.status-window.is-active { border-left-color: #dc2626; }
.status-window p { margin: 0 0 var(--space-2); }
.status-card { border: 1px solid var(--rule); background: var(--surface); }
.status-service { padding: var(--space-5); }
.status-service + .status-service { border-top: 1px solid var(--rule); }
.status-service-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-3); }
.status-service-head h2 { margin: 0; font-size: var(--step-0); }
.status-state { font-weight: 600; font-size: 0.875rem; }
.status-state.is-ok { color: #15803d; }
.status-state.is-degraded { color: #b45309; }
.status-state.is-maintenance { color: #1d4ed8; }
.status-state.is-down { color: #b91c1c; }
.status-bars { display: flex; gap: 2px; height: 34px; }
.status-bar { flex: 1; min-width: 2px; border-radius: 2px; background: #16a34a; }
.status-bar:hover { opacity: .7; }
.status-bar.is-degraded { background: #f59e0b; }
.status-bar.is-down { background: #dc2626; }
.status-bar.is-maintenance { background: #3b82f6; }
.status-axis { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); font-size: 0.8125rem; color: var(--ink-3); }
.status-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-size: 0.8125rem; color: var(--ink-3); }
.status-legend > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.status-legend .status-bar { flex: none; width: 10px; height: 14px; }
.status-history-title { margin-top: var(--space-7); font-size: var(--step-1); }
.status-history { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.status-history li { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.status-checked { margin-top: var(--space-6); font-size: 0.875rem; }
@media (max-width: 600px) { .status-bars { height: 26px; gap: 1px; } .status-bars .status-bar:nth-child(-n+60) { display: none; } }

/* /status: hover card per day (like a status page), API response time chart with day/week/month */
.status-bar { position: relative; outline: none; }
.status-bar:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.status-pop { position: absolute; z-index: 20; bottom: calc(100% + 10px); left: 50%; display: none; width: 260px; padding: var(--space-3) var(--space-4); transform: translateX(-50%); border: 1px solid var(--rule); background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); color: var(--ink); font-size: 0.875rem; text-align: left; cursor: default; }
.status-bar.pop-left .status-pop { left: 0; transform: none; }
.status-bar.pop-right .status-pop { left: auto; right: 0; transform: none; }
.status-bar:hover .status-pop, .status-bar:focus .status-pop { display: grid; gap: var(--space-2); }
.status-bar:hover { opacity: 1; filter: brightness(1.15); }
.status-pop-date { font-weight: 700; }
.status-pop-ok { color: var(--ink-3); }
.status-pop-state { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--paper); }
.status-pop-state span:last-child { margin-left: auto; font-weight: 600; white-space: nowrap; }
.status-pop-icon { width: 10px; height: 10px; border-radius: 2px; background: currentColor; flex: none; }
.status-pop-state.is-degraded { color: #b45309; }
.status-pop-state.is-down { color: #b91c1c; }
.status-pop-state.is-maintenance { color: #1d4ed8; }
.status-pop-state strong { color: var(--ink); }
.status-pop-related { margin-top: var(--space-1); font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.status-pop-event { color: var(--ink-2); }

.status-metrics { margin-top: var(--space-7); }
.status-metrics-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); }
.status-metrics-head h2 { margin: 0; font-size: 0.875rem; letter-spacing: .06em; text-transform: uppercase; }
.status-periods { display: inline-flex; gap: var(--space-1); }
.status-periods input { position: absolute; opacity: 0; pointer-events: none; }
.status-periods label { padding: 4px 14px; border-radius: 999px; color: var(--ink-3); font-weight: 600; cursor: pointer; }
.status-periods input:checked + label { background: var(--accent); color: var(--on-accent); }
.status-periods input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.status-metric { display: none; padding: var(--space-5); border: 1px solid var(--rule); background: var(--surface); }
.status-metrics:has(#status-day:checked) .status-metric[data-period="day"],
.status-metrics:has(#status-week:checked) .status-metric[data-period="week"],
.status-metrics:has(#status-month:checked) .status-metric[data-period="month"] { display: block; }
.status-metric-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-3); }
.status-metric-head h3 { margin: 0; font-size: var(--step-0); }
.status-metric-head span { color: var(--ink-3); font-weight: 600; }
.status-chart { display: block; width: 100%; height: 150px; overflow: visible; }
.status-chart line { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.status-chart text { fill: var(--ink-3); font-size: 11px; }
.status-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.status-metric-note { margin-top: var(--space-2); font-size: 0.8125rem; }
.status-dot-point { fill: var(--accent); }

/* Editorial blog cards, article layout and account-only polls. */
.home-blog,.blog-related{padding-block:clamp(3rem,6vw,6rem);border-top:1px solid var(--rule)}
.blog-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1.5rem;margin-bottom:2rem}
.blog-section-heading h2{margin:0;font-size:clamp(1.5rem,2.4vw,2rem);letter-spacing:-.03em}
.blog-section-heading>a{flex:none;font-size:.9rem;font-weight:600;color:var(--accent)}
.blog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 1.5rem}
.blog-card{min-width:0;overflow-wrap:anywhere}
.blog-card-image{display:block;overflow:hidden;border:1px solid var(--night-rule);border-radius:10px;background:var(--night);aspect-ratio:16/9;margin-bottom:1rem}
.blog-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.blog-card:focus-within .blog-card-image img,.blog-card:hover .blog-card-image img{transform:scale(1.025)}
.blog-kicker{font-family:var(--mono);font-size:.72rem;font-weight:600;line-height:1.5;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-3);margin:0 0 .6rem}
.blog-card h3{font-size:1.06rem;line-height:1.45;letter-spacing:-.015em;margin:0}
.blog-card h3 a{color:var(--ink);text-decoration:none}
.blog-card h3 a:hover{color:var(--accent)}
.blog-card-excerpt{font-size:.9rem;line-height:1.7;color:var(--ink-3);margin:.6rem 0 0}
.blog-head{margin-bottom:0;padding-block:3.5rem 4rem}
.blog-head h1{max-width:900px;font-size:clamp(2rem,4.2vw,3.6rem);line-height:1.12;letter-spacing:-.04em;margin:1rem 0}
.blog-head .lead{max-width:720px;font-size:1.1rem;line-height:1.75;margin:0}
.blog-crumbs{display:flex;flex-wrap:wrap;gap:.55rem;font-size:.8rem;color:var(--night-ink-2);margin-bottom:1.5rem}
.blog-crumbs a{color:inherit;text-decoration:none}.blog-crumbs a:hover{color:var(--signal)}
.blog-head>.wrap>.blog-kicker{color:var(--signal)}
.blog-search{display:flex;gap:.6rem;max-width:580px;margin-top:1.5rem}
.blog-search input{min-width:0;flex:1;border:1px solid var(--night-rule);border-radius:5px;background:var(--night-2);color:var(--night-ink);padding:.8rem 1rem;font:inherit}
.blog-search input::placeholder{color:var(--night-ink-2)}
.blog-search input:focus-visible{outline:2px solid var(--signal);outline-offset:3px}
.blog-search .button{background:var(--signal);color:var(--night);border-color:var(--signal)}
.blog-index{padding-block:3.5rem 6rem;min-height:24rem}
.blog-filters{display:flex;align-items:center;gap:.8rem;margin-bottom:2rem}.blog-filters .blog-kicker{margin:0}
.blog-filter{display:inline-flex;padding:.3rem .8rem;border:1px solid var(--rule);border-radius:2rem;font-size:.8rem;text-decoration:none;color:var(--ink)}
.blog-filter[aria-current]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.blog-pagination{display:flex;gap:1rem;margin-top:3rem}
.blog-meta{display:flex;flex-wrap:wrap;gap:.7rem;font-size:.85rem;color:var(--night-ink-2);margin:1.5rem 0 0}
.blog-reading-layout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(240px,1fr);gap:clamp(2rem,5vw,5rem);padding-block:3.5rem 5rem;align-items:start}
.blog-article{min-width:0;overflow-wrap:anywhere}
.blog-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:2.5rem;background:var(--night)}
.blog-body{font-size:1.065rem;line-height:1.85;color:var(--ink-2)}
.blog-body>p:first-child{margin-top:0}.blog-body p{margin-block:0 1.4rem}
.blog-body h2,.blog-body h3{margin:2.5rem 0 1rem;line-height:1.3;color:var(--ink);scroll-margin-top:7rem;letter-spacing:-.025em}
.blog-body h2{font-size:1.65rem}.blog-body h3{font-size:1.25rem}
.blog-body ul,.blog-body ol{padding-left:1.4rem;margin-bottom:1.5rem}.blog-body li{margin-bottom:.5rem}
.blog-body blockquote{margin:1.5rem 0;padding:.5rem 1.3rem;border-left:3px solid var(--accent);background:var(--paper-2)}
.blog-body blockquote p:last-child{margin:0}.blog-body a{color:var(--accent);text-underline-offset:3px}
.blog-back{display:inline-block;margin-top:2rem;font-weight:600;font-size:.9rem}
.blog-aside{position:sticky;top:7rem;display:grid;gap:1.5rem;min-width:0}
.blog-toc{border:1px solid var(--rule);border-radius:8px;padding:1.5rem}
.blog-toc h2{font-size:1rem;margin:0 0 1rem}.blog-toc ol{list-style:none;padding:0;margin:0;display:grid;gap:.85rem}
.blog-toc a{font-size:.9rem;line-height:1.5;color:var(--ink-2);text-decoration:none}.blog-toc a:hover{color:var(--accent)}
.blog-toc-sub{padding-left:1rem}
.blog-aside-cta{padding:1.5rem;border-radius:8px;background:var(--night);color:var(--night-ink)}
.blog-aside-cta .blog-kicker{color:var(--signal)}.blog-aside-cta h2{font-size:1.4rem;line-height:1.3;margin:1rem 0}
.blog-aside-cta p{font-size:.9rem;line-height:1.7;color:var(--night-ink-2)}
.blog-aside-cta .button{max-width:100%;white-space:normal;background:var(--signal);border-color:var(--signal);color:var(--night)}
.blog-poll{border:1px solid var(--rule-strong);border-radius:8px;background:var(--paper-2);padding:clamp(1rem,3vw,2rem);margin-block:2rem;scroll-margin-top:7rem}
.blog-poll fieldset{border:0;padding:0;margin:0 0 1rem;min-width:0}.blog-poll h2{margin-top:0}
.blog-option{display:flex;align-items:baseline;gap:.7rem;padding:.65rem 0;cursor:pointer}.blog-option input{flex:none;width:auto;accent-color:var(--accent)}
.blog-result{margin-block:1rem}.blog-result>div{display:flex;gap:1rem;justify-content:space-between}.blog-result strong{white-space:nowrap}
.blog-result meter{display:block;width:100%;height:1rem;accent-color:var(--accent)}
@media(max-width:950px){.blog-reading-layout{grid-template-columns:minmax(0,1fr) 250px;gap:2rem}.blog-cards{gap:2rem 1rem}.blog-aside-cta{padding:1.2rem}}
@media(max-width:760px){.blog-reading-layout{display:flex;flex-direction:column}.blog-article{width:100%}.blog-aside{position:static;width:100%;grid-template-columns:1fr 1fr}.blog-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.home-blog>.wrap,.blog-head>.wrap,.blog-index,.blog-reading-layout,.blog-related>.wrap{width:calc(100% - 32px)}.blog-cards{grid-template-columns:1fr;gap:2rem}.blog-section-heading{align-items:flex-start;gap:.8rem}.blog-section-heading>a{max-width:40%;flex:initial;text-align:right;font-size:.8rem}.blog-head{padding-block:2.5rem 3rem}.blog-head h1{font-size:2rem}.blog-head .lead{font-size:1rem}.blog-search{gap:.5rem}.blog-search input{width:0;padding:.75rem}.blog-search .button{padding-inline:1rem}.blog-index,.blog-reading-layout{padding-block:2.5rem 3.5rem}.blog-aside{grid-template-columns:1fr}.blog-cover{margin-bottom:2rem}.blog-result>div{flex-wrap:wrap}.blog-cards--compact{gap:1.8rem}.blog-body h2{font-size:1.4rem}}
@media(prefers-reduced-motion:reduce){.blog-card-image img{transition:none}.blog-card:hover .blog-card-image img,.blog-card:focus-within .blog-card-image img{transform:none}}

.sitemap-extra-links{display:flex;flex-wrap:wrap;gap:1rem;margin-block:1rem 1.5rem;font-size:.9rem}.sm-view-universe .sitemap-extra-links{position:relative;z-index:2;color:var(--night-ink)}

.blog-card-meta{font-size:.75rem;line-height:1.5;color:var(--ink-3);margin:.55rem 0}.demo-explanation{max-width:900px;margin-block:0 2.5rem;line-height:1.8;color:var(--ink-2)}.tour-welcome{position:relative}.tour-welcome-close{position:absolute;top:12px;right:12px;min-width:40px;min-height:40px}.blog-head>.wrap>span.blog-kicker{display:block}

/* reCAPTCHA v3: Google allows hiding its badge when the form names it (.recaptcha-note) */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* A payment method that doesn't work in the chosen billing country */
.checkout-method[hidden] {
  display: none;
}

/* ---- Checkout in steps (like presta.support): details -> payment method -> pay -> done ---- */
.checkout-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--space-7);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.checkout-steps::before,
.checkout-steps::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--rule);
}

.checkout-steps::after {
  right: auto;
  width: calc(75% * var(--progress, 0));
  background: var(--accent);
}

.checkout-step-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  color: var(--ink-3);
  font-size: var(--step--1);
  font-weight: 600;
  text-align: center;
}

.checkout-step-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.checkout-step-dot .icon {
  width: 16px;
  height: 16px;
}

.checkout-step-node.is-done .checkout-step-dot,
.checkout-step-node.is-current .checkout-step-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.checkout-step-node.is-current,
.checkout-step-node.is-done {
  color: var(--ink);
}

.checkout-step-node.is-current .checkout-step-dot {
  box-shadow: 0 0 0 5px var(--accent-tint);
}

.checkout-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: var(--space-7);
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}

.checkout-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-section > legend {
  margin-bottom: var(--space-4);
  padding: 0;
  font-size: var(--step-2);
  font-weight: 700;
}

.checkout-flow .checkout-billing {
  padding-top: var(--space-6);
}

.checkout-review {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.checkout-review dl {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.checkout-review dt {
  color: var(--ink-3);
  font-size: var(--step--1);
}

.checkout-review dd {
  margin: 0;
}

.checkout-change {
  align-self: start;
  font-weight: 600;
}

.checkout-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.checkout-summary h2 {
  font-size: var(--step-2);
}

.checkout-summary-plan {
  margin: 0;
}

.checkout-summary-hint {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.checkout-submit {
  justify-content: center;
  width: 100%;
}

.checkout-after {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.checkout-after h3 {
  color: var(--ink);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .checkout-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-summary {
    position: static;
  }

  .checkout-step-node span:last-child {
    font-size: 0.75rem;
  }
}

/* ---- Password strength meter: a bar that fills with a spring, requirements that tick off ---- */
.pw-meter {
  --pw-fill: 0;
  --pw-color: var(--rule-strong);
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.pw-meter[data-level="1"] { --pw-color: var(--reject); }
.pw-meter[data-level="2"] { --pw-color: color-mix(in srgb, var(--reject) 55%, var(--accent)); }
.pw-meter[data-level="3"] { --pw-color: color-mix(in srgb, var(--reject) 20%, var(--accent)); }
.pw-meter[data-level="4"] { --pw-color: var(--accent); }
.pw-meter[data-level="5"] { --pw-color: var(--accent-strong); }

.pw-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--step--1);
  font-weight: 600;
}

.pw-label {
  color: var(--pw-color);
  transition: color 0.4s ease;
}

.pw-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.pw-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--pw-color);
  transform: scaleX(var(--pw-fill));
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease;
}

/* A light that runs along the bar each time it gets stronger */
.pw-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
}

.pw-meter.is-rising .pw-bar-fill::after {
  animation: pw-shine 0.8s ease-out;
}

.pw-meter.is-rising .pw-bar {
  animation: pw-pulse 0.5s ease-out;
}

@keyframes pw-shine {
  to { transform: translateX(100%); }
}

@keyframes pw-pulse {
  40% { transform: scaleY(1.6); }
}

.pw-rules {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-3);
}

.pw-rules li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  transition: color 0.3s ease;
}

.pw-rules li > span:last-child {
  grid-column: 2;
}

.pw-tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pw-tick svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.35s ease 0.1s;
}

.pw-rules li.is-met {
  color: var(--ink);
}

.pw-rules li.is-met .pw-tick {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.12);
  animation: pw-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pw-rules li.is-met .pw-tick svg {
  stroke-dashoffset: 0;
}

@keyframes pw-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .pw-bar-fill, .pw-tick, .pw-tick svg { transition: none; }
  .pw-meter.is-rising .pw-bar, .pw-meter.is-rising .pw-bar-fill::after, .pw-rules li.is-met .pw-tick { animation: none; }
}

/* Demo: example products as cards with their first photo, name and EAN; the chosen one is marked */
.demo-form--pick .example-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.demo-form--pick .example-list button.example-card {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px;
  width: 100%; min-height: 88px; padding: 12px 14px 12px 12px;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink);
  text-align: left; cursor: pointer;
  transition: border-color .18s cubic-bezier(.16, 1, .3, 1), box-shadow .22s cubic-bezier(.16, 1, .3, 1), transform .22s cubic-bezier(.16, 1, .3, 1);
}
.example-card .example-thumb {
  display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden;
  border-radius: 10px; background: var(--paper);
}
.example-card .example-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.example-card .example-body { display: grid; gap: 4px; min-width: 0; }
.example-card .example-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--step--1); font-weight: 600; line-height: 1.3; color: var(--ink);
}
.example-list button.example-card span.example-ean {
  display: block; white-space: nowrap; font-size: .75rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--ink-3);
}
.example-card .example-check { width: 20px; height: 20px; fill: none; stroke: var(--rule-strong); stroke-width: 1.5; transition: stroke .18s, fill .18s; }
.example-card .example-check path { stroke: transparent; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-form--pick .example-list button.example-card:hover {
  border-color: var(--rule-strong); transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(17, 19, 26, .25);
}
.demo-form--pick .example-list button.example-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo-form--pick .example-list button.example-card.is-active {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 24px -14px var(--accent); background: var(--surface);
}
.example-card.is-active .example-check { fill: var(--accent); stroke: var(--accent); }
.example-card.is-active .example-check path { stroke: var(--on-accent); }
.demo-form--pick .example-list button.example-card:disabled { cursor: progress; opacity: .7; transform: none; }
@media (max-width: 560px) {
  .demo-form--pick .example-list { grid-template-columns: 1fr; gap: 10px; }
  .demo-form--pick .example-list button.example-card { min-height: 76px; grid-template-columns: 52px 1fr auto; }
  .example-card .example-thumb { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-form--pick .example-list button.example-card { transition: none; }
  .demo-form--pick .example-list button.example-card:hover { transform: none; }
}

/* Lenis smooth scrolling (assets/js/motion.js) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---- Revamp: cards and soft fields (contact first; docs, pricing and blog follow the same tokens) */
:root { --radius-card: 16px; --radius-field: 10px; --lift: 0 18px 40px -24px rgba(17, 19, 26, .28); }
.form.form-card {
  padding: clamp(20px, 3vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--lift); align-self: start;
}
.form.form-card input, .form.form-card select, .form.form-card textarea {
  border: 1px solid var(--rule); border-radius: var(--radius-field); background: var(--paper);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.form.form-card input:hover, .form.form-card select:hover, .form.form-card textarea:hover { border-color: var(--rule-strong); }
.form.form-card input:focus, .form.form-card select:focus, .form.form-card textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.form.form-card textarea { min-height: 160px; }
.form.form-card input[type="checkbox"] { accent-color: var(--accent); border-radius: 4px; }
.form.form-card .button--primary { border-radius: 999px; padding-inline: 28px; min-height: 48px; }
.contact-aside { border-left: 0; padding-left: 0; gap: 14px; }
.contact-card { padding: 24px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--rule); }
.contact-card--dark { background: var(--night); border-color: var(--night); color: var(--night-ink-2); }
.contact-card--dark .contact-card-title { margin: 0 0 8px; color: var(--night-ink); font-weight: 700; font-size: var(--step-1, 1.15rem); letter-spacing: -0.02em; }
.contact-card--dark p { margin: 0; line-height: 1.65; }
.contact-links { display: grid; border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  color: var(--ink); font-weight: 600; text-decoration: none; border-top: 1px solid var(--rule);
  transition: background-color .18s, color .18s;
}
.contact-link:first-child { border-top: 0; }
.contact-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.contact-link:hover { background: var(--paper); color: var(--accent); }
.contact-link:hover svg { transform: translateX(4px); }
.contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 900px) { .contact-aside { margin-top: 24px; } }

/* Revamp: pricing, after presta.support (thick borders, a dark featured plan with a hard accent shadow, dashed custom quote) */
.packages { gap: 20px; border: 0; align-items: stretch; }
.package, .package + .package {
  display: grid; gap: 16px; padding: 30px 26px;
  border: 2px solid var(--rule); border-radius: 18px; background: var(--surface); transition: border-color .2s;
}
.package:hover { border-color: var(--rule-strong); }
.package .price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.package .price strong { font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1; white-space: nowrap; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.package .price span { font-size: .875rem; font-weight: 500; letter-spacing: 0; font-stretch: 100%; color: var(--ink-3); }
.package.is-highlighted .price span { color: var(--night-ink-2); }
.package ul { margin-bottom: 4px; }
.package .button { margin-top: auto; width: 100%; min-height: 50px; border-radius: 12px; border-width: 1px; font-weight: 700; }
.package.is-highlighted, .package.is-highlighted + .package {
  border-color: var(--rule);
}
.package.is-highlighted {
  border: 0; background: var(--night); color: var(--night-ink);
  box-shadow: 12px 12px 0 var(--accent); transform: translateY(-12px);
}
.package.is-highlighted::before { display: none; }
.package.is-highlighted .package-name, .package.is-highlighted .price, .package.is-highlighted .price strong { color: var(--night-ink); }
.package.is-highlighted p, .package.is-highlighted .muted, .package.is-highlighted li { color: var(--night-ink-2); }
.package.is-highlighted li { border-color: rgba(255, 255, 255, .1); }
.package.is-highlighted li svg, .package.is-highlighted .icon { color: var(--signal); }
.package.is-highlighted .button { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.package.is-highlighted .button:hover { background: var(--signal); border-color: var(--signal); color: var(--night); }
.package-flag { border-radius: 999px; padding: 3px 10px; background: var(--signal); color: var(--night); font-weight: 700; }
.package-custom {
  border: 2px dashed var(--rule-strong); border-radius: 18px; background: transparent; box-shadow: none; margin-top: 36px;
}
.package-custom .button { border-radius: 12px; min-height: 50px; }
.faq { border: 2px solid var(--rule); border-radius: 18px; background: var(--surface); padding: 4px 24px; }
.faq details:last-child { border-bottom: 0; }
@media (max-width: 1080px) { .package.is-highlighted { transform: none; box-shadow: 8px 8px 0 var(--accent); } }
@media (prefers-reduced-motion: reduce) { .package { transition: none; } }

/* Revamp: API docs */
.docs .code, .prose .code { border-radius: 12px; }
.method {
  display: inline-flex; align-items: center; padding: 2px 8px; border: 0; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong); font-weight: 700; letter-spacing: .04em; vertical-align: .2em;
}
.docs-nav { padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--surface); }
.docs-nav a { border-radius: 8px; padding-inline: 8px; margin-inline: -8px; transition: background-color .15s, color .15s; }
.docs-nav a:hover { background: var(--paper); color: var(--accent); }
.prose table { border: 1px solid var(--rule); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface); }
.prose table th, .prose table td { padding-inline: 14px; }
.prose table thead th { background: var(--paper); }
.prose :not(pre) > code { border-radius: 6px; }

/* Revamp: blog cards, cover, table of contents */
.blog-card { border-radius: var(--radius-card); transition: transform .28s cubic-bezier(.16, 1, .3, 1); }
.blog-card-image, .blog-card img { border-radius: var(--radius-card); overflow: hidden; }
.blog-card img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.blog-card:hover { transform: translateY(-3px); }
.blog-card:hover img { transform: scale(1.03); }
.blog-cover, .blog-cover img { border-radius: 20px; overflow: hidden; }
.blog-toc { border-radius: var(--radius-card); }
.blog-search input { border-radius: 999px 0 0 999px; }
.blog-search button { border-radius: 0 999px 999px 0; }
.blog-filter { border-radius: 999px; }
.blog-poll, .blog-related .blog-card-image { border-radius: var(--radius-card); }
@media (prefers-reduced-motion: reduce) { .blog-card, .blog-card img { transition: none; transform: none !important; } }

/* Contact aside: sticky, dark card with the pricing page's accent offset, larger link rows */
.contact-aside { position: sticky; top: 110px; align-self: start; }
.contact-card--dark { padding: 30px; border-radius: 18px; box-shadow: 10px 10px 0 var(--accent); }
.contact-card--dark .contact-card-title { font-size: 1.5rem; margin-bottom: 12px; }
.contact-links { border: 2px solid var(--rule); border-radius: 18px; margin-top: 10px; }
.contact-links a { padding: 18px 22px; transition: background .2s, color .2s, padding .2s; }
.contact-links a:hover, .contact-links a:focus-visible { background: var(--accent-tint, #e0e7ff); color: var(--accent); padding-left: 28px; }
@media (max-width: 900px) { .contact-aside { position: static; } .contact-card--dark { box-shadow: 6px 6px 0 var(--accent); } }
@media (prefers-reduced-motion: reduce) { .contact-links a { transition: none; } }

/* Docs nav, after presta.support: full left column, dark card, large rows, active section in accent */
.docs-nav { grid-column: 1 / span 4; padding: 14px; border: 0; border-radius: 18px; background: var(--night); box-shadow: 10px 10px 0 var(--accent); font-size: 1.05rem; }
.docs-nav ol { border-top: 0; display: grid; gap: 4px; }
.docs-nav a { margin: 0; padding: 14px 18px; border: 0; border-radius: 12px; color: var(--night-ink-2); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.docs-nav a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.docs-nav a:hover, .docs-nav a:focus-visible { background: rgba(255, 255, 255, .07); color: var(--night-ink); }
.docs-nav a:hover::after, .docs-nav a[aria-current="true"]::after { opacity: 1; transform: none; }
.docs-nav a[aria-current="true"] { background: var(--accent); color: var(--on-accent, #fff); }
@media (max-width: 900px) { .docs-nav { grid-column: 1 / -1; box-shadow: 6px 6px 0 var(--accent); } }
@media (prefers-reduced-motion: reduce) { .docs-nav a::after { transition: none; } }

/* FAQ: the answer opens and closes with a height animation (motion.js) */
.faq details > p { overflow: hidden; }
.faq summary .icon { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.faq details.is-closing summary .icon { transform: none; }

/* Cookie consent, after presta.support: a card bottom right with a hard accent shadow */
.consent {
  position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 90; margin-left: auto; max-width: 560px;
  max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--night); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--accent); font-size: .95rem; line-height: 1.55;
}
.consent[hidden], .consent-main[hidden], .consent-prefs[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: var(--accent); }
.consent-title { margin: 0; font-weight: 800; font-stretch: 108%; font-size: 1.25rem; letter-spacing: -0.02em; }
.consent-main, .consent-prefs { display: flex; flex-direction: column; gap: 14px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .button { min-height: 44px; border-radius: 12px; }
.consent fieldset { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
.consent legend { padding: 0; margin-bottom: 4px; }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; font-size: .9rem; cursor: pointer; }
.consent-opt input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.consent-opt strong { display: block; }
.footer-cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cookies:hover { color: var(--night-ink); }
@media print { .consent { display: none; } }

/* Revamp: account dashboard, in the style of the pricing page (rounded 2px cards, soft fields, pill states) */
.account-status { gap: 16px; border: 0; }
.account-status-item { padding: 20px 22px; border: 2px solid var(--rule); border-radius: 18px; background: var(--surface); }
.account-status-item + .account-status-item { border-left: 2px solid var(--rule); }
.account-tabs { gap: 6px; border-bottom: 0; }
.account-tabs a { border-radius: 999px; padding: 8px 14px; transition: background-color .15s, color .15s; }
.account-tabs a:hover, .account-tabs a:focus-visible { background: var(--accent-tint); color: var(--accent-strong); }
.account-panel, .account-module-picker, .account-sub, .account-table, .account-invoices {
  border: 2px solid var(--rule); border-radius: 18px; background: var(--surface);
}
.account-table, .account-invoices { overflow: hidden; }
.account-notice { border-radius: 14px; }
.account-section input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .account-section select, .account-section textarea {
  border: 1px solid var(--rule); border-radius: var(--radius-field); background: var(--paper);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.account-section input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover, .account-section select:hover, .account-section textarea:hover { border-color: var(--rule-strong); }
.account-section input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus, .account-section select:focus, .account-section textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.account-section .button { border-radius: 12px; }
.account-state, .account-plan-badge { border-radius: 999px; }
/* Plans: the pricing page's cards; the current plan gets an accent border instead of the dark card */
.account-packages { margin-top: 8px; }
.account-packages .package { grid-template-rows: auto auto auto 1fr auto; }
.account-packages .package form { margin-top: auto; }
.account-packages .package.is-current { background: var(--surface); border-color: var(--accent); }
.account-packages .package.is-current::before { display: none; }
.account-packages .account-plan-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: auto;
  border: 1px solid var(--accent); background: var(--accent-tint); color: var(--accent-strong); font-weight: 700;
}
.account-packages .account-plan-badge.is-locked { border: 1px dashed var(--rule-strong); background: transparent; color: var(--ink-3); font-weight: 500; font-size: .875rem; }
.account-packages .account-plan-badge.is-pending { border-color: var(--rule-strong); background: var(--paper); color: var(--ink-2); }
.account-packages .account-plan-badge .icon { width: 16px; height: 16px; }
.account-custom { margin-top: 28px; }
/* Module picker: rounded platform cards */
.account-platform { border-radius: 14px; border-width: 2px; transition: border-color .18s, background-color .18s; }
.account-platform:hover { border-color: var(--rule-strong); }
@media (prefers-reduced-motion: reduce) { .account-tabs a, .account-platform { transition: none; } }
.account-step-n { border-radius: 8px; border-width: 2px; }
.account-flash { border-radius: 14px; }
