

:root {
  --theme-primary: #a855f7;
  --theme-on-primary: #ffffff;
  --theme-primary-container: #f3e8ff;
  --theme-on-primary-container: #3b0764;
  --theme-secondary: #c084fc;
  --theme-on-secondary: #3b0764;
  --theme-tertiary: #ec4899;
  --theme-on-tertiary: #500724;
  --theme-background: #fffbea;
  --theme-on-background: #1f2937;
  --theme-surface: #ffffff;
  --theme-on-surface: #1f2937;
  --theme-surface-variant: #fef3c7;
  --theme-on-surface-variant: #4b5563;
  --theme-outline: #9ca3af;
  --theme-outline-variant: #fde68a;
  --theme-surface-container-low: #fffdf5;
  --theme-surface-container: #fef9ec;
  --theme-surface-container-high: #fdf3dc;
  --theme-surface-container-highest: #fbecc4;
  color-scheme: light;
}

:root[data-theme="dark"] .platform-btn.btn-support {
  background: #431407;
  color: #fdba74;
  border-color: #9a3412;
}

:root[data-theme="dark"] .platform-btn.btn-support:hover {
  background: #7c2d12;
  border-color: #fb923c;
}

:root[data-theme="dark"] {
  --theme-primary: #c084fc;
  --theme-on-primary: #3b0764;
  --theme-primary-container: #6b21a8;
  --theme-on-primary-container: #fae8ff;
  --theme-secondary: #a855f7;
  --theme-on-secondary: #3b0764;
  --theme-tertiary: #f9a8d4;
  --theme-on-tertiary: #500724;
  --theme-background: #111827;
  --theme-on-background: #f9fafb;
  --theme-surface: #111827;
  --theme-on-surface: #f9fafb;
  --theme-surface-variant: #374151;
  --theme-on-surface-variant: #d1d5db;
  --theme-outline: #6b7280;
  --theme-outline-variant: #4b5563;
  --theme-surface-container-low: #111827;
  --theme-surface-container: #1f2937;
  --theme-surface-container-high: #374151;
  --theme-surface-container-highest: #4b5563;
  color-scheme: dark;
}

/* One token bridge keeps Beer CSS and Catchify components on the same theme. */
html[data-theme] body {
  --primary: var(--theme-primary);
  --on-primary: var(--theme-on-primary);
  --primary-container: var(--theme-primary-container);
  --on-primary-container: var(--theme-on-primary-container);
  --secondary: var(--theme-secondary);
  --on-secondary: var(--theme-on-secondary);
  --tertiary: var(--theme-tertiary);
  --on-tertiary: var(--theme-on-tertiary);
  --background: var(--theme-background);
  --on-background: var(--theme-on-background);
  --surface: var(--theme-surface);
  --on-surface: var(--theme-on-surface);
  --surface-variant: var(--theme-surface-variant);
  --on-surface-variant: var(--theme-on-surface-variant);
  --outline: var(--theme-outline);
  --outline-variant: var(--theme-outline-variant);
  --surface-container-low: var(--theme-surface-container-low);
  --surface-container: var(--theme-surface-container);
  --surface-container-high: var(--theme-surface-container-high);
  --surface-container-highest: var(--theme-surface-container-highest);
  background-color: var(--surface) !important;
  color: var(--on-surface) !important;
}

/* ==========================================================================
   Base & Root Resets (Responsive Safety)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--on-surface);
  background-color: var(--surface);
  line-height: 1.5;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Theme switch */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--on-surface-variant);
}

.theme-toggle__input {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 1.5rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--on-surface);
  cursor: pointer;
  appearance: none;
  transition: background-color 0.25s ease;
}

