/* ==========================================================================
   NDI MViewer — product page
   Design language of racespot.digital
   ========================================================================== */

:root {
  /* Palette – FALLBACK. The live values come from
     https://racespot.digital/design/racespot-tokens.css (loaded in <head> AFTER
     this file, so it overrides these :root values). Change the design in the
     main site's design/tokens.json, not here. Custom property names (incl.
     --ease-rmh) are defined by that shared token file – keep them as they are. */
  --ink: #0A0A0B;
  --ink-800: #121316;
  --ink-750: #16171B;
  --ink-700: #1B1C20;
  --ink-600: #2A2B30;
  --paper: #EDEBE4;
  --paper-dim: #B8B7B1;
  --paper-muted: #7E7E83;
  --cobalt: #2D5BFF;
  --cobalt-bright: #5B7CFF;
  --hero-glow: #11173A;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 12vh, 11rem);
  --ease-rmh: cubic-bezier(.16, 1, .3, 1);
}

/* Page-local roles (not part of the shared token file). They mirror the app's
   own semantic colours: red is only ever the PGM tally, amber means "look here". */
:root {
  --tally: #E53E3E;
  --live: #30D158;
  --amber: #FF9F0A;
  --z-nav: 50;
  --z-popover: 60;
  --z-skip: 70;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--cobalt); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  background: var(--cobalt);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: top .2s var(--ease-rmh);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- layout ---------- */

.container {
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }

/* ---------- typography ---------- */

h1, h2, h3 { text-wrap: balance; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
  margin: 0 0 1.5rem;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8.2vw, 6rem);
  line-height: .95;
  letter-spacing: -.035em;
  margin: 0;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--paper-dim);
  max-width: 40rem;
  text-wrap: pretty;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.75rem;
  border-radius: 9999px;
  padding: .8rem 1.6rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease-rmh), color .3s var(--ease-rmh), border-color .3s var(--ease-rmh), transform .2s var(--ease-rmh);
  cursor: pointer;
  border: 0;
}

.btn .arrow { transition: transform .3s var(--ease-rmh); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: 9999px; }

.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-bright); }

.btn-ghost {
  background: transparent;
  color: var(--paper-dim);
  border: 1px solid var(--ink-600);
}
.btn-ghost:hover { color: var(--paper); border-color: var(--paper-muted); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color .5s var(--ease-rmh), backdrop-filter .5s var(--ease-rmh);
}

.nav.scrolled {
  background: rgba(10, 10, 11, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-700);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand-name .dot { color: var(--cobalt); }


.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--ink-700);
  border-radius: 9999px;
  padding: .35rem .5rem;
  background: rgba(18, 19, 22, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-links a {
  border-radius: 9999px;
  padding: .4rem .9rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}

.nav-links a:hover { background: var(--ink-700); color: var(--paper); }
.nav-links a:focus-visible { border-radius: 9999px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-cta { display: none; }

@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-switch { display: none; }
}

/* disclosure menus in the nav (language + mobile menu) */

.pop { position: relative; }

.pop > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  border: 1px solid var(--ink-600);
  border-radius: 9999px;
  padding: .45rem 1rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(10, 10, 11, .35);
  transition: color .3s, border-color .3s;
}

.pop > summary::-webkit-details-marker { display: none; }
.pop > summary:hover { color: var(--paper); border-color: var(--paper-muted); }
.pop > summary:focus-visible { border-radius: 9999px; }
.pop[open] > summary { color: var(--paper); border-color: var(--paper-muted); }

.lang-switch > summary::after { content: "▾"; font-size: .7em; }

.menu-icon {
  display: inline-grid;
  gap: 3px;
  width: 14px;
}
.menu-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s var(--ease-rmh), opacity .2s;
}
.menu-switch[open] .menu-icon span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-switch[open] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-switch[open] .menu-icon span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: var(--z-popover);
  min-width: 11rem;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: .4rem;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8);
}

.pop-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  border-radius: 9px;
  padding: .45rem .75rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: background-color .2s, color .2s;
}

.pop-panel a:hover { background: var(--ink-700); color: var(--paper); }
.pop-panel a[aria-current="true"] { color: var(--cobalt-bright); }
.pop-panel .native { text-transform: none; color: var(--paper-muted); }

.menu-panel { min-width: 15rem; }
.menu-panel .btn { margin-top: .4rem; width: 100%; justify-content: center; }
.menu-panel .btn-primary { color: #fff; }
.menu-panel .btn-primary:hover { background: var(--cobalt-bright); color: #fff; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(7.5rem, 17vh, 12rem);
  padding-bottom: calc(var(--section) * .55);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;  /* the field spans one viewport, */
  height: 100svh; /* not the whole hero section */
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 30%, var(--hero-glow) 0%, var(--ink) 60%);
}

