/* ==========================================================================
   Enidor — design tokens
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --line-soft: rgba(0, 0, 0, 0.06);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --on-accent: #ffffff;
  --ok: #1db954;
  --warn: #f5a623;
  --danger: #e5484d;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 980px;
  --nav-h: 52px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --header-bg: rgba(255, 255, 255, 0.72);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0a0a0c;
    --surface: #151517;
    --surface-2: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.16);
    --line-soft: rgba(255, 255, 255, 0.08);
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --ok: #30d158;
    --warn: #ff9f0a;
    --danger: #ff453a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(0, 0, 0, 0.72);
  }
}

/* Sections that stay dark in every theme. */
.dark {
  --bg: #000000;
  --bg-alt: #0a0a0c;
  --surface: #151517;
  --surface-2: #1d1d1f;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --ok: #30d158;
  --warn: #ff9f0a;
  --danger: #ff453a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background: var(--bg);
  color: var(--text);
}

/* ==========================================================================
   base
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
}

.wrap {
  width: min(100% - 44px, 1024px);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.center {
  text-align: center;
}

/* ==========================================================================
   typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.07;
}

h1 {
  font-size: clamp(2.75rem, 6.6vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.1875rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.016em;
}

.body-lg {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.0625rem;
}

.link-arrow::after {
  content: "›";
  font-size: 1.3em;
  line-height: 1;
  transform: translateY(-1px);
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-small {
  padding: 7px 16px;
  font-size: 0.875rem;
}

.btn .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
}

/* the mark is black artwork on transparency — flip it when the page goes dark */
@media (prefers-color-scheme: dark) {
  .brand-mark {
    filter: invert(1);
  }
}

.app-icon {
  display: block;
  width: clamp(76px, 9vw, 96px);
  height: auto;
  margin: 0 auto clamp(24px, 3vw, 34px);
  border-radius: 23%;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}

.nav a {
  color: var(--text);
  font-size: 0.8125rem;
  opacity: 0.85;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .header-inner > .btn {
    margin-left: auto;
  }
}

/* ==========================================================================
   sections
   ========================================================================== */

.section {
  padding-block: clamp(76px, 10vw, 130px);
}

.section-tight {
  padding-block: clamp(56px, 7vw, 90px);
}

.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 740px;
}

.section-head.center {
  margin-inline: auto;
}

.section-head h2 {
  text-wrap: balance;
}

.section-head h2 + p {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(40px, 5vw, 60px);
  text-align: center;
}

.hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero .lede {
  max-width: 34rem;
  margin-inline: auto;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.cta-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-stage {
  margin-top: clamp(44px, 6vw, 72px);
}

/* ==========================================================================
   app mock — a stand-in product shot built in HTML
   ========================================================================== */

.mock {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.mock-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mock-handle {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mock-body {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 340px;
}

.mock-side {
  padding: 18px 14px;
  border-right: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.mock-label {
  margin: 0 0 10px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-label + .mock-label {
  margin-top: 22px;
}

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

.mock-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
}

.mock-list li.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-weight: 600;
}

.mock-list .meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.dot.off {
  background: var(--muted);
  opacity: 0.5;
}

.mock-main {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
}

.mock-crumbs {
  color: var(--muted);
  font-size: 12px;
}

.mock-files {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mock-files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
}

.mock-files li + li {
  border-top: 1px solid var(--line-soft);
}

.mock-files .size {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.glyph {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  flex: none;
}

.glyph svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph.accent {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.mock-transfer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.mock-transfer .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-transfer .row .meta {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.meter {
  height: 6px;
  margin-top: 10px;
  border-radius: var(--pill);
  background: var(--line-soft);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: var(--pill);
  background: var(--accent);
}

@media (max-width: 720px) {
  .mock-side {
    display: none;
  }

  .mock-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}

/* ==========================================================================
   stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

.stat p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.stat .stat-num {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

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

/* ==========================================================================
   split feature rows
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split.reverse .split-visual {
  order: -1;
}

.split-copy h2 {
  max-width: 14ch;
}

.split-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.split-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.split-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.split-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

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

  .split.reverse .split-visual {
    order: 0;
  }
}

/* ==========================================================================
   panels (generic visual container)
   ========================================================================== */

.panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* chat mock */

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.chat-head .who {
  font-weight: 600;
}

.chat-head .state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 20px;
  background: var(--surface-2);
  line-height: 1.4;
}

.bubble.me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
}

.attach {
  align-self: flex-end;
  width: min(100%, 330px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.attach .row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.attach .name {
  font-weight: 600;
}

.attach .sub {
  color: var(--muted);
  font-size: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.chip.live {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
}

.chip.danger {
  margin-left: auto;
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
  font-weight: 600;
}

/* room code tiles */

.code-tiles {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 0;
}

.code-tiles span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
}

/* activity meters */

.gauges {
  display: grid;
  gap: 18px;
}

.gauge .row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.gauge .row .val {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.gauge .meter {
  margin-top: 8px;
}

.gauge.alt .meter span {
  background: var(--ok);
}

.log {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-size: 13px;
}

.log li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
}

.log time {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.8;
}

.log .who {
  color: var(--text);
  font-weight: 500;
}

.log .tag {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   card grid
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
}

.card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

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

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

.card-wide {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .card-wide {
    grid-column: span 1;
  }
}

/* ==========================================================================
   steps
   ========================================================================== */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--line-soft);
  list-style: none;
  overflow: hidden;
}

.steps li {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

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

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

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

/* ==========================================================================
   platforms
   ========================================================================== */

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 4vw, 48px);
  padding: 0;
  list-style: none;
}

.platform {
  padding: 22px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.platform svg {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform .name {
  font-weight: 600;
}

.platform .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.platform.soon {
  opacity: 0.55;
}

/* ==========================================================================
   download band
   ========================================================================== */

.band {
  padding-block: clamp(72px, 9vw, 120px);
  text-align: center;
}

.band .lede {
  max-width: 32rem;
  margin-inline: auto;
}

/* ==========================================================================
   releases (markup generated by assets/app.js)
   ========================================================================== */

.releases {
  margin-top: clamp(32px, 4vw, 48px);
}

.status {
  color: var(--muted);
  font-size: 0.9375rem;
}

.status-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.release-latest {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.release-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-title {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.release-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.badge {
  padding: 3px 10px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  color: var(--warn);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-notes {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.release-notes > * + * {
  margin-top: 10px;
}

.release-notes ul {
  padding-left: 1.2em;
}

.release-notes code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.assets {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.asset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.asset-os {
  font-weight: 600;
}

.asset-detail {
  color: var(--muted);
  font-size: 0.9375rem;
}

.asset-file {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.history {
  margin-top: 40px;
}

.history-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.history-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}

.history-tag {
  font-weight: 600;
}

.history-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.history-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .history-assets {
    margin-left: 0;
  }
}

.note {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.8125rem;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-note {
  width: 100%;
  margin-top: 6px;
  opacity: 0.8;
}

/* ==========================================================================
   ad placements (filled by assets/ads.js; hidden until AdSense is set up)
   ========================================================================== */

.ad {
  padding-block: clamp(28px, 4vw, 44px);
  text-align: center;
}

/* AdSense allows only "Advertisement(s)" or "Sponsored links" as a label */
.ad-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad .adsbygoogle {
  display: block;
}

/* nothing to show: collapse the label and the space with it */
.ad:has(ins[data-ad-status="unfilled"]) {
  display: none;
}

.prose .ad {
  margin-top: 40px;
  padding-block: 20px;
  border-block: 1px solid var(--line-soft);
}

/* ==========================================================================
   text pages (help/, about/, privacy/)
   ========================================================================== */

.page-head {
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(32px, 4vw, 48px);
  text-align: center;
}

.page-head h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 5.6vw, 3.75rem);
  text-wrap: balance;
}

.page-head .lede {
  max-width: 36rem;
  margin-inline: auto;
  text-wrap: pretty;
}

.updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.prose {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.prose h2 {
  margin-top: clamp(48px, 6vw, 64px);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-wrap: balance;
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

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

.prose li + li {
  margin-top: 6px;
}

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

.prose table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text);
  font-weight: 600;
}

.prose .table-wrap {
  overflow-x: auto;
}

.toc {
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.toc p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.toc ul {
  margin-top: 8px;
}

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
