/* ============================================================
   iQMS public homepage (`/`, resources/views/public/home.blade.php).
   Layered on public/patient/style.css: same tokens (--primary, --ink,
   --bg, --surface, --border...) and the same opt-in dark theme
   (html[data-theme="dark"]), so the homepage, /semak and the ticket page
   read as one product. Everything here is scoped to body.home-page.
   Patient-page rules apply (phones on mobile data), not the admin
   Windows 7 rules; layout still uses margins rather than flex gap.
   ============================================================ */

.home-page {
    --hp-hero: #3b5bdb;
    --hp-hero-soft: rgba(255, 255, 255, .88);
    --hp-hero-line: rgba(255, 255, 255, .3);
    --hp-cta-ink: #2541b2;
    --hp-footer: #0f172a;
    --hp-ease: cubic-bezier(.22, 1, .36, 1);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

html[data-theme="dark"] .home-page {
    --hp-hero: #172554;
    --hp-cta-ink: #1e3a8a;
    --hp-footer: #020617;
}

/* ---- language: one of each sibling pair is shown ---- */
html[data-lang="ms"] .home-page [lang="en"],
html[data-lang="en"] .home-page [lang="ms"] {
    display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(body.home-page) { scroll-behavior: smooth; }
}

.home-page a { color: inherit; }

.hp-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.hp-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hp-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.hp-skip:focus { transform: none; }

/* Focus: indigo on light bands, white on the indigo hero. */
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page summary:focus-visible,
.home-page input:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

html[data-theme="dark"] .home-page a:focus-visible,
html[data-theme="dark"] .home-page button:focus-visible,
html[data-theme="dark"] .home-page summary:focus-visible {
    outline-color: var(--primary-light);
}

.hp-hero a:focus-visible,
.hp-hero button:focus-visible {
    outline-color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
.hp-hero {
    position: relative;
    overflow: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: clamp(48px, 7vw, 96px);
    background: var(--hp-hero);
    color: #fff;
}

/* One soft light source, top right — depth without a gradient wash. */
.hp-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80vw;
    max-width: 900px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hp-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.hp-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.hp-brand-logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.hp-brand-text { min-width: 0; }

.hp-brand-text strong,
.hp-brand-text small { display: block; }

.hp-brand-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-brand-text strong {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
}

.hp-brand-text small {
    max-width: 18rem;
    margin-top: 1px;
    color: var(--hp-hero-soft);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.25;
}

.hp-top-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hp-top-actions > * + * { margin-left: 10px; }

.hp-lang {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.hp-lang-btn {
    min-width: 40px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font: inherit;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.hp-lang-btn:hover { color: #fff; }

.hp-lang-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--hp-cta-ink);
}

/* The shared /semak switch, recoloured for the indigo bar. */
.hp-theme { margin-top: 0; margin-bottom: 0; }
.hp-theme .theme-switch-track { background: rgba(255, 255, 255, .2); }
.hp-theme .theme-switch-icon { color: rgba(255, 255, 255, .75); }
.hp-theme[aria-checked="true"] .theme-switch-track { background: rgba(255, 255, 255, .32); }

.hp-staff {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hp-hero-line);
    border-radius: 999px;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease;
}

.hp-staff .fa-svg { margin-right: 8px; }

.hp-staff:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .1);
}

.hp-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding-top: clamp(16px, 4vw, 56px);
}

/* What the system is, in the words people search with, above the headline. */
.hp-kicker {
    margin: 0 0 14px;
    color: var(--hp-hero-soft);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hp-title {
    max-width: 15ch;
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.04;
    text-wrap: balance;
}

.hp-lede {
    max-width: 34rem;
    margin: 0 0 30px;
    color: var(--hp-hero-soft);
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.hp-cta {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px -12px 0;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0 12px 12px 0;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s var(--hp-ease), box-shadow .2s var(--hp-ease), background-color .2s ease, border-color .2s ease;
}

.hp-btn .fa-svg { margin-right: 10px; }

.hp-btn-light {
    background: #fff;
    color: var(--hp-cta-ink);
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .55);
}

.home-page .hp-btn-light { color: var(--hp-cta-ink); }

.hp-btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(15, 23, 42, .6);
}

