/* ============================================================
   SKOOLTRACK ONBOARDING GUIDE - SIMPLE & CLEAN
   ============================================================ */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-soft: #f0fdfa;
    --accent: #facc15;
    --dark: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.5;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Auth Gate */
.auth-gate {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 999;
}

.auth-box {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.auth-box h2 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.auth-box p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-box input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    outline: none;
    font-family: inherit;
    text-align: center;
}

.auth-box input:focus {
    border-color: var(--primary);
}

.auth-err {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.btn-main {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-main:hover {
    background: var(--primary-dark);
}

/* Header */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .logo {
    height: 32px;
}

.brand .tag {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.btn-download-all {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-download-all:hover {
    background: var(--primary-dark);
}

/* Main Content */
.main-content {
    padding: 2.5rem 1.25rem 4rem;
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
}

.intro h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.intro .subtitle {
    color: var(--muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 1.25rem;
}

.order-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
}

/* Step Cards */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.step-badge {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.step-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.file-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
}

.step-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-csv {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-csv:hover {
    background: var(--primary-dark);
}

.btn-sheet {
    background: var(--white);
    border: 1px solid #16a34a;
    color: #16a34a;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sheet:hover {
    background: #f0fdf4;
}

/* Help Box */
.help-box {
    background: #0f172a;
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.help-box strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

.help-box p {
    color: #94a3b8;
    font-size: 0.88rem;
}

.btn-wa {
    background: #25d366;
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-wa:hover {
    background: #1ebc59;
}

/* Footer */
.foot {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.82rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.foot code {
    background: #e2e8f0;
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--dark);
}

.foot a {
    color: var(--muted);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .step-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .step-links {
        width: 100%;
        margin-top: 6px;
    }
    .btn-csv, .btn-sheet {
        flex: 1;
        justify-content: center;
    }
    .topbar .container {
        flex-direction: column;
        gap: 10px;
    }
}
