/* BIG Launcher - Accessibility & Custom Styles */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #2563eb;
    color: #ffffff;
    padding: 12px 24px;
    z-index: 10000;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    top: 0;
}

/* Focus indicators - 3px visible outline on all interactive elements */
*:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Minimum touch target size */
a, button, [role="button"], input, select, textarea, summary {
    min-height: 44px;
    min-width: 44px;
}

/* Inline links don't need min dimensions */
p a, li a, td a, span a, .prose a {
    min-height: auto;
    min-width: auto;
}

/* Reduced motion - respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Base body text size for seniors */
html {
    font-size: 18px;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* FAQ accordion styling */
details summary {
    cursor: pointer;
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}
details .chevron-rotate { transition: transform 0.2s ease; }
details[open] .chevron-rotate { transform: rotate(180deg); }

/* Language picker modal */
.lang-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.lang-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.lang-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lang-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .lang-modal-backdrop,
    .lang-modal {
        transition: none !important;
    }
}

/* Nav glass morphism */
.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Phone screenshot carousel */
#phone-carousel img {
    transition: opacity 0.7s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
    #phone-carousel img {
        transition: none;
    }
}

/* Phone bezel frame */
.phone-bezel {
    border: 3px solid #1f2937;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #000;
    padding: 3px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.phone-bezel img {
    border-radius: 0.375rem;
}

/* Mobile horizontal screenshot strip */
.screenshot-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}
.screenshot-strip > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}
.screenshot-strip::-webkit-scrollbar {
    height: 4px;
}
.screenshot-strip::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}
.screenshot-strip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

/* App card accent stripes */
.app-card-blue { border-left: 4px solid #2563eb; }
.app-card-green { border-left: 4px solid #059669; }
.app-card-orange { border-left: 4px solid #ea580c; }
.app-card-rose { border-left: 4px solid #e11d48; }
.app-card-violet { border-left: 4px solid #7c3aed; }

/* Print styles */
@media print {
    nav, footer, .skip-link, .lang-modal, .lang-modal-backdrop, .mobile-nav-overlay {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
}

/* Help video watch pages */
.help-video-page .video-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2rem;
    color: #64748b;
    font-size: .875rem;
}
.help-video-page .video-breadcrumb a,
.help-video-page .video-breadcrumb span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.help-video-page .help-video-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
    gap: 2.25rem;
    align-items: center;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
.help-video-page .help-video-hero-copy {
    max-width: 36rem;
}
.help-video-page .help-video-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) 340px;
    gap: 2.5rem;
    align-items: start;
    justify-content: center;
}
.help-video-page .video-shell {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45), 0 12px 28px -20px rgba(37, 99, 235, 0.35);
}
.help-video-page .video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #020617;
}
.help-video-page .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.help-video-page .video-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}
.help-video-page .video-actions p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.45;
}
.help-video-page .youtube-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.05rem;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: .95rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 14px 28px -18px rgba(220, 38, 38, .7);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.help-video-page .youtube-button:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -18px rgba(220, 38, 38, .85);
}
.help-video-page .guide-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 16px 40px -30px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}
.help-video-page .guide-card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 65%);
    border-bottom: 1px solid #e5e7eb;
}
.help-video-page .guide-card-header h2 {
    margin: 0 0 .35rem;
    color: #1e293b;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
}
.help-video-page .guide-card-header p {
    margin: 0;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.55;
}
.help-video-page .guide-icon,
.help-video-page .side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .9rem;
    background: #dbeafe;
    color: #2563eb;
    flex-shrink: 0;
}
.help-video-page .side-icon-red {
    background: #fee2e2;
    color: #dc2626;
}
.help-video-page .video-guide {
    padding: 1.75rem;
    max-width: 720px;
    color: #334155;
    line-height: 1.75;
}
.help-video-page .video-guide > *:first-child {
    margin-top: 0 !important;
}
.help-video-page .video-guide h2 {
    position: relative;
    margin: 2rem 0 1rem;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb;
    color: #1e293b;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 850;
}
.help-video-page .video-guide h3 {
    margin: 1.5rem 0 .7rem;
    color: #1e293b;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
}
.help-video-page .video-guide p {
    margin: .85rem 0;
    color: #475569;
}
.help-video-page .video-guide p:has(> em:first-child) {
    padding: 1rem 1.1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    color: #9a3412;
}
.help-video-page .video-guide p:has(> em:first-child) em {
    display: inline;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    font-style: normal;
}
.help-video-page .video-guide p:has(> em:first-child) strong {
    color: inherit;
}
.help-video-page .video-guide p em {
    display: block;
    padding: 1rem 1.1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    color: #9a3412;
    font-style: normal;
}
.help-video-page .video-guide ul,
.help-video-page .video-guide ol {
    margin: .85rem 0 1.25rem;
    padding: 0;
    list-style: none;
}
.help-video-page .video-guide li {
    position: relative;
    margin: .65rem 0;
    padding: .85rem 1rem .85rem 2.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    color: #475569;
}
.help-video-page .video-guide li::before {
    content: "✓";
    position: absolute;
    left: .9rem;
    top: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .8rem;
    font-weight: 800;
}
[dir="rtl"] .help-video-page .video-guide li,
html[dir="rtl"] .help-video-page .video-guide li {
    padding: .85rem 2.75rem .85rem 1rem;
    text-align: right;
}
[dir="rtl"] .help-video-page .video-guide li::before,
html[dir="rtl"] .help-video-page .video-guide li::before {
    left: auto;
    right: .9rem;
}
.help-video-page .video-guide strong {
    color: #1e293b;
    font-weight: 800;
}
.help-video-page .help-video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.help-video-page .side-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 1.35rem;
    box-shadow: 0 12px 34px -28px rgba(15, 23, 42, 0.4);
}
.help-video-page .side-card-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
    border-color: #bfdbfe;
}
.help-video-page .side-card-cta {
    background: #f8fafc;
}
.help-video-page .side-card h2 {
    margin: .9rem 0 .6rem;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
}
.help-video-page .side-card p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.6;
}
.help-video-page .side-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #2563eb;
    font-weight: 750;
}
.help-video-page .related-video-link {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .8rem;
    border-radius: .95rem;
    background: #f8fafc;
    color: #475569;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.help-video-page .related-video-link span {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: .1rem;
}
.help-video-page .related-video-link strong {
    font-size: .85rem;
    line-height: 1.45;
    font-weight: 650;
}
.help-video-page .related-video-link:hover {
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
}
@media (max-width: 1024px) {
    .help-video-page .help-video-hero-grid,
    .help-video-page .help-video-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .help-video-page .help-video-hero-copy {
        max-width: 48rem;
    }
}
@media (max-width: 640px) {
    .help-video-page .video-guide,
    .help-video-page .guide-card-header {
        padding: 1.15rem;
    }
    .help-video-page .video-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .help-video-page .youtube-button {
        width: 100%;
    }
    .help-video-page .video-guide h2 {
        font-size: 1.18rem;
        padding: .9rem;
    }
    .help-video-page .video-guide li {
        padding-right: .85rem;
    }
}

/* video-layout3 sizing */
/* video-layout4 sizing */
/* video-layout5 centered hero */
/* video-layout6 requested CTA/16x9/sidebar cleanup */
