/* ===========================================================================
   qUnleashed — landing page
   Palette taken from the app itself:
     lib/components/config.dart  → Unleashed primary #CC241D, secondary #CC5F00,
                                   tertiary #FFB347
     lib/theme/theme.dart        → dark surfaces #090909 / #151515 / #2C2C2C,
                                   text #FFFFFF / #C8C8C8 / #6F6F6F,
                                   info #589DFF, success #2ED34A, danger #E85858
   =========================================================================== */

:root {
  /* surfaces */
  --bg:        #090909;
  --bg-2:      #0d0d0d;
  --card:      #151515;
  --card-2:    #1a1a1a;
  --line:      #2c2c2c;
  --line-soft: #202020;

  /* text */
  --tx:     #ffffff;
  --tx-2:   #c8c8c8;
  --tx-3:   #6f6f6f;

  /* brand */
  --red:       #cc241d;
  --red-hi:    #e62f26;
  --red-lo:    #8f1914;
  --orange:    #cc5f00;
  --amber:     #ffb347;
  --amber-lo:  #8a5f1d;

  /* semantic (from the app) */
  --info:    #589dff;
  --success: #2ed34a;
  --danger:  #e85858;

  --radius:    14px;
  --radius-lg: 20px;
  --maxw:      1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

/* `hidden` must beat the display rules further down (.dl-warn is flex,
   .dl-loading is grid) — without this the attribute does nothing there. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--tx); line-height: 1.14; letter-spacing: -.022em; margin: 0; font-weight: 760; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.06rem; letter-spacing: -.012em; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--tx); text-decoration-color: color-mix(in srgb, var(--red) 70%, transparent);
     text-underline-offset: 3px; }
a:hover { color: var(--red-hi); }
code { font-family: var(--mono); font-size: .88em; background: #000; color: var(--amber);
       padding: .12em .4em; border-radius: 5px; border: 1px solid var(--line-soft); }
kbd  { font-family: var(--mono); font-size: .78em; background: var(--card-2); color: var(--tx-2);
       padding: .12em .45em; border-radius: 5px; border: 1px solid var(--line);
       border-bottom-width: 2px; }
em   { font-style: normal; color: var(--tx); }
img  { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap.narrow { max-width: 860px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

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

.solid-btn, .ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              transform .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
}
.solid-btn {
  background: var(--red); color: #fff; padding: 11px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 6px 22px -10px var(--red);
}
.solid-btn:hover { background: var(--red-hi); color: #fff; transform: translateY(-1px);
                   box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 28px -10px var(--red); }
.solid-btn:active { transform: translateY(0); }
.solid-btn.sm { padding: 8px 15px; font-size: .86rem; }
.solid-btn.lg { padding: 15px 30px; font-size: 1.04rem; border-radius: 12px; }

.ghost-btn {
  background: var(--card); color: var(--tx-2); border-color: var(--line);
  padding: 9px 15px;
}
.ghost-btn:hover { background: var(--card-2); border-color: #3a3a3a; color: var(--tx); }

.linkish {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  color: var(--tx-3); font: inherit; font-size: .84em; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
}
.linkish:hover { color: var(--amber); text-decoration-color: var(--amber); }

/* ============================= nav ============================= */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line-soft); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-icon { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { color: var(--tx); font-weight: 780; font-size: 1.07rem; letter-spacing: -.02em; }
.brand-accent { color: var(--red); }
.brand:hover .brand-accent { color: var(--red-hi); }

.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a {
  color: var(--tx-3); text-decoration: none; font-size: .9rem; font-weight: 560;
  padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--tx); background: var(--card); }

.nav-right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.stars { font-variant-numeric: tabular-nums; color: var(--amber); font-size: .84rem; font-weight: 700; }

