:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e3a5f;
    --color-bg: #1e3a5f;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #1f2937;
}

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-top: env(safe-area-inset-top, 16px);
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.landing-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    padding: 32px 24px;
    text-align: center;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 16px;
    border-radius: 12px;
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-primary-dark);
}

.brand p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.4;
}

.actions {
    margin-top: 28px;
}

.btn-primary-custom,
.btn-secondary-custom,
.btn-ghost {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary-custom {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary-custom:hover:not(:disabled) { background: #1d4ed8; }
.btn-primary-custom:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary-custom {
    background: #e5e7eb;
    color: #1f2937;
    margin-top: 12px;
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px dashed var(--color-primary);
    padding: 12px;
    font-size: 0.95rem;
}

.hint {
    margin: 14px 0 0;
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.4;
}

.scanner {
    margin-top: 20px;
}
.scanner.hidden { display: none; }
.scanner video {
    width: 100%;
    max-height: 320px;
    background: #000;
    border-radius: 12px;
    object-fit: cover;
}
.scanner-status {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    min-height: 1.2em;
}

.install-hint {
    margin-top: 20px;
}
.install-hint.hidden { display: none; }

.landing-footer {
    margin-top: 28px;
    color: #9ca3af;
}
