/* ─────────────────────────────────────────────────────────────
   Public landing page (signed-out visitors).

   Tokens only — no literal colors, radii, or spacing values.
   Works in both themes via the [data-theme] tokens in brand.css.
   ───────────────────────────────────────────────────────────── */

/* Landing pages breathe wider than the app shell — the marketing content
   is meant to fill the screen, not sit in a narrow column. */
.bedu-landing .bedu-main .bedu-container { max-width: 1480px; }

/* Anchor targets must clear the sticky header, or the navbar covers the
   heading you just jumped to. */
.bedu-lp-section,
.bedu-lp-feature,
.bedu-lp-aud,
.bedu-lp-sectionhead__title {
    scroll-margin-top: calc(var(--bedu-navbar-h) + var(--bedu-space-5));
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Jumping to a module card highlights it briefly so the target is obvious. */
.bedu-lp-feature:target,
.bedu-lp-aud:target {
    border-color: var(--bedu-primary);
    box-shadow: var(--bedu-shadow-lg);
}

/* ─── Hero ────────────────────────────────────────────────── */

.bedu-lp-hero {
    padding: var(--bedu-space-8) 0;
    /* Soft tinted wash rather than a flat surface — keeps the top of the
       page bright and friendly in both themes. */
    background:
        radial-gradient(1200px 520px at 78% 18%, var(--bedu-primary-50), transparent 70%),
        radial-gradient(900px 460px at 12% 88%, var(--bedu-accent-50), transparent 70%),
        var(--bedu-bg);
    border-bottom: 1px solid var(--bedu-border);
}

.bedu-lp-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--bedu-space-8);
    align-items: center;
}

.bedu-lp-hero__title {
    margin: 0;
    font-family: var(--bedu-font-heading);
    font-size: clamp(2rem, 3.4vw + 1rem, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--bedu-text);
}

.bedu-lp-hero__lead {
    margin: var(--bedu-space-4) 0 0;
    max-width: 52ch;
    font-size: 1.08rem;
    line-height: var(--bedu-line);
    color: var(--bedu-text-muted);
}

.bedu-lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bedu-space-3);
    margin-top: var(--bedu-space-5);
}

/* Trust row — replaces a redundant "already have an account?" line,
   since the navbar account icon already covers sign-in. */
.bedu-lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bedu-space-2) var(--bedu-space-5);
    margin: var(--bedu-space-5) 0 0;
    padding: 0;
    list-style: none;
}

.bedu-lp-trust li {
    display: inline-flex;
    align-items: center;
    gap: var(--bedu-space-2);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bedu-text-muted);
}

.bedu-lp-trust i { color: var(--bedu-success); }

/* ─── Hero illustration ───────────────────────────────────── */

.bedu-lp-art {
    position: relative;
    width: 100%;
}

.bedu-lp-art__scene {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating module chips layered over the scene — real Bootstrap Icons
   rather than drawn glyphs, so they stay crisp at any size. */
.bedu-lp-art__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: var(--bedu-space-2);
    padding: var(--bedu-space-3) var(--bedu-space-4);
    background: var(--bedu-surface);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius-pill);
    box-shadow: var(--bedu-shadow-lg);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bedu-text);
    white-space: nowrap;
    animation: bedu-lp-float 6s var(--bedu-ease) infinite;
}

.bedu-lp-art__chip i { font-size: 1.25rem; }

.bedu-lp-art__chip--1 { top: 8%;  left: -5%;  color: var(--bedu-primary); animation-delay: 0s; }
.bedu-lp-art__chip--2 { top: 44%; right: -7%; color: var(--bedu-success); animation-delay: -2s; }
.bedu-lp-art__chip--3 { bottom: 4%; left: 2%; color: var(--bedu-accent-600); animation-delay: -4s; }

@keyframes bedu-lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .bedu-lp-art__chip { animation: none; }
}

.bedu-lp-art__blob { opacity: 0.10; }
.bedu-lp-art__blob--a { fill: var(--bedu-primary); }
.bedu-lp-art__blob--b { fill: var(--bedu-accent); }

