/* ============================================================
   Save Aja — all-in-one media downloader
   Design: glass / aurora, dark default + light theme
   ============================================================ */

:root { scroll-behavior: smooth; }

/* Smooth cross-document navigation (SPA-like) where supported. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
/* Persistent chrome: topbar, dock and aurora stay put while content morphs. */
.topbar { view-transition-name: topbar; }
.dock { view-transition-name: dock; }
.aurora { view-transition-name: aurora; }
::view-transition-group(topbar),
::view-transition-group(dock),
::view-transition-group(aurora) { animation-duration: 0.01s; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.32s; }

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-size: 15.5px; letter-spacing: -0.005em;
  --bg: #0c0710;
  --surface: rgba(255,255,255,0.05);
  --surface2: rgba(255,255,255,0.09);
  --glass: rgba(26,18,24,0.55);
  --glass2: rgba(34,22,30,0.74);
  --text: #faf6f4;
  --muted: rgba(248,238,236,0.58);
  --faint: rgba(248,238,236,0.40);
  --border: rgba(255,255,255,0.10);
  --border2: rgba(255,255,255,0.18);
  --seg: rgba(255,255,255,0.13);
  /* warm sunset accent — orange → rose (no blue neon) */
  --accent: #ff7a2f; --accent2: #f43f5e;
  --glow: 0.65;
  /* theme-aware shadows (kept subtle in light mode) */
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,0.55);
  --shadow-md: 0 16px 44px -18px rgba(0,0,0,0.5);
  transition: background 0.4s ease, color 0.4s ease;
}
body[data-theme="light"] {
  --bg: #f7f1ec;
  --surface: rgba(45,25,20,0.05);
  --surface2: rgba(45,25,20,0.08);
  --glass: rgba(255,255,255,0.66);
  --glass2: rgba(255,255,255,0.84);
  --text: #1f1418;
  --muted: rgba(31,20,24,0.60);
  --faint: rgba(31,20,24,0.42);
  --border: rgba(31,20,24,0.10);
  --border2: rgba(31,20,24,0.18);
  --seg: rgba(31,20,24,0.09);
  --shadow-lg: 0 20px 46px -28px rgba(31,20,24,0.20);
  --shadow-md: 0 12px 28px -16px rgba(31,20,24,0.14);
}

button { font: inherit; }
input::placeholder { color: var(--faint); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; }

/* kill the browser's default blue tap-flash / focus box on buttons & links */
* { -webkit-tap-highlight-color: transparent; }
button {
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-user-select: none; user-select: none;
}
a, summary, input { -webkit-tap-highlight-color: rgba(0,0,0,0); }
:focus { outline: none; }
button:focus, a:focus, summary:focus { outline: none; }
/* keyboard users still get a clear (warm, not blue) ring */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

[hidden] { display: none !important; }

@keyframes blobA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.18); } }
@keyframes blobB { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-50px,30px) scale(0.95); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- aurora background ---------- */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; opacity: var(--glow); }
.blob { position: absolute; border-radius: 50%; }
.blob-a { top: -180px; left: -120px; width: 560px; height: 560px; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); filter: blur(90px); opacity: 0.5; animation: blobA 14s ease-in-out infinite; }
.blob-b { top: -120px; right: -160px; width: 620px; height: 620px; background: radial-gradient(circle, var(--accent2) 0%, transparent 65%); filter: blur(100px); opacity: 0.38; animation: blobB 17s ease-in-out infinite; }
.blob-c { bottom: -260px; left: 30%; width: 700px; height: 700px; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); filter: blur(120px); opacity: 0.22; animation: blobB 21s ease-in-out infinite; }

