/* ==========================================================================
   Super-app home
   Dark hero with the four-service bento selector, then one band per service.
   ========================================================================== */

/* ----------------------------------------------------------------- hero */
.sa-hero {
    position: relative;
    overflow: hidden;
    padding: var(--sa-s-7) 0 calc(var(--sa-s-9) + 24px);
    background: #0c0e13;
    color: #fff;
    isolation: isolate;
}
@media (min-width: 1100px) { .sa-hero { padding: 72px 0 120px; } }
.sa-hero__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(520px 340px at 8% 0%, rgba(249, 115, 22, .32), transparent 70%),
        radial-gradient(520px 360px at 48% 110%, rgba(99, 102, 241, .3), transparent 70%),
        radial-gradient(460px 320px at 100% 20%, rgba(34, 197, 94, .22), transparent 70%),
        radial-gradient(300px 200px at 70% 0%, rgba(245, 197, 24, .16), transparent 70%);
}
.sa-hero__glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.sa-hero__grid { display: grid; gap: var(--sa-s-7); align-items: center; }
@media (min-width: 1100px) { .sa-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.sa-hero__copy { min-width: 0; }

.sa-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--sa-r-pill);
    background: rgba(255, 255, 255, .06);
    font-size: var(--sa-fs-xs);
    font-weight: 700;
    color: #d6dae1;
    backdrop-filter: blur(6px);
}
.sa-hero__pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: sa-hero-pulse 1.8s infinite; }
@keyframes sa-hero-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

