/* ====================================================================
 * * Copyright (c) 2026 Loqaly.
 * * Proprietary and confidential.
 * *
 * * Owned by Loqaly under the authority of Mehul Prasad and Abhyansh Anand.
 * * This code may only be used for purposes explicitly assigned or authorized
 * * by them. Unauthorized copying, modification, sharing, reproduction, or
 * * distribution, in whole or in part, is strictly prohibited.
 * *
 * * All rights reserved.
 * ==================================================================== */

/* ==========================================================================
   Loqaly — main.css  (Hyperlocal Commerce System, see DESIGN.md)
   ========================================================================== */
:root {
  --primary: #7C2D12;
  --primary-light: #9F3E1B;
  --primary-tint: #FFDBD0;
  --accent: #F9A8D4;
  --leaf: #4A7856;
  --pin: #FF4F4F;
  --cream: #FFF7EC;
  --surface: #FFFFFF;
  --surface-soft: #FAFAFA;
  --text: #171717;
  --muted: #666666;
  --border: #E7E5E4;
  --border-light: #E5E5E5;
  --open-bg: #E8F0EA;
  --closed-bg: #FCE8E8;

  --r-card: 20px;
  --r-btn: 16px;
  --r-chip: 10px;

  --shadow-1: 0 2px 8px -2px rgba(124, 45, 18, .05);
  --shadow-2: 0 8px 20px -4px rgba(124, 45, 18, .08);
  --shadow-3: 0 8px 16px -2px rgba(124, 45, 18, .22);
  --shadow-4: 0 16px 36px -8px rgba(23, 23, 23, .14);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 80px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; line-height: 20px; font-weight: 500;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.ms { font-family: 'Material Symbols Rounded'; font-weight: 400; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; user-select: none; flex-shrink: 0; }
.sprite { position: absolute; }
.footer__brand .brand__tag { display: block; }
.ms--sm { font-size: 16px; }
.ms--lg { font-size: 28px; }
.icon-play { width: 18px; height: 18px; flex-shrink: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }


/* ---------- Boot splash (until the sign-in check finishes) ---------- */
.boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--cream); opacity: 1; visibility: visible; transition: opacity .25s ease, visibility .25s; }
html:not(.booting) .boot { opacity: 0; visibility: hidden; pointer-events: none; }
html.booting body { overflow: hidden; }
.boot__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.boot__logo { width: 72px; height: 72px; border-radius: 20px; object-fit: contain; background: #fff; box-shadow: var(--shadow-2); }
.boot__name { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.boot__bar { width: 120px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.boot__bar i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--primary); animation: boot-slide 1s ease-in-out infinite; }
@keyframes boot-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-btn); font-weight: 600; font-size: 14px; line-height: 18px;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(124, 45, 18, .20); }
.btn--primary:hover { background: var(--primary-light); }
.btn--primary:active { transform: scale(.98); }
.btn--secondary { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); padding: 12.5px 22.5px; }
.btn--secondary:hover { background: var(--cream); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); padding: 12.5px 22.5px; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn--light { background: var(--cream); color: var(--primary); }
.btn--light:hover { background: #fff; }
.btn--sm { padding: 10px 16px; font-size: 13px; }

.chip {
  padding: 8px 14px; border-radius: var(--r-chip); background: var(--surface-soft); border: 1px solid var(--border);
  font-size: 13px; line-height: 18px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.chip--icon { display: inline-flex; align-items: center; gap: 8px; }
.chip--icon .ms { font-size: 18px; color: var(--primary); }
.chip--icon[aria-pressed="true"] .ms { color: #fff; }
.chip:hover { border-color: var(--primary-light); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(124, 45, 18, .2); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .02em; }
.pill--open { background: var(--open-bg); color: var(--leaf); }
.pill--closed { background: var(--closed-bg); color: #C73636; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .04em; }
.badge--muted { background: #EAE7E7; color: #55423D; }
.badge--accent { background: var(--accent); color: #531A3F; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(124, 45, 18, .04); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: #fff; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 22px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--primary); }
.brand__tag { display: none; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--muted); }
@media (min-width: 480px) { .brand__tag { display: block; } }

.main-nav { display: none; gap: 24px; margin-left: 12px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--primary); }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 190px; min-width: 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 600; transition: border-color .2s; }
.loc-chip:hover { border-color: var(--primary-light); }
.loc-chip .ms:first-child { color: var(--pin); font-size: 20px; }
.loc-chip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .loc-chip { max-width: 280px; } }
.header-links { display: none; align-items: center; gap: 16px; }
.header-links a:not(.btn) { font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s; }
.header-links a:not(.btn):hover { color: var(--primary); }
@media (min-width: 900px) { .header-links { display: flex; } }
.header-links a.signin { color: var(--text) !important; font-weight: 700 !important; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.menu-toggle:hover { background: var(--surface); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu { border-top: 1px solid var(--border); background: var(--cream); padding: 8px 0 20px; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 4px; font-weight: 600; color: var(--muted); }
.mobile-menu a:not(.btn):hover { color: var(--primary); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Hero (centered, yes.html layout) ---------- */
.hero { padding: 32px 0 56px; }
@media (min-width: 768px) { .hero { padding: 48px 0 72px; } }
.hero__copy { text-align: center; max-width: 780px; margin: 0 auto 32px; display: flex; flex-direction: column; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--primary); }
.hero__badge .ms { font-size: 18px; }
.hero h1 { margin-top: 18px; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.hero__lede { margin-top: 18px; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; max-width: 36em; }
.hero__body { margin-top: 10px; font-size: 16px; line-height: 26px; color: var(--muted); max-width: 40em; }
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Discovery card */
.discover { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: 0 12px 28px -10px rgba(124, 45, 18, .12); }
@media (min-width: 768px) { .discover { padding: 28px; } }
.discover__loc { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .discover__loc { flex-direction: row; align-items: center; justify-content: space-between; } }
.discover__place { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.discover__place .ms { color: var(--pin); }
.discover__place span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: 9999px; background: var(--cream); border: 1px solid var(--border); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--primary); transition: color .2s, border-color .2s; }
.pill-btn:hover { color: var(--primary-light); border-color: var(--primary-light); }
.discover .notice { margin: 10px 0 0; font-size: 12px; }

.searchbar { margin-top: 16px; display: flex; align-items: center; gap: 8px; background: #F5F5F5; border: 1px solid var(--border); border-radius: var(--r-btn); padding: 6px 6px 6px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.searchbar:focus-within { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(124, 45, 18, .1); }
.searchbar > .ms { color: var(--muted); font-size: 24px; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: 15px; -webkit-appearance: none; appearance: none; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar input::placeholder { color: #8a8a8a; }
.searchbar__go { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background-color .2s, transform .15s; }
.searchbar__go:hover { background: var(--primary-light); }
.searchbar__go:active { transform: scale(.95); }
.searchbar__clear { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.searchbar__clear:hover { background: var(--border); color: var(--text); }
.tags { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tag { padding: 4px 10px; border-radius: 8px; background: var(--cream); border: 1px solid var(--border); color: var(--text); font-size: 12px; line-height: 16px; font-weight: 600; transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--primary); color: var(--primary); }

#browse > .chips, .results { margin-top: 18px; }
.block { margin-top: 28px; }
.block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.block__title { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; }
.block__sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.block__meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.results .section__head { margin-bottom: 14px; }
.section__title--sm { font-size: 20px; line-height: 28px; }
@media (min-width: 768px) { .section__title--sm { font-size: 22px; line-height: 30px; } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section--tight { padding: 28px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.section__title { font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .section__title { font-size: 32px; line-height: 40px; } }
.section__sub { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 52em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 13px; }
.text-link:hover { color: var(--primary-light); }
.text-link .ms { font-size: 18px; }

/* Grids */
.grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .grid { gap: 16px; } }
.grid--products { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid--products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--products { grid-template-columns: repeat(4, 1fr); } }
.grid--shops { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--shops { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--shops { grid-template-columns: repeat(3, 1fr); } }
.grid--tiles { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .grid--tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--tiles { grid-template-columns: repeat(6, 1fr); } }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--primary-light); }

.product-card { justify-content: space-between; gap: 12px; padding: 12px; }
@media (min-width: 768px) { .product-card { padding: 16px; } }
.product-card__media { position: relative; aspect-ratio: 1 / .9; border-radius: 14px; background: var(--cream); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; color: var(--primary); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-card__media .badge { position: absolute; top: 8px; left: 8px; }
.product-card__shop { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__name { margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 16px; font-weight: 700; color: var(--text); }
.price s { font-size: 12px; color: var(--muted); }
.round-btn { width: 32px; height: 32px; border-radius: 12px; background: var(--cream); border: 1px solid var(--border); color: var(--primary); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.round-btn .ms { font-size: 20px; }
a.card:hover .round-btn { background: var(--primary); color: #fff; border-color: var(--primary); }

.shop-card { padding: 0; overflow: hidden; }
.shop-card__media { position: relative; height: 132px; background: var(--cream); border-bottom: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); overflow: hidden; }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__media .pill { position: absolute; top: 12px; right: 12px; }
.shop-card__media .badge { position: absolute; top: 12px; left: 12px; }
.shop-card__body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.shop-card__name { font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-card__type { font-size: 13px; color: var(--muted); }
.shop-card__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.rating, .dist { display: inline-flex; align-items: center; gap: 4px; }
.rating .ms { color: #D97706; font-size: 16px; }
.rating .count { color: var(--muted); font-weight: 500; }
.dist { color: var(--leaf); }
.dist .ms { font-size: 16px; }

.tile { align-items: center; text-align: center; gap: 10px; padding: 18px 12px; }
.tile__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--cream); border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); overflow: hidden; }
.tile__icon img { width: 100%; height: 100%; object-fit: cover; }
.tile__label { font-size: 13px; line-height: 18px; font-weight: 600; }
button.tile { width: 100%; }

/* Rails */
.rail-block + .rail-block { margin-top: 36px; }
.rail-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail-block__title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 768px) { .rail-nav { display: flex; } }
.rail-nav button { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--primary); transition: border-color .2s; }
.rail-nav button:hover { border-color: var(--primary); }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 12px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 768px) { .rail > * { flex-basis: 220px; } }

/* States */
.skeleton { background: #EFE7DD; border-radius: var(--r-card); min-height: 220px; animation: pulse 1.4s ease-in-out infinite; }
.skeleton--tile { min-height: 120px; }
.skeleton--shop { min-height: 250px; }
@keyframes pulse { 50% { opacity: .55; } }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-card); color: var(--muted); }
.empty .ms { font-size: 36px; color: var(--primary); opacity: .7; }
.empty strong { color: var(--text); font-weight: 600; font-size: 15px; }
.notice { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.notice .ms { color: var(--pin); font-size: 18px; }
.notice button { color: var(--primary); font-weight: 700; margin-left: 4px; }
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- Static content sections ---------- */
.section--white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__intro { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section__intro p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 26px; }

.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; }
.step__num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(124, 45, 18, .2); }
.step h3 { margin-top: 14px; font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; }
.step p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 22px; }

.cat-grid { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px; text-align: center; font-size: 14px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--primary-light); }
.cat-card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--cream); border: 1px solid var(--border); color: var(--primary); display: grid; place-items: center; }

.feature-grid { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-1); transition: border-color .2s; }
.feature-card:hover { border-color: var(--primary-light); }
.feature-card__icon { width: 48px; height: 48px; border-radius: 16px; background: var(--cream); color: var(--primary); display: grid; place-items: center; }
.feature-card h3 { margin-top: 16px; font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 22px; }

