/* ==========================================================================
   YerVar.app - Slopes-Inspired Editorial Architecture
   Minimalist, layered hardware visuals, alternating feature spotlights
   ========================================================================== */

:root {
  /* Dark Mode Default - Slopes Studio Black */
  --bg-canvas: #09090B;
  --bg-surface: #141417;
  --bg-card: rgba(24, 24, 28, 0.75);
  --bg-card-hover: rgba(32, 32, 38, 0.85);
  --bg-pill: rgba(255, 255, 255, 0.08);
  --bg-pill-hover: rgba(255, 255, 255, 0.14);
  --bg-pill-active: #FFFFFF;
  --text-pill-active: #09090B;

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  --border-hairline: rgba(255, 255, 255, 0.10);
  --border-subtle: rgba(255, 255, 255, 0.18);

  /* Precise Semantic Accents (YerVar Brand) */
  --accent-emerald: #34D399;
  --accent-sky: #38BDF8;
  --accent-amber: #FBBF24;
  --accent-rose: #F43F5E;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --backdrop-blur: blur(24px) saturate(180%);
  --shadow-elevation: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-hairline);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg-canvas: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-hover: #FFFFFF;
  --bg-pill: rgba(0, 0, 0, 0.05);
  --bg-pill-hover: rgba(0, 0, 0, 0.10);
  --bg-pill-active: #18181B;
  --text-pill-active: #FFFFFF;

  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-muted: #71717A;

  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.18);

  --accent-emerald: #059669;
  --accent-sky: #0284C7;
  --accent-amber: #D97706;
  --accent-rose: #DC2626;

  --shadow-elevation: 0 24px 60px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-hairline);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 60px;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  background-color: var(--bg-card);
  border-bottom: 0.75px solid var(--border-hairline);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.header-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.header-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: var(--text-primary);
}

.header-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-pill);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-menu-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-pill);
}

.mobile-menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.menu-icon-bars { display: block; }
.menu-icon-close { display: none; }
.site-header.menu-open .menu-icon-bars { display: none; }
.site-header.menu-open .menu-icon-close { display: block; }

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.header-download-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background-color: var(--bg-pill-active);
  color: var(--text-pill-active);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.header-download-btn:hover {
  opacity: 0.90;
}

.header-download-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Hero Section - Slopes 2-Column Split
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-primary);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.app-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: var(--bg-pill-active);
  color: var(--text-pill-active);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.app-store-pill:hover {
  opacity: 0.90;
}

.app-store-pill:active {
  transform: scale(0.97);
}

.app-store-pill svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.video-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--bg-card);
  border: 0.75px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  transition: all 0.2s ease;
}

.video-trigger-btn:hover {
  background-color: var(--bg-pill-hover);
  border-color: var(--border-subtle);
}

.video-trigger-btn:active {
  transform: scale(0.97);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent-emerald);
}

/* Layered Dual Phone Hero Composition */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: 520px;
}

.phone-layer {
  position: absolute;
  width: 250px;
  border-radius: 40px;
  padding: 9px;
  background: #101012;
  border: 0.75px solid var(--border-hairline);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s ease;
}

.phone-screen-box {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 20;
  background: #000000;
}

.phone-screen-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back Phone (Tariff view, tilted slightly) */
.phone-back {
  top: 15px;
  right: 10px;
  transform: rotate(5deg) scale(0.94);
  opacity: 0.88;
  z-index: 1;
}

/* Front Phone (Live map view, prominent) */
.phone-front {
  top: 35px;
  left: 20px;
  transform: rotate(-3deg);
  z-index: 2;
}

.phone-front:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-back:hover {
  transform: rotate(2deg) scale(0.98);
}

/* Mode-adaptive image switcher inside front phone */
.screen-dark-img { display: block; }
.screen-light-img { display: none; }
[data-theme="light"] .screen-dark-img { display: none; }
[data-theme="light"] .screen-light-img { display: block; }

/* ==========================================================================
   Alternating 50/50 Editorial Feature Spotlights (The Slopes Signature)
   ========================================================================== */
/* ==========================================================================
   Desktop Page Architecture & Editorial Slides
   ========================================================================== */