.sa-hero__title {
    margin-top: 20px;
    font-size: clamp(36px, 5.2vw, 66px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
    color: #fff;
}
.sa-hero__word--food { color: #fb923c; }
.sa-hero__word--grocery { color: #4ade80; }
.sa-hero__word--ecommerce { color: #a5b4fc; }
.sa-hero__word--taxi { color: #facc15; }
.sa-hero__word--logistics { color: #93c5fd; }
.sa-hero__line { display: block; margin-top: 10px; font-size: .6em; letter-spacing: -.03em; color: rgba(255, 255, 255, .6); }
.sa-hero__sub { max-width: 540px; margin-top: 20px; font-size: var(--sa-fs-lg); line-height: 1.6; color: #a9afba; }

.sa-hero__panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 640px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 24px;
    background: #fff;
    color: var(--sa-ink);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
    transition: box-shadow var(--sa-fast);
}
.sa-hero__panel:focus-within { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 4px rgba(251, 146, 60, .45); }
.sa-hero__loc { max-width: none; min-width: 0; height: 54px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--sa-canvas); }
.sa-hero__loc:hover { background: var(--sa-line-2); }
.sa-hero__divider { display: none; }
.sa-hero__panel { position: relative; }
/* Static search wrapper so the results panel spans the whole location + search bar. */
.sa-hero__search { position: static; flex: 1; min-width: 0; }
.sa-hero__search .sa-search__box { height: 56px; padding: 0 5px 0 14px; border: 0; border-radius: 16px; box-shadow: none !important; }
.sa-hero__search .sa-search__input { font-size: var(--sa-fs-md); }
.sa-hero__go { min-height: 46px; padding: 0 20px; border-radius: 14px; }
.sa-hero__search .sa-search__panel { top: calc(100% + 14px); }
@media (min-width: 640px) {
    .sa-hero__panel { flex-direction: row; align-items: center; border-radius: 22px; }
    .sa-hero__loc { flex: 0 0 210px; background: transparent; }
    .sa-hero__divider { display: block; width: 1px; height: 32px; background: var(--sa-line); }
}

.sa-hero__try { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sa-hero__try a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--sa-r-pill);
    background: rgba(255, 255, 255, .05);
    font-size: var(--sa-fs-sm);
    font-weight: 600;
    color: #e5e7eb !important;
    transition: background var(--sa-fast), border-color var(--sa-fast);
}
.sa-hero__try a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.sa-hero__try .sa-icon { color: #9aa1ad; }

.sa-hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0 0; }
.sa-hero__stats div { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.sa-hero__stats div:first-child { padding-left: 0; border-left: 0; }
.sa-hero__stats dt { font-size: var(--sa-fs-xs); font-weight: 600; color: #8b919c; }
.sa-hero__stats dd { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; font-size: var(--sa-fs-xl); font-weight: 800; }
.sa-hero__star { color: #facc15; fill: #facc15; stroke: none; }

/* ------------------------------------------------- bento service selector */
.sa-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 168px;
    gap: 12px;
}
@media (min-width: 640px) { .sa-bento { grid-auto-rows: 200px; gap: 14px; } }
/* Laid out by how many services the admin has switched on (data-count): a lone or odd last tile spans the row. */
.sa-bento[data-count="1"] > :only-child,
.sa-bento[data-count="3"] > :last-child,
.sa-bento[data-count="5"] > :last-child { grid-column: 1 / 3; }
@media (min-width: 1100px) {
    .sa-bento { grid-template-rows: 212px 212px; grid-auto-rows: 168px; }
    .sa-bento[data-count="1"] > :only-child { grid-row: 1 / 3; }
    .sa-bento[data-count="2"] > * { grid-row: 1 / 3; }
    /* Three or four: the first tile is tall beside two stacked ones; a fourth spans the bottom row. */
    .sa-bento[data-count="3"] > :first-child,
    .sa-bento[data-count="4"] > :first-child,
    .sa-bento[data-count="5"] > :first-child { grid-row: 1 / 3; }
    .sa-bento[data-count="3"] > :last-child,
    .sa-bento[data-count="5"] > :last-child { grid-column: auto; }
    .sa-bento[data-count="4"] > :last-child { grid-column: 1 / 3; }
}

.sa-stile {
    --tint: rgba(20, 22, 26, .9);
    --chip: var(--sa-ink);
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff !important;
    isolation: isolate;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    transition: transform var(--sa-med) var(--sa-ease), box-shadow var(--sa-med) var(--sa-ease);
}
.sa-stile:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7); }
.sa-stile--food { --tint: rgba(124, 45, 18, .94); --chip: #ea580c; }
.sa-stile--grocery { --tint: rgba(16, 76, 40, .94); --chip: #16a34a; }
.sa-stile--ecommerce { --tint: rgba(30, 27, 95, .94); --chip: #4f46e5; }
.sa-stile--taxi { --tint: rgba(17, 19, 23, .94); --chip: var(--sa-taxi); }
.sa-stile--logistics { --tint: rgba(23, 37, 84, .94); --chip: var(--sa-logistics); }
.sa-stile__media { position: absolute; inset: 0; z-index: -2; }
.sa-stile:hover .sa-stile__media img { transform: scale(1.07); }
.sa-stile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 15%, var(--tint) 92%); }
@media (min-width: 1100px) { .sa-stile--taxi::after { background: linear-gradient(90deg, var(--tint) 30%, rgba(17, 19, 23, .25)); } }

.sa-stile__top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 6px; }
.sa-stile__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--chip); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.sa-stile--taxi .sa-stile__icon { color: var(--sa-charcoal); }
/* Admin-uploaded icon: shown on a white chip in place of the built-in icon unless it fails to load. */
.sa-stile__icon.has-img { overflow: hidden; background: #fff; }
.sa-stile__icon img { width: 28px; height: 28px; object-fit: contain; }
.sa-stile__icon.has-img:not(.is-broken) .sa-icon { display: none; }
.sa-stile__icon.is-broken { background: var(--chip); }
.sa-stile__icon.is-broken img { display: none; }
.sa-stile__eta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 5px 10px;
    border-radius: var(--sa-r-pill);
    background: rgba(12, 14, 19, .55);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.sa-stile__body { position: absolute; left: 16px; right: 14px; bottom: 14px; display: flex; align-items: flex-end; gap: 10px; }
.sa-stile__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sa-stile__name { font-size: var(--sa-fs-xl); font-weight: 800; letter-spacing: -.02em; }
.sa-stile__tagline { display: none; margin-top: 2px; font-size: var(--sa-fs-sm); color: rgba(255, 255, 255, .78); }
@media (min-width: 640px) {
    .sa-stile__name { font-size: 26px; }
    .sa-stile__tagline { display: block; }
}
.sa-stile__go {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--sa-ink);
    transition: transform var(--sa-med) var(--sa-ease), background var(--sa-fast);
}
.sa-stile--taxi .sa-stile__go { background: var(--sa-taxi); }
.sa-stile:hover .sa-stile__go { transform: translateX(4px); }

/* -------------------------------------------------------- promise strip */
.sa-promise { position: relative; z-index: 2; margin-top: -60px; }
.sa-promise__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--sa-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--sa-shadow-2);
}
@media (min-width: 640px) { .sa-promise__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sa-promise__list { grid-template-columns: repeat(4, 1fr); padding: 14px; } }
.sa-promise__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: var(--sa-fs-sm); color: var(--sa-muted); line-height: 1.35; }
.sa-promise__list strong { display: block; font-size: var(--sa-fs-md); color: var(--sa-ink); }
@media (min-width: 1024px) { .sa-promise__list li + li { border-left: 1px solid var(--sa-line-2); } }
.sa-promise__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; }

