/*
 * bandAgent website. Plain CSS, one small first-party script (site.js), no
 * external resources.
 * Visual language follows docs/DESIGN.md: system font, semantic colors,
 * brass as the only accent, glass on the navigation bar.
 *
 * The three pills of the logo are the motif: they float behind every page
 * (.backdrop) and pulse like a bar being counted in. Motion is CSS; site.js only
 * fills in where a browser lacks scroll-driven animations.
 * Time-based loops share one tempo (--beat = 128 BPM); scroll-driven
 * animations sit behind @supports, so browsers without them show the
 * finished state. Everything moves only with prefers-reduced-motion:
 * no-preference.
 */

:root {
  color-scheme: light dark;

  /* Semantic colors (light). Contrast checked against --bg and --card. */
  --bg: #f2f2f7;
  --card: rgba(255, 255, 255, 0.66);
  --card-solid: #ffffff;
  --label: #111114;
  --label-2: #4d4d55;          /* 7.6:1 on --bg */
  --separator: rgba(60, 60, 67, 0.16);
  --fill: rgba(120, 120, 128, 0.12);

  /* Brass accent. --tint fills, --tint-text is the readable text variant. */
  --tint: #c98a00;
  --tint-hover: #d89700;
  --on-tint: #1a1300;
  --tint-text: #855a00;        /* 5.6:1 on white, 5.1:1 on --bg */
  --tint-soft: rgba(201, 138, 0, 0.14);
  --glow: rgba(245, 179, 1, 0.34);
  --veil: rgba(201, 138, 0, 0.16);

  --nav-bg: rgba(250, 250, 252, 0.7);
  --card-blur: saturate(160%) blur(28px);
  --nav-shadow: 0 10px 30px rgba(40, 30, 0, 0.1);
  --card-shadow: 0 1px 2px rgba(40, 30, 0, 0.04), 0 12px 32px rgba(40, 30, 0, 0.06);
  --note-bg: #fff4d6;
  --note-border: #c98a00;

  /* Logo pills. */
  --glass-hi: rgba(255, 255, 255, 0.96);
  --glass-lo: rgba(255, 255, 255, 0.5);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --pill-shadow: rgba(133, 90, 0, 0.2);
  --brass-glow: rgba(245, 179, 1, 0.45);
  --backdrop-opacity: 0.85;

  /* The stage: the dark brass ground of the app icon, same in both themes. */
  --stage-top: #2a1f0a;
  --stage-bottom: #0d0b07;
  --stage-label: #f5f5f7;
  --stage-label-2: rgba(245, 245, 247, 0.72);
  --stage-brass: #f5b301;

  --radius-card: 24px;
  --radius-inner: 14px;
  --max: 1120px;
  --text-max: 72ch;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --beat: 468.75ms;            /* one beat at 128 BPM */
  --bar: 1875ms;               /* one 4/4 bar */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: rgba(30, 28, 24, 0.62);
    --card-solid: #1c1c1e;
    --label: #f5f5f7;
    --label-2: #b4b4bb;        /* 9.7:1 on black */
    --separator: rgba(255, 255, 255, 0.1);
    --fill: rgba(120, 120, 128, 0.24);

    --tint: #f5b301;
    --tint-hover: #ffc526;
    --on-tint: #1a1300;
    --tint-text: #f5b301;      /* 11:1 on black */
    --tint-soft: rgba(245, 179, 1, 0.16);
    --glow: rgba(245, 179, 1, 0.24);
    --veil: rgba(201, 138, 0, 0.2);

    --nav-bg: rgba(22, 21, 19, 0.62);
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-shadow: none;
    --note-bg: #2a2000;
    --note-border: #f5b301;

    --glass-hi: rgba(255, 255, 255, 0.3);
    --glass-lo: rgba(255, 255, 255, 0.06);
    --glass-rim: rgba(255, 255, 255, 0.4);
    --pill-shadow: rgba(0, 0, 0, 0.5);
    --brass-glow: rgba(245, 179, 1, 0.4);
    --backdrop-opacity: 0.8;
  }
}