.bedu-lp-art__surface {
    fill: var(--bedu-surface);
    stroke: var(--bedu-primary);
    stroke-width: 3;
    stroke-linejoin: round;
}

.bedu-lp-art__line {
    stroke: var(--bedu-primary);
    stroke-width: 3;
    fill: none;
}

.bedu-lp-art__rule {
    stroke: var(--bedu-border);
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
}

.bedu-lp-art__accent {
    fill: var(--bedu-accent);
    opacity: 0.9;
}

.bedu-lp-art__accent-line {
    fill: none;
    stroke: var(--bedu-accent);
    stroke-width: 3;
    stroke-linecap: round;
}

.bedu-lp-art__spark {
    stroke: var(--bedu-warm);
    stroke-width: 3;
    stroke-linecap: round;
}

.bedu-lp-art__shadow {
    fill: var(--bedu-text);
    opacity: 0.06;
}

/* Board on the back wall */
.bedu-lp-art__board {
    fill: var(--bedu-surface);
    stroke: var(--bedu-primary);
    stroke-width: 3;
}

.bedu-lp-art__dot--accent { fill: var(--bedu-accent); }
.bedu-lp-art__dot--warm   { fill: var(--bedu-warm); }

/* Desk */
.bedu-lp-art__desk {
    fill: var(--bedu-primary);
    opacity: 0.85;
}

.bedu-lp-art__desk-leg {
    stroke: var(--bedu-primary);
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0.85;
}

/* Pencil cup */
.bedu-lp-art__cup {
    fill: var(--bedu-surface);
    stroke: var(--bedu-primary);
    stroke-width: 3;
    stroke-linejoin: round;
}

.bedu-lp-art__pencil {
    stroke-width: 6;
    stroke-linecap: round;
}

.bedu-lp-art__pencil--a { stroke: var(--bedu-warm); }
.bedu-lp-art__pencil--b { stroke: var(--bedu-accent); }
.bedu-lp-art__pencil--c { stroke: var(--bedu-success); }

/* Plant */
.bedu-lp-art__pot {
    fill: var(--bedu-warm);
    opacity: 0.85;
}

.bedu-lp-art__leaf {
    fill: var(--bedu-success);
    opacity: 0.85;
}

/* ─── Stats strip ─────────────────────────────────────────── */

/* One horizontal metric line, figures separated by vertical rules. No
   section heading — the labels already say what each number is. */
.bedu-lp-stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin-top: calc(-1 * var(--bedu-space-5));
    padding: var(--bedu-space-6) var(--bedu-space-5);
    background: var(--bedu-surface);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius-lg);
    box-shadow: var(--bedu-shadow);
}

.bedu-lp-stat + .bedu-lp-stat {
    border-left: 1px solid var(--bedu-border);
}

.bedu-lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--bedu-space-1);
    padding: 0 var(--bedu-space-4);
    text-align: center;
    min-width: 0;
}

.bedu-lp-stat__label {
    overflow-wrap: anywhere;
}

.bedu-lp-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--bedu-space-2);
    border-radius: var(--bedu-radius-pill);
    background: var(--bedu-primary-50);
    color: var(--bedu-primary);
    font-size: 1.6rem;
}

.bedu-lp-stat__value {
    font-family: var(--bedu-font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--bedu-primary);
    line-height: 1;
}

.bedu-lp-stat__label {
    font-size: 0.95rem;
    color: var(--bedu-text-muted);
}

/* ─── Section scaffolding ─────────────────────────────────── */

.bedu-lp-section { margin-top: var(--bedu-space-8); }

.bedu-lp-sectionhead {
    text-align: center;
    margin-bottom: var(--bedu-space-6);
}

.bedu-lp-sectionhead__title {
    margin: 0;
    font-family: var(--bedu-font-heading);
    font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
    font-weight: 800;
    color: var(--bedu-text);
}

.bedu-lp-sectionhead__sub {
    margin: var(--bedu-space-2) 0 0;
    color: var(--bedu-text-muted);
}

