/* ==========================================================================
   LAIN DAIN - MODERN LANDING PAGE DESIGN SYSTEM
   Theme extracted from Lain Dain Mobile App
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary: #01592B;
  --primary-dark: #003D1D;
  --primary-light: #0B683A;
  --primary-soft: rgba(1, 89, 43, 0.08);
  --primary-glow: rgba(1, 89, 43, 0.2);

  --secondary: #FDB105;
  --secondary-dark: #E09C00;
  --secondary-light: #FFDF80;
  --secondary-soft: rgba(253, 177, 5, 0.12);

  --tertiary: #C3550A;
  --dispute: #E85D1C;
  --dispute-soft: rgba(232, 93, 28, 0.1);

  --positive: #0B683A;
  --positive-bg: #E4F2EB;

  /* Surfaces & Backgrounds */
  --bg-main: #FEFAF1;
  --bg-subtle: #F8F3E8;
  --bg-card: #FFFFFF;
  --bg-glass-card: rgba(255, 255, 255, 0.92);

  /* Borders & Dividers */
  --border-subtle: #EFE7DD;
  --border-glass: rgba(255, 255, 255, 0.6);

  /* Text & Typography */
  --text-main: #121814;
  --text-muted: #5A655F;
  --text-faint: #8E9993;
  --text-inverse: #FFFFFF;

  /* Typography Stack */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(18, 24, 20, 0.04);
  --shadow-float: 0 25px 50px -12px rgba(18, 24, 20, 0.18), 0 10px 20px -5px rgba(1, 89, 43, 0.12);

  /* Layout Constants */
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Reset & Modern Baseline
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================================
   Ambient Glow & Background Elements
   ========================================================================== */

.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  will-change: transform;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(1, 89, 43, 0.18) 0%, rgba(253, 177, 5, 0.08) 60%, transparent 80%);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  bottom: 5%;
  left: -150px;
  background: radial-gradient(circle, rgba(253, 177, 5, 0.15) 0%, rgba(232, 93, 28, 0.05) 50%, transparent 80%);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(18, 24, 20, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  opacity: 0.8;
}

/* ==========================================================================
   Page Layout & Container
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(254, 250, 241, 0.75);
  border-bottom: 1px solid rgba(239, 231, 221, 0.6);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  cursor: pointer;
}

.logo-icon-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.logo-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

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

.brand-title .text-dain {
  color: var(--secondary);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-center-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-center-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 89, 43, 0.2);
  animation: pulseDot 2.2s infinite;
}

/* ==========================================================================
   Hero Section (mobile-first: the stacked mobile design is the base layout
   at every width; larger screens only scale it up)
   ========================================================================== */

/* The hero carries the brand, so the home page has no top bar */
.page-home .navbar {
  display: none;
}

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  padding: 1.75rem 0 0 0;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.hero-content {
  display: contents;
}