/* ---------- glass helpers ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border);
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; pointer-events: none;
}
.logo-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px 8px 9px;
}
.logo-badge {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 14px -4px var(--accent);
}
.logo-badge.sm { width: 28px; height: 28px; border-radius: 9px; box-shadow: none; }
.logo-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 16.5px; letter-spacing: -0.02em; }
.logo-name.sm { font-size: 17px; }
.icon-pill {
  pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.icon-pill:hover { border-color: var(--border2); transform: translateY(-1px); }
body[data-theme="dark"] .ic-sun { display: none; }
body[data-theme="light"] .ic-moon { display: none; }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 150px; }
.section { margin-top: 96px; }
.section-title { text-align: center; font-weight: 680; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0; }
.section-sub { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 52ch; line-height: 1.6; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero { padding-top: 118px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: 12px; font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); animation: fadeUp 0.6s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px var(--accent);
}
.hero-title {
  font-weight: 700; font-size: clamp(1.95rem, 5vw, 3.25rem); line-height: 1.08;
  letter-spacing: -0.03em; margin: 20px 0 0; max-width: 15ch; text-wrap: balance;
  animation: fadeUp 0.6s 0.08s ease both;
}
.grad {
  background: linear-gradient(95deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 16px 0 0; max-width: 54ch; font-size: clamp(0.94rem, 1.4vw, 1.04rem);
  line-height: 1.62; color: var(--muted); text-wrap: pretty; animation: fadeUp 0.6s 0.16s ease both;
}
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--faint); animation: fadeUp 0.6s 0.32s ease both; }

/* ---------- tool card ---------- */
.tool-card {
  width: min(760px, 100%); margin-top: 36px; text-align: left;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border); border-radius: 28px; padding: 18px;
  box-shadow: var(--shadow-lg); animation: fadeUp 0.6s 0.24s ease both;
}
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.seg-group {
  display: inline-flex; gap: 4px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px;
}
.seg-btn {
  display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer;
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 650;
  transition: all 0.25s; background: transparent; color: var(--muted); white-space: nowrap;
}
.seg-btn.active { background: var(--seg); color: var(--text); }

.plat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; animation: fadeUp 0.3s ease both;
}
.plat-chip .plat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.input-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; padding: 8px;
}
.input-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--surface2); color: var(--muted); flex-shrink: 0;
}
#urlInput {
  flex: 1; min-width: 160px; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15.5px; padding: 8px 2px;
}
.paste-btn {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 650;
  cursor: pointer; transition: all 0.2s;
}
.paste-btn:hover { color: var(--text); border-color: var(--border2); }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
  border-radius: 14px; padding: 0 22px; height: 46px; font-size: 15px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 28px -8px var(--accent); transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -8px var(--accent); }
.submit-btn:active { transform: translateY(0); }

.quick-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.quick-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 650; color: var(--text);
  transition: all 0.25s; box-shadow: 0 0 0 0 transparent;
}
.quick-btn:hover { border-color: var(--border2); transform: translateY(-1px); }
.quick-btn.sel-instagram { box-shadow: 0 0 0 2px #E1306C88, 0 10px 28px -10px #E1306C66; }
.quick-btn.sel-tiktok    { box-shadow: 0 0 0 2px #FE2C5588, 0 10px 28px -10px #FE2C5566; }
.quick-btn.sel-youtube   { box-shadow: 0 0 0 2px #FF003388, 0 10px 28px -10px #FF003366; }
.quick-btn.sel-facebook  { box-shadow: 0 0 0 2px #1877F288, 0 10px 28px -10px #1877F266; }
.qi { display: inline-flex; }
.qi.ig, .plat-ic.ig, .hover-ig:hover { color: #E1306C; }
.qi.tt, .plat-ic.tt, .hover-tt:hover { color: #FE2C55; }
.qi.yt, .plat-ic.yt, .hover-yt:hover { color: #FF0033; }
.qi.fb, .plat-ic.fb { color: #1877F2; }

/* home: auto-detect status line */
.detect-line {
  display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 0 4px;
  font-size: 13.5px; font-weight: 650; color: var(--muted); animation: fadeUp 0.25s ease both;
}
.detect-line .plat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* home: platform chooser (for bare usernames) */
.chooser { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); animation: fadeUp 0.3s ease both; }
.chooser-label { margin: 0 0 10px; font-size: 13px; font-weight: 650; color: var(--muted); }
.chooser-row { display: flex; gap: 9px; flex-wrap: wrap; }
.choose-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 650; color: var(--text); transition: all 0.2s;
}
.choose-btn:hover { border-color: var(--border2); transform: translateY(-1px); }
.choose-btn .qi { display: inline-flex; }

/* platform page: capability pills under the hero */
.cap-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; animation: fadeUp 0.6s 0.3s ease both; }
.cap-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.cap-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* ---------- results ---------- */
.result-area { width: min(760px, 100%); margin: 0 auto; }

.loading-card {
  margin-top: 22px; border-radius: 24px; padding: 22px;
  display: flex; align-items: center; gap: 16px; animation: fadeUp 0.3s ease both;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border);
}
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--surface2); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
.loading-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.loading-lines strong { font-size: 14.5px; }
.shimmer {
  height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.shimmer.short { width: 60%; }

.video-card, .profile-card {
  margin-top: 22px; border-radius: 26px; animation: fadeUp 0.4s ease both;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--border);
}
.video-card { padding: 18px; }
.profile-card { padding: 20px; }
.video-flex { display: flex; gap: 18px; flex-wrap: wrap; }

.res-thumb {
  flex: 1 1 260px; min-width: 240px; aspect-ratio: 16/9; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  position: relative; display: grid; place-items: center; overflow: hidden;
}
.res-shine { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 55%); }
.res-play {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35); color: #fff;
}
.res-name {
  position: absolute; left: 12px; bottom: 10px; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11.5px; font-weight: 700; border-radius: 8px; padding: 4px 9px;
}
.res-info { flex: 1 1 280px; min-width: 250px; display: flex; flex-direction: column; gap: 6px; }
.res-info h3 { margin: 0; font-size: 17.5px; font-weight: 680; letter-spacing: -0.01em; }
.res-author { margin: 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.res-meta { margin: 0 0 8px; font-size: 12.5px; color: var(--faint); }

.res-options { display: flex; flex-direction: column; gap: 8px; }
.res-opt {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 15px; padding: 9px 10px 9px 12px;
}
.res-opt .fmt {
  font-family: ui-monospace, "SF Mono", monospace; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.08em; color: var(--muted); background: var(--surface2);
  border-radius: 7px; padding: 5px 8px; flex-shrink: 0;
}
.res-opt .lbl { flex: 1; font-size: 13.5px; font-weight: 650; min-width: 0; }
.res-opt .size { font-size: 12px; color: var(--faint); flex-shrink: 0; }
.res-opt .dl-mini {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  border: none; cursor: pointer; color: var(--text); background: var(--surface2);
  transition: transform 0.2s; flex-shrink: 0;
}
.res-opt .dl-mini.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.res-opt .dl-mini:hover { transform: translateY(-1px); }

.link-btn {
  align-self: flex-start; margin-top: 8px; background: transparent; border: none;
  cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 650; padding: 4px 0;
}
.link-btn:hover { color: var(--text); }

/* profile result */
.prof-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.prof-avatar {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 22px;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.4);
}
.prof-id { flex: 1; min-width: 160px; }
.prof-id h3 { margin: 0; font-size: 18px; font-weight: 680; }
.prof-id p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.prof-pic-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border2); color: var(--text);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 650;
}
.prof-pic-btn:hover { border-color: var(--accent); }