/* language picker */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--tx-2);
  border-radius: 10px; padding: 8px 11px; font: inherit; font-size: .86rem; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.lang-btn:hover { background: var(--card-2); border-color: #3a3a3a; color: var(--tx); }
.lang-globe { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.lang-chev  { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 2.4;
              stroke-linecap: round; stroke-linejoin: round; opacity: .7;
              transition: transform .2s var(--ease); }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-cur { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  margin: 0; padding: 6px; list-style: none; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px -14px #000, 0 0 0 1px rgba(0,0,0,.5);
  animation: pop .16s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.lang-menu li { margin: 0; }
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--tx-2); font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 8px;
}
.lang-opt:hover { background: var(--card-2); color: var(--tx); }
.lang-opt[aria-selected="true"] { color: var(--red-hi); font-weight: 700; }
.lang-opt[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: var(--red-hi); }
.lang-code {
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--tx-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; flex: none;
}

@media (max-width: 1040px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .gh-label { display: none; }
  .lang-cur { display: none; }
  .nav-in { gap: 10px; }
}

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

.hero { position: relative; padding: clamp(42px, 7vw, 86px) 0 clamp(44px, 6vw, 76px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 760px; pointer-events: none;
  background:
    radial-gradient(44% 52% at 22% 34%, color-mix(in srgb, var(--red) 34%, transparent) 0%, transparent 68%),
    radial-gradient(38% 46% at 76% 18%, color-mix(in srgb, var(--orange) 20%, transparent) 0%, transparent 70%);
  filter: blur(26px); opacity: .62;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(76% 60% at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(76% 60% at 50% 22%, #000 0%, transparent 78%);
}
.hero-in {
  position: relative; display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: start;
}
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: color-mix(in srgb, var(--red) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  color: color-mix(in srgb, var(--red-hi) 75%, #fff);
  font-size: .8rem; font-weight: 650; letter-spacing: .01em;
  padding: 6px 13px 6px 10px; border-radius: 999px; margin-bottom: 20px;
  transition: border-color .16s, background .16s;
}
.eyebrow:hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 20%, var(--card)); color: #fff; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi);
                box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 28%, transparent);
                animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.grad {
  background: linear-gradient(104deg, var(--red-hi) 4%, var(--orange) 52%, var(--amber) 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--tx-2); margin: 22px 0 26px; max-width: 56ch; }

.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--tx-2); }
.tick { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--red-hi);
        stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
        background: color-mix(in srgb, var(--red) 15%, transparent);
        border-radius: 50%; padding: 1px; }

/* ============================= download card ============================= */

.dl {
  background: linear-gradient(180deg, var(--card) 0%, #101010 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -34px #000, 0 0 0 1px rgba(0,0,0,.4),
              0 0 60px -30px color-mix(in srgb, var(--red) 55%, transparent);
  overflow: hidden; scroll-margin-top: 80px;
}
.dl-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.028), transparent);
}
.dl-head-label {
  font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--tx-3);
}

/* channel switch — stable red, dev amber */
.chan { display: inline-flex; gap: 3px; background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.chan-btn {
  position: relative; background: none; border: 0; cursor: pointer;
  color: var(--tx-3); font: inherit; font-size: .81rem; font-weight: 680;
  padding: 6px 12px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.chan-btn:hover { color: var(--tx-2); }
.chan-btn.is-on { background: color-mix(in srgb, var(--red) 24%, transparent); color: #fff;
                  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 58%, transparent); }
.chan-dev.is-on { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber);
                  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 55%, transparent); }
.chan-tag {
  font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--amber-lo); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; line-height: 1.45;
}
.chan-dev.is-on .chan-tag { color: var(--amber); }

.dl-body { padding: 18px 16px 6px; }

