/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fd;
  --bg-band: #f3f5fc;
  --surface: #ffffff;
  --border: #e6e9f2;
  --border-strong: #d5dae7;

  --text: #0b1020;
  --text-2: #4a5268;
  --text-3: #6b7388;

  --blue: #2563eb;
  --blue-2: #3b82f6;
  --violet: #7c3aed;
  --pink: #ec4899;
  --red: #f43f5e;
  --grad: linear-gradient(90deg, #2563eb 0%, #5b47f0 55%, #7c3aed 100%);
  --grad-text: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #8b5cf6 100%);


  --shadow-sm: 0 2px 8px rgba(17, 24, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(37, 52, 120, 0.10);
  --shadow-card: 0 18px 40px rgba(60, 50, 150, 0.18);

  --radius: 16px;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Print", cursive;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0f1c;
  --bg-soft: #10162a;
  --bg-band: #0f1528;
  --surface: #151c32;
  --border: #232c46;
  --border-strong: #2f3a5a;

  --text: #f2f4fb;
  --text-2: #b4bbd0;
  --text-3: #8b93ab;


  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

.muted { color: var(--text-3); }
.small { font-size: 13px; }

.cjk { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-weight: 700; }

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

.gradient-text.light {
  background: linear-gradient(90deg, #60a5fa, #818cf8 60%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow.light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn .arrow { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn-gradient {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79, 70, 229, 0.35); }
.btn-gradient:disabled { opacity: 0.7; cursor: progress; transform: none; }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; margin-top: 10px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}

.logo-mark svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: 48px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--blue); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(196, 181, 253, 0.28), transparent 70%),
    radial-gradient(40% 50% at 95% 75%, rgba(147, 197, 253, 0.25), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 20px;
}

/* Link bar sits in its own centered row under the hero */
.hero-search {
  position: relative;
  z-index: 6;
  padding-bottom: 44px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin-top: 22px;
  max-width: 440px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.link-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 14px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 10px 34px rgba(60, 72, 140, 0.13), 0 0 0 1px var(--border);
}

.link-bar:focus-within { box-shadow: 0 10px 34px rgba(60, 72, 140, 0.16), 0 0 0 2px var(--blue-2); }

.link-icon { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

.link-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 6px;
}

.link-bar input::placeholder { color: var(--text-3); }

.link-bar .btn { padding: 13px 24px; }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.btn-ghost svg { width: 17px; height: 17px; }
.link-bar .btn-ghost { padding: 12px 16px; }

.supported-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
}

.supported-line span + span::before {
  content: "|";
  margin: 0 10px;
  color: var(--text-3);
}

/* Hero art: the four post cards. Sizes use container units so the whole scene scales together. */
.hero-art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 610 / 440;
  width: 100%;
}

.hero-glow {
  position: absolute;
  inset: -6% -10% -8% 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    conic-gradient(from 200deg, #c4b5fd, #a5b4fc, #93c5fd, #f0abfc, #c4b5fd);
  filter: blur(28px);
  opacity: 0.55;
}

:root[data-theme="dark"] .hero-glow { opacity: 0.25; }

.post-card {
  position: absolute;
  background: #fff;
  border-radius: 3.2cqw;
  padding: 1.4cqw;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 0.6cqw 0.6cqw 1.6cqw;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6cqw;
  color: #111;
}

.post-head img { width: 5.4cqw; height: 5.4cqw; border-radius: 1.4cqw; }

.post-media {
  position: relative;
  flex: 1;
  border-radius: 2cqw;
  overflow: hidden;
  background: #1f2937;
}

.post-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 7.6cqw;
  height: 7.6cqw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0.45cqw solid rgba(255, 255, 255, 0.95);
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(2px);
}

.play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 1.5cqw 0 1.5cqw 2.4cqw;
  border-color: transparent transparent transparent #fff;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 2cqw 1cqw 0.8cqw;
  color: #111;
}