/* halftone LED-dot texture inside the glow (brand signature element) */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91, 124, 255, .9) 1.3px, transparent 1.4px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(70% 65% at 38% 42%, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 45%, transparent 72%);
  mask-image: radial-gradient(70% 65% at 38% 42%, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 45%, transparent 72%);
}

/* animated dot field (WebGL); opaque when running, so it covers the static
   CSS dots — which remain as the no-WebGL fallback */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--ink));
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
  padding: .35rem 1rem .35rem .35rem;
  border: 1px solid var(--ink-700);
  border-radius: 9999px;
  background: rgba(10, 10, 11, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  max-width: 100%;
}

.hero-kicker .eyebrow { margin: 0; color: var(--paper-dim); }

/* the icon file is the transparent squircle render — no clipping, shadow follows alpha */
.app-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 22px rgba(45, 91, 255, .45));
}

.hero-kicker .app-icon { width: 2.1rem; height: 2.1rem; filter: none; }

.hero h1 span { display: block; }
.hero h1 .accent { color: var(--cobalt-bright); }

.hero-row {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

@media (min-width: 1024px) {
  .hero-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
  }
}

/* the dot field is brightest right behind the copy on small screens */
.hero .lede { text-shadow: 0 1px 14px rgba(10, 10, 11, .95), 0 0 2px rgba(10, 10, 11, .9); }

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--paper-muted);
}

/* layout strip — the four real multiview layouts, drawn from the app's own
   geometry (2 + 6: program row takes the top 45 %) */

.layouts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  width: 100%;
  max-width: 34rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) { .layouts { width: 30rem; } }

.layout { min-width: 0; }

.layout-grid {
  display: grid;
  gap: 2px;
  aspect-ratio: 16 / 10;
  padding: 3px;
  border-radius: 6px;
  background: #000;
  border: 1px solid var(--ink-600);
  transition: border-color .4s var(--ease-rmh);
}

.layout-grid i {
  display: block;
  background: #161a2c;
  transition: background-color .5s var(--ease-rmh);
}

.layout:hover .layout-grid { border-color: var(--cobalt); }
.layout:hover .layout-grid i { background: #22306a; }
.layout:hover .layout-grid i:nth-child(2n) { transition-delay: .04s; }
.layout:hover .layout-grid i:nth-child(3n) { transition-delay: .08s; }

.layout-2p6 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 45fr 27.5fr 27.5fr; }
.layout-2p6 i { grid-column: span 2; }
.layout-2p6 i.pgm { grid-column: span 3; box-shadow: inset 0 0 0 1.5px var(--tally); }
.layout-2x2 { grid-template: repeat(2, 1fr) / repeat(2, 1fr); }
.layout-3x3 { grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.layout-4x4 { grid-template: repeat(4, 1fr) / repeat(4, 1fr); gap: 1.5px; }

.layout-name {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.layout-count {
  display: block;
  margin-top: .25rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--paper-muted);
}

/* ---------- device frames / screenshots ----------
   Screenshots are plain <img> tags inside a frame div.
   To swap in a real screenshot, replace the file in assets/screens/
   (or update the src) — the frame renders around any image. */

.frame {
  border-radius: clamp(14px, 2vw, 26px);
  border: 1px solid var(--ink-600);
  background: #000;
  padding: clamp(8px, 1.2vw, 16px);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .8),
    0 0 120px -40px rgba(45, 91, 255, .35);
}

.frame img {
  width: 100%;
  height: auto;
  border-radius: clamp(8px, 1.2vw, 14px);
}

.frame-phone {
  border-radius: clamp(28px, 3vw, 44px);
  padding: clamp(10px, 1.4vw, 14px);
}

.frame-phone img { border-radius: clamp(20px, 2.2vw, 32px); }

.frame-narrow { width: 100%; max-width: 420px; margin-inline: auto; }

/* iPad capture: tablet bezel proportions */
.frame-tablet { border-radius: clamp(22px, 2.4vw, 34px); padding: clamp(8px, 1vw, 12px); }
.frame-tablet img { border-radius: clamp(14px, 1.6vw, 24px); }

/* Mac window captures bring their own chrome and transparent rounded corners:
   no frame around them, only a shadow that follows the window's alpha. */
.shot-window img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .75)) drop-shadow(0 0 70px rgba(45, 91, 255, .22));
}

.hero-shot { margin-top: clamp(3rem, 7vh, 5.5rem); }

/* ---------- features (ruled rows, not cards) ---------- */

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin: 1.5rem 0 0; }