.hp-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
}

.hp-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.hp-hero-note {
    display: flex;
    align-items: center;
    margin: 22px 0 0;
    color: var(--hp-hero-soft);
    font-size: .875rem;
}

.hp-hero-note .fa-svg { margin-right: 8px; }

/* ---- the ticket + phone picture ---- */
.hp-visual {
    position: relative;
    height: 400px;
    max-width: 460px;
    margin: 44px auto 0;
    width: 100%;
}

.hp-ticket {
    position: absolute;
    top: 46px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 46%;
    max-width: 196px;
    padding: 16px 16px 22px;
    background: #fff;
    color: #0f172a;
    text-align: center;
    box-shadow: 0 26px 40px -18px rgba(2, 6, 23, .6);
    transform: rotate(-7deg);
    transform-origin: 50% 0;
}

/* Torn thermal-paper edge. */
.hp-ticket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 8px;
    background:
        linear-gradient(135deg, #fff 33.33%, transparent 33.33%) 0 0 / 10px 10px repeat-x,
        linear-gradient(225deg, #fff 33.33%, transparent 33.33%) 0 0 / 10px 10px repeat-x;
}

.hp-ticket-head {
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1.5px dashed #cbd5e1;
    line-height: 1.2;
}

.hp-ticket-head strong,
.hp-ticket-head span { display: block; }
.hp-ticket-head strong { font-size: .9rem; font-weight: 800; }
.hp-ticket-head span { color: #64748b; font-size: .6875rem; font-weight: 600; }

.hp-ticket-label {
    color: #64748b;
    font-size: .6875rem;
    font-weight: 700;
}

.hp-ticket-number {
    font-size: 2.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1;
}

.hp-ticket-service {
    margin-top: 4px;
    font-size: .75rem;
    font-weight: 600;
}

.hp-ticket-qr {
    margin: 12px 0 6px;
    font-size: 4rem;
    line-height: 1;
}

.hp-ticket-scan {
    color: #475569;
    font-size: .625rem;
    font-weight: 600;
}

.hp-phone {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    max-width: 244px;
    height: 400px;
    padding: 9px;
    border-radius: 38px;
    background: #0b1220;
    box-shadow: 0 34px 60px -24px rgba(2, 6, 23, .7), inset 0 0 0 2px rgba(255, 255, 255, .08);
}

.hp-phone-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 12px 12px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--bg);
    color: var(--ink);
}

.hp-phone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 700;
}

.hp-live {
    display: inline-flex;
    align-items: center;
    color: var(--success-text);
}

.hp-live-dot {
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
}

.hp-phone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px 14px;
    border-radius: 16px;
    background: var(--warn-bg);
    text-align: center;
}

.hp-phone-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1;
}

.hp-phone-pill {
    margin-top: 6px;
    color: var(--warn-text);
    font-size: .6875rem;
    font-weight: 700;
}

.hp-phone-go-caption {
    margin-top: 12px;
    color: var(--muted);
    font-size: .625rem;
    font-weight: 600;
}

.hp-phone-go {
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.25;
}

.hp-phone-journey {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface);
}

.hp-phone-journey-title {
    display: block;
    margin-bottom: 4px;
    font-size: .6875rem;
    font-weight: 800;
}

.hp-phone-journey ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-phone-journey li {
    display: flex;
    align-items: center;
    margin-top: 6px;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 600;
}

.hp-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border: 2px solid var(--border);
    border-radius: 50%;
    font-size: 7px;
}

.hp-phone-journey li.is-done .hp-dot {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.hp-phone-journey li.is-current { color: var(--ink); font-weight: 800; }

.hp-phone-journey li.is-current .hp-dot {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 6px var(--primary);
}

.hp-phone-hint {
    margin: auto 4px 8px;
    color: var(--muted);
    font-size: .625rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.hp-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
}

.hp-phone-btn .fa-svg { margin-right: 6px; }

@media (min-width: 900px) {
    .hp-hero-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        column-gap: 56px;
    }

    .hp-visual {
        height: 440px;
        margin: 0;
        max-width: none;
    }

    .hp-phone { height: 430px; right: 4%; }
    .hp-ticket { top: 70px; left: 2%; }
}

