/* Glaze site. The look is borrowed from the app (lib/shared/theme,
   lib/shared/widgets): app bg #19191A, glass surface #1E1E1E at 0.8 opacity
   with a 12 px blur, faint noise, white 10 % outlines, 20 px card radius,
   cherry accent #C42A4A, Inter. The layout is a plain website. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #19191A;
  --ui-rgb: 30, 30, 30;
  --el-opacity: 0.8;
  --el-blur: 12px;
  --accent: #C42A4A;
  --accent-rgb: 196, 42, 74;
  --accent-text: #E0566F;
  --on: #E1E3E6;
  --on-var: #C5C7CB;
  --on-dim: rgba(197, 199, 203, 0.62);
  --muted: #99A2AD;
  --secondary: #828282;
  --line: rgba(255, 255, 255, 0.1);
  --amber: #F2A93B;
  --orange: #FF9800;
  --gold: #FFD700;

  --topbar-h: 64px;
  --container: 1140px;

  /* Whole-page scale. The layout is in px and capped at --container, so on a
     wide monitor at 100% (1440p is 2560 px across) it shrank to a strip in the
     middle; the steps below grow it instead. */
  --zoom: 1;

  color-scheme: dark;
}

@media (min-width: 2000px) { :root { --zoom: 1.1; } }
@media (min-width: 2400px) { :root { --zoom: 1.3; } }
@media (min-width: 3200px) { :root { --zoom: 1.75; } }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--on);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* NoiseOverlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Under the content, on a layer of its own: on top it was blended over the
     whole page on every scrolled frame. */
  z-index: -1;
  transform: translateZ(0);
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

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

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  flex-shrink: 0;
  user-select: none;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
}

.logo {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--accent);
  -webkit-mask: url('img/glaze.svg') center / contain no-repeat;
  mask: url('img/glaze.svg') center / contain no-repeat;
  flex-shrink: 0;
}

/* HoverGlow: a soft light pool under the pointer, same stops as the app. */
[data-glow] { position: relative; overflow: hidden; }
[data-glow]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.018) 33%,
    rgba(255, 255, 255, 0.006) 66%,
    rgba(255, 255, 255, 0) 100%);
}
@media (hover: hover) {
  [data-glow]:hover::after { opacity: 1; }
}

/* ── Top bar ────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.topbar.scrolled {
  background: rgba(var(--ui-rgb), 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Language picker: the app's DesktopPopup, a glass panel with a 12 px
   radius, an outline, a soft shadow and 14 × 9 rows. */
.lang-menu { position: relative; }
.lang-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--ui-rgb), 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on);
  transition: background 0.15s ease;
}
.lang-btn .ms { font-size: 20px; color: var(--accent); }
.lang-btn:hover, .lang-btn[aria-expanded='true'] { background: rgba(255, 255, 255, 0.06); }
.popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 200px;
  padding: 4px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--ui-rgb), 0.94);
  -webkit-backdrop-filter: blur(var(--el-blur));
  backdrop-filter: blur(var(--el-blur));
  box-shadow: 0 0 24px 1px rgba(0, 0, 0, 0.35);
  transform-origin: top right;
  animation: popup-in 0.14s cubic-bezier(0.33, 1, 0.68, 1);
}
.popup[hidden] { display: none; }
@keyframes popup-in { from { opacity: 0; transform: scale(0.96); } }
.popup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  color: var(--on);
  transition: background 0.15s ease;
}
.popup-row:hover { background: rgba(255, 255, 255, 0.06); }
.popup-label { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.popup-label small { font-size: 11px; color: var(--on-dim); }
.popup-check { font-size: 18px; color: var(--accent); }

/* GlazeTabBar, pill style */
.tab-bar {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--ui-rgb), 0.6);
  -webkit-backdrop-filter: blur(var(--el-blur));
  backdrop-filter: blur(var(--el-blur));
}
.tab {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-var);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tab:hover { color: var(--on); background: rgba(255, 255, 255, 0.05); }
.tab.active { background: rgba(var(--accent-rgb), 0.78); border-color: rgba(255, 255, 255, 0.12); color: #fff; }

/* ── Sections ───────────────────────────────────────────────────────────── */

/* One section per tab; the hash picks which. */
/* The slide-in briefly pushes a section past the viewport; on phones that
   widens the layout viewport and makes the fixed nav bar jump. */
main { overflow-x: clip; }
.section { display: none; }
.section.current { display: block; }
.section.enter-fwd  { animation: slide-fwd 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.section.enter-back { animation: slide-back 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes slide-fwd  { from { opacity: 0; transform: translateX(28px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-28px); } }

.section { padding: 48px 0 64px; min-height: calc(100vh / var(--zoom) - var(--topbar-h) - 160px); }
.section-head { margin-bottom: 28px; max-width: 680px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .ms { font-size: 16px; }
.section-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}
.section-head p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-dim); }

/* ── MenuGroup-style cards ─────────────────────────────────────────────── */

.group {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(var(--ui-rgb), var(--el-opacity));
  /* No backdrop blur: cards sit on the flat page background, so a blur shows
     nothing and was re-run for every card on every scrolled frame. */
  padding-bottom: 6px;
}
.group.flat { padding-bottom: 0; }
.group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 4px;
}
.group-header .ms { font-size: 18px; color: var(--accent); }
.group-header h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.1px; }
.group-desc { padding: 0 16px 4px; font-size: 12px; color: var(--muted); }
.sub-header { padding: 10px 16px 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }

/* MenuItem */
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  transition: background-color 0.12s ease;
}
a.row:active, button.row:active { background: rgba(var(--accent-rgb), 0.08); }
.row > .ms { color: var(--muted); font-size: 22px; align-self: flex-start; margin-top: 1px; }
.row-text { flex: 1; min-width: 0; }
.row-label { font-size: 15px; color: var(--on); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--on-dim); }
.chevron { font-size: 14px !important; color: rgba(197, 199, 203, 0.35) !important; align-self: center !important; margin: 0 !important; }

/* _LinkTile / _AuthorTile */
.tile-row { gap: 14px; }
.tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}
.tile .ms { font-size: 22px; color: inherit; margin: 0; align-self: center; }
.tile svg { width: 21px; height: 21px; }
.tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.tile.photo { border: 1px solid var(--tile-border, transparent); background: none; }
.tile-label { display: block; font-size: 15px; font-weight: 600; color: var(--on); }
.tile-sub { display: block; margin-top: 2px; font-size: 12px; color: rgba(197, 199, 203, 0.7); }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1.6;
}
.chip-accent { background: rgba(var(--accent-rgb), 0.14); color: var(--accent-text); }
.chip-orange { background: rgba(255, 152, 0, 0.15); color: var(--orange); border: 1px solid rgba(255, 152, 0, 0.35); }
.chip-amber  { background: rgba(242, 169, 59, 0.14); color: var(--amber); }
.chip-gray   { background: rgba(255, 255, 255, 0.06); color: var(--secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
}
.btn .ms { font-size: 20px; }
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-glass { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--on); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; gap: 6px; }
.btn-sm .ms { font-size: 17px; }
.size { font-weight: 500; opacity: 0.7; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}
.text-link .ms { font-size: 15px; }
.text-link:hover { text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding-top: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2.4px;
}
.hero-download { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* Version chip with the beta mark inside it, as in the app's About. */
.version-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 7, 0.45);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.version-badge b { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: #FFC107; }
.hero-tagline {
  margin: 20px 0 0;
  max-width: 460px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-var);
}
.hero-actions { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--on-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ms { font-size: 17px; color: var(--muted); }

.overview-glance { margin-top: 12px; }
.overview-features-link { margin: 4px 16px 10px; }

/* Takes the hero's right column: the About screen's warning card. */
.notice {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 152, 0, 0.25);
  background: rgba(255, 152, 0, 0.06);
}
.notice-head { display: flex; align-items: center; gap: 10px; }
.notice-head .ms { color: var(--orange); font-size: 22px; }
.notice-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.notice p { margin: 12px 0 16px; font-size: 15px; line-height: 1.6; color: var(--on-var); }

/* ── Features ───────────────────────────────────────────────────────────── */

.feature-grid { columns: 3 320px; column-gap: 16px; }
.feature-grid .group { margin-bottom: 16px; break-inside: avoid; }
.row-credit { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.row-credit .ms { font-size: 14px; color: var(--accent-text); line-height: 1.4; }
.row-credit a { color: var(--on-var); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 2px; }
.row-credit a:hover { color: var(--accent-text); text-decoration-color: currentColor; }

/* ── Articles ───────────────────────────────────────────────────────────── */

.article-list { display: grid; gap: 16px; max-width: 820px; }
.article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.article-card:hover { border-color: rgba(var(--accent-rgb), 0.55); transform: translateY(-2px); }
.article-card h3 { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: var(--on); }
.article-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--on-var); }
.article-card .text-link { margin-top: 6px; }
.article-card .caps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-text);
}
.article-card .caps .ms { font-size: 16px; }
/* On Overview: between the hero and "About Glaze", tinted like the release card. */
.article-card.latest {
  margin-top: 12px;
  border-color: rgba(var(--accent-rgb), 0.45);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    rgba(var(--ui-rgb), var(--el-opacity));
}
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.article-author { display: inline-flex; align-items: center; gap: 8px; color: var(--on); font-weight: 600; }
.article-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(var(--accent-rgb), 0.6);
}
a.article-author:hover span { color: var(--accent-text); }
.article .article-author img { width: 34px; height: 34px; }