.feature-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink-700);
}

.feature-row {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--ink-700);
}

@media (min-width: 900px) {
  .feature-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

.feature-row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 .5rem;
}

.feature-row p {
  margin: 0;
  color: var(--paper-dim);
  max-width: 30rem;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-row .ticks { padding-top: .35rem; }

@media (min-width: 640px) {
  .feature-row .ticks { columns: 2; column-gap: 2.5rem; }
}

.ticks li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .55rem;
  color: var(--paper-dim);
  font-size: .95rem;
  break-inside: avoid;
}

.ticks li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cobalt);
}

/* ---------- split sections (copy + screenshot) ---------- */

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split.flip .split-copy { order: 2; }
}

.split h2 { margin-bottom: 1.25rem; }

.split .lede { margin-bottom: 1.75rem; }

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-700);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--ink-700);
  font-size: .95rem;
}

.spec-list .k {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-muted);
  white-space: nowrap;
  padding-top: .15rem;
}

.spec-list .v { color: var(--paper-dim); text-align: right; }

@media (max-width: 480px) {
  .spec-list li { flex-direction: column; gap: .2rem; }
  .spec-list .v { text-align: left; }
}

/* ---------- platforms ---------- */

.platforms {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--ink-700);
  padding-top: 2rem;
}

@media (min-width: 768px) { .platforms { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.platform h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.025em;
  margin: 0 0 .5rem;
}

.platform p { margin: 0; color: var(--paper-dim); font-size: .95rem; max-width: 24rem; }

.platform .req {
  display: block;
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--paper-muted);
}

/* ---------- pricing ---------- */

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

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

.price-card {
  border: 1px solid var(--ink-700);
  border-radius: 22px;
  background: var(--ink-800);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
}

.price-card.pro {
  border-color: var(--cobalt);
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(45, 91, 255, .16) 0%, transparent 55%),
    var(--ink-800);
}

.price-card .tier {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.price-card.pro .tier { color: var(--cobalt-bright); }

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 1.1rem 0 .35rem;
}

.price small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--paper-muted);
}

.price-sub { color: var(--paper-dim); font-size: .95rem; margin: 0 0 1.5rem; }

.price-card ul {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .7rem;
  color: var(--paper-dim);
  font-size: .95rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cobalt-bright);
  font-weight: 700;
}

.price-card .btn { align-self: flex-start; }

.price-fineprint {
  margin-top: 2rem;
  font-size: .82rem;
  color: var(--paper-muted);
  max-width: 52rem;
}

/* ---------- built-by band ---------- */

.builtby {
  border-block: 1px solid var(--ink-700);
  background: var(--ink-800);
}

.builtby-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .builtby-inner { grid-template-columns: 5fr 6fr; gap: 4rem; }
}

.builtby .lede { margin: 0; }

.maker-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color .3s;
}
.maker-link img { height: 1.35rem; width: auto; }
.maker-link .arrow { transition: transform .3s var(--ease-rmh); }
.maker-link:hover { color: var(--paper); }
.maker-link:hover .arrow { transform: translateX(4px); }

/* ---------- updates + feedback ---------- */

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

@media (min-width: 1024px) {
  .updates-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 .6rem;
}

.panel-lede { margin: 0 0 1.5rem; color: var(--paper-dim); max-width: 34rem; }

/* changelog (markup produced by assets/js/changelog.js) */

.release-latest {
  border: 1px solid var(--ink-700);
  border-radius: 22px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(45, 91, 255, .12) 0%, transparent 60%),
    var(--ink-800);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.release-kicker {
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
}

.release-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .8rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.release-build {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--paper-dim);
  border: 1px solid var(--ink-600);
  border-radius: 9999px;
  padding: .2rem .7rem;
}

.release-meta {
  margin: .6rem 0 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--paper-muted);
}

.release-groups { margin-top: 1.5rem; display: grid; gap: 1.35rem; }

.release-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .6rem;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
}

.release-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.release-label.is-fixed::before { background: var(--live); }
.release-label.is-improved::before { background: var(--cobalt-bright); }
.release-label.is-new::before { background: var(--paper); }
.release-label.is-known::before { background: var(--amber); }

.release-group .ticks li { font-size: .925rem; }
.release-group.is-known .ticks li::before { color: var(--amber); }

.release-archive {
  margin-top: 1.25rem;
  border-top: 1px solid var(--ink-700);
}

.release-archive > summary,
.release-older > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  transition: color .3s;
}

.release-archive > summary::-webkit-details-marker,
.release-older > summary::-webkit-details-marker { display: none; }

