/* MuScriptor Studio — showcase site.
   Colours come from the app (Sources/MuScriptorStudio/StudioPalette.swift): the dark theme reuses
   them as they are, the light theme takes the app's own light values and darkens mint and peach
   until text passes 4.5:1. Components only use the tokens below. */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;
  --page: #eff0f3;
  --g1: #e1e9f7;
  --g2: #f3f4f7;
  --g3: #ece4f5;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --sunken: #e6e9f0;
  --border: #cdd2dc;
  --border-soft: rgba(26, 32, 45, 0.1);
  --text: #171b26;
  --text-2: #454e62;
  --text-3: #5a6376;
  --mint: #1a6b61;
  --mint-fill: #84d1c7;
  --peach: #8a5410;
  --peach-fill: #e9a956;
  --accent: #305cb0;
  --accent-hover: #264c96;
  --on-accent: #ffffff;
  --accent-soft: rgba(48, 92, 176, 0.09);
  --card: rgba(255, 255, 255, 0.86);
  --header: rgba(239, 240, 243, 0.8);
  --shot-border: rgba(26, 32, 45, 0.16);
  --shadow-1: 0 1px 2px rgba(26, 32, 45, 0.05), 0 6px 20px rgba(26, 32, 45, 0.06);
  --shadow-2: 0 2px 6px rgba(26, 32, 45, 0.1), 0 28px 64px -18px rgba(42, 55, 78, 0.45);
  --glow-a: rgba(132, 209, 199, 0.5);
  --glow-b: rgba(135, 175, 255, 0.42);
  --glow-c: rgba(196, 161, 250, 0.4);
  --band: linear-gradient(135deg, #2a374e 0%, #1a202d 53%, #2c233a 100%);
  /* The six stems, as the app inks them */
  --stem-1: #9a4670;
  --stem-2: #a6502e;
  --stem-3: #3c6293;
  --stem-4: #77549b;
  --stem-5: #2d6a61;
  --stem-6: #566a7f;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #1a202d;
    --g1: #2a374e;
    --g2: #1a202d;
    --g3: #2c233a;
    --surface: #24272f;
    --surface-2: #2c303a;
    --sunken: #181a20;
    --border: #3b414d;
    --border-soft: rgba(255, 255, 255, 0.09);
    --text: #f3f5f9;
    --text-2: #b9c1d0;
    --text-3: #9aa3b5;
    --mint: #84d1c7;
    --mint-fill: #84d1c7;
    --peach: #efb977;
    --peach-fill: #efb977;
    --accent: #87afff;
    --accent-hover: #a3c1ff;
    --on-accent: #0f1a30;
    --accent-soft: rgba(135, 175, 255, 0.13);
    --card: rgba(36, 39, 47, 0.82);
    --header: rgba(26, 32, 45, 0.74);
    --shot-border: rgba(255, 255, 255, 0.12);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.35), 0 32px 80px -18px rgba(0, 0, 0, 0.65);
    --glow-a: rgba(132, 209, 199, 0.17);
    --glow-b: rgba(135, 175, 255, 0.19);
    --glow-c: rgba(196, 161, 250, 0.17);
    --band: linear-gradient(135deg, #33425c 0%, #232a3a 53%, #372c49 100%);
    --stem-1: #e6a3c2;
    --stem-2: #edae87;
    --stem-3: #8eb9e7;
    --stem-4: #bdabe7;
    --stem-5: #8fd3b9;
    --stem-6: #b5c5d5;
  }
}

