/* recoverer, same look as ahrix.io */

/* self-hosted Outfit, no google fonts request */
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #faf9f7;
  --fg: #1a1a1a;
  --heading: #111827;   /* gray-900 */
  --text: #374151;      /* gray-700 */
  --muted: #6b7280;     /* gray-500 */
  --faint: #9ca3af;     /* gray-400 */
  --fainter: #d1d5db;   /* gray-300 */
  --label: #999;
  --line: rgba(229, 231, 235, 0.6);  /* gray-200/60 */
  --rule: #e5e7eb;      /* gray-200 */
  --rule-soft: #f3f4f6; /* gray-100 */
  --sep: rgba(17, 24, 39, 0.08);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-line: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  --track: rgba(17, 24, 39, 0.04);
  --teal: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-soft: #2dd4bf;
  --blue: #60a5fa;
  --link-hover: #0d9488;
  --shimmer-base: #1a1a1a;
  --warn: #b45309;
  --number: #0d9488;   /* big counts */
}

.dark {
  --bg: #0a0a0f;
  --fg: #e5e5e5;
  --heading: #f3f4f6;   /* gray-100 */
  --text: #d1d5db;      /* gray-300 */
  --muted: #9ca3af;     /* gray-400 */
  --faint: #6b7280;     /* gray-500 */
  --fainter: #4b5563;   /* gray-600 */
  --label: #666;
  --line: rgba(31, 41, 55, 0.6);     /* gray-800/60 */
  --rule: #1f2937;      /* gray-800 */
  --rule-soft: #1f2937;
  --sep: rgba(255, 255, 255, 0.08);
  --glass: rgba(20, 20, 30, 0.5);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  --track: rgba(255, 255, 255, 0.05);
  --link-hover: #2dd4bf;
  --shimmer-base: #e5e5e5;
  --warn: #fbbf24;
  --number: #2dd4bf;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: Outfit, system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-ligatures: no-common-ligatures;
  transition: background-color 0.3s, color 0.3s;
}
::selection { background: rgba(74, 158, 142, 0.2); color: #2d6e63; }
a { color: inherit; }
.hidden { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; background: #111827; color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 50; font-size: 14px; font-weight: 500; }
.skip:focus { left: 16px; }

/* ===== background ===== */
.topbar { position: relative; z-index: 10; height: 3px; background: linear-gradient(to right, var(--teal), var(--teal-soft), var(--blue)); }
.animated-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.04) 0%, rgba(250, 249, 247, 0) 25%, rgba(59, 130, 246, 0.03) 50%, rgba(250, 249, 247, 0) 75%, rgba(20, 184, 166, 0.04) 100%);
  background-size: 400% 400%; animation: gradientShift 20s ease infinite;
}
.dark .animated-bg { background: linear-gradient(135deg, rgba(20, 184, 166, 0.06) 0%, rgba(10, 10, 15, 0) 25%, rgba(59, 130, 246, 0.05) 50%, rgba(10, 10, 15, 0) 75%, rgba(20, 184, 166, 0.06) 100%); background-size: 400% 400%; }
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle-light { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.04) 50%, transparent 100%); animation: particleFloat linear infinite; }
.dark .particle-light { background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.06) 50%, transparent 100%); }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: var(--p-opacity, 0.5); }
  90% { opacity: var(--p-opacity, 0.5); }
  100% { transform: translateY(-100vh) translateX(30px) scale(0.5); opacity: 0; }
}
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== layout ===== */
.page { position: relative; z-index: 10; max-width: 768px; margin: 0 auto; padding: 32px 24px 0; }
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; line-height: 32px; }
.theme-toggle { background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--faint); line-height: 0; transition: color 0.2s; }
.theme-toggle:hover { color: var(--muted); }
.theme-toggle .sun { display: none; }
.dark .theme-toggle .sun { display: inline; }
.dark .theme-toggle .moon { display: none; }
.tabs { display: flex; gap: 24px; margin-top: 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; color: var(--faint); padding-bottom: 10px; transition: color 0.3s; }
.tabs a:hover { color: var(--muted); }
.tabs a.active { color: var(--heading); font-weight: 500; border-bottom: 2px solid var(--teal); margin-bottom: -1px; }