.mobile-slider-wrapper {
  display: contents;
}

.mobile-slider-track {
  display: contents;
}

.mobile-slider-nav {
  display: none;
}

.editorial-slide {
  padding: 60px 0;
  display: block;
  width: 100%;
}

.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.editorial-row.reverse {
  direction: rtl;
}

.editorial-row.reverse > * {
  direction: ltr;
}

/* ==========================================================================
   1:1 Scroll-Scrubbed Motion (Direct Manipulation)
   ========================================================================== */
.editorial-row .editorial-visual,
.editorial-row .editorial-content {
  will-change: transform, opacity;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Row 1 & 3: Visual on left (-180px -> 0), Content on right (+180px -> 0) */
.editorial-row:not(.reverse) .editorial-visual {
  transform: translate3d(calc((1 - var(--scroll-progress, 1)) * -180px), calc((1 - var(--scroll-progress, 1)) * 20px), 0)
             scale(calc(0.88 + 0.12 * var(--scroll-progress, 1)))
             rotate(calc((1 - var(--scroll-progress, 1)) * -6deg));
  opacity: var(--scroll-progress, 1);
}

.editorial-row:not(.reverse) .editorial-content {
  transform: translate3d(calc((1 - var(--scroll-progress, 1)) * 180px), calc((1 - var(--scroll-progress, 1)) * 20px), 0);
  opacity: var(--scroll-progress, 1);
}

/* Row 2 (Reversed): Visual on right (+180px -> 0), Content on left (-180px -> 0) */
.editorial-row.reverse .editorial-visual {
  transform: translate3d(calc((1 - var(--scroll-progress, 1)) * 180px), calc((1 - var(--scroll-progress, 1)) * 20px), 0)
             scale(calc(0.88 + 0.12 * var(--scroll-progress, 1)))
             rotate(calc((1 - var(--scroll-progress, 1)) * 6deg));
  opacity: var(--scroll-progress, 1);
}

.editorial-row.reverse .editorial-content {
  transform: translate3d(calc((1 - var(--scroll-progress, 1)) * -180px), calc((1 - var(--scroll-progress, 1)) * 20px), 0);
  opacity: var(--scroll-progress, 1);
}

.editorial-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editorial-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-sky);
}