@media (max-width: 599.98px) {
    .hp-staff {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .hp-staff .fa-svg { margin-right: 0; }

    .hp-staff-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    /* Tightened so the organisation name wraps to two lines, not four. */
    .hp-top-actions > * + * { margin-left: 4px; }
    .hp-brand-logo { width: 36px; height: 36px; margin-right: 8px; padding: 3px; border-radius: 10px; }
    .hp-brand-text strong { font-size: 1rem; }
    .hp-brand-text small { font-size: .6875rem; }
    .hp-lang-btn { min-width: 34px; padding: 0 6px; }
    .hp-theme { padding-left: 2px; padding-right: 2px; margin-right: 0; }
    .hp-visual { height: 380px; }
    .hp-phone { height: 380px; }
    .hp-btn { flex: 1 1 100%; }
}

@media (max-width: 359.98px) {
    .hp-brand-text small { display: none; }
}

/* ============================================================
   Sections
   ============================================================ */
.hp-section {
    padding: clamp(56px, 8vw, 104px) 0;
    scroll-margin-top: 12px;
}

.hp-steps,
.hp-directory { background: var(--surface); }

.hp-features,
.hp-faq { background: var(--bg); }

.hp-h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
    text-wrap: balance;
}

.hp-section-lede {
    max-width: 38rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.hp-text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary-ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.home-page a.hp-text-link { color: var(--primary-ink); }

.hp-text-link .fa-svg {
    margin-left: 8px;
    transition: transform .2s var(--hp-ease);
}

.hp-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-text-link:hover .fa-svg { transform: translateX(3px); }

/* ---- How it works: a route with four stops ----
   Phones: a vertical timeline — picture tile on the left, the number pinned
   to its corner, dashed connector down to the next tile. From 860px: four
   columns, numbers in a row on a dashed line, picture under each.
   The pictures are sized in em off the tile's font-size, so one drawing
   serves both tile sizes. */
.hp-route {
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.hp-stop {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding-bottom: 32px;
}

.hp-stop:last-child { padding-bottom: 0; }

/* Connector between tiles. */
.hp-stop::after {
    content: "";
    position: absolute;
    top: 108px;
    bottom: 6px;
    left: 47px;
    border-left: 2px dashed var(--border);
    transform-origin: 50% 0;
}

.hp-stop:last-child::after { display: none; }

.hp-stop-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    border-radius: 16px;
    background: var(--bg);
    font-size: 8.5px;
}

.hp-stop-num {
    position: absolute;
    top: -9px;
    left: -9px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 800;
    box-shadow: 0 0 0 4px var(--surface);
}

.hp-stop h3 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hp-stop p {
    max-width: 26rem;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

@media (min-width: 860px) {
    .hp-route {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 28px;
        margin-top: 52px;
    }

    .hp-stop {
        display: block;
        padding: 64px 0 0;
    }

    .hp-stop::after {
        top: 21px;
        bottom: auto;
        left: 60px;
        right: -16px;
        border-left: 0;
        border-top: 2px dashed var(--border);
        transform-origin: 0 50%;
    }

    .hp-stop-art {
        height: 156px;
        font-size: 13px;
    }

    .hp-stop-num {
        top: -64px;
        left: 0;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
        box-shadow: 0 0 0 6px var(--primary-bg);
    }

    .hp-stop h3 { margin-top: 20px; }
}

/* -- 1: a ticket coming out of the counter printer -- */
.hp-art { position: relative; display: block; }

.hp-art-ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hp-art-printer {
    position: relative;
    z-index: 1;
    width: 9.2em;
    height: 2.2em;
    border-radius: .6em .6em .35em .35em;
    background: #1e293b;
    box-shadow: inset 0 -.45em 0 #0f172a;
}

html[data-theme="dark"] .hp-art-printer {
    background: #334155;
    box-shadow: inset 0 -.45em 0 #1e293b;
}

.hp-art-led {
    position: absolute;
    top: .55em;
    right: .7em;
    width: .45em;
    height: .45em;
    border-radius: 50%;
    background: var(--success);
}

/* The paper is clipped at the slot, so it can slide out of it. */
.hp-art-paper-slot {
    display: block;
    width: 7.2em;
    margin-top: -.2em;
    padding-bottom: .5em;
    overflow: hidden;
}

.hp-art-paper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .7em .5em .55em;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 .5em .9em -.5em rgba(2, 6, 23, .35);
}

.hp-art-paper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.45em;
    height: .5em;
    background:
        linear-gradient(135deg, #fff 33.33%, transparent 33.33%) 0 0 / .7em .7em repeat-x,
        linear-gradient(225deg, #fff 33.33%, transparent 33.33%) 0 0 / .7em .7em repeat-x;
}

.hp-art-paper small {
    color: #64748b;
    font-size: .72em;
    font-weight: 700;
}

.hp-art-paper b {
    font-size: 2.2em;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1.05;
}

/* -- 2: the phone camera finding the QR code -- */
.hp-art-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.4em;
    height: 7.4em;
    overflow: hidden;
    border-radius: .5em;
    /* Four viewfinder corners, drawn as backgrounds. */
    background:
        linear-gradient(var(--primary), var(--primary)) 0 0 / 1.6em .3em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 0 0 / .3em 1.6em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 100% 0 / 1.6em .3em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 100% 0 / .3em 1.6em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 0 100% / 1.6em .3em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 0 100% / .3em 1.6em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 100% 100% / 1.6em .3em no-repeat,
        linear-gradient(var(--primary), var(--primary)) 100% 100% / .3em 1.6em no-repeat;
}

.hp-art-qr {
    color: var(--ink);
    font-size: 4.4em;
    line-height: 1;
}

.hp-art-scanline {
    position: absolute;
    left: .9em;
    right: .9em;
    top: 50%;
    height: .22em;
    border-radius: .2em;
    background: var(--primary);
    box-shadow: 0 0 .9em .2em rgba(59, 91, 219, .45);
}

.hp-art-camera {
    position: absolute;
    right: -1.1em;
    bottom: -.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6em;
    height: 2.6em;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1em;
    box-shadow: 0 0 0 .35em var(--bg);
}

.hp-art-camera .fa-svg { font-size: 1.15em; }

/* -- 3: the live page saying the turn is near -- */
.hp-art-status {
    width: 11em;
    padding: .9em .9em 1em;
    border-radius: 1em;
    background: var(--surface);
    box-shadow: 0 .6em 1.4em -.8em rgba(15, 23, 42, .35);
}

.hp-art-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75em;
}