.text-shimmer {
  background: linear-gradient(90deg, var(--shimmer-base) 0%, var(--shimmer-base) 40%, var(--teal) 50%, var(--shimmer-base) 60%, var(--shimmer-base) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
.section-label { text-transform: uppercase; letter-spacing: 0.25em; font-size: 11px; font-weight: 500; color: var(--label); margin: 0 0 16px; }
.section-label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.muted { color: var(--muted); margin: 0; }
.tiny { font-size: 12px; color: var(--faint); margin: 10px 0 0; overflow-wrap: anywhere; }

main { padding-bottom: 16px; }
.view { animation: rise 0.35s cubic-bezier(0.32, 0.72, 0, 1) both; }
body:not([data-view="home"]) .home-only { display: none; }
#view-scan, #view-results, #view-saved { margin-top: 48px; }

/* ===== buttons ===== */
.btn {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 999px; padding: 10px 20px;
  border: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--teal-600); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.btn.primary:hover { background: var(--teal-700); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2); }
.btn.big { font-size: 16px; font-weight: 600; padding: 13px 28px; }
.btn.ghost {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: var(--glass); color: var(--text); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
}
html:not(.dark) .btn.ghost { border-color: rgba(17, 24, 39, 0.08); }
.btn.ghost:hover { color: var(--teal-700); border-color: rgba(94, 234, 212, 0.6); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.dark .btn.ghost:hover { color: #2dd4bf; }
.btn.small { font-size: 12px; padding: 8px 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.link { font: inherit; font-size: 14px; background: none; border: 0; padding: 6px 8px; cursor: pointer; color: var(--faint); border-radius: 8px; transition: color 0.3s; }
.link:hover { color: var(--link-hover); }
.btn:focus-visible, .link:focus-visible, .tabs a:focus-visible, .theme-toggle:focus-visible, summary:focus-visible, input:focus-visible, .fab:focus-visible, .footer-list a:focus-visible, .footer-list button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ===== glass ===== */
.glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.card { border-radius: 16px; }

/* ===== home ===== */
.hero { margin-top: 48px; }
.product-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-name { font-size: clamp(3rem, 11vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0; padding-bottom: 4px; }
.alpha-pill {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent);
}
.headline { font-size: clamp(1.5rem, 4.2vw, 1.875rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--heading); margin: 10px 0 0; }
.hero-rule { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.sub { font-size: 16px; line-height: 1.625; color: var(--muted); margin: 0; max-width: 65ch; }

.alpha-bar { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 10px 10px 10px 16px; border-radius: 16px; }
.alpha-bar .bug-icon { color: var(--warn); flex: none; }
.alpha-note { flex: 1; margin: 0; font-size: 14px; color: var(--text); }
.alpha-bar .btn { flex: none; }

.drop {
  text-align: center; padding: 36px 24px 24px; margin-top: 20px;
  transition: border-color 0.3s, transform 0.3s, background-color 0.3s;
}
.drop.dragging { border-color: var(--teal-soft); transform: scale(1.01); background: rgba(20, 184, 166, 0.08); }
.drop-icon { color: var(--teal); display: block; margin: 0 auto 12px; }
.drop-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.drop .link { display: block; margin: 6px auto 0; }
.folder-hint { font-size: 13px; color: var(--faint); margin: 12px auto 0; max-width: 30em; }
.drop .permission { margin-top: 4px; }
.tiny-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.tiny-toggle input { accent-color: var(--teal); margin: 0; }
.drop-error { margin: 14px 0 0; color: var(--warn); font-size: 14px; }

.mobile-card { text-align: center; padding: 28px 22px; margin-top: 16px; }

.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--teal); font-weight: 600; margin-right: 6px; }

.synths { margin-top: 48px; }
.synths .section-label { margin-bottom: 12px; }
.synth-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  padding: 7px 12px; border-radius: 999px; font-size: 12px; line-height: 16px; color: var(--text); white-space: nowrap;
}
html:not(.dark) .pill { border-color: rgba(17, 24, 39, 0.06); }

/* ===== scanning ===== */
#view-scan { text-align: center; padding-bottom: 40px; }
.counter {
  font-size: clamp(4.5rem, 20vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 8px 0 0.16em;
  font-variant-numeric: tabular-nums; color: var(--number);
}
#view-scan .sub { margin: 0 auto 26px; }
.progress { height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; max-width: 420px; margin: 0 auto; }
.progress-bar { height: 100%; width: 0; border-radius: 4px; background: var(--teal); transition: width 0.2s; }
.ticker { list-style: none; padding: 0; margin: 28px auto 0; max-width: 520px; display: grid; gap: 6px; text-align: left; min-height: 330px; align-content: start; }
.ticker li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 9px 14px; border-radius: 10px; background: var(--track); animation: rise 0.25s ease both; }
.ticker li:nth-child(n+5) { opacity: 0.55; }
.ticker li:nth-child(n+7) { opacity: 0.25; }
.ticker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker em { font-style: normal; color: var(--teal); white-space: nowrap; }

/* ===== results ===== */
.results-headline { font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--heading); margin: 0 0 10px; }
.count-num { display: block; font-size: clamp(4rem, 17vw, 7rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--number); padding-bottom: 0.16em; }
#view-results .sub, #view-saved .sub { margin-bottom: 20px; }
.share-cta {
  background: rgba(20, 184, 166, 0.1); color: var(--teal-700); border: 1px solid rgba(45, 212, 191, 0.35);
  margin: 0 0 22px;
}
.dark .share-cta { color: var(--teal-soft); }
.share-cta:hover { background: rgba(20, 184, 166, 0.18); }
.btn.accent { background: rgba(20, 184, 166, 0.1); color: var(--teal-700); border-color: rgba(45, 212, 191, 0.4); }
.dark .btn.accent { color: var(--teal-soft); }
.btn.accent:hover { background: rgba(20, 184, 166, 0.18); }
.stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); min-width: 96px; }
.stats strong { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--heading); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--faint); }
.note { font-size: 13px; color: var(--faint); margin: -8px 0 18px; }
.mac-note { margin: 0 0 10px; color: var(--warn); }

