/* ============================================
   NEON — Single-screen landing
   Dark · Roboto Mono · Style Guide v1
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors — Dark (default) */
    --bg: #000000;
    --surface: #121212;
    --surface-alt: #1A1A1A;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.70);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --accent: #007AFF;
    --accent-hover: #0A84FF;
    --success: #34C759;
    --danger: #FF3B30;
    --neon-cash: #FFD700;
    --neon-cash-subtle: rgba(255, 215, 0, 0.12);
    --accent-glow: rgba(255, 215, 0, 0.25);
    --border: rgba(255, 255, 255, 0.10);
    --overlay: rgba(0, 0, 0, 0.60);

    /* Typography */
    --font: 'Roboto Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radii */
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 20px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-phone: 0 20px 60px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* --- Light theme overrides --- */
[data-theme="light"] {
    --bg: #F2F2F7;
    --surface: #FFFFFF;
    --surface-alt: #E8E8ED;
    --text: #000000;
    --text-secondary: rgba(0, 0, 0, 0.60);
    --text-tertiary: rgba(0, 0, 0, 0.38);
    --accent: #0060D0;
    --accent-hover: #004BA0;
    --success: #0F7530;
    --danger: #C12727;
    --neon-cash: #0060D0;
    --neon-cash-subtle: rgba(0, 96, 208, 0.10);
    --accent-glow: rgba(0, 96, 208, 0.25);
    --border: rgba(0, 0, 0, 0.10);
    --overlay: rgba(0, 0, 0, 0.40);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-phone: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* --- Theme transition (scoped to key elements) --- */
html,
body,
.modal,
.nav {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* no scrollbar, no page scroll */
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.accent {
    color: var(--neon-cash);
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    padding: 1.2rem 2.5rem;
    display: flex;
    gap: 0.6rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--neon-cash);
    color: #000000;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-m);
    cursor: pointer;
    min-height: 44px;
    transition: box-shadow var(--duration-normal) ease, transform var(--duration-fast) ease;
}

.nav-cta .store-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.nav-cta-outline {
    background: transparent;
    color: var(--neon-cash);
    border: 1px solid var(--neon-cash);
}

.nav-cta:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.nav-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --- Modal overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2.5rem 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-fast);
}

.modal-close:hover {
    color: var(--neon-cash);
}

.modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.modal .label {
    margin-bottom: 0.6rem;
}

.modal-title {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.modal-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- Waitlist form (inside modal) --- */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.waitlist-input {
    flex: 1;
    font-family: var(--font);
    font-size: 16px;
    letter-spacing: 0.04em;
    text-align: left;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 16px;
    border-radius: var(--radius-m);
    outline: none;
    min-width: 0;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.waitlist-input::placeholder {
    color: var(--text-tertiary);
}

.waitlist-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.waitlist-btn {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    background: var(--neon-cash);
    color: #000000;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-m);
    min-height: 44px;
    transition: box-shadow var(--duration-normal) ease, transform var(--duration-fast) ease;
}

.waitlist-btn:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.waitlist-btn:active {
    transform: translateY(0);
}

.waitlist-btn:focus-visible {
    outline: 2px solid var(--neon-cash);
    outline-offset: 3px;
}

.waitlist-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.waitlist-success {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid var(--neon-cash) !important;
    color: var(--neon-cash) !important;
}

.waitlist-error {
    background: rgba(255, 59, 48, 0.15) !important;
    border: 1px solid var(--danger) !important;
    color: var(--danger) !important;
}

.email-warning {
    font-size: 0.68rem;
    color: var(--neon-cash);
    line-height: 1.5;
    margin-top: 0.7rem;
    display: none;
}

.email-warning.visible {
    display: block;
}

/* --- Background logo — behind the phone --- */
.bg-logo {
    position: absolute;
    bottom: calc(50% + 32vh);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(166px, 20.5vw, 290px);
    height: auto;
    mix-blend-mode: screen;
    /* black bg becomes invisible */
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    animation: neonPulse 4s ease-in-out infinite, neonFlicker 8s step-end infinite;
}

/* Neon sign glow pulse — breathes like real neon */
@keyframes neonPulse {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.2)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.1));
    }

    50% {
        filter: brightness(1.12) drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.3)) drop-shadow(0 0 60px rgba(255, 215, 0, 0.15));
    }
}

/* Occasional flicker — like real neon tubes */
@keyframes neonFlicker {

    0%,
    100% {
        opacity: 1;
    }

    4% {
        opacity: 0.85;
    }

    4.5% {
        opacity: 1;
    }

    5% {
        opacity: 0.9;
    }

    5.5% {
        opacity: 1;
    }

    52% {
        opacity: 1;
    }

    52.5% {
        opacity: 0.88;
    }

    53% {
        opacity: 1;
    }

    76% {
        opacity: 1;
    }

    76.3% {
        opacity: 0.92;
    }

    76.6% {
        opacity: 1;
    }

    76.9% {
        opacity: 0.87;
    }

    77.2% {
        opacity: 1;
    }
}

