/* indexStyle.css — Homepage
   Source: Figma node 284:1226  */

:root {
  --purple: #2d138c;
  --mint:   #c6cec3;
  --font:   "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: auto;
  font: 400 14px/normal var(--font);
}

/* ── Full-screen background ─────────────────────────────────────────────── */

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #111 center/cover no-repeat;
}

/* Dark tint over the photo */
#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(48, 48, 62, 0.23);
}

/* Everything above the bg */
header, .arrow-pill, .hero-wrap, .desc-box {
  position: fixed;
  z-index: 10;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */

header.navbar {
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  background: rgba(231, 231, 231, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logo block */
.logo-block {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 229px;
  height: 107px;
  padding: 15px 16px;
  border-radius: 10px;
  background: #c6cec3;
}

.logo-block img {
  display: block;
  width: 111px;
  height: 55.79px;
}

/* Nav pill buttons */
.nav-links {
  display: flex;
  gap: 14px;
  margin-left: 14px;
}

.nav-btn {
  text-decoration: none;
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  background: rgba(202, 202, 202, 0.45);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 8px rgba(0,0,0,0.12);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--purple);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-btn:hover {
  background: rgba(220, 220, 220, 0.65);
}

/* LOGIN button */
.login-btn {
  margin-left: auto;
  flex: none;
  height: 48px;
  padding: 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  background: var(--purple);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.login-btn:hover {
  background: #3a1cb0;
}

/* ── Arrow pills (left / right) ─────────────────────────────────────────── */

.arrow-pill {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  width: 60px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 20px rgba(0,0,0,0.18);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0 12px;
  gap: 8px;
  transition: background 0.15s;
}

.arrow-pill--right {
  left: auto;
  right: 30px;
}

.arrow-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Purple circle behind the arrow chevron */
.arrow-circle {
  flex: none;
  width: 40px;
  height: 39px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Dot indicators inside the pill */
.pip {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  flex: none;
}

.pip--sm {
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.45);
}

/* ── Hero (vertically centred) ──────────────────────────────────────────── */

.hero-wrap {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.promo-badge {
  padding: 5px 21px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: var(--purple);
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
}

.hero-card {
  width: 577px;
  padding: 50px 35px 47px;
  border-radius: 30px;
  /* liquid-glass on purple tint */
  background: rgba(45, 19, 140, 0.32);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.hero-sub {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 507px;
  height: 36px;
  padding: 0 10px 0 20px;
  border-radius: 30px;
  background: #ebebeb;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: 14px/normal var(--font);
  color: #525252;
}

.search-bar input::placeholder {
  color: #525252;
}

.search-hint {
  font-size: 14px;
  color: #525252;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-go {
  flex: none;
  width: 32px;
  height: 20px;
  border: 0;
  border-radius: 9.5px;
  background: #939393;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

.search-go:hover { background: #777; }

.disclaimer {
  margin: 0;
  font-size: 10px;
  color: #ddd;
}

/* ── Description box (bottom-left) ─────────────────────────────────────── */

.desc-box {
  bottom: 80px;
  left: 84px;
  width: 313px;
  padding: 33px 21px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desc-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  text-align: right;
}

.desc-body {
  margin: 0;
  font-size: 14px;
  color: #000;
  text-align: justify;
}

/* ── Popup ──────────────────────────────────────────────────────────────── */

#popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(180, 180, 180, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#popup-card {
  position: relative;
  width: 581px;
  padding: 30px 50px 50px;
  border-radius: 30px;
  background: var(--purple);
  display: flex;
  flex-direction: column;
  gap: 21px;
  overflow: hidden;
}

#popup-close {
  position: absolute;
  top: 25px;
  right: 19px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

#popup-close:hover {
  background: #eee;
}

.popup-text-block {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 5px;
  padding-right: 12px;
  width: 452px;
}

.popup-heading {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  line-height: normal;
}

.popup-intro {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  width: 347px;
  line-height: normal;
}

.popup-photo {
  position: relative;
  width: 480px;
  height: 352px;
  border-radius: 29px;
  overflow: hidden;
  flex: none;
}

.popup-photo img {
  position: absolute;
  left: -52.66%;
  top: -9.84%;
  width: 160.07%;
  height: 145.36%;
  max-width: none;
  display: block;
}

.popup-sub {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  width: 487px;
  line-height: normal;
}

/* ── Onboarding overlay ─────────────────────────────────────────────────── */

#ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 19, 140, 0.18);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: auto;
}

#ob-overlay.is-open {
  transform: translateX(0);
  pointer-events: all;
}

/* Scrollable inner — centers content when viewport is large enough */
#ob-scroller {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 60px;
}

/* ── Left panel ──────────────────────────────────────────────────────────── */

#ob-left {
  flex: none;
  width: 353px;
  background: var(--purple);
  border-radius: 30px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#ob-logo-block {
  width: 100%;
  height: 107px;
  background: var(--mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

#ob-searching-label {
  margin: 0;
  font-size: 12px;
  color: #fff;
  font-weight: 400;
}

#ob-address-pill {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 10px 30px;
  max-width: 100%;
}

#ob-address-pill span {
  font-size: 12px;
  color: #fff;
  text-align: center;
  word-break: break-word;
  display: block;
}

/* ── Right column ────────────────────────────────────────────────────────── */

#ob-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#ob-track {
  width: 581px;
  overflow: hidden;
}

#ob-row {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.ob-card {
  flex: 0 0 581px;
  width: 581px;
  background: var(--purple);
  border-radius: 30px;
  padding: 30px 50px 50px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.ob-h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  line-height: normal;
  max-width: 452px;
}

.ob-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 452px;
  padding-right: 12px;
}

.ob-body {
  margin: 0;
  font-size: 14px;
  color: #fff;
  line-height: normal;
}

.ob-h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  line-height: normal;
}

.ob-img-wrap {
  width: 100%;
  overflow: hidden;
  flex: none;
  aspect-ratio: 3 / 2;
}

.ob-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ob-next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 40px;
  border: 0;
  border-radius: 30px;
  background: #fff;
  font: 400 20px/normal var(--font);
  color: #000;
  cursor: pointer;
  flex: none;
  align-self: flex-start;
  transition: background 0.15s;
}

.ob-next-btn:hover { background: #eee; }

#ob-prev {
  border: 0;
  background: none;
  font: 400 14px/normal var(--font);
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

#ob-prev:hover { opacity: 0.75; }

/* ── Narrow screens ─────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-card, .search-bar { width: 90vw; max-width: 500px; }
  .hero-wrap { width: 90vw; }
}

@media (max-width: 600px) {
  .hero-card h1 { font-size: 24px; white-space: normal; }
  .desc-box { left: 16px; right: 16px; width: auto; bottom: 16px; }
}