.picker { margin-top: 8px; }
.picker-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.picker-tools input[type="search"] { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--fg); background: var(--glass); border: 1px solid var(--sep); border-radius: 12px; padding: 10px 14px; }
.pick-hint { font-size: 13px; color: var(--faint); margin: 0 0 12px; }
.groups { display: grid; gap: 8px; }
.group { border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); box-shadow: var(--glass-shadow); overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 12px; padding-left: 16px; }
.group-toggle { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 12px 16px 12px 0; cursor: pointer; }
.group-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 12px; }
.group-name { font-weight: 600; font-size: 15px; color: var(--heading); }
.badge { grid-column: 1; grid-row: 2; justify-self: start; font-size: 12px; margin-top: 2px; color: var(--faint); }
.badge.daw::before, .badge.warn::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; }
.badge.daw::before { color: var(--faint); }
.badge.warn::before { color: var(--warn); }
.group-count { grid-column: 2; grid-row: 1 / 3; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chevron { grid-column: 3; grid-row: 1 / 3; color: var(--faint); font-size: 20px; transition: transform 0.2s; }
.group.open .chevron { transform: rotate(90deg); }
.rows { display: none; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--sep); padding: 4px 0; }
.group.open .rows { display: block; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 7px 16px; font-size: 14px; cursor: pointer; }
.row[hidden] { display: none; }
.row:hover { background: var(--track); }
.row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.picker input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; flex: none; margin: 0; cursor: pointer; }

.save-bar { position: sticky; bottom: 16px; z-index: 5; margin-top: 22px; padding: 14px; border-radius: 16px; text-align: center; background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12); }
.dark .save-bar { box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35); }
.save-bar #download { font-size: 13px; }
.save-bar-inner { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.save-bar .btn.primary { flex: 1 1 260px; max-width: 420px; font-size: 15px; font-weight: 600; padding: 12px 20px; }
.save-bar .tiny { margin-top: 8px; }
.after-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 26px 0 8px; }