.hp-art-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4em;
    height: 2.4em;
    border-radius: .7em;
    background: var(--warn-bg);
    color: var(--warn-text);
    font-size: 1em;
}

.hp-art-bell .fa-svg {
    font-size: 1.15em;
    transform-origin: 50% 10%;
}

.hp-art-live {
    display: inline-flex;
    align-items: center;
    color: var(--success-text);
    font-size: .8em;
    font-weight: 700;
}

.hp-art-live .hp-live-dot {
    width: .6em;
    height: .6em;
    margin-right: .4em;
}

.hp-art-pill {
    display: block;
    padding: .55em .7em;
    border-radius: .6em;
    background: var(--warn-bg);
    color: var(--warn-text);
    font-size: .85em;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

/* -- 4: hospital wayfinding: "Sila ke Kaunter 3" -- */
.hp-art-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Two hangers above the plate. */
.hp-art-sign::before {
    content: "";
    width: 6.4em;
    height: 1em;
    border-left: .2em solid var(--muted);
    border-right: .2em solid var(--muted);
    opacity: .5;
}

.hp-art-plate {
    display: flex;
    align-items: center;
    padding: .7em .9em .7em 1em;
    border-radius: .6em;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 .6em 1.2em -.7em rgba(59, 91, 219, .7);
}

.hp-art-plate-text small,
.hp-art-plate-text b { display: block; white-space: nowrap; }

.hp-art-plate-text small {
    color: rgba(255, 255, 255, .85);
    font-size: .75em;
    font-weight: 700;
}

.hp-art-plate-text b {
    font-size: 1.35em;
    font-weight: 800;
    line-height: 1.15;
}

.hp-art-arrow {
    margin-left: .8em;
    font-size: 1.5em;
}

.hp-art-walker {
    align-self: flex-start;
    margin: .5em 0 0 .6em;
    color: var(--muted);
    font-size: 1.6em;
    line-height: 1;
}

/* The phone tiles are small; drop the bits that only decorate. */
@media (max-width: 859.98px) {
    .hp-art-live { display: none; }
    .hp-art-status-top { justify-content: center; }
    .hp-art-walker { display: none; }
    .hp-art-status { width: 10em; padding: .75em .7em .8em; }
    .hp-art-plate { padding: .6em .7em .6em .8em; }
}

/* -- no smartphone? -- */
.hp-steps-note {
    display: flex;
    align-items: center;
    max-width: 44rem;
    margin: 44px 0 0;
    padding: 14px 18px 14px 14px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--muted);
    font-size: .975rem;
    line-height: 1.5;
}

