/* ================================================================
   landing.css — Fikra Smart · fikrasmart.com
   Warm, professional marketing page
   (self-contained light palette — independent of app themes)
   ================================================================ */

/* ── Page Shell ── */
#landing-page {
    /* Scoped palette */
    --lpx-bg: #f8f6f1;
    --lpx-ink: #1d2235;
    --lpx-muted: #5d6378;
    --lpx-faint: #8a8fa3;
    --lpx-surface: #ffffff;
    --lpx-border: #e7e3d8;
    --lpx-primary: #4f46e5;
    --lpx-primary-dark: #4338ca;
    --lpx-emerald: #0e9f6e;
    --lpx-shadow: 0 14px 40px -14px rgba(29, 34, 53, 0.14);

    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    /* Soft glows live in the page background (scrolls with content via
       background-attachment: local) — no section-clipped glow divs,
       so there is no color step under the sticky header. */
    background:
        radial-gradient(820px 560px at 14% -120px, rgba(99, 102, 241, 0.09), transparent 65%),
        radial-gradient(760px 520px at 86% 160px, rgba(16, 185, 129, 0.07), transparent 65%),
        var(--lpx-bg);
    background-attachment: local, local, scroll;
    color: var(--lpx-ink);
    z-index: var(--z-landing);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Hand-drawn app sketch as a faint paper watermark behind the hero.
   z-index:-1 paints above the page gradient but below all content, and the
   solid content sections lower down naturally cover it. */
#landing-page::before {
    content: "";
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../assets/landing-sketch.png") no-repeat center center;
    background-size: cover;
    opacity: 0.16;
    pointer-events: none;
    z-index: -1;
}

#landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* #landing-page is a 100vh flex column — without this, sections with
   overflow:hidden get flex-shrunk to fit the viewport and clip. */
#landing-page > * {
    flex-shrink: 0;
}

/* ── Shared Container ── */
.lp-container {
    max-width: 1140px;
    width: 92%;
    margin: 0 auto;
}

/* ================================================================
   HEADER — floating pill nav
   ================================================================ */
/* Theme files repaint .landing-header — the pill look lives on
   .header-inner, so force the outer strip transparent always. */
#landing-page .landing-header {
    position: sticky;
    top: 16px;
    z-index: var(--z-floating);
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-top: 16px;
    height: auto !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    pointer-events: none; /* let clicks pass around the pill */
}

.header-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1020px;
    height: 62px;
    padding: 0 10px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--lpx-border);
    border-radius: 999px;
    box-shadow: 0 10px 32px -14px rgba(29, 34, 53, 0.18);
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--lpx-ink);
    letter-spacing: -0.02em;
}

.logo-accent { color: var(--lpx-primary); }

/* Nav links */
.header-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--lpx-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.header-nav a:hover { color: var(--lpx-primary); }

/* Header buttons (reset dashboard.css .header-actions leakage) */
#landing-page .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-top: none;
    padding-top: 0;
    width: auto;
}

/* ================================================================
   BUTTONS — pill shaped
   ================================================================ */
.lp-btn-ghost {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--lpx-ink);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lp-btn-ghost:hover {
    background: rgba(29, 34, 53, 0.06);
    color: var(--lpx-primary);
}

.lp-btn-primary {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: var(--lpx-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 22px -8px rgba(79, 70, 229, 0.55);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--lpx-primary-dark);
    box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.6);
}

.lp-btn-outline {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--lpx-border);
    background: var(--lpx-surface);
    color: var(--lpx-ink);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 4px 14px -8px rgba(29, 34, 53, 0.18);
}

.lp-btn-outline:hover {
    border-color: var(--lpx-primary);
    color: var(--lpx-primary);
    transform: translateY(-2px);
}

.lp-btn-lg {
    padding: 16px 34px;
    font-size: 1.02rem;
}

/* Light buttons (for dark CTA panel) */
.lp-btn-light {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: var(--lpx-ink);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.45);
}

.lp-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.5);
}

