:root{
  --cream: #fff8ef;
  --cream-strong: #fff1db;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --ink: #26180f;
  --ink-soft: #65584f;
  --orange: #ff7a1a;
  --orange-strong: #ef5d0a;
  --orange-soft: #fff0e3;
  --green: #39bf66;
  --green-soft: #e7f8ed;
  --yellow: #ffc247;
  --line: rgba(38,24,15,.08);
  --shadow-lg: 0 28px 70px rgba(65,33,8,.16);
  --shadow-md: 0 18px 44px rgba(65,33,8,.11);
  --shadow-sm: 0 10px 24px rgba(65,33,8,.08);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html,
body{
  margin: 0;
  min-height: 100%;
}

body{
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,194,71,.12) 0,
      rgba(255,194,71,.12) 18px,
      rgba(255,255,255,.45) 18px,
      rgba(255,255,255,.45) 72px
    ),
    linear-gradient(180deg, #fffdf9 0%, #fff6ea 100%);
  overflow-x: hidden;
}

.page-bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(57,191,102,.18), transparent 10%),
    radial-gradient(circle at 92% 58%, rgba(255,122,26,.22), transparent 9%),
    radial-gradient(circle at 88% 22%, rgba(255,194,71,.24), transparent 16%);
}

.phone-shell{
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 44px 18px calc(44px + env(safe-area-inset-bottom, 0px));
}

.screen{
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px 24px;
  border-radius: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,249,241,.94));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.8);
}

.hero-card{
  display: block;
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,194,71,.18), transparent 22%),
    radial-gradient(circle at 92% 84%, rgba(255,122,26,.14), transparent 20%),
    linear-gradient(180deg, #fffdf9 0%, #fff5e8 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.brand-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo{
  display: block;
  width: min(170px, 48vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(37,99,235,.12));
}

.brand-mark{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #58d37b 0%, #3ab563 46%, #ffb331 46%, #ff7a1a 100%);
  box-shadow: inset 0 2px 8px rgba(255,255,255,.45);
}

.brand-text{
  display: grid;
  line-height: .92;
}

.brand-text strong{
  font-size: 2rem;
}

.brand-text span{
  font-size: 2rem;
  color: var(--orange);
  font-weight: 900;
}

.partner-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.eyebrow{
  margin: 16px 0 8px;
  color: var(--orange-strong);
  font-size: .95rem;
  font-weight: 700;
}