.bedu-lp-sectionhead__sub a {
    color: var(--bedu-primary);
    font-weight: 600;
    text-decoration: none;
}

.bedu-lp-sectionhead__sub a:hover { text-decoration: underline; }

.bedu-lp-sectionhead__sub em {
    font-style: normal;
    font-weight: 700;
    color: var(--bedu-text);
}

/* ─── Feature grid ────────────────────────────────────────── */

/* Five activity cards — a 240px floor lets all five sit in one row on a
   wide screen, wrapping to 3+2 then 2+2+1 as the viewport narrows. */
.bedu-lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--bedu-space-4);
}

.bedu-lp-feature {
    padding: var(--bedu-space-5);
    background: var(--bedu-surface);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius-lg);
    transition: transform var(--bedu-dur) var(--bedu-ease),
                border-color var(--bedu-dur) var(--bedu-ease),
                box-shadow var(--bedu-dur) var(--bedu-ease);
}

.bedu-lp-feature:hover {
    transform: translateY(-3px);
    border-color: var(--bedu-primary);
    box-shadow: var(--bedu-shadow-lg);
}

.bedu-lp-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: var(--bedu-radius);
    font-size: 2rem;
    background: var(--bedu-primary-50);
    color: var(--bedu-primary);
}

.bedu-lp-feature__icon--accent  { background: var(--bedu-accent-50);  color: var(--bedu-accent-600); }
.bedu-lp-feature__icon--success { background: var(--bedu-success-50); color: var(--bedu-success-600); }
.bedu-lp-feature__icon--warm    { background: var(--bedu-warm-50);    color: var(--bedu-warm-600); }

.bedu-lp-feature__title {
    margin: var(--bedu-space-4) 0 var(--bedu-space-2);
    font-family: var(--bedu-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bedu-text);
}

.bedu-lp-feature p {
    margin: 0;
    font-size: 1rem;
    line-height: var(--bedu-line);
    color: var(--bedu-text-muted);
}

/* ─── Grades ──────────────────────────────────────────────── */

.bedu-lp-grades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--bedu-space-4);
}

.bedu-lp-grade {
    display: flex;
    align-items: center;
    gap: var(--bedu-space-4);
    padding: var(--bedu-space-4);
    background: var(--bedu-surface);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius);
}

.bedu-lp-grade__level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--bedu-radius-pill);
    background: var(--bedu-primary-50);
    color: var(--bedu-primary);
    font-family: var(--bedu-font-heading);
    font-size: 1.7rem;
    font-weight: 800;
}

.bedu-lp-grade__body { min-width: 0; }

.bedu-lp-grade__name {
    margin: 0;
    font-family: var(--bedu-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bedu-text);
}

.bedu-lp-grade__meta {
    margin: var(--bedu-space-1) 0 0;
    font-size: 0.85rem;
    color: var(--bedu-text-muted);
}

/* Grade cards link into the library filtered by that grade. */
.bedu-lp-grade--link {
    text-decoration: none;
    color: inherit;
    transition: border-color var(--bedu-dur-fast) var(--bedu-ease),
                box-shadow var(--bedu-dur-fast) var(--bedu-ease);
}
.bedu-lp-grade--link:hover {
    border-color: var(--bedu-primary);
    box-shadow: var(--bedu-shadow-sm);
    color: inherit;
}
.bedu-lp-grade__arrow {
    margin-left: auto;
    color: var(--bedu-text-muted);
    flex-shrink: 0;
}
.bedu-lp-grade--link:hover .bedu-lp-grade__arrow { color: var(--bedu-primary); }

/* ─── Audiences ───────────────────────────────────────────── */

.bedu-lp-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--bedu-space-4);
}

.bedu-lp-aud {
    padding: var(--bedu-space-5);
    background: var(--bedu-surface);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius);
}

.bedu-lp-aud__emoji { font-size: 2.8rem; line-height: 1; }