.theme-toggle__input::before {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.theme-toggle__input:checked {
  background: var(--primary);
}

.theme-toggle__input:checked::before {
  transform: translateX(1.25rem);
  background: var(--on-primary);
}

.theme-toggle__input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.theme-toggle__icon {
  position: absolute;
  left: 0.43rem;
  width: 0.625rem;
  height: 0.625rem;
  pointer-events: none;
}

.theme-toggle__icon-part {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--on-surface);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-toggle__icon-part--sun {
  box-shadow: 0 -0.42rem 0 -0.25rem var(--on-surface),
    0 0.42rem 0 -0.25rem var(--on-surface),
    0.42rem 0 0 -0.25rem var(--on-surface),
    -0.42rem 0 0 -0.25rem var(--on-surface);
}

.theme-toggle__icon-part--moon {
  opacity: 0;
  transform: translateX(1.25rem);
  box-shadow: -0.2rem -0.12rem 0 0 var(--surface);
}

.theme-toggle__input:checked ~ .theme-toggle__icon .theme-toggle__icon-part--sun {
  opacity: 0;
}

.theme-toggle__input:checked ~ .theme-toggle__icon .theme-toggle__icon-part--moon {
  opacity: 1;
}

.theme-toggle__label {
  font-size: 0.75rem;
  font-weight: 600;
}

main {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Navigation System (Fully Responsive: Desktop Rail vs. Mobile/Tablet Topbar)
   ========================================================================== */
.catchify-logo {
  border-radius: 10px;
}

.catchify-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.catchify-nav-logo img {
  flex-shrink: 0;
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand-name {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--on-surface);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#navigation-bar.nav-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#navigation-bar.nav-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

#navigation-bar.nav-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Desktop Navigation Rail (> 992px) - FIXED SIDEBAR */
@media only screen and (min-width: 993px) {
  html {
    scroll-padding-top: 24px;
  }

  body:has(> main),
  body {
    display: block;
    padding-left: 80px;
  }

  #navigation-bar {
    grid-area: unset;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh;
    height: 100dvh;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    background: var(--surface);
    border-right: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.25rem 1rem !important;
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #navigation-bar::-webkit-scrollbar {
    display: none;
  }

  .catchify-nav-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    padding: 0.25rem 0.25rem 0.85rem !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--outline-variant) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  .nav-brand-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }

  .nav-brand-link img,
  .catchify-nav-logo img,
  #navigation-bar .catchify-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    block-size: 42px !important;
    inline-size: 42px !important;
    margin: 0 auto !important;
    display: block !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    object-fit: contain !important;
  }

  .nav-brand-name {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    color: var(--primary) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .nav-toggle-btn {
    display: none !important;
  }

  #navigation-bar > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 64px;
    height: 56px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-decoration: none;
    margin-bottom: 0.4rem;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #navigation-bar > a:hover {
    background: var(--surface-container-high);
    color: var(--primary);
    transform: translateY(-2px);
  }

  #navigation-bar > a.active {
    background: var(--primary-container);
    color: var(--on-primary-container);
  }

  #navigation-bar > a i {
    font-size: 1.35rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1.5rem;
  }

  .theme-toggle__label {
    white-space: nowrap;
  }
}

/* Tablet & Mobile Navigation Topbar (<= 992px) - FIXED TOPBAR */
@media only screen and (max-width: 992px) {
  html {
    scroll-padding-top: 76px;
  }

  body:has(> main),
  body {
    display: block;
    padding-top: calc(60px + env(safe-area-inset-top, 0px));
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  #navigation-bar {
    grid-area: unset;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    min-height: 60px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: rgba(255, 251, 234, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--outline-variant);
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  #navigation-bar.nav-open {
    max-height: calc(100vh - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .catchify-nav-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.6rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: none !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  .catchify-nav-logo .nav-brand-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .catchify-nav-logo img,
  .catchify-nav-logo .catchify-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    block-size: 38px !important;
    inline-size: 38px !important;
  }

  .catchify-nav-logo .nav-brand-name {
    font-size: 1.2rem !important;
    text-align: left !important;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-toggle-btn:hover,
  .nav-toggle-btn:focus-visible {
    background: var(--surface-container-high);
  }

  #navigation-bar > a {
    display: none;
  }

  #navigation-bar.nav-open > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--surface);
    transition: background 0.2s ease, color 0.2s ease;
  }

  #navigation-bar.nav-open > a:hover,
  #navigation-bar.nav-open > a.active {
    background: var(--primary-container);
    color: var(--on-primary-container);
  }

  #navigation-bar.nav-open > a i {
    font-size: 1.4rem;
    color: var(--primary);
  }

  .theme-toggle {
    display: flex;
    position: absolute;
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: 4.75rem;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
  }

  .theme-toggle__label {
    display: none;
  }
}

:root[data-theme="dark"] .platform-btn.btn-github {
  background: var(--surface-container);
  color: var(--on-surface);
  border-color: var(--outline);
}

