/* Explain: Styles for UI components like headers, footers, buttons, and cards. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 10px 30px -24px rgba(15, 44, 107, 0.7);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1rem;
}

.brand-mark-light {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-app:hover {
    transform: translateY(-2px);
}

.btn-app-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 14px 26px -16px rgba(29, 78, 216, 0.9);
}

.btn-app-primary:hover {
    background: var(--primary-hover);
}

.btn-app-ghost {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-app-ghost:hover {
    border-color: var(--primary-color);
}

.btn-app-light {
    background: #ffffff;
    color: var(--secondary-color);
    box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.6);
}

.btn-app-light:hover {
    color: var(--primary-color);
}

.btn-app-sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
}

.hero-glow {
    position: absolute;
    inset-inline-start: -12%;
    top: -22%;
    width: 58rem;
    height: 58rem;
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.16), rgba(29, 78, 216, 0) 62%);
    pointer-events: none;
}

.hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.hero-float {
    position: absolute;
    inset-inline-end: 1rem;
    bottom: -1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-float i {
    color: var(--accent-green);
}

.app-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.3rem;
}

.feature-icon.icon-blue {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.feature-icon.icon-green {
    background: var(--accent-green-soft);
    color: var(--accent-green);
}

.feature-icon.icon-amber {
    background: var(--accent-amber-soft);
    color: var(--accent-amber-text);
}

.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: var(--accent-green-soft);
    color: var(--accent-green);
    font-size: 0.95rem;
}

.qr-panel {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-soft) 100%);
    box-shadow: var(--shadow-card);
}

.qr-frame {
    display: inline-flex;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.link-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
    background: var(--surface-muted);
}

.link-box .link-text {
    flex: 1;
    direction: ltr;
    text-align: left;
    word-break: break-all;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .qr-panel {
        padding: 3rem;
    }

    .link-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer {
    margin-top: 2rem;
    background: var(--secondary-color);
    color: #c8d6f5;
}

.footer-link {
    color: #c8d6f5;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.install-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-soft);
    color: #ffffff;
}

.install-hero h2,
.install-hero h3 {
    color: #ffffff;
}

.install-hero .section-eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.install-hero .install-lead {
    color: rgba(255, 255, 255, 0.9);
}

.btn-app-outline-light {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-app-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.install-hint {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.92rem;
}

.install-hint[hidden] {
    display: none;
}

.install-shot {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 28px 55px -30px rgba(0, 0, 0, 0.8);
}

.install-shot img {
    display: block;
    width: 100%;
}

.install-shot figcaption {
    padding: 0.7rem 1rem;
    background: #ffffff;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

.install-prompt {
    position: fixed;
    inset-inline: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 55px -22px rgba(15, 44, 107, 0.6);
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.install-prompt[hidden] {
    display: none;
}

.install-prompt.is-open {
    opacity: 1;
    transform: none;
}

.install-prompt-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.install-prompt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.install-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.install-prompt-hint {
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.install-prompt-hint[hidden] {
    display: none;
}

@media (min-width: 640px) {
    .install-hero {
        padding: 3rem;
    }
}

@media (min-width: 768px) {
    .install-prompt {
        inset-inline-start: auto;
        inset-inline-end: 1.5rem;
        bottom: 1.5rem;
        width: 25rem;
    }
}