/* 1. Brand block */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-brand-title {
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-brand-title .text-lain {
  color: var(--primary-light);
}

.hero-brand-title .text-dain {
  color: var(--secondary);
}

.hero-brand-tagline {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3F4741;
}

/* 2. Headline */
.hero-heading {
  max-width: 600px;
  margin: 0.5rem auto 0 auto;
  font-size: clamp(1.85rem, 8.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #151515;
}

.hh-line {
  display: block;
  white-space: nowrap;
}

.hh-accent {
  color: var(--secondary);
}

.hh-underlined {
  position: relative;
  display: inline-block;
}

.hh-underline {
  position: absolute;
  left: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.3em;
  color: var(--secondary);
  overflow: visible;
}

/* 3. Supporting copy */
.hero-subheading {
  max-width: 30rem;
  margin: 0.75rem auto 0 auto;
  font-size: clamp(1.02rem, 4.2vw, 1.2rem);
  font-weight: 450;
  line-height: 1.5;
  color: #4E5550;
}

/* 4. Store buttons */
.store-buttons-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin: 0.5rem auto 0 auto;
}

.btn-store {
  flex: 1 1 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 0.7rem;
  color: #FFFFFF;
  background: linear-gradient(180deg, #0C7A3D 0%, #01592B 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 22px -8px rgba(1, 89, 43, 0.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn-store:hover {
  background: linear-gradient(180deg, #0B683A 0%, #003D1D 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px rgba(1, 89, 43, 0.6);
}

.btn-store:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-store .store-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.btn-store .store-icon-box,
.btn-store .store-icon-box svg {
  width: 23px;
  height: 23px;
}

.btn-store .store-text-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store .store-caption {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.1;
  opacity: 0.92;
}

.btn-store .store-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* 5. Feature cards (3 + 2 grid on phones, one row on wide screens) */
.hero-feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 560px;
  margin: 1rem auto 0 auto;
  list-style: none;
}

.hero-feature-card {
  flex: 0 0 calc((100% - 1.2rem) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 0.35rem;
  background: #E8F3EA;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1A201C;
}

/* Bottom row is slightly wider, as in the design */
.hero-feature-card:nth-child(n+4) {
  flex-basis: calc((100% - 1.2rem) / 3 * 1.12);
}

.hero-feature-card svg {
  width: 30px;
  height: 30px;
  color: #128A3E;
}

/* 6. Image slideshow, full-bleed across the viewport */
.hero-slides {
  --slide-width: min(72vw, 340px);
  width: 100vw;
  margin: 1.75rem calc(50% - 50vw) 0 calc(50% - 50vw);
}

.hero-slides-track {
  position: relative;
  display: flex;
  gap: 0.9rem;
  /* Padding lets the first and last slide sit in the centre */
  padding: 0.5rem calc((100% - var(--slide-width)) / 2) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-slides-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 var(--slide-width);
  /* Explicit width + min-width stop the image's 720px intrinsic size
     from overriding the flex basis */
  width: var(--slide-width);
  min-width: 0;
  height: auto;
  aspect-ratio: 720 / 1561;
  object-fit: cover;
  border-radius: 22px;
  scroll-snap-align: center;
  box-shadow: 0 18px 36px -14px rgba(1, 89, 43, 0.35), 0 4px 12px rgba(18, 24, 20, 0.08);
  background: var(--bg-subtle);
}

.hero-slides-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.hero-slides-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--radius-full);
  background: rgba(1, 89, 43, 0.22);
  cursor: pointer;
  transition: width var(--transition-normal), background var(--transition-normal);
}

.hero-slides-dot.is-active {
  width: 24px;
  background: var(--primary);
}

/* 7. Wave flowing into the footer */
.hero-wave {
  display: block;
  width: 100%;
  /* Pin to the bottom of the hero so no gap opens above the footer
     when the content is shorter than the viewport */
  margin-top: auto;
  padding-top: 3rem;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(90px, 24vw, 220px);
  margin-bottom: -1px;
}

.page-home .footer {
  background: #01692F;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .footer-brand {
  color: #FFFFFF;
}

.page-home .footer-copyright,
.page-home .footer-link-item a {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .footer-link-item a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(254, 250, 241, 0.8);
  backdrop-filter: blur(10px);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-link-item a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   Legal Pages (Privacy & Terms)
   ========================================================================== */

.legal-header {
  padding: 3rem 0 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

.legal-back-nav {
  margin-bottom: 1.5rem;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  background: rgba(1, 89, 43, 0.08);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-back-home:hover {
  background: rgba(1, 89, 43, 0.15);
  transform: translateX(-3px);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

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

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  padding: 3.5rem 0 6rem 0;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.legal-content {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.legal-content section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 110px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legal-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--primary);
  border-radius: 2px;
}

.legal-content p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: #38423C;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-content li {
  font-size: 0.95rem;
  color: #38423C;
  line-height: 1.6;
}

.legal-content .highlight-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.legal-content .highlight-box p {
  margin: 0;
  font-weight: 500;
  color: var(--primary-dark);
}

/* ==========================================================================
   Modal / Toast Notification
   ========================================================================== */

.toast-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.toast-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.toast-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-normal);
}

.toast-modal-overlay.active .toast-modal-card {
  transform: scale(1) translateY(0);
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  font-size: 1.75rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-close-btn {
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(1, 89, 43, 0.3);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.08);
  }

  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   Home: mobile design is the base; these only scale it up for larger screens.
   ========================================================================== */

@media (min-width: 641px) {
  .hero-section {
    padding-top: 2.25rem;
  }

  .hero-brand-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .hero-brand-title {
    font-size: 2.35rem;
  }

  .hero-brand-tagline {
    font-size: 0.8rem;
  }

  .btn-store {
    gap: 0.7rem;
    padding: 0.85rem 1rem;
  }

  .btn-store .store-icon-box,
  .btn-store .store-icon-box svg {
    width: 26px;
    height: 26px;
  }

  .btn-store .store-caption {
    font-size: 0.78rem;
  }

  .btn-store .store-title {
    font-size: 1.2rem;
  }

  .hero-feature-grid {
    gap: 0.75rem;
  }

  .hero-feature-card {
    flex-basis: calc((100% - 1.5rem) / 3);
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }

  .hero-feature-card:nth-child(n+4) {
    flex-basis: calc((100% - 1.5rem) / 3 * 1.12);
  }

  .hero-feature-card svg {
    width: 34px;
    height: 34px;
  }

  .hero-slides {
    --slide-width: 300px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 3rem;
  }

  .hero-brand-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .hero-brand-title {
    font-size: 2.75rem;
  }

  .hero-brand-tagline {
    font-size: 0.85rem;
  }

  .hero-heading {
    max-width: 760px;
    font-size: 3.9rem;
  }

  .hero-subheading {
    max-width: 34rem;
    font-size: 1.28rem;
  }

  .store-buttons-group {
    max-width: 520px;
  }

  /* All five feature cards on one row */
  .hero-feature-grid {
    flex-wrap: nowrap;
    max-width: 980px;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .hero-feature-card,
  .hero-feature-card:nth-child(n+4) {
    flex: 1 1 0;
    padding: 1.25rem 0.75rem;
    font-size: 0.95rem;
  }

  .hero-feature-card svg {
    width: 38px;
    height: 38px;
  }

  .hero-slides {
    --slide-width: 320px;
    margin-top: 2.5rem;
  }

  .hero-slides-track {
    gap: 1.5rem;
  }
}

/* Wide screens: all five screenshots fit side by side, so no carousel */
@media (min-width: 1200px) {
  .hero-slides {
    --slide-width: min(260px, calc((100vw - 12rem) / 5));
  }

  .hero-slides-track {
    justify-content: center;
    padding-inline: 1.5rem;
    overflow-x: visible;
  }

  .hero-slides-dots {
    display: none;
  }
}

@media (max-width: 1080px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-center-badge {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .legal-content {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
  }
}