.bedu-lp-aud__title {
    margin: var(--bedu-space-3) 0 var(--bedu-space-3);
    font-family: var(--bedu-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bedu-text);
}

/* "Tez orada" — promised features without UI yet. Neutral badge, so it
   reads as status, not as a call to action. */
.bedu-lp-soon {
    margin-left: var(--bedu-space-2);
    vertical-align: middle;
    font-family: var(--bedu-font-body);
    color: var(--bedu-text-muted);
}
.bedu-lp-aud__note {
    margin: 0 0 var(--bedu-space-3);
    font-size: 0.88rem;
    color: var(--bedu-text-muted);
}
.bedu-lp-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--bedu-space-2);
}

.bedu-lp-list li {
    position: relative;
    padding-left: var(--bedu-space-5);
    font-size: 0.92rem;
    color: var(--bedu-text-muted);
}

.bedu-lp-list li::before {
    /* Plain Unicode check rather than a bootstrap-icons codepoint — no
       dependency on the icon font having loaded. */
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--bedu-success);
}
.bedu-lp-list--soon li::before {
    content: "\2022";   /* bullet, not a check: not delivered yet */
    color: var(--bedu-text-muted);
}

/* ─── Steps ───────────────────────────────────────────────── */

.bedu-lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--bedu-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.bedu-lp-step {
    padding: var(--bedu-space-5);
    background: var(--bedu-surface);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius);
}

.bedu-lp-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: var(--bedu-radius-pill);
    background: var(--bedu-accent-50);
    color: var(--bedu-accent-600);
    font-family: var(--bedu-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.bedu-lp-step__title {
    margin: var(--bedu-space-3) 0 var(--bedu-space-2);
    font-family: var(--bedu-font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bedu-text);
}

.bedu-lp-step p {
    margin: 0;
    font-size: 0.92rem;
    line-height: var(--bedu-line);
    color: var(--bedu-text-muted);
}

/* ─── Final CTA ───────────────────────────────────────────── */

.bedu-lp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--bedu-space-5);
    padding: var(--bedu-space-6);
    background: var(--bedu-primary-50);
    border: 1px solid var(--bedu-border);
    border-radius: var(--bedu-radius-lg);
}

.bedu-lp-cta__title {
    margin: 0;
    font-family: var(--bedu-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bedu-text);
}

.bedu-lp-cta__sub {
    margin: var(--bedu-space-2) 0 0;
    color: var(--bedu-text-muted);
}

.bedu-lp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bedu-space-3);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 992px) {
    .bedu-lp-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .bedu-lp-hero__art { order: -1; max-width: 380px; margin: 0 auto; }
}

/* Metric line stacks on phones; the vertical rules become horizontal. */
@media (max-width: 700px) {
    .bedu-lp-stats {
        grid-auto-flow: row;
        gap: var(--bedu-space-5);
    }
    .bedu-lp-stat + .bedu-lp-stat {
        border-left: 0;
        border-top: 1px solid var(--bedu-border);
        padding-top: var(--bedu-space-5);
    }
}

@media (max-width: 576px) {
    .bedu-lp-hero { padding: var(--bedu-space-6) 0 var(--bedu-space-5); }
    .bedu-lp-hero__actions .bedu-btn { width: 100%; justify-content: center; }
    .bedu-lp-cta { flex-direction: column; align-items: flex-start; }

    /* Keep the floating chips inside the viewport — negative offsets would
       otherwise push the page into horizontal scroll on narrow screens. */
    .bedu-lp-art__chip--1 { left: 0; }
    .bedu-lp-art__chip--2 { right: 0; }
    .bedu-lp-art__chip--3 { left: 4%; }
}

/* A feature card that actually links somewhere gets a visible affordance —
   the rest are descriptive only. */
.bedu-lp-feature--live {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.bedu-lp-feature__cta {
    margin-top: auto;
    padding-top: var(--bedu-space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--bedu-space-2);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bedu-primary);
}

.bedu-lp-feature--live:hover .bedu-lp-feature__cta { text-decoration: underline; }