.hp-steps-note strong { color: var(--ink); }

.hp-steps-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 14px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary-ink);
    font-size: 1.05rem;
}

/* -- motion: armed by home.js only when the route starts below the fold.
   Armed tiles sit 14px low and the connectors are undrawn; everything stays
   visible, so a page where the observer never fires still reads fine. -- */
.hp-route.is-armed .hp-stop-art { transform: translateY(14px); }
.hp-route.is-armed .hp-stop::after { transform: scaleY(0); }
.hp-route.is-armed .hp-art-paper { transform: translateY(-60%); }

@media (min-width: 860px) {
    .hp-route.is-armed .hp-stop::after { transform: scaleX(0); }
}

.hp-route.is-armed.is-in .hp-stop-art,
.hp-route.is-armed.is-in .hp-stop::after,
.hp-route.is-armed.is-in .hp-art-paper {
    transform: none;
}

.hp-route.is-armed.is-in .hp-stop-art { transition: transform .7s var(--hp-ease); }
.hp-route.is-armed.is-in .hp-stop::after { transition: transform .6s cubic-bezier(.25, 1, .5, 1) .25s; }
.hp-route.is-armed.is-in .hp-art-paper { transition: transform .9s var(--hp-ease) .35s; }

.hp-route.is-armed.is-in .hp-stop:nth-child(2) .hp-stop-art { transition-delay: .08s; }
.hp-route.is-armed.is-in .hp-stop:nth-child(3) .hp-stop-art { transition-delay: .16s; }
.hp-route.is-armed.is-in .hp-stop:nth-child(4) .hp-stop-art { transition-delay: .24s; }
.hp-route.is-armed.is-in .hp-stop:nth-child(2)::after { transition-delay: .4s; }
.hp-route.is-armed.is-in .hp-stop:nth-child(3)::after { transition-delay: .55s; }

@keyframes hp-scan {
    0%, 100% { top: 14%; }
    50% { top: 82%; }
}

@keyframes hp-ring {
    0%, 70%, 100% { transform: rotate(0); }
    76% { transform: rotate(14deg); }
    82% { transform: rotate(-12deg); }
    88% { transform: rotate(8deg); }
    94% { transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .hp-art-scanline { animation: hp-scan 2.4s ease-in-out infinite; }
    .hp-art-bell .fa-svg { animation: hp-ring 3.2s ease-in-out infinite; }
}

/* ---- On your ticket page ---- */
.hp-features-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hp-feature-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 36px 0 0;
}

.hp-feature {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.hp-feature dt {
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 750;
}

.hp-feature dt .fa-svg {
    width: 20px;
    margin-right: 12px;
    color: var(--primary-ink);
}

.hp-feature dd {
    margin: 6px 0 0;
    padding-left: 32px;
    color: var(--muted);
    line-height: 1.55;
}

@media (min-width: 640px) {
    .hp-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }
}

@media (min-width: 960px) {
    .hp-features-grid {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
        column-gap: 64px;
        align-items: start;
    }

    .hp-feature-list { margin-top: 0; }
}

/* ---- Facility directory ----
   Homepage: a teaser (search + type links). /fasiliti: the list itself,
   searched, filtered and paged on the server. */
.hp-search-form {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin-top: 28px;
}