.prof-tabs {
  display: flex; gap: 6px; margin: 18px 0 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px;
  width: fit-content; max-width: 100%; overflow-x: auto;
}
.prof-tabs .seg-btn { padding: 8px 18px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.post-tile {
  aspect-ratio: 1/1; border-radius: 14px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tile-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 7px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.tile-bar span { color: #fff; font-size: 10.5px; font-weight: 700; }
.tile-dl {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px;
  border: none; cursor: pointer; background: rgba(255,255,255,0.25); color: #fff;
}

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.story-tile {
  aspect-ratio: 9/16; border-radius: 14px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.story-age {
  margin: 8px; align-self: flex-start; background: rgba(0,0,0,0.45); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 7px; padding: 3px 7px;
}
.story-tile .tile-bar { justify-content: flex-end; }
.stories-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

.hl-row { display: flex; gap: 18px; flex-wrap: wrap; }
.hl-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hl-ring { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--border2); }
.hl-item .hl-name { font-size: 12.5px; font-weight: 650; }
.hl-count {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 9px; padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.hl-count:hover { color: var(--text); }

.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.zip-btn {
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  border-radius: 13px; padding: 11px 20px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 26px -10px var(--accent); transition: transform 0.2s;
}
.zip-btn:hover { transform: translateY(-1px); }
.prof-actions .link-btn { margin-top: 0; align-self: center; }

/* ---------- platform cards ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 36px; }
.plat-card {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
a.plat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
a.menu-tool { text-decoration: none; }
.plat-head { display: flex; align-items: center; gap: 12px; }
.plat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.plat-ic.ig { background: rgba(225,48,108,0.14); }
.plat-ic.tt { background: rgba(254,44,85,0.13); }
.plat-ic.yt { background: rgba(255,0,51,0.12); }
.plat-ic.fb { background: rgba(24,119,242,0.13); }
.plat-head h3 { margin: 0; font-size: 17px; font-weight: 680; }
.plat-head div span { font-size: 11.5px; color: var(--faint); font-weight: 650; }
.plat-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.plat-card li { display: flex; align-items: center; gap: 9px; }
.plat-card li::before {
  content: ""; flex-shrink: 0; width: 13px; height: 13px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px 24px; }
.step-num {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-card h3 { margin: 10px 0 6px; font-size: 16.5px; font-weight: 700; font-family: inherit; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-top: 36px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.feat-ic { color: var(--accent); display: inline-flex; }
.feat-card h3 { margin: 10px 0 4px; font-size: 14.5px; font-weight: 700; font-family: inherit; }
.feat-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.faq .section-title { margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; }
.faq-list summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 650;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { transition: transform 0.25s; flex-shrink: 0; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list p { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- footer ---------- */
.footer { margin-top: 110px; border-top: 1px solid var(--border); padding-top: 44px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
.footer-brand { max-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-brand p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lang-switch { width: fit-content; }
.lang-switch .seg-btn { padding: 6px 14px; font-size: 12px; font-weight: 700; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; min-width: 180px; }
.footer-nav strong { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-nav a:hover { color: var(--text); }
.footer-note { margin: 40px 0 0; font-size: 12px; color: var(--faint); line-height: 1.6; }

/* ---------- floating glass dock ---------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; gap: 4px; align-items: center;
  background: var(--glass2);
  backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--border2); border-radius: 26px; padding: 7px;
  box-shadow: var(--shadow-md);
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 60px;
  padding: 8px 0 6px; border: none; cursor: pointer; border-radius: 19px;
  background: transparent; color: var(--muted); transition: all 0.25s; text-decoration: none;
}
.dock-btn span { font-size: 10px; font-weight: 700; }
.dock-btn:hover { background: var(--surface); }
.dock-btn.active { background: var(--seg); color: var(--text); }

/* ---------- menu sheet ---------- */
/* transparent click-catcher — NO dimming, NO blur over the page or the dock.
   The dock (z-index 60) stays fully sharp and visible above this layer. */
.menu-overlay {
  position: fixed; inset: 0; z-index: 55; background: transparent;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 14px calc(92px + env(safe-area-inset-bottom));
}
/* menu = a strip the SAME width as the dock, sitting right above it (parallel).
   Its width is matched to the dock in JS; items scroll horizontally if they
   overflow (swipe left for more). Rises out of the dock when opened. */
.menu-sheet {
  max-width: calc(100% - 28px); background: var(--glass2);
  backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--border2); border-radius: 26px; padding: 9px 9px 7px;
  box-shadow: var(--shadow-md);
  transform-origin: bottom center;
  animation: menuUp 0.26s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.menu-sheet.closing { animation: menuDown 0.2s cubic-bezier(0.4, 0, 0.7, 0.2) both; }
@keyframes menuUp { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes menuDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(18px) scale(0.97); } }
/* horizontal, swipeable row — mirrors the dock's button layout. overscroll +
   touch-action keep the scroll inside the strip so it doesn't drag the page. */
.menu-grid {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; padding-bottom: 7px;
  overscroll-behavior-x: contain; touch-action: pan-x;
  scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.menu-grid::-webkit-scrollbar { height: 3px; }
.menu-grid::-webkit-scrollbar-track { background: transparent; margin: 0 14px; }
.menu-grid::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 999px; }
/* each tool gets a thin, professional border */
.menu-tool {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 66px; padding: 11px 0 9px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); color: var(--muted); cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.menu-tool:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); transform: translateY(-1px); }
.menu-tool > span:first-child { display: inline-flex; }
.menu-tool svg { width: 22px; height: 22px; }
.menu-tool > span:last-child { font-size: 10.5px; font-weight: 700; }

/* lock page scroll while the menu is open so it stays anchored, not floaty */
body.menu-open { overflow: hidden; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 80;
  background: var(--glass2);
  backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--border2); border-radius: 999px; padding: 11px 20px;
  font-size: 13.5px; font-weight: 650;
  box-shadow: 0 16px 44px -12px rgba(0,0,0,0.5); animation: fadeUp 0.25s ease both;
  max-width: calc(100vw - 32px); text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .hero { padding-top: 102px; }
  .tool-card { padding: 14px; border-radius: 24px; }
  .submit-btn { flex: 1 1 100%; }
  .paste-btn { flex-shrink: 0; }
  .video-card, .profile-card { padding: 14px; }
  .section { margin-top: 80px; }
  .footer-cols { gap: 32px; }
}
@media (max-width: 380px) {
  .dock-btn { width: 54px; }
  .dock-btn span { font-size: 9px; }
  .quick-btn { padding: 8px 13px; font-size: 12.5px; }
}