/* The same dark values when the visitor picks "dark", and inside the always-dark closing band. */
:root[data-theme="dark"],
.cta-band {
  color-scheme: dark;
  --page: #1a202d;
  --g1: #2a374e;
  --g2: #1a202d;
  --g3: #2c233a;
  --surface: #24272f;
  --surface-2: #2c303a;
  --sunken: #181a20;
  --border: #3b414d;
  --border-soft: rgba(255, 255, 255, 0.09);
  --text: #f3f5f9;
  --text-2: #b9c1d0;
  --text-3: #9aa3b5;
  --mint: #84d1c7;
  --mint-fill: #84d1c7;
  --peach: #efb977;
  --peach-fill: #efb977;
  --accent: #87afff;
  --accent-hover: #a3c1ff;
  --on-accent: #0f1a30;
  --accent-soft: rgba(135, 175, 255, 0.13);
  --card: rgba(36, 39, 47, 0.82);
  --header: rgba(26, 32, 45, 0.74);
  --shot-border: rgba(255, 255, 255, 0.12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.35), 0 32px 80px -18px rgba(0, 0, 0, 0.65);
  --glow-a: rgba(132, 209, 199, 0.17);
  --glow-b: rgba(135, 175, 255, 0.19);
  --glow-c: rgba(196, 161, 250, 0.17);
  --stem-1: #e6a3c2;
  --stem-2: #edae87;
  --stem-3: #8eb9e7;
  --stem-4: #bdabe7;
  --stem-5: #8fd3b9;
  --stem-6: #b5c5d5;
}
:root[data-theme="dark"] { --band: linear-gradient(135deg, #33425c 0%, #232a3a 53%, #372c49 100%); }

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1000px) { :root { --gutter: 32px; } }

/* -------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100dvh;
  font: 400 1rem/1.6 var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* The app's window gradient, fixed behind the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 53%, var(--g3) 100%);
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 650; }
::selection { background: var(--mint-fill); color: #10202a; }

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-accent); }

.icon { flex: none; }

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

h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 760;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 3.2vw + 0.7rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 720;
  text-wrap: balance;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
}
.lead {
  font-size: clamp(1.0625rem, 0.5vw + 0.98rem, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 44em;
  text-wrap: pretty;
}

/* The three dashes of the Studio mark open every section label. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font: 600 0.8125rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 4px;
  background: linear-gradient(90deg,
    var(--peach-fill) 0 10px, transparent 10px 13px,
    var(--peach-fill) 13px 18px, transparent 18px 21px,
    var(--peach-fill) 21px 26px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-weight: 680;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-name { color: var(--mint); }
.brand-prefix { color: var(--text); }
.mark { display: block; flex: none; }

.site-nav {
  order: 3;
  display: flex;
  justify-content: space-between;
  width: calc(100% + 20px);
  margin-inline: -10px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.9688rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--text); }

.controls { display: flex; align-items: center; gap: 8px; }
.lang, .theme {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}
html:not(.js) .theme { display: none; }
.lang a, .theme button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: 650 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.lang a:hover, .theme button:hover { color: var(--text); }
.lang a[aria-current], .theme button[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* 44 px targets wherever the header has room for them (40 px on the narrowest phones). */
@media (min-width: 360px) { .lang a, .theme button { min-width: 44px; height: 44px; } }
@media (max-width: 479px) { .brand-prefix { display: none; } }
@media (max-width: 399px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (min-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    background: var(--header);
    -webkit-backdrop-filter: saturate(1.5) blur(18px);
    backdrop-filter: saturate(1.5) blur(18px);
  }
  .site-header.is-stuck { border-bottom-color: var(--border-soft); }
  .header-inner { flex-wrap: nowrap; gap: 24px; }
  .site-nav { order: 0; width: auto; margin: 0 auto; gap: 4px; justify-content: center; }
  .site-nav a { padding-inline: 14px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 620;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost .icon { transition: transform 0.2s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }

/* "Coming soon": a status, not a button. The dashed outline is the app's drop zone. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 1.5px dashed var(--peach);
  border-radius: 999px;
  background: color-mix(in srgb, var(--peach-fill) 12%, transparent);
  color: var(--peach);
  font-weight: 650;
}
.soon-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--peach);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--peach-fill) 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta-note { margin-top: 14px; font-size: 0.9375rem; color: var(--text-3); max-width: 34em; }

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

.hero { position: relative; padding-top: clamp(36px, 7vw, 92px); }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -140px 0 -8% 0;
  background:
    radial-gradient(38% 34% at 22% 30%, var(--glow-a), transparent 72%),
    radial-gradient(36% 32% at 80% 24%, var(--glow-c), transparent 72%),
    radial-gradient(52% 40% at 50% 78%, var(--glow-b), transparent 72%);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 40em; margin-bottom: 30px; }
.hero .cta-row { justify-content: center; }
.hero .cta-note { margin-inline: auto; }
.version-line { margin-top: 10px; }
.version-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.8125rem/1.2 var(--mono);
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-decoration: none;
}
.version-line a:hover { color: var(--accent); text-decoration: underline; }

.hero-stage { margin-top: clamp(28px, 5vw, 56px); }
.frame { position: relative; }
/* Corner brackets, as on the Studio mark. */
.brackets i {
  position: absolute;
  width: clamp(18px, 3vw, 34px);
  height: clamp(18px, 3vw, 34px);
  border: 3px solid var(--mint-fill);
  opacity: 0.85;
}
.brackets i:nth-child(1) { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.brackets i:nth-child(2) { top: -9px; right: -9px; border-left: 0; border-bottom: 0; }
.brackets i:nth-child(3) { bottom: -9px; left: -9px; border-right: 0; border-top: 0; }
.brackets i:nth-child(4) { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
@media (min-width: 1000px) {
  .brackets i:nth-child(1), .brackets i:nth-child(2) { top: -14px; }
  .brackets i:nth-child(3), .brackets i:nth-child(4) { bottom: -14px; }
  .brackets i:nth-child(1), .brackets i:nth-child(3) { left: -14px; }
  .brackets i:nth-child(2), .brackets i:nth-child(4) { right: -14px; }
}

/* ------------------------------------------------------------- screenshots */

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--shot-border);
  border-radius: 14px;
  background: #1a202d;
  box-shadow: var(--shadow-2);
  line-height: 0;
  cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 20, 30, 0.78);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; }
@media (hover: none) { .shot-zoom { opacity: 0.9; } }
html:not(.js) .shot-zoom { display: none; }

.lightbox {
  max-width: min(96vw, 1500px);
  max-height: 94dvh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 13, 20, 0.84); }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88dvh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 20, 30, 0.82);
  color: #fff;
  cursor: pointer;
}
.lightbox-close:focus-visible { outline-color: #87afff; border-radius: 50%; }
html:has(.lightbox[open]) { overflow: hidden; }

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-top: clamp(32px, 5vw, 56px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 76px); }
.section-head h2 { margin-bottom: 16px; }