/* Increased contrast / reduced transparency: opaque surfaces, no atmosphere. */
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  :root {
    --card: var(--card-solid);
    --card-blur: none;
    --nav-bg: var(--bg);
    --glow: transparent;
    --veil: transparent;
    --backdrop-opacity: 0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scrollbar-color: color-mix(in srgb, var(--label-2) 60%, transparent) transparent;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px, Apple body */
  line-height: 1.55;
  color: var(--label);
  background-color: var(--bg);
  /* Atmosphere: radial glow from the top end corner plus a vertical veil
     that fades out, both fixed so the content scrolls over them. */
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 0%, var(--glow), transparent 70%),
    linear-gradient(to bottom, var(--veil) 0%, transparent 85vh);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

@media (min-width: 700px) {
  .wrap {
    padding: 0 32px;
  }
}

/* ---------- Logo pills ---------- */

/* One trio = the logo: glass, brass, glass. --w is the width of one pill;
   heights and gap follow the icon geometry (150 : 320 : 560, gap 61). */
.trio {
  display: flex;
  align-items: center;
  gap: calc(var(--w) * 0.41);
}

.pill {
  flex: none;
  width: var(--w);
  height: calc(var(--w) * 2.13);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--glass-hi), var(--glass-lo));
  box-shadow:
    inset 0 0 0 1px var(--glass-rim),
    0 calc(var(--w) * 0.12) calc(var(--w) * 0.3) var(--pill-shadow);
}

.pill.brass {
  height: calc(var(--w) * 3.73);
  background: linear-gradient(165deg, #ffe08a, #f5b301 45%, #b87900);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 calc(var(--w) * 0.9) var(--brass-glow),
    0 calc(var(--w) * 0.12) calc(var(--w) * 0.3) var(--pill-shadow);
}

/* Fixed layer behind the content. Depth comes from size, blur and opacity. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--backdrop-opacity);
}

.backdrop .trio {
  position: absolute;
  transform: rotate(var(--r));
}

.backdrop .pill {
  filter: blur(var(--blur));
}

/* Behind the content the brass is glass too, so it never fights the text. */
.backdrop .pill.brass {
  background: linear-gradient(165deg, rgba(255, 224, 138, 0.7), rgba(245, 179, 1, 0.5) 45%, rgba(184, 121, 0, 0.34));
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 138, 0.35),
    0 0 calc(var(--w) * 0.9) color-mix(in srgb, var(--brass-glow) 50%, transparent);
}

.trio-a {
  --w: clamp(64px, 10vw, 148px);
  --r: 9deg;
  --blur: 5px;
  --dx: -3vw;
  --dy: 5vh;
  --dr: -5deg;
  --py: -34vh;
  --dur: 26s;
  top: 9vh;
  right: -5vw;
}

.trio-b {
  --w: clamp(44px, 6.5vw, 96px);
  --r: -11deg;
  --blur: 9px;
  --dx: 4vw;
  --dy: -6vh;
  --dr: 7deg;
  --py: -16vh;
  --dur: 32s;
  bottom: 4vh;
  left: -4vw;
  opacity: 0.75;
}

.trio-c {
  --w: clamp(18px, 2.4vw, 34px);
  --r: -5deg;
  --blur: 1px;
  --dx: 2vw;
  --dy: 4vh;
  --dr: 9deg;
  --py: -58vh;
  --dur: 21s;
  top: 58vh;
  left: 7vw;
  opacity: 0.6;
}

.trio-d {
  --w: clamp(22px, 3vw, 44px);
  --r: 14deg;
  --blur: 5px;
  --dx: -3vw;
  --dy: -5vh;
  --dr: -8deg;
  --py: -24vh;
  --dur: 29s;
  bottom: 12vh;
  right: 13vw;
  opacity: 0.5;
}

/* Reading pages: the pills stay, quieter. */
body:has(.page) .backdrop {
  opacity: calc(var(--backdrop-opacity) * 0.5);
}

@media (max-width: 699px) {
  .trio-c,
  .trio-d {
    display: none;
  }

  .trio-a {
    --blur: 3px;
    top: 12vh;
    right: -14vw;
  }

  .trio-b {
    left: -12vw;
    opacity: 0.55;
  }
}

@keyframes pill-beat {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  6% { transform: scale(1.07); opacity: 1; }
  30% { transform: scale(1); opacity: 0.82; }
}

