/* =============================================
   Video Downloader — Professional UI
   YouTube-inspired, eye-friendly palette
   ============================================= */

:root {
  --yt-red: #d64545;
  --yt-red-hover: #bf3a3a;
  --yt-red-dark: #a33333;
  --yt-red-soft: #fdf2f2;
  --yt-red-glow: rgba(214, 69, 69, 0.08);
  --yt-red-ring: rgba(214, 69, 69, 0.18);

  --background: #f3f4f6;
  --background-alt: #eceef2;
  --surface: #ffffff;
  --surface-elevated: #fafbfc;
  --text: #0f0f0f;
  --text-secondary: #52525b;
  --muted: #71717a;
  --primary: var(--yt-red);
  --primary-hover: var(--yt-red-hover);
  --primary-light: var(--yt-red-soft);
  --border: #e4e4e7;
  --border-focus: #e8a0a0;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --shadow-xs: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 15, 15, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 15, 15, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 15, 15, 0.1);
  --shadow-red: 0 8px 24px rgba(214, 69, 69, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1120px;
  --header-height: 68px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
  /* X (Twitter) — readable on light and dark UI */
  --x-accent: #0f1419;
  --x-accent-hover: #272c30;
  --x-accent-soft: rgba(15, 20, 25, 0.08);
  --x-accent-border: rgba(15, 20, 25, 0.15);
  --x-accent-glow: rgba(15, 20, 25, 0.12);
  --x-accent-ring: rgba(15, 20, 25, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --x-accent: #e7e9ea;
    --x-accent-hover: #ffffff;
    --x-accent-soft: rgba(231, 233, 234, 0.12);
    --x-accent-border: rgba(231, 233, 234, 0.28);
    --x-accent-glow: rgba(231, 233, 234, 0.1);
    --x-accent-ring: rgba(231, 233, 234, 0.22);
    --background: #0f0f0f;
    --background-alt: #181818;
    --surface: #1a1a1a;
    --surface-elevated: #212121;
    --text: #f1f1f1;
    --text-secondary: #aaaaaa;
    --muted: #71717a;
    --primary-light: rgba(214, 69, 69, 0.1);
    --border: #2a2a2a;
    --border-focus: #c95a5a;
    --yt-red-soft: rgba(214, 69, 69, 0.1);
    --yt-red-glow: rgba(214, 69, 69, 0.06);
    --error-bg: #2a1515;
    --success-bg: #152a15;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-red: 0 8px 28px rgba(214, 69, 69, 0.18);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--yt-red-glow), transparent 70%),
    linear-gradient(180deg, var(--background-alt) 0%, var(--background) 40%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--yt-red-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 0, 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--yt-red);
  text-decoration-color: var(--yt-red);
}

@media (prefers-color-scheme: dark) {
  a {
    color: #e07070;
    text-decoration-color: rgba(224, 112, 112, 0.4);
  }

  a:hover {
    color: #e88888;
  }
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(214, 69, 69, 0.22));
  transition: transform var(--transition), filter var(--transition);
}

.logo:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(214, 69, 69, 0.28));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.main-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--text);
  background: var(--primary-light);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.main-nav a.nav-tool {
  font-size: 0.875rem;
  padding: 0.5rem 0.625rem;
}