.card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

/* Feature rows */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 116px);
}
.feature-text h3 { font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2rem); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.feature-text > p:not(.step) { margin-bottom: 20px; font-size: 1.0625rem; color: var(--text-2); max-width: 36em; }
.step {
  margin-bottom: 14px;
  font: 600 0.8125rem/1.2 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--peach);
}
.points { display: grid; gap: 10px; padding: 0; list-style: none; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points .icon { margin-top: 5px; color: var(--mint); }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature-flip .feature-text { order: 2; }
  /* A wide capture gets the full width: the text sits above it, on two columns. */
  .feature-wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature-wide .feature-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: end; }
  .feature-wide .feature-text > * { grid-column: 1; }
  .feature-wide .feature-text > p:not(.step) { margin-bottom: 0; }
  .feature-wide .points { grid-column: 2; grid-row: 1 / span 3; }
}

/* Two smaller features side by side */
.duo { display: grid; gap: 20px; margin-bottom: clamp(56px, 8vw, 116px); }
.duo-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.duo-media {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px 24px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}
.duo-media .shot { width: 100%; max-width: 440px; border-radius: 12px; }
.duo-tonalite .shot { max-width: 320px; }
.duo-text { padding: 24px 26px 28px; }
.duo-text h3 { margin-bottom: 10px; }
.duo-text p { color: var(--text-2); }
@media (min-width: 768px) {
  .duo { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 0 24px; }
  /* Both cards share the two rows, so their captures and their texts line up. */
  .duo-card { grid-row: span 2; grid-template-rows: subgrid; }
  .duo-media { min-height: 340px; }
}

/* Six small features, tinted like the six stems */
.more-title { margin-bottom: 22px; }
.more { display: grid; gap: 16px; }
@media (min-width: 600px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini { padding: 22px 22px 24px; }
.mini-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  background: color-mix(in srgb, var(--tint) 15%, transparent);
  color: var(--tint);
}
.tint-1 { --tint: var(--stem-1); }
.tint-2 { --tint: var(--stem-2); }
.tint-3 { --tint: var(--stem-3); }
.tint-4 { --tint: var(--stem-4); }
.tint-5 { --tint: var(--stem-5); }
.tint-6 { --tint: var(--stem-6); }
.mini h3 { margin-bottom: 6px; font-size: 1.0938rem; letter-spacing: -0.01em; }
.mini p { font-size: 0.9688rem; color: var(--text-2); }
.caption { margin-top: 30px; font-size: 0.875rem; color: var(--text-3); text-align: center; }