.lp-btn-outline-light {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.lp-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   HERO — centered
   ================================================================ */
.lp-hero {
    position: relative;
    padding: 84px 0 90px;
    overflow: hidden;
}

.lp-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Anchor targets stop below the floating pill nav */
.lp-features,
.lp-about,
.lp-hero-downloads {
    scroll-margin-top: 110px;
}

/* Tiny sparkle accents */
.lp-spark {
    position: absolute;
    width: 14px; height: 14px;
    pointer-events: none;
    background: currentColor;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.5;
}

.lp-spark.s1 { color: #f0b429; top: 140px; left: 12%; transform: rotate(-12deg); }
.lp-spark.s2 { color: #6366f1; top: 110px; right: 14%; width: 10px; height: 10px; transform: rotate(18deg); }
.lp-spark.s3 { color: #f43f5e; bottom: 160px; left: 8%;  width: 9px;  height: 9px;  transform: rotate(8deg); opacity: 0.35; }

/* Announcement pill */
.lp-announce {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(14, 159, 110, 0.09);
    border: 1px solid rgba(14, 159, 110, 0.25);
    color: #067a54;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 30px;
}

.lp-announce-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lpx-emerald);
    animation: lpAnnouncePulse 2s ease-in-out infinite;
}

@keyframes lpAnnouncePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.35); }
    50%       { box-shadow: 0 0 0 6px rgba(14, 159, 110, 0); }
}

/* Hero title */
.lp-hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--lpx-ink);
    margin: 0 0 26px;
}

/* Highlighted keywords */
.lp-mark {
    display: inline-block;
    padding: 0.02em 0.22em 0.06em;
    border-radius: 0.32em;
    line-height: 1.05;
}

.lp-mark.indigo {
    background: linear-gradient(120deg, #e3e6ff, #d3d8ff);
    color: #3730a3;
    transform: rotate(-1.2deg);
}

.lp-mark.emerald {
    background: linear-gradient(120deg, #d6f4e6, #c2eeda);
    color: #066e4c;
    transform: rotate(1deg);
}

.lp-hero-desc {
    font-size: 1.12rem;
    color: var(--lpx-muted);
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 620px;
}

/* CTA buttons */
.lp-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 34px;
}

/* Squiggle accent */
.lp-squiggle {
    color: rgba(79, 70, 229, 0.4);
    margin-bottom: 18px;
    line-height: 0;
}

.lp-squiggle.small {
    color: rgba(240, 180, 41, 0.75);
    margin: 14px 0 0;
}

/* Trust line */
.lp-hero-meta {
    font-size: 0.85rem;
    color: var(--lpx-faint);
    font-weight: 600;
    letter-spacing: 0.015em;
    margin-bottom: 20px;
}

/* Personal contact link, shown right under the trust line in the hero */
.lp-hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--lpx-muted);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--lpx-border);
    background: var(--lpx-surface);
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lp-hero-contact:hover {
    color: var(--lpx-primary);
    border-color: var(--lpx-primary);
    transform: translateY(-1px);
}
.lp-hero-contact i { font-size: 0.75rem; }

/* Contact link + copy button, side by side */
.lp-hero-contact-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    max-width: 100%;
    flex-wrap: wrap;
}
.lp-hero-contact-row .lp-hero-contact { margin-bottom: 0; }
.lp-hero-copy {
    position: relative;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--lpx-border);
    background: var(--lpx-surface);
    color: var(--lpx-muted);
    display: inline-grid;
    place-items: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.lp-hero-copy:hover { color: var(--lpx-primary); border-color: var(--lpx-primary); transform: translateY(-1px); }
.lp-hero-copy:active { transform: scale(0.92); }
.lp-hero-copy.copied { color: #fff; background: #10b981; border-color: #10b981; }
.lp-hero-copy-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 4px 10px;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.lp-hero-copy.copied .lp-hero-copy-tip { opacity: 1; transform: translate(-50%, 0); }

/* ── Entry cards (teacher / student) ── */
.lp-entry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 720px;
    margin-bottom: 40px;
}

.lp-entry-card {
    background: var(--lpx-surface);
    border: 1.5px solid var(--lpx-border);
    border-radius: 20px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--lpx-shadow);
}

.lp-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -18px rgba(29, 34, 53, 0.22);
}

.lp-entry-card.lp-teacher-card:hover { border-color: var(--lpx-primary); }
.lp-entry-card.lp-student-card:hover  { border-color: var(--lpx-emerald); }

.lp-entry-icon {
    width: 50px; height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.lp-entry-icon.teacher {
    background: rgba(79, 70, 229, 0.1);
    color: var(--lpx-primary);
}

.lp-entry-icon.student {
    background: rgba(14, 159, 110, 0.1);
    color: var(--lpx-emerald);
}

.lp-entry-info { flex: 1; min-width: 0; }

.lp-entry-info strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--lpx-ink);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.lp-entry-info span {
    font-size: 0.84rem;
    color: var(--lpx-muted);
}

