/* =========================
   HOW page (clean stylesheet)
   ========================= */

/* Bump all content down on how page */
.how {
  margin-top: 60px;
}

/* Bring scroll-arrow up in section-1 */
.how #section-1 .scroll-arrow {
  margin-top: -20px;
}


:root { --header-h: 108px; }

/* prevent 100vw pseudo bgs from creating a horizontal scrollbar */
html, body { overflow-x: hidden; }

/* Anima wrapper sometimes clips; allow bleed + sticky to work */
.container-center-horizontal { width: 100%; overflow: visible; }

/* ---- Page shell ---- */
.how {
  align-items: flex-start;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  overflow: visible;                 /* body is the only scroller */
  margin-top: 30px;                 /* Additional 30px for how page */
}

/* ---- Header (only the pill sticks) ---- */
.how .header {
  align-items: flex-end;
  background: transparent;
  display: flex;
  flex-direction: row;
  height: var(--header-h);
  justify-content: center;
  margin-top: 1px;
  padding: 34px 481px;               /* keep original layout */
  width: 100%;
  position: fixed;                /* not sticky */
  z-index: 3;
}

.how .frame-17 {
  -webkit-backdrop-filter: blur(2px) brightness(100%);
  backdrop-filter: blur(2px) brightness(100%);
  background-color: #ffffff40;
  border-radius: 15px;
  display: inline-flex;
  gap: 25px;
  margin-left: 1px;
  align-items: center;

  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;                     /* above section backgrounds */
}

.how .frame-112 { height: 13px; position: relative; width: 87px; }
.how .group-2-2 { height: 16px; left: 15px; position: absolute; top: 0; width: 58px; }
.how .frame-13  { align-items: center; border-radius: 15px; display: inline-flex; flex: 0 0 auto; gap: 10px; justify-content: center; overflow: hidden; padding: 8px 15px; position: relative; }
.how .features  { letter-spacing: 0; line-height: normal; margin-top: -1px; position: relative; text-align: center; width: fit-content; }
.how .button    { flex: 0 0 auto; }
.how .get-in-touch { height: 23px; letter-spacing: 0; line-height: normal; margin-top: -1px; position: relative; text-align: center; width: 62px; }
.how .arrow-1   { height: 3.68px; margin-right: -0.25px; position: relative; width: 8.25px; }
.how .button-2  { align-items: center; background: var(--reef); border-radius: 15px; cursor: pointer; display: inline-flex; gap: 10px; justify-content: center; overflow: hidden; padding: 8px 23px; position: relative; }

/* ---- Full-bleed sections (122/123/124) ---- */
.how .frame-122,
.how .frame-123,
.how .frame-124 {
  position: relative;                 /* host the pseudo bg */
  isolation: isolate;                 /* keep bg behind only this section */
  width: 100%;
}

.how .frame-122::before,
.how .frame-123::before,
.how .frame-124::before {
  content: "";
  position: absolute;
  z-index: -1;                        /* behind content */
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;                       /* edge-to-edge color */
  background: inherit;                /* use each section’s own bg */
}

/* extend section 1’s color up behind the sticky pill */
.how .frame-122::before {
  top: calc(-1 * var(--header-h));
  height: calc(100% + var(--header-h));
}

/* ---- Section 1 content ---- */
.how .frame-122 {
  align-items: flex-start;
  background: #f3eee7;
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-height: 727px;
  padding: 23px 30px;
}

.how .group-2 { align-items: flex-start; display: flex; height: 29px; min-width: 108px; }
.how .trepo   { color: var(--green-house); font-family: var(--font-family-violet_sans-regular); font-size: var(--font-size-l); font-weight: 400; letter-spacing: -0.58px; line-height: normal; min-height: 29px; min-width: 95px; text-align: center; white-space: nowrap; }
.how .ai      { color: var(--green-house); font-family: var(--font-family-violet_sans-regular); font-size: var(--font-size-xxs); font-weight: 400; letter-spacing: -0.18px; line-height: normal; margin-top: 1.8px; min-height: 9px; min-width: 9px; text-align: center; white-space: nowrap; }

.how .overlap-group3 { align-self: center; height: 611px; margin-left: 46px; position: relative; width: 1077px; }
.how .overlap-group2 { height: 595px; left: 0; position: absolute; top: 0; width: 1077px; }
.how .number { color: var(--green-house); left: 0; position: absolute; top: 115px; }

.how .chat-gpt-image-sep-8-2025-03_35_51-pm-2 { aspect-ratio: 0.67; height: 595px; left: 681px; object-fit: cover; position: absolute; top: 0; width: 396px; }
.how .title  { color: var(--green-house); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-xl); font-weight: 500; left: 0; letter-spacing: -1.60px; line-height: 72px; position: absolute; top: 240px; width: 551px; }
.how .before-you-throw-an { color: var(--green-house); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-m); font-weight: 400; left: 0; letter-spacing: 0; line-height: 25px; position: absolute; top: 415px; width: 503px; }