/* ==========================================
   Stage — the one and only screen
   ========================================== */
.stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
}

/* Subtle gold radial behind the phone — with pulse */
.stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.14;
    }
}

/* Particle canvas — full screen behind everything except background */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- Phone (center) --- */
.phone {
    position: relative;
    flex-shrink: 0;
    margin-top: 3rem;
    height: 82vh;
    max-height: 720px;
    aspect-ratio: 9 / 19.5;
    /* approximate phone ratio */
    z-index: 10;
    overflow: hidden;
}

.phone .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform, opacity;

    /* default: parked below */
    transform: translateY(100%);
    opacity: 0;
    filter: blur(10px);
}

.phone .slide.active {
    transform: translateY(0);
    opacity: 1;
    filter: none;
    /* none avoids GPU blur pipeline softness */
}

/* transition class toggled by JS */
.phone .slide.anim {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease,
        filter 0.5s ease;
}

/* --- Side columns --- */
.col {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    z-index: 5;
}

.col-left {
    text-align: right;
    padding-right: 3.5rem;
}

.col-right {
    text-align: left;
    padding-left: 3.5rem;
}

/* Panels — stacked, only .active visible */
.panel {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%) translateY(24px);
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
    transition: opacity 0.45s ease,
        transform 0.45s ease;
}

.panel.active {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
    pointer-events: auto;
}

.panel.exit-up {
    opacity: 0;
    transform: translateY(-50%) translateY(-24px);
}

.panel.exit-down {
    opacity: 0;
    transform: translateY(-50%) translateY(24px);
}

.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neon-cash);
    border: 1px solid var(--neon-cash);
    background: var(--neon-cash-subtle);
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.panel h2 {
    font-size: clamp(1.3rem, 1.9vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.panel p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* --- Dots --- */
.dots {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.65rem;
    z-index: 20;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all var(--duration-normal);
}

.dot.active {
    background: var(--neon-cash);
    border-color: var(--neon-cash);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: dotGlow 2s ease-in-out infinite;
}

@keyframes dotGlow {

    0%,
    100% {
        box-shadow: 0 0 8px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent);
    }
}

.dot:hover {
    border-color: var(--neon-cash);
}

.dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 50%;
}

/* --- Logo swap: dark/light --- */
.bg-logo-light { display: none; }
[data-theme="light"] .bg-logo-dark { display: none; }
[data-theme="light"] .bg-logo-light {
    display: block;
    mix-blend-mode: normal;
    animation: neonPulseBlue 4s ease-in-out infinite, neonFlicker 8s step-end infinite;
}

@keyframes neonPulseBlue {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(0, 96, 208, 0.4)) drop-shadow(0 0 20px rgba(0, 96, 208, 0.2)) drop-shadow(0 0 40px rgba(0, 96, 208, 0.1));
    }
    50% {
        filter: brightness(1.08) drop-shadow(0 0 12px rgba(0, 96, 208, 0.6)) drop-shadow(0 0 30px rgba(0, 96, 208, 0.3)) drop-shadow(0 0 60px rgba(0, 96, 208, 0.15));
    }
}

/* Light mode: gold buttons need white text on dark gold background */
[data-theme="light"] .nav-cta {
    color: #FFFFFF;
}

[data-theme="light"] .nav-cta-outline {
    color: var(--neon-cash);
    border-color: var(--neon-cash);
    background: transparent;
}

/* Light mode: modal overlay */
[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.50);
}

/* Light mode: waitlist button */
[data-theme="light"] .waitlist-btn {
    color: #FFFFFF;
}

[data-theme="light"] .stage::before {
    opacity: 0.12;
    background: radial-gradient(circle, rgba(0, 96, 208, 0.3) 0%, transparent 70%);
}

[data-theme="light"] .dot.active {
    box-shadow: 0 0 8px rgba(0, 96, 208, 0.4);
}

/* --- Theme toggle button --- */
.theme-toggle {
    position: fixed;
    top: 1.2rem;
    left: 1.5rem;
    z-index: 60;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--duration-fast), background-color var(--duration-fast), border-color var(--duration-fast);
}