@keyframes trio-drift {
  from { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  to { transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--r) + var(--dr))); }
}

@keyframes backdrop-dim {
  to { opacity: calc(var(--backdrop-opacity) * 0.55); }
}

@keyframes trio-parallax {
  to { translate: 0 var(--py); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Two bars per cycle, the pills counted left to right like the launch screen. */
  .pill {
    animation: pill-beat calc(var(--bar) * 2) var(--ease-out) infinite;
  }

  .pill:nth-child(2) { animation-delay: calc(var(--beat) * 2); }
  .pill:nth-child(3) { animation-delay: calc(var(--beat) * 4); }

  .trio-b .pill { animation-duration: calc(var(--bar) * 4); }
  .trio-c .pill { animation-delay: calc(var(--beat) * 3); }
  .trio-c .pill:nth-child(2) { animation-delay: calc(var(--beat) * 5); }
  .trio-c .pill:nth-child(3) { animation-delay: calc(var(--beat) * 7); }
  .trio-d .pill { animation-duration: calc(var(--bar) * 4); }

  .backdrop .trio {
    animation: trio-drift var(--dur) ease-in-out infinite alternate;
  }

  @supports (animation-timeline: scroll()) {
    .backdrop .trio {
      animation: trio-drift var(--dur) ease-in-out infinite alternate, trio-parallax linear both;
      animation-timeline: auto, scroll(root);
    }

    /* Full strength around the hero, quieter behind the reading parts. */
    .backdrop {
      animation: backdrop-dim linear both;
      animation-timeline: scroll(root);
      animation-range: 20vh 110vh;
    }
  }
}

/* The brand name in running text: bold, with the three pills in front
   (no ground, brass pill glowing). Files come from assets/brand/build.py. */
.bn {
  font-weight: 700;
  white-space: nowrap;
}

.bn::before {
  content: "";
  display: inline-block;
  width: 1.3em;
  height: 1.2em;
  margin-right: 0.1em;
  vertical-align: -0.26em;
  background: url("/assets/mark-light.svg") center / contain no-repeat;
}

.callout .bn::before {
  background-image: url("/assets/mark-dark.svg");
}

@media (prefers-color-scheme: dark) {
  .bn::before {
    background-image: url("/assets/mark-dark.svg");
  }
}

/* ---------- Navigation (the one glass surface) ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(100% - 24px, var(--max));
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 0 0 1px var(--separator), var(--nav-shadow);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 6px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-right: auto;
  color: var(--label);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-height: 44px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--label);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease-out;
}

.nav-links a:hover {
  background: var(--fill);
}

.nav-links a[aria-current="page"] {
  color: var(--tint-text);
}

.nav-links .lang {
  box-shadow: inset 0 0 0 1px var(--separator);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Collapse from the least needed link: page anchors first, Support last
   (it is in the footer too). */
@media (max-width: 899px) {
  .nav-links .hide-md {
    display: none;
  }
}

@media (max-width: 639px) {
  .nav-links .hide-sm {
    display: none;
  }
}

@media (max-width: 359px) {
  .nav-links .hide-xs {
    display: none;
  }
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.1rem + 6.4vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.4375rem);
  line-height: 1.45;
  color: var(--label-2);
  max-width: 40ch;
}

.muted {
  color: var(--label-2);
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--fill);
  overflow-wrap: anywhere;
}

/* ---------- Buttons ---------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  transition:
    transform 200ms var(--ease-out),
    background-color 160ms ease-out,
    box-shadow 200ms ease-out;
}

.btn-primary {
  background: var(--tint);
  color: var(--on-tint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px -6px var(--brass-glow);
}

.btn-primary:hover {
  background: var(--tint-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 30px -6px var(--brass-glow);
}

.btn-secondary {
  background: var(--fill);
  color: var(--label);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--fill), var(--label) 8%);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ---------- Sections ---------- */

main {
  display: block;
}

.section {
  padding: 72px 0;
}

@media (min-width: 700px) {
  .section {
    padding: 128px 0;
  }
}

.section-head {
  max-width: 46rem;
  margin-bottom: 40px;
}