/* ---- Section 2 ---- */
.how .frame-123 {
  align-items: center;
  background: #d3fba2;
  display: flex;
  gap: 217px;
  height: 827px;
  justify-content: flex-end;
  padding: 50px 0;
}

.how .in-store-shopping-list-1-1 { align-self: flex-end; aspect-ratio: 0.51; height: 726px; object-fit: cover; width: 367px; }
.how .flex-col { align-items: flex-start; display: flex; flex-direction: column; margin-top: 32px; min-height: 321px; width: 707px; }
.how .number-1 { color: var(--green-house); min-height: 68px; }
.how .deliveries-schedule-automatically { color: var(--green-house); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-xl); font-weight: 500; letter-spacing: -1.60px; line-height: 72px; margin-top: 27px; min-height: 117px; width: 551px; }
.how .trepos-ai-learns-yo { color: var(--green-house); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-m); font-weight: 400; letter-spacing: 0; line-height: 25px; margin-top: 45px; min-height: 64px; width: 537px; }

/* ---- Section 3 (with full-bleed bg) ---- */
.how .overlap-group4 { height: 972px; position: relative; width: 100%; }
.how .overlap-group5 { height: 972px; left: 0; position: absolute; top: 0; width: 100%; }

.how .frame-124 {
  align-items: flex-start;
  background: #1d4509;
  display: flex;
  height: 972px;
  justify-content: center;
  left: 0;
  padding: 230px 30px;
  position: absolute;
  top: 0;
  width: 100%;
}

.how .overlap-group1 { height: 414px; position: relative; width: 1151px; }
.how .overlap-group  { height: 414px; left: 0; position: absolute; top: 0; width: 1151px; }
.how .number-2 { color: var(--white-linen); left: 0; position: absolute; top: 42px; }
.how .enjoy    { color: var(--white-linen); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-xl); font-weight: 500; left: 0; letter-spacing: -1.60px; line-height: 72px; position: absolute; top: 167px; width: 551px; }
.how .trepo_bag-1 { aspect-ratio: 1.5; height: 414px; left: 530px; object-fit: cover; position: absolute; top: 0; width: 621px; }
.how .and-just-like-that-y { color: var(--white-linen); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-m); font-weight: 400; left: 0; letter-spacing: 0; line-height: 25px; position: absolute; top: 263px; width: 509px; }

.how .building-a-fridge-sc { color: var(--white-linen); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-s); font-weight: 400; left: 30px; letter-spacing: 0; line-height: 16px; position: absolute; top: 905px; width: 290px; }
.how .matttrepoai-1-858-232-1987 { color: var(--white-linen); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-s); font-weight: 400; left: 1116px; letter-spacing: 0; line-height: 16px; position: absolute; top: 889px; width: 134px; }
.how .group-3 { height: 29px; left: 30px; position: absolute; top: 853px; width: 104px; }
.how .place  { color: var(--white-linen); font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-xs); font-weight: 600; left: 1115px; letter-spacing: 0; line-height: 9px; position: absolute; top: 852px; white-space: nowrap; }
.how .number-3 { font-family: var(--font-family-darker_grotesque); font-size: var(--font-size-xxl); font-weight: 600; letter-spacing: -2.40px; line-height: 108px; width: 707px; }

/* ---- Scroll arrows ---- */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-arrow svg {
  color: var(--green-house);
  transition: color 0.3s ease;
}

.scroll-arrow:hover svg {
  color: #1d4509;
}

/* Hide arrow on last section */
#section-3 .scroll-arrow {
  display: none;
}

/* ---- Join button styling (consistent with other pages) ---- */
.button-join {
  background: var(--reef) !important;
  border: none !important;
}

.button-join:hover {
  background: #c2f08a !important;
}

/* ---- Page indicator bubble ---- */
.nav-item-with-bubble {
  position: relative;
}

.nav-item-with-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  background: rgba(246, 242, 233, 0.3);
  border-radius: 20px;
  z-index: -1;
  pointer-events: none;
}

