/* Galleria landing — dark museum style, matching the app. */
:root {
  --bg: #121214;
  --bg-2: #17171a;
  --surface: #1e1e22;
  --surface-2: #26262b;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(232, 196, 106, 0.28);
  --text: #f3efe8;
  --muted: #a7a29a;
  --red: #990116;
  --accent: #ff6b7a;
  --gold: #e8c46a;
  --gold-2: #c9a24a;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.center .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; margin-top: 18px; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 19px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico.flip { transform: scaleX(-1); }

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.topbar.scrolled { background: rgba(18, 18, 20, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.topbar-end { display: flex; align-items: center; gap: 10px; }

.btn-mini {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-mini:hover { background: #b3021b; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font: 600 13px var(--sans); cursor: pointer; transition: border-color 0.2s;
}
.lang-btn:hover, .lang.open .lang-btn { border-color: var(--line-gold); }
.lang-btn .ico { width: 17px; height: 17px; color: var(--gold); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current] .code { color: var(--gold); }
.lang-menu .code { width: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; padding: calc(120px + env(safe-area-inset-top)) 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(153, 1, 22, 0.38), transparent 70%),
    radial-gradient(40% 40% at 90% 85%, rgba(232, 196, 106, 0.12), transparent 70%),
    radial-gradient(50% 60% at 0% 0%, rgba(255, 107, 122, 0.06), transparent 70%),
    linear-gradient(180deg, #121214 0%, #141316 60%, var(--bg) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%);
  opacity: 0.35;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.05; }
.hero .lead { max-width: 540px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badges.center { justify-content: center; }
.badge {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.badge:hover { transform: translateY(-2px); border-color: var(--line-gold); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(232, 196, 106, 0.06); }
.badge > svg { width: 28px; height: 28px; flex: none; }
.badge-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge-txt small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.badge-txt b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.badge.is-soon { cursor: default; }
.badge.is-soon > svg, .badge.is-soon .badge-txt b { opacity: 0.6; }
.badge .soon { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; opacity: 1; }
.badge.is-soon { border-style: dashed; border-color: rgba(232, 196, 106, 0.4); }

.stats { display: flex; gap: 38px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 520px; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--text); }
.stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; height: 640px; }
.halo {
  position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 106, 0.18), rgba(153, 1, 22, 0.12) 45%, transparent 70%);
  filter: blur(10px);
}
.halo::before, .halo::after {
  content: ''; position: absolute; inset: 40px; border-radius: 50%; border: 1px solid var(--line-gold); opacity: 0.45;
}
.halo::after { inset: -30px; opacity: 0.18; }

/* ── Phone mockup ─────────────────────────────────────────────── */
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 390 / 844;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(145deg, #3b3b40 0%, #17171a 30%, #0a0a0b 70%, #2c2c30 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #050506,
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 20px 40px -10px rgba(0, 0, 0, 0.6);
}
.phone::before { /* side button */
  content: ''; position: absolute; right: -2px; top: 26%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #2a2a2e;
}
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.125); background: #000; }
.phone-screen::before { /* dynamic island */
  content: ''; position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * 0.03); transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * 0.085); border-radius: 999px; background: #000;
}
.phone-screen::after { /* glass glare */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.03) 100%);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.hero-visual .phone { position: absolute; }
.phone-front { --w: 300px; left: 50%; top: 50%; transform: translate(-30%, -50%) rotate(3deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone-back { --w: 262px; left: 50%; top: 50%; transform: translate(-100%, -46%) rotate(-7deg); opacity: 0.92; filter: saturate(0.9) brightness(0.8); }
@keyframes float {
  0%, 100% { transform: translate(-30%, -50%) rotate(3deg); }
  50% { transform: translate(-30%, -52.5%) rotate(2.4deg); }
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.pillar {
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(30, 30, 34, 0.5));
  border: 1px solid var(--line);
}
.pillar::before { /* gilded frame corner */
  content: ''; position: absolute; inset: 10px; border: 1px solid var(--line-gold); border-radius: 12px; opacity: 0.35; pointer-events: none;
}
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); }
.pillar h3 { font-size: 26px; margin: 10px 0 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: 0.85fr 1.15fr; }
.split.reverse .split-copy { order: 2; }
.split-visual { display: flex; justify-content: center; position: relative; }
.split-visual::before {
  content: ''; position: absolute; width: 420px; height: 420px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(153, 1, 22, 0.28), transparent 68%); z-index: -1;
}
.phone-tilt-r { transform: rotate(2.5deg); }
.phone-tilt-l { transform: rotate(-2.5deg); }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.mode {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.mode:hover { border-color: var(--line-gold); transform: translateY(-2px); background: #222226; }
.mode .ico { color: var(--gold); margin-top: 2px; }
.mode h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.mode p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
.mode:last-child:nth-child(odd) { grid-column: 1 / -1; }

.feature-list { display: grid; gap: 26px; margin-top: 40px; }
.feature-list li { display: flex; gap: 18px; }
.feature-ico {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(153, 1, 22, 0.16); border: 1px solid rgba(255, 107, 122, 0.22); color: var(--accent);
}
.feature-list h3 { font-size: 21px; }
.feature-list p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.duo { height: 600px; }
.duo .phone { position: absolute; top: 50%; left: 50%; }
.phone-duo-a { --w: 270px; transform: translate(-88%, -50%) rotate(-4deg); filter: brightness(0.85); }
.phone-duo-b { --w: 290px; transform: translate(-18%, -46%) rotate(3deg); z-index: 2; }

.path { overflow: hidden; }
.path-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 85% 50%, rgba(232, 196, 106, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.checks { display: grid; gap: 14px; margin-top: 30px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(232, 196, 106, 0.14); color: var(--gold); }

.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.card { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.card h3 { margin: 20px 0 8px; font-size: 20px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ── Screenshots rail ─────────────────────────────────────────── */
.screens { overflow: hidden; }
.screens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: border-color 0.2s, color 0.2s;
}
.rail-btn:hover { border-color: var(--line-gold); color: var(--gold); }
.rail {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 50px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 20px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  outline: none;
}
.rail::-webkit-scrollbar { display: none; }
.shot { margin: 0; flex: none; scroll-snap-align: start; width: 248px; }
.phone-sm { --w: 248px; transition: transform 0.35s; }
.shot:hover .phone-sm { transform: translateY(-6px); }
.shot figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.45; padding-right: 10px; }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-box {
  position: relative; text-align: center; padding: clamp(50px, 7vw, 84px) var(--gutter);
  border-radius: 28px; overflow: hidden; max-width: calc(var(--maxw) - 2 * var(--gutter));
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(153, 1, 22, 0.55), transparent 70%),
    linear-gradient(180deg, #1c1a1d, #151416);
  border: 1px solid var(--line-gold);
}
.cta-box::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--line-gold); border-radius: 20px; opacity: 0.4; pointer-events: none; }
.cta-icon { margin: 0 auto 26px; border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.cta .lead { margin-bottom: 4px; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 54px 0 calc(40px + env(safe-area-inset-bottom)); background: #0f0f11; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px 40px; }
.footer-brand p { margin-top: 12px; max-width: 280px; }
.footer-links, .footer-langs { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-links a:hover, .footer-langs a:hover { color: var(--text); }
.footer-langs a[aria-current] { color: var(--gold); }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* ── 404 ──────────────────────────────────────────────────────── */
.nf { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 30%, rgba(153, 1, 22, 0.3), transparent 70%), var(--bg); }
.nf-main { text-align: center; padding: 60px var(--gutter); }
.nf-code { font-family: var(--serif); font-size: clamp(90px, 18vw, 160px); line-height: 1; color: var(--gold); margin: 30px 0 10px; font-style: italic; }
.nf h1 { font-size: 34px; }
.btn { display: inline-flex; margin-top: 28px; padding: 14px 24px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; }

/* ── Reveal on scroll ─────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-front { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1180px) and (min-width: 921px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
  .hero-visual { height: 580px; }
  .phone-front { --w: 262px; }
  .phone-back { --w: 222px; transform: translate(-88%, -46%) rotate(-7deg); }
  .halo { width: 440px; height: 440px; }
  .duo { height: 540px; }
  .phone-duo-a { --w: 228px; transform: translate(-82%, -50%) rotate(-4deg); }
  .phone-duo-b { --w: 248px; transform: translate(-22%, -46%) rotate(3deg); }
}

@media (max-width: 1080px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { gap: 40px; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .topbar-end { margin-left: auto; }
  .hero { padding-top: calc(104px + env(safe-area-inset-top)); padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .stats { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-visual { height: 560px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .split-copy > .reveal:first-child, .path .split-copy { text-align: left; }
  .pillars { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .topbar-inner { height: 60px; gap: 12px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .btn-mini { display: none; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .badges { gap: 10px; }
  .badge { height: 52px; padding: 0 16px 0 14px; gap: 9px; }
  .badge > svg { width: 24px; height: 24px; }
  .badge-txt b { font-size: 18px; }
  .stats { gap: 22px; }
  .stats dt { font-size: 24px; }
  .hero-visual { height: 470px; margin-top: 10px; }
  .phone-front { --w: 230px; transform: translate(-24%, -50%) rotate(3deg); animation: none; }
  .phone-back { --w: 196px; transform: translate(-84%, -46%) rotate(-7deg); }
  .halo { width: 360px; height: 360px; }
  .mode-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .card .feature-ico { grid-row: span 2; }
  .card h3 { margin: 2px 0 4px; font-size: 18px; }
  .pillars { gap: 14px; margin-top: 44px; }
  .pillar { padding: 26px 24px; }
  .duo { height: 470px; }
  .phone-duo-a { --w: 200px; }
  .phone-duo-b { --w: 216px; }
  .split-visual .phone-tilt-r, .split-visual .phone-tilt-l { --w: 250px; }
  .split-visual::before { width: 320px; height: 320px; }
  .shot { width: 210px; }
  .phone-sm { --w: 210px; }
  .rail { gap: 18px; padding-top: 36px; }
  .rail-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── /download ────────────────────────────────────────────────── */
.dl-page { min-height: 100vh; }
.dl-page .hero-bg { position: fixed; }
.dl { position: relative; padding: calc(48px + env(safe-area-inset-top)) 0 calc(36px + env(safe-area-inset-bottom)); text-align: center; overflow: hidden; }
.dl-icon { margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-gold); }
.dl h1 { font-size: clamp(32px, 7vw, 52px); }
.dl .lead { margin-top: 12px; }
.dl-status { margin-top: 22px; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.dl-status::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.dl-status.done::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl-choose { margin-top: 26px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dl .badges { margin-top: 18px; }
.badge.is-primary { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 196, 106, 0.12), 0 16px 34px rgba(0, 0, 0, 0.5); transform: scale(1.04); }
.badge.is-secondary { opacity: 0.7; }
.dl-manual { margin-top: 16px; font-size: 14px; }
.dl-rail { padding-top: 40px; justify-content: safe center; }
.dl-site { margin-top: 18px; font-size: 13px; }
.dl-site a { color: var(--muted); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) {
  .dl { padding-top: calc(32px + env(safe-area-inset-top)); }
  .dl-icon { width: 80px; height: 80px; }
  .dl .badges { flex-direction: column; align-items: center; }
  .dl .badge { width: 230px; justify-content: center; }
}
.dl [hidden] { display: none !important; }
