:root {
  --brand-yellow: #FFCE00;
  --brand-yellow-soft: #FFEEAB;
  --brand-blue: #007AFF;
  --bg: #F6F8FB;
  --text: #000000;
  --text-muted: #5B6270;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  --bottombar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  justify-content: center;
}

.topbar-logo { height: 40px; width: auto; }

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 24px);
}

/* ---------- tabs ---------- */
.tab[hidden] { display: none; }

/* ---------- Instagram-style bottom bar ---------- */
.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.nav-btn.active { color: var(--text); }
.nav-btn.active svg { stroke-width: 2.6; }
.nav-btn.active span {
  background: linear-gradient(transparent 62%, var(--brand-yellow) 62%);
}

/* ---------- hero (home tab, photo version) ---------- */
.hero-photo {
  position: relative;
  margin: 16px -16px 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  color: #fff;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--brand-yellow);
  color: #000;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.hero-overlay h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.25; }
.hero-overlay .accent {
  background: linear-gradient(transparent 60%, rgba(255, 206, 0, 0.85) 60%);
}
.hero-sub { margin: 12px 0 20px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); max-width: 400px; }

/* ---------- hero (pickup tab, compact) ---------- */
.hero-compact { text-align: center; padding: 30px 8px 24px; }
.hero-compact h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.hero-compact .accent { background: linear-gradient(transparent 60%, var(--brand-yellow) 60%); }
.hero-compact p { color: var(--text-muted); margin: 12px auto 20px; max-width: 420px; }

/* ---------- stats ---------- */
.stat-row {
  display: flex;
  gap: 10px;
  margin: 18px 0 6px;
}
.stat {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat strong { font-size: 1.05rem; font-weight: 800; }
.stat span { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }

/* ---------- section titles ---------- */
.section-title { font-size: 1.2rem; margin: 28px 4px 12px; }
.page-title { font-size: 1.5rem; font-weight: 800; margin: 24px 4px 4px; }
.page-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 4px 16px; }

/* ---------- service grid (home) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card[role="button"] { cursor: pointer; border: 2px solid transparent; }
.service-card[role="button"]:hover { border-color: var(--brand-yellow); }
.service-emoji { font-size: 1.5rem; }
.service-card h3 { font-size: 0.95rem; }
.service-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- price teaser (home) ---------- */
.price-teaser {
  margin-top: 20px;
  background: var(--brand-yellow);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 206, 0, 0.45);
}
.teaser-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }
.teaser-price { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.teaser-price small { font-size: 0.95rem; font-weight: 600; }
.teaser-min { font-size: 0.78rem; font-weight: 500; }
.teaser-arrow { font-size: 2rem; font-weight: 700; }

/* ---------- gallery strip ---------- */
.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 22px -16px 0;
  padding: 0 16px 6px;
  scroll-snap-type: x mandatory;
}
.gallery-strip img {
  height: 150px;
  width: auto;
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 28px;
  background: #000;
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.cta-band h2 { font-size: 1.15rem; }
.cta-band p { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand-yellow);
  color: #000;
  box-shadow: 0 4px 14px rgba(255, 206, 0, 0.45);
}

.btn-order {
  background: var(--brand-blue);
  color: #fff;
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

.locate-status { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- laundromat list (pickup tab) ---------- */
.list-title { font-size: 1.2rem; margin: 8px 4px 12px; }
.card-list { display: flex; flex-direction: column; gap: 14px; }

.lm-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lm-card:hover { border-color: var(--brand-yellow); }

.lm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lm-card h3 { font-size: 1.05rem; }
.lm-distance {
  background: var(--brand-yellow-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
}
.lm-meta { color: var(--text-muted); font-size: 0.88rem; }
.lm-price { font-weight: 600; font-size: 0.95rem; }
.lm-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.badge-highlight { background: var(--brand-yellow-soft); color: #000; box-shadow: none; }

.btn-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-blue);
  cursor: pointer;
  padding: 18px 4px 12px;
}

.detail-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-card h2 { font-size: 1.4rem; }
.detail-tagline { color: var(--text-muted); font-size: 0.92rem; }

.detail-price-box {
  background: var(--brand-yellow-soft);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.detail-price-box .price { font-size: 1.5rem; font-weight: 800; }
.detail-price-box .min { color: var(--text-muted); font-size: 0.85rem; }

.detail-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-muted); }
.detail-row svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-blue); }
.detail-row a { color: var(--brand-blue); text-decoration: none; }
.detail-row strong { color: var(--text); }

.service-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.order-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.how-it-works {
  margin-top: 36px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.how-it-works h2 { font-size: 1.1rem; margin-bottom: 12px; }
.how-it-works ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 0.92rem; }
.how-it-works strong { color: var(--text); }

/* ---------- pricing tab ---------- */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-featured { border: 2px solid var(--brand-yellow); }
.pricing-flag {
  align-self: flex-start;
  background: var(--brand-yellow);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 4px 10px;
}
.pricing-card h2 { font-size: 1.15rem; }
.pricing-desc { color: var(--text-muted); font-size: 0.88rem; }
.pricing-amount { font-size: 2.1rem; font-weight: 800; }
.pricing-amount small { font-size: 1rem; font-weight: 600; }
.pricing-min { color: var(--text-muted); font-size: 0.85rem; margin-top: -8px; }
.pricing-list { padding-left: 18px; color: var(--text-muted); font-size: 0.88rem; display: flex; flex-direction: column; gap: 6px; }

.price-table {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.pt-group { padding: 14px 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.pt-group:last-child { border-bottom: none; }
.pt-group h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 4px 0;
}
.pt-row .pt-price { font-weight: 600; }

.pricing-note { font-size: 0.8rem; color: var(--text-muted); margin: 4px 4px 12px; }
.pricing-note a { color: var(--brand-blue); text-decoration: none; }

/* ---------- contact tab ---------- */
.contact-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.c-emoji { font-size: 1.2rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px; }

@media (min-width: 700px) {
  .hero-overlay h1 { font-size: 2.3rem; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