.lp-entry-arrow {
    color: var(--lpx-faint);
    font-size: 0.8rem;
    transition: transform 0.2s, color 0.2s;
}

.lp-entry-card:hover .lp-entry-arrow {
    transform: translateX(4px);
    color: var(--lpx-primary);
}

/* ── Desktop App Downloads ── */
.lp-hero-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.lp-hero-downloads-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--lpx-faint);
    margin-right: 4px;
}

.lp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--lpx-surface);
    border: 1.5px solid var(--lpx-border);
    color: var(--lpx-ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lp-download-btn:hover {
    border-color: var(--lpx-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(29, 34, 53, 0.25);
}

.lp-download-btn i { font-size: 1.25rem; }

.lp-download-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--lpx-faint);
    line-height: 1.15;
    margin-top: 2px;
    font-weight: 500;
}

.lp-download-btn.is-detected {
    border-color: rgba(79, 70, 229, 0.55);
    background: rgba(79, 70, 229, 0.06);
    box-shadow: 0 8px 22px -12px rgba(79, 70, 229, 0.4);
}

.lp-download-btn[data-coming-soon] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.lp-download-btn[data-coming-soon]::after {
    content: 'SOON';
    position: absolute;
    top: -8px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f0b429;
    color: #4d3500;
}

/* Top-nav Download link */
.header-nav .lp-nav-download { color: var(--lpx-primary); }
.header-nav .lp-nav-download:hover { color: var(--lpx-primary-dark); }

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.lp-features {
    padding: 90px 0;
}

.lp-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 52px;
}

.lp-section-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--lpx-primary);
    margin-bottom: 14px;
}

.lp-section-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--lpx-ink);
    margin: 0;
}

.lp-section-title.about-title { font-size: 2.1rem; margin-bottom: 14px; }

.lp-title-accent { color: var(--lpx-primary); }

.lp-section-sub {
    font-size: 1.05rem;
    color: var(--lpx-muted);
    margin: 18px 0 0;
    line-height: 1.6;
}

/* 3-column feature grid — softly tinted cards */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.lp-feat-card {
    border-radius: 22px;
    padding: 30px 26px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s;
    cursor: default;
    border: 1px solid transparent;
}

.lp-feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -20px rgba(29, 34, 53, 0.18);
}

.lp-feat-icon {
    width: 50px; height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 16px -8px rgba(29, 34, 53, 0.18);
}

.lp-feat-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--lpx-ink);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.lp-feat-card p {
    font-size: 0.89rem;
    color: var(--lpx-muted);
    line-height: 1.65;
    margin: 0;
}

