/* Modern, compact, dynamic styles */
body.lp-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
.lp-home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  justify-content: center;
}
.lp-home-nav {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none !important;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
.lp-home-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(25, 83, 92, 0.08) !important;
}

/* Decorative Background Shapes */
.lp-hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.lp-shape {
  position: absolute;
  border-radius: 50%;
  animation: floatShape 20s ease-in-out infinite alternate;
}
.lp-shape-1 {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(25, 83, 92, 0.15);
  background: rgba(25, 83, 92, 0.02);
  top: -100px;
  left: -100px;
}
.lp-shape-2 {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 120, 80, 0.2);
  background: rgba(255, 120, 80, 0.02);
  bottom: 20%;
  right: 40%;
  animation-delay: -5s;
}
.lp-shape-3 {
  width: 500px;
  height: 500px;
  border: 1px solid rgba(25, 83, 92, 0.1);
  background: transparent;
  bottom: -150px;
  right: -100px;
  animation-delay: -10s;
}
@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

.lp-home-hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vh, 60px) 0;
}
.lp-home-hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.lp-home-hero-copy {
  position: relative;
  z-index: 2;
}

/* Animated Phone QR Floating Background */
.lp-phone-anim {
  position: absolute;
  top: -45px;
  right: -15px;
  width: 86px;
  height: 148px;
  margin-bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  animation: lpPhoneFloat 6s ease-in-out infinite;
}

@keyframes lpPhoneFloat {
  0%, 100% {
    transform: translateY(0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg) scale(1.03);
  }
}

.lp-phone-anim .phone-frame {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border: none;
  border-radius: 20px;
  padding: 10px 5px 6px 5px;
  box-shadow: 0 16px 38px -6px rgba(25, 83, 92, 0.35), 0 0 45px rgba(25, 83, 92, 0.2);
  position: relative;
  box-sizing: border-box;
}

.lp-phone-anim .phone-speaker {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 99px;
  z-index: 10;
}

.lp-phone-anim .phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

/* State 1: QR Code & Scanner */
.lp-phone-anim .qr-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  animation: lpQrPhase 4.5s infinite ease-in-out;
  z-index: 1;
}

.lp-phone-anim .qr-icon {
  font-size: 2.5rem;
  color: var(--brand, #19535c);
}

.lp-phone-anim .qr-scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.8);
  z-index: 5;
  animation: lpScanMove 4.5s infinite ease-in-out;
}

/* State 2: Menu Preview UI */
.lp-phone-anim .menu-container {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  animation: lpMenuPhase 4.5s infinite ease-in-out;
  z-index: 2;
}