.hero-card h1{
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.hero-card h1 span{
  color: var(--orange);
}

.hero-copy{
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-points{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li{
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-points li::before{
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #43cb71, #27a753);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  max-width: none;
}

.location-feedback{
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(38,24,15,.08);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.location-feedback[data-state="success"]{
  background: rgba(232,248,236,.94);
  border-color: rgba(39,167,83,.22);
  color: #155b2f;
}

.location-feedback[data-state="warning"]{
  background: rgba(255,248,229,.96);
  border-color: rgba(255,156,40,.28);
  color: #74430d;
}

.location-feedback[data-state="error"]{
  background: rgba(255,238,235,.96);
  border-color: rgba(225,82,50,.26);
  color: #7b2519;
}

.primary-button,
.secondary-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
}

.primary-button{
  color: #fff;
  background: linear-gradient(180deg, #ffb33e 0%, #ff891d 38%, #ff6518 100%);
  box-shadow: 0 18px 36px rgba(255,122,26,.34);
}

.primary-button:disabled,
.address-radius-form button:disabled{
  cursor: progress;
  opacity: .72;
  box-shadow: none;
}

.secondary-button{
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.food-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one{
  top: 10px;
  right: -10px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,194,71,.36), rgba(255,194,71,0));
}

.orb-two{
  right: -34px;
  bottom: 20px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,122,26,.26), rgba(255,122,26,0));
}

.leaf{
  position: absolute;
  width: 34px;
  height: 24px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #79db65, #3ab45f);
  transform: rotate(-28deg);
  box-shadow: 0 6px 14px rgba(57,191,102,.18);
}

.leaf-one{
  top: 78px;
  left: 8px;
}

.leaf-two{
  top: 168px;
  right: 54px;
}

.hero-burger,
.hero-pizza{
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero-burger{
  top: 72px;
  right: 8px;
  width: 280px;
  height: 220px;
  background-image:
    radial-gradient(circle at 50% 18%, #ffd37f 0 34%, transparent 35%),
    radial-gradient(circle at 50% 46%, #6a2d12 0 26%, transparent 27%),
    radial-gradient(circle at 50% 54%, #f0c441 0 30%, transparent 31%),
    radial-gradient(circle at 48% 68%, #62c75a 0 26%, transparent 27%),
    radial-gradient(circle at 50% 84%, #e9a04b 0 34%, transparent 35%);
}

.hero-pizza{
  right: -24px;
  bottom: -10px;
  width: 360px;
  height: 280px;
  background-image:
    radial-gradient(circle, #f1bd72 0 46%, #cf7d36 47% 52%, transparent 53%),
    radial-gradient(circle at 36% 34%, #cf322b 0 4%, transparent 5%),
    radial-gradient(circle at 58% 46%, #cf322b 0 4%, transparent 5%),
    radial-gradient(circle at 44% 62%, #cf322b 0 4%, transparent 5%),
    radial-gradient(circle at 62% 60%, #cf322b 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, #f6efc8 0 35%, transparent 36%);
}

.search-panel{
  margin-top: 12px;
}

.search-field{
  display: grid;
  grid-template-columns: 24px 1fr 50px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.search-icon{
  width: 24px;
  height: 24px;
  border: 3px solid #9e9a96;
  border-radius: 50%;
  position: relative;
}

.search-icon::after{
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 10px;
  height: 3px;
  background: #9e9a96;
  transform: rotate(45deg);
  border-radius: 999px;
}

.search-field input{
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--ink);
}

.address-radius-form{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 12px;
}

.hero-address-form{
  margin-top: 16px;
}

.address-input-wrap{
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px rgba(255,122,26,.09);
}

.address-input-wrap span{
  width: 18px;
  height: 18px;
  border: 3px solid var(--green);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.address-input-wrap input{
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.address-radius-form button{
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ff9c28, #ff6f18);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.address-radius-form button:last-child{
  background: #fff;
  color: var(--ink);
}

.filter-button{
  width: 50px;
  height: 50px;
  position: relative;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff7ee, #fff2e3);
  box-shadow: inset 0 0 0 1px rgba(38,24,15,.06);
  cursor: pointer;
}

.filter-button::before{
  content: "";
  position: absolute;
  top: 12px;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--orange-strong);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.filter-button::after{
  content: "";
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--orange-strong);
  border-bottom: 2px solid var(--orange-strong);
  transform: rotate(45deg);
}

.chip-row{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 6px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar{
  display: none;
}

.chip{
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.chip.active{
  color: #fff;
  background: linear-gradient(180deg, #ff9c28, #ff6f18);
}

.location-card{
  width: 100%;
  margin-top: 10px;
  padding: 18px 20px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px rgba(255,122,26,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  position: relative;
  cursor: pointer;
}

.location-select-wrap{
  position: relative;
}

.native-city-select{
  position: absolute;
  inset: 10px 0 0;
  width: 100%;
  height: calc(100% - 10px);
  opacity: 0;
  cursor: pointer;
}

.location-card strong{
  font-size: 1.2rem;
}

.location-label{
  color: var(--ink-soft);
  font-weight: 700;
}

.location-card::before{
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 3px solid var(--orange-strong);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.location-card::after{
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 14px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.location-card .location-label{
  margin-right: auto;
}

.partner-section{
  margin-top: 18px;
}

.section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2{
  margin: 0;
  font-size: 1.76rem;
  letter-spacing: -.04em;
}

.section-head a{
  color: var(--orange-strong);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
}

.partner-list{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.partner-card{
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,244,.94));
  border: 1px solid rgba(38,24,15,.07);
  box-shadow: 0 14px 30px rgba(65,33,8,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.partner-card:hover{
  transform: translateY(-1px);
  border-color: rgba(255,122,26,.18);
  box-shadow: 0 20px 42px rgba(65,33,8,.11);
}

.partner-logo{
  display: grid;
  place-items: center;
  width: 96px;
  min-height: 86px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfa, #fff6ea);
  color: #165293;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  border: 1px solid rgba(38,24,15,.06);
}

.partner-logo img{
  display: block;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.partner-meta-top{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.city-pill{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #1c8e47;
  font-size: .84rem;
  font-weight: 800;
}

.distance-pill{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f8ed;
  color: #13793a;
  font-size: .84rem;
  font-weight: 900;
}

.meta-inline{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 700;
}

.rating{
  color: #e49a0b;
}

.category-pill{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1e5;
  color: var(--orange-strong);
  font-size: .8rem;
  font-weight: 800;
}

.partner-body h3{
  margin: 8px 0 4px;
  font-size: 1.22rem;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.partner-body p{
  margin: 0;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.35;
}

.partner-signals{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.partner-signals span{
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(57,191,102,.09);
  color: #17743a;
  font-size: .74rem;
  font-weight: 850;
}

.shop-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff9a28, #ff6e18);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255,122,26,.26);
}

.empty-state{
  margin-top: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  text-align: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.empty-state strong{
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.empty-state span{
  display: block;
  margin-top: 6px;
}

.empty-state button{
  margin-top: 14px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.hidden{
  display: none !important;
}

.bottom-nav{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 680px;
  margin: 18px auto 0;
  padding: 0 8px calc(12px + env(safe-area-inset-bottom, 0px));
}

.nav-item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  outline: none;
  box-shadow: none;
}

.nav-item:hover,
.nav-item:focus-visible{
  color: var(--orange-strong);
  background: rgba(255,122,26,.06);
  box-shadow: none;
}

.nav-item:hover{
  transform: translateY(-1px);
}

@media (max-width: 760px){
  .screen{
    padding: 14px 14px 22px;
    border-radius: 34px;
  }

  .hero-card h1{
    max-width: none;
    font-size: 2rem;
  }

  .partner-card{
    grid-template-columns: 76px 1fr;
  }

  .partner-logo{
    width: 76px;
    min-height: 76px;
  }

  .shop-button{
    grid-column: 1 / -1;
  }

  .partner-meta-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .address-radius-form{
    grid-template-columns: 1fr 1fr;
  }

  .address-input-wrap{
    grid-column: 1 / -1;
  }

  .hero-actions{
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .phone-shell{
    padding: 18px 10px calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .screen{
    border-radius: 28px;
  }

  .brand-text strong,
  .brand-text span{
    font-size: 1.5rem;
  }

  .brand-logo{
    width: 136px;
  }

  .partner-cta{
    min-height: 48px;
    padding: 0 16px;
    border-radius: 18px;
    font-size: .92rem;
  }

  .eyebrow{
    font-size: .82rem;
  }

  .hero-card h1{
    font-size: 1.74rem;
  }

  .hero-card{
    padding: 16px;
  }

  .hero-points li{
    font-size: .92rem;
  }

  .section-head h2{
    font-size: 1.42rem;
  }

  .partner-body h3{
    font-size: 1.16rem;
  }

  .partner-signals span{
    font-size: .68rem;
  }

  .partner-body p,
  .meta-inline{
    font-size: .88rem;
  }

  .location-card strong{
    font-size: 1rem;
  }

  .category-pill{
    min-height: 26px;
    padding: 0 8px;
    font-size: .74rem;
  }

  .bottom-nav{
    gap: 6px;
    padding-top: 12px;
  }

  .nav-item{
    min-height: 40px;
    font-size: .72rem;
  }
}


.app-loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255,248,239,.86);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.app-loading-overlay.visible{
  opacity: 1;
  pointer-events: auto;
}

.app-loading-overlay>div{
  min-width: min(300px, 86vw);
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.app-loading-overlay strong{
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.app-loading-overlay span{
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
}

.app-loading-overlay>div::before{
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(255,122,26,.16);
  border-top-color: var(--orange);
  animation: smartSpin .72s linear infinite;
}

@keyframes smartSpin{
  to{ transform: rotate(360deg); }
}