:root[data-theme="dark"] #navigation-bar {
  background-color: var(--surface);
}

/* General Section Layout */
.section {
  padding: 2.5rem 1.25rem 3.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

@media only screen and (max-width: 600px) {
  html {
    scroll-padding-top: 92px;
  }

  body:has(> main),
  body {
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }

  #navigation-bar {
    min-height: 76px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .theme-toggle {
    top: 50%;
    right: calc(1.25rem + 44px + 0.5rem);
    left: auto;
    transform: translateY(-50%);
  }

  .section {
    padding: 1.75rem 1rem 2.5rem;
  }
}

/* ==========================================================================
   Hero Section (Fluid & Adaptive Across All Displays)
   ========================================================================== */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1rem, 4vw, 2rem);
  background: radial-gradient(
    ellipse at top,
    var(--surface-container-high) 0%,
    var(--surface) 75%
  );
  width: 100%;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

#hero .shape {
  background-color: var(--primary) !important;
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  margin: 0 auto 20px !important;
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2rem, 6vw + 0.2rem, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 auto 0.75rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: var(--on-surface-variant);
  margin: 0 auto 1.5rem;
  font-weight: 500;
  max-width: 640px;
  line-height: 1.6;
}

/* Modern Platform Download Buttons */
.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.platform-download-group {
  display: inline-flex;
  align-items: stretch;
  gap: 0.45rem;
}

.android-download-control {
  gap: 0;
  padding: 0 0.7rem 0 1.5rem;
}

.android-download-control > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}

.android-control-divider {
  width: 1px;
  height: 1.4rem;
  margin: 0 0.55rem;
  background: rgba(255, 255, 255, 0.35);
}

.android-download-control select {
  min-width: 10.5rem;
  min-height: 2rem;
  border: 0;
  border-radius: 0.45rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color-scheme: dark;
}

.android-download-control select option {
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
}

.android-download-control select:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-version {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.86;
}

.apk-variant-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0 0.7rem;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--surface, #ffffff) 88%, #a855f7 12%);
  color: var(--on-surface, #374151);
  font-size: 0.72rem;
  font-weight: 700;
}