.lp-phone-anim .mini-menu-header {
  height: 12px;
  background: linear-gradient(90deg, var(--brand, #19535c), #2a7b88);
  border-radius: 4px;
  width: 100%;
}

.lp-phone-anim .mini-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-phone-anim .mini-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lp-phone-anim .mini-img {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 3px;
  flex-shrink: 0;
}

.lp-phone-anim .mini-img.alt-1 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.lp-phone-anim .mini-img.alt-2 {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.lp-phone-anim .mini-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-phone-anim .mini-line {
  height: 3px;
  background: #cbd5e1;
  border-radius: 2px;
}

.lp-phone-anim .w-80 { width: 80%; }
.lp-phone-anim .w-50 { width: 50%; }
.lp-phone-anim .w-70 { width: 70%; }
.lp-phone-anim .w-40 { width: 40%; }
.lp-phone-anim .w-90 { width: 90%; }
.lp-phone-anim .w-60 { width: 60%; }

/* Keyframe Animations */
@keyframes lpQrPhase {
  0% { opacity: 1; transform: scale(1); }
  35% { opacity: 1; transform: scale(1); }
  42% { opacity: 0; transform: scale(0.85); }
  85% { opacity: 0; transform: scale(0.85); }
  92% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes lpScanMove {
  0% { top: 6px; opacity: 0; }
  8% { top: 12px; opacity: 1; }
  32% { top: 88px; opacity: 1; }
  38% { top: 94px; opacity: 0; }
  100% { top: 94px; opacity: 0; }
}

@keyframes lpMenuPhase {
  0% { opacity: 0; transform: translateY(8px); }
  38% { opacity: 0; transform: translateY(8px); }
  45% { opacity: 1; transform: translateY(0); }
  82% { opacity: 1; transform: translateY(0); }
  88% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.lp-hero-checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  font-size: 0.95rem;
  color: var(--ink-soft, #555);
}
.lp-hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-hero-checks i {
  color: var(--brand);
  font-size: 1.1rem;
}

/* Container Box for Region Picker */
.lp-region-box {
  margin-top: 26px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.lp-region-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.lp-region-select {
  flex: 1;
  position: relative;
}
.lp-region-btn {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  justify-content: flex-start;
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(25, 83, 92, 0.08);
  box-sizing: border-box;
}
.lp-region-btn i {
  margin-left: auto;
}
.lp-region-btn-label {
  margin-left: 8px;
}
.lp-region-menu {
  width: 100%;
  max-height: 220px;
  border-radius: 16px;
  top: 100%;
  margin-top: 8px;
}
.lp-region-go {
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: #000000;
  color: #ffffff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}
.lp-region-go:hover {
  background: #222222;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

@keyframes lpBtnPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(25, 83, 92, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(25, 83, 92, 0.55), 0 0 0 4px rgba(25, 83, 92, 0.15);
  }
}

/* Vertical Marquee layout */
.lp-vertical-marquee-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: 75dvh;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  padding: 0;
  box-sizing: border-box;
}

.lp-vertical-marquee-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollVert var(--duration, 360s) linear infinite;
  will-change: transform;
}

.lp-vertical-marquee-col:hover {
  animation-play-state: paused;
}

@keyframes scrollVert {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes scrollVertRev {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

/* Region Card for Marquee */
.lp-home-region-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(25, 83, 92, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(25, 83, 92, 0.05);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 0;
}
.lp-home-region-card:hover {
  background: #fff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(25, 83, 92, 0.12);
  border-color: var(--brand);
}
.lp-home-region-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f4f5;
}
.lp-home-region-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-home-region-card-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 2px;
}
.lp-home-region-card-flag {
  font-size: 1.1rem;
}
.lp-home-region-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Footer styling */
.lp-home-footer {
  padding: 24px 0;
  text-align: center;
  background: rgba(25, 83, 92, 0.03);
  border-top: 1px solid rgba(25, 83, 92, 0.05);
  color: var(--ink-soft, #555);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .lp-home-hero { padding: 30px 0; }
  .lp-home-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  
  .lp-home-hero-copy h1 {
    padding-right: 72px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }

  .lp-phone-anim {
    top: -20px;
    right: 0px;
    width: 62px;
    height: 106px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
  }

  .lp-region-box {
    margin-top: 18px;
    padding: 10px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 30px -6px rgba(25, 83, 92, 0.15), 0 2px 8px rgba(0, 0, 0, 0.03);
    background: #ffffff;
  }

  .lp-region-picker {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
  }
  .lp-region-select {
    flex: 1 1 67%;
    max-width: 67%;
    margin-top: 0;
    min-width: 0;
  }
  .lp-region-btn {
    padding: 0 10px;
    font-size: 0.82rem;
    height: 44px;
    border-radius: 12px;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(25, 83, 92, 0.08);
    box-shadow: none;
  }
  .lp-region-btn-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 4px;
    font-size: 0.82rem;
    color: var(--ink-soft, #444);
  }
  .lp-region-btn i {
    font-size: 0.75rem;
    flex-shrink: 0;
    color: var(--ink-soft, #666);
  }
  .lp-region-go {
    flex: 0 0 33%;
    max-width: 33%;
    height: 44px;
    border-radius: 12px;
    justify-content: center;
    padding: 0 8px;
    font-size: 0.82rem;
    white-space: nowrap;
    background: #000000;
    box-shadow: none;
  }

  .lp-hero-checks {
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
    font-size: 0.82rem;
    margin: 8px 0 12px 0;
  }
  .lp-hero-checks li {
    gap: 5px;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lp-hero-checks i {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .lp-vertical-marquee-container {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0;
    gap: 10px;
    width: 100%;
    overflow: hidden;
    position: static;
    left: auto;
    transform: none;
  }
  .lp-vertical-marquee-col {
    display: flex;
    flex-direction: row;
    width: max-content;
    gap: 10px;
  }
  .lp-vertical-marquee-col:nth-child(1) {
    display: flex;
    animation: scrollHoriz 110s linear infinite !important;
  }
  .lp-vertical-marquee-col:nth-child(2) {
    display: flex;
    animation: scrollHorizRev 110s linear infinite !important;
  }
  .lp-vertical-marquee-col:nth-child(3) {
    display: none;
  }
  .lp-home-region-card {
    flex: 0 0 140px;
    width: 140px;
  }
}
@keyframes scrollHoriz {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollHorizRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Product landing hero — food tiles, no region labels */
.lp-landing-hero {
  flex: none;
}
.lp-landing-hero .lp-home-hero-copy h1 {
  max-width: 18ch;
}
.lp-landing-hero .lp-hero-lead {
  max-width: 42ch;
  margin: 0 0 16px;
  color: var(--muted);
  text-shadow: none;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}
.lp-landing-hero .lp-hero-actions {
  margin-top: 20px;
}
.lp-landing-hero-photo {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(25, 83, 92, .12);
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(25, 83, 92, .14));
  aspect-ratio: 1 / 1;
  max-height: min(560px, 70vh);
  background: #e8eef0;
}
.lp-landing-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.lp .lp-trust-bar {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .lp-landing-hero .lp-home-hero-copy h1 {
    max-width: none;
  }
  .lp-landing-hero-photo {
    max-height: 280px;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }
}