.dl-loading { display: grid; gap: 12px; padding: 6px 0 14px; }
.sk { background: linear-gradient(90deg, #171717 25%, #202020 42%, #171717 60%);
      background-size: 280% 100%; border-radius: 10px; animation: sheen 1.5s linear infinite; }
.sk-a { height: 15px; width: 46%; }
.sk-b { height: 62px; }
.sk-c { height: 13px; width: 66%; }
@keyframes sheen { from { background-position: 180% 0 } to { background-position: -80% 0 } }

.dl-detected {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .86rem; color: var(--tx-3); margin: 0 0 12px;
}
.dl-detected strong { color: var(--tx); font-weight: 700; }

.os-ico { width: 17px; height: 17px; flex: none; display: inline-block;
          background: currentColor; color: var(--tx-2);
          -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
          -webkit-mask-position: center; mask-position: center;
          -webkit-mask-size: contain; mask-size: contain; }
.os-ico[data-os="windows"] { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 5.6 10.3 4.6v7.1H3V5.6Zm8.6-1.2L21 3v8.7h-9.4V4.4ZM3 12.9h7.3V20L3 18.8v-5.9Zm8.6 0H21V21l-9.4-1.3v-6.8Z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 5.6 10.3 4.6v7.1H3V5.6Zm8.6-1.2L21 3v8.7h-9.4V4.4ZM3 12.9h7.3V20L3 18.8v-5.9Zm8.6 0H21V21l-9.4-1.3v-6.8Z"/></svg>'); }
.os-ico[data-os="macos"], .os-ico[data-os="ios"] { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.4 12.7c0-2.5 2-3.7 2.1-3.8-1.1-1.7-2.9-1.9-3.6-1.9-1.5-.2-3 .9-3.7.9-.8 0-2-.9-3.2-.8-1.7 0-3.2 1-4 2.5-1.7 3-.4 7.4 1.2 9.8.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.8 3.2.7 1.3 0 2.2-1.2 3-2.4.9-1.3 1.3-2.6 1.3-2.7-.1 0-2.4-.9-2.4-3.9ZM14 4.8c.7-.8 1.1-2 1-3.2-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.5 2.9-1.3Z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.4 12.7c0-2.5 2-3.7 2.1-3.8-1.1-1.7-2.9-1.9-3.6-1.9-1.5-.2-3 .9-3.7.9-.8 0-2-.9-3.2-.8-1.7 0-3.2 1-4 2.5-1.7 3-.4 7.4 1.2 9.8.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.8 3.2.7 1.3 0 2.2-1.2 3-2.4.9-1.3 1.3-2.6 1.3-2.7-.1 0-2.4-.9-2.4-3.9ZM14 4.8c.7-.8 1.1-2 1-3.2-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.5 2.9-1.3Z"/></svg>'); }
.os-ico[data-os="linux"] { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c2.5 0 3.6 2 3.6 4.4 0 1.6-.3 2.3.5 3.5 1 1.5 2.4 3.4 2.4 5.6 0 .9-.3 1.6-.2 2.3.2 1 1.2 1.3 1.1 2.2-.1 1-1.6 1.5-3.2 1.6-1.3.1-2.6-.2-3-.9h-2.4c-.4.7-1.7 1-3 .9-1.6-.1-3.1-.6-3.2-1.6-.1-.9.9-1.2 1.1-2.2.1-.7-.2-1.4-.2-2.3 0-2.2 1.4-4.1 2.4-5.6.8-1.2.5-1.9.5-3.5C8.4 4 9.5 2 12 2Zm-1.6 4.6c-.5 0-.8.5-.8 1.1s.3 1.1.8 1.1.9-.5.9-1.1-.4-1.1-.9-1.1Zm3.2 0c-.5 0-.9.5-.9 1.1s.4 1.1.9 1.1.8-.5.8-1.1-.3-1.1-.8-1.1Zm-1.6 3c-.9 0-2 .6-2 1.1 0 .4 1.1 1.1 2 1.1s2-.7 2-1.1c0-.5-1.1-1.1-2-1.1Z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c2.5 0 3.6 2 3.6 4.4 0 1.6-.3 2.3.5 3.5 1 1.5 2.4 3.4 2.4 5.6 0 .9-.3 1.6-.2 2.3.2 1 1.2 1.3 1.1 2.2-.1 1-1.6 1.5-3.2 1.6-1.3.1-2.6-.2-3-.9h-2.4c-.4.7-1.7 1-3 .9-1.6-.1-3.1-.6-3.2-1.6-.1-.9.9-1.2 1.1-2.2.1-.7-.2-1.4-.2-2.3 0-2.2 1.4-4.1 2.4-5.6.8-1.2.5-1.9.5-3.5C8.4 4 9.5 2 12 2Zm-1.6 4.6c-.5 0-.8.5-.8 1.1s.3 1.1.8 1.1.9-.5.9-1.1-.4-1.1-.9-1.1Zm3.2 0c-.5 0-.9.5-.9 1.1s.4 1.1.9 1.1.8-.5.8-1.1-.3-1.1-.8-1.1Zm-1.6 3c-.9 0-2 .6-2 1.1 0 .4 1.1 1.1 2 1.1s2-.7 2-1.1c0-.5-1.1-1.1-2-1.1Z"/></svg>'); }
.os-ico[data-os="android"] { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9h12v8a1 1 0 0 1-1 1h-1v3a1.5 1.5 0 0 1-3 0v-3h-2v3a1.5 1.5 0 0 1-3 0v-3H7a1 1 0 0 1-1-1V9Zm-2.5 0A1.5 1.5 0 0 1 5 10.5v4a1.5 1.5 0 0 1-3 0v-4A1.5 1.5 0 0 1 3.5 9Zm17 0a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4A1.5 1.5 0 0 1 20.5 9ZM7.7 3.2l1 1.8A6.6 6.6 0 0 1 12 4.3c1.2 0 2.3.2 3.3.7l1-1.8a.4.4 0 0 1 .7.4l-1 1.8A6 6 0 0 1 18.5 8h-13a6 6 0 0 1 2.5-2.6L7 3.6a.4.4 0 0 1 .7-.4ZM9.2 6.2a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2Zm5.6 0a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2Z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9h12v8a1 1 0 0 1-1 1h-1v3a1.5 1.5 0 0 1-3 0v-3h-2v3a1.5 1.5 0 0 1-3 0v-3H7a1 1 0 0 1-1-1V9Zm-2.5 0A1.5 1.5 0 0 1 5 10.5v4a1.5 1.5 0 0 1-3 0v-4A1.5 1.5 0 0 1 3.5 9Zm17 0a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4A1.5 1.5 0 0 1 20.5 9ZM7.7 3.2l1 1.8A6.6 6.6 0 0 1 12 4.3c1.2 0 2.3.2 3.3.7l1-1.8a.4.4 0 0 1 .7.4l-1 1.8A6 6 0 0 1 18.5 8h-13a6 6 0 0 1 2.5-2.6L7 3.6a.4.4 0 0 1 .7-.4ZM9.2 6.2a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2Zm5.6 0a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2Z"/></svg>'); }

.dl-primary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-decoration: none; padding: 15px 18px; border-radius: 13px;
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  color: #fff; border: 1px solid color-mix(in srgb, var(--red-hi) 80%, #fff);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 32px -16px var(--red);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}
.dl-primary:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.07);
                    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 20px 40px -16px var(--red); }
.dl-primary:active { transform: translateY(0); }
.dl-primary-main { display: grid; gap: 2px; min-width: 0; }
.dl-primary-label { font-size: 1.04rem; font-weight: 760; letter-spacing: -.012em; }
.dl-primary-sub {
  font-size: .78rem; opacity: .82; font-family: var(--mono);
  display: flex; min-width: 0;
}
/* The name may be clipped; the size never is. */
.dl-fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dl-sz { flex: none; white-space: nowrap; padding-left: .4em; }
.dl-arrow { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
            stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

/* dev channel recolours the whole card */
.dl[data-channel="dev"] .dl-primary {
  background: linear-gradient(180deg, var(--amber), #e59b2e);
  border-color: color-mix(in srgb, var(--amber) 85%, #fff);
  color: #231703;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 32px -16px var(--amber);
}
.dl[data-channel="dev"] .dl-primary:hover { color: #231703;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 20px 40px -16px var(--amber); }
.dl[data-channel="dev"] { box-shadow: 0 34px 70px -34px #000, 0 0 0 1px rgba(0,0,0,.4),
                                      0 0 60px -30px color-mix(in srgb, var(--amber) 48%, transparent); }
.dl[data-channel="dev"] .ver-pill { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 42%, transparent);
                                    background: color-mix(in srgb, var(--amber) 12%, transparent); }

.dl-alt { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.alt-btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: var(--card-2); border: 1px solid var(--line); color: var(--tx-2);
  font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 9px;
  transition: background .15s, border-color .15s, color .15s;
}
.alt-btn:hover { background: #222; border-color: #3c3c3c; color: var(--tx); }
.alt-size { color: var(--tx-3); font-family: var(--mono); font-size: .74rem; }

.dl-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: .79rem; color: var(--tx-3); margin: 13px 0 0; padding-bottom: 2px;
}
.dl-meta a { color: var(--tx-3); text-decoration: none; border-bottom: 1px solid var(--line); }
.dl-meta a:hover { color: var(--amber); border-color: var(--amber); }
.dot-sep { opacity: .45; }
.ver-pill {
  font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--red-hi);
  background: color-mix(in srgb, var(--red) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: 6px; padding: 2px 8px;
}

.dl-warn {
  display: flex; gap: 9px; align-items: flex-start; margin: 13px 0 2px;
  font-size: .8rem; line-height: 1.5; color: var(--amber);
  background: color-mix(in srgb, var(--amber) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
  border-radius: 10px; padding: 10px 12px;
}
.warn-ico { width: 17px; height: 17px; flex: none; margin-top: 1px; fill: none;
            stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dl-fail p { font-size: .88rem; color: var(--tx-2); }
.dl-primary-fallback { background: linear-gradient(180deg, #2a2a2a, #1d1d1d);
                       border-color: var(--line); box-shadow: none; }

/* other OS */
.other { border-top: 1px solid var(--line-soft); }
.other-toggle {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  background: none; border: 0; cursor: pointer; color: var(--tx-3);
  font: inherit; font-size: .84rem; font-weight: 650; padding: 13px 16px;
  transition: color .16s, background .16s;
}
.other-toggle:hover { color: var(--tx); background: rgba(255,255,255,.022); }
.chevs { display: inline-flex; flex-direction: column; gap: 1px; transition: transform .25s var(--ease); }
.chevs svg { width: 13px; height: 7px; fill: none; stroke: currentColor; stroke-width: 2.6;
             stroke-linecap: round; stroke-linejoin: round; }
.chevs svg:nth-child(1) { opacity: .95 }
.chevs svg:nth-child(2) { opacity: .55; margin-top: -3px }
.chevs svg:nth-child(3) { opacity: .25; margin-top: -3px }
.other-toggle[aria-expanded="true"] .chevs { transform: rotate(180deg); }

.other-panel { padding: 2px 16px 18px; animation: slide .22s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
.other-grid { display: grid; gap: 10px; }

.os-block {
  background: #0f0f0f; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 13px;
}
.os-block.is-current { border-color: color-mix(in srgb, var(--red) 40%, transparent);
                       background: color-mix(in srgb, var(--red) 5%, #0f0f0f); }
.os-block-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.os-block-head .os-ico { color: var(--tx-2); width: 16px; height: 16px; }
.os-block-name { color: var(--tx); font-weight: 700; font-size: .92rem; }
.os-block-note { color: var(--tx-3); font-size: .76rem; margin-left: auto; text-align: right; }
.os-files { display: flex; flex-wrap: wrap; gap: 7px; }
.os-file {
  display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 11px; color: var(--tx-2); font-size: .8rem; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.os-file:hover { background: #232323; border-color: var(--red); color: #fff; transform: translateY(-1px); }
/* the whole card follows the channel, so the current-OS highlight has to as well */
.dl[data-channel="dev"] .os-file:hover { border-color: var(--amber); }
.dl[data-channel="dev"] .os-block.is-current {
  border-color: color-mix(in srgb, var(--amber) 40%, transparent);
  background: color-mix(in srgb, var(--amber) 6%, #0f0f0f);
}
.os-file .alt-size { font-weight: 500; }

.other-foot { font-size: .76rem; color: var(--tx-3); margin: 13px 0 0; line-height: 1.55; }
.other-foot a { color: var(--tx-3); }

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

.stats { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
/* Dividers are borders between cells, not a background showing through 1px gaps:
   .stats-in is also a .wrap, so a background on it would paint the wrap's side
   padding too and leave a stray vertical band at each end of the row. */
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px 18px; display: grid; gap: 3px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-n { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; color: var(--tx);
          letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat:nth-child(1) .stat-n, .stat:nth-child(2) .stat-n { color: var(--red-hi); }
.stat-l { font-size: .76rem; color: var(--tx-3); }
@media (max-width: 720px) {
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 12px; }
  .stat:nth-child(odd) { border-left: 0; }          /* first cell of each row */
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

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

.sect { padding: clamp(58px, 8vw, 100px) 0; }
.sect-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.sect-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red-hi); margin-bottom: 13px;
}
.sect-sub { color: var(--tx-2); font-size: 1.02rem; margin-top: 16px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: #363636; transform: translateY(-2px); background: var(--card-2); }
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--red) 55%, transparent), transparent);
  opacity: 0; transition: opacity .25s var(--ease);
}
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .91rem; color: var(--tx-2); margin-bottom: 0; }

.card-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 15px; }
.card-ico svg { width: 20px; height: 20px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-red   { background: color-mix(in srgb, var(--red) 15%, transparent);
             box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 32%, transparent); }
.ico-red svg   { stroke: var(--red-hi); }
.ico-amber { background: color-mix(in srgb, var(--amber) 13%, transparent);
             box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 30%, transparent); }
.ico-amber svg { stroke: var(--amber); }

.card-list { list-style: none; margin: 14px 0 2px; padding: 0; display: grid; gap: 7px; }
.card-list li { position: relative; padding-left: 16px; font-size: .87rem; color: var(--tx-2); }
.card-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px;
                        border-radius: 50%; background: var(--red); }
.card-list-2 { grid-template-columns: 1fr 1fr; gap: 9px 22px; }
@media (max-width: 760px) { .card-list-2 { grid-template-columns: 1fr; } }

.card-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0,1fr) 230px;
             grid-template-areas: "ico shot" "title shot" "body shot" "list shot";
             align-content: start; gap: 0 26px; }
.card-wide .card-ico { grid-area: ico; }
.card-wide h3        { grid-area: title; font-size: 1.22rem; }
.card-wide > p       { grid-area: body; }
.card-wide .card-list{ grid-area: list; align-self: start; }
/* Centred, not bottom-anchored. The text column drives the card height, so on a
   card with a long list the shot is far shorter than its column; anchoring it to
   the bottom left a large void above it and read as a misalignment. */
.card-shot {
  grid-area: shot; align-self: center; justify-self: center;
  width: 100%; border-radius: 10px;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.55));
  transition: transform .35s var(--ease);
}
.card-wide:hover .card-shot { transform: translateY(-5px); }
.card-reverse { grid-template-columns: 230px minmax(0,1fr);
                grid-template-areas: "shot ico" "shot title" "shot body" "shot list"; }
@media (max-width: 980px) { .card-wide { grid-column: span 2; } }
@media (max-width: 860px) {
  .card-wide, .card-reverse {
    grid-template-columns: 1fr; grid-template-areas: "ico" "title" "body" "list" "shot";
  }
  .card-shot { max-width: 260px; margin: 18px auto 0; }
}
@media (max-width: 660px) { .card-wide { grid-column: span 1; } }

/* ============================= screenshots ============================= */

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px clamp(22px, 6vw, 60px) 26px; margin-top: -8px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  cursor: grab;
}
.shots.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.shots::-webkit-scrollbar-thumb:hover { background: #3d3d3d; }

.shot { margin: 0; flex: 0 0 auto; width: 236px; scroll-snap-align: center; }
.shot img {
  width: 100%; border-radius: 12px; background: #000;
  box-shadow: 0 16px 36px -18px #000; border: 1px solid var(--line-soft);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.shot img:hover { transform: translateY(-5px) scale(1.012); border-color: var(--red);
                  box-shadow: 0 24px 46px -18px #000, 0 0 36px -18px var(--red); }
.shot figcaption { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--tx-3); font-weight: 600; }
.shots-hint { font-size: .79rem; color: var(--tx-3); text-align: center; margin: 0; }

/* lightbox */
.lb { border: 0; background: transparent; padding: 0; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lb::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(5px); }
.lb[open] { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
            gap: 14px; width: 100vw; height: 100vh; padding: 20px; }
.lb img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 12px;
          box-shadow: 0 30px 70px -20px #000; }
.lb-cap { grid-column: 2; grid-row: 2; text-align: center; color: var(--tx-2); font-size: .88rem; margin: 10px 0 0; }
.lb-close {
  position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center;
}
.lb-nav { width: 44px; height: 44px; border-radius: 50%; background: var(--card);
          border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-close svg, .lb-nav svg { width: 19px; height: 19px; fill: none; stroke: var(--tx);
                             stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 620px) { .lb-nav { width: 36px; height: 36px; } .lb[open] { gap: 6px; padding: 12px; } }

/* ============================= systems ============================= */

.sys { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.sys-row { display: flex; align-items: center; gap: 16px; padding: 15px 18px;
           border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.sys-row:last-child { border-bottom: 0; }
.sys-row:hover { background: var(--card-2); }
.sys-os { display: flex; align-items: center; gap: 10px; color: var(--tx); font-weight: 700;
          min-width: 140px; flex: none; }
.sys-req { color: var(--tx-2); }
.sys-note { font-size: .85rem; color: var(--tx-3); margin-top: 18px; }
@media (max-width: 560px) {
  .sys-row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .sys-os { min-width: 0; }
}

/* ============================= telemetry ============================= */

.tele {
  display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 20px;
  background: linear-gradient(180deg, var(--card), #101010);
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius-lg); padding: 28px;
}
.tele-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
            background: color-mix(in srgb, var(--red) 15%, transparent);
            box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 34%, transparent); }
.tele-ico svg { width: 27px; height: 27px; fill: none; stroke: var(--red-hi); stroke-width: 1.8;
                stroke-linecap: round; stroke-linejoin: round; }
.tele-body h2 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); margin-bottom: 14px; }
.tele-body > p { font-size: .95rem; }
.tele-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
@media (max-width: 700px) { .tele-cols { grid-template-columns: 1fr; } .tele { grid-template-columns: 1fr; padding: 22px; } }
.tele-col { background: #0c0c0c; border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; }
.tele-col h3 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 11px; }
.tele-yes h3 { color: var(--amber); }
.tele-no  h3 { color: var(--success); }
.tele-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tele-col li { position: relative; padding-left: 20px; font-size: .86rem; color: var(--tx-2); line-height: 1.5; }
.tele-yes li::before { content: "↑"; position: absolute; left: 0; color: var(--amber); font-weight: 800; }
.tele-no  li::before { content: "✕"; position: absolute; left: 0; color: var(--success); font-weight: 800; font-size: .85em; }
.tele-off { font-size: .89rem; background: #0c0c0c; border: 1px dashed var(--line);
            border-radius: 11px; padding: 13px 16px; }
.tele-off strong { color: var(--tx); }

/* ============================= cta ============================= */

.cta { position: relative; padding: clamp(62px, 8vw, 104px) 0; text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 72% at 50% 108%, color-mix(in srgb, var(--red) 30%, transparent), transparent 70%);
}
.cta-in { position: relative; }
.cta-in p { color: var(--tx-2); margin: 16px auto 28px; max-width: 48ch; }
.cta-sub { font-size: .86rem; color: var(--tx-3); margin: 22px 0 0 !important; }
.cta-sub a { color: var(--tx-2); }

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

.foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: clamp(42px, 5vw, 60px) 0 0; }
.foot-in { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
@media (max-width: 880px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; gap: 26px; } }

.foot-tag { font-size: .87rem; color: var(--tx-2); margin: 14px 0 10px; max-width: 42ch; }
.foot-license { font-size: .76rem; color: var(--tx-3); line-height: 1.6; max-width: 46ch; margin: 0; }
.foot-license a { color: var(--tx-3); }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
               color: var(--tx-3); margin-bottom: 3px; font-weight: 800; }
