/* The phone page follows the phone's light or dark setting (ENG-2470 3.9). System fonts only: nothing from third parties. */
:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --fg: #111418;
    --muted: #5d6570;
    --accent: #1f4fd1;
    --accent-fg: #ffffff;
    --border: #d9dde3;
    --card: #f5f6f8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --fg: #eef0f3;
        --muted: #9aa3ad;
        --accent: #6b93ff;
        --accent-fg: #0f1115;
        --border: #2c313a;
        --card: #181b21;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 0;
    gap: 16px;
}

.logo {
    display: block;
    width: 160px;
    height: 24px;
    background-color: var(--fg);
    -webkit-mask: url('/logo.svg') center / contain no-repeat;
    mask: url('/logo.svg') center / contain no-repeat;
    margin-bottom: 8px;
}

.view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.view[hidden] {
    display: none;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
}

p {
    margin: 0;
}

strong {
    overflow-wrap: anywhere;
}

.small {
    font-size: 0.875rem;
}

.muted {
    color: var(--muted);
}

button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-fg);
    font: inherit;
    font-weight: 600;
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    margin-top: 8px;
    cursor: pointer;
}

button:active {
    opacity: 0.85;
}

.steps {
    width: 100%;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.steps ol {
    margin: 0;
    padding-left: 20px;
}

.steps li + li {
    margin-top: 6px;
}

/* app.js shows only the steps of the phone it detects; both when it cannot tell */
body.platform-ios .steps.android,
body.platform-android .steps.ios {
    display: none;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 2.5s;
    }
}

footer {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px 0 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
}