@media (min-width: 700px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.section-head h2 {
  max-width: 16ch;
}

.section-head p {
  max-width: 34rem;
  color: var(--label-2);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}

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

.contact {
  padding-top: 0;
}

.contact h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.contact .section-head {
  margin-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 24px;
  text-align: center;
}

@media (min-width: 700px) {
  .hero {
    padding: 88px 0 40px;
  }
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  --w: clamp(30px, 4.6vw, 52px);
  position: relative;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* Brass light behind the mark, like the glow in the app icon. */
.hero-mark::before {
  content: "";
  position: absolute;
  inset: -30% -60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brass-glow), transparent);
  filter: blur(calc(var(--w) * 0.5));
}

.hero-mark .trio {
  position: relative;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 0.4em;
}

.hero .lead {
  max-width: 36ch;
  margin-bottom: 0;
}

.hero .actions {
  justify-content: center;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--label);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tint);
}

/* Song timeline (the core model: a song is a row of sections). */
.timeline {
  align-self: stretch;
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: var(--radius-card);
  background: var(--card);
  -webkit-backdrop-filter: var(--card-blur);
  backdrop-filter: var(--card-blur);
  box-shadow: inset 0 0 0 1px var(--separator), var(--card-shadow);
  text-align: left;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.timeline-meta strong {
  font-weight: 650;
}

.timeline-meta .mono {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
}

/* Four beats of the bar, the first one in brass. */
.beats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.beats span {
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: var(--label-2);
  opacity: 0.32;
}

.beats span:first-child {
  height: 20px;
  background: var(--tint);
  opacity: 1;
}

.blocks {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blocks li {
  position: relative;
  flex: var(--bars) 1 0;
  min-width: 0;
  padding: 12px 12px 14px;
  border-radius: var(--radius-inner);
  background: var(--fill);
  overflow: hidden;
  transform-origin: left center;
}

@media (min-width: 700px) {
  .blocks li {
    padding: 18px 16px 22px;
  }
}

.blocks li.now {
  background: var(--tint);
  color: var(--on-tint);
  box-shadow: 0 8px 28px -8px var(--brass-glow);
}

/* Progress through the running section: bar 9 of 16 until site.js plays
   the song and moves --p bar by bar. */
.blocks li.now::before,
.blocks li.now::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--on-tint);
  opacity: 0.16;
}

.blocks li.now::after {
  opacity: 0.7;
  transform: scaleX(var(--p, 0.5625));
  transform-origin: left center;
}

.blocks.playing li.now::after {
  transition: transform var(--bar) linear;
}

.blocks.playing li.now.reset::after {
  transition: none;
}

.blocks li {
  transition: background-color 240ms ease-out, opacity 240ms ease-out;
}

.blocks li.done {
  opacity: 0.72;
}

.blocks .name {
  position: relative;
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blocks .bars {
  position: relative;
  display: block;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blocks li:not(.now) .bars {
  color: var(--label-2);
}

.b8 { --bars: 8; }
.b16 { --bars: 16; }
.b12 { --bars: 12; }
.b4 { --bars: 6; }

@media (min-width: 561px) {
  .blocks li {
    min-width: max-content;
  }
}

@media (max-width: 560px) {
  .blocks {
    flex-wrap: wrap;
  }

  .blocks li {
    flex: 1 1 calc(33% - 6px);
  }
}

.timeline-caption {
  max-width: 68ch;
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--label-2);
}

/* ---------- Feature bento ---------- */

.bento,
.grid {
  display: grid;
  gap: 16px;
}

/* A fixed track, so wide content (the marquee) cannot stretch a card. */
.bento {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  min-width: 0;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-card);
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: var(--card-blur);
  backdrop-filter: var(--card-blur);
  box-shadow: inset 0 0 0 1px var(--separator), var(--card-shadow);
}

/* Light that follows the pointer (position set by site.js). */
.bento .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--tint-soft), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}

@media (hover: hover) {
  .bento .card:hover::after {
    opacity: 1;
  }
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-top: 4px;
}

