/* Shared theme for the deep-link pages (research fallback, TipTraQ
   activation): white page, TipTraQ teal. */
:root {
    --primary: #3abfc2;
    --secondary: #f1fafa;
    --text: #4d4d4d;
    --text-muted: #6b6b6b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: white;
    color: var(--text);
}

.container {
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

/* App icon above the TipTraQ wordmark. */
.brand {
    margin-bottom: 2rem;
}

.app-icon {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* The wordmark is wide: fix the height, keep its aspect ratio. */
.logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
}

p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

button {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    border: 2px solid var(--primary);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button:active {
    transform: scale(0.97);
}

.primary {
    background: var(--primary);
    color: white;
}

.secondary {
    background: var(--secondary);
    color: var(--primary);
}

.hidden {
    display: none !important;
}

.loader {
    border: 4px solid var(--secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