.article-page { max-width: 820px; }
.article-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-back { display: inline-flex; }
.article-share { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.article-share .ms { font-size: 18px; }
.article { padding: 28px 32px 32px; }
.article h1 { margin: 12px 0 0; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.8px; }
.article-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.article-note .ms { font-size: 16px; }
.article-status { margin: 20px 0 0; color: var(--on-dim); }
.article-status.warn { color: var(--amber); }

/* Rendered Markdown */
.article-body { margin-top: 22px; font-size: 16px; line-height: 1.7; color: var(--on-var); }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 14px; }
.article-body h3 { margin: 32px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: var(--on); }
.article-body h4 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; color: var(--on); }
.article-body strong { color: var(--on); font-weight: 700; }
.article-body a { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), 0.45); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin: 6px 0; padding-left: 4px; }
.article-body ul li::marker { color: var(--accent); }
.article-body blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--accent-rgb), 0.08);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

/* A release's files next to its article: a sticky column on the right on
   desktop, a card under the article below that. */
.article-page.has-aside { max-width: var(--container); }
.article-layout { display: grid; gap: 16px; align-items: start; }
.has-aside .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.article-download {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  padding: 0 0 14px;
}
.article-download .group-header { padding: 16px 16px 6px; }
.article-download .group-header h3 { font-size: 16px; }
.dl-rows { display: flex; flex-direction: column; }
.dl-row { padding: 10px 16px; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-row .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dl-row .tile { width: 30px; height: 30px; border-radius: 9px; }
.dl-row .tile .ms { font-size: 18px; }
.dl-row .dl-actions .btn { flex: 1 1 auto; justify-content: center; }
.article-download-all { display: inline-flex; margin: 8px 16px 0; }

@media (max-width: 1060px) {
  .has-aside .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-page.has-aside { max-width: 820px; }
  .article-download { position: static; }
}

/* ── Screenshots ────────────────────────────────────────────────────────── */

.shots-group { margin-bottom: 28px; }
.shots-group .group-header { padding: 0 0 12px; }
.shots-grid { display: grid; gap: 16px; }
.shots.phone .shots-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shots.desktop .shots-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot-img {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(var(--ui-rgb), var(--el-opacity));
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shots.phone .shot-img { aspect-ratio: 1236 / 2745; border-radius: 20px; }
.shots.desktop .shot-img { aspect-ratio: 16 / 10; }
.shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-img:hover { border-color: rgba(var(--accent-rgb), 0.6); transform: translateY(-2px); }
.shot figcaption { padding: 0 4px; }

/* Full-screen viewer */
body.viewer-open { overflow: hidden; }
.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(10, 10, 11, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: viewer-in 0.18s ease;
}
.viewer[hidden] { display: none; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-body { margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.viewer-body img { max-width: 100%; min-height: 0; flex: 0 1 auto; max-height: calc(100% - 64px); object-fit: contain; border-radius: 14px; border: 1px solid var(--line); }
.viewer.phone .viewer-body img { border-radius: 24px; }
.viewer-body figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 640px; text-align: center; }
.viewer-body figcaption b { font-size: 16px; }
.viewer-body figcaption span { font-size: 13px; line-height: 1.5; color: var(--on-dim); }
.viewer-body figcaption small { margin-top: 2px; font-size: 12px; color: var(--muted); }
.viewer-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--ui-rgb), 0.8);
  color: var(--on);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.viewer-btn:hover { background: rgba(var(--accent-rgb), 0.78); color: #fff; }
.viewer-close { position: absolute; top: 16px; right: 16px; }

/* ── Download ───────────────────────────────────────────────────────────── */

.download-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* The persona card from the app's desktop sidebar, here holding the release. */
.release-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.7);
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(160deg, #3F6F90 0%, #2B3546 45%, #3A1220 100%);
}
.release-card .caps {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.release-card .big-logo {
  flex: 1;
  min-height: 120px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.26);
  -webkit-mask: url('img/glaze.svg') center / 92px no-repeat;
  mask: url('img/glaze.svg') center / 92px no-repeat;
}
.release-card .card-version { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.release-card .card-date { font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.release-card .card-links { display: flex; gap: 16px; margin-top: 16px; }
.release-card .text-link { color: #fff; opacity: 0.85; }
.release-card.nightly {
  border-color: rgba(255, 193, 7, 0.55);
  background: linear-gradient(160deg, #6A4C14 0%, #2B3546 50%, #22202A 100%);
}
.release-card code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; }
.channel-switch { display: inline-flex; margin: 0 0 20px; }
.nightly-notice { margin-bottom: 16px; padding: 18px 20px; }
.nightly-notice .notice-head .ms { color: #FFC107; }
.nightly-notice p { margin: 8px 0 0; font-size: 13px; }
.release-card .dl-status { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.release-card .dl-status.warn { color: var(--amber); }

/* Install hints, each carrying its platform's files. */
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.install-card { display: flex; flex-direction: column; padding: 16px 16px 18px; }
.install-card .head { display: flex; align-items: center; gap: 12px; }
.install-card p { flex: 1; margin: 12px 0 16px; font-size: 13px; line-height: 1.55; color: var(--on-dim); }
.dl-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Roadmap ────────────────────────────────────────────────────────────── */

.roadmap-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.roadmap-aside { position: sticky; top: calc(var(--topbar-h) + 32px); }
.roadmap-stats { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dim); }
.roadmap-stats .ms { font-size: 18px; color: var(--muted); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.release { position: relative; margin-bottom: 12px; scroll-margin-top: calc(var(--topbar-h) + 24px); }
.release-node {
  position: absolute;
  left: -30px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid #4A4B4D;
}
.release.latest .release-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.release.dev .release-node { border-color: var(--amber); }
.release.dev .release-node::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}
.release.planned .release-node { border-style: dashed; border-color: var(--secondary); }
.release.planned .group { border-style: dashed; background: rgba(var(--ui-rgb), 0.45); }
@keyframes pulse { 50% { opacity: 0.3; } }
.release.flash .group { animation: flash 1.2s ease; }
@keyframes flash { 30% { border-color: rgba(var(--accent-rgb), 0.8); } }

/* MenuCollapsibleSection */
.release-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: 20px 20px 0 0;
}
.release.open:not(.planned) .release-head { background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0)); }
.release.dev.open .release-head { background: linear-gradient(to bottom, rgba(242, 169, 59, 0.15), rgba(242, 169, 59, 0)); }
.release-title { flex: 1; min-width: 0; }
.release-version { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.release-version b { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.release-name { margin-top: 2px; font-size: 14px; color: var(--on-var); }
.release:not(.open) .release-name { color: var(--on-dim); }
.release-date { font-size: 12px; color: var(--secondary); white-space: nowrap; }
.release-head .arrow { color: var(--on-var); transition: transform 0.15s ease, color 0.15s ease; }
.release.open .release-head .arrow { transform: rotate(180deg); color: var(--accent); }
.release.dev.open .release-head .arrow { color: var(--amber); }
.release-body { display: none; padding: 2px 0 12px; }
.release.open .release-body, .release.planned .release-body { display: block; }
.release-body .text-link { margin: 8px 16px 0; }
.bullets { list-style: none; margin: 0; padding: 0 16px; }
.bullets li { position: relative; padding: 4px 0 4px 16px; font-size: 14px; line-height: 1.55; color: var(--on-var); }
.bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.85);
}
.release.planned .bullets li::before { background: var(--secondary); }
.date-inline { display: none; color: var(--secondary); }

/* ── About ──────────────────────────────────────────────────────────────── */

.tile-label .chip { margin-left: 8px; vertical-align: 1px; }

/* Testers: collapsed by default, like a roadmap release. */
.testers-head { width: 100%; padding-bottom: 16px; text-align: left; color: inherit; }
.testers-count { padding: 1px 8px; border-radius: 999px; background: rgba(255, 215, 0, 0.12); color: var(--gold); font-size: 12px; font-weight: 700; }
.testers-head .ms:first-child { color: var(--gold); }
.testers-head .arrow { margin-left: auto; color: var(--on-var); transition: transform 0.2s ease; }
.testers.open .testers-head .arrow { transform: rotate(180deg); }
.testers-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.testers.open .testers-body { grid-template-rows: 1fr; }
.testers-body > div { overflow: hidden; }
.tester-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.tester { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--on-var); }

.link-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.link-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    rgba(var(--ui-rgb), var(--el-opacity));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.link-card:hover { border-color: color-mix(in srgb, var(--brand) 60%, transparent); transform: translateY(-2px); }
.link-card .tile { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.link-card .tile svg { width: 26px; height: 26px; }
.link-card .tile .ms { font-size: 26px; }
.link-card-label { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--on); }
.link-card-sub { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--on-dim); flex: 1; }
.link-card-host { display: flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--brand); }
.link-card-host .ms { font-size: 16px; transition: transform 0.2s ease; }
.link-card:hover .link-card-host .ms { transform: translate(2px, -2px); }
.about-grid { columns: 2 380px; column-gap: 16px; }
.about-grid .group { margin-bottom: 16px; break-inside: avoid; }
.prose { padding: 4px 16px 12px; }
.prose p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--on-var); }
.prose p:last-child { margin-bottom: 0; }
.overview-about { margin-top: 12px; }
/* Desktop: the latest article and About Glaze side by side, equal height. */
.overview-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: stretch; }
.overview-row > .group { margin-top: 0; }
.overview-row .overview-about .prose { display: block; }
@media (max-width: 900px) { .overview-row { grid-template-columns: 1fr; } }
/* Full width on Overview: the two paragraphs sit side by side. */
.overview-about .prose { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 32px; }
.overview-about .prose p { margin: 0 0 10px; }
.about-head { padding: 0 16px; margin: 0 0 12px; }
.about-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.1px; }
.about-resources { margin-top: 8px; margin-bottom: 28px; }
.about-people { margin-bottom: 28px; }
.about-credits { margin-bottom: 0; }
.about-credits .group { padding-top: 6px; }
.credits .sub-header { padding-top: 14px; }
.credits-list .tile { color: var(--accent); }
.credits-list a.with-credit { gap: 14px; }
.about-resources .link-grid { margin-bottom: 0; }