/* ===== saved ===== */
.where { padding: 20px 22px; margin: 6px 0 4px; }
.where-title { margin: 0 0 10px; font-weight: 600; color: var(--heading); }
.where-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 14px; line-height: 1.625; color: var(--muted); }
.where-list li + li { border-top: 1px solid var(--sep); padding-top: 14px; }
.where-note { color: var(--heading); font-weight: 500; }
.where-note p { margin: 0; }
.where-note .btn { margin-top: 10px; }
.where-more { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.where-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--heading); }
.where-count { color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.where-how { margin: 2px 0 0; }
.where-path { display: block; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.where-copy { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; }
.where-copy .where-path { margin: 0; color: var(--heading); }
.where-copy .copy { padding: 2px 8px; font-size: 13px; color: var(--teal); }
.where-tip { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ===== how it works + faq ===== */
.faq .section-label { margin-bottom: 24px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--teal-600); border: 1px solid rgba(20, 184, 166, 0.35); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.dark .step-n { color: var(--teal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* hero clips: a tab per step over one clip of the real page, in a browser window on a soft teal panel */
.demo { margin-top: 28px; padding: 12px 12px 16px; border-radius: 22px; background: rgba(20, 184, 166, 0.07); border: 1px solid rgba(13, 148, 136, 0.16); }
.dark .demo { background: rgba(45, 212, 191, 0.045); border-color: rgba(45, 212, 191, 0.12); }
.demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; min-height: 64px; }
.demo-tab {
  position: relative; display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 12px 14px 16px; border-radius: 14px; border: 1px solid transparent; background: none;
  font: inherit; color: var(--muted); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.demo-tab:hover { background: rgba(20, 184, 166, 0.08); }
.demo-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.demo-tab h3 { margin: 3px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: inherit; }
.demo-tab[aria-selected="true"] { background: var(--bg); border-color: rgba(13, 148, 136, 0.18); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06); color: var(--heading); }
.dark .demo-tab[aria-selected="true"] { background: #111118; border-color: rgba(45, 212, 191, 0.16); box-shadow: none; }
.demo-tab[aria-selected="true"] .step-n { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.demo-progress { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--track); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.demo-progress i { display: block; height: 100%; background: var(--teal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.demo-tab[aria-selected="true"] .demo-progress { opacity: 1; }
.demo-window { border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid rgba(17, 24, 39, 0.1); box-shadow: 0 18px 40px -22px rgba(17, 24, 39, 0.35); }
.dark .demo-window { border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.demo-bar { height: 34px; display: grid; place-items: center; background: #f0f1f3; border-bottom: 1px solid rgba(17, 24, 39, 0.07); }
.dark .demo-bar { background: #15151d; border-bottom-color: rgba(255, 255, 255, 0.06); }
.demo-url { display: inline-flex; align-items: center; gap: 6px; padding: 3px 16px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--bg); }
.dark .demo-url { background: #0c0c12; }
.demo-url svg { color: var(--faint); }
.demo-frame { position: relative; aspect-ratio: 3 / 2; background: var(--bg); }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.demo-play {
  position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--heading); cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--glass-shadow); transition: transform 0.2s, color 0.2s;
}
html:not(.dark) .demo-play { border-color: rgba(17, 24, 39, 0.08); }
.demo-play:hover { color: var(--teal-600); transform: scale(1.06); }
.dark .demo-play:hover { color: var(--teal-soft); }
.demo-play:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.demo-play .icon-play, .demo.paused .demo-play .icon-pause { display: none; }
.demo.paused .demo-play .icon-play { display: block; }
.demo-body { margin: 14px 6px 0; min-height: 3em; color: var(--text); font-size: 15px; line-height: 1.5; }
.demo-note { margin: 2px 6px 0; color: var(--faint); font-size: 12px; }
.faq { margin-top: 64px; }
.faq-items { display: grid; gap: 8px; }
.faq-item { border-radius: 12px; padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 0; font-size: 14px; font-weight: 500; color: var(--heading); display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.625; }
.synth-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13px; }
.synth-table th, .synth-table td { text-align: left; padding: 7px 8px 7px 0; border-top: 1px solid var(--sep); vertical-align: top; }
.synth-table th { font-weight: 600; color: var(--heading); width: 38%; }
.synth-table td { color: var(--muted); }
.synth-table .ext { white-space: nowrap; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ===== footer ===== */
.site-footer { position: relative; z-index: 10; margin-top: 64px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
.footer-inner { max-width: 768px; margin: 0 auto; padding: 48px 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-wordmark { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: var(--heading); }
.footer-tagline { margin: 12px 0 0; font-size: 14px; line-height: 1.625; color: var(--muted); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { color: var(--faint); line-height: 0; transition: color 0.3s; }
.footer-social a:hover { color: var(--teal-600); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a, .footer-list button { font: inherit; font-size: 14px; color: var(--faint); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.3s; }
.footer-list a:hover, .footer-list button:hover { color: var(--teal-600); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule-soft); display: grid; gap: 6px; }
.footer-bottom p { margin: 0; font-size: 12px; color: var(--fainter); }

/* ===== feedback ===== */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text); padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); transition: color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
html:not(.dark) .fab { border-color: rgba(17, 24, 39, 0.08); background: rgba(255, 255, 255, 0.85); }
.dark .fab { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.fab .bug-icon { color: var(--warn); }
.fab.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.fab:hover { color: var(--teal-700); border-color: rgba(94, 234, 212, 0.6); transform: translateY(-2px); }
.dark .fab:hover { color: var(--teal-soft); }
/* stay above the save bar on narrow windows (--save-bar comes from app.js) */
@media (max-width: 1240px) { body[data-view="results"] .fab { bottom: calc(var(--save-bar, 120px) + 28px); } }

.share-dialog { color: var(--fg); border-radius: 20px; padding: 22px; max-width: min(420px, calc(100vw - 32px)); width: 100%; text-align: center; background: var(--bg); }
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }
.share-preview { display: block; width: 100%; max-height: 58vh; object-fit: contain; border-radius: 14px; border: 1px solid var(--sep); }
.share-dialog .link { margin-top: 10px; }
.feedback-dialog { text-align: left; }
.feedback-intro { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.feedback-dialog textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: var(--track);
  border: 1px solid var(--sep); border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 120px;
}
.feedback-dialog textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.feedback-details { display: flex; margin-top: 10px; }
.feedback-dialog .actions { justify-content: flex-start; }
.feedback-dialog a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.folder-dialog { text-align: left; }
.folder-title { margin: 0 0 8px; font-weight: 600; color: var(--heading); }
.folder-dialog .actions { justify-content: flex-start; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--heading); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.example-count { font-size: clamp(3.6rem, 18vw, 5rem); margin: 0; }
.example-caption { margin: 6px auto 0; color: var(--muted); font-size: 15px; max-width: 26em; }
.divider { border: 0; border-top: 1px solid var(--sep); margin: 20px 0 18px; }
.mobile-card .section-label { margin-bottom: 4px; }

@media (min-width: 768px) {
  .page { padding: 40px 32px 0; }
  .hero { margin-top: 44px; }
  .footer-inner { padding: 64px 32px; }
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .demo { margin-top: 24px; padding: 8px 8px 12px; border-radius: 16px; }
  .demo-tabs { gap: 4px; margin-bottom: 8px; min-height: 96px; }
  .demo-tab { flex-direction: column; gap: 8px; padding: 10px 10px 14px; border-radius: 12px; }
  .demo-tab h3 { margin: 0; font-size: 13px; }
  .demo-progress { left: 10px; right: 10px; bottom: 6px; }
  .demo-window { border-radius: 10px; }
  .demo-bar { height: 24px; }
  .demo-url { font-size: 10px; padding: 1px 10px; gap: 4px; }
  .demo-url svg { width: 9px; height: 9px; }
  .demo-play { left: 8px; bottom: 8px; width: 32px; height: 32px; }
  .demo-body { margin-top: 10px; font-size: 14px; }
  .row-meta { display: none; }
  .save-bar { bottom: 10px; }
  .alpha-bar { flex-wrap: wrap; padding: 12px 14px; }
  .alpha-note { flex-basis: calc(100% - 30px); }
  .fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .animated-bg, .text-shimmer, .particle-light, .view, .ticker li { animation: none; }
  .particles { display: none; }
  .text-shimmer { -webkit-text-fill-color: var(--fg); background: none; }
  * { transition-duration: 0.01ms !important; }
}