.theme-toggle:hover {
    color: var(--neon-cash);
    border-color: var(--neon-cash);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Show sun icon in dark mode, moon icon in light mode */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* --- Footer links --- */
.footer-links {
    position: absolute;
    bottom: 0.8rem;
    right: 1.5rem;
    display: flex;
    gap: 1.5rem;
    z-index: 20;
}

.footer-links a {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
    color: var(--accent-hover);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Responsive --- */
@media (max-width: 1000px) {
    .col {
        width: 220px;
    }

    .col-left {
        padding-right: 2rem;
    }

    .col-right {
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {

    /* Unlock scrolling on mobile */
    html, body {
        height: auto;
        overflow: auto;
        overflow-x: hidden;
    }

    /* Stage: scrollable vertical flow */
    .stage {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 0 1rem 4rem; /* bottom padding for sticky nav */
        gap: 0;
    }

    /* Hide the radial glow on mobile (doesn't work well with scroll) */
    .stage::before {
        display: none;
    }

    /* Particle canvas — fixed so it stays behind everything while scrolling */
    .particle-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }

    /* Nav: sticky bottom bar */
    .nav {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.8rem 1.2rem;
        justify-content: center;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95) 30%);
    }

    [data-theme="light"] .nav {
        background: linear-gradient(transparent, rgba(242, 242, 247, 0.95) 30%);
    }

    .nav-cta {
        flex: 1;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.65rem;
    }

    /* Logo: relative flow, centered at top */
    .bg-logo {
        position: relative;
        bottom: auto;
        top: auto;
        left: auto;
        transform: none;
        width: clamp(140px, 40vw, 220px);
        margin: 1.5rem auto 1rem;
        z-index: 5;
        order: -2;
    }

    /* Title: below logo, above phone — fixed height prevents layout shift */
    .col-left {
        order: -1;
        width: 100%;
        text-align: center;
        height: 4.5rem;
        padding: 0 0.5rem 0.5rem;
        z-index: 15;
        position: relative;
        overflow: visible;
    }

    /* Phone carousel — use svh to avoid address-bar resize jump */
    .phone {
        height: 50svh;
        height: 50vh; /* fallback for older browsers */
        max-height: 480px;
        margin-top: 0;
        z-index: 10;
        touch-action: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    @supports (height: 1svh) {
        .phone {
            height: 50svh;
        }
    }

    /* Horizontal slides on mobile — use translate3d for GPU layer, no blur */
    .phone .slide {
        transform: translate3d(100%, 0, 0);
        filter: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .phone .slide.active {
        transform: translate3d(0, 0, 0);
        filter: none;
    }

    /* Override transition: transform only for smooth mobile perf */
    .phone .slide.anim {
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Swipe hint arrows — on .stage to avoid .phone overflow:hidden clipping */
    .stage::before,
    .stage::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 10px;
        height: 10px;
        border-top: 1.5px solid var(--accent);
        border-right: 1.5px solid var(--accent);
        opacity: 0.4;
        z-index: 20;
        pointer-events: none;
        animation: arrowPulse 2s ease-in-out infinite;
        display: block;
    }

    .stage::before {
        left: calc(50% - 170px);
        transform: translateY(-50%) rotate(-135deg);
        background: none;
        width: 10px;
        height: 10px;
    }

    .stage::after {
        right: calc(50% - 170px);
        transform: translateY(-50%) rotate(45deg);
    }

    /* Description: below phone — fixed height prevents layout shift */
    .col-right {
        padding: 0.8rem 1rem 0;
        width: 100%;
        text-align: center;
        height: 5rem;
        z-index: 15;
        position: relative;
        overflow: visible;
    }

    /* Panels: absolute inside fixed-height columns — no display:none layout shift */
    .col-left .panel,
    .col-right .panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .col-left .panel.active,
    .col-right .panel.active {
        opacity: 1;
        pointer-events: auto;
    }

    .col-left .panel.exit-up,
    .col-left .panel.exit-down,
    .col-right .panel.exit-up,
    .col-right .panel.exit-down {
        transform: none;
        opacity: 0;
    }

    .panel h2 {
        font-size: 1.1rem;
    }

    .panel p {
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-secondary);
    }

    .label {
        font-size: 10px;
        margin-bottom: 0.4rem;
    }

    /* Dots: in-flow below description */
    .dots {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        z-index: 20;
        margin: 0.8rem auto 0.4rem;
    }

    /* Footer links: in-flow below dots */
    .footer-links {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        right: auto;
        justify-content: center;
        z-index: 20;
        margin: 0 auto;
    }

    /* Modal: align to bottom on mobile */
    .modal-overlay {
        align-items: flex-end;
    }

    .modal {
        width: 100%;
        max-width: none;
        border-radius: 12px 12px 0 0;
        padding: 2rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.7rem 0.8rem;
    }

    .nav-cta {
        font-size: 0.6rem;
        padding: 0.6rem 0.6rem;
    }

    .phone {
        height: 45vh;
        max-height: 420px;
    }

    .panel h2 {
        font-size: 1rem;
    }

    .panel p {
        font-size: 13px;
    }
}

/* Arrow pulse for swipe hints */
@keyframes arrowPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

/* Tall phones (>900px height) — bigger phone mockup */
@media (max-width: 768px) and (min-height: 900px) {
    .phone {
        height: 55svh;
        max-height: 560px;
    }
}

/* --- Accessibility: Focus indicators --- */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

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

/* --- Screen reader only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Skip to content link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-s);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    z-index: 200;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}