/* The public introduction uses the shared actions, cards, type and spacing. */
html.landing-page body {
    width: 100%; max-width: 1120px; box-sizing: border-box; margin: 0 auto;
    padding: calc(88px + env(safe-area-inset-top)) max(var(--space-4), env(safe-area-inset-right)) max(96px, calc(80px + env(safe-area-inset-bottom))) max(var(--space-4), env(safe-area-inset-left));
}
.lp-mobile-brand, .lp-sign-in { display: none; }
.lp-main { display: grid; gap: var(--space-6); width: 100%; margin: 0 auto; }
.lp-top { display: grid; min-width: 0; isolation: isolate; }
.lp-top > .lp-hero { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lp-hero { position: relative; z-index: 1; display: grid; gap: var(--space-8); }
.lp-title { margin: 0; color: var(--text-strong); text-align: left; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 900; }
.lp-description { color: var(--text-muted); margin: var(--space-5) 0 0; }
.lp-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lp-introduction > .lp-actions { margin-top: var(--space-5); }
.lp-explore { display: grid; gap: var(--space-3); min-width: 0; }
.lp-city-dialog { --popup-width: 480px; }
.lp-city-node .lp-explore { width: 100%; }
.lp-explore > label { font-size: var(--text-sm); font-weight: 700; text-align: left; }
.lp-explore .bdx-input { width: 100%; min-width: 0; }
.lp-location-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lp-explore .city-locate-status { margin: 0; font-size: var(--text-xs); text-align: left; }
.lp-explore select[hidden], .lp-explore .city-locate-status[hidden] { display: none; }
.lp-location-actions .bdx-button { flex: 1 1 160px; }
.lp-location-actions [aria-pressed="true"] { border-color: var(--text-muted); }
.lp-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.lp-preview-heading > div { flex: 1 1 240px; }
#landing-preview-browse { min-height: 56px; padding: 16px 28px; font-size: var(--text-base); }
.lp-preview h2 { margin: 0 0 var(--space-3); color: var(--text-strong); font-size: var(--text-xl); text-align: left; }
.lp-preview .bdx-help { margin: 0; }
.lp-mindmap { position: relative; height: 520px; margin-top: var(--space-4); isolation: isolate; }
.lp-mindmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--border-subtle); pointer-events: none; }
.lp-mindmap-lines path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.lp-city-node { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: max-content; max-width: 70%; padding: var(--space-3) var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-muted); text-align: center; }
.lp-city-label { display: block; color: var(--text-muted); font-size: var(--text-xs); font-weight: 600; }
.lp-city-name-row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.lp-city-name-row[hidden] { display: none; }
.lp-city-name-row strong { min-width: 0; max-width: 220px; overflow-wrap: anywhere; color: var(--text-strong); font-size: var(--text-lg); line-height: 1.25; }
.lp-city-name-row svg { width: 18px; height: 18px; }
.lp-preview-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 110px minmax(0, 1fr); gap: 0 var(--space-4); pointer-events: none; }
.lp-bus { position: relative; display: block; place-self: center; width: min(100%, 195px); min-width: 0; min-height: 0; max-height: 100%; aspect-ratio: 1; border-radius: 50%; color: white; text-decoration: none; pointer-events: auto; }
.lp-bus:nth-child(n+4) { grid-row: 3; }
.lp-bus:hover .lp-bus-caption strong { text-decoration: underline; }
.lp-bus:active { opacity: .85; }
.lp-bus:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; border-radius: 50%; }
.lp-bus strong, .lp-bus > span { overflow-wrap: anywhere; }
.lp-bus-caption { position: absolute; z-index: 1; left: 15%; right: 15%; bottom: 20%; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; color: white; pointer-events: none; }
.lp-bus-caption strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--text-base); line-height: 1.25; }
.lp-bus-caption > span { font-size: var(--text-xs); font-weight: 400; line-height: 1.4; }
.lp-bus-photo { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--text-strong); overflow: hidden; }
.lp-bus-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgb(0 0 0 / .88) 100%); }
.lp-bus-photo > svg { position: absolute; top: 25%; left: calc(50% - 14px); width: 28px; height: 28px; color: white; opacity: .5; }
.lp-bus-photo > .bdx-loader { position: absolute; top: 25%; left: calc(50% - 10px); z-index: 2; display: none; --loader-size: 20px; --loader-color: white; --loader-track: #ffffff55; }
.lp-bus-photo.is-loading > .bdx-loader { display: block; }
.lp-bus-photo:is(.is-loading,.has-photo) > svg { display: none; }
.lp-bus-photo.has-photo > .bdx-loader { display: none; }
.lp-bus-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-preview-status { min-height: 44px; width: 100%; gap: var(--space-3); font-size: var(--text-sm); }
.lp-preview-status:not(.is-loading) .bdx-loader { display: none; }
.lp-preview-status[hidden], .lp-location-actions [hidden], #landing-preview-retry[hidden], .lp-bus-photo img[hidden] { display: none; }
.lp-coverage { margin: var(--space-5) 0 0; }
.lp-start { border-top: 1px solid var(--border-subtle); padding-top: var(--space-6); }
.lp-start h2 { margin: 0 0 var(--space-5); color: var(--text-strong); text-align: left; font-size: var(--text-lg); }
.lp-steps { display: grid; gap: var(--space-5); margin: 0; padding-left: var(--space-6); }
.lp-steps li { padding-left: var(--space-1); }
.lp-steps li::marker { color: var(--action-primary); font-weight: 700; }
.lp-steps strong, .lp-steps span { display: block; }
.lp-steps span { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-sm); }
.lp-main .bdx-section-title { margin: 0 0 var(--space-5); text-align: center; font-size: var(--text-xl); }
.lp-top > .lp-community { --card-padding: 16px 20px; --card-radius: 0 0 var(--radius-lg) var(--radius-lg); position: relative; z-index: 0; margin-top: -1px; border-top: 0; }
.lp-community > h2.bdx-section-title { margin-bottom: var(--space-3); color: var(--text-strong); font-size: var(--text-sm); }
.lp-features { display: grid; gap: var(--space-4); }
.lp-card { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: var(--space-2); text-align: center; }
.lp-card-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--surface-info); color: var(--text-info); }
.lp-card-icon svg { width: 24px; height: 24px; will-change: transform; backface-visibility: hidden; }
.lp-card--blue .lp-card-icon svg { animation: lp-bus-drive 1.8s ease-in-out infinite; }
.lp-card--xp .lp-card-icon svg { animation: lp-level-rise 1.6s ease-in-out infinite; }
.lp-card--green .lp-card-icon svg { animation: lp-trophy-cheer 2.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes lp-bus-drive { 0%, 100% { transform: translate3d(-3px, 0, 0); } 50% { transform: translate3d(3px, 0, 0); } }
@keyframes lp-level-rise { 0%, 100% { transform: translate3d(0, 2px, 0); } 50% { transform: translate3d(0, -2px, 0); } }
@keyframes lp-trophy-cheer { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); } 50% { transform: translate3d(0, 0, 0) rotate(6deg); } }
.lp-card--green .lp-card-icon { background: var(--surface-success); color: var(--text-success); }
.lp-card-body { display: contents; }
.lp-card-body h3 { color: var(--text-strong); margin: 0; font-size: var(--text-base); text-align: center; }
.lp-card-body p { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; margin: 0; }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; text-align: center; }
.lp-stat { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.lp-stat + .lp-stat { border-left: 1px solid var(--border-subtle); }
.lp-stat dt { color: var(--text-muted); font-size: .8125rem; }
.lp-stat__detail { display: block; font-size: var(--text-xs); }
.lp-stat dd { order: -1; width: 100%; margin: 0 0 var(--space-1); min-height: 1.5em; color: var(--text-strong); font-weight: 700; font-size: var(--text-xl); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-counter { display: block; height: 1.5em; line-height: 1.5; overflow: hidden; white-space: nowrap; }
.lp-counter__track { display: flex; flex-direction: column; will-change: transform; backface-visibility: hidden; animation: lp-counter-spin var(--counter-duration) cubic-bezier(.22, .61, .36, 1) forwards; }
.lp-counter__step { flex: 0 0 1.5em; height: 1.5em; }
@keyframes lp-counter-spin { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--counter-offset), 0); } }
@media (prefers-reduced-motion: reduce) { .lp-counter__track, .lp-features .lp-card-icon svg { animation: none; will-change: auto; } }
.lp-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--space-3); margin-top: var(--space-3); color: #fff; font-size: var(--text-xs); text-align: center; }
.lp-footer > a { font-size: var(--text-sm); min-height: 44px; }
.lp-footer a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; font-weight: 600; }
.lp-footer a:hover { text-decoration: underline; }
.lp-credit { flex-basis: 100%; justify-content: center; flex-wrap: wrap; display: inline-flex; align-items: center; gap: var(--space-1); }
@media (min-width: 769px) {
    html.landing-page body { padding-top: calc(88px + env(safe-area-inset-top)); padding-bottom: var(--space-6); }
    .lp-top > .lp-hero { position: relative; z-index: 1; border-radius: var(--radius-lg); }
    .lp-top > .lp-community { margin: -1px var(--space-8) 0; }
    .lp-bus:nth-child(2) { transform: translateY(-16px); }
    .lp-bus:nth-child(5) { transform: translateY(16px); }
    .lp-hero { grid-template-columns: 1.3fr 1fr; align-items: center; gap: var(--space-12); }
    .lp-start { border-top: 0; border-left: 1px solid var(--border-subtle); padding: 0 0 0 var(--space-8); }
    .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
    .lp-main { gap: var(--space-8); }
}

