/* ============================================================
   alice.io homepage-mock — mock-only overrides
   Replaces only: navbar + above-the-fold hero
   Below the fold: production CSS untouched.

   Webflow team: when porting this back into Webflow:
   - Most styles below are reachable via Webflow's UI controls
   - The CSS-only mobile drawer toggle (`#mock-nav-toggle:checked ~ ...`)
     should be replaced with Webflow's native Tap interaction.
   - All custom classes are prefixed `mock-` for grep-ability.

   Authoring order: mobile-first. Default rules target ≤880px;
   desktop rules go inside @media (min-width: 880px).
   ============================================================ */

/* ============================================================
   Hide production-injected noise we couldn't strip from source
   (OneTrust cookie banner, third-party widgets the prod CSS pulls in).
   Webflow team: ignore — this only matters in the mock.
   ============================================================ */
#onetrust-consent-sdk,
#onetrust-banner-sdk,
#onetrust-pc-sdk,
#onetrust-pc-dark-filter,
[id^="onetrust-"],
.ot-sdk-show-settings,
.optanon-alert-box-wrapper {
  display: none !important;
}

/* ============================================================
   U2: Navbar
   ============================================================ */

/* The hidden checkbox that drives the mobile drawer.
   Webflow team: replace with native Tap interaction on .mock-nav-hamburger. */
.mock-nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Mobile-first nav layout */
.mock-nav .nav_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
}

.mock-nav-logo {
  width: 110px;
  height: 38px;
}

/* Hamburger icon — visible on mobile only */
.mock-nav-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  z-index: 10;
}

.mock-nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.2s, opacity 0.2s;
}

/* When the toggle is checked, morph the hamburger into an X */
#mock-nav-toggle:checked ~ .mock-nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#mock-nav-toggle:checked ~ .mock-nav-hamburger span:nth-child(2) {
  opacity: 0;
}
#mock-nav-toggle:checked ~ .mock-nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer — hidden by default, expands when checkbox checked */
.mock-nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  margin-top: 1rem;
  gap: 0.5rem;
}

#mock-nav-toggle:checked ~ .mock-nav-menu {
  display: flex;
}

.mock-nav-menu .mock-nav-link,
.mock-nav-menu .mock-nav-dropdown-toggle {
  padding: 0.85rem 0;
  font-size: 1rem;
  width: 100%;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* Mobile: dropdowns flatten — show list items inline */
.mock-nav-menu .mock-nav-dropdown {
  width: 100%;
}

.mock-nav-menu .mock-nav-dropdown-list {
  position: static;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 0.5rem 0.75rem;
  margin: 0;
}

.mock-nav-menu .mock-nav-dropdown-list a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.mock-nav-menu .mock-nav-cta {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* ============================================================
   U2: Desktop nav (≥880px)
   ============================================================ */
@media (min-width: 880px) {
  .mock-nav-hamburger,
  .mock-nav-toggle-input {
    display: none;
  }

  .mock-nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    margin-top: 0;
    border-top: none;
    gap: 1.6rem;
  }

  .mock-nav-menu .mock-nav-link,
  .mock-nav-menu .mock-nav-dropdown-toggle {
    padding: 0;
    border-bottom: none;
    width: auto;
    font-size: 0.95rem;
  }

  .mock-nav-menu .mock-nav-dropdown {
    width: auto;
    position: relative;
  }

  .mock-nav-menu .mock-nav-dropdown-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    padding: 0.6rem 0;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    display: none;
  }

  .mock-nav-menu .mock-nav-dropdown:hover .mock-nav-dropdown-list,
  .mock-nav-menu .mock-nav-dropdown:focus-within .mock-nav-dropdown-list {
    display: block;
  }

  .mock-nav-menu .mock-nav-dropdown-list a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .mock-nav-menu .mock-nav-dropdown-list a:hover {
    background: rgba(26, 26, 26, 0.04);
  }

  .mock-nav-menu .mock-nav-cta {
    margin-top: 0;
    margin-left: 0.4rem;
    width: auto;
    text-align: left;
  }
}

/* ============================================================
   Hover/focus polish
   ============================================================ */
