.home {
    --home-bg: #f7faff;
    --home-surface: #fff;
    --home-ink: #101e3a;
    --home-muted: #4c607e;
    --home-accent: #0758ca;
    --home-border: #e0e9f5;
    --home-tint: #edf5ff;
    --home-hero: linear-gradient(106deg, #f1f7ff 0%, #e6f2ff 62%, #d9edff 100%);
    --home-width: 1144px;
    background: var(--home-bg);
    color: var(--home-ink);
}

[data-theme="dark"] .home {
    --home-bg: #0b1222;
    --home-surface: #141f34;
    --home-ink: #eef5ff;
    --home-muted: #afbdd3;
    --home-accent: #a9cbff;
    --home-border: #293750;
    --home-tint: #192d50;
    --home-hero: linear-gradient(106deg, #152745 0%, #142e57 66%, #1c4478 100%);
}

.home [hidden] { display: none !important; }
.home-symbols { position: absolute; overflow: hidden; pointer-events: none; }
.home a { text-decoration: none; }
.home :focus-visible { outline: 3px solid #297cff; outline-offset: 4px; }
.home-skip { position: fixed; z-index: 1100; top: 8px; left: 8px; padding: 12px; background: var(--ds-surface); }
.home-skip:not(:focus) { clip-path: inset(50%); }

.home-wrap {
    width: 100%;
    max-width: var(--home-width);
    padding-inline: clamp(16px, 4vw, 42px);
    margin-inline: auto;
}

.home > .app-header { border-bottom: 1px solid var(--home-border); background: var(--home-surface) !important; }
.home .app-header__inner { padding-block: 15px; align-items: flex-start; flex-direction: column; gap: 9px; }
.home-brand { --brand-width: clamp(177px, 27vw, 246px); }
.home-icon { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-header-actions { display: flex; flex-shrink: 1; flex-wrap: wrap; align-items: center; margin-left: 0; gap: 7px; width: 100%; min-width: 0; }
.home .home-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    background: var(--home-surface);
    color: var(--home-ink);
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}
.home .home-theme { padding: 0; color: var(--home-accent); }
.home .home-weather { gap: 5px; padding-inline: 8px; color: var(--home-accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.home .home-weather:hover { background: var(--home-tint); }
.home-theme .home-sun,
[data-theme="dark"] .home-theme .home-moon { display: none; }
[data-theme="dark"] .home-theme .home-sun { display: block; }
.home .home-account { border-color: transparent; background: #0861db; color: #fff; }
.home .home-account:hover { background: #064fba; }
.home .home-control:hover { border-color: var(--home-accent); }
.home .home-city { color: var(--home-accent); background: var(--home-tint); border-color: transparent; }
.home-city span { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-main { gap: clamp(24px, 3.7vw, 39px); padding-top: clamp(16px, 3vw, 30px); padding-bottom: 30px; }
.home-greeting { margin: 0 0 calc(-1 * clamp(11px, 1.8vw, 19px)); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 268px;
    overflow: hidden;
    padding: clamp(22px, 4.5vw, 51px);
    border: 1px solid var(--home-border);
    border-radius: clamp(20px, 3vw, 29px);
    background: var(--home-hero);
}
.home-hero-copy { width: min(100%, 37rem); }
.home-hero h1 { margin: 0 0 13px; color: inherit; font-size: clamp(2rem, 5vw, 3.65rem); font-weight: 820; line-height: 1.04; letter-spacing: -.045em; }
.home-hero h1 span { display: block; color: var(--home-accent); }
.home-hero p { margin: 0; max-width: 34ch; color: var(--home-muted); font-size: clamp(.9rem, 1.6vw, 1.09rem); }
.home-hero--ad .home-hero-copy { width: min(100%, 48rem); overflow-wrap: anywhere; }
.home-hero--ad h2 { margin: 6px 0 10px; font-size: clamp(1.65rem, 4vw, 2.8rem); line-height: 1.15; }
.home-hero--ad p { max-width: 72ch; white-space: pre-line; }
.home-hero--ad a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--home-accent); font-weight: 750; }
.home .home-hero--ad a:hover { text-decoration: underline; }
.home-hero-art { position: absolute; z-index: -1; inset: 0 0 0 46%; background: url("home-route.svg?v=2") right bottom / auto 100% no-repeat; }
[data-theme="dark"] .home-hero-art { opacity: .57; }

.home-title { margin: 0; color: inherit; font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.home-services-title, .home-section-heading { margin-bottom: 15px; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-service {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 106px;
    gap: clamp(10px, 1.4vw, 16px);
    padding: clamp(12px, 1.7vw, 19px);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: var(--home-surface);
    color: var(--home-ink);
    box-shadow: 0 4px 10px rgb(19 73 148 / 4%);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.home-service:hover { transform: translateY(-2px); border-color: var(--home-accent); box-shadow: var(--ds-shadow-md); }
.home-service-icon { display: block; width: 66px; height: 50px; border-radius: 10px; background: #fbf7ef url("/static/service-illustrations-v1.png") var(--service-x, 48%) 6% / 335% auto no-repeat; }
.home-service--taxi { --service-x: 5%; }
.home-service--freight { --service-x: 92%; }
.home-service h3 { margin: 0 0 4px; color: inherit; font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.16; font-weight: 800; overflow-wrap: anywhere; }
.home-service p { margin: 0; color: var(--home-muted); font-size: .86rem; line-height: 1.35; }
.home-service--text { grid-template-columns: minmax(0, 1fr) auto; }
.home-service-next { display: grid; place-items: center; width: 25px; height: 25px; color: var(--home-accent); }

.home-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.home-section-heading p { margin: 0; color: var(--ds-text-soft); font-size: .9rem; overflow-wrap: anywhere; }
.home-shortcut-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 14px;
    border: 1px solid var(--home-border);
    border-radius: 15px;
    background: var(--home-surface);
    color: var(--home-ink);
    font-weight: 700;
    font-size: .9rem;
}
.home-shortcut .home-icon { color: var(--home-accent); }
.home-shortcut:hover, a.home-benefit:hover { border-color: var(--home-accent); }
.home-membership { margin-top: 13px; }
.home-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 11px 15px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: var(--home-tint);
    color: var(--home-ink);
}
.home-benefit strong, .home-benefit strong + span { display: block; }
.home-benefit strong + span { color: var(--ds-text-soft); font-size: .875rem; }
.home-benefit-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: #ffdf63; color: #332600; }
.home-plus-icon { background: var(--home-surface); width: 48px; height: 48px; }
.home-plus-icon svg { width: 38px; height: 38px; }
.home-benefit-arrow { margin-left: auto; color: var(--home-accent); }
.home-benefit--active { background: var(--ds-success-bg); }
.home-benefit--vip { background: var(--ds-warning-bg); }

.home-business {
    display: grid;
    gap: 14px;
    padding: clamp(19px, 4vw, 34px);
    border: 1px solid var(--home-border);
    border-radius: 22px;
    background: var(--home-surface);
}
.home-partner-next { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.home-partner-next p { margin: 0; color: var(--home-muted); font-size: .9rem; }
.home-business-action { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--home-tint); color: var(--home-accent); font-size: .9rem; font-weight: 800; }
.home a.home-business-action:hover { text-decoration: underline; }
.home-business-nav { display: grid; align-content: center; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-business-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--home-tint);
    color: var(--home-ink);
    font-size: .875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.home-business-nav a:hover { border-color: var(--home-accent); }
.home-business-nav .home-icon { width: 16px; height: 16px; color: var(--home-accent); }
.shared-masthead { width: 100%; align-self: stretch; }
.shared-masthead .app-header { width: 100%; max-width: none; margin: 0; padding: 0; border-bottom: 1px solid var(--home-border); background: var(--home-surface); }
.shared-masthead .app-header__inner { width: 100%; max-width: var(--home-width); text-align: left; }
.shared-masthead .app-header::before { display: none; }
.shared-page-title { width: 100%; max-width: 720px; padding: 12px 16px; margin-inline: auto; text-align: center; }
.shared-masthead ~ main .business-home { display: none; }
.shared-masthead ~ main .business-top:has(#park-logout[hidden]) { display: none; }

.home-updates { display: flex; flex-wrap: wrap; gap: 12px; }
.home-updates:not(:has(> :not([hidden]))) { display: none; }
.home-update { flex: 1 1 290px; min-width: 0; padding: 17px; border: 1px solid var(--home-border); border-radius: 16px; background: var(--ds-surface); overflow-wrap: anywhere; }
.home-update h2 { margin: 0 0 8px; font-size: 1.1rem; }
.home-update p { margin: 0 0 8px; color: var(--ds-text-soft); white-space: pre-line; }
.home-update ul { list-style: none; margin: 0; padding: 0; }
.home-update li + li { border-top: 1px solid var(--home-border); }
.home-update li { padding: 7px 0; }
.home-update a { color: var(--home-accent); font-weight: 700; }
.home .home-update a:hover { text-decoration: underline; }
.home-update time { display: block; color: var(--ds-text-soft); font-size: .8rem; }
.home-ad-marker { display: block; color: var(--ds-text-soft); font-size: .8rem; }

.home-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 12px; padding-bottom: calc(18px + var(--ds-safe-bottom)); font-size: .875rem; color: var(--ds-text-soft); text-align: left; }
.home-footer p { margin: 0; }
.home-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--home-accent); }
.home .home-footer a:hover { text-decoration: underline; }
.home .home-logout { margin-inline-start: auto; min-width: 132px; min-height: 52px; padding: 14px 24px; font-size: 16px; font-weight: 700; color: var(--home-accent); background: var(--home-tint); }
.home .home-logout:disabled { opacity: .65; cursor: wait; }
@media (max-width: 560px) {
    .home .home-control.home-logout { padding: 14px 24px; font-size: 1rem; }
}

.home-dialog {
    position: fixed;
    inset: 0;
    width: min(420px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    margin: auto;
    border: 1px solid var(--home-border);
    border-radius: 21px;
    background: var(--ds-surface);
    color: var(--ds-text);
}
.home-dialog::backdrop { background: rgb(5 15 36 / 65%); }
.home-dialog-content { padding: 22px; }
.home-dialog h2 { margin: 0 0 6px; font-size: 1.35rem; }
.home-dialog p { margin: 0 0 14px; color: var(--ds-text-soft); }
.home-city-list { display: grid; gap: 7px; }
.home-city-list button { width: 100%; justify-content: flex-start !important; text-align: left; overflow-wrap: anywhere; }
.home-city-list [aria-current="true"] { background: var(--home-tint); color: var(--home-accent); }
.home-dialog form { margin-top: 14px; }

@media (max-width: 1000px) {
    .home-service-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .home-service { min-height: 77px; padding: 10px 14px; border-radius: 16px; }
    .home-service-icon { width: 61px; height: 46px; }
}

@media (max-width: 730px) {
    .home-hero { min-height: 208px; }
    .home-hero-art { inset-inline-start: 39%; opacity: .72; }
    .home-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-business { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .home .app-header__inner { padding-block: 12px; gap: 7px; }
    .home-header-actions { gap: 4px; }
    .home .home-control { padding-inline: 8px; font-size: .79rem; }
    .home .home-theme { padding-inline: 0; }
    .home-account .home-icon { display: none; }
    .home-city .home-icon { width: 15px; height: 15px; }
    .home-city span { max-width: 12ch; }
    .home-hero { min-height: 177px; align-items: start; }
    .home-hero h1 { font-size: clamp(1.68rem, 7.1vw, 2.52rem); }
    .home-hero p { max-width: 24ch; }
    .home-hero-art { inset: 0 0 0 29%; background-size: auto 84%; opacity: .53; mask-image: linear-gradient(90deg, transparent, black 78%); }
    [data-theme="dark"] .home-hero-art { opacity: .36; }
    .home-shortcut { padding-inline: 10px; }
}

@media (max-width: 370px) {
    .home-city span { max-width: 9ch; }
    .home-account .home-icon { display: block; width: 18px; height: 18px; }
    .home-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .home-business-nav a { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .home, .home-service { transition: none; }
    .home-service:hover { transform: none; }
}

/* Transport hero: default artwork and advertising occupy the same slot. */
.home-hero { min-height: 328px; }
.home-hero:not(.home-hero--ad) { background: #edf6ff; }
.home-hero:not(.home-hero--ad) .home-hero-copy { position: relative; z-index: 1; max-width: 44%; }
.home-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04; }
.home-hero .home-hero-eyebrow { margin-bottom: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; color: #245b91; }
.home-hero-art { inset: 0 0 0 32%; background: url('/static/home-mobility-v3.webp') center / cover no-repeat; mask-image: linear-gradient(90deg, transparent, black 25%); }
[data-theme="dark"] .home-hero:not(.home-hero--ad) { background: #162a48; }
[data-theme="dark"] .home-hero-art { opacity: .8; mask-image: linear-gradient(90deg, transparent, black 25%); }
[data-theme="dark"] .home-hero .home-hero-eyebrow { color: #a9cbff; }
@media (max-width: 730px) {
  .home-hero { min-height: 220px; padding: 20px; }
  .home-hero:not(.home-hero--ad) { display: block; }
  .home-hero:not(.home-hero--ad) .home-hero-copy { max-width: 70%; }
  .home-hero h1 { font-size: 27px; }
  .home-hero .home-hero-eyebrow { font-size: 9px; margin-bottom: 8px; }
  .home-hero-art { inset: 0 0 0 43%; height: auto; background-image: image-set(url('/static/home-mobility-v3-small.webp') 1x, url('/static/home-mobility-v3.webp') 2x); background-position: center; opacity: .8; mask-image: linear-gradient(90deg, transparent, black 60%); }
  .home-hero:not(.home-hero--ad) p:not(.home-hero-eyebrow) { max-width: 100%; font-size: 12px; }
  [data-theme="dark"] .home-hero-art { opacity: .55; mask-image: linear-gradient(90deg, transparent, black 60%); }
}