.release-archive > summary {
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.release-archive > summary::after,
.release-older > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cobalt-bright);
  flex-shrink: 0;
  transition: transform .3s var(--ease-rmh);
}

.release-archive[open] > summary::after,
.release-older[open] > summary::after { transform: rotate(45deg); }

.release-archive > summary:hover,
.release-older > summary:hover { color: var(--paper); }

.release-list { list-style: none; margin: 0; padding: 0; }

.release-older { border-top: 1px solid var(--ink-700); }

.release-older > summary {
  padding: .8rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.release-older .release-when {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--paper-muted);
  white-space: nowrap;
}

.release-older .release-body { padding: .25rem 0 1.5rem; }
.release-older .release-groups { margin-top: .5rem; }
.release-older .release-meta { margin-top: 0; }

/* feedback */

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--ink-700);
  border-radius: 22px;
  background: var(--ink-800);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.feedback-form label { color: var(--paper-muted); margin-top: .75rem; }
.feedback-form label:first-child { margin-top: 0; }

.feedback-form textarea,
.feedback-form input[type="email"] {
  background: var(--ink);
  border: 1px solid var(--ink-600);
  border-radius: 12px;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: .8rem 1rem;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}

.feedback-form ::placeholder { color: #8d8d92; opacity: 1; }

.feedback-form textarea:focus,
.feedback-form input[type="email"]:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, .25);
}

.feedback-form button { margin-top: 1rem; align-self: flex-start; }
.feedback-form button:disabled { opacity: .55; cursor: wait; }

.fb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.fb-status { margin: .75rem 0 0; font-size: .9rem; color: var(--paper-dim); min-height: 1.4em; }
.fb-status.ok { color: var(--live); }
.fb-status.err { color: #FF6B6B; }

.fb-alt {
  margin: 1rem 0 0;
  font-size: .875rem;
  color: var(--paper-muted);
}
.fb-alt a { color: var(--paper-dim); text-decoration: underline; text-decoration-color: var(--ink-600); text-underline-offset: 3px; }
.fb-alt a:hover { color: var(--paper); }

/* ---------- FAQ ---------- */

.faq { max-width: 52rem; }

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

.faq details:first-of-type { border-top: 1px solid var(--ink-700); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  transition: color .3s;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--cobalt-bright);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform .3s var(--ease-rmh);
}

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

.faq summary:hover { color: var(--cobalt-bright); }

.faq .answer {
  padding: 0 0 1.5rem;
  color: var(--paper-dim);
  max-width: 44rem;
}

.faq .answer p { margin: 0 0 .75rem; }
.faq .answer a { color: var(--cobalt-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- final CTA ---------- */

.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.finale-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 120% at 50% 100%, var(--hero-glow) 0%, var(--ink) 65%);
}

.finale-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91, 124, 255, .8) 1.3px, transparent 1.4px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 50%, transparent 75%);
  mask-image: radial-gradient(60% 80% at 50% 100%, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 50%, transparent 75%);
}

.finale .app-icon { width: 4.5rem; height: 4.5rem; margin: 0 auto 2rem; }
.finale .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--ink-700);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand { display: grid; gap: .9rem; justify-items: start; }

.footer-maker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-muted);
  transition: color .3s;
}
.footer-maker img { height: 1.1rem; width: auto; }
.footer-maker:hover { color: var(--paper-dim); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-muted);
  transition: color .3s;
}

.footer-links a:hover { color: var(--paper); }

.legal {
  margin-top: 2.5rem;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--paper-muted);
  max-width: 56rem;
}

/* ---------- legal pages (privacy / imprint) ---------- */

.legal-hero {
  padding-top: clamp(7.5rem, 15vh, 11rem);
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}

.legal-meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.prose {
  max-width: 46rem;
  color: var(--paper-dim);
  font-size: .975rem;
  line-height: 1.75;
  padding-bottom: var(--section);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--paper);
  margin: 3rem 0 .9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-700);
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--paper);
  margin: 1.8rem 0 .6rem;
}

.prose p { margin: 0 0 .9rem; }

.prose ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .45rem;
}

.prose li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cobalt);
}

.prose strong { color: var(--paper); font-weight: 600; }

.prose a {
  color: var(--cobalt-bright);
  transition: color .3s;
}

.prose a:hover { color: var(--paper); text-decoration: underline; }

.prose .crosslinks {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-700);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.prose .crosslinks a {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- reveal on scroll ----------
   Content is visible by default; only once the inline head script has marked
   the page with .js does it start hidden and fade in. No JS = no hidden text. */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-rmh), transform .8s var(--ease-rmh);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .layout-grid, .layout-grid i, .btn, .btn .arrow, .menu-icon span { transition: none; }
}