.hp-search {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 10px;
}

.hp-search > .fa-svg {
    position: absolute;
    top: 50%;
    left: 17px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.hp-search input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hp-search input::placeholder { color: var(--muted); opacity: 1; }

.hp-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.hp-search-btn {
    flex-shrink: 0;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hp-search-btn:hover { background: var(--hp-cta-ink); }

/* On the indigo band of /fasiliti. */
.hp-search-form-hero { margin-top: 0; }

.hp-search-form-hero .hp-search input {
    border-color: transparent;
    background: #fff;
    color: #1e293b;
}

.hp-search-form-hero .hp-search input::placeholder { color: #64748b; }
.hp-search-form-hero .hp-search > .fa-svg { color: #64748b; }

.hp-search-form-hero .hp-search input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .3);
}

html[data-theme="dark"] .hp-search-form-hero .hp-search input {
    border-color: rgba(255, 255, 255, .18);
    background: var(--surface);
    color: var(--ink);
}

html[data-theme="dark"] .hp-search-form-hero .hp-search input::placeholder,
html[data-theme="dark"] .hp-search-form-hero .hp-search > .fa-svg { color: var(--muted); }

.hp-search-form-hero .hp-search-btn {
    background: #fff;
    color: var(--hp-cta-ink);
}

.hp-search-form-hero .hp-search-btn:hover { background: rgba(255, 255, 255, .88); }

/* -- homepage teaser -- */
.hp-fac-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.home-page .hp-fac-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 16px;
    color: var(--primary-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
}

.hp-fac-all .fa-svg {
    margin-left: 10px;
    transition: transform .2s var(--hp-ease);
}

.hp-fac-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-fac-all:hover .fa-svg { transform: translateX(3px); }

.hp-type-links { margin-top: 36px; }

.home-page .hp-type-link {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
}

.hp-type-link:first-child { border-top: 1px solid var(--border); }

.hp-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary-ink);
    font-size: 1.2rem;
}

.hp-type-label {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 16px;
    font-size: 1.0625rem;
    font-weight: 700;
    transition: color .2s ease;
}

.hp-type-count {
    min-width: 2.25rem;
    margin-right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: .875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.hp-type-chevron {
    color: var(--muted);
    transition: transform .2s var(--hp-ease), color .2s ease;
}

.hp-type-link:hover .hp-type-label { color: var(--primary-ink); }
.hp-type-link:hover .hp-type-chevron { color: var(--primary-ink); transform: translateX(3px); }

@media (min-width: 900px) {
    .hp-fac-teaser {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        column-gap: 72px;
        align-items: center;
    }

    .hp-type-links { margin-top: 0; }
}

/* -- /fasiliti header band -- */
.hp-hero-compact { padding-bottom: clamp(32px, 5vw, 56px); }

.hp-page-head { padding-top: clamp(4px, 2vw, 24px); }

.home-page .hp-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hp-hero-soft);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
}