/* ---- Simple Join Button ---- */
.simple-join-button {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.simple-join-button a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff5db;
  color: var(--green-house);
  padding: 20px 40px;
  border-radius: 35px;
  text-decoration: none;
  font-family: var(--font-family-darker_grotesque);
  font-size: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.simple-join-button a::after {
  content: "→";
  font-size: 22px;
  transition: transform 0.3s ease;
}

.simple-join-button a:hover::after {
  transform: translateX(4px);
}

/* ---- Mobile Responsive Design ---- */
@media (max-width: 768px) {
  .how {
    margin-top: 25px; /* Slightly less margin on mobile for how page */
  }
  
  .how .header {
    padding: 20px;
  }
  
  .how .frame-17 {
    gap: 15px;
    padding: 8px 15px;
  }
  
  .how .nav-menu {
    gap: 15px;
  }
  
  .how .nav-item {
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .how .frame-122,
  .how .frame-123,
  .how .frame-124 {
    padding: 20px;
  }
  
  .how .title {
    font-size: 50px;
    line-height: 60px;
    width: 100%;
  }
  
  .how .before-you-throw-an {
    font-size: 18px;
    line-height: 24px;
    width: 100%;
  }
  
  .how .deliveries-schedule-automatically {
    font-size: 50px;
    line-height: 60px;
    width: 100%;
  }
  
  .how .trepos-ai-learns-yo {
    font-size: 18px;
    line-height: 24px;
    width: 100%;
  }
  
  .how .enjoy {
    font-size: 50px;
    line-height: 60px;
    width: 100%;
  }
  
  .how .and-just-like-that-y {
    font-size: 18px;
    line-height: 24px;
    width: 100%;
  }
  
  .how .overlap-group3 {
    width: 100%;
    margin-left: 0;
    height: auto;
  }
  
  .how .overlap-group2 {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .how .chat-gpt-image-sep-8-2025-03_35_51-pm-2 {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 20px;
  }
  
  .how .in-store-shopping-list-1-1 {
    width: 100%;
    height: auto;
  }
  
  .how .flex-col {
    width: 100%;
    margin-top: 20px;
  }
  
  .how .frame-123 {
    flex-direction: column;
    gap: 30px;
    height: auto;
    padding: 30px 20px;
  }
  
  .how .frame-124 {
    padding: 50px 20px;
    height: auto;
  }
  
  .how .overlap-group1 {
    width: 100%;
    height: auto;
  }
  
  .how .overlap-group {
    width: 100%;
    height: auto;
  }
  
  .how .trepo_bag-1 {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 20px;
  }
  
  .simple-join-button {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 30px;
  }
  
  .scroll-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .how .header {
    padding: 15px;
  }
  
  .how .frame-17 {
    gap: 10px;
    padding: 6px 12px;
  }
  
  .how .nav-menu {
    gap: 10px;
  }
  
  .how .nav-item {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .how .title {
    font-size: 40px;
    line-height: 50px;
  }
  
  .how .deliveries-schedule-automatically {
    font-size: 40px;
    line-height: 50px;
  }
  
  .how .enjoy {
    font-size: 40px;
    line-height: 50px;
  }
  
  .how .before-you-throw-an,
  .how .trepos-ai-learns-yo,
  .how .and-just-like-that-y {
    font-size: 16px;
    line-height: 22px;
  }
}

/* ---- UCSD specific styles ---- */
.ucsd-badge {
  color: #ffffff;
  background: var(--green-house);
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--font-family-darker_grotesque);
  font-size: var(--font-size-s);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: absolute;
  top: 20px;
  right: 20px;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(29, 68, 9, 0.3);
  animation: pulse 2s infinite;
  z-index: 10;
}

.free-badge-large {
  color: var(--green-house);
  background: var(--reef);
  padding: 20px 40px;
  border-radius: 50px;
  font-family: var(--font-family-darker_grotesque);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: absolute;
  top: 80px;
  right: 80px;
  width: fit-content;
  box-shadow: 0 8px 25px rgba(212, 251, 163, 0.4);
  transform: rotate(-15deg);
  animation: bounce 3s infinite;
  z-index: 10;
}

.ucsd-title {
  font-size: 100px !important;
  line-height: 90px !important;
  font-weight: 700 !important;
  letter-spacing: -2px !important;
  background: linear-gradient(135deg, var(--green-house), #2d5a0f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(29, 68, 9, 0.2);
  position: relative;
  margin-top: 60px !important;
  margin-bottom: 30px !important;
  max-width: 800px !important;
}

.ucsd-title::after {
  content: "🎉";
  position: absolute;
  top: -10px;
  right: -40px;
  font-size: 40px;
  animation: wiggle 2s infinite;
}

.ucsd-description {
  font-size: 28px !important;
  line-height: 36px !important;
  font-weight: 500 !important;
  color: var(--green-house) !important;
  margin-top: 20px !important;
  margin-bottom: 40px !important;
  max-width: 700px !important;
}

.ucsd-features-inline {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.feature-highlight {
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-house);
  padding: 15px 25px;
  border-radius: 25px;
  font-family: var(--font-family-darker_grotesque);
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--green-house);
}

.ucsd-cta-button {
  position: relative;
  margin-top: 40px;
  text-align: center;
  z-index: 10;
}

.ucsd-cta-button a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff5db, #ffeaa7);
  color: var(--green-house);
  padding: 25px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-family-darker_grotesque);
  font-size: 24px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 3px solid var(--green-house);
  box-shadow: 0 8px 25px rgba(29, 68, 9, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ucsd-cta-button a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(29, 68, 9, 0.3);
  background: linear-gradient(135deg, var(--green-house), #2d5a0f);
  color: #ffffff;
}

.ucsd-cta-button a::after {
  content: "🚀";
  font-size: 28px;
  transition: transform 0.3s ease;
}

.ucsd-cta-button a:hover::after {
  transform: translateX(8px) rotate(15deg);
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(-15deg) translateY(0); }
  40% { transform: rotate(-15deg) translateY(-10px); }
  60% { transform: rotate(-15deg) translateY(-5px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}
