/* Mobile-first landing page — responsive, full viewport */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --header-bg: rgba(248, 244, 240, 0.95);
  --text-dark: #1a1a1a;
  --text-on-dark: #ffffff;
  --cta-bg: #252525;
  --cta-color: #fff;
  --dot-active: #252525;
  --dot-inactive: rgba(0, 0, 0, 0.3);
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  /* --rotate-duration: 5s; */
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100%;
  height: 100%;
  overflow-x: hidden;
  color: var(--text-dark);
  background: #e8e6e4;
}

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* Header — matches mockup (light bar, menu + logo) */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
  background: var(--header-bg);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-icon {
  font-size: 22px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

/* Carousel — fills remaining space */
.carousel {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.carousel-inner {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e0ddda;
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 24px;
  padding-bottom: calc(24px + var(--safe-bottom));
}

/* Headline — top, centered */
.slide-headline {
  font-family: 'Mulish', sans-serif;
  font-size: clamp(18px, 7.5vw, 26px);
  font-weight: 150;
  line-height: 1.2;
  text-align: center;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
  max-width: 70%;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Tagline — bottom right or left */
.slide-tagline {
  font-family: 'Mulish', sans-serif;
  font-size: clamp(13px, 6.8vw, 16px);
  line-height: 1.4;
  color: var(--text-dark);
  max-width:48%;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.slide-tagline--right {
  font-family: 'Mulish', sans-serif;
  align-self: flex-end;
  text-align: right;
}

.slide-tagline--left {
  font-family: 'Mulish', sans-serif;
  align-self: flex-start;
  text-align: left;
}

/* Bottom area: tagline + GET STARTED button stacked, centered */
.slide-bottom-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: auto;
}

.slide-bottom-area .slide-tagline {
  margin: 0;
  max-width: 60%;
}

/* CTA button */
.cta-btn {
  align-self: flex-end;
  margin-top: 0;
  padding: 12px 24px;
  background: var(--cta-bg);
  color: var(--cta-color);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn::after {
  content: "→";
}

.cta-btn:hover,
.cta-btn:focus {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn--center {
  align-self: center;
  padding: 14px 36px;
  font-size: 16px;
  letter-spacing: 0.05em;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--dot-inactive);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background: var(--dot-active);
  transform: scale(1.15);
}

/* Dark slide (e.g. slide 2 with black bg) — switch text to white */
.slide[data-slide="2"] .slide-headline,
.slide[data-slide="2"] .slide-tagline {
  color: var(--text-on-dark);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive: larger phones / small tablets */
@media (min-width: 400px) {
  .slide-content {
    padding: 20px 24px 28px;
    padding-bottom: calc(28px + var(--safe-bottom));
  }

  .slide-headline {
    font-size: clamp(22px, 6vw, 28px);
  }

  .slide-tagline {
    font-size: clamp(14px, 4vw, 17px);
  }
}

@media (min-width: 600px) {
  .landing-header {
    padding: 14px 24px 16px;
  }

  .slide-content {
    padding: 24px 32px 32px;
    padding-bottom: calc(32px + var(--safe-bottom));
  }

  .slide-headline {
    max-width: 85%;
  }

  .slide-tagline {
    max-width: 65%;
  }
}

/* ── Menu dropdown (login/user panel) ──────────────────── */

.menu-wrap {
  position: relative;
}

.menu-wrap--right {
  /* aligns dropdown to the right edge of the button */
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.menu-dropdown--right {
  left: auto;
  right: 0;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.login-btn:active {
  opacity: 0.7;
}

.login-btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Mulish', sans-serif;
  flex-shrink: 0;
}

.user-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-bar-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.user-name {
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-link {
  display: inline-block;
  padding: 7px 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.logout-link:active {
  opacity: 0.7;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

.menu-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-nav-link:active { opacity: 0.7; }