.hp-back .fa-svg { margin-right: 8px; transition: transform .2s var(--hp-ease); }
.home-page .hp-back:hover { color: #fff; }
.hp-back:hover .fa-svg { transform: translateX(-3px); }

.hp-page-title {
    max-width: 20ch;
    margin: 6px 0 12px;
    font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    text-wrap: balance;
}

.hp-page-lede {
    max-width: 36rem;
    margin: 0 0 26px;
    color: var(--hp-hero-soft);
    font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
    line-height: 1.6;
}

/* -- /fasiliti list -- */
.hp-directory-page { padding-top: 32px; }

.hp-chips {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px 4px 0;
}

.home-page .hp-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 8px 8px 0;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.hp-chip:hover { border-color: var(--muted); }

.home-page .hp-chip[aria-current="page"] {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.hp-chip-count {
    margin-left: 8px;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hp-chip[aria-current="page"] .hp-chip-count { color: rgba(255, 255, 255, .85); }

.hp-count {
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 600;
}

.home-page .hp-count-clear {
    margin-left: 10px;
    color: var(--primary-ink);
    font-weight: 700;
}

/* -- pager -- */
.hp-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.home-page .hp-pager-step {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 650;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.hp-pager-step .fa-svg:first-child { margin-right: 8px; }
.hp-pager-step .fa-svg:last-child { margin-left: 8px; }
.home-page a.hp-pager-step:hover { border-color: var(--muted); background: var(--bg); }
.hp-pager-step.is-disabled { opacity: .45; }

.hp-pager-pages {
    display: flex;
    align-items: center;
}

.home-page .hp-pager-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 2px;
    padding: 0 8px;
    border-radius: 10px;
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color .2s ease;
}

.home-page a.hp-pager-page:hover { background: var(--bg); }

.hp-pager-page.is-current {
    background: var(--primary);
    color: #fff;
}

.hp-pager-gap {
    min-width: 24px;
    color: var(--muted);
    text-align: center;
}

/* Phones: page numbers on their own row, Previous / Next under them. */
@media (max-width: 599.98px) {
    .hp-pager-pages {
        order: -1;
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: 14px;
    }

    .hp-search-btn { padding: 0 16px; }
}

.hp-fac-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-fac {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.hp-fac-head {
    display: flex;
    align-items: flex-start;
}

.hp-fac-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 14px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary-ink);
    font-size: 1.25rem;
}

.hp-fac-id { min-width: 0; }

.hp-fac-name {
    margin: 0;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hp-fac-name a { text-decoration: none; }

.home-page .hp-fac-name a:hover {
    color: var(--primary-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-fac-type {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 600;
}

.hp-fac-address {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.5;
}

.hp-fac-locations {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
}

.hp-fac-locations-label {
    margin-right: 6px;
    color: var(--ink);
    font-weight: 700;
}

.hp-fac-actions {
    display: flex;
    flex-wrap: wrap;
    margin: auto -8px -8px 0;
    padding-top: 18px;
}

.hp-fac-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 8px 8px 0;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.home-page .hp-fac-btn { color: var(--ink); }

.hp-fac-btn .fa-svg {
    margin-right: 8px;
    color: var(--muted);
}

.hp-fac-btn:hover {
    border-color: var(--muted);
    background: var(--bg);
}

.home-page .hp-fac-btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.hp-fac-btn-primary .fa-svg { color: rgba(255, 255, 255, .9); }

.hp-fac-btn-primary:hover {
    border-color: var(--hp-cta-ink);
    background: var(--hp-cta-ink);
}

.hp-fac-phone { font-variant-numeric: tabular-nums; }

.hp-empty {
    padding: 48px 20px;
    border: 1.5px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.hp-empty > .fa-svg { font-size: 1.75rem; }

.hp-empty p {
    margin: 12px 0 0;
    font-size: 1rem;
}

.hp-empty .hp-text-link { margin-top: 12px; }

/* ---- /fasiliti/{facility}: one facility's page ---- */
.hp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
    color: var(--hp-hero-soft);
    font-size: .9375rem;
    font-weight: 600;
}

.hp-crumbs li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.hp-crumbs li + li::before {
    content: "›";
    margin: 0 10px;
    opacity: .7;
}

.home-page .hp-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hp-hero-soft);
    text-decoration: none;
}

.home-page .hp-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hp-crumbs [aria-current="page"] {
    display: block;
    overflow: hidden;
    max-width: 40ch;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Phones: the heading right below already names the page. */
@media (max-width: 599.98px) {
    .hp-crumbs li[aria-current="page"] { display: none; }
}

.hp-page-head .hp-kicker { margin-top: 8px; margin-bottom: 6px; }
.hp-page-head .hp-cta { margin-top: 4px; }

.hp-facility { padding-top: 32px; }

.hp-facility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.hp-facility-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.hp-facility-h {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.hp-facility-info { margin: 0 0 12px; }

.hp-facility-info > div + div { margin-top: 14px; }

.hp-facility-info dt {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 700;
}

.hp-facility-info dt .fa-svg { margin-right: 8px; color: var(--primary-ink); }

.hp-facility-info dd {
    margin: 4px 0 0 24px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.5;
}

.home-page .hp-facility-info dd a {
    color: var(--primary-ink);
    font-weight: 700;
    text-decoration: none;
}

.home-page .hp-facility-info dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hp-facility-places {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-facility-places li {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    color: var(--ink);
    font-weight: 600;
}

.hp-facility-places li:first-child { border-top: 0; padding-top: 0; }
.hp-facility-places .fa-svg { flex-shrink: 0; margin-right: 10px; color: var(--success); }

.hp-howto {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: howto;
}

.hp-howto li {
    position: relative;
    padding: 20px 20px 20px 64px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    counter-increment: howto;
}

.hp-howto li::before {
    content: counter(howto);
    position: absolute;
    top: 18px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-ink);
    font-size: .875rem;
    font-weight: 800;
}

.hp-howto h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 750;
    line-height: 1.3;
}

.hp-howto p {
    margin: 0;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.6;
}

.hp-facility-more { margin: 8px 0 0; }
.hp-facility-more .hp-text-link { margin-right: 28px; }

@media (min-width: 860px) {
    .hp-facility-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
    .hp-howto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- FAQ ---- */
.hp-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hp-faq-list { margin-top: 24px; }

.hp-q { border-bottom: 1px solid var(--border); }
.hp-q:first-child { border-top: 1px solid var(--border); }

.hp-q summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 20px 0;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.hp-q summary::-webkit-details-marker { display: none; }
.hp-q summary > span { flex: 1 1 auto; }

.hp-q-caret {
    margin-left: 16px;
    color: var(--muted);
    transition: transform .25s var(--hp-ease);
}

.hp-q[open] .hp-q-caret { transform: rotate(180deg); }

.hp-a p {
    max-width: 62ch;
    margin: -4px 0 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.hp-a a {
    color: var(--primary-ink);
    font-weight: 700;
}

@media (min-width: 960px) {
    .hp-faq-grid {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
        column-gap: 64px;
        align-items: start;
    }

    .hp-faq-list { margin-top: 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.hp-footer {
    padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
    background: var(--hp-footer);
    color: #cbd5e1;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
}

.hp-footer-brand {
    display: flex;
    align-items: center;
}

.hp-footer-brand img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.hp-footer-brand strong {
    display: block;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 800;
}

.hp-footer-brand span {
    display: block;
    color: #94a3b8;
    font-size: .8125rem;
}

.hp-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 -10px;
}

.home-page .hp-footer-links a {
    margin: 0 24px 10px 0;
    color: #e2e8f0;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
}

.home-page .hp-footer-links a:last-child { margin-right: 0; }

.home-page .hp-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hp-footer-legal {
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #94a3b8;
    font-size: .8125rem;
    line-height: 1.6;
}

.home-page .hp-footer-legal a { color: #cbd5e1; }

.hp-footer a:focus-visible { outline-color: #fff; }

@media (min-width: 768px) {
    .hp-footer-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .hp-footer-legal { grid-column: 1 / -1; }
}

/* ============================================================
   Motion: one orchestrated load on the hero. Transform-led, and the
   resting state is the visible one — if an animation never runs, the
   page is simply shown.
   ============================================================ */
@keyframes hp-rise {
    from { transform: translateY(18px); opacity: .25; }
    to { transform: none; opacity: 1; }
}

@keyframes hp-print {
    from { transform: translateY(46px) rotate(-7deg); opacity: .25; }
    to { transform: rotate(-7deg); opacity: 1; }
}

@keyframes hp-phone-in {
    from { transform: translateY(28px); opacity: .25; }
    to { transform: none; opacity: 1; }
}

@keyframes hp-live {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    .hp-js .hp-hero-copy > * { animation: hp-rise .7s var(--hp-ease) both; }
    .hp-js .hp-hero-copy > :nth-child(2) { animation-delay: .06s; }
    .hp-js .hp-hero-copy > :nth-child(3) { animation-delay: .12s; }
    .hp-js .hp-hero-copy > :nth-child(4) { animation-delay: .18s; }
    .hp-js .hp-hero-copy > :nth-child(5) { animation-delay: .24s; }
    .hp-js .hp-phone { animation: hp-phone-in .9s var(--hp-ease) .1s both; }
    .hp-js .hp-ticket { animation: hp-print 1s var(--hp-ease) .32s both; }
    .hp-live-dot { animation: hp-live 2s ease-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
