/* YonSeGram landing.
   The page lives in the app icon's violet: a poster hero, then white cards that each carry a
   small live scene of the app's own UI, with two colour panels for rhythm (peach for the
   channel feed, ink for plugins). Single look on purpose; the brand has no light/dark split.
   Radii: panels 28, cards 26, vignettes 18, UI sheets 16, buttons 14 (small 12), chips 10-12. */

:root {
  color-scheme: dark;

  --field: #3a22a6;
  --field-hi: #6d45f4;
  --field-mid: #4f2ed0;
  --field-lo: #301c94;
  --on-field: #ffffff;
  --on-field-2: #ddd5ff;
  --on-field-3: #b4a8ef;

  --card: #fdfcff;
  --card-ink: #170d45;
  --card-sub: #5a5384;

  --vig: #f1edff;
  --vig-line: #e6e0fa;
  --ui-text: #1d1640;
  --ui-sub: #655e8c;
  --ui-violet: #6a42f2;
  --ui-violet-2: #8f73ff;
  --ok: #117a3f;
  --bad: #cf3a3f;

  --ink: #140b3b;
  --ink-2: #1f1557;
  --peach: #fbe3c8;
  --peach-hi: #fff0de;
  --on-peach: #140b3b;
  --on-peach-2: #4a3d6e;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --r-panel: 28px;
  --r-card: 26px;
  --r-btn: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { background: var(--field); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--on-field);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[data-lang="en"] body:not(.i18n-ready) { visibility: hidden; }

::selection { background: rgba(251, 227, 200, 0.4); }

img { max-width: 100%; height: auto; display: block; }
/* Components below set their own display, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: currentColor; }

:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
/* Peach is invisible on white cards. */
.card:not(.dark) :focus-visible { outline-color: var(--ui-violet); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: var(--r-btn);
  background: #fff; color: var(--card-ink); font-weight: 600; text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(-160%);
}
.skip:focus-visible { opacity: 1; pointer-events: auto; transform: none; outline-color: var(--ui-violet); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------------------------ plane */

.pl-keel { fill: var(--pl-keel, #8668f8); stroke: var(--pl-keel, #8668f8); stroke-width: 6; stroke-linejoin: round; }
.pl-fold { fill: var(--pl-fold, #957bfc); stroke: var(--pl-fold, #957bfc); stroke-width: 6; stroke-linejoin: round; }
.pl-body { fill: var(--pl-body, #fefcfe); stroke: var(--pl-body, #fefcfe); stroke-width: 8; stroke-linejoin: round; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              box-shadow 0.35s var(--ease-out), scale 0.18s var(--ease-out);
}
.btn:active { scale: 0.98; }
.btn-primary {
  background: var(--peach);
  color: var(--on-peach);
  padding-left: 16px;
}
.btn-primary:hover { background: var(--peach-hi); }
.btn-ghost { color: var(--on-field); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost .ico { width: 18px; height: 18px; }
.btn-sm { height: 40px; padding: 0 14px 0 11px; border-radius: 12px; font-size: 14.5px; gap: 8px; box-shadow: none; }
.btn-lg { height: 58px; padding: 0 28px 0 20px; font-size: 17px; }

.btn-plane-slot { display: block; flex: none; width: 26px; height: 25px; }
.btn-sm .btn-plane-slot { width: 21px; height: 20px; }
.btn-plane { display: block; width: 100%; height: 100%; --pl-keel: #4b2dc4; --pl-fold: #6a42f2; --pl-body: #140b3b; overflow: visible; }

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

.nav {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(12px, 2.2vw, 24px);
  border: 1px solid transparent;
  border-radius: 20px;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(44, 24, 138, 0.74);
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.nav-links a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, 0.9); transition: color 0.3s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; }
.lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2);
  border-radius: 9px; background: rgba(255, 255, 255, 0.18); transition: transform 0.35s var(--ease-out);
}
html[data-lang="en"] .lang::before { transform: translateX(100%); }
.lang button {
  position: relative; appearance: none; border: 0; background: transparent; color: rgba(255, 255, 255, 0.88);
  font: 600 12.5px/1 var(--font-body); letter-spacing: 0.04em;
  height: 32px; min-width: 38px; border-radius: 9px; cursor: pointer; transition: color 0.3s var(--ease-out);
}
.lang button:hover, .lang button[aria-pressed="true"] { color: #fff; }
@media (prefers-reduced-motion: reduce) { .lang::before { transition: none; } }
@media (max-width: 860px) { .nav-links { display: none; } }
/* Six links (with the Desktop page) leave no room for the wordmark between the phone layout and ~980px. */
@media (min-width: 861px) and (max-width: 980px) {
  .nav:has(.nav-links > a:nth-child(6)) .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 420px) {
  .nav { left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); }
  /* The logo alone stays; the name is kept for screen readers. */
  .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px;
  border-radius: var(--r-panel);
  min-height: calc(100svh - 24px);
  display: flex;
  align-items: center;
  padding-block: 112px 72px;
  color: #fff;
  background:
    radial-gradient(55% 65% at 76% 44%, rgba(168, 140, 255, 0.42), transparent 70%),
    linear-gradient(180deg, var(--field-hi) 0%, var(--field-mid) 52%, var(--field-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero-ribbon, .hero-flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-ribbon { z-index: -1; }
.hero-flight { z-index: 3; overflow: visible; }
#ribbon { fill: none; stroke: rgba(255, 255, 255, 0.085); stroke-linecap: round; stroke-linejoin: round; }
#trail { fill: none; stroke: rgba(230, 222, 255, 0.75); stroke-width: 2.5; stroke-linecap: round; }
.hero[data-flight="done"] .hero-flight, .hero:not([data-flight]) .hero-flight { display: none; }
.hero[data-flight="pending"] #ctaPlaneSlot .btn-plane { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero[data-flight="done"] #ctaPlaneSlot .btn-plane { animation: plane-dock 0.5s var(--ease-out); }
}
@keyframes plane-dock { from { opacity: 0.2; transform: scale(1.35) rotate(-8deg); } to { opacity: 1; transform: none; } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { container-type: inline-size; }
.hero-eyebrow { font-weight: 500; font-size: clamp(15px, 1.2vw, 17px); color: #f4f1ff; }
/* The wordmark measures 7.32em wide, so it is sized from its own column and never runs into the icon. */
.hero-title { margin-top: 16px; font: 700 clamp(48px, 8vw, 104px)/0.98 var(--font-display); font: 700 min(112px, calc(100cqi / 7.5))/0.98 var(--font-display); letter-spacing: -0.035em; padding-bottom: 0.04em; }
.hero-sub { margin-top: 26px; max-width: 34ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: #ece7ff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.cta-item { display: inline-flex; }
/* Phones lose the nav links, so the hero carries the way to the changelog there. */
.hero-news { display: none; }
@media (max-width: 860px) {
  .hero-news {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
    color: #ece7ff; font-weight: 600; font-size: 15.5px; text-decoration: underline;
    text-decoration-color: rgba(236, 231, 255, 0.4); text-underline-offset: 4px;
  }
  .hero-news:hover { color: #fff; text-decoration-color: currentColor; }
  .hero-news .ico { width: 16px; height: 16px; }
}
@media (max-width: 480px) { .hero-news { display: flex; justify-content: center; } }
/* Wide screens are where the desktop version is wanted; phones keep the changelog link. */
.hero-desk {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  color: #ece7ff; font-weight: 600; font-size: 16px; text-decoration: underline;
  text-decoration-color: rgba(236, 231, 255, 0.4); text-underline-offset: 4px;
}
.hero-desk:hover { color: #fff; text-decoration-color: currentColor; }
.hero-desk .ico { width: 16px; height: 16px; }
@media (max-width: 860px) { .hero-desk { display: none; } }
.hero-art { display: grid; place-items: center; }
.logo-wrap { width: clamp(200px, 27vw, 360px); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.noanim) .logo-wrap { animation: tile-in 1.2s var(--ease-out) 0.35s both; }
}
@keyframes tile-in { from { opacity: 0; transform: translateY(28px) scale(0.92) rotate(-5deg); } }
.logo-tile {
  position: relative; aspect-ratio: 1; border-radius: 24%; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 60px 100px -40px rgba(16, 5, 60, 0.85), 0 24px 48px -22px rgba(16, 5, 60, 0.7);
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.logo-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 38%);
}
@media (max-width: 900px) {
  /* The copy sits under the glow in one column, so the glow moves behind the icon. */
  .hero {
    padding-block: 104px 56px;
    background:
      radial-gradient(60% 34% at 22% 16%, rgba(168, 140, 255, 0.36), transparent 70%),
      linear-gradient(180deg, var(--field-hi) 0%, var(--field-mid) 52%, var(--field-lo) 100%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; justify-items: start; }
  .logo-wrap { width: clamp(112px, 30vw, 168px); }
  .hero-title { margin-top: 12px; }
}
@media (max-width: 480px) {
  .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cta-item, .cta-item .btn { width: 100%; }
}
@media (max-width: 420px) { .hero { margin: 8px; border-radius: 22px; min-height: calc(100svh - 16px); } }

/* ------------------------------------------------------------------ strip */

.strip {
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.strip-track { --ym-marquee-gap: 10px; display: flex; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); color: #f1edff;
  font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap;
}

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

.sec { padding-block: clamp(80px, 10vw, 136px); }
.sec + .sec { padding-top: clamp(24px, 4vw, 48px); }

.sec-head { max-width: 820px; }
.sec-head h2, .feed h2, .get h2, .st-copy h2 {
  font: 700 clamp(34px, 5.2vw, 70px)/1.02 var(--font-display);
  letter-spacing: -0.045em;
}
.hl { color: var(--peach); }
.intro { margin-top: 22px; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.6; color: var(--on-field-2); }

.chip {
  display: inline-flex; align-items: center; margin-bottom: 22px; padding: 8px 12px;
  border-radius: 10px; background: var(--peach); color: var(--on-peach);
  font-weight: 700; font-size: 13.5px; line-height: 1;
}

.panel { margin: clamp(24px, 4vw, 48px) 12px; border-radius: var(--r-panel); padding-block: clamp(72px, 9vw, 120px); }
.panel-peach { background: var(--peach); color: var(--on-peach); }
.panel-ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
@media (max-width: 420px) { .panel { margin-inline: 8px; border-radius: 22px; } }

/* ------------------------------------------------------------------ grid */

.grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.s3 { grid-column: span 3; }
.s4 { grid-column: span 4; }
.s5 { grid-column: span 5; }
.s6 { grid-column: span 6; }
.s7 { grid-column: span 7; }
.s12 { grid-column: span 12; }
@media (max-width: 1024px) {
  .s3, .s4, .s5, .s6, .s7 { grid-column: span 6; }
  .grid > .card:last-child:nth-child(odd) { grid-column: span 12; }
}
@media (max-width: 680px) {
  .grid > .card, .grid > .card:last-child:nth-child(odd) { grid-column: span 12; }
}

.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 12px 26px;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--card-ink);
  box-shadow: 0 30px 60px -36px rgba(10, 3, 50, 0.7), inset 0 -1px 0 rgba(23, 13, 69, 0.06);
}
.card-body { display: grid; align-content: start; gap: 8px; padding: 0 12px; }
/* Scene on one subgrid row, text on the next: scenes in a row share one height, so the
   card titles line up whatever the scene or the text length. Older browsers keep the flex column. */
@supports (grid-template-rows: subgrid) {
  .grid > .card:has(> .vig + .card-body:last-child) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 18px; }
}
.card h3 { font: 700 19.5px/1.25 var(--font-body); letter-spacing: -0.01em; }
.card p { color: var(--card-sub); font-size: 15.5px; line-height: 1.55; }

.card.dark {
  padding: 26px;
  background: var(--ink-2);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  gap: 10px;
}
.card.dark p { color: #c9bff5; }

/* The rest of a section's features: a plain list in columns, read like a spec sheet. */
.more {
  columns: 3 220px; column-gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 40px); padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.more li { padding: 7px 0; break-inside: avoid; color: #f3efff; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.more .brand { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
/* On phones the columns become one, so the list turns into settings-style rows, and a long one
   folds after six rows (site.js adds .is-folded and shows the button). The desktop page's QoL
   index folds the same way at every width. */
.more-toggle {
  display: none; align-items: center; gap: 6px; width: 100%; padding: 13px 0 12px;
  appearance: none; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--peach); font: 600 15px/1.35 var(--font-body); text-align: left; cursor: pointer;
}
.more-toggle .ico { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 0.3s var(--ease-out); }
.more-toggle[aria-expanded="true"] .ico { transform: rotate(-90deg); }
.more-toggle[aria-expanded="true"] .more-open, .more-toggle[aria-expanded="false"] .more-close { display: none; }
.qol .more.is-folded > li:nth-child(n+7) { display: none; }
.qol .more-toggle:not([hidden]) { display: flex; }
@media (max-width: 600px) {
  .more { columns: auto; padding-top: 0; border-top: 0; }
  .more li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; line-height: 1.35; }
  .more.is-folded > li:nth-child(n+7) { display: none; }
  .more-toggle:not([hidden]) { display: flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .qol .more.is-foldable:not(.is-folded) > li:nth-child(n+7) { animation: more-in 0.45s var(--ease-out) both; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .more.is-foldable:not(.is-folded) > li:nth-child(n+7) { animation: more-in 0.45s var(--ease-out) both; }
}
@keyframes more-in { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================== vignettes
   Small scenes of the app's UI. Static by default (a meaningful frame); the
   loops run only while the card is on screen (.is-live, set by site.js), and
   never under reduced motion. */

.vig {
  position: relative;
  flex: 1 1 auto;
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--vig);
  color: var(--ui-text);
  font-size: 13.5px;
  overflow: hidden;
}
.vig > * { max-width: 100%; }

.ui-sheet {
  width: min(100%, 380px);
  padding: 4px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 13, 69, 0.06), 0 14px 30px -18px rgba(23, 13, 69, 0.35);
}
.ui-sheet.slim { padding-block: 0; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--vig-line); }
.ui-row:last-child { border-bottom: 0; }
.ui-row > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.ui-row svg { width: 16px; height: 16px; color: var(--ui-violet); flex: none; }
.ui-cap { font-size: 12px; font-weight: 600; color: var(--ui-violet); padding: 10px 0 2px; letter-spacing: 0.01em; justify-self: center; }
.ui-sheet .ui-cap { justify-self: start; }
.ui-title { display: flex; align-items: center; gap: 8px; padding: 10px 0 4px; font-weight: 700; font-size: 15px; }
.ui-title svg { width: 18px; height: 18px; color: var(--ui-violet); }

.ui-switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: #d8d2ee; transition: background-color 0.3s; }
.ui-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--ease-out); }
.ui-switch.on { background: var(--ui-violet); }
.ui-switch.on::after { transform: translateX(14px); }
.ui-radio { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b9b0dd; }
.ui-radio.on { border-color: var(--ui-violet); }
.ui-radio.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ui-violet); }
.ui-btn { display: flex; justify-content: center; margin: 10px 0 8px; padding: 10px 14px; border-radius: 10px; background: var(--ui-violet); color: #fff; font-weight: 600; font-size: 13px; }
.ui-btn.danger { background: var(--bad); }

.seg { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e9e3fb; font-size: 12px; font-weight: 600; color: var(--ui-sub); width: min(100%, 380px); }
.seg > span { position: relative; z-index: 1; flex: 1; text-align: center; padding: 8px 6px; border-radius: 8px; white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.seg > span.on { background: #fff; color: var(--ui-violet); box-shadow: 0 1px 3px rgba(23, 13, 69, 0.12); }
.seg.small { font-size: 11.5px; }

.ln { display: block; height: 8px; margin: 5px 0; border-radius: 4px; background: #d9d2f3; }
.ln.dim { background: #ebe6f9; }
.ln.center { margin-inline: auto; }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; }
.av { display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #c9bbff, #8f73ff); }

.skel-rows { display: grid; gap: 8px; width: min(100%, 360px); }
.skel-rows i { display: block; height: 42px; border-radius: 12px; background: #fff; opacity: 0.75; }

/* Proxy auto-switch */
.px { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -8px; padding: 9px 8px; border-radius: 10px; }
.px-text { min-width: 0; }
.px-text b { display: block; font-weight: 600; font-size: 14px; }
.px-st { position: relative; display: block; height: 18px; font-size: 12.5px; color: var(--ui-sub); }
.px-st > span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.px .st-b { opacity: 0; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.px-check { width: 22px; height: 22px; flex: none; color: var(--ui-violet); opacity: 0; }
.px-1 { background: var(--vig); }
.px-1 .px-check { opacity: 1; }
.vig-proxy .ui-sheet { padding-bottom: 8px; }

.live.is-live .px-1 { animation: px-row-1 6s infinite; }
.live.is-live .px-1 .st-a, .live.is-live .px-1 .px-check { animation: px-out 6s infinite; }
.live.is-live .px-1 .st-b { animation: px-in 6s infinite; }
.live.is-live .px-2 { animation: px-row-2 6s infinite; }
.live.is-live .px-2 .st-a { animation: px-out-2 6s infinite; }
.live.is-live .px-2 .st-b, .live.is-live .px-2 .px-check { animation: px-in-2 6s infinite; }
@keyframes px-row-1 { 0%, 40% { background: var(--vig); } 46%, 100% { background: transparent; } }
@keyframes px-out { 0%, 40% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes px-in { 0%, 40% { opacity: 0; } 45%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes px-row-2 { 0%, 50% { background: transparent; } 56%, 94% { background: var(--vig); } 100% { background: transparent; } }
@keyframes px-out-2 { 0%, 50% { opacity: 1; } 55%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes px-in-2 { 0%, 50% { opacity: 0; transform: scale(0.85); } 56%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* TLS greeting */
.tls-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 380px; }
.tls { padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--vig-line); font-weight: 600; font-size: 13px; color: var(--ui-sub); white-space: nowrap; }
.tls.t1 { background: var(--ui-violet); border-color: var(--ui-violet); color: #fff; }
.vig-tls .ui-sheet { width: min(100%, 260px); }
.live.is-live .tls { animation: tls-on 6s infinite; }
.live.is-live .t2 { animation-delay: 1.5s; }
.live.is-live .t3 { animation-delay: 3s; }
.live.is-live .t4 { animation-delay: 4.5s; }
@keyframes tls-on {
  0%, 22% { background: var(--ui-violet); border-color: var(--ui-violet); color: #fff; }
  27%, 100% { background: #fff; border-color: var(--vig-line); color: var(--ui-sub); }
}

/* WebSocket fallback */
.wss-ring { position: relative; width: 92px; height: 92px; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.wss-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.wss-ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.r-bg { stroke: #ddd6f6; }
.r-fg { stroke: var(--ok); stroke-dasharray: 169.7; stroke-dashoffset: 0; }
.wss-st { position: relative; width: 100%; height: 20px; font-weight: 600; text-align: center; }
.wss-st > span { position: absolute; inset: 0; white-space: nowrap; }
.ws-a { opacity: 0; color: var(--ui-sub); }
.ws-b { color: var(--ok); }
.live.is-live .r-fg { animation: wss-ring 5s infinite; }
.live.is-live .ws-a { animation: wss-a 5s infinite; }
.live.is-live .ws-b { animation: wss-b 5s infinite; }
@keyframes wss-ring { 0% { stroke-dashoffset: 169.7; stroke: var(--ui-violet); } 70% { stroke-dashoffset: 0; stroke: var(--ui-violet); } 74%, 100% { stroke-dashoffset: 0; stroke: var(--ok); } }
@keyframes wss-a { 0%, 70% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes wss-b { 0%, 70% { opacity: 0; transform: translateY(6px); } 76%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Calls: the Calls page's connection mode */
.vig-relay .ui-sheet { width: min(100%, 280px); }

/* Networks that turn the proxy off */
.nets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.net { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--vig-line); font-weight: 600; font-size: 13px; color: var(--ui-sub); }
.net svg { width: 16px; height: 16px; }
.net.n1 { background: var(--ui-violet); border-color: var(--ui-violet); color: #fff; }
.net-note { font-size: 12.5px; color: var(--ui-sub); }
.live.is-live .n1 { animation: net-on 5s infinite; }
.live.is-live .net-note { animation: net-note 5s infinite; }
@keyframes net-on { 0%, 25% { background: #fff; border-color: var(--vig-line); color: var(--ui-sub); } 32%, 100% { background: var(--ui-violet); border-color: var(--ui-violet); color: #fff; } }
@keyframes net-note { 0%, 32% { opacity: 0; transform: translateY(4px); } 40%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Clipboard */
.clip-field { width: min(100%, 340px); padding: 12px 14px; border-radius: 12px; background: #fff; font: 13px var(--font-mono); color: var(--ui-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-cursor { display: inline-block; width: 2px; height: 14px; margin-right: 6px; vertical-align: -2px; background: var(--ui-violet); }
.toast { display: flex; align-items: center; gap: 10px; width: min(100%, 340px); padding: 11px 12px; border-radius: 12px; background: var(--ui-text); color: #fff; font-size: 13px; box-shadow: 0 16px 30px -16px rgba(23, 13, 69, 0.6); }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--peach); }
.toast b { margin-left: auto; color: var(--peach); font-weight: 700; white-space: nowrap; }
.live.is-live .toast { animation: toast 5s infinite; }
.live.is-live .clip-cursor { animation: blink 1s steps(1) infinite; }
@keyframes toast { 0%, 18% { opacity: 0; transform: translateY(14px); } 26%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 50% { opacity: 0; } }

/* Header pills */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 360px); padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.appbar b { font-weight: 700; font-size: 16px; }
.pill-window { height: 30px; overflow: hidden; border-radius: 15px; }
.pill-track { display: flex; flex-direction: column; align-items: flex-end; }
.pill { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.pill svg { width: 15px; height: 15px; }
.p-proxy { background: #ece7ff; color: var(--ui-violet); }
.p-usd { background: #2e7d4f; }
.p-btc { background: #a8640f; }
.p-sol { background: #59578f; }
.p-ton { background: #2b6c84; }
.live.is-live .pill-track { animation: pills 10s var(--ease-out) infinite; }
@keyframes pills {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-30px); }
  40%, 56% { transform: translateY(-60px); }
  60%, 76% { transform: translateY(-90px); }
  80%, 96% { transform: translateY(-120px); }
  100% { transform: translateY(0); }
}

/* List density. The rows change padding, so the scene is sized up front and contained:
   their relayout stays inside it and never moves the cards around. */
.vig-density { min-height: 268px; contain: strict; }
.dens-list { width: min(100%, 400px); padding: 4px 14px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.dens-row { display: flex; align-items: center; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--vig-line); }
.dens-row:last-child { border-bottom: 0; }
.dens-row > span { flex: 1; }
.dens-ctl { display: flex; align-items: center; gap: 12px; width: min(100%, 400px); font-size: 12px; font-weight: 600; color: var(--ui-sub); }
.slider { position: relative; flex: 1; height: 4px; border-radius: 2px; background: #ddd6f6; }
.slider-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--ui-violet); transform-origin: left; transform: scaleX(0.5); }
/* A full-width layer carries the dot, so translateX percentages are fractions of the slider. */
.slider-thumb { position: absolute; top: 50%; left: 0; width: 100%; height: 0; transform: translateX(50%); }
.slider-thumb::after { content: ""; position: absolute; top: -8px; left: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ui-violet); box-shadow: 0 0 0 4px rgba(106, 66, 242, 0.18); }
.live.is-live .dens-row { animation: dens-row 5s ease-in-out infinite alternate; }
.live.is-live .dens-row .av { animation: dens-av 5s ease-in-out infinite alternate; }
.live.is-live .slider-fill { animation: dens-fill 5s ease-in-out infinite alternate; }
.live.is-live .slider-thumb { animation: dens-thumb 5s ease-in-out infinite alternate; }
@keyframes dens-row { from { padding-block: 4px; } to { padding-block: 15px; } }
@keyframes dens-av { from { transform: scale(0.8); } to { transform: scale(1.25); } }
@keyframes dens-fill { from { transform: scaleX(0.12); } to { transform: scaleX(0.9); } }
@keyframes dens-thumb { from { transform: translateX(12%); } to { transform: translateX(90%); } }

/* Calculator */
.composer { display: flex; align-items: center; gap: 10px; width: min(100%, 330px); padding: 8px 8px 8px 14px; border-radius: 26px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.cmp-ico { width: 22px; height: 22px; flex: none; color: var(--ui-sub); }
.calc-in { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; font: 500 15px var(--font-mono); }
.calc-typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 9ch; }
.calc-res { color: #a39dc2; white-space: nowrap; border-radius: 6px; }
.cmp-send { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ui-violet); color: #fff; }
.cmp-send svg { width: 18px; height: 18px; }
.live.is-live .calc-typed { animation: calc-type 5s steps(9, end) infinite; }
.live.is-live .calc-res { animation: calc-res 5s infinite; }
@keyframes calc-type { 0% { width: 0; } 40%, 100% { width: 9ch; } }
@keyframes calc-res { 0%, 44% { opacity: 0; } 50%, 72% { opacity: 1; background: transparent; } 78%, 94% { opacity: 1; background: #ece7ff; color: var(--ui-violet); } 100% { opacity: 0; } }

/* Delete my messages */
.vig-del .seg { margin: 4px 0 2px; }

/* Voice and transcript */
.voice { display: flex; align-items: center; gap: 10px; width: min(100%, 300px); padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.voice-play { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ui-violet); color: #fff; }
.voice-play svg { width: 16px; height: 16px; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { flex: 1; max-width: 4px; height: var(--h, 40%); border-radius: 2px; background: var(--ui-violet-2); }
.wave i:nth-child(3n) { --h: 80%; } .wave i:nth-child(3n + 1) { --h: 45%; } .wave i:nth-child(4n) { --h: 100%; } .wave i:nth-child(5n) { --h: 30%; }
.transcript { width: min(100%, 300px); padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.45; color: var(--ui-text); border-left: 3px solid var(--ui-violet); }
.live.is-live .wave i { animation: wave 1s ease-in-out infinite alternate; }
.live.is-live .wave i:nth-child(2n) { animation-delay: -0.4s; }
.live.is-live .wave i:nth-child(3n) { animation-delay: -0.7s; }
.live.is-live .transcript { animation: reveal-text 6s infinite; }
@keyframes wave { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
@keyframes reveal-text { 0%, 15% { clip-path: inset(0 100% 0 0); } 55%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }

/* Translation */
.bubble { width: min(100%, 340px); padding: 12px 14px; border-radius: 18px 18px 6px 18px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.tr-orig { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed #d9d2f3; font-size: 12.5px; color: var(--ui-sub); }
.tr-text { font-size: 15px; font-weight: 500; }
.tr-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--ui-violet); }
.tr-meta svg { width: 14px; height: 14px; }
.live.is-live .tr-text { animation: translate-in 5s infinite; }
@keyframes translate-in { 0%, 20% { opacity: 0; } 32%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Stories */
.stories { display: flex; justify-content: center; gap: 10px; height: 52px; }
.stories i { display: block; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #c9bbff, #8f73ff); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ui-violet); }
.live.is-live .stories i { animation: stories 5s var(--ease-out) infinite; }
.live.is-live .stories i:nth-child(2) { animation-delay: 0.06s; }
.live.is-live .stories i:nth-child(3) { animation-delay: 0.12s; }
.live.is-live .stories i:nth-child(4) { animation-delay: 0.18s; }
.live.is-live .stories i:nth-child(5) { animation-delay: 0.24s; }
.live.is-live .vig-stories .skel-rows { animation: stories-rows 5s var(--ease-out) infinite; }
@keyframes stories { 0%, 30% { opacity: 1; transform: none; } 42%, 86% { opacity: 0; transform: scale(0.3); } 100% { opacity: 1; transform: none; } }
@keyframes stories-rows { 0%, 32% { transform: none; } 46%, 86% { transform: translateY(-58px); } 100% { transform: none; } }

/* Video quality */
.seg-q > span { z-index: 2; }
.seg-q .q4 { color: var(--ui-violet); }
.seg-glider { position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 12px) / 4); border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(23, 13, 69, 0.12); transform: translateX(calc(300% + 6px)); }
.q-note { font-size: 12.5px; font-weight: 600; color: var(--ui-sub); }
.live.is-live .seg-glider { animation: glide 6s var(--ease-out) infinite; }
@keyframes glide {
  0%, 10% { transform: translateX(0); }
  22% { transform: translateX(calc(100% + 2px)); }
  34% { transform: translateX(calc(200% + 4px)); }
  46%, 100% { transform: translateX(calc(300% + 6px)); }
}

/* Originals */
.vig-orig { justify-items: end; align-content: center; }
.vig-orig > * { margin-right: max(0px, calc(50% - 130px)); }
.pop { display: grid; gap: 2px; min-width: 220px; padding: 6px; border-radius: 14px; background: #fff; font-size: 13.5px; transform-origin: bottom right; box-shadow: 0 14px 30px -14px rgba(23, 13, 69, 0.4); }
.pop > span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.pop > span:first-child { background: var(--vig); color: var(--ui-violet); font-weight: 700; }
.pop .muted { color: var(--ui-sub); }
.pop svg { width: 18px; height: 18px; }
.send-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ui-violet); color: #fff; }
.send-btn svg { width: 20px; height: 20px; }
.live.is-live .pop { animation: pop 5s var(--ease-out) infinite; }
.live.is-live .send-btn { animation: press 5s infinite; }
@keyframes pop { 0%, 22% { opacity: 0; transform: scale(0.85); } 30%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.9); } }
@keyframes press { 0%, 6% { transform: none; box-shadow: 0 0 0 0 rgba(106, 66, 242, 0.4); } 12%, 24% { transform: scale(0.9); box-shadow: 0 0 0 10px rgba(106, 66, 242, 0); } 30%, 100% { transform: none; } }

/* Downloads */
.vig-dl > * { width: min(100%, 360px); }
.vig-dl .ui-cap { width: auto; }
.dl-file { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #fff; }
.dl-file svg { width: 20px; height: 20px; flex: none; color: var(--ui-violet); }
.dl-bar { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: #e4def8; }
.dl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ui-violet), var(--ui-violet-2)); transform-origin: left; transform: scaleX(0.72); }
.live.is-live .dl-bar i { animation: dl 2.6s var(--ease-smooth) infinite; }
@keyframes dl { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }

/* Round video zoom: the camera closes in on the logo */
.round { width: 136px; height: 136px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 18px 34px -16px rgba(23, 13, 69, 0.5); }
/* An abstract dusk scene: sun, two hills, sky. Zooming into it reads as a camera zoom. */
.round-img {
  display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 46%;
  background:
    radial-gradient(120% 60% at 20% 100%, #3f24ac 0 48%, transparent 49%),
    radial-gradient(110% 55% at 85% 100%, #6a42f2 0 50%, transparent 51%),
    radial-gradient(circle at 50% 52%, #fff4e6 0 12%, #fbe3c8 13% 16%, transparent 17%),
    linear-gradient(180deg, #8f73ff 0%, #c9bbff 55%, #fbe3c8 100%);
}
.zoom { display: flex; gap: 6px; }
.zoom span { padding: 7px 11px; border-radius: 10px; background: #fff; font-weight: 700; font-size: 12px; color: var(--ui-sub); }
.zoom .z1 { background: var(--ui-text); color: #fff; }
.live.is-live .round-img { animation: zoom-img 7.5s var(--ease-out) infinite; }
.live.is-live .zoom span { animation: zoom-on 7.5s infinite; }
.live.is-live .zoom .z2 { animation-delay: 2.5s; }
.live.is-live .zoom .z3 { animation-delay: 5s; }
@keyframes zoom-img { 0%, 28% { transform: scale(1); } 34%, 61% { transform: scale(1.4); } 67%, 94% { transform: scale(2); } 100% { transform: scale(1); } }
@keyframes zoom-on { 0%, 30% { background: var(--ui-text); color: #fff; } 34%, 100% { background: #fff; color: var(--ui-sub); } }

/* Player */
.player { display: flex; align-items: center; gap: 14px; width: min(100%, 400px); padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
/* Deltarune Chapter 5 cover and an excerpt from Cutie Mew Mew Magic. */
.cover { display: block; flex: none; width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: #000; }
.track { flex: 1; min-width: 0; display: grid; gap: 2px; }
.track b { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track > span { font-size: 12.5px; color: var(--ui-sub); }
.lyrics { display: grid; gap: 2px; margin-top: 8px; }
.ly { display: block; color: var(--ui-sub); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .cover { width: 64px; height: 64px; } }
.l1 { color: var(--ui-violet); }
.player-ctl { display: flex; align-items: center; gap: 12px; width: min(100%, 400px); }
.player-ctl > svg { width: 22px; height: 22px; color: var(--ui-violet); }
.prog { flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: #e4def8; }
.prog i { display: block; height: 100%; background: var(--ui-violet); transform-origin: left; transform: scaleX(0.42); }
.sleep { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--ui-text); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sleep svg { width: 14px; height: 14px; color: var(--peach); }
.live.is-live .ly { animation: lyric 6s infinite; }
.live.is-live .l2 { animation-delay: 2s; }
.live.is-live .l3 { animation-delay: 4s; }
.live.is-live .prog i { animation: prog 6s linear infinite; }
@keyframes lyric { 0%, 30% { color: var(--ui-violet); } 34%, 100% { color: var(--ui-sub); } }
@keyframes prog { from { transform: scaleX(0.05); } to { transform: scaleX(1); } }

/* Locks */
.vig-lock { grid-template-columns: auto minmax(0, 1fr); gap: 20px; justify-items: stretch; }
.fp { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--ui-violet); box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.fp svg { width: 46px; height: 46px; }
@media (max-width: 1024px) { .vig-lock { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

/* Number mask */
.prof { display: grid; justify-items: center; gap: 6px; width: min(100%, 280px); padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.prof-av { display: block; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #fbe3c8, #8f73ff); margin-bottom: 4px; }
.prof .ln { width: 45%; }
.prof-num { position: relative; width: 100%; height: 18px; font-size: 13px; font-weight: 600; color: var(--ui-sub); text-align: center; }
.prof-num > span { position: absolute; inset: 0; }
.pn-b { opacity: 0; color: var(--ui-violet); }
.vig-mask .seg { width: min(100%, 300px); }
.live.is-live .pn-a { animation: px-out 6s infinite; }
.live.is-live .pn-b { animation: px-in 6s infinite; }
.live.is-live .vig-mask .seg span:nth-child(1) { animation: seg-a 6s infinite; }
.live.is-live .vig-mask .seg span:nth-child(3) { animation: seg-b 6s infinite; }
@keyframes seg-a { 0%, 40% { background: #fff; color: var(--ui-violet); } 45%, 100% { background: transparent; color: var(--ui-sub); } }
@keyframes seg-b { 0%, 40% { background: transparent; color: var(--ui-sub); } 45%, 94% { background: #fff; color: var(--ui-violet); } 100% { background: transparent; color: var(--ui-sub); } }

/* Quiet notifications */
.notif { display: flex; align-items: center; gap: 12px; width: min(100%, 300px); padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.notif-av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--vig-line); }
.notif-text { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 13px; line-height: 1.35; }
.notif-text b { font-size: 13.5px; }
.notif-text span { color: var(--ui-sub); }
.notif svg { flex: none; width: 20px; height: 20px; color: var(--ui-sub); }

/* Location */
.photo { position: relative; width: 170px; height: 104px; border-radius: 12px; background: linear-gradient(180deg, #c9bbff 0 45%, #8f73ff 45% 60%, #4a2bc4 60%); }
.geo-pin { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--bad); }
.geo-pin svg { width: 16px; height: 16px; }
.geo-pin::after { content: ""; position: absolute; width: 2px; height: 24px; border-radius: 1px; background: var(--bad); transform: rotate(45deg); }
.vig-geo .ui-sheet { width: min(100%, 280px); }

/* Consent */
.vig-consent .ui-sheet { width: min(100%, 300px); padding-bottom: 12px; }
.consent-text { margin: 6px 0 12px; color: var(--ui-sub); font-size: 13px; line-height: 1.45; }
.consent-btns { display: flex; justify-content: flex-end; gap: 6px; font-weight: 700; font-size: 13px; }
.consent-btns span { padding: 8px 12px; border-radius: 10px; color: var(--ui-violet); }
.consent-btns .on { background: var(--ui-violet); color: #fff; }
.live.is-live .consent-btns .on { animation: press 4s infinite; }

/* Crash report */
.vig-crash .ui-sheet { width: min(100%, 300px); padding-bottom: 4px; }

/* Protection level: the sheet that lists every change, area by area, before it applies */
.vig-level .ui-sheet { width: min(100%, 400px); padding-bottom: 4px; }
.lvl-text { margin: 0 0 4px; color: var(--ui-sub); font-size: 13px; line-height: 1.45; }
.lvl-area { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--vig-line); font-size: 13px; line-height: 1.4; }
.lvl-area b { font-size: 12px; font-weight: 600; color: var(--ui-violet); }

/* Your activity and the duress code: plain settings pages */
.vig-activity .ui-sheet, .vig-panic .ui-sheet { width: min(100%, 320px); }

/* Links: the tracking part of a pasted link goes, the bulletin offers Undo */
.vig-links .clip-field s { color: var(--bad); }

/* Monet: the wallpaper changes and the five tones follow it. Registered colours interpolate;
   browsers without @property simply switch palettes. */
@property --t1 { syntax: "<color>"; inherits: true; initial-value: #2a1673; }
@property --t2 { syntax: "<color>"; inherits: true; initial-value: #4a2bc4; }
@property --t3 { syntax: "<color>"; inherits: true; initial-value: #8f73ff; }
@property --t4 { syntax: "<color>"; inherits: true; initial-value: #c9bbff; }
@property --t5 { syntax: "<color>"; inherits: true; initial-value: #ece7ff; }
.vig-monet { --t1: #2a1673; --t2: #4a2bc4; --t3: #8f73ff; --t4: #c9bbff; --t5: #ece7ff; }
.wall { width: min(100%, 380px); height: 66px; border-radius: 14px; background: linear-gradient(120deg, var(--t2), var(--t3) 45%, var(--t4)); }
.tones { display: flex; gap: 8px; }
.tones i { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.tones i:nth-child(1) { background: var(--t1); } .tones i:nth-child(2) { background: var(--t2); } .tones i:nth-child(3) { background: var(--t3); }
.tones i:nth-child(4) { background: var(--t4); } .tones i:nth-child(5) { background: var(--t5); }
.m3-row { display: flex; align-items: center; gap: 14px; }
.m3-fab { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--t4); color: var(--t1); }
.m3-fab svg { width: 22px; height: 22px; }
.ui-switch.m3 { width: 46px; height: 28px; border-radius: 14px; }
.ui-switch.m3::after { top: 4px; left: 4px; width: 20px; height: 20px; }
.ui-switch.m3.on { background: var(--t2); }
.ui-switch.m3.on::after { transform: translateX(18px); }
.m3-chip { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--t4); background: #fff; font-weight: 600; font-size: 12.5px; }
.live.is-live .vig-monet { animation: monet 10s infinite; }
@keyframes monet {
  0%, 27% { --t1: #2a1673; --t2: #4a2bc4; --t3: #8f73ff; --t4: #c9bbff; --t5: #ece7ff; }
  33%, 60% { --t1: #0f3d33; --t2: #1f6b57; --t3: #4fae8f; --t4: #a8e0cb; --t5: #e4f5ee; }
  66%, 94% { --t1: #5a2a0c; --t2: #a8541c; --t3: #e89a5c; --t4: #f8cfa8; --t5: #fdeedd; }
  100% { --t1: #2a1673; --t2: #4a2bc4; --t3: #8f73ff; --t4: #c9bbff; --t5: #ece7ff; }
}

/* Icon packs: the same four glyphs drawn by three real icon sets. */
.vig-icons .ui-sheet { width: min(100%, 400px); padding-bottom: 4px; }
.pack-name { flex: 1; font-weight: 600; }
.pack-glyphs { display: flex; gap: 12px; color: var(--ui-sub); }
.pack-glyphs svg { width: 20px; height: 20px; }
.pack .ui-radio { margin-left: 6px; }
.vig-icons .pk2 .pack-glyphs { color: var(--ui-violet); }
.live.is-live .pack .pack-glyphs { animation: pack-on 9s infinite; }
.live.is-live .pack .ui-radio { animation: pack-radio 9s infinite; }
.live.is-live .pack .ui-radio::after { animation: pack-dot 9s infinite; }
.live.is-live .pk1 .pack-glyphs, .live.is-live .pk1 .ui-radio, .live.is-live .pk1 .ui-radio::after { animation-delay: -3s; }
.live.is-live .pk3 .pack-glyphs, .live.is-live .pk3 .ui-radio, .live.is-live .pk3 .ui-radio::after { animation-delay: -6s; }
@keyframes pack-on { 0%, 33% { color: var(--ui-violet); } 34%, 100% { color: var(--ui-sub); } }
@keyframes pack-radio { 0%, 33% { border-color: var(--ui-violet); } 34%, 100% { border-color: #b9b0dd; } }
@keyframes pack-dot { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0; } }
.vig-icons .ui-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ui-violet); opacity: 0; }
.vig-icons .ui-radio.on::after { opacity: 1; }

/* Preset file */
.file { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: #fff; font: 700 13.5px var(--font-mono); box-shadow: 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.file svg { width: 18px; height: 18px; color: var(--ui-violet); }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ui-sub); }
.checks span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 2px solid #c8c0e6; }
.checks .on { color: var(--ui-violet); }
.checks .on::before { border-color: var(--ui-violet); background: var(--ui-violet); box-shadow: inset 0 0 0 2px #fff; }

/* Moving in */
.vig-move { grid-auto-flow: column; gap: 10px; }
.mv-box { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; font-weight: 700; font-size: 13px; color: var(--ui-sub); white-space: nowrap; }
.mv-to { color: var(--ui-text); }
.mv-to img { width: 26px; height: 26px; border-radius: 8px; }
.mv-arrow { width: 22px; height: 22px; min-width: 22px; color: var(--ui-violet); }
@media (max-width: 1180px) and (min-width: 681px), (max-width: 420px) { .vig-move { grid-auto-flow: row; } .mv-arrow { transform: rotate(90deg); } }

/* Type */
.vig-type { grid-auto-flow: column; gap: 22px; }
.aa { font: 600 46px/1 var(--font-body); color: var(--ui-text); }
.aa.sans { font-family: system-ui, -apple-system, Roboto, sans-serif; color: var(--ui-violet); }
.emo { font-size: 44px; line-height: 1; }

/* ------------------------------------------------------------- flex section */

.flex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.flex h2 { font: 700 clamp(34px, 5.2vw, 70px)/1.02 var(--font-display); letter-spacing: -0.045em; }
.flex-stat { display: flex; align-items: baseline; gap: 14px; margin-top: 28px; }
.flex-stat b { font: 700 clamp(44px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--peach); font-variant-numeric: tabular-nums; }
.flex-stat span { max-width: 26ch; color: var(--on-field-2); font-size: 16px; line-height: 1.4; }
.ticks-light li { color: #fff; }
.ticks.ticks-light svg { color: var(--peach); }

.hub { width: min(100%, 380px); margin-inline: auto; padding: 14px 14px 0; border-radius: 34px; background: #fff; color: var(--ui-text); box-shadow: 0 50px 90px -40px rgba(10, 3, 50, 0.85); }
.hub-top { display: flex; align-items: center; gap: 12px; padding: 6px 8px 12px; }
.hub-top svg { width: 20px; height: 20px; transform: rotate(180deg); color: var(--ui-sub); }
.hub-top b { font-size: 18px; }
.hub-search { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--vig); color: var(--ui-sub); font-size: 14px; }
.hub-search svg { width: 18px; height: 18px; flex: none; }
.hub-window {
  height: 420px; margin-top: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent);
}
.hub-row { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 8px; border-bottom: 1px solid var(--vig-line); font-size: 14.5px; }
.hub-row > svg { width: 20px; height: 20px; flex: none; color: var(--ui-violet); }
.hub-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-tag { padding: 3px 7px; border-radius: 6px; background: #ece7ff; color: var(--ui-violet); font: 700 11px/1.2 var(--font-body); font-style: normal; }
.hub-val { color: var(--ui-sub); font-size: 13px; }
.hub-row .chev { width: 16px; height: 16px; flex: none; color: #b9b0dd; }
.flex-art.is-live .hub-track { animation: hub 52s linear infinite; }
@keyframes hub { to { transform: translateY(-50%); } }
@media (max-width: 960px) { .flex { grid-template-columns: minmax(0, 1fr); } .hub-window { height: 340px; } }

/* --------------------------------------------------------------- feed panel */

.feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.panel-peach .intro { color: var(--on-peach-2); }
.ticks { display: grid; gap: 14px; margin-top: 30px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; font-weight: 500; }
.ticks svg { width: 18px; height: 18px; flex: none; color: var(--ui-violet); margin-top: 4px; }

.feed-phone { width: min(100%, 360px); margin-inline: auto; padding: 14px; border-radius: 34px; background: #fff; box-shadow: 0 50px 90px -50px rgba(20, 11, 59, 0.6); }
.feed-top { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; font-weight: 700; color: var(--ui-text); }
.feed-top svg { width: 20px; height: 20px; color: var(--ui-violet); }
.feed-window {
  height: 400px; overflow: hidden; border-radius: 20px; background: var(--vig);
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
}
.feed-track { display: grid; gap: 10px; padding: 5px 10px; }
/* Three made-up channel posts drawn like Telegram's: name row, optional photo, text, reactions and time. */
.post { padding: 10px 12px; border-radius: 14px; background: #fff; color: var(--ui-text); }
.post-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-weight: 700; font-size: 13px; }
.post-av { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.av-pin { background: #f0eee6; color: #191919; }
.av-pin svg { width: 13px; height: 13px; transform: rotate(180deg); }
.ys-paw, .ys-badge { flex: none; width: 15px; height: 15px; color: var(--ui-violet); }
.ys-paw { margin-right: -3px; }
.post-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 10px; object-fit: cover; object-position: 50% 30%; }
.post-text { font-size: 13px; line-height: 1.45; }
.post-f { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--ui-sub); }
.reac { padding: 3px 8px; border-radius: 12px; background: var(--vig); color: var(--ui-violet); font-weight: 600; }
.post-f time { margin-left: auto; }
.feed-art.is-live .feed-track { animation: feed 16s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }

/* ------------------------------------------------------------ verification */

.vig-proof { place-items: start; align-content: space-between; gap: 28px; padding: 24px 26px; }
.proof-src { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ui-text); }
.proof-src .vt { width: 18px; height: 18px; color: #394eff; }
.proof-num { display: flex; align-items: baseline; gap: 12px; }
.proof-num b { font: 700 clamp(72px, 9vw, 112px)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--ui-violet); }
.proof-num span { font: 700 clamp(24px, 2.6vw, 34px)/1 var(--font-display); color: #867eb0; letter-spacing: -0.03em; }
.card-body a { color: var(--ui-violet); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

.sha { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px clamp(18px, 3vw, 36px) 32px; }
.sha-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.sha-head p { color: var(--card-sub); }
.sha-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.sha-row b { font-weight: 700; white-space: nowrap; }
.sha-row code { min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--vig); font: 500 13.5px/1.4 var(--font-mono); color: var(--ui-text); overflow-wrap: anywhere; user-select: all; }
.copy { appearance: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--vig); color: var(--ui-violet); cursor: pointer; transition: background-color 0.3s var(--ease-out), color 0.3s; }
.copy:hover { background: #e4ddfb; }
.copy svg { width: 20px; height: 20px; }
.copy.done { background: #178a49; color: #fff; }
.btn-ink { justify-self: start; max-width: 100%; margin-top: 10px; background: var(--ink); color: #fff; }
.btn-ink:hover { background: #241a63; }
.btn-ink .ico { width: 20px; height: 20px; color: var(--peach); }
@media (max-width: 640px) {
  .sha-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sha-row b { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------- update checks */

.steps-card { padding: 14px clamp(22px, 3vw, 34px) 28px; gap: 0; }
.checks-list li { padding: 16px 0; border-bottom: 1px solid var(--vig-line); }
.checks-list h3 { font-size: 17.5px; }
.checks-list p { margin-top: 4px; font-size: 15px; }
.card .steps-done { margin-top: 18px; font-weight: 700; color: var(--ok); }

.callout { align-self: start; padding: 30px clamp(22px, 3vw, 32px); gap: 14px; }
.callout h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.15 var(--font-display); letter-spacing: -0.03em; }
.callout p { font-size: 16px; }
.threat { display: grid; gap: 18px; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.threat dt { font-weight: 700; color: var(--peach); }
.threat dd { margin: 4px 0 0; color: #c9bff5; font-size: 15.5px; line-height: 1.55; }

/* ------------------------------------------------------------ plugin stage */

.plug-stage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.sheet { position: relative; padding: 12px 20px 22px; border-radius: var(--r-card); background: #fff; color: var(--ui-text); font-size: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.sheet-grab { display: block; width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 2px; background: #d9d2f3; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sheet-head b { display: block; font-size: 18px; }
.sheet-head span { font-size: 12.5px; color: var(--ui-sub); }
.sheet-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--vig); color: var(--ui-violet); }
.sheet-ico svg { width: 24px; height: 24px; }
.cap-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; line-height: 1.45; }
.cap-row svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ui-violet); }
.cap-row.muted { color: var(--ui-sub); }
.sheet .ui-row { padding: 9px 0; }
.sheet .perm { padding-left: 18px; }
.perm > span { flex-direction: column; align-items: flex-start; gap: 1px; }
.perm small { color: var(--ui-sub); font-size: 12px; }
.sheet .ui-cap { display: block; justify-self: start; padding-top: 12px; text-align: left; }
.sheet-warn { margin: 12px 0 6px; padding: 12px; border-radius: 12px; background: #fff3e2; color: #7a4600; font-size: 13px; line-height: 1.45; }
.sheet-btn { display: flex; justify-content: center; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--ui-violet); color: #fff; font-weight: 700; }
.sheet-toast { position: absolute; left: 50%; bottom: 18px; padding: 10px 14px; border-radius: 12px; background: var(--ui-text); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); }
.sheet.is-live .sheet-btn { animation: sheet-btn 7s infinite; }
.sheet.is-live .sheet-toast { animation: sheet-toast 7s infinite; }
/* The button steps aside while the toast takes its place, so the two labels never overlap. */
@keyframes sheet-btn { 0%, 52% { transform: none; filter: none; opacity: 1; } 56% { transform: scale(0.97); filter: brightness(0.9); opacity: 1; } 60% { transform: none; filter: none; opacity: 0; } 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes sheet-toast { 0%, 58% { opacity: 0; transform: translate(-50%, 8px); } 64%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }

.code { margin: 0; min-width: 0; overflow: hidden; border-radius: var(--r-card); background: #0c0726; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.code-tab { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 500 12.5px/1 var(--font-mono); color: #9d93cc; }
.code pre { margin: 0; padding: 22px 22px 24px; overflow-x: auto; font: 13.5px/1.75 var(--font-mono); color: #e3defa; tab-size: 4; }
.code-lang { width: 16px; height: 16px; color: #ffd43b; }
.code .k { color: #b9a6ff; }
.code .s { color: var(--peach); }
.code .f { color: #fff; font-weight: 600; }
.code-cap { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #c9bff5; font-size: 14px; }
.panel-ink .intro { color: #c9bff5; }
.grid-dark { margin-top: 16px; }

@media (max-width: 960px) {
  .plug-stage { grid-template-columns: minmax(0, 1fr); }
  .sheet { max-width: 460px; }
  .code pre { font-size: 12.5px; }
  .feed { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) { .grid-dark .s4 { grid-column: span 6; } }
@media (max-width: 680px) { .grid-dark .s4 { grid-column: span 12; } }

/* ------------------------------------------------------------- closing CTA */

.get { padding: 0 12px 12px; }
.get-panel {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(72px, 9vw, 128px) var(--gutter);
  border-radius: var(--r-panel);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(190, 168, 255, 0.5), transparent 70%),
    linear-gradient(180deg, var(--field-hi), var(--field-mid));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.get-logo { width: clamp(88px, 9vw, 116px); height: auto; margin-bottom: 30px; border-radius: 24%; box-shadow: 0 30px 60px -24px rgba(16, 5, 60, 0.85); }
.get .intro { margin-inline: auto; color: #ece7ff; }
.get .intro a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.get-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.get-meta { margin-top: 18px; color: var(--on-field-2); font-size: 14.5px; }
.get-meta a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 480px) { .get-cta { display: grid; width: 100%; } }
.get-desk {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px;
  width: min(100%, 560px); margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-field-2); font-size: 15.5px;
}
.get-desk a {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07);
  color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.get-desk a:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.45); }
.get-desk svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .get { padding: 0 8px 8px; } .get-panel { border-radius: 22px; } }

/* ----------------------------------------------------------- suggest page
   The form card borrows the app's own controls from the vignettes: the segmented
   picker, soft violet fields and the ink button. */

.suggest { padding-top: clamp(128px, 14vw, 168px); }
.suggest-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.suggest-copy { position: sticky; top: 120px; container-type: inline-size; }
/* «Предложить» measures 7.87em, so the title is sized from its column and never runs under the form. */
.page-title { text-wrap: balance; font: 700 clamp(36px, 5vw, 64px)/1.02 var(--font-display); font: 700 min(76px, calc(100cqi / 8.1))/1.02 var(--font-display); letter-spacing: -0.045em; }

.form-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card); background: var(--card); color: var(--card-ink); box-shadow: 0 30px 60px -36px rgba(10, 3, 50, 0.7); }
.form-card :focus-visible { outline-color: var(--ui-violet); }
.suggest-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#suggestFields { display: grid; gap: 22px; }
.kind legend, .field label { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 14.5px; color: var(--card-ink); }
.field label:has(.opt) { display: flex; flex-wrap: wrap; column-gap: 8px; }
.field .opt { font-weight: 500; color: var(--card-sub); }

.kind-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px; background: #e9e3fb; }
.kind-opts label { position: relative; display: block; margin: 0; cursor: pointer; }
.kind-opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kind-opts span { display: block; padding: 10px 6px; border-radius: 9px; text-align: center; font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--card-sub); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.kind-opts label:hover span { color: var(--ui-text); }
.kind-opts input:checked + span { background: #fff; color: var(--ui-violet); box-shadow: 0 1px 3px rgba(23, 13, 69, 0.12); }
.kind-opts input:focus-visible + span { outline: 2px solid var(--ui-violet); outline-offset: 1px; }

.field input, .field textarea {
  display: block; width: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: 12px;
  background: var(--vig); color: var(--ui-text); font: 400 16px/1.5 var(--font-body);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field textarea { min-height: 176px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #686190; }
.field input:hover, .field textarea:hover { background: #ebe5fd; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ui-violet); background: #fff; box-shadow: 0 0 0 4px rgba(106, 66, 242, 0.14); }
.field input:disabled, .field textarea:disabled { opacity: 0.6; }
.hint { margin-top: 6px; font-size: 13.5px; color: var(--card-sub); }

.form-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--vig); color: var(--ui-text); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.form-note svg { width: 20px; height: 20px; flex: none; color: var(--ui-violet); }
.form-note.is-error { background: #fdeced; color: #8f1d22; }
.form-note.is-error svg { color: var(--bad); }
.btn-send { justify-self: start; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; scale: 1; }
.btn-ink:disabled { background: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.8; cursor: progress; }

.form-done { display: grid; justify-items: start; gap: 10px; padding: 8px 4px; }
.form-done:focus { outline: none; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: #178a49; color: #fff; }
.done-mark svg { width: 30px; height: 30px; }
.form-done h2 { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.form-done p { color: var(--card-sub); }
.form-done .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .suggest-grid { grid-template-columns: minmax(0, 1fr); }
  .suggest-copy { position: static; }
}
@media (max-width: 520px), (min-width: 901px) and (max-width: 1100px) { .kind-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

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

.foot { padding-block: 36px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.foot .brand { font-size: 15px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-note { color: var(--on-field-3); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--on-field-2); }
.foot-links a { text-decoration: none; transition: color 0.3s var(--ease-out); }
.foot-links a:hover { color: #fff; }
.foot-copy { color: var(--on-field-3); }
@media (max-width: 820px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ misc */

/* The only latin-ext glyph on the page; a system font draws it, so the 28 KB
   latin-ext Onest file is never fetched for one character. */
.rub { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 360px) {
  /* The phone scenes were sized for 390px and up. */
  .vig { padding-inline: 12px; font-size: 12.5px; }
  .stories i { width: 40px; height: 40px; }
  .stories i:nth-child(5) { display: none; }
  .appbar { padding-inline: 10px; }
  .appbar b { font-size: 14px; }
  .btn { height: auto; min-height: 52px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.25; }
}

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

/* Intro: the poster panel of the main hero, played as a short title sequence by changelog.js. */
.cl-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px;
  border-radius: var(--r-panel);
  min-height: calc(100svh - 24px);
  display: flex;
  align-items: center;
  padding-block: 120px 132px;
  color: #fff;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(168, 140, 255, 0.4), transparent 70%),
    linear-gradient(180deg, var(--field-hi) 0%, var(--field-mid) 55%, var(--field-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ix-ribbon, .ix-flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ix-ribbon { z-index: -1; }
.ix-flight { z-index: 3; overflow: visible; }
#ixRibbon { fill: none; stroke: rgba(255, 255, 255, 0.085); stroke-linecap: round; stroke-linejoin: round; }
#ixTrail { fill: none; stroke: rgba(230, 222, 255, 0.75); stroke-width: 2.5; stroke-linecap: round; }
.cl-intro:not(.ix-playing) .ix-flight { display: none; }

.ix-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "title lines" "foot foot";
  align-items: end;
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 72px);
}
.ix-title { grid-area: title; display: grid; gap: 14px; font-weight: inherit; }
/* Masks for the rising lines; the padding keeps descenders out of the clip. */
.ix-mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ix-in { display: block; }
.ix-kicker { font: 500 clamp(16px, 1.4vw, 19px)/1.3 var(--font-body); color: #f4f1ff; }
.ix-lines { grid-area: lines; display: grid; gap: 6px; padding-bottom: 0.1em; }
.ix-lines .ix-in { font: 700 clamp(26px, 3.2vw, 44px)/1.12 var(--font-display); letter-spacing: -0.03em; }
.ix-lines li:nth-child(2) .ix-in { color: #e6deff; }
.ix-lines li:nth-child(3) .ix-in { color: var(--peach); }
.ix-foot { grid-area: foot; }
.ix-foot .hero-cta { margin-top: 26px; }
.ix-foot .get-meta { margin-top: 16px; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--on-field-2); font-weight: 500; }
.cl-meta > * + * { position: relative; }
.cl-meta > * + *::before { content: ""; position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: 0.6; }
/* Three systems don't fit one phone line, and a wrapped dot would hang in the margin. */
@media (max-width: 480px) { .cl-meta-os { flex-direction: column; gap: 2px; } .cl-meta-os > * + *::before { display: none; } }

.ix-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px;
  color: var(--on-field-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.ix-cue:hover { color: #fff; }
.ix-cue-plane { width: 26px; height: 26px; transform: rotate(128deg); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.noanim) .cl-intro.ix-done .ix-cue-plane { animation: cue-bob 2.4s var(--ease-smooth) infinite; }
}
@keyframes cue-bob { 0%, 100% { transform: rotate(128deg) translate(0, 0); } 50% { transform: rotate(128deg) translate(-3px, -4px); } }

/* Version odometer: one clipped column per digit, a strip of digits inside. */
.odo {
  display: inline-flex; align-items: flex-start;
  --cell: 1.04em;
  /* "0.2.0" is about 3.2em wide; on a phone it is sized from the screen so it never clips. */
  font: 700 clamp(64px, 20vw, 200px)/1 var(--font-display); letter-spacing: -0.045em;
}
@media (min-width: 1025px) { .odo { font-size: clamp(96px, 15vw, 200px); } }
.odo-col { position: relative; display: block; height: var(--cell); overflow: hidden; }
.odo-sizer { display: block; visibility: hidden; line-height: var(--cell); }
.odo-strip { position: absolute; top: 0; left: 0; right: 0; display: block; text-align: center; will-change: transform; }
.odo-strip > span { display: block; height: var(--cell); line-height: var(--cell); }


/* Hidden until the first frame is drawn; the head script lifts this after 3 s regardless. */
html.ix-pending .cl-intro .ix-in,
html.ix-pending .cl-intro .odo,
html.ix-pending .cl-intro .ix-foot,
html.ix-pending .cl-intro .ix-cue { visibility: hidden; }

@media (max-width: 1024px) {
  .ix-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lines" "foot"; align-items: start; }
}
@media (max-width: 420px) { .cl-intro { margin: 8px; border-radius: 22px; min-height: calc(100svh - 16px); padding-block: 104px 120px; } }

/* History: a sticky rail of versions beside the releases. */
.cl-body { padding-block: clamp(48px, 7vw, 88px) clamp(80px, 10vw, 128px); scroll-margin-top: 72px; }
.cl-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cl-rail { position: sticky; top: 112px; }
.rail-track { position: absolute; z-index: 1; left: 7px; top: 4px; bottom: 4px; width: 2px; }
.rail-track::before { content: ""; position: absolute; inset: 0; border-radius: 1px; background: rgba(255, 255, 255, 0.16); }
.rail-fill { position: absolute; inset: 0; border-radius: 1px; background: var(--peach); transform-origin: top; transform: scaleY(var(--rail, 0)); }
.rail-plane { position: absolute; left: 1px; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; transform: translateY(var(--rail-y, 0px)) rotate(128deg); }
.cl-rail ol { position: relative; display: grid; gap: 22px; padding-left: 30px; }
.cl-rail a { position: relative; display: grid; gap: 3px; color: var(--on-field-3); text-decoration: none; transition: color 0.3s var(--ease-out); }
.cl-rail a::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--field); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3); transition: background-color 0.3s, box-shadow 0.3s;
}
.cl-rail a:hover, .cl-rail a[aria-current] { color: #fff; }
.cl-rail a[aria-current]::before { background: var(--peach); box-shadow: 0 0 0 2px var(--peach); }
.cl-rail b { font: 700 17px/1.25 var(--font-display); letter-spacing: -0.02em; }
.cl-rail a span { font-size: 13.5px; }

.cl-releases { display: grid; gap: 16px; min-width: 0; }
.release {
  scroll-margin-top: 96px;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--card-ink);
  box-shadow: 0 30px 60px -36px rgba(10, 3, 50, 0.7);
}
.rel-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font: 700 clamp(40px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; }
.rel-date { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; color: var(--card-sub); font-weight: 500; }
.rel-date > * + * { position: relative; }
.rel-date > * + *::before { content: ""; position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.rel-lead { margin-top: 16px; max-width: 48ch; font-size: 18px; line-height: 1.5; }
.rel-build { margin-top: 28px; padding: 20px 22px 22px; border-radius: 18px; background: var(--vig); }
.rel-build h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 700 17px/1.3 var(--font-body); }
.rel-build h3 time { font-weight: 500; color: var(--card-sub); }
.rel-build-note { margin-top: 4px; color: var(--card-sub); font-size: 14.5px; }
.rel-build .cl-list { margin-top: 14px; }
.cl-group { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 12px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--vig-line); }
.cl-group h3 { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 8px; font: 700 17px/1.35 var(--font-body); }
.release > .cl-list { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--vig-line); }
.cl-list { display: grid; gap: 12px; }
.cl-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; }
.cl-list li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-violet); }
.cl-list li.fix::before { background: var(--ok); }
.cl-list a { color: var(--ui-violet); font-weight: 600; text-underline-offset: 3px; }
.cl-tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 8px; background: #ece7ff; color: var(--ui-violet); font: 600 12.5px/1 var(--font-body); letter-spacing: 0.01em; }
.rel-head .cl-tag { font-size: 13px; }
.cl-end { margin-top: 12px; color: var(--on-field-2); }
.cl-end a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .cl-layout { grid-template-columns: minmax(0, 1fr); }
  .cl-rail { position: static; }
  .rail-track { display: none; }
  .cl-rail ol { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 0; }
  .cl-rail a { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; color: #f1edff; }
  .cl-rail a::before { display: none; }
  .cl-rail b { font-size: 15px; }
}
@media (max-width: 680px) { .cl-group { grid-template-columns: minmax(0, 1fr); } }

/* Highlights: the release cards as short clips beside a list of their titles. */
.cl-stories { padding-top: clamp(72px, 9vw, 120px); scroll-margin-top: 40px; }
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.st-chapters { display: grid; gap: 2px; margin-top: 30px; max-width: 440px; }
.st-chapters button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px;
  background: transparent; color: var(--on-field-3); font: 600 16px/1.3 var(--font-body); text-align: left; cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.st-chapters button:hover, .st-chapters button[aria-current] { color: #fff; }
.st-chapters button[aria-current] { background: rgba(255, 255, 255, 0.1); }
.st-chapters .cl-tag { background: rgba(255, 255, 255, 0.14); color: #fff; }
.st-player { display: grid; gap: 14px; width: 100%; }
.st-bars { display: flex; gap: 6px; }
.st-bars i { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
.st-bars b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.st-bars i.done b { transform: none; }
.st-stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px; background: var(--field); box-shadow: 0 40px 80px -40px rgba(10, 3, 50, 0.85); }
.st-screen { position: absolute; inset: 0; }
.st-tap { position: absolute; z-index: 2; top: 0; bottom: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.st-tap-prev { left: 0; width: 30%; }
.st-tap-next { right: 0; width: 70%; }
.st-controls { display: flex; align-items: center; gap: 8px; }
.st-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; transition: background-color 0.3s var(--ease-out); }
.st-btn:hover { background: rgba(255, 255, 255, 0.14); }
.st-btn svg { width: 20px; height: 20px; }
.st-count { margin-left: auto; color: var(--on-field-2); font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); }
  .st-player { max-width: 460px; margin-inline: auto; }
  .st-chapters { display: none; }
}

/* ================================================================ desktop
   desktop.html: the hero reused with a second title line, two download cards that mark the
   visitor's system, the first-launch steps for unsigned builds, and the feature cards. A
   package without a link (no href, see build.py) shows its "coming soon" label. */

.hero-title-2 { display: block; color: var(--peach); }
.os-mac, .os-win, .os-linux { display: none; }
html[data-os] .os-any { display: none; }
/* A "coming soon" label shows only through the data-soon rules further down. */
html[data-os="mac"] .os-mac:not(.if-soon), html[data-os="win"] .os-win:not(.if-soon), html[data-os="linux"] .os-linux:not(.if-soon) { display: inline; }

.dl-grid { align-items: stretch; }
.dl-card { gap: 22px; padding: clamp(20px, 2.6vw, 30px); }
.dl-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.dl-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--vig); color: var(--card-ink); }
.dl-mark svg { width: 30px; height: 30px; }
.dl-head h3 { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -0.035em; }
.dl-head p { margin-top: 4px; font-size: 15px; line-height: 1.45; }
.dl-you { display: none; align-self: start; padding: 6px 10px; border-radius: 10px; background: var(--ui-violet); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1; white-space: nowrap; }
html[data-os="mac"] .dl-card[data-os="mac"] .dl-you, html[data-os="win"] .dl-card[data-os="win"] .dl-you, html[data-os="linux"] .dl-card[data-os="linux"] .dl-you { display: inline-flex; }
html[data-os="mac"] .dl-card[data-os="mac"], html[data-os="win"] .dl-card[data-os="win"], html[data-os="linux"] .dl-card[data-os="linux"] { box-shadow: 0 30px 60px -36px rgba(10, 3, 50, 0.7), inset 0 0 0 2px var(--ui-violet-2); }
/* The macOS cards come first in the markup; a Windows or Linux visitor gets theirs first instead,
   which on phones, where the cards stack, saves scrolling past the other systems. */
html[data-os="win"] .dl-card[data-os="win"], html[data-os="win"] .run-card[data-os="win"],
html[data-os="linux"] .dl-card[data-os="linux"], html[data-os="linux"] .run-card[data-os="linux"] { order: -1; }
/* Three cards to a row on wide screens: the mark and the "your system" tag share the top line and
   the name goes under them. Between phone and laptop widths two cards share a row and the third
   takes the full width. */
@media (min-width: 1025px) {
  .dl-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark you" "text text"; align-items: start; }
  .dl-mark { grid-area: mark; }
  .dl-head > div { grid-area: text; }
  .dl-you { grid-area: you; justify-self: end; }
}
@media (min-width: 681px) and (max-width: 1024px) {
  .dl-grid > .dl-card[data-os="linux"] { grid-column: span 12; }
}

.dl-files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dl-btn { width: 100%; justify-content: flex-start; background: var(--ink); color: #fff; padding-left: 20px; }
.dl-btn:hover { background: #241a63; }
.dl-btn .ico { width: 20px; height: 20px; color: var(--peach); }
.dl-alt { margin-top: 8px; background: var(--vig); color: var(--ui-text); }
.dl-alt:hover { background: #e4ddfb; }
.dl-alt .ico { color: var(--ui-violet); }
.dl-ico-soon, .dl-soon { display: none; }
.dl-btn:not([href]) { background: var(--vig); color: var(--card-sub); cursor: default; }
.dl-btn:not([href]):active { scale: 1; }
.dl-btn:not([href]) .ico { color: var(--card-sub); }
.dl-btn:not([href]) .dl-ico-ready, .dl-btn:not([href]) .dl-ready { display: none; }
.dl-btn:not([href]) .dl-ico-soon { display: block; }
.dl-btn:not([href]) .dl-soon { display: inline; }
.dl-meta { padding-left: 4px; color: var(--card-sub); font-size: 14px; }
.dl-meta [data-dl-size]:not(:empty)::before { content: ", "; }
.dl-note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--vig-line); color: var(--card-sub); font-size: 15px; line-height: 1.55; }

.dl-pending, .dl-foot, .run-foot { display: flex; align-items: flex-start; gap: 10px; max-width: 72ch; margin-top: 28px; color: var(--on-field-2); font-size: 15.5px; line-height: 1.5; }
.dl-pending .ico, .dl-foot .ico, .run-foot .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--peach); }
.dl-pending a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

.run-grid { gap: 12px; }
.card.run-card { padding: 0; gap: 0; }
.run-card > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; padding: 22px clamp(20px, 3vw, 32px); list-style: none; cursor: pointer; border-radius: inherit; }
.run-card > summary::-webkit-details-marker { display: none; }
.run-card > summary:focus-visible { outline: 2px solid var(--peach); outline-offset: -2px; }
.run-sum { color: #c9bff5; font-size: 15px; }
.run-caret { width: 18px; height: 18px; color: var(--peach); transform: rotate(90deg); transition: transform 0.3s var(--ease-out); }
.run-card[open] .run-caret { transform: rotate(-90deg); }
.run-body { display: grid; gap: 16px; padding: 4px clamp(20px, 3vw, 32px) clamp(22px, 3vw, 30px); }
.run-side > .run-note:first-child { padding-top: 0; border-top: 0; }
@media (min-width: 1025px) { .run-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(28px, 4vw, 56px); align-items: start; } }
.run-card h3 { display: flex; align-items: center; gap: 12px; font: 700 clamp(22px, 2.2vw, 26px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.run-card h3 svg { width: 24px; height: 24px; color: var(--peach); }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { position: relative; padding-left: 40px; color: #e9e4ff; font-size: 15.5px; line-height: 1.55; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px; background: rgba(251, 227, 200, 0.14); color: var(--peach);
  font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.run-alt { margin-top: 4px; color: #c9bff5; font-size: 15px; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.cmd code { flex: 1; min-width: 0; color: #f3efff; font: 500 13.5px/1.45 var(--font-mono); overflow-wrap: anywhere; user-select: all; }
.card.dark .copy { flex: none; background: rgba(255, 255, 255, 0.08); color: var(--peach); }
.card.dark .copy:hover { background: rgba(255, 255, 255, 0.14); }
.card.dark .copy.done { background: #178a49; color: #fff; }
.run-note { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #c9bff5; font-size: 14.5px; line-height: 1.55; }
.run-note + .run-note { padding-top: 0; border-top: 0; }
.run-side { display: grid; gap: 16px; align-content: start; }
@media (max-width: 480px) { .dl-head { grid-template-columns: auto minmax(0, 1fr); } .dl-you { grid-column: 1 / -1; justify-self: start; } }
.sha-pending { color: var(--card-sub); font-size: 15px; }

/* Desktop feature scenes */
.ui-act > span { color: var(--ui-violet); font-weight: 600; }
.vig-wsd .toast { font-size: 12.5px; line-height: 1.35; }
.vig-wsd .toast > span { min-width: 0; }
.diag-row { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--vig-line); }
.diag-row b { font-size: 12px; color: var(--ui-sub); font-weight: 600; }
.diag-row span { overflow-wrap: break-word; }
.diag-row .bad { color: var(--bad); }
.badge-card { display: grid; justify-items: center; gap: 6px; width: min(100%, 320px); padding: 20px 18px 18px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 1px 2px rgba(23, 13, 69, 0.06), 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.badge-disc { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; background: var(--vig); }
.badge-disc svg { width: 30px; height: 30px; color: var(--ui-violet); }
.badge-card b { font-size: 15px; }
.badge-card small { margin-top: 4px; font-size: 12px; color: var(--ui-sub); }

/* The quality-of-life index: one short list per settings page, in a grid so every group starts
   on the same line. Groups longer than eight rows fold after six (see .more-toggle). */
.qol-title { margin-top: clamp(56px, 7vw, 88px); color: #fff; font: 700 clamp(24px, 2.4vw, 32px)/1.15 var(--font-display); letter-spacing: -0.03em; }
.qol { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px clamp(24px, 3vw, 40px); margin-top: 26px; }
.qol-group h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; color: #fff; font: 700 17px/1.3 var(--font-display); letter-spacing: -0.02em; }
.qol-group h4 small { color: var(--on-field-2); font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.qol-group .more { columns: auto; margin-top: 0; padding-top: 0; border-top: 0; }
.qol-group .more li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; line-height: 1.35; }

/* ------------------------------------------------------------ desktop page
   body.desk only: section titles a size below the hero so it stays the one poster line, and
   line breaks that don't leave a single word on the last line. */
.desk .sec-head { max-width: 900px; }
.desk .sec-head h2, .desk .get h2 { font-size: clamp(34px, 4.4vw, 60px); }
.desk .card p, .desk .intro, .desk .steps li, .desk .dl-note { text-wrap: pretty; }
.desk .more li { text-wrap: balance; }

/* Under the hero buttons: what the main button gets for the visitor's system. */
.hero-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 18px; color: var(--on-field-2); font-size: 14.5px; line-height: 1.5; }
.hero-meta a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.os-known { display: none; }
html[data-os] .os-known { display: inline; }
.dev-android { display: none; }
html[data-device="android"] .dev-android { display: inline-flex; }
html[data-device="android"] .dev-other { display: none; }
/* Phones and tablets: the main button offers the Android app or the way to the desktop list. */
.hero-dev-android, .hero-dev-ios { display: none; }
html[data-device] #heroCta .os-any { display: none; }
html[data-device="android"] #heroCta .hero-dev-android,
html[data-device="ios"] #heroCta .hero-dev-ios { display: inline; }
.hero-meta [data-dl-size]:not(:empty)::before { content: ", "; }

/* The portable zip is the second choice for Windows, so it reads as a link, not a second button. */
.dl-files .dl-alt { height: auto; margin-top: 4px; padding: 6px 4px; background: none; color: var(--ui-violet); font-size: 15.5px; }
.dl-files .dl-alt:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.dl-files .dl-alt .ico { display: none; }
.dl-files .dl-alt:not([href]) { background: none; color: var(--card-sub); }
.dl-files .dl-alt + .dl-meta { margin-top: -6px; }
/* The hash card waits until at least one package is out. */
.sha:not(:has(.sha-row:not([hidden]))) { display: none; }

/* A two-item list sits under the two cards above it. */
@media (min-width: 601px) { .more.more-2 { columns: 2; column-gap: 16px; } }

/* QoL scenes: dialog boxes and settings rows from the app. */
.ui-sheet.box { padding: 6px 16px 10px; }
.info-row { display: grid; gap: 2px; padding: 6px 0; }
.info-row b { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.info-row small { color: var(--ui-sub); font-size: 12px; }
.box-text { padding: 4px 0 6px; line-height: 1.45; }
.box-foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 4px; color: var(--ui-violet); font-weight: 600; font-size: 13px; }
.box-btns { display: flex; gap: 18px; }
.ui-val { flex: none; font-style: normal; font-weight: 600; color: var(--ui-violet); font-variant-numeric: tabular-nums; }
.pop.pop-second > span:first-child { background: none; color: var(--ui-sub); font-weight: 500; }
.pop.pop-second > span:nth-child(2) { background: var(--vig); color: var(--ui-violet); font-weight: 700; }
.vig-pin .pop { min-width: 200px; }
.post-foot { display: inline-flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--ui-sub); font-size: 12.5px; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(23, 13, 69, 0.06), 0 14px 30px -18px rgba(23, 13, 69, 0.35); }
.post-foot span { display: inline-flex; align-items: center; gap: 5px; }
.post-foot svg { width: 15px; height: 15px; }

@media (max-width: 600px) {
  .run-card > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .run-sum { grid-row: 2; grid-column: 1 / -1; }
}
/* A path breaks inside a word only when it can't fit a line of its own. */
@media (max-width: 480px) {
  .run-body .cmd { padding-left: 12px; }
  .run-body .cmd code { font-size: 12.5px; overflow-wrap: break-word; }
  .steps li { padding-left: 36px; }
}
.vig-pin .ui-row > span { hyphens: manual; }

/* Before the visitor's package is out (data-soon, trimmed by build.py) the hero button says so. */
.if-soon { display: none; }
html[data-soon~="all"]:not([data-os]) .os-any.if-out,
html[data-os="mac"][data-soon~="mac"] .os-mac.if-out,
html[data-os="win"][data-soon~="win"] .os-win.if-out,
html[data-os="linux"][data-soon~="linux"] .os-linux.if-out { display: none; }
html[data-soon~="all"]:not([data-os]) .os-any.if-soon { display: inline; }
html[data-os="mac"][data-soon~="mac"] .os-mac.if-soon,
html[data-os="win"][data-soon~="win"] .os-win.if-soon,
html[data-os="linux"][data-soon~="linux"] .os-linux.if-soon { display: inline; }
/* The confirm step of "Delete my messages" sits under the search box. */
.box-btns .bad { color: var(--bad); }
/* Feature lists on the desktop page read as rows, like the QoL index. */
.desk .more { padding-top: 0; border-top: 0; }
.desk .more li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; line-height: 1.35; }
/* Command names in running text stay on one line and keep plain hyphens for copying. */
.nw { white-space: nowrap; }
/* "бета" next to a version: peach on violet, sized to the text around it. */
.beta { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 7px; background: var(--peach); color: var(--on-peach); font: 700 12px/1 var(--font-body); letter-spacing: 0.01em; vertical-align: 0.12em; }
h2 .beta { padding: 0.18em 0.42em; border-radius: 0.3em; font-size: max(14px, 0.32em); letter-spacing: 0; vertical-align: 0.35em; }