/* Marketing motion is decorative; content remains visible without scripts. */
@keyframes lp-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-stats-reveal { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
    .lp-introduction, .lp-start, .lp-feature-section { animation: lp-arrive .7s cubic-bezier(.2, 0, 0, 1) backwards; }
    .lp-start { animation-duration: .12s; }
    .lp-community { animation: lp-stats-reveal .45s cubic-bezier(.2, 0, 0, 1) .12s backwards; }
    .lp-feature-section { animation-delay: .36s; }
}
@media (max-width: 768px) {
    html.landing-page body:has(.guest-navigation) {
        padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }
    html.landing-page .guest-navigation, html.landing-page .guest-explore { display: none; }
    .lp-mobile-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 24px; color: #fff; font-size: 24px; font-weight: 900; }
    .lp-mobile-brand img { object-fit: contain; }
    .lp-main { gap: 32px; max-width: 520px; }
    .lp-main .lp-hero { --card-padding: 0; --card-border-width: 0; --card-background: transparent; --card-shadow: none; gap: 24px; }
    .lp-introduction, .lp-start { padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); }
    .lp-introduction { text-align: center; }
    .lp-title { font-size: clamp(2rem, 8.2vw, 2.75rem); line-height: 1.12; text-align: center; text-wrap: balance; }
    .lp-description { margin: 20px 0 0; font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
    .lp-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lp-actions .bdx-button { width: 100%; min-height: 48px; box-sizing: border-box; }
    .lp-sign-in { display: block; margin: 16px 0 0; color: var(--text-muted); font-size: var(--text-sm); }
    .lp-sign-in a { display: inline-flex; align-items: center; min-height: 44px; color: var(--action-primary); font-weight: 700; }
    .lp-coverage { margin-top: 12px; font-size: var(--text-xs); }
    .lp-start h2 { margin-bottom: 24px; text-align: left; font-size: var(--text-lg); }
    .lp-steps { list-style: none; padding: 0; counter-reset: journey; gap: 24px; }
    .lp-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 0; counter-increment: journey; text-align: left; }
    .lp-steps li::before { content: counter(journey); display: grid; place-items: center; grid-column: 1; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-info); color: var(--text-info); font-weight: 700; }
    .lp-steps strong, .lp-steps span { grid-column: 2; margin: 0; }
    .lp-steps strong { font-size: var(--text-sm); line-height: 1.5; }
    .lp-steps span { line-height: 1.6; }
    .lp-top > .lp-hero { border-radius: 0; }
    .lp-top .lp-start { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .lp-top > .lp-community { --card-padding: 12px; }
    .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .lp-stat { padding: 0 4px 12px; }
    .lp-stat:nth-child(n+3) { border-top: 1px solid var(--border-subtle); padding-top: 12px; padding-bottom: 0; }
    .lp-stat:nth-child(odd) { border-left: 0; }
    .lp-stat dd { font-size: 1.125rem; }
    .lp-stat dt { font-size: var(--text-xs); line-height: 1.4; }
    .lp-stat__detail { font-size: .6875rem; }
    .lp-stat__coverage { font-size: clamp(.5625rem, 2.7vw, .6875rem); white-space: nowrap; }
    .lp-preview { --card-padding: 16px 12px; }
    .lp-preview h2 { font-size: var(--text-lg); }
    #landing-preview-browse { width: 100%; }
    .lp-mindmap { height: clamp(360px, 86vw, 440px); }
    .lp-mindmap-lines { display: none; }
    .lp-mindmap::before, .lp-mindmap::after { content: ''; position: absolute; left: 24%; right: 24%; height: 22%; border: 2px solid var(--border-subtle); border-bottom: 0; border-radius: 50% 50% 0 0; }
    .lp-mindmap::before { top: 26%; transform: rotate(180deg); }
    .lp-mindmap::after { bottom: 26%; }
    .lp-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 144px minmax(0, 1fr); gap: 0 4px; }
    .lp-bus { width: auto; height: 100%; max-width: 100%; aspect-ratio: 1; }
    .lp-bus:nth-child(n+3) { grid-row: 3; }
    .lp-city-node { max-width: 88%; padding: var(--space-2) var(--space-3); }
    .lp-city-name-row strong { font-size: var(--text-base); }
    .lp-bus-caption { left: 10%; right: 10%; bottom: 22%; }
    .lp-bus-caption strong { font-size: var(--text-sm); }
    .lp-features .lp-card { --card-padding: 20px; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; justify-items: start; text-align: left; padding: 20px; }
    .lp-card-icon { width: 40px; height: 40px; }
    .lp-card-body h3 { align-self: center; text-align: left; }
    .lp-card-body p { text-align: left; line-height: 1.65; }
    .lp-footer { margin-top: 24px; gap: 8px 20px; }
    .lp-footer > a { min-height: 44px; }
}
@media (forced-colors: active) {
    .lp-bus-photo { border: 1px solid CanvasText; border-radius: 50%; }
    .lp-bus-caption { color: CanvasText; background: Canvas; }
}