.foot-col a { color: var(--tx-2); text-decoration: none; font-size: .87rem; }
.foot-col a:hover { color: var(--red-hi); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-block: 18px 26px;
  font-size: .78rem; color: var(--tx-3);
}
.foot-bottom p { margin: 0; }
.foot-note { max-width: 54ch; text-align: right; }
@media (max-width: 680px) { .foot-note { text-align: left; } }

/* ============================= legal pages ============================= */

.legal { max-width: 820px; }
.legal-head { padding: 44px 0 26px; border-bottom: 1px solid var(--line-soft); margin-bottom: 36px; }
.legal-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px;
              font-size: .82rem; color: var(--tx-3); }
.legal-meta b { color: var(--tx-2); font-weight: 600; }
.legal-body { padding-bottom: 70px; }
.legal-body h2 {
  font-size: 1.28rem; margin: 42px 0 14px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.legal-body h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 1.02rem; margin: 26px 0 10px; color: var(--tx); }
.legal-body p, .legal-body li { font-size: .95rem; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 1em; }
.legal-body li { margin-bottom: 7px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .88rem; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line-soft);
                                 vertical-align: top; }
.legal-body th { background: var(--card); color: var(--tx); font-weight: 700; }
.legal-body td { background: #0e0e0e; }
.legal-toc {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 34px;
}
.legal-toc h2 { font-size: .74rem !important; letter-spacing: .14em; text-transform: uppercase;
                color: var(--tx-3); margin: 0 0 10px !important; border: 0 !important; padding: 0 !important; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.legal-toc a { color: var(--tx-2); text-decoration: none; font-size: .89rem; }
.legal-toc a:hover { color: var(--red-hi); }
.callout {
  border-left: 3px solid var(--red); background: var(--card); border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 22px 0;
}
.callout.amber { border-left-color: var(--amber); }
.callout.green { border-left-color: var(--success); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--tx); }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem;
             color: var(--tx-3); text-decoration: none; margin-bottom: 26px; }
.back-link:hover { color: var(--red-hi); }
.legal-lang-note {
  font-size: .82rem; color: var(--tx-3); background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 11px 15px; margin: 0 0 26px;
}