/* ── Responsive ─────────────────────────────────────────────────────────── */

.nav-bar { display: none; }

@media (max-width: 1060px) {
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid .link-card:first-child { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 52px; }
  .download-grid { grid-template-columns: 1fr; }
  .release-card { min-height: 0; }
  .release-card .big-logo { display: none; }
  .release-card .card-version { margin-top: 12px; }
  .roadmap-grid { grid-template-columns: 1fr; gap: 0; }
  .roadmap-aside { position: static; }
  .roadmap-stats { margin: -12px 0 24px; }
}

@media (max-width: 900px) {
  .link-grid { grid-template-columns: 1fr; gap: 12px; }
  .link-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; }
  .link-card .tile { grid-row: span 3; }
  .link-card-label { margin-top: 0; }
  .link-card-host { margin-top: 8px; }
  .topbar .tab-bar { display: none; }
  .topbar { background: rgba(var(--ui-rgb), 0.72); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .topbar-inner { height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .container { padding: 0 16px; }
  .section, .hero { padding-top: 20px; min-height: 0; }
  .section-head h2 { font-size: 28px; letter-spacing: -0.6px; }

  /* GlassNavBar */
  .nav-bar {
    display: flex;
    justify-content: space-around;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 30;
    max-width: 560px;
    margin: 0 auto;
    padding: 7px 4px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(var(--ui-rgb), var(--el-opacity));
    -webkit-backdrop-filter: blur(var(--el-blur));
    backdrop-filter: blur(var(--el-blur));
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    color: var(--secondary);
    transition: color 0.125s ease-in-out;
  }
  .nav-item .ms { font-size: 28px; }
  .nav-item span:last-child { font-size: 10px; font-weight: 500; white-space: nowrap; }
  .nav-item.active { color: var(--accent); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 44px; letter-spacing: -1.6px; }
  .hero-tagline { font-size: 17px; }
  .install-grid { grid-template-columns: 1fr; }
  .article { padding: 20px 18px 24px; }
  .article h1 { font-size: 28px; }
  .article-body { font-size: 15px; }
  .shots.phone .shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shots.desktop .shots-grid { grid-template-columns: 1fr; }
  .viewer { grid-template-columns: minmax(0, 1fr); padding: 56px 12px 84px; }
  .viewer-prev, .viewer-next { position: absolute; bottom: 20px; }
  .viewer-prev { left: calc(50% - 56px); }
  .viewer-next { right: calc(50% - 56px); }
  .release-date { display: none; }
  .date-inline { display: inline; }
  .timeline { padding-left: 26px; }
  .release-node { left: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