.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 15px; line-height: 22px; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ms { color: var(--primary); transition: transform .2s; }
.faq__item[open] summary .ms { transform: rotate(180deg); }
.faq__item[open] { border-color: var(--primary-light); }
.faq__item p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 22px; }

/* ---------- Business band ---------- */
.band { background: var(--primary); color: #fff; }
.band__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .band__inner { grid-template-columns: 1.3fr .7fr; gap: 56px; } }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: 18em; }
.band p { margin-top: 14px; font-size: 16px; line-height: 26px; color: var(--primary-tint); max-width: 38em; }
.band__actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .band__actions { align-items: flex-start; } }

/* ---------- Why ---------- */
.why__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .why__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 24px; font-weight: 600; }
.checklist .ms { color: var(--leaf); margin-top: 1px; }
.why__note { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 26px; max-width: 32em; }

/* ---------- Download CTA ---------- */
.cta { background: var(--surface); border-top: 1px solid var(--border); }
.cta__card { text-align: center; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.cta__lead { font-size: 16px; line-height: 26px; color: var(--muted); max-width: 36em; }
.cta__tagline { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: 32px; padding: 48px 0; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand p { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--muted); max-width: 26em; }
.footer__founders { font-weight: 600; color: var(--text) !important; }
.footer__brand a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.footer__col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--primary); }
.footer__bar { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid var(--border-light); font-size: 12px; color: var(--muted); font-weight: 600; }
@media (min-width: 640px) { .footer__bar { flex-direction: row; } }
.footer__bar span.live { display: inline-flex; align-items: center; gap: 8px; }
.footer__bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(23, 23, 23, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__panel { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-4); padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: 90vh; overflow: auto; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.modal__head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 24px; font-weight: 600; }
.modal__head h2 .ms { color: var(--pin); }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--cream); color: var(--text); }
.modal p.hint { font-size: 13px; color: var(--muted); }
.modal__divider { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.modal__divider::before, .modal__divider::after { content: ''; flex: 1; border-top: 1px solid var(--border-light); }
.field { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-btn); padding: 4px 12px; }
.field:focus-within { border: 1.5px solid var(--primary); padding: 3.5px 11.5px; }
.field .ms { color: var(--pin); }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 10px 0; font-size: 14px; }
.suggestions { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.suggestions button { text-align: left; padding: 10px 14px; font-size: 13px; line-height: 18px; display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid var(--border-light); }
.suggestions button:last-child { border-bottom: 0; }
.suggestions button:hover, .suggestions button[aria-selected="true"] { background: var(--cream); }
.suggestions .ms { color: var(--pin); font-size: 18px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; max-width: calc(100% - 32px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Enable grab cursor and prevent text selection while dragging */
.rail, .hd-row {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.rail:active, .hd-row:active {
  cursor: grabbing;
}

/* Inline location prompt card */
.location-inline-prompt {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--hd-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.location-inline-prompt__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FEF3C7;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.location-inline-prompt__icon .ms {
  font-size: 24px;
  color: #D97706;
}
.location-inline-prompt__content {
  flex: 1 1 0;
  min-width: 0;
}
.location-inline-prompt__content h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.location-inline-prompt__content p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--hd-muted);
  line-height: 1.4;
}
.location-inline-prompt__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .location-inline-prompt {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .location-inline-prompt__icon {
    margin: 0 auto;
  }
  .location-inline-prompt__actions {
    flex-direction: column;
  }
}
