/* =====================
   THEME VARIABLES
   Light mode = default. Dark mode = system override.
   Landing page is immune — it uses only hardcoded rules in this file.
   ===================== */
:root {
  --bg:        #f0eeea;
  --surface:   #ffffff;
  --surface-2: #f5f3ef;
  --surface-3: #f8f7f5;
  --border:    #e0deda;
  --border-2:  #e8e6e2;
  --border-3:  #dddddd;
  --text-1:    #111111;
  --text-2:    #555555;
  --text-3:    #888888;
  --text-4:    #aaaaaa;
  --sk-base:   #dedad4;
  --sk-mid:    #e8e4de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #111111;
    --surface:   #1c1c1e;
    --surface-2: #252527;
    --surface-3: #2c2c2e;
    --border:    #2c2c2e;
    --border-2:  #38383a;
    --border-3:  #48484a;
    --text-1:    #f5f5f5;
    --text-2:    #ababab;
    --text-3:    #8e8e93;
    --text-4:    #636366;
    --sk-base:   #2c2c2e;
    --sk-mid:    #38383a;
  }
}

/* Prevent double-tap zoom on all pages */
html, body { touch-action: manipulation; }

/* EXPLORE BUTTON */
.explore-btn {
  padding: 16px 44px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.explore-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* =====================
   LANDING NAV
   ===================== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.nav-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #e0deda;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

.nav-logo-circle:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.nav-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-btn {
  padding: 10px 22px;
  border: 1.5px solid #111;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-login-btn:hover {
  background: #111;
  color: #fff;
  transform: none;
}

.nav-signup-btn {
  padding: 10px 22px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease;
}

.nav-signup-btn:hover {
  background: #333;
  transform: none;
}

/* BRAND NAME ABOVE TITLE */
.landing-brand {
  font-size: 18px;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* LANDING BUTTONS ROW */
.landing-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

/* EXPLORE BUTTON — outlined white bg */
.explore-btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.explore-btn:hover {
  background: #f0eeea;
  transform: translateY(-1px);
}

/* SIGN UP BUTTON — filled black */
.landing-signup-btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-signup-btn:hover {
  background: #333;
  transform: translateY(-1px);
}


/* =====================
   LANDING LAYOUT FIX
   ===================== */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Landing page — no scroll needed, video is fixed */
.landing {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  z-index: 1 !important;
}

.landing-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 28px !important;
}

.title {
  font-size: 72px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 32px !important;
  line-height: 1.05 !important;
  letter-spacing: -2px !important;
  color: #111 !important;
}

.landing-brand {
  text-align: center !important;
}

.landing-btns {
  justify-content: center !important;
}


/* =====================
   FONT OVERRIDE — Inter (matches SF Pro on all devices)
   ===================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -2.5px !important;
}

.landing-brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px !important;
}

.explore-btn,
.landing-signup-btn,
.nav-login-btn,
.nav-signup-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
  font-weight: 500 !important;
}


/* =====================
   MOBILE FIXES
   ===================== */
@media (max-width: 600px) {

  /* LANDING — smaller heading */
  .title {
    font-size: 52px !important;
    letter-spacing: -1.5px !important;
  }

  /* LANDING — force line break: Curated for the / culture. */
  .title::after {
    content: "";
  }

  /* BG VIDEO — fix zoom on mobile */
  .bg-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
  }

  /* LANDING NAV — keep login/signup on same row as logo */
  .landing-nav {
    padding: 14px 16px !important;
  }

  .nav-auth-btns {
    gap: 8px !important;
  }

  .nav-login-btn,
  .nav-signup-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  /* LANDING BUTTONS */
  .landing-btns {
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .explore-btn,
  .landing-signup-btn {
    padding: 13px 28px !important;
    font-size: 14px !important;
  }
}

/* TITLE LINE BREAK CONTROL */
.title-line1, .title-line2 { display: inline; }

@media (max-width: 600px) {
  /* On mobile: Curated for the / culture. */
  .title-line1 { display: block; }
  .title-line2 { display: block; }

  /* Hide the desktop <br> on mobile */
  .title br { display: none; }
}

/* =====================
   MOBILE LANDING FIXES v2
   ===================== */
@media (max-width: 600px) {

  /* VIDEO — fullscreen, centered */
  .bg-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* BRAND TEXT — closer to heading */
  .landing-brand {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
  }

  /* LANDING centered content */
  .landing {
    padding: 0 20px !important;
    gap: 12px !important;
  }
}

/* =====================
   LANDING LEGAL LINKS
   Scoped to index.html only — hardcoded colors, no CSS vars,
   so the landing aesthetic is fully immune to dark mode.
   ===================== */
.landing-legal {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  opacity: 0.6;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.landing-legal a {
  color: #111;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: opacity 0.15s;
}

.landing-legal a:hover { opacity: 0.75; }

.landing-legal span {
  color: #111;
  user-select: none;
}

/* LEGAL MODAL */
.legal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
}

.legal-backdrop.open { display: block; }

.legal-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 40px;
  max-width: 640px;
  margin: 0 auto;
  max-height: 75vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.legal-modal.open { transform: translateY(0); }

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.legal-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.legal-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  font-family: inherit;
}

.legal-modal-close:hover { color: #111; }

.legal-modal-body {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.legal-modal-body p { margin: 0 0 14px; }

.legal-modal-body ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-modal-body li { color: #444; }

.legal-modal-body strong { color: #111; font-weight: 600; }

.legal-updated {
  font-size: 12px !important;
  color: #aaa !important;
  margin-bottom: 16px !important;
}