.post-actions svg { width: 3.8cqw; height: 3.8cqw; }
.post-actions .heart-fill { fill: #f43f5e; }
.post-actions .bookmark { margin-left: auto; }

.card-tiktok    { left: 4%;  top: 17%; width: 22%; height: 66%; transform: rotate(-14deg); z-index: 1; }
.card-douyin    { left: 24%; top: 9%;  width: 23%; height: 70%; transform: rotate(-5deg);  z-index: 2; }
.card-facebook  { left: 70%; top: 13%; width: 25%; height: 66%; transform: rotate(9deg);   z-index: 3; }
.card-instagram { left: 46%; top: 2%;  width: 27%; height: 76%; transform: rotate(2deg);   z-index: 4; }

.dash-arc {
  position: absolute;
  right: 3%;
  top: -1%;
  width: 16%;
  color: #818cf8;
  opacity: 0.8;
}

.sparkle {
  position: absolute;
  width: 3cqw;
  height: 3cqw;
  background: #6366f1;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0.85;
}

.sparkle.s1 { left: 51%; top: -4%; background: #3b82f6; }
.sparkle.s2 { left: 46%; top: 86%; background: #60a5fa; width: 2.6cqw; height: 2.6cqw; }
.sparkle.s3 { left: 62%; top: 88%; background: #a78bfa; width: 2cqw; height: 2cqw; }
.sparkle.s4 { right: 4%; top: 80%; background: #38bdf8; width: 2cqw; height: 2cqw; }

.script-note {
  position: absolute;
  right: -2%;
  bottom: -4%;
  display: flex;
  align-items: flex-end;
  gap: 0.6cqw;
  font-family: var(--font-script);
  font-size: 5cqw;
  line-height: 1;
  color: var(--text);
  transform: rotate(-12deg);
  z-index: 5;
}

.script-arrow { width: 7cqw; color: #6366f1; margin-bottom: 2cqw; }

/* ---------- Results ---------- */
.results { display: grid; gap: 16px; }
.results:has(> :not(.hidden)) { padding-top: 8px; padding-bottom: 32px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.alert {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

:root[data-theme="dark"] .alert { color: #fca5a5; background: #2a1215; border-color: #5b1d24; }

.loader { display: flex; align-items: center; gap: 14px; color: var(--text-2); }

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--blue) 20%, transparent);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cookie-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-panel p { color: var(--text-2); font-size: 14px; margin-top: 4px; max-width: 620px; }
.cookie-panel code { font-size: 13px; }

.result-single {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
}

.result-thumb {
  width: 180px;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-soft);
}

.result-body h2 {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  margin: 4px 0 2px;
}

.field-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.quality-list { display: grid; gap: 10px; }

.quality-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.quality-row strong { display: block; font-size: 14.5px; }
.quality-row .muted { font-size: 13px; }
.quality-list .quality-row:first-child { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); }
#audio-control-box { margin-top: 10px; }

.bulk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.bulk-head h2 { font-family: var(--font-head); font-size: 22px; }

.bulk-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.select {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
}

.result-bulk > .small { margin: 8px 0 18px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}

.gallery-card img { aspect-ratio: 9 / 13; object-fit: cover; width: 100%; }

.gallery-info { padding: 10px 12px 12px; display: grid; gap: 8px; }

.gallery-title {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.gallery-info .btn { padding: 9px 12px; font-size: 13px; }

/* ---------- Features ---------- */
.features { padding: 26px 0 30px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  text-align: center;
  padding: 4px 16px;
}

.feature + .feature { border-left: 1px solid var(--border); }

.feature img { width: 66px; height: 66px; margin: 0 auto 12px; object-fit: contain; }

.feature h3 { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }

/* ---------- Platforms ---------- */
.platforms {
  background: var(--bg-band);
  padding: 22px 0 14px;
}

.section-head { text-align: center; }

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.section-head p { color: var(--text-2); margin-top: 6px; font-size: 14.5px; }

/* Always one row of four, as in the design; narrow screens scroll the row sideways */
.platform-grid {
  margin-top: 26px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.platform-grid::-webkit-scrollbar { display: none; }

/* Each card is one of the supplied platform posters */
.poster-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #0b0f1c;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card img { width: 100%; height: 100%; object-fit: cover; }

button.poster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.poster-card.is-soon { cursor: default; }

.poster-card .soon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 15, 28, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- How it works ---------- */
.how { padding-top: 22px; padding-bottom: 22px; }

.how-panel {
  background: var(--bg-band);
  border-radius: 22px;
  padding: 24px 36px 34px;
}

.how-panel .section-head h2 { font-size: clamp(22px, 2.6vw, 26px); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 18px;
  margin-top: 26px;
}

.step { display: flex; align-items: flex-start; gap: 18px; }

.step-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 6px;
}

.step-icon svg { width: 26px; height: 26px; }

.step-1 .step-icon { background: #e3ecfd; color: #3b82f6; }
.step-2 .step-icon { background: #ece7fd; color: #7c3aed; }
.step-3 .step-icon { background: #fde4ea; color: #f43f5e; }

:root[data-theme="dark"] .step-1 .step-icon { background: #172446; }
:root[data-theme="dark"] .step-2 .step-icon { background: #241a46; }
:root[data-theme="dark"] .step-3 .step-icon { background: #3a1724; }

.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}

.step-1 .step-num { color: #2563eb; }
.step-2 .step-num { color: #7c3aed; }
.step-3 .step-num { color: #f43f5e; }

.step h3 { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin: 8px 0 4px; }
.step p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* Centered on the 58px step icons (6px offset + 29px - half the arrow) */
.step-arrow { display: flex; margin-top: 25px; color: var(--text-3); }
.step-arrow svg { width: 20px; height: 20px; }

/* ---------- Banner + FAQ ---------- */
.closing {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: stretch;
}

.banner {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 16, 38, 0.82) 0%, rgba(11, 16, 38, 0.55) 45%, rgba(11, 16, 38, 0) 80%),
    url("/static/img/banner-traveler.jpg") 70% 40% / cover no-repeat;
  /* Sweeping curve along the top and right edge, as in the design */
  clip-path: ellipse(100% 118% at 0% 100%);
}

.banner-copy { padding: 70px 40px 40px max(24px, calc((100vw - 1120px) / 2 + 24px)); color: #fff; }

.banner h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}

.banner p { font-size: 15px; color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }

.faq {
  padding: 30px max(24px, calc((100vw - 1120px) / 2 + 24px)) 40px 28px;
}

.faq h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  margin: 2px 0 14px;
}

.faq details {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 9px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--text);
  border-bottom: 1.8px solid var(--text);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }

.faq details > p { padding: 0 14px 12px; font-size: 13.5px; color: var(--text-2); }
.faq details > .btn { margin: 0 14px 6px; }
.faq details > .small { display: block; padding: 0 14px 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { max-width: 560px; margin: 10px auto 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .feature:nth-child(3) { border-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step-arrow { display: none; }
  .closing { grid-template-columns: 1fr; }
  .banner { clip-path: ellipse(160% 120% at 0% 100%); }
  .faq { padding: 30px 24px 40px; }
  .result-single { grid-template-columns: 1fr; }
  .result-thumb { width: 140px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 9px 16px; font-size: 14px; }
  .logo { font-size: 20px; }
  .link-bar { flex-wrap: wrap; padding: 8px; }
  .link-icon { margin-left: 8px; }
  .link-bar input { flex: 1 1 calc(100% - 40px); padding: 10px 4px; }
  .link-bar .btn { flex: 1; padding: 12px 14px; }
  .link-bar .btn-ghost { flex: 0 0 auto; }
  .hero-search { padding-bottom: 32px; }
  .how-panel { padding: 22px 20px 26px; }
  .cookie-panel, .quality-row { flex-direction: column; align-items: stretch; }
  .banner-copy { padding: 60px 16px 36px; }
  .faq { padding: 28px 16px 36px; }
}

/* ---------- Skip link (keyboard users) ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

.terms-note {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

.terms-note a { color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 36px 0 28px;
  font-size: 13.5px;
  color: var(--text-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 420px; }
.footer-brand p { margin-top: 10px; }

.logo-sm { font-size: 18px; }
.logo-sm .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.logo-sm .logo-mark svg { width: 16px; height: 16px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: flex-start;
}

.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

.footer-legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; padding-top: 36px; padding-bottom: 64px; }

.legal-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-nav a {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--text-2);
}

.legal-nav a[aria-current="page"] { border-color: var(--blue); color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }

.legal-body { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.legal-body .lead { font-size: 17px; color: var(--text); }
.legal-body h2 { font-family: var(--font-head); font-size: 20px; color: var(--text); margin: 34px 0 10px; scroll-margin-top: 90px; }
.legal-body p, .legal-body ul, .legal-body ol { margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--blue); }
.legal-body strong { color: var(--text); }

.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal-table th { color: var(--text); font-weight: 600; background: var(--bg-soft); }

.config-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* ---------- Error page ---------- */
.error-page { text-align: center; padding-top: 90px; padding-bottom: 110px; }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: 72px; line-height: 1; color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.error-page h1 { font-family: var(--font-head); font-size: 28px; margin: 10px 0 8px; }
.error-page p { color: var(--text-2); margin-bottom: 26px; }

@media (max-width: 560px) {
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  .legal-table td { border: 0; padding: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}

/* Brand wordmark: "SaveItOk" + gradient ".com", as in the brand art */
.logo-tld {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Footer columns ---------- */
.footer-col { flex-direction: column; gap: 8px; }
.footer-title { font-weight: 600; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-inner { gap: 32px 56px; }
.footer-brand { flex: 1 1 280px; }

/* ---------- Landing pages (/tiktok-downloader, /douyin-downloader) ---------- */
.landing-hero {
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(196, 181, 253, 0.28), transparent 70%),
    radial-gradient(40% 70% at 10% 10%, rgba(147, 197, 253, 0.22), transparent 70%),
    var(--bg);
}

.landing-head { text-align: center; padding-top: 30px; padding-bottom: 28px; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.landing-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.landing-lead {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 16px;
}

.landing-body { max-width: 820px; padding-top: 12px; padding-bottom: 56px; }

.landing-section { margin-top: 40px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }

.landing-section h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
}

.landing-section p, .landing-section ul { margin-bottom: 12px; }
.landing-section ul { padding-left: 22px; }
.landing-section li { margin-bottom: 6px; }
.landing-section strong { color: var(--text); }
.landing-section a { color: var(--blue); }
.landing-section code { font-size: 13px; word-break: break-all; }

.howto {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.howto li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 64px;
  background: var(--bg-band);
  border-radius: 14px;
}

.howto li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--grad);
}

.howto strong { display: block; margin-bottom: 2px; }

.landing-faq .faq { padding: 0; }

.related-links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.related-links a:hover { border-color: var(--blue); color: var(--blue); }

/* Text links to the per-platform guide pages, under the posters */
.platform-guides {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--text-3);
}

.platform-guides a { color: var(--blue); font-weight: 500; }

/* ---------- Ads (only rendered when AdSense is configured) ---------- */
.ad-slot { margin-top: 8px; margin-bottom: 24px; text-align: center; }
.ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.adsbygoogle { display: block; min-height: 90px; }
.landing-body .ad-slot { padding: 0; }

/* "Coming soon" notice on a landing page whose platform is switched off */
.soon-note {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--text-2);
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--border));
}
.soon-note a { color: var(--blue); }

/* ---------- Audio to text ---------- */
.transcribe-tool { max-width: 760px; padding-bottom: 36px; }
.transcribe-form { display: grid; gap: 18px; }

.tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-soft); border-radius: 12px; width: fit-content; }
.tab {
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone svg { width: 30px; height: 30px; color: var(--blue); }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--bg-soft)); }
.dropzone.has-file strong { color: var(--blue); }

.transcribe-form .link-bar { max-width: none; margin: 0; }

.transcribe-options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; }
.transcribe-options .field-label { margin: 0 0 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; padding-bottom: 10px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--blue); }

.transcribe-form .btn-lg { justify-self: start; }
.transcribe-form .terms-note { text-align: left; margin-top: -6px; }

.transcript-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.transcript-head h2 { font-family: var(--font-head); font-size: 20px; margin: 2px 0; }
.transcript-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.transcript-actions .btn { padding: 9px 14px; font-size: 14px; }

.transcript-text {
  max-height: 460px;
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 15px;
  line-height: 1.7;
}
.transcript-line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 3px 0; }
.transcript-line time { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text-3); padding-top: 3px; }

.quality-row .btn-transcribe { margin-left: auto; }

@media (max-width: 560px) {
  .transcript-line { grid-template-columns: 1fr; gap: 0; }
  .transcribe-form .btn-lg { justify-self: stretch; }
}
.result-body .quality-row + .quality-row { margin-top: 10px; }
