/* ==========================================================================
   SouperSchool — landing page styles
   ========================================================================== */

:root {
    --ink: #101828;
    --ink-soft: #475467;
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --brand-soft: #eef2ff;
    --accent: #10b981;
    --bg: #ffffff;
    --bg-tint: #f8fafc;
    --dark: #0f1226;
    --dark-2: #181c38;
    --line: #e4e7ec;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #7c3aed);
    color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand.small .brand-mark { width: 30px; height: 30px; font-size: 1rem; }

.main-nav .nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color .15s; }
.main-nav a:hover { color: var(--brand); }
.nav-cta {
    background: var(--brand); color: #fff !important;
    padding: 9px 18px; border-radius: 10px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-dark); }

.nav-login {
    border: 1.5px solid var(--line);
    padding: 8px 16px; border-radius: 10px;
    color: var(--ink) !important; font-weight: 600 !important;
}
.nav-login:hover { border-color: var(--brand); color: var(--brand) !important; }

.lang-toggle {
    border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
    border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 0.85rem;
    cursor: pointer; transition: all .15s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
    display: inline-block; text-decoration: none; text-align: center;
    font-weight: 600; font-size: 1rem; border-radius: 12px;
    padding: 13px 26px; cursor: pointer; border: none; transition: all .18s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { display: block; width: 100%; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(1000px 500px at 80% -10%, rgba(124, 58, 237, 0.12), transparent),
        radial-gradient(800px 400px at 10% 10%, rgba(79, 70, 229, 0.10), transparent),
        var(--bg);
    padding: 84px 0 90px;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.hero-badge {
    display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
    font-weight: 600; font-size: 0.85rem; border-radius: 999px;
    padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.hero-sub { margin: 20px 0 30px; color: var(--ink-soft); font-size: 1.13rem; max-width: 34rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-points { list-style: none; margin-top: 28px; display: grid; gap: 9px; }
.hero-points li { color: var(--ink-soft); font-size: 0.95rem; padding-left: 26px; position: relative; }
.hero-points li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--accent); font-weight: 800;
}

/* hero mock dashboard */
.hero-visual { display: flex; justify-content: center; }
.mock-window {
    width: 100%; max-width: 480px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
    overflow: hidden; transform: rotate(1.5deg);
}
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-bar span:first-child { background: #fda4af; }
.mock-bar span:nth-child(2) { background: #fcd34d; }
.mock-bar span:nth-child(3) { background: #86efac; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { background: var(--dark); padding: 18px 14px; display: grid; gap: 14px; align-content: start; }
.mock-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7c3aed); margin-bottom: 6px; }
.mock-line { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }
.mock-line.w50 { width: 50%; } .mock-line.w60 { width: 60%; }
.mock-line.w70 { width: 70%; } .mock-line.w80 { width: 80%; }
.mock-main { padding: 18px; display: grid; gap: 16px; align-content: start; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card {
    background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 10px; text-align: center;
}
.mock-card b { display: block; font-size: 1.25rem; color: var(--brand); }
.mock-card i { font-style: normal; font-size: 0.7rem; color: var(--ink-soft); }
.mock-chart {
    display: flex; align-items: flex-end; gap: 9px; height: 130px;
    background: var(--bg-tint); border: 1px solid var(--line);
    border-radius: 10px; padding: 14px;
}
.mock-chart span {
    flex: 1; border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #7c3aed, var(--brand));
    animation: grow 1.1s ease both;
}
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-title {
    text-align: center; font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800; letter-spacing: -0.02em;
}
.section-title.left { text-align: left; }
.section-sub {
    text-align: center; color: var(--ink-soft); max-width: 40rem;
    margin: 14px auto 0; font-size: 1.05rem;
}

/* ---------- features ---------- */
.features-grid {
    margin-top: 52px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; transition: all .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- demo ---------- */
.section-dark {
    background:
        radial-gradient(900px 400px at 50% -20%, rgba(124, 58, 237, 0.25), transparent),
        var(--dark);
    color: #fff;
}
.section-dark .section-sub { color: #b6bad1; }
.demo-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo-card {
    background: var(--dark-2); border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius); padding: 30px 26px; text-align: center;
    transition: all .2s;
}
.demo-card:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, 0.5); }
.demo-icon { font-size: 2.4rem; margin-bottom: 14px; }
.demo-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.demo-card p { color: #b6bad1; font-size: 0.93rem; margin-bottom: 22px; min-height: 4.2em; }
.demo-note { text-align: center; margin-top: 30px; color: #8a8fb0; font-size: 0.9rem; }

/* ---------- steps ---------- */
.steps { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 24px 26px;
}
.step-num {
    position: absolute; top: -18px; left: 24px;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
.step h3 { margin: 8px 0 8px; font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- pricing ---------- */
.pricing-card {
    max-width: 460px; margin: 52px auto 0; background: #fff;
    border: 2px solid var(--brand); border-radius: 20px;
    padding: 38px 34px; box-shadow: 0 24px 60px rgba(79, 70, 229, 0.16);
}
.pricing-head { text-align: center; margin-bottom: 26px; }
.pricing-plan {
    display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
    font-weight: 700; font-size: 0.85rem; border-radius: 999px;
    padding: 5px 14px; margin-bottom: 16px;
}
.pricing-amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pricing-amount .currency { font-size: 1.8rem; vertical-align: super; }
.pricing-amount .per { font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); }
.pricing-list { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.pricing-list li { padding-left: 30px; position: relative; font-size: 0.97rem; }
.pricing-list li::before {
    content: '✓'; position: absolute; left: 0;
    width: 20px; height: 20px; border-radius: 50%;
    background: #d1fae5; color: #047857; font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; top: 3px;
}

/* ---------- signup ---------- */
.signup-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.signup-copy p { color: var(--ink-soft); margin-top: 16px; }
.signup-copy .hero-points { margin-top: 24px; }

.signup-form-box {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 34px 30px; box-shadow: var(--shadow);
}
#signup-form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 16px 0 6px; }
#signup-form label:first-child { margin-top: 0; }
#signup-form input, #signup-form select, #signup-form textarea {
    width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
    padding: 11px 14px; font-size: 0.97rem; font-family: inherit;
    transition: border-color .15s; background: #fff; color: var(--ink);
}
#signup-form input:focus, #signup-form select:focus, #signup-form textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
#signup-form textarea { resize: vertical; }
#signup-form .btn { margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin-top: 14px; text-align: center; color: var(--ink-soft); font-size: 0.84rem; }

/* honeypot — visually gone, still in the DOM for bots */
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }

.form-message { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-weight: 600; font-size: 0.95rem; }
.form-message.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #b6bad1; padding: 54px 0 0; }
.footer-inner {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px;
    padding-bottom: 38px; border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-footer .brand-name { color: #fff; }
.footer-tag { margin-top: 12px; font-size: 0.92rem; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: #b6bad1; text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: #fff; }
.footer-contact a { color: #c7d2fe; text-decoration: none; }
.footer-contact p { margin-bottom: 8px; font-size: 0.93rem; }
.copyright { padding: 20px 24px; text-align: center; font-size: 0.85rem; color: #8a8fb0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-grid, .steps { grid-template-columns: 1fr; }
    .signup-wrap { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 680px) {
    .menu-toggle { display: block; }
    .main-nav .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 18px 24px; gap: 16px;
        align-items: flex-start;
    }
    .main-nav .nav-links.open { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 62px 0; }
    .hero { padding: 56px 0 64px; }
}

/* ==========================================================================
   Sign-in page (admin_login.php)
   Same vocabulary as the rest of this file — tinted section, white card,
   --radius corners, --line borders — so signing in does not feel like
   leaving the site.
   ========================================================================== */

.auth-section {
    background: var(--bg-tint);
    /* Fill the viewport minus the 68px header so the footer sits at the
       bottom on a tall screen instead of floating mid-page. */
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    padding: 64px 0;
}

.auth-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.auth-heading {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.auth-intro .auth-sub {
    color: var(--ink-soft);
    margin-top: 14px;
    max-width: 46ch;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 32px;
}

.auth-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-card-sub {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 5px 0 24px;
}

.auth-field { margin-bottom: 17px; }

.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ink);
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}

.auth-field input::placeholder { color: #98a2b3; }

.auth-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

/* The reveal button sits inside the field so the input keeps its full width. */
.auth-password { position: relative; }
.auth-password input { padding-right: 78px; }

.auth-reveal {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}

.auth-reveal:hover { color: var(--brand); background: var(--brand-soft); }

.auth-form .btn-block { margin-top: 6px; }

.auth-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    font-size: 0.88rem;
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.auth-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.auth-foot a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.auth-foot a:hover { text-decoration: underline; }

@media (max-width: 960px) {
    /* The card comes first: someone opening this page came to sign in,
       not to read the pitch. */
    .auth-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        max-width: 440px;
        margin: 0 auto;
    }
    .auth-intro { order: 2; text-align: center; }
    .auth-card  { order: 1; }
    .auth-intro .auth-sub { margin-left: auto; margin-right: auto; }
    .auth-intro .hero-points { display: none; }
}

@media (max-width: 680px) {
    .auth-section { padding: 40px 0; }
    .auth-card { padding: 28px 22px; }
}

/* Field hint under an input, and the neutral counterpart to .auth-error. */
.auth-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.auth-notice {
    background: var(--brand-soft);
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-size: 0.86rem;
    line-height: 1.55;
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.auth-error div + div { margin-top: 5px; }

/* ---- school picker and the "signing in to X" banner ---- */

.auth-school {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--brand-soft);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 10px 13px;
    margin-bottom: 20px;
}

.auth-school-name { font-weight: 600; font-size: 0.9rem; color: #3730a3; }
.auth-school-city { display: block; font-size: 0.78rem; color: var(--ink-soft); }

.auth-school-change {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}
.auth-school-change:hover { text-decoration: underline; }

.school-results {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.school-results li + li { border-top: 1px solid var(--line); }

.school-results a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: background-color .12s;
}

.school-results a:hover { background: var(--brand-soft); }

.school-results .school-name { display: block; font-weight: 600; font-size: 0.92rem; }
.school-results .school-city { display: block; font-size: 0.79rem; color: var(--ink-soft); }

.school-empty {
    padding: 12px;
    font-size: 0.84rem;
    color: var(--ink-soft);
    font-style: italic;
}