/* --------------------------------------------------------------- offers */
.sa-offers {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 420px);
    gap: var(--sa-s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--sa-gutter) * -1);
    padding: 0 var(--sa-gutter) 8px;
    scroll-padding: var(--sa-gutter);
    scrollbar-width: none;
}
.sa-offers::-webkit-scrollbar { display: none; }
.sa-offers > * { scroll-snap-align: start; }
@media (min-width: 768px) {
    .sa-offers { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
}
.sa-offers .sa-banner { min-height: 200px; border-radius: 26px; transition: transform var(--sa-med) var(--sa-ease), box-shadow var(--sa-med) var(--sa-ease); }
.sa-offers .sa-banner:hover { transform: translateY(-3px); box-shadow: var(--sa-shadow-2); }
.sa-offers .sa-banner__img img { transition: transform .8s var(--sa-ease); }
.sa-offers .sa-banner:hover .sa-banner__img img { transform: scale(1.05); }
@media (min-width: 1024px) { .sa-offers .sa-banner__body { max-width: 62%; padding: 28px; } .sa-offers .sa-banner__title { font-size: 26px; } }

/* ----------------------------------------------------------------- food */
.sa-home-food { padding-top: var(--sa-s-5); }
.sa-home-cuisines {
    display: flex;
    gap: 10px;
    margin: -4px 0 var(--sa-s-5);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.sa-home-cuisines::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .sa-home-cuisines { flex-wrap: wrap; overflow: visible; } }
.sa-home-cuisine {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 5px 16px 5px 5px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-pill);
    background: #fff;
    font-size: var(--sa-fs-sm);
    font-weight: 700;
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast), transform var(--sa-fast);
}
.sa-home-cuisine:hover { border-color: var(--sa-accent); box-shadow: var(--sa-shadow-1); transform: translateY(-1px); }
.sa-home-cuisine .sa-media { width: 34px; height: 34px; border-radius: 50%; }

/* ------------------------------------------------------- service panels */
.sa-panel { position: relative; overflow: hidden; padding: var(--sa-s-6) var(--sa-s-5); border-radius: 30px; isolation: isolate; }
@media (min-width: 768px) { .sa-panel { padding: 40px; } }

.sa-panel--grocery { background: linear-gradient(160deg, #e9f8ee, #f6fcf8 55%, #eef9f2); border: 1px solid #d3eedc; }
.sa-panel--grocery::before { content: ""; position: absolute; right: -120px; top: -120px; z-index: -1; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, .18), transparent 70%); }

