/* Vidstash public site. Brand: indigo → violet → pink on midnight navy (the app's own palette). */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --indigo: #6366f1;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 52%, var(--pink) 100%);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --gutter: 16px;
  --max: 1120px;
  --header-h: 64px;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #0e1430;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #131a38;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f5f9;
  --text-2: #b4bdd3;
  --muted: #8591ad;
  --primary: #818cf8;
  --primary-ink: #c7d2fe;
  --good: #34d399;
  --good-bg: rgba(52, 211, 153, 0.12);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --orb-opacity: 0.55;
  --track: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-2: #eef0ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-ink: #4338ca;
  --good: #047857;
  --good-bg: rgba(16, 185, 129, 0.12);
  --bad: #b91c1c;
  --bad-bg: rgba(239, 68, 68, 0.1);
  --warn: #b45309;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --shadow: 0 20px 50px -24px rgba(30, 27, 75, 0.25);
  --orb-opacity: 0.28;
  --track: rgba(15, 23, 42, 0.08);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--indigo); top: -160px; left: -120px; }
.aurora span:nth-child(2) { width: 460px; height: 460px; background: var(--violet); top: 18%; right: -160px; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 420px; height: 420px; background: var(--pink); top: 62%; left: 20%; opacity: calc(var(--orb-opacity) * 0.6); animation-delay: -16s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

/* ---------- Announcement ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px var(--gutter);
  background: var(--grad);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand.small { font-size: 1rem; }
.brand.small img { border-radius: 6px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.small { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.small .icon { width: 16px; height: 16px; }
.menu-btn { display: none; }
:root[data-theme="dark"] .theme-icon-light,
:root[data-theme="light"] .theme-icon-dark { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.98rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(139, 92, 246, 0.85); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-small .icon { width: 17px; height: 17px; }
.btn-large { min-height: 54px; padding: 12px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }
.btn.is-busy .icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero / downloader ---------- */
.hero { padding: 72px 0 36px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--primary); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); }
.hero h1 { font-size: clamp(2.05rem, 5.4vw, 3.7rem); font-weight: 850; max-width: 900px; margin: 0 auto; }
.lead { color: var(--text-2); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 660px; margin: 18px auto 0; }
.lead.left { margin-left: 0; }

.dl-card {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
}
.modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--track); margin-bottom: 14px; }
.mode {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600; font-size: 0.93rem;
  cursor: pointer;
}
.mode .icon { width: 17px; height: 17px; }
.mode:hover { color: var(--text); }
.mode.is-active { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.4); }

.url-form { display: flex; gap: 10px; }
.url-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 16px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.url-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.url-field > .icon { color: var(--muted); }
.url-field input {
  flex: 1; min-width: 0;
  height: 54px;
  border: 0; outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit; font-size: 1.02rem;
}
.url-field input::placeholder { color: var(--muted); }
.paste-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
}
.paste-btn .icon { width: 16px; height: 16px; }
.paste-btn:hover { color: var(--text); background: var(--surface-2); }
.btn-go { min-height: 56px; padding: 0 26px; border-radius: 14px; font-size: 1.02rem; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.notice .icon { margin-top: 2px; }
.notice.error { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--text); }
.notice.error .icon { color: var(--bad); }
.notice.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.warn .icon { color: var(--warn); }
.fineprint { margin-top: 12px; color: var(--muted); font-size: 0.84rem; }

.platforms { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.platforms li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem; font-weight: 600;
}