/* Privacy */
.privacy { display: grid; gap: 32px; align-items: center; }
.privacy-text h2 { margin-bottom: 16px; }
.privacy-card { padding: 26px 26px 28px; }
.privacy-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.125rem; }
.privacy-card h3 .icon { color: var(--mint); }
.privacy-card ul, .release-body ul, .notes ul { display: grid; gap: 14px; padding: 0; list-style: none; }
.privacy-card li, .release-body li, .notes li { position: relative; padding-left: 22px; }
/* Bullets are one dash of the mark. */
.privacy-card li::before, .release-body li::before, .notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 3px;
  background: var(--peach-fill);
}
.privacy-card li { color: var(--text-2); }
.privacy-card li strong { color: var(--text); }
@media (min-width: 900px) { .privacy { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Requirements */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { padding: 22px 20px 24px; }
.tile .icon { color: var(--mint); }
.tile-value {
  margin: 16px 0 6px;
  font-size: clamp(1.5rem, 1.6vw + 1.1rem, 2.125rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.tile-label { font-size: 0.9688rem; color: var(--text-2); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .tile { padding: 26px 24px 28px; } }
.notes {
  margin-top: 20px;
  padding: 24px 26px 26px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}
.notes h3 { margin-bottom: 16px; font-size: 1.0625rem; }
.notes li { color: var(--text-2); }

/* Credits */
.credits { display: grid; gap: 16px; }
.credit { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 16px; }
.plate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  margin-bottom: 20px;
  padding: 0 16px;
  border-radius: 12px;
}
.plate img { display: block; }
.plate-dark { background: #141922; border: 1px solid rgba(255, 255, 255, 0.1); }
.plate-light { background: #fff; border: 1px solid #d5dae3; }
.plate-word { font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.05em; color: #fff; }
.credit h3 { margin-bottom: 2px; }
.credit-by { margin-bottom: 10px; font: 600 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.credit p:not(.credit-by) { color: var(--text-2); }
.credit .text-link { margin-top: auto; padding-top: 6px; }
.also { margin-top: 28px; max-width: 62em; font-size: 0.9688rem; color: var(--text-2); }
.also strong { color: var(--text); }
.also a { color: inherit; }
.also a:hover { color: var(--accent); }
@media (min-width: 860px) { .credits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Closing band: always the app's own dark window, in both themes. */
.section-cta { padding-top: 0; }
.cta-band {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: var(--band);
  color: var(--text);
  box-shadow: var(--shadow-2);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin-bottom: 26px; }
.cta-art {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(24, 26, 32, 0.55);
}
.signal { display: block; width: 100%; height: auto; }
.signal-grid { stroke: rgba(185, 193, 208, 0.16); stroke-width: 1; fill: none; }
.signal-bars { stroke: #87afff; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.signal-cursor { stroke: #efb977; stroke-width: 1.5; fill: none; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; } }

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

.site-footer { margin-top: 24px; padding-block: 40px 56px; border-top: 1px solid var(--border-soft); }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { line-height: 1.4; color: var(--text-2); }
.footer-brand strong { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 550;
  font-size: 0.9688rem;
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.fine { max-width: 72ch; font-size: 0.875rem; color: var(--text-3); }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .fine { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------- changelog */

.page-head { position: relative; padding-top: clamp(40px, 7vw, 96px); }
.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -140px 0 -60% 0;
  background:
    radial-gradient(40% 60% at 15% 20%, var(--glow-a), transparent 72%),
    radial-gradient(40% 60% at 85% 10%, var(--glow-c), transparent 72%);
  pointer-events: none;
}
.page-head h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 6vw, 4.25rem); }

.releases { display: grid; gap: clamp(28px, 4vw, 44px); }
.release { display: grid; gap: 14px; scroll-margin-top: 96px; }
.release-version {
  margin-bottom: 10px;
  font: 720 clamp(2.1rem, 2.4vw + 1.4rem, 3rem)/1 var(--sans);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.release-label { margin-bottom: 10px; font-size: 1.5rem; letter-spacing: -0.025em; }
.release-meta h2 a { color: var(--text); text-decoration: none; }
.release-meta h2 a:hover { color: var(--accent); }
.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint-fill) 22%, transparent);
  color: var(--mint);
  font: 650 0.75rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.release-date { font: 500 0.875rem/1.5 var(--mono); color: var(--text-3); }
.release-body { padding: 24px 24px 26px; }
.release-latest .release-body { border-color: color-mix(in srgb, var(--mint-fill) 55%, transparent); }
.release-note { margin-bottom: 18px; font-size: 0.9375rem; color: var(--text-3); }
.release-body li { color: var(--text); }
.back { margin-top: 40px; }
@media (min-width: 860px) {
  .release { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
  .release-meta { position: sticky; top: 100px; }
  .release-body { padding: 30px 32px 32px; }
}

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

.not-found { padding-bottom: clamp(64px, 9vw, 128px); }
.not-found .nf-art { max-width: 320px; margin-bottom: 28px; padding: 8px; border-radius: 20px; border: 1px solid var(--border-soft); background: #1c212c; }
.nf-title { margin-bottom: 14px; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 740; }
.not-found .lead { margin-bottom: 22px; }
.not-found [lang="en"] { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border-soft); }

/* ------------------------------------------------------------------ motion */

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on .reveal { opacity: 1; transform: none; }
}

@media print {
  body::before, .hero::before, .page-head::before, .controls, .site-nav, .shot-zoom { display: none; }
  .reveal-on .reveal { opacity: 1; transform: none; }
}