.apk-variant-control select {
  min-width: 4.4rem;
  min-height: 2rem;
  border: 0;
  border-radius: 0.45rem;
  outline: 0;
  background: var(--surface-container-highest, #f3f4f6);
  color: var(--on-surface, #1f2937);
  font: inherit;
  cursor: pointer;
  color-scheme: light;
}

.apk-variant-control select option {
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
}

.apk-variant-control select:focus-visible {
  outline: 2px solid var(--primary, #a855f7);
  outline-offset: 2px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.platform-btn .btn-icon {
  display: inline-block;
  flex-shrink: 0;
}

.platform-btn .btn-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
}

/* Android Button */
.platform-btn.btn-android {
  background: #a855f7;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.platform-btn.btn-android:hover {
  transform: translateY(-2px);
  background: #9333ea;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

/* iOS Button */
.platform-btn.btn-ios {
  background: #1c1c1e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.platform-btn.btn-ios:hover {
  transform: translateY(-2px);
  background: #2c2c2e;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* GitHub Button */
.platform-btn.btn-github {
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.platform-btn.btn-github:hover {
  transform: translateY(-2px);
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Optional project support */
.platform-btn.btn-support {
  background: #fff7ed;
  color: #c2410c;
  border: 1.5px solid #fdba74;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.platform-btn.btn-support:hover {
  transform: translateY(-2px);
  background: #ffedd5;
  border-color: #fb923c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.18);
}

/* Tablet Layout (601px - 992px): Spacious Horizontal Button Layout */
@media only screen and (min-width: 601px) and (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: clamp(2.5rem, 5vh, 3.5rem) 1.5rem 2.5rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 640px;
    margin: 1.5rem auto 0;
    gap: 0.85rem;
  }

  .platform-btn {
    min-height: 48px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
  }
}

/* Mobile Layout (<= 600px): Balanced, Full-Accessible Touch Targets */
@media only screen and (max-width: 600px) {
  .hero-section {
    min-height: auto;
    padding: clamp(1.75rem, 4vh, 2.75rem) 1rem 2rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 290px;
    margin: 1.25rem auto 0;
    gap: 0.65rem;
  }

  .platform-btn {
    width: 100%;
    max-width: 280px;
    min-height: 46px;
    height: 46px;
    padding: 0 1.25rem;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .platform-download-group {
    width: 100%;
    max-width: 280px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .android-download-control {
    width: 100%;
    max-width: 280px;
    height: auto;
    min-height: 0;
    padding: 0.4rem 0.55rem 0.45rem;
    flex-wrap: wrap;
    row-gap: 0.2rem;
  }

  .android-download-control > a {
    width: 100%;
    min-height: 38px;
    flex: 1 1 100%;
    gap: 0.4rem;
  }

  .android-control-divider {
    width: 100%;
    height: 1px;
    margin: 0.05rem 0 0.15rem;
  }

  .android-download-control select {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 0.5rem;
    font-size: 0.76rem;
    text-align: center;
  }

  .hero-actions > .platform-btn.btn-ios {
    width: 100%;
    max-width: 280px;
  }

  .hero-actions > .platform-btn.btn-github {
    width: 100%;
    max-width: 280px;
  }

  .platform-btn .btn-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }

  .btn-version {
    font-size: 0.76rem;
  }
}

/* Extra Small Mobile (< 380px) */
@media only screen and (max-width: 380px) {
  .hero-actions {
    max-width: 260px;
    gap: 0.5rem;
  }

  .platform-btn {
    max-width: 250px;
    min-height: 44px;
    height: 44px;
    font-size: 0.88rem;
    padding: 0 1rem;
    border-radius: 10px;
  }

  .hero-actions > .platform-btn.btn-ios {
    width: 100%;
    max-width: 250px;
  }

  .hero-actions > .platform-btn.btn-github {
    width: 100%;
    max-width: 250px;
  }
}

/* Hero Meta Bar */
.hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--on-surface-variant, #6b7280);
  flex-wrap: wrap;
}

.hero-meta-bar .version-badge {
  font-weight: 600;
  color: var(--primary, #a855f7);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-meta-bar .version-badge-android::before,
.hero-meta-bar .version-badge-ios::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.hero-meta-bar .version-badge-ios {
  color: #4b5563;
}

.hero-meta-bar .meta-separator {
  opacity: 0.45;
}

.hero-meta-bar .guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary, #a855f7);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.hero-meta-bar .guide-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Notice Banner */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  margin: 1.75rem auto 0;
  max-width: 700px;
  text-align: left;
}

.notice-banner > i {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.notice-banner p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.5;
}

.notice-banner a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

@media only screen and (max-width: 600px) {
  .notice-banner {
    margin: 1.25rem 0.5rem 0;
    padding: 0.9rem 1rem;
  }
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--on-surface);
  margin: 2.75rem auto 1.75rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-title i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* ==========================================================================
   Stats Section (CSS Grid Responsive Across All Screen Sizes)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stat-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card > i {
  font-size: 1.85rem;
  color: var(--primary);
}

.stat-content {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value-link {
  text-decoration: none;
}

.stat-value {
  display: inline-block;
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

.stat-value-link:hover .stat-value {
  opacity: 0.8;
}

.stat-subtext {
  display: block;
  font-size: 0.72rem;
  color: var(--on-surface-variant);
  margin-top: 0.25rem;
  opacity: 0.9;
  font-weight: 500;
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
  .stats-grid {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .stat-card {
    padding: 1.1rem 0.5rem;
    border-radius: 16px;
  }

  .stat-card > i {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }
}

/* Mobile Phone Responsive Stats: 2 Columns on Row 1, Full Width Social Proof on Row 2 */
@media only screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
    border-radius: 14px;
  }

  .stat-card:nth-child(3) {
    grid-column: 1 / -1;
    padding: 1.15rem 0.75rem;
  }

  .stat-card > i {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-subtext {
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Compare Section & Challenger SEO Table
   ========================================================================== */
.compare-section {
  padding: 3rem 0;
  max-width: 1060px;
  margin: 0 auto;
}

.compare-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.compare-intro {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--on-surface-variant);
  max-width: 680px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
}

/* Mobile & Tablet Table Horizontal Swipe Hint */
.table-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  text-align: center;
}

.table-scroll-hint i {
  font-size: 1.1rem;
  color: var(--primary);
}

@media only screen and (max-width: 992px) {
  .table-scroll-hint {
    display: flex;
  }
}

.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  position: relative;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--outline-variant);
  vertical-align: middle;
}

.compare-table thead th {
  background: var(--surface-container-high);
  font-weight: 700;
  color: var(--on-surface);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Sticky First Column for Uncompromised Mobile Legibility */
.compare-table .row-header {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface-container-high);
  z-index: 3;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

/* Highlight Catchify Column */
.compare-table .th-highlight {
  background: var(--primary-container) !important;
  color: var(--on-primary-container) !important;
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.compare-table .td-highlight {
  background: rgba(168, 85, 247, 0.05);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  font-weight: 600;
}

.brand-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.col-pill {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.brand-cell strong {
  font-size: 1.15rem;
  color: var(--primary);
}

.badge-win {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.badge-no {
  display: inline-flex;
  align-items: center;
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-warn {
  display: inline-flex;
  align-items: center;
  color: #b45309;
  background: #fef3c7;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

@media only screen and (max-width: 600px) {
  .compare-table {
    min-width: 560px;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.8rem;
  }

  .compare-table thead th {
    font-size: 0.82rem;
  }

  .compare-table .row-header,
  .compare-table thead th:first-child {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.78rem;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.08);
  }

  .brand-cell strong {
    font-size: 0.95rem;
  }

  .col-pill {
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .badge-win, .badge-no, .badge-warn {
    font-size: 0.72rem;
    padding: 3px 5px;
  }
}

/* Spotify Migration Banner */
.migration-banner {
  background: linear-gradient(135deg, var(--surface-container-high) 0%, var(--surface-container) 100%);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.migration-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.migration-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.migration-icon-wrap i {
  font-size: 1.75rem;
}

.migration-title {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.migration-desc {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.5;
}

.migration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.migration-step-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.migration-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.migration-step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 0.4rem;
}

.migration-step-card p {
  font-size: 0.88rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

@media only screen and (max-width: 860px) {
  .migration-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .migration-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .migration-banner {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  background: var(--surface-container-low);
  border-radius: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 90px;
  height: 100%;
}

.feature-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.feature-card i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-card span {
  color: var(--on-surface);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media only screen and (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 0.25rem;
  }

  .feature-card {
    padding: 1rem 1.15rem;
  }
}

/* ==========================================================================
   Screenshots Section (Splide Carousel)
   ========================================================================== */
.screenshots-section {
  padding: 2rem 0 3rem;
  overflow: visible;
  max-width: 100%;
}

.splide {
  padding: 1rem 0 2.5rem;
  overflow: visible;
}

.splide__track {
  overflow: visible;
}

.splide__slide {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.splide__pagination__page {
  background: var(--on-surface-variant);
}

.splide__pagination__page.is-active {
  background: var(--primary);
}

.screenshot-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.screenshot-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(340px, 50vh, 500px);
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Changelog Section
   ========================================================================== */
.changelog-section {
  background: var(--surface-container-low);
  border-radius: 20px;
}

.changelog-container {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.changelog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 820px) {
  .changelog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.changelog-platform-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.changelog-platform-card:hover {
  border-color: rgba(30, 215, 96, 0.4);
  transform: translateY(-2px);
}

.changelog-platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--outline-variant);
}

.changelog-platform-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--on-surface);
}

.changelog-platform-title svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.android-card .changelog-platform-title svg {
  fill: #3ddc84;
}

.ios-card .changelog-platform-title svg {
  fill: #d1d5db;
}

.changelog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(30, 215, 96, 0.12);
  color: var(--primary, #1ed760);
  border: 1px solid rgba(30, 215, 96, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--on-surface);
}

.changelog-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.15);
  color: var(--primary, #1ed760);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 3px;
  flex-shrink: 0;
}

.changelog-text {
  flex: 1;
  word-break: break-word;
}

.changelog-text b,
.changelog-text strong {
  color: var(--on-surface);
  font-weight: 600;
}

.changelog-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.changelog-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary, #1ed760);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.changelog-dl-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.changelog-dl-link i {
  font-size: 1.1rem;
}

.changelog-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

#changelog_element p {
  padding: 0.35rem 0;
  color: var(--on-surface);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.faq-list details {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s ease;
}

.faq-list details:hover {
  background: var(--surface-container-high);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--on-surface);
  font-size: 0.98rem;
  line-height: 1.5;
  user-select: none;
}

.faq-list details p {
  color: var(--on-surface-variant);
  margin: 0.85rem 0 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.faq-list a {
  color: var(--primary);
  font-weight: 600;
}

/* iOS Installation FAQ Styling */
.ios-install-content {
  margin-top: 0.75rem;
}

.ios-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.ios-method-box {
  background: var(--surface);
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--outline-variant);
  overflow-wrap: anywhere;
}

.ios-method-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.ios-method-box ol, .ios-method-box ul {
  margin: 0;
  padding-left: clamp(1rem, 3vw, 1.35rem);
  line-height: 1.6;
}

.ios-method-box li {
  margin-bottom: 0.45rem;
}

.ios-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ios-method-header h4 {
  margin-bottom: 0;
}

.ios-badge-rec {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ios-substep {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ios-substep strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.35rem;
}

.ios-tip-box {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--on-surface);
  margin-top: 1rem;
}

.ios-ai-help {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin-top: 1.25rem;
}

.ios-ai-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.ios-ai-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--on-surface);
}

.ios-ai-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.3rem;
}

.ios-ai-text p {
  margin: 0;
}

.ios-ai-text code {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  padding: 3px 8px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.85em;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  white-space: normal;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-container-highest);
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border-radius: 20px;
  margin: 1.5rem auto 1rem;
  max-width: 1120px;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
  width: fit-content;
}

.footer-brand img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 0 !important;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  min-height: 44px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a i {
  font-size: 1.25rem;
}

.footer-copyright {
  color: var(--outline);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.footer-copyright i {
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================================
   Article & Dedicated Landing Page Styles (spotify-alternative.html)
   ========================================================================== */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-date {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
}

.article-title {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.22;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--on-surface);
  font-weight: 500;
  margin: 0;
}

.article-cta-box {
  background: var(--primary-container);
  border: 1px solid var(--secondary-container);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-text h3 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  color: var(--on-primary-container);
  margin: 0 0 0.5rem;
}

.article-cta-text p {
  color: var(--on-primary-container);
  opacity: 0.92;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.article-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--on-surface);
  margin: 0 0 1rem;
}

.article-section ul,
.article-section ol {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--on-surface);
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.article-section li {
  margin-bottom: 0.5rem;
}

.article-footer-cta {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  margin-top: 3rem;
}

.article-footer-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.article-footer-cta p {
  color: var(--on-surface-variant);
  margin: 0 0 1.5rem;
}

.home-back-link {
  margin-top: 1.5rem;
}

.home-back-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.home-back-link a:hover {
  text-decoration: underline;
}

/* Article Page Specific Responsive Fixes */
.article-page .hero-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.article-page .hero-actions .platform-btn {
  min-width: 190px;
  width: auto;
  max-width: 260px;
  min-height: 48px;
}

.article-page .compare-table {
  min-width: 100%;
}

@media only screen and (max-width: 640px) {
  .article-page .compare-table {
    min-width: 440px;
  }

  .article-page .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 1.25rem auto 0;
    gap: 0.65rem;
  }

  .article-page .hero-actions .platform-btn {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
  }
}

/* Final responsive polish */
@media only screen and (min-width: 993px) {
  body {
    padding-left: 80px;
  }

  .hero-section {
    min-height: max(680px, 100dvh);
    padding: clamp(4rem, 8vh, 7rem) clamp(2rem, 6vw, 6rem);
  }

  .hero-content {
    max-width: 900px;
  }

  .section {
    max-width: 1240px;
    padding-inline: clamp(2rem, 5vw, 5rem);
  }
}

@media only screen and (min-width: 601px) and (max-width: 992px) {
  .hero-section {
    padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 6vw, 4rem) 3rem;
  }

  .hero-content {
    max-width: 760px;
  }

  .section {
    max-width: 900px;
    padding-inline: clamp(1.5rem, 5vw, 3rem);
  }
}

@media only screen and (max-width: 600px) {
  .hero-section {
    padding: 2.25rem 1rem 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-meta-bar {
    row-gap: 0.45rem;
    font-size: 0.8rem;
  }

  .section {
    padding-inline: 1rem;
  }
}