.main-nav a.nav-tool-instagram.active { color: #E1306C; background: rgba(225, 48, 108, 0.1); }
.main-nav a.nav-tool-facebook.active { color: #1877F2; background: rgba(24, 119, 242, 0.1); }
.main-nav a.nav-tool-twitter.active { color: var(--x-accent); background: var(--x-accent-soft); }
.main-nav a.nav-tool-tiktok.active { color: #FE2C55; background: rgba(254, 44, 85, 0.1); }

.main-nav a.nav-tool-instagram:hover { color: #E1306C; }
.main-nav a.nav-tool-facebook:hover { color: #1877F2; }
.main-nav a.nav-tool-twitter:hover { color: var(--x-accent); }
.main-nav a.nav-tool-tiktok:hover { color: #FE2C55; }

.main-nav-tools {
  position: relative;
}

.tools-dropdown {
  position: relative;
}

.tools-dropdown-toggle {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1.75rem 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.tools-dropdown-toggle:hover {
  color: var(--text);
  background: var(--primary-light);
}

.tools-dropdown-toggle::after {
  content: '';
  position: absolute;
  right: 0.625rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.tools-dropdown.is-open .tools-dropdown-toggle {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.tools-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 200;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.tools-dropdown.is-open .tools-dropdown-menu {
  display: block;
}

.tools-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.tools-dropdown-menu a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tools-dropdown-menu a.tool-tiktok::before { background: #FE2C55; }
.tools-dropdown-menu a.tool-instagram::before { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45); }
.tools-dropdown-menu a.tool-facebook::before { background: #1877F2; }
.tools-dropdown-menu a.tool-twitter::before { background: var(--x-accent); }

.tools-dropdown-menu a:hover,
.tools-dropdown-menu a.active {
  background: var(--primary-light);
  color: var(--text);
  text-decoration: none;
}

.tools-dropdown-menu a.tool-tiktok.active { color: #FE2C55; }
.tools-dropdown-menu a.tool-instagram.active { color: #E1306C; }
.tools-dropdown-menu a.tool-facebook.active { color: #1877F2; }
.tools-dropdown-menu a.tool-twitter.active { color: var(--x-accent); }

/* ---- Platform themes ---- */

body.platform-tiktok {
  --primary: #fe2c55;
  --primary-hover: #e0264a;
  --primary-light: rgba(254, 44, 85, 0.1);
  --yt-red: #fe2c55;
  --yt-red-hover: #e0264a;
  --yt-red-dark: #c41f42;
  --yt-red-soft: rgba(254, 44, 85, 0.1);
  --yt-red-glow: rgba(254, 44, 85, 0.14);
  --yt-red-ring: rgba(254, 44, 85, 0.22);
  --border-focus: rgba(254, 44, 85, 0.45);
  --shadow-red: 0 8px 24px rgba(254, 44, 85, 0.22);
}

body.platform-instagram {
  --primary: #e1306c;
  --primary-hover: #c13584;
  --primary-light: rgba(225, 48, 108, 0.1);
  --yt-red: #e1306c;
  --yt-red-hover: #c13584;
  --yt-red-dark: #a01f55;
  --yt-red-soft: rgba(225, 48, 108, 0.1);
  --yt-red-glow: rgba(225, 48, 108, 0.14);
  --yt-red-ring: rgba(225, 48, 108, 0.22);
  --border-focus: rgba(225, 48, 108, 0.45);
  --shadow-red: 0 8px 24px rgba(225, 48, 108, 0.22);
}

body.platform-facebook {
  --primary: #1877f2;
  --primary-hover: #1464d0;
  --primary-light: rgba(24, 119, 242, 0.1);
  --yt-red: #1877f2;
  --yt-red-hover: #1464d0;
  --yt-red-dark: #0f5cc0;
  --yt-red-soft: rgba(24, 119, 242, 0.1);
  --yt-red-glow: rgba(24, 119, 242, 0.14);
  --yt-red-ring: rgba(24, 119, 242, 0.22);
  --border-focus: rgba(24, 119, 242, 0.45);
  --shadow-red: 0 8px 24px rgba(24, 119, 242, 0.22);
}

body.platform-twitter {
  --primary: var(--x-accent);
  --primary-hover: var(--x-accent-hover);
  --primary-light: var(--x-accent-soft);
  --yt-red: var(--x-accent);
  --yt-red-hover: var(--x-accent-hover);
  --yt-red-dark: var(--x-accent);
  --yt-red-soft: var(--x-accent-soft);
  --yt-red-glow: var(--x-accent-glow);
  --yt-red-ring: var(--x-accent-ring);
  --border-focus: var(--x-accent-border);
  --shadow-red: 0 8px 24px var(--x-accent-glow);
}

body.platform-tiktok .logo img {
  filter: drop-shadow(0 2px 8px rgba(254, 44, 85, 0.28));
}

body.platform-instagram .logo img {
  filter: drop-shadow(0 2px 8px rgba(225, 48, 108, 0.28));
}

body.platform-facebook .logo img {
  filter: drop-shadow(0 2px 8px rgba(24, 119, 242, 0.28));
}

body.platform-twitter .logo img {
  filter: drop-shadow(0 2px 8px var(--x-accent-glow));
}

@media (prefers-color-scheme: dark) {
  body.platform-twitter {
    --yt-red: #2f3336;
    --yt-red-hover: #454b50;
    --yt-red-dark: var(--x-accent);
    --shadow-red: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  body.platform-twitter .btn-download,
  body.platform-twitter .search-bar .btn-download {
    background: linear-gradient(180deg, #454b50 0%, var(--yt-red) 100%);
    color: #fff;
  }
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  border-color: var(--border-focus);
  background: var(--primary-light);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 2px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---- Language switcher ---- */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4375rem 1.75rem 0.4375rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.lang-dropdown-toggle:hover {
  border-color: var(--border-focus);
  color: var(--text);
}

.lang-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.lang-dropdown-toggle::after {
  content: '';
  position: absolute;
  right: 0.625rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.lang-dropdown[open] .lang-dropdown-toggle {
  background: var(--primary-light);
  border-color: var(--border-focus);
  color: var(--yt-red);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 200;
  min-width: 11rem;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lang-dropdown-menu a {
  display: block;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius-sm) - 2px);
  transition: color var(--transition), background var(--transition);
}

.lang-dropdown-menu a:hover {
  color: var(--yt-red);
  background: var(--primary-light);
  text-decoration: none;
}

.lang-dropdown-menu a.active {
  color: var(--yt-red);
  font-weight: 600;
  background: var(--primary-light);
}

[dir="rtl"] .lang-dropdown-toggle {
  padding: 0.4375rem 0.75rem 0.4375rem 1.75rem;
}

[dir="rtl"] .lang-dropdown-toggle::after {
  right: auto;
  left: 0.625rem;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
  text-align: right;
}

[dir="rtl"] .search-bar,
[dir="rtl"] .header-inner,
[dir="rtl"] .endbar-matrix {
  direction: rtl;
}

[dir="rtl"] .logo,
[dir="rtl"] .main-nav,
[dir="rtl"] .steps-grid,
[dir="rtl"] .faq-list {
  direction: rtl;
}

/* ---- Home hub (platform cards) ---- */

.hub-stage {
  padding: 2.75rem 0 2.25rem;
}

.hub-stage-copy {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  text-align: center;
}

.hub-stage-copy h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 auto 1rem;
  max-width: 720px;
}

.hub-hero-lead {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
  max-width: 720px;
}

.hub-hero-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1rem;
  text-align: left;
}

.hub-hero-text:last-child {
  margin-bottom: 0;
}

.hub-hero-text a {
  color: var(--yt-red-dark);
  font-weight: 600;
}

.hub-services-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hub-services-lead {
  color: var(--text-secondary);
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 640px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hub-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.125rem;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.hub-card-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--background-alt);
}

.hub-card--youtube {
  grid-column: 1 / -1;
}

.hub-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hub-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.hub-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.hub-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hub-card-cta {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hub-card--youtube { border-color: rgba(255, 0, 0, 0.18); }
.hub-card--youtube .hub-card-icon { color: #ff0000; background: rgba(255, 0, 0, 0.08); }
.hub-card--youtube .hub-card-cta { color: #d64545; }
.hub-card--youtube:hover { border-color: rgba(255, 0, 0, 0.35); }

.hub-card--instagram { border-color: rgba(225, 48, 108, 0.18); }
.hub-card--instagram .hub-card-icon { color: #e1306c; background: rgba(225, 48, 108, 0.08); }
.hub-card--instagram .hub-card-cta { color: #e1306c; }
.hub-card--instagram:hover { border-color: rgba(225, 48, 108, 0.35); }

.hub-card--facebook { border-color: rgba(24, 119, 242, 0.18); }
.hub-card--facebook .hub-card-icon { color: #1877f2; background: rgba(24, 119, 242, 0.08); }
.hub-card--facebook .hub-card-cta { color: #1877f2; }
.hub-card--facebook:hover { border-color: rgba(24, 119, 242, 0.35); }

.hub-card--twitter { border-color: var(--x-accent-border); }
.hub-card--twitter .hub-card-icon { color: var(--x-accent); background: var(--x-accent-soft); }
.hub-card--twitter .hub-card-cta { color: var(--x-accent); }
.hub-card--twitter:hover { border-color: var(--x-accent-border); }

.hub-card--tiktok { border-color: rgba(254, 44, 85, 0.18); }
.hub-card--tiktok .hub-card-icon { color: #fe2c55; background: rgba(254, 44, 85, 0.08); }
.hub-card--tiktok .hub-card-cta { color: #fe2c55; }
.hub-card--tiktok:hover { border-color: rgba(254, 44, 85, 0.35); }

body.platform-hub .logo img {
  filter: drop-shadow(0 2px 8px rgba(214, 69, 69, 0.22));
}

.hub-copy {
  padding: 0.5rem 0 4rem;
}

.hub-copy-wide {
  width: 100%;
  max-width: var(--max-width);
}

.hub-copy-intro,
.hub-copy p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.hub-copy-intro {
  color: var(--text-secondary);
}

.hub-copy-intro:first-child {
  margin-top: 0;
}

.hub-copy-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hub-copy-heading:not(:first-child) {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hub-copy p:last-child {
  margin-bottom: 0;
}

.hub-copy a {
  color: var(--yt-red-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-copy a:hover {
  color: var(--yt-red);
}

@media (prefers-color-scheme: dark) {
  .hub-copy a {
    color: #e07070;
  }

  .hub-copy a:hover {
    color: #e88888;
  }
}

/* ---- Hero ---- */

.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.625rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--yt-red), #ff6b6b);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-format-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-format-badge--mp4 {
  color: var(--yt-red);
  background: var(--primary-light);
  border: 1px solid color-mix(in srgb, var(--yt-red) 25%, transparent);
}

.hero-format-badge--mp3 {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.hero--mp3 h1::after {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.format-crosslink {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.format-crosslink a {
  font-weight: 600;
  text-decoration: none;
  color: var(--yt-red);
}

.format-crosslink a:hover {
  text-decoration: underline;
}

.hero--mp3 .format-crosslink a {
  color: #7c3aed;
}

.hero--tiktok h1::after {
  background: linear-gradient(90deg, #FE2C55, #25F4EE);
}

.hero--instagram h1::after {
  background: linear-gradient(90deg, #833AB4, #FD1D1D, #FCAF45);
}

.hero--facebook h1::after {
  background: linear-gradient(90deg, #1877F2, #42B72A);
}

.hero--twitter h1::after {
  background: linear-gradient(90deg, var(--x-accent), #536471);
}

.hero-format-badge--tiktok {
  color: #FE2C55;
  background: rgba(254, 44, 85, 0.1);
  border: 1px solid rgba(254, 44, 85, 0.25);
}

.hero-format-badge--instagram {
  color: #E1306C;
  background: rgba(225, 48, 108, 0.1);
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.hero-format-badge--facebook {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.1);
  border: 1px solid rgba(24, 119, 242, 0.25);
}

.hero-format-badge--twitter {
  color: var(--x-accent);
  background: var(--x-accent-soft);
  border: 1px solid var(--x-accent-border);
}

.hero--tiktok .home-faq h2::after,
.hero--tiktok ~ .info-section h2::after,
.hero--tiktok ~ .save-locations-section h2::after {
  background: #FE2C55;
}

.hero--instagram ~ .info-section h2::after,
.hero--instagram ~ .save-locations-section h2::after,
body.platform-instagram .home-faq h2::after {
  background: linear-gradient(90deg, #833AB4, #FD1D1D);
}

.hero--facebook ~ .info-section h2::after,
.hero--facebook ~ .save-locations-section h2::after,
body.platform-facebook .home-faq h2::after {
  background: #1877F2;
}

.hero--twitter ~ .info-section h2::after,
.hero--twitter ~ .save-locations-section h2::after,
body.platform-twitter .home-faq h2::after {
  background: var(--x-accent);
}

/* ---- Download Form ---- */

.download-form {
  max-width: 720px;
  margin: 0 auto;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  padding: 0.3125rem 0.3125rem 0.3125rem 0.875rem;
  box-shadow: 0 4px 24px rgba(15, 15, 15, 0.12);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: #c8dff5;
  box-shadow: 0 4px 24px rgba(15, 15, 15, 0.14), 0 0 0 3px rgba(59, 130, 196, 0.15);
}

.search-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: #9ca3af;
}

.search-bar-icon svg {
  width: 100%;
  height: 100%;
}

.format-type-toggle {
  display: flex;
  flex-shrink: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1875rem;
  gap: 0.125rem;
}

.format-type-option {
  position: relative;
  cursor: pointer;
}

.format-type-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.format-type-option span {
  display: block;
  padding: 0.5625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: calc(var(--radius-sm) - 2px);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.format-type-option input:checked + span {
  color: #fff;
  background: var(--yt-red);
  box-shadow: var(--shadow-xs);
}

.format-type-option input:focus-visible + span {
  outline: 2px solid var(--yt-red);
  outline-offset: 1px;
}

.url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  padding: 0.625rem 0.25rem;
  color: #1f2937;
  outline: none;
  min-width: 0;
}

.url-input::placeholder {
  color: #9ca3af;
}

.format-picker {
  position: relative;
  flex-shrink: 0;
}

.format-picker-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 40px;
  min-width: 5.25rem;
  padding: 0.4375rem 0.625rem;
  border: none;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.format-picker.is-open .format-picker-toggle,
.format-picker-toggle:hover {
  background: #e3f0ff;
  border-color: #8bb8e8;
}

.format-picker-toggle:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 2px;
}

.format-picker-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-picker-chevron {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #3b82c4;
  transition: transform 0.2s ease;
}

.format-picker.is-open .format-picker-chevron {
  transform: rotate(180deg);
}

.format-picker-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
  min-width: 10rem;
  z-index: 120;
  margin: 0;
  padding: 0.375rem 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.format-picker-option {
  width: 100%;
  display: block;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.format-picker-option:hover,
.format-picker-option.is-active {
  background: #eef6ff;
  color: #1e4b7a;
}

.format-picker-option:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: -2px;
}

.search-bar .btn-download {
  flex-shrink: 0;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.btn-download {
  flex-shrink: 0;
  background: linear-gradient(180deg, #dc5050 0%, var(--yt-red) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-red);
}

.btn-download:hover:not(:disabled) {
  background: linear-gradient(180deg, #e05555 0%, var(--yt-red-hover) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(214, 69, 69, 0.2);
}

.btn-download:active:not(:disabled) {
  transform: translateY(0);
}

.btn-download:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-download:focus-visible {
  outline: 2px solid var(--yt-red-dark);
  outline-offset: 2px;
}

.input-hint {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Loading ---- */

.loading-state {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.loading-state.active {
  display: block;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--yt-red);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---- Alert ---- */

.alert {
  display: none;
  max-width: 720px;
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.alert.active {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid color-mix(in srgb, var(--error) 25%, transparent);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* ---- Result Card ---- */

.result-section {
  display: none;
  max-width: 720px;
  margin: 1.75rem auto 0;
}

.result-section.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.result-header {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface) 100%);
}

.result-thumbnail {
  flex-shrink: 0;
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-thumbnail--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--surface-elevated));
}

.result-thumbnail--fallback::after {
  content: '';
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}

.result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.result-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yt-red);
  background: var(--primary-light);
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

.formats-heading {
  padding: 1.125rem 1.5rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.formats-list {
  list-style: none;
  padding: 0.25rem 1rem 1.25rem;
}

.format-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.format-item:hover {
  background: var(--surface-elevated);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.format-item--selected {
  border-color: var(--border-focus);
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(214, 69, 69, 0.12);
}

.format-details {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.format-badge {
  background: var(--primary-light);
  color: var(--yt-red);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.3125rem 0.5625rem;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--yt-red) 20%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.format-quality {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.format-size {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.125rem;
}

.btn-format-download {
  flex-shrink: 0;
  background: var(--yt-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 92px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn-format-download:hover:not(:disabled) {
  background: var(--yt-red-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.btn-format-download:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-format-download:focus-visible {
  outline: 2px solid var(--yt-red-dark);
  outline-offset: 2px;
}

/* ---- Content Pages ---- */

.page-content {
  padding: 3rem 0 3.5rem;
}

.page-content h1 {
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.page-content h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--yt-red);
  border-radius: 2px;
  margin-top: 0.875rem;
}

.page-content .lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.7;
}

.content-block {
  max-width: 720px;
}

.sitemap-group {
  margin-top: 2rem;
}

.sitemap-group:first-of-type {
  margin-top: 1rem;
}

.sitemap-group h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.sitemap-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.sitemap-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.sitemap-links a:hover {
  text-decoration: underline;
}

.sitemap-xml-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.sitemap-xml-note a {
  color: var(--text-secondary);
}

.content-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.content-block h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-block ol,
.content-block ul {
  color: var(--text-secondary);
  margin: 0 0 1rem 1.25rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

.content-block li strong {
  color: var(--text);
}

/* ---- FAQ ---- */

.faq-list {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: color-mix(in srgb, var(--yt-red) 25%, var(--border));
}

.faq-item.open {
  border-color: color-mix(in srgb, var(--yt-red) 35%, var(--border));
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  transition: color var(--transition);
}

.faq-item.open .faq-question {
  color: var(--yt-red);
}

.faq-question:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: -2px;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--yt-red);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.125rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---- Contact Form ---- */

.contact-form {
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yt-red);
  box-shadow: 0 0 0 3px var(--yt-red-ring);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---- Ad slots ---- */

.ad-slot {
  padding: 0.75rem 0;
}

.ad-slot-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.ad-slot--header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ad-slot--content {
  padding-top: 0;
}

.ad-slot--footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ---- Endbar (site footer) ---- */

.endbar-root {
  --endbar-bg: #111318;
  --endbar-panel: #171a22;
  --endbar-line: rgba(255, 255, 255, 0.08);
  --endbar-text: #e8eaef;
  --endbar-muted: #9aa3b2;
  --endbar-accent: #e04b4b;
  --endbar-accent-soft: rgba(224, 75, 75, 0.14);
  margin-top: auto;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(224, 75, 75, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(96, 165, 250, 0.06), transparent 50%),
    var(--endbar-bg);
  color: var(--endbar-text);
  border-top: 1px solid var(--endbar-line);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.endbar-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.endbar-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.endbar-zone {
  min-width: 0;
}

.endbar-kicker {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--endbar-muted);
}

.endbar-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  color: var(--endbar-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.endbar-mark:hover {
  opacity: 0.88;
  text-decoration: none;
}

.endbar-mark img {
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.endbar-blurb {
  margin: 0 0 1.125rem;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--endbar-muted);
}

.endbar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.endbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--endbar-accent-soft);
  border: 1px solid rgba(224, 75, 75, 0.22);
  color: #ffd9d9;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.endbar-chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.endbar-chain-link,
.endbar-more {
  color: var(--endbar-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color var(--transition), transform var(--transition);
}

.endbar-chain-link:hover,
.endbar-more:hover {
  color: var(--endbar-text);
  text-decoration: none;
}

.endbar-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--endbar-accent);
}

.endbar-more:hover {
  color: #ff7a7a;
}

.endbar-rim {
  padding-top: 1.25rem;
  border-top: 1px solid var(--endbar-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.endbar-legal,
.endbar-crafted {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--endbar-muted);
  line-height: 1.5;
}

.endbar-crafted {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ---- Sections (Home) ---- */

.info-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.info-section h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.info-section h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--yt-red);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yt-red), #ff6b6b);
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--yt-red) 20%, var(--border));
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--yt-red);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-red);
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Save locations ---- */

.save-locations-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

.save-locations-section h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}

.save-locations-section h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--yt-red);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 1.25rem auto 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--yt-red) 22%, var(--border));
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.platform-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--yt-red);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--yt-red) 18%, transparent);
}

.platform-icon svg {
  width: 22px;
  height: 22px;
}

.platform-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.platform-card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.platform-card-path {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--background);
  border: 1px dashed color-mix(in srgb, var(--yt-red) 30%, var(--border));
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.platform-path-label {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  color: var(--yt-red);
  vertical-align: middle;
}

.platform-card[data-platform="android"] .platform-icon {
  color: #3ddc84;
  background: rgba(61, 220, 132, 0.1);
  border-color: rgba(61, 220, 132, 0.25);
}

.platform-card[data-platform="ios"] .platform-icon {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.25);
}

.platform-card[data-platform="web"] .platform-icon {
  color: var(--yt-red);
}

.platform-card[data-platform="pc"] .platform-icon {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

.home-faq {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.home-faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-faq h2 {
  width: 100%;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.home-faq h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--yt-red);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.home-faq-link {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

.home-faq-link a {
  font-weight: 600;
  text-decoration: none;
  color: var(--yt-red);
}

.home-faq-link a:hover {
  text-decoration: underline;
}

/* ---- Utility ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}
