:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #eef2f7;
    color: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.14), transparent 34%),
        linear-gradient(315deg, rgba(245, 158, 11, 0.16), transparent 34%),
        #eef2f7;
}

.page-shell {
    min-height: 100vh;
    padding: 18px;
}

.hero {
    width: min(1120px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 46%, #e0f2fe 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px clamp(20px, 5vw, 46px);
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand span:first-child {
    color: #0f4c81;
}

.brand span:last-child {
    color: #6cb4ee;
}

.reward-pill {
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 900;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: clamp(28px, 6vw, 74px);
    align-items: center;
    padding: clamp(24px, 6vw, 72px) clamp(20px, 6vw, 70px) 64px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #0f4c81;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

h1 {
    margin: 0;
    max-width: 660px;
    color: #0f172a;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.94;
    letter-spacing: 0;
    font-weight: 950;
}

.lead {
    margin: 22px 0 0;
    max-width: 570px;
    color: #475569;
    font-size: 18px;
    line-height: 1.58;
    font-weight: 650;
}

.steps-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
    margin-top: 32px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    padding: 12px;
    color: #64748b;
}

.step-item span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
}

.step-item strong {
    font-size: 12px;
    font-weight: 900;
}

.step-item.active {
    border-color: #38bdf8;
    color: #0f4c81;
    background: #eff6ff;
}

.step-item.active span {
    background: #0f4c81;
    color: #fff;
}

.proof-row {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 560px;
    margin-top: 28px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack div {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0f4c81;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.avatar-stack div:first-child {
    margin-left: 0;
    background: #b45309;
}

.avatar-stack div:last-child {
    background: #047857;
}

.proof-row p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
}

.flow-panel {
    width: 100%;
}

.flow-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    padding: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #f59e0b;
    color: #fff;
    font-size: 28px;
    font-weight: 950;
}

.blue-icon {
    background: #0f4c81;
}

.green-icon {
    background: #047857;
}

.red-icon {
    background: #dc2626;
}

.flow-card h2 {
    margin: 18px 0 8px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 950;
}

.flow-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

button,
.store-actions a {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

#google-btn,
#setup-submit-btn {
    background: #0f4c81;
    color: #fff;
}

#apple-btn {
    background: #111827;
    color: #fff;
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.status-text {
    min-height: 18px;
    margin-top: 12px !important;
    color: #64748b;
    font-size: 13px !important;
    font-weight: 750 !important;
}

.setup-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.setup-form input,
.setup-form select {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    padding: 13px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    outline: none;
}

.setup-form input:focus,
.setup-form select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.college-field {
    display: grid;
    gap: 8px;
}

.field-label {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.college-dropdown-wrapper {
    position: relative;
}

.college-search-box {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
    padding: 0 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.college-search-box.active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.college-search-box.hidden {
    display: none;
}

.search-icon,
.chevron-icon {
    color: #64748b;
    font-weight: 950;
}

.college-search-input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    padding: 13px 0 !important;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
    box-shadow: none !important;
}

.college-search-input:focus {
    outline: none;
}

.college-dropdown-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: min(340px, 48vh);
    overflow-y: auto;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.college-dropdown-list.visible {
    display: block;
}

.loading-state,
.no-results-message {
    padding: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.college-option {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.college-option:hover {
    background: #eff6ff;
}

.college-option-name {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.3;
}

.college-option-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.other-option {
    background: #fefce8;
}

.search-highlight {
    background: #fef08a;
    border-radius: 4px;
}

.selected-college-display {
    display: none;
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
    padding: 12px;
}

.selected-college-display.visible {
    display: grid;
}

.check-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: #047857;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
}

.college-info {
    min-width: 0;
}

.college-name-text {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
}

.college-university-text {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    margin-top: 3px;
}

.clear-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 11px;
    background: #fff;
    color: #64748b;
    font-size: 20px;
}

.other-college-manual {
    display: none;
}

.other-college-manual.visible {
    display: block;
}

.other-college-manual input {
    width: 100%;
}

.install-card {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

.store-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.store-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    min-height: 72px;
    background: #111827;
    color: #fff;
}

.store-actions a:first-child {
    background: #0f4c81;
}

.store-actions span {
    font-size: 10px;
    font-weight: 750;
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.store-actions strong {
    font-size: 18px;
    line-height: 1;
}

.activation-note {
    margin-top: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 14px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(1040px, calc(100% - 36px));
    margin: -36px auto 28px;
    position: relative;
}

.feature-band div {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.feature-band span,
.feature-band strong {
    display: block;
}

.feature-band span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-band strong {
    margin-top: 7px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.12;
}

.hidden {
    display: none;
}

@media (max-width: 820px) {
    .page-shell {
        padding: 0;
    }

    .hero {
        min-height: auto;
        border-radius: 0 0 28px 28px;
    }

    .topbar {
        padding: 18px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 26px 18px 84px;
    }

    h1 {
        font-size: 44px;
    }

    .lead {
        font-size: 16px;
    }

    .steps-strip,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .form-grid.two-col {
        grid-template-columns: 1fr;
    }

    .feature-band {
        margin-top: -48px;
    }
}