.card p {
  color: var(--label-2);
}

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

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--tint-soft);
  color: var(--tint-text);
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card-body {
  max-width: 34rem;
}

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

  .card-click,
  .card-cue,
  .card-half,
  .card-ai {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .card-click .card-body,
  .card-cue .card-body,
  .card-half .card-body,
  .card-ai .card-body {
    flex: 1 1 0;
  }

  .card .demo {
    flex: 0 0 44%;
    margin-top: 0;
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .card {
    grid-column: span 2;
    padding: 32px;
  }

  .card-click,
  .card-ai {
    grid-column: span 4;
  }

  .card-half {
    grid-column: span 3;
  }

  .card-cue,
  .card-half {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .card-cue .card-body,
  .card-half .card-body {
    flex: none;
    margin-bottom: 24px;
  }

  .card-cue .demo,
  .card-half .demo {
    flex: none;
    margin-top: auto;
  }

  .card-click {
    align-items: stretch;
  }

  .card-click .card-body {
    align-self: center;
  }

  .card-click .demo {
    flex-basis: 50%;
    justify-content: center;
    gap: 10px;
  }

  .card-click .demo-beats {
    gap: 16px;
    height: 96px;
    margin-top: 22px;
  }

  .card-click .demo-beats span {
    width: 26px;
    height: 56px;
  }

  .card-click .demo-beats span:first-child {
    height: 96px;
  }

}

/* Small stage scenes inside cards: what the app shows, on the icon's ground. */
.demo {
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 110%, rgba(245, 179, 1, 0.3), transparent 70%),
    linear-gradient(var(--stage-top), var(--stage-bottom));
  color: var(--stage-label);
  list-style: none;
}

.card .demo p {
  margin: 0;
  color: var(--stage-label-2);
}

.demo-click {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 22px 30px;
  text-align: center;
}

.card .demo .demo-pos {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card .demo .demo-bpm {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 3.5vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--stage-label);
}

.demo-bpm span {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--stage-label-2);
}

.demo-beats {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  margin-top: 14px;
}

.demo-beats span {
  width: 18px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.demo-beats span:first-child {
  height: 64px;
  background: linear-gradient(165deg, #ffe08a, #f5b301 45%, #b87900);
  box-shadow: 0 0 24px rgba(245, 179, 1, 0.55);
}

.demo-map {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.demo-map li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9375rem;
  font-weight: 600;
}

.demo-map .pos,
.screen .pos {
  flex: none;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-lr li {
  padding-left: 8px;
}

.demo-lr .ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--stage-brass);
  color: var(--on-tint);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* Synced tablets: one position, a different view per role. */
.screens {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .screens {
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(245, 179, 1, 0.26), transparent 70%),
    linear-gradient(var(--stage-top), var(--stage-bottom));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  color: var(--stage-label);
}

@media (min-width: 700px) {
  .screen {
    min-height: 300px;
    padding: 18px;
  }
}

.screen p {
  margin: 0;
}

.screen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 650;
}

.screen .tag {
  font-size: 0.75rem;
  color: var(--stage-brass);
}

.screen:first-child .pos {
  background: var(--stage-brass);
  color: var(--on-tint);
}

.screen-big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--stage-brass);
}

.screen-sub {
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--stage-label-2);
}

.lyric {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 650;
  line-height: 1.3;
  color: rgba(245, 245, 247, 0.45);
}

.lyric.now {
  color: var(--stage-label);
}

/* A staff: five lines, the rehearsal mark on top. */
.staff {
  position: relative;
  height: 33px;
  margin: 26px 0 10px;
  background: repeating-linear-gradient(to bottom, rgba(245, 245, 247, 0.5) 0 1px, transparent 1px 8px);
}

.staff .mark {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  padding: 0 6px;
  border-radius: 4px;
  background: var(--stage-brass);
  color: var(--on-tint);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
}

.screen .note {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  line-height: 1.35;
}

.note span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--stage-brass);
}

.demo-chat {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card .demo-chat p {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.card .demo-chat .ask {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--stage-brass);
  color: var(--on-tint);
  font-weight: 550;
}

.card .demo-chat .reply {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--stage-label);
}

.demo-chat .reply span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--stage-label-2);
}

/* AI clients as a slow marquee of marks and names, plus the way to the setup guide. */
@media (min-width: 640px) {
  .card-ai {
    flex-wrap: wrap;
  }

  .card-ai .ai-foot {
    flex: 0 0 100%;
  }
}

.ai-foot {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--separator);
}

.card .ai-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 550;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee ul {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  margin: 0;
  padding: 0 clamp(18px, 2.5vw, 32px);
  list-style: none;
}