/* Card tints */
.lp-feat-card.tint-indigo  { background: #eceeff; border-color: #dfe2fa; }
.lp-feat-card.tint-indigo  .lp-feat-icon { color: #4f46e5; }

.lp-feat-card.tint-amber   { background: #fdf3da; border-color: #f5e8c4; }
.lp-feat-card.tint-amber   .lp-feat-icon { color: #b45309; }

.lp-feat-card.tint-emerald { background: #e2f6ec; border-color: #d0eedf; }
.lp-feat-card.tint-emerald .lp-feat-icon { color: #047857; }

.lp-feat-card.tint-rose    { background: #fdeaee; border-color: #f7dbe1; }
.lp-feat-card.tint-rose    .lp-feat-icon { color: #be123c; }

.lp-feat-card.tint-violet  { background: #f1eafd; border-color: #e7dcf8; }
.lp-feat-card.tint-violet  .lp-feat-icon { color: #7c3aed; }

.lp-feat-card.tint-sky     { background: #e3f3fc; border-color: #d2eaf7; }
.lp-feat-card.tint-sky     .lp-feat-icon { color: #0369a1; }

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.lp-about {
    padding: 90px 0;
    background: var(--lpx-surface);
    border-top: 1px solid var(--lpx-border);
    border-bottom: 1px solid var(--lpx-border);
}

.lp-about-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 70px;
    align-items: center;
}

/* Avatar visual */
.lp-about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.lp-about-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lpx-bg);
    border: 1px solid var(--lpx-border);
    border-radius: 28px;
    padding: 26px;
}

.lp-avatar-img {
    width: 220px;
    height: 220px;
    display: block;
}

/* Photo variant — show a real portrait instead of the square logo */
.lp-about-photo {
    padding: 10px;
    background: var(--lpx-card, var(--lpx-bg));
    overflow: hidden;
}

.lp-about-photo .lp-avatar-img {
    width: 240px;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
}

.lp-about-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.lp-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    justify-content: center;
}

.lp-badge.purple {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.lp-badge.green {
    background: rgba(14, 159, 110, 0.08);
    color: #067a54;
    border: 1px solid rgba(14, 159, 110, 0.22);
}

.lp-badge.blue {
    background: rgba(3, 105, 161, 0.07);
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.2);
}

/* About text */
.lp-about-text .lp-section-label { margin-bottom: 10px; }

.lp-about-desc {
    font-size: 1rem;
    color: var(--lpx-muted);
    line-height: 1.75;
    margin: 0 0 18px;
}

.lp-about-desc strong {
    color: var(--lpx-ink);
    font-weight: 700;
}

.lp-about-facts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.lp-fact {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--lpx-muted);
    font-weight: 500;
}

.lp-fact i {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--lpx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* ================================================================
   BOTTOM CTA — dark panel
   ================================================================ */
.lp-cta-bar {
    padding: 80px 0;
}

.lp-cta-panel {
    background: var(--lpx-ink);
    border-radius: 30px;
    padding: 54px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 30px 70px -30px rgba(29, 34, 53, 0.5);
    position: relative;
    overflow: hidden;
}

.lp-cta-panel::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    top: -180px; right: -120px;
    pointer-events: none;
}

.lp-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.lp-cta-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.lp-cta-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ================================================================
   FOOTER
   ================================================================ */
.lp-footer {
    padding: 34px 0 44px;
}

.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-footer-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--lpx-ink);
    letter-spacing: -0.01em;
}

.lp-footer-domain a {
    font-size: 0.75rem;
    color: var(--lpx-emerald);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.lp-footer-domain a:hover { text-decoration: underline; }

.lp-footer-copy {
    font-size: 0.82rem;
    color: var(--lpx-faint);
    line-height: 1.7;
    text-align: right;
}

.lp-footer-copy a {
    color: var(--lpx-primary);
    text-decoration: none;
}

.lp-footer-copy a:hover { text-decoration: underline; }

/* ================================================================
   STUDENT JOIN OVERLAY
   ================================================================ */
.student-entry-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(29, 34, 53, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-auth);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.student-entry-overlay.show {
    display: flex;
    opacity: 1;
}

.student-panel-content {
    background: #fff;
    border: 1px solid var(--lpx-border, #e7e3d8);
    width: 90%; max-width: 440px;
    padding: 48px 40px;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 40px 80px rgba(15, 20, 40, 0.3);
    transform: scale(0.92) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #1d2235;
}

.student-entry-overlay.show .student-panel-content {
    transform: scale(1) translateY(0);
}

.close-panel {
    position: absolute;
    top: 20px; right: 20px;
    background: #f4f2ec;
    border: 1px solid #e7e3d8;
    width: 38px; height: 38px;
    border-radius: 999px;
    cursor: pointer;
    color: #5d6378;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel:hover { background: #fee2e2; color: #ef4444; }

.student-panel-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1d2235;
    letter-spacing: -0.02em;
}

.student-panel-content p {
    color: #5d6378;
    margin-bottom: 28px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Inputs inside the student panel */
#landing-page .auth-input,
.student-entry-overlay .auth-input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1.5px solid #e7e3d8;
    background: #faf9f5;
    color: #1d2235;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

#landing-page .auth-input:focus,
.student-entry-overlay .auth-input:focus {
    border-color: #4f46e5;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

#landing-page .auth-input:-webkit-autofill,
.student-entry-overlay .auth-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1d2235 !important;
    caret-color: #1d2235;
}

/* Student join button */
.landing-btn {
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.landing-btn.primary {
    background: #4f46e5;
    color: white;
    box-shadow: 0 8px 22px -8px rgba(79, 70, 229, 0.55);
}

.landing-btn.primary:hover {
    transform: translateY(-2px);
    background: #4338ca;
    box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.6);
}

.landing-btn.full {
    width: 100%;
    padding: 16px;
    font-size: 1.02rem;
}

/* Student remember me */
.student-remember-me {
    margin-top: 4px;
    justify-content: center;
}

.student-entry-overlay .checkbox-container .label-text { color: #5d6378; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }

    .lp-about-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .lp-about-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .lp-about-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .lp-fact { justify-content: center; }

    .lp-cta-panel { flex-direction: column; text-align: center; align-items: center; }
    .lp-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .lp-footer-copy { text-align: center; }

    .header-nav { display: none; }
}

@media (max-width: 700px) {
    .lp-entry-row { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-width: 600px) {
    .landing-header { top: 10px; padding: 0 10px; margin-top: 10px; }
    .header-inner { height: 56px; padding: 0 8px 0 16px; }
    .lp-btn-ghost { display: none; }

    .lp-hero { padding: 56px 0 64px; }
    .lp-hero-title { font-size: 2.3rem; }
    .lp-features { padding: 60px 0; }
    .lp-about { padding: 60px 0; }
    .lp-hero-cta { flex-direction: column; width: 100%; }
    .lp-btn-lg { width: 100%; justify-content: center; }
    .lp-cta-bar { padding: 50px 0; }
    .lp-cta-panel { padding: 40px 26px; }
    .lp-cta-actions { width: 100%; flex-direction: column; }
    .lp-cta-actions button { width: 100%; justify-content: center; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .student-panel-content { padding: 36px 24px; }
    .lp-spark { display: none; }
}

/* ================================================================
   RTL — Arabic support
   ================================================================ */
body.rtl #landing-page {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', 'Outfit', 'Inter', sans-serif;
}

body.rtl .header-inner {
    direction: rtl;
}

body.rtl .header-nav {
    direction: rtl;
}

body.rtl .lp-entry-arrow i {
    transform: scaleX(-1);
}

body.rtl .lp-hero-cta .lp-btn-primary i {
    transform: scaleX(-1);
}

body.rtl .lp-cta-actions .lp-btn-light i {
    transform: scaleX(-1);
}

body.rtl .lp-about-visual {
    order: 1;
}

body.rtl .lp-about-text {
    order: 0;
}

body.rtl .lp-feat-card {
    text-align: right;
}

body.rtl .student-panel-content {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', 'Outfit', 'Inter', sans-serif;
}

/* Language toggle button in landing header */
.lp-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--lpx-border);
    background: rgba(255,255,255,0.7);
    color: var(--lpx-muted);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Cairo', 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0 10px;
    line-height: 1;
}

.lp-lang-btn:hover {
    background: var(--lpx-surface);
    color: var(--lpx-primary);
    border-color: var(--lpx-primary);
}

/* ================================================================
   ✏️  HAND-DRAWN SKETCH STYLE  — echoes the pencil mockup behind
   the hero. Wobbly "drawn" borders, graphite ink strokes, a
   handwriting font on the chrome labels, and a faint paper grain.
   Scoped to #landing-page so the rest of the app is untouched.
   ================================================================ */
#landing-page {
    --lpx-ink-pencil: #4a5066;          /* graphite stroke */
    --lpx-ink-pencil-soft: rgba(74, 80, 102, 0.55);
    /* hand-drawn rounded-rectangle radii (the classic wobble trick) */
    --sk-radius-a: 14px 220px 16px 220px / 220px 14px 220px 16px;
    --sk-radius-b: 220px 16px 220px 14px / 16px 220px 14px 220px;
    --sk-shadow: 2px 3px 0 rgba(74, 80, 102, 0.16);
}

/* Faint paper grain over the whole landing (above the gradient,
   below content & the sketch watermark which is z-index:-1). */
#landing-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* Handwriting font on the light chrome labels */
.logo-name,
.header-nav a,
.lp-announce,
.lp-hero-meta {
    font-family: 'Patrick Hand', 'Outfit', sans-serif;
    letter-spacing: 0.01em;
}
.header-nav a { font-size: 1.02rem; }
.lp-announce { font-size: 0.95rem; }
.lp-hero-meta { font-size: 1rem; }

/* Header bar → softly rounded rectangle to match the board corners
   in the sketch (instead of a full pill). */
.header-inner {
    border-radius: 22px;
}

/* Announce badge → little drawn tag */
.lp-announce {
    border: 2px solid rgba(6, 122, 84, 0.55);
    border-radius: var(--sk-radius-b);
}

/* Outline / "Log in" buttons → drawn pills */
.lp-btn-outline,
.lp-btn-outline-light {
    border: 2px solid var(--lpx-ink-pencil);
    border-radius: var(--sk-radius-a);
    box-shadow: var(--sk-shadow);
}
.lp-btn-outline:hover,
.lp-btn-outline-light:hover {
    border-radius: var(--sk-radius-b);   /* "re-drawn" on hover */
}

/* Entry cards → keep clean rounded borders (no hand-drawn wobble) */

/* A touch more wobble on the section title accents already present */
.lp-mark { border-radius: 14px 220px 16px 220px / 220px 14px 220px 16px; }