.sa-panel--ecommerce { background: radial-gradient(700px 360px at 90% 0%, rgba(165, 180, 252, .32), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(244, 114, 182, .18), transparent 60%), linear-gradient(150deg, #1e1b4b, #2e2a78); color: #e0e7ff; }
.sa-panel--ecommerce .sa-section-head__eyebrow { color: #a5b4fc; }
.sa-panel--ecommerce .sa-section-head__title { color: #fff; }
.sa-panel--ecommerce .sa-section-head__sub { color: #c7d2fe; }
.sa-panel--ecommerce .sa-link { color: #c7d2fe !important; }
.sa-panel__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: var(--sa-s-6); font-size: var(--sa-fs-sm); font-weight: 600; color: #c7d2fe; }
.sa-panel__perks li { display: inline-flex; align-items: center; gap: 8px; }
.sa-collections { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .sa-collections { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sa-s-4); } }
.sa-collection {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    border: 1px solid rgba(165, 180, 252, .22);
    isolation: isolate;
    transition: transform var(--sa-med) var(--sa-ease), border-color var(--sa-med);
}
.sa-collection:hover { transform: translateY(-4px); border-color: rgba(165, 180, 252, .65); }
.sa-collection .sa-media { position: absolute; inset: 0; z-index: -1; }
.sa-collection:hover .sa-media img { transform: scale(1.06); }
.sa-collection::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(20, 18, 64, .94)); }
.sa-collection__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 16px; color: #fff; }
.sa-collection__name { font-size: var(--sa-fs-xl); font-weight: 800; letter-spacing: -.02em; }
.sa-collection__blurb { display: none; margin-top: 4px; font-size: var(--sa-fs-sm); color: #dfe3ff; }
@media (min-width: 640px) { .sa-collection__blurb { display: block; } }
.sa-collection__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--sa-fs-sm); font-weight: 800; color: #a5b4fc; }

.sa-panel--taxi {
    display: grid;
    gap: var(--sa-s-6);
    background: radial-gradient(600px 300px at 0% 0%, rgba(245, 197, 24, .18), transparent 60%), #15171c;
    color: #fff;
}
.sa-panel--taxi > * { min-width: 0; }
@media (max-width: 1023px) { .sa-panel--taxi { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) { .sa-panel--taxi { grid-template-columns: 400px minmax(0, 1fr); align-items: center; gap: 48px; } }
.sa-panel--taxi .sa-section-head__eyebrow { color: var(--sa-taxi); }
.sa-panel--taxi .sa-section-head__title { color: #fff; }
.sa-home-taxi__sub { margin-top: 8px; color: #a9afba; font-size: var(--sa-fs-sm); }
.sa-quickride { display: flex; flex-direction: column; gap: 14px; margin-top: var(--sa-s-5); }
.sa-quickride .sa-field__label { color: #e5e7eb; }
.sa-quickride .sa-field__error { color: #fca5a5; }
.sa-quickride .sa-select { border-color: transparent; }

.sa-home-rides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sa-home-ride {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    transition: background var(--sa-fast), border-color var(--sa-fast), transform var(--sa-fast);
}
.sa-home-ride:hover { background: rgba(255, 255, 255, .08); border-color: rgba(245, 197, 24, .45); transform: translateX(3px); }
.sa-home-ride__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--sa-taxi); color: var(--sa-charcoal); }
.sa-home-ride__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sa-home-ride__name { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.sa-home-ride__seats { display: inline-flex; align-items: center; gap: 3px; font-size: var(--sa-fs-xs); font-weight: 700; color: #a9afba; }
.sa-home-ride__desc { overflow: hidden; font-size: var(--sa-fs-sm); color: #a9afba; text-overflow: ellipsis; white-space: nowrap; }
.sa-home-ride__price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: var(--sa-taxi); white-space: nowrap; }
.sa-home-ride__price small { font-size: 11px; font-weight: 600; color: #8b919c; }

/* -------------------------------------------------------------- support */
.sa-support__grid { display: grid; gap: var(--sa-s-7); }
@media (min-width: 1024px) { .sa-support__grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.sa-support__cards { display: flex; flex-direction: column; gap: 10px; }
.sa-support__card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--sa-line);
    border-radius: 18px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast), transform var(--sa-fast);
}
.sa-support__card:hover { border-color: #c9ccd3; box-shadow: var(--sa-shadow-1); transform: translateY(-1px); }
.sa-support__card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sa-support__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--sa-ink); color: #fff; }
.sa-support__chev { color: var(--sa-muted); }
.sa-support__faqtitle { margin-bottom: 14px; font-size: var(--sa-fs-lg); font-weight: 800; }
@media (min-width: 1024px) { .sa-support__faqtitle { margin-top: 26px; } }

/* -------------------------------------------------------------- demo chat */
.sa-chat { display: flex; flex-direction: column; gap: 14px; }
.sa-chat__log { display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: 320px; overflow: auto; padding: 4px; }
.sa-chat__msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: var(--sa-fs-sm); animation: sa-pop var(--sa-fast) var(--sa-ease); }
.sa-chat__msg--them { align-self: flex-start; background: var(--sa-line-2); border-bottom-left-radius: 6px; }
.sa-chat__msg--me { align-self: flex-end; background: var(--sa-ink); color: #fff; border-bottom-right-radius: 6px; }
.sa-chat__msg--typing { color: var(--sa-muted); font-style: italic; }
.sa-chat__form { width: 100%; }