/* Brand marks as masks, so they take the text color in both themes. */
.marquee li::before {
  content: "";
  flex: none;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.logo-claude { --logo: url("/assets/logos/claude.svg"); }
.logo-chatgpt { --logo: url("/assets/logos/chatgpt.svg"); }
.logo-copilot { --logo: url("/assets/logos/copilot.svg"); }
.logo-cursor { --logo: url("/assets/logos/cursor.svg"); }
.logo-gemini { --logo: url("/assets/logos/gemini.svg"); }

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--label-2);
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .marquee ul {
    animation: marquee 32s linear infinite;
  }

  .marquee:hover ul {
    animation-play-state: paused;
  }
}

/* Without motion: one static, wrapping row. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee ul {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px 32px;
    padding: 0;
  }

  .marquee ul[aria-hidden] {
    display: none;
  }
}

.more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
}

.more::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-out);
}

.more:hover {
  text-decoration: underline;
}

.more:hover::after {
  transform: translateX(4px) rotate(45deg);
}

@keyframes beat-tick {
  0% { opacity: 1; transform: scaleY(1.18); }
  35%, 100% { opacity: 0.32; transform: scaleY(1); }
}

@keyframes beat-flash {
  0% { box-shadow: 0 0 0 0 rgba(245, 179, 1, 0.6); }
  60%, 100% { box-shadow: 0 0 0 10px rgba(245, 179, 1, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .beats span,
  .demo-beats span {
    opacity: 0.32;
    animation: beat-tick var(--bar) linear infinite;
  }

  .beats span:nth-child(2),
  .demo-beats span:nth-child(2) { animation-delay: var(--beat); }
  .beats span:nth-child(3),
  .demo-beats span:nth-child(3) { animation-delay: calc(var(--beat) * 2); }
  .beats span:nth-child(4),
  .demo-beats span:nth-child(4) { animation-delay: calc(var(--beat) * 3); }

  /* Every device shows the new bar at the same moment. */
  .screen .pos {
    animation: beat-flash var(--bar) ease-out infinite;
  }
}

/* "Also included": capsules, the logo's shape. */
.subhead {
  margin: 56px 0 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 10px 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--separator);
  font-size: 0.9375rem;
  font-weight: 550;
}

/* ---------- Familiar terms, made simple ---------- */

#vergleich h2,
#compare h2 {
  max-width: 20ch;
}

.buzz {
  display: grid;
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

@media (min-width: 1000px) {
  .buzz {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.buzz li {
  padding: 22px 0 26px;
  border-top: 1px solid var(--separator);
}

.buzz strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--tint-text);
}

.buzz span {
  display: block;
  max-width: 30ch;
  color: var(--label-2);
}

/* ---------- Steps ---------- */

.steps {
  --dot: 44px;
  counter-reset: step;
  position: relative;
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The rail between the numbers. */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2 - 1px);
  top: calc(var(--dot) / 2);
  bottom: calc(var(--dot) / 2);
  width: 2px;
  border-radius: 2px;
  background: var(--separator);
}

.steps::after {
  background: var(--tint);
  transform-origin: top left;
}

.steps li {
  counter-increment: step;
  position: relative;
  z-index: 1;
  padding-left: calc(var(--dot) + 20px);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  padding-top: 9px;
}