.mock-nav-menu .mock-nav-link:hover,
.mock-nav-menu .mock-nav-dropdown-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mock-nav-menu .mock-nav-link:focus-visible,
.mock-nav-menu .mock-nav-dropdown-toggle:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* ============================================================
   U3 + U4: Hero (doorway)
   Mobile-first: defaults target ≤880px; desktop is the @media extension.
   U4 lives in the same authoring pass — extends, never overrides.
   ============================================================ */

.mock-hero {
  position: relative;
  background: #f5f2ec;
  padding: 2.5rem 1.25rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

/* Illustration layer — sits behind hero content */
/* Backdrop layer: HIDDEN on mobile (band takes over), visible on desktop */
.mock-hero-illo-layer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  align-items: center;
  justify-content: center;
}

/* Illustration as a background-image on the layer — guarantees it fills
   the entire hero at any viewport with no aspect-ratio gymnastics. The
   Lottie's native composition has a mid-canvas gap (where the rabbit walks);
   using a single static AVIF frame with background-size: cover sidesteps it.
   Tradeoff: no animation in the mock — acceptable for static review. */
.mock-hero-illo-layer {
  background: url("https://cdn.prod.website-files.com/69005ca0f0832195cbc1370c/69dcf9a5a1cf6d78c7a68fb8_alice-hero-first-frame.avif") center/cover no-repeat;
}

/* Hide the inner img + lottie elements — backdrop is now the layer's background */
.mock-hero-illo-fallback,
.mock-hero-illo-lottie {
  display: none;
}

/* Mobile illustration BAND — visible only on mobile, sits between H1/sub and doors.
   Acts as the "river" the user crosses to enter a door. */
.mock-hero-band {
  position: relative;
  display: block;
  height: 140px;
  margin: 0.5rem -1.25rem 1.6rem;  /* bleed to viewport edges */
  overflow: hidden;
  z-index: 1;
}
.mock-hero-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* Content stack sits above the illustration */
.mock-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.mock-hero-eyebrow {
  margin-bottom: 1rem;
}

.mock-hero-h1 {
  font-size: 2.1rem;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  font-weight: 400;
}

.mock-hero-sub {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  color: #4a4a4a;
}

/* Doorway grid — mobile: stacked. Desktop: side-by-side. */
.mock-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 1.6rem auto 0;
  max-width: 720px;
}

.mock-door {
  position: relative;
  display: block;
  text-decoration: none;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  box-shadow: 6px 6px 0 #1a1a1a;
  padding: 1.4rem 1.25rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 200px;
}

.mock-door:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #1a1a1a;
}

.mock-door:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 4px;
}

.mock-door-product { background: #d988b1; }   /* pink */
.mock-door-labs    { background: #BCE0F5; }   /* blue */

.mock-door-pill {
  display: inline-block;
  background: #1a1a1a;
  color: #f5f2ec;
  font-family: 'Haas Text Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.85rem;
}

.mock-door-title {
  font-family: Romie, serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
  margin: 0 0 0.6rem;
}

.mock-door-body {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  color: #1a1a1a;
}

.mock-door-cta {
  display: inline-block;
  font-family: 'Haas Text Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.15rem;
}

/* ============================================================
   Hero — desktop (≥880px)
   ============================================================ */
@media (min-width: 880px) {
  .mock-hero {
    padding: 4.5rem 2rem 5rem;
    min-height: 720px;
  }

  /* Hide mobile band; show desktop backdrop */
  .mock-hero-band {
    display: none;
  }
  .mock-hero-illo-layer {
    display: flex;
    opacity: 0.55;
  }

  .mock-hero-h1 {
    font-size: 3.6rem;
  }

  .mock-hero-sub {
    font-size: 1.05rem;
    margin-bottom: 2.4rem;
  }

  .mock-doors {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    margin-top: 2.5rem;
  }

  .mock-door {
    padding: 2rem 1.8rem 2.2rem;
    min-height: 280px;
  }

  .mock-door-title {
    font-size: 2.4rem;
  }

  .mock-door-body {
    font-size: 1rem;
  }
}