.editorial-title {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.editorial-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.editorial-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.editorial-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.bullet-check-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Framed Phone Showcase inside Editorial Rows */
.editorial-visual {
  display: flex;
  justify-content: center;
}

.framed-phone-card {
  width: 100%;
  max-width: 290px;
  border-radius: 42px;
  padding: 10px;
  background: #101012;
  border: 0.75px solid var(--border-hairline);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.25s ease;
}

.framed-phone-card:hover {
  transform: translateY(-4px);
}

/* 3-Phone Layered Fan Stack (Match-Day Showcase) */
.matchday-phone-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matchday-phone-stack .phone-layer {
  width: 220px;
}

.phone-stack-left {
  top: 28px;
  left: 8px;
  transform: rotate(-8deg) scale(0.90);
  opacity: 0.88;
  z-index: 1;
}

.phone-stack-right {
  top: 28px;
  right: 8px;
  transform: rotate(8deg) scale(0.90);
  opacity: 0.88;
  z-index: 2;
}

.phone-stack-center {
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  z-index: 3;
}

.phone-stack-left:hover {
  transform: rotate(-4deg) scale(0.95);
  z-index: 4;
  opacity: 1;
}

.phone-stack-right:hover {
  transform: rotate(4deg) scale(0.95);
  z-index: 4;
  opacity: 1;
}

.phone-stack-center:hover {
  transform: translateX(-50%) scale(1.03);
  z-index: 4;
}

/* ==========================================================================
   Restrained Clean Footer
   ========================================================================== */
.site-footer {
  border-top: 0.75px solid var(--border-hairline);
  padding: 48px 0 32px 0;
  background-color: var(--bg-canvas);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.footer-brand-title {
  color: var(--text-primary);
}

.footer-brand-divider {
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.7;
}

.footer-brand-motto {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.footer-links-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-link-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-link-item:hover {
  color: var(--text-primary);
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-trust-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   16:9 Video Lightbox Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.video-modal-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 24px;
  padding: 8px;
  border: 0.75px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.video-modal-player {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  display: block;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.65);
  border: 0.75px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 10;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .hero-copy {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  /* ==========================================================================
     Mobile 4-Slide Fullscreen Horizontal Presentation (Pure Canvas, No Cards)
     ========================================================================== */
  .mobile-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .mobile-slider-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
  }

  .mobile-slider-track::-webkit-scrollbar {
    display: none;
  }

  .slide-item,
  .hero-section.slide-item,
  .editorial-slide.slide-item {
    flex: 0 0 100vw;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 20px 36px 20px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .slide-item > .container {
    width: 100%;
    margin: auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Slide 1: Hero Mobile Layout */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    width: 100%;
  }

  .hero-visual {
    order: -1; /* Phone mockup on top */
    position: relative;
    height: 392px;
    min-height: 392px;
    max-width: 270px;
    margin: 0 auto 8px auto;
    width: 100%;
    flex-shrink: 0;
  }

  .phone-layer {
    width: 170px;
    padding: 6px;
    border-radius: 30px;
  }

  .phone-screen-box {
    border-radius: 24px;
  }

  .phone-back {
    top: 4px;
    right: 10px;
    transform: rotate(5deg) scale(0.92);
  }

  .phone-front {
    top: 18px;
    left: 10px;
    transform: rotate(-3deg);
  }

  .hero-copy {
    order: 1; /* Text underneath */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .hero-headline {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-subhead {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  /* Slide 2, 3, 4: Editorial Features Mobile Layout */
  .editorial-row,
  .editorial-row.reverse {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    width: 100%;
    direction: ltr !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .editorial-row .editorial-visual,
  .editorial-row .editorial-content {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    direction: ltr !important;
  }

  .editorial-visual {
    order: -1; /* Phone on top */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .editorial-row .framed-phone-card {
    max-width: 205px;
    margin: 0 auto;
  }

  .matchday-phone-stack {
    height: 360px;
    min-height: 360px;
    max-width: 310px;
    margin: 0 auto;
  }

  .matchday-phone-stack .phone-layer {
    width: 155px;
    padding: 6px;
    border-radius: 28px;
  }

  .phone-stack-left {
    top: 18px;
    left: 4px;
    transform: rotate(-7deg) scale(0.90);
  }

  .phone-stack-right {
    top: 18px;
    right: 4px;
    transform: rotate(7deg) scale(0.90);
  }

  .phone-stack-center {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
  }

  .editorial-content {
    order: 1; /* Text underneath */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .editorial-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .editorial-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 480px;
  }

  .editorial-bullets {
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    max-width: 440px;
    margin: 6px auto 0 auto;
  }

  .editorial-bullet-item {
    font-size: 0.88rem;
  }

  /* Mobile 4-Slide Navigation Dots Indicator */
  .mobile-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 0 6px 0;
    margin-top: 4px;
    width: 100%;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-radius 0.25s ease;
  }

  .slider-dot.active {
    width: 26px;
    border-radius: 12px;
    background: var(--accent-sky);
  }

  [data-theme="light"] .slider-dot {
    background: rgba(0, 0, 0, 0.25);
  }

  [data-theme="light"] .slider-dot.active {
    background: var(--accent-sky);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-link {
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
    padding: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-download-btn {
    padding: 5px 12px;
    font-size: 0.82rem;
  }

  .header-nav {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    z-index: 499;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-surface);
    border: 0.75px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-elevation);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  }

  .site-header.menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .header-nav li {
    display: block;
    width: 100%;
  }

  .header-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    text-align: left;
    width: 100%;
    color: var(--text-secondary);
    transition: all 0.15s ease;
  }

  .header-link:hover {
    color: var(--text-primary);
    background: var(--bg-pill);
  }

  .header-link.active {
    background: var(--bg-pill);
    color: var(--text-primary);
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .header-download-btn {
    display: none;
  }
}

/* ==========================================================================
   Legal & Privacy Article Styles (Unified UI)
   ========================================================================== */
.legal-page-main {
  padding: 56px 0 96px 0;
}

.legal-article {
  max-width: 760px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 0.75px solid var(--border-hairline);
}

.legal-nav-row {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 0.75px solid var(--border-hairline);
  transition: all 0.15s ease;
}

.legal-back-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill-hover);
  border-color: var(--border-subtle);
}

.legal-title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-callout {
  background: var(--bg-card);
  border: 0.75px solid var(--border-subtle);
  border-left: 3px solid var(--accent-sky);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-primary);
  font-size: 0.94rem;
  line-height: 1.65;
  box-shadow: var(--shadow-card);
}

.legal-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-paragraph {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-list {
  margin: 0 0 20px 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-list strong {
  color: var(--text-primary);
}

.legal-article code {
  background: var(--bg-pill);
  border: 0.75px solid var(--border-hairline);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--accent-sky);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.legal-article a {
  color: var(--accent-sky);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.legal-article a:hover {
  opacity: 0.85;
}

.legal-divider {
  border: none;
  border-top: 0.75px solid var(--border-hairline);
  margin: 44px 0;
}

/* ==========================================================================
   Contact Page - Slopes Editorial Split & Glassmorphic Form
   ========================================================================== */
.contact-hero-section {
  padding: 64px 0 96px 0;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.contact-grid-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  column-gap: 56px;
  row-gap: 28px;
  align-items: start;
}

.contact-intro {
  grid-column: 1;
  grid-row: 1;
}

.contact-headline {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-primary);
  margin: 20px 0 16px 0;
}

.contact-subhead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 480px;
}

.contact-direct-group {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.contact-card-wrapper {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 0.75px solid var(--border-hairline);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

a.contact-direct-item:hover {
  border-color: var(--border-subtle);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.contact-direct-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  flex-shrink: 0;
}

.contact-direct-text {
  display: flex;
  flex-direction: column;
}

.contact-direct-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-direct-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Glassmorphic Form Card */
.contact-card-wrapper {
  position: relative;
}

.contact-glass-card {
  background: var(--bg-card);
  border: 0.75px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-elevation);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
}

.contact-card-header {
  margin-bottom: 28px;
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-card-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--accent-rose);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 0.75px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-input.input-error,
.form-select.input-error,
.form-textarea.input-error {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.form-error-msg {
  display: none;
  font-size: 0.78rem;
  color: var(--accent-rose);
  font-weight: 500;
}

.form-error-msg.visible {
  display: block;
}

/* Topic Pills (Apple/Linear Capsule Chips) */
.topic-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  width: auto;
  background: var(--bg-surface);
  border: 0.75px solid var(--border-hairline);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.topic-pill:hover {
  border-color: var(--border-subtle);
  color: var(--text-primary);
  background: var(--bg-pill-hover);
}

.topic-pill:active {
  transform: scale(0.97);
  transition: transform 100ms ease-out;
}

.topic-pill.selected {
  background: var(--bg-pill-active);
  color: var(--text-pill-active);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.topic-pills-grid.input-error {
  border: 0.75px solid var(--accent-rose);
  border-radius: var(--radius-md);
  padding: 4px;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--text-primary);
  color: var(--bg-canvas);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  margin-top: 6px;
}

.form-submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* Success Banner */
.form-success-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(52, 211, 153, 0.12);
  border: 0.75px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 16px;
  color: var(--text-primary);
  animation: fadeIn 0.3s ease;
}

.success-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  color: #09090B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.success-content {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  line-height: 1.4;
}

.success-content strong {
  color: var(--accent-emerald);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .contact-hero-section {
    padding: 32px 0 64px 0;
    min-height: auto;
  }

  .contact-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .contact-intro {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-headline {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    margin: 12px 0 8px 0;
  }

  .contact-subhead {
    max-width: 100%;
    font-size: 0.94rem;
    margin-bottom: 4px;
  }

  .contact-direct-group {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }

  .contact-direct-text {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-glass-card {
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .contact-hero-section {
    padding: 20px 0 52px 0;
  }

  .contact-card-header {
    display: none; /* Linear pattern: form begins immediately above the fold */
  }

  .contact-glass-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .topic-pills-grid {
    gap: 6px;
  }

  .topic-pill {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-row .editorial-visual,
  .editorial-row .editorial-content {
    transform: none !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease !important;
  }
}