/* ---------- Results ---------- */
.results { margin-top: 8px; }
.result-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 22px;
  max-width: 980px; margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: rise 0.35s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--grad);
}
.thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); }
.thumb .ph .icon { width: 42px; height: 42px; }
.thumb .badge-time {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.72); color: #fff;
  font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.result-body { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.result-title { font-size: 1.22rem; font-weight: 750; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
}
.chip.platform { text-transform: capitalize; }
.group-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.formats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.format {
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}
.format .q { font-weight: 750; font-variant-numeric: tabular-nums; }
.format .q .hd { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 0.68rem; vertical-align: 2px; }
.format .meta { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.format.audio { border-style: dashed; }

.result-empty { max-width: 820px; margin: 0 auto; }

/* Playlist */
.pl-card { max-width: 980px; margin: 0 auto; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: rise 0.35s ease-out; }
.pl-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pl-head h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.pl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select {
  min-height: 40px; padding: 6px 34px 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text);
  font: inherit; font-size: 0.92rem;
}
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow: auto; padding-right: 4px; }
.pl-item { display: grid; grid-template-columns: auto 96px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border); cursor: pointer; }
.pl-item input { width: 18px; height: 18px; accent-color: var(--violet); }
.pl-item .mini-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--grad); }
.pl-item .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-item .t { min-width: 0; font-weight: 600; font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-item .d { color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.pl-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; }

/* ---------- Queue ---------- */
.queue { margin-top: 28px; }
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 980px; margin: 0 auto 12px; }
.queue-head h2 { font-size: 1.15rem; }
.queue .fineprint { max-width: 980px; margin: 10px auto 0; }
.queue-list { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 8px; }
.q-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.q-item .mini-thumb { width: 64px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--grad); display: grid; place-items: center; color: #fff; }
.q-item .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-main { min-width: 0; display: grid; gap: 6px; }
.q-title { font-weight: 650; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; }
.q-status .icon { width: 16px; height: 16px; }
.q-status.done { color: var(--good); }
.q-status.failed { color: var(--bad); }
.q-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 0.4s ease; }
.bar.indeterminate > i { width: 35%; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.q-actions { display: flex; gap: 6px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0 0; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 820; text-align: center; }
.section-title.left { text-align: left; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.96rem; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.feature { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.feature .icon { width: 24px; height: 24px; color: var(--primary); margin-top: 2px; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { color: var(--text-2); font-size: 0.93rem; }

/* ---------- App section ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.app-copy .eyebrow { margin-bottom: 18px; }
.apk-card {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.apk-head { display: flex; gap: 14px; align-items: center; }
.apk-head img { border-radius: 14px; }
.apk-name { font-weight: 800; font-size: 1.15rem; }
.apk-meta { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.apk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.apk-details { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.apk-details summary { cursor: pointer; font-weight: 650; color: var(--text-2); font-size: 0.94rem; }
.changelog { margin-top: 10px; color: var(--text-2); font-size: 0.94rem; }
.changelog ul { margin: 6px 0; padding-left: 20px; }
.changelog p + p { margin-top: 6px; }
.sha-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--border); }
.sha-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.sha-row code { flex: 1; min-width: 0; font-size: 0.78rem; color: var(--text-2); overflow-wrap: anywhere; }

.install-steps { margin: 22px 0 0; padding-left: 22px; color: var(--text-2); display: grid; gap: 6px; font-size: 0.96rem; }
.install-steps strong { color: var(--text); }

.app-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(99, 102, 241, 0.55);
  transform: rotate(2deg);
}
.phone img { border-radius: 30px; }
.qr-card {
  position: absolute; left: -18px; bottom: 26px;
  display: flex; gap: 12px; align-items: center;
  width: 280px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.86rem; color: var(--text-2);
}
.qr-card img { width: 96px; height: 96px; border-radius: 10px; background: #fff; }
.qr-card strong { color: var(--text); }

.compare-title { font-size: 1.3rem; margin: 56px 0 14px; text-align: center; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.compare thead th { font-size: 0.85rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface-2); }
.compare tbody th { font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td { width: 22%; color: var(--text-2); }
.compare td.yes .icon { color: var(--good); }
.compare td.no .icon { color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 0.66rem; letter-spacing: 0.04em; vertical-align: 1px; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.shots img { border-radius: 22px; border: 1px solid var(--border); scroll-snap-align: start; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--border); }
.faq:first-of-type { margin-top: 26px; border-top: 1px solid var(--border); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px;
  font-weight: 650; font-size: 1.03rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 4px 18px; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer-row p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 18px; font-size: 0.9rem; }
.footer-links a { color: var(--text-2); }

/* ---------- Modal + toast ---------- */
.modal {
  width: min(440px, calc(100vw - 32px));
  padding: 24px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(5, 8, 20, 0.6); backdrop-filter: blur(4px); }
.modal h2 { font-size: 1.25rem; margin-bottom: 10px; }
.modal p { color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-weight: 600; font-size: 0.93rem;
  animation: rise 0.25s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app-grid { grid-template-columns: 1fr; gap: 36px; }
  .app-visual { order: -1; }
  .qr-card { display: none; }
  .result-card { grid-template-columns: 1fr; }
  .thumb { max-width: 520px; }
}

@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 14px;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 10px; }
  .steps, .feature-row { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .hero { padding-top: 44px; }
  .dl-card { padding: 12px; border-radius: 20px; }
  .modes { display: flex; width: 100%; }
  .mode { flex: 1; justify-content: center; padding: 8px 6px; }
  .url-form { flex-direction: column; }
  .btn-go { width: 100%; }
  .paste-btn span { display: none; }
  .format { grid-template-columns: auto 1fr; }
  .format .btn { grid-column: 1 / -1; width: 100%; }
  .pl-item { grid-template-columns: auto 72px 1fr; }
  .pl-item .mini-thumb { width: 72px; }
  .pl-item .d { display: none; }
  .q-item { grid-template-columns: 44px 1fr; }
  .q-item .mini-thumb { width: 44px; }
  .q-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .apk-actions .btn { width: 100%; }
  .section { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .bar.indeterminate > i, .btn.is-busy .icon { animation: none; }
  .result-card, .pl-card, .toast { animation: none; }
}

@media (forced-colors: active) {
  .btn-primary, .step-num, .tag { border: 1px solid ButtonText; }
  .grad { color: CanvasText; background: none; }
}