.steps p {
  max-width: 34ch;
  margin: 0;
  color: var(--label-2);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .steps::before,
  .steps::after {
    left: calc(var(--dot) / 2);
    right: calc(100% / 3 + 160px / 3 - 80px - var(--dot) / 2);
    top: calc(var(--dot) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps li {
    padding: calc(var(--dot) + 20px) 0 0;
  }

  .steps h3 {
    padding-top: 0;
  }
}

/* ---------- Callout: the stage ---------- */

.callout {
  --tint: var(--stage-brass);
  --tint-hover: #ffc526;
  --brass-glow: rgba(245, 179, 1, 0.45);
  position: relative;
  display: grid;
  gap: 8px 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(ellipse 55% 90% at 88% 70%, rgba(245, 179, 1, 0.36), transparent 70%),
    linear-gradient(var(--stage-top), var(--stage-bottom));
  color: var(--stage-label);
  overflow: hidden;
}

.callout > * {
  position: relative;
}

.callout h2 {
  max-width: 14ch;
  margin-bottom: 12px;
}

.callout p {
  max-width: 34rem;
  margin: 0;
  color: var(--stage-label-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.callout a:not(.btn) {
  color: var(--stage-brass);
}

.callout .actions {
  margin-top: 20px;
}

.callout .callout-mark {
  --w: clamp(34px, 5vw, 64px);
  --glass-hi: rgba(255, 255, 255, 0.42);
  --glass-lo: rgba(255, 255, 255, 0.1);
  --glass-rim: rgba(255, 255, 255, 0.5);
  --pill-shadow: rgba(0, 0, 0, 0.45);
  position: absolute;
  right: clamp(-12px, 6vw, 96px);
  top: 50%;
  translate: 0 -50%;
  display: none;
}

@media (min-width: 800px) {
  .callout .callout-mark {
    display: flex;
  }
}

/* The support page keeps the compact two-column form. */
.faq + .callout {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-card);
}

.faq + .callout h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

@media (min-width: 800px) {
  .faq + .callout {
    grid-template-columns: 1fr auto;
  }

  .faq + .callout .actions {
    margin-top: 0;
  }
}

/* ---------- Entrances and scroll-driven motion ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes mark-in {
  from { opacity: 0; transform: scale(0.6); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes mark-out {
  to { opacity: 0; scale: 1.5; translate: 0 -4vh; }
}

@keyframes block-in {
  from { opacity: 0; transform: scaleX(0.3); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(var(--rise, 56px)) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes rail-y {
  from { transform: scaleY(0); }
}

@keyframes rail-x {
  from { transform: scaleX(0); }
}

@keyframes step-in {
  from { opacity: 0.25; }
}

@keyframes dot-in {
  from { background: var(--card-solid); color: var(--label-2); }
}

@keyframes stage-in {
  from { clip-path: inset(14% 9% round 40px); transform: scale(0.96); }
  to { clip-path: inset(0 round 36px); transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Rule for everything scroll-driven below: an element that is fully inside
     the viewport is in its final, readable state (ranges end at entry 100%). */

  /* Page load: the mark lands, the text follows. */
  .hero-mark .trio {
    animation: mark-in 900ms var(--ease-out) both;
  }

  .hero .badge,
  .hero h1,
  .hero .lead,
  .hero .actions {
    animation: rise-in 800ms var(--ease-out) both;
  }

  .hero .badge { animation-delay: 120ms; }
  .hero h1 { animation-delay: 180ms; }
  .hero .lead { animation-delay: 260ms; }
  .hero .actions { animation-delay: 340ms; }

  @supports (animation-timeline: view()) {
    /* Scrolling into the page pushes the mark towards the viewer. */
    .hero-mark {
      animation: mark-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 42vh;
    }

    /* The song is laid out section by section. */
    .timeline {
      view-timeline: --song block;
    }

    .blocks li {
      animation: block-in var(--ease-out) both;
      animation-timeline: --song;
      animation-range: entry 0% entry 50%;
    }

    .blocks li:nth-child(2) { animation-range: entry 10% entry 60%; }
    .blocks li:nth-child(3) { animation-range: entry 20% entry 70%; }
    .blocks li:nth-child(4) { animation-range: entry 30% entry 80%; }
    .blocks li:nth-child(5) { animation-range: entry 40% entry 90%; }
    .blocks li:nth-child(6) { animation-range: entry 50% entry 100%; }

    .section-head > *,
    .subhead {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    /* Cards in one row arrive as a wave, not as a block. */
    .bento .card {
      animation: card-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .screens .screen {
      animation: card-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .screens .screen:nth-child(2) { --rise: 84px; }
    .screens .screen:nth-child(3) { --rise: 112px; }
    .screens .screen:nth-child(4) { --rise: 140px; }

    .buzz li {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .bento .card:nth-child(3n + 2) { --rise: 88px; }
    .bento .card:nth-child(3n) { --rise: 120px; }

    .chips li {
      animation: card-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .chips li:nth-child(even) { --rise: 40px; }
    .chips li:nth-child(odd) { --rise: 20px; }

    /* The rail fills as the steps come by. */
    .steps {
      view-timeline: --steps block;
    }

    .steps::after {
      animation: rail-y linear both;
      animation-timeline: --steps;
      animation-range: entry 10% entry 100%;
    }

    .steps li {
      animation: step-in linear both;
      animation-timeline: --steps;
      animation-range: entry 0% entry 40%;
    }

    .steps li::before {
      animation: dot-in linear both;
      animation-timeline: --steps;
      animation-range: entry 10% entry 30%;
    }

    .steps li:nth-child(2) { animation-range: entry 30% entry 70%; }
    .steps li:nth-child(2)::before { animation-range: entry 45% entry 65%; }
    .steps li:nth-child(3) { animation-range: entry 60% entry 100%; }
    .steps li:nth-child(3)::before { animation-range: entry 80% entry 100%; }

    @media (min-width: 800px) {
      .steps::after {
        animation-name: rail-x;
      }
    }

    .section > .wrap > .callout {
      animation: stage-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

/* Same effects from site.js where CSS scroll-driven animations are missing.
   The script adds .js-scroll only then, and only without reduced motion. */
.js-scroll .section-head > *,
.js-scroll .subhead,
.js-scroll .screens .screen,
.js-scroll .bento .card,
.js-scroll .chips li,
.js-scroll .buzz li,
.js-scroll .section > .wrap > .callout {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 700ms ease-out, transform 900ms var(--ease-out);
}

.js-scroll .blocks li {
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 500ms ease-out, transform 700ms var(--ease-out);
}

.js-scroll .is-in.is-in.is-in {
  opacity: 1;
  transform: none;
}

.js-scroll .blocks li.done.is-in {
  opacity: 0.72;
}

.js-scroll .backdrop {
  opacity: calc(var(--backdrop-opacity) * (1 - 0.45 * var(--dim, 0)));
}

.js-scroll .backdrop .trio {
  translate: 0 calc(var(--py) * var(--page, 0));
}

.js-scroll .hero-mark {
  opacity: calc(1 - var(--hero-out, 0));
  scale: calc(1 + 0.5 * var(--hero-out, 0));
}

.js-scroll .steps::after {
  transform: scaleY(var(--rail, 0));
}

@media (min-width: 800px) {
  .js-scroll .steps::after {
    transform: scaleX(var(--rail, 0));
  }
}

.js-scroll .steps li {
  opacity: 0.3;
  transition: opacity 400ms ease-out;
}

.js-scroll .steps li.is-in {
  opacity: 1;
}

/* ---------- Long-form pages (privacy, imprint, support) ---------- */

.page {
  padding: 48px 0 72px;
}

.prose {
  max-width: var(--text-max);
}

.prose h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose address {
  font-style: normal;
}

.toc {
  margin: 24px 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid var(--separator);
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--label-2);
}

.toc ol {
  margin: 0;
  columns: 2 16rem;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border-radius: var(--radius-inner);
  border: 1px solid var(--separator);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

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

th {
  font-weight: 650;
  background: var(--fill);
}

/* FAQ with native disclosure */
.faq {
  display: grid;
  gap: 10px;
  max-width: var(--text-max);
}

.faq details {
  border-radius: var(--radius-inner);
  background: var(--card);
  border: 1px solid var(--separator);
}

.faq summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 15px 52px 15px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--label-2);
  border-bottom: 2.5px solid var(--label-2);
  transform: rotate(45deg) translateY(-3px);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--label-2);
}

.faq .answer p:last-child,
.faq .answer ol:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

.faq h2 {
  margin: 28px 0 6px;
  font-size: 1.25rem;
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--separator);
  font-size: 0.9375rem;
  color: var(--label-2);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.footer p {
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--separator);
  font-size: 0.9375rem;
  color: var(--label-2);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.footer p {
  margin: 0;
}

/* ---------- 404 ---------- */

.notfound {
  padding: 96px 0;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.1em;
}

.notfound .actions {
  justify-content: center;
}

.notfound .lead {
  margin: 0 auto 0.5em;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .nav,
  .footer,
  .skip-link,
  .backdrop {
    display: none;
  }

  .card,
  .toc,
  .table-wrap,
  .faq details {
    background: none;
  }
}
