/* ============================================================
   BANDER — LANDING PAGE STYLES
   ============================================================
   Every selector here is prefixed `.lp-` (Landing Page) so this
   file can never collide with or override anything in style.css.
   This file only ever touches elements inside #lp-root.
   Color tokens, font stack, radii, and button language are
   intentionally matched to the existing app (see style.css) so
   the eventual hand-off into the app feels like one product.
   ============================================================ */

/* Prevents the body's own scrollbar from competing with #lp-root's
   internal scroll container while the landing page is the active view. */
body.lp-locked {
    overflow: hidden;
}

#lp-root {
    /* --- design tokens, scoped to the landing page only --- */
    --lp-accent: #4da3ff;
    --lp-accent-deep: #2563eb;
    --lp-ink: #1f2937;
    --lp-ink-soft: #6b7280;
    --lp-cream-top: #fdf8f4;
    --lp-cream-bottom: #fbf2ec;
    --lp-app-navy: #0b111e;
    --lp-line: rgba(31, 41, 55, 0.08);

    position: fixed;
    inset: 0;
    z-index: 500;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--lp-cream-top) 0%, var(--lp-cream-bottom) 100%);
    color: var(--lp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    transform: translateY(0);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    /* No permanent will-change here: it would keep a full-screen compositor
       layer alive (GPU memory) for the whole time the landing page is open.
       landing.js sets will-change only for the slide-away, right before
       adding .lp-exit, and clears it in cleanup(). */
}

/* The slide-away state, triggered by landing.js on CTA click */
#lp-root.lp-exit {
    transform: translateY(-100%);
    pointer-events: none;
}

#lp-root * {
    box-sizing: border-box;
}

.lp-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- NAV ---------- */

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(253, 248, 244, 0);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-nav.lp-nav-scrolled {
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-line);
    box-shadow: 0 4px 20px rgba(31, 41, 55, 0.04);
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--lp-ink);
}

/* .lp-brand is a flex container (gap: 10px between its direct children,
   including anonymous flex items created for bare text runs) -- the
   "Band"/"er" split has to live inside one wrapper (.lp-brand-word, plain
   inline) so flexbox only ever sees ONE item for the whole word and never
   inserts that gap between "Band" and "er". */
.lp-brand .lp-brand-accent {
    color: var(--lp-accent-deep);
}

.lp-brand svg {
    width: 30px;
    height: 30px;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.lp-nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lp-ink-soft);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lp-nav-link:hover {
    color: var(--lp-accent-deep);
}

.lp-nav-cta {
    display: inline-flex;
}

@media (max-width: 620px) {
    .lp-nav-cta {
        display: none; /* the hero's own CTA is immediately below on small phones */
    }
}

/* ---------- BUTTONS (matches .primary-action-btn / .secondary-action-btn language) ---------- */

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-deep) 100%);
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.lp-btn-primary:active {
    transform: translateY(0);
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(31, 41, 55, 0.16);
    color: var(--lp-ink);
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.lp-btn-secondary:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent-deep);
    background: rgba(77, 163, 255, 0.06);
}

.lp-btn-primary svg,
.lp-btn-secondary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- HERO ---------- */

.lp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 90px;
    min-height: 560px;
}

.lp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lp-accent-deep);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(10px);
    animation: lp-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.lp-hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-accent);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18);
}

.lp-hero-title {
    font-size: 3.4rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 22px;
    color: var(--lp-ink);
    opacity: 0;
    transform: translateY(14px);
    animation: lp-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.lp-hero-title em {
    font-style: normal;
    /* Solid fallback colour: if gradient text isn't supported, the word
       still shows in the brand blue instead of turning invisible. */
    color: var(--lp-accent-deep);
}

/* Gradient text only where the browser can actually clip a background to
   text. Only the fill is made transparent, so the base colour above stays
   as the fallback everywhere else. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .lp-hero-title em {
        background: linear-gradient(135deg, var(--lp-accent-deep), var(--lp-accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.lp-hero-text {
    color: var(--lp-ink-soft);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 0 34px;
    opacity: 0;
    transform: translateY(14px);
    animation: lp-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.lp-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(14px);
    animation: lp-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.lp-hero-note {
    margin-top: 26px;
    font-size: 0.85rem;
    color: var(--lp-ink-soft);
    opacity: 0;
    animation: lp-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

@keyframes lp-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- HERO VISUAL: writing-path tile collage ---------- */
/* Same hand-drawn tile language as the in-app home hero (rounded
   colored squares with a simple pictogram) but a distinct set of
   icons/arrangement, so it reads as "family resemblance," not a
   literal duplicate of the in-app dashboard the user is about to see. */

.lp-hero-visual {
    position: relative;
    height: 460px;
}

.lp-hero-blob {
    position: absolute;
    top: 4%;
    left: 10%;
    width: 76%;
    height: 88%;
    background: linear-gradient(135deg, #dceeff, #c7e3ff);
    border-radius: 60px;
    transform: rotate(-8deg);
    z-index: 0;
    opacity: 0;
    animation: lp-blob-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes lp-blob-in {
    from { opacity: 0; transform: rotate(-14deg) scale(0.92); }
    to { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* Two layers per tile so the hover never fights the keyframes:
   - .lp-tile (outer) owns position and the entrance/float animations.
   - .lp-tile-inner owns the visuals (shape, shadow) and the hover scale.
   Previously the hover set transform on the same element the keyframes
   animate, with !important, which froze a tile mid-fade-in if it was
   hovered during its entrance. */
.lp-tile {
    position: absolute;
    opacity: 0;
    animation: lp-tile-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, lp-float 5s ease-in-out infinite;
    animation-delay: var(--lp-tile-delay, 0s), var(--lp-tile-delay, 0s);
}

.lp-tile-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(31, 41, 55, 0.14);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.lp-tile svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Pause only the float (2nd animation) on hover; the entrance (1st) keeps
   running so a tile hovered early still finishes fading in. */
.lp-tile:hover {
    animation-play-state: running, paused;
}

.lp-tile:hover .lp-tile-inner {
    transform: scale(1.06);
}

@keyframes lp-tile-in {
    from { opacity: 0; transform: translateY(18px) scale(0.9) rotate(var(--lp-tile-rot, 0deg)); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--lp-tile-rot, 0deg)); }
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0) rotate(var(--lp-tile-rot, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--lp-tile-rot, 0deg)); }
}

.lp-tile-1 { width: 190px; height: 190px; top: 70px; left: 70px; --lp-tile-rot: -6deg; --lp-tile-delay: 0.5s; z-index: 3; }
.lp-tile-2 { width: 108px; height: 108px; top: 10px; right: 40px; --lp-tile-rot: 8deg; --lp-tile-delay: 0.65s; z-index: 4; }
.lp-tile-3 { width: 98px; height: 98px; bottom: 60px; left: 10px; --lp-tile-rot: -10deg; --lp-tile-delay: 0.8s; z-index: 4; }
.lp-tile-4 { width: 132px; height: 132px; bottom: 130px; right: 0; --lp-tile-rot: 7deg; --lp-tile-delay: 0.95s; z-index: 2; }
.lp-tile-5 { width: 92px; height: 92px; bottom: 10px; right: 70px; --lp-tile-rot: 12deg; --lp-tile-delay: 1.1s; z-index: 5; }

/* ---------- SECTION HEADERS (shared by Method / Features / Audience) ---------- */

.lp-section-eyebrow {
    color: var(--lp-accent-deep);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lp-section-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--lp-ink);
}

.lp-section-subtitle {
    color: var(--lp-ink-soft);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 0;
}

.lp-section-head {
    margin-bottom: 56px;
}

.lp-section-head.lp-center {
    text-align: center;
}

.lp-section-head.lp-center .lp-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- SCROLL REVEAL (used by Method, Features, Audience, Closing CTA) ---------- */

.lp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-reveal.lp-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- METHOD (4-step journey) ---------- */

.lp-method {
    padding: 90px 0;
}

.lp-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lp-method-step {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    padding: 30px 24px;
    position: relative;
}

.lp-method-number {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--lp-accent-deep);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.lp-method-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-deep) 100%);
}

.lp-method-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.lp-method-step h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--lp-ink);
}

.lp-method-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--lp-ink-soft);
    margin: 0;
}

.lp-method-connector {
    position: absolute;
    top: 46px;
    right: -24px;
    width: 24px;
    height: 2px;
    background: var(--lp-line);
    display: none;
}

@media (min-width: 901px) {
    .lp-method-step:not(:last-child) .lp-method-connector {
        display: block;
    }
}

/* ---------- FEATURES (alternating rows) ---------- */

.lp-features {
    padding: 40px 0 90px;
}

.lp-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 56px 0;
    border-top: 1px solid var(--lp-line);
}

.lp-feature-row:first-child {
    border-top: none;
}

.lp-feature-row.lp-reverse .lp-feature-visual {
    order: 2;
}

.lp-feature-row.lp-reverse .lp-feature-copy {
    order: 1;
}

.lp-feature-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--lp-accent-deep);
    background: rgba(77, 163, 255, 0.1);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.lp-feature-copy h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    color: var(--lp-ink);
}

.lp-feature-copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lp-ink-soft);
    margin: 0 0 20px;
    max-width: 460px;
}

.lp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--lp-ink);
    font-weight: 500;
}

.lp-feature-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #22c55e;
}

.lp-feature-visual {
    position: relative;
    background: linear-gradient(160deg, #fdf8f4 0%, #f3e9df 100%);
    border-radius: 22px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px solid var(--lp-line);
}

.lp-feature-visual svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* ---------- AUDIENCE (Students / Teachers) ---------- */

.lp-audience {
    padding: 20px 0 90px;
}

.lp-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lp-audience-card {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 20px;
    padding: 36px;
}

.lp-audience-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(77, 163, 255, 0.1);
}

.lp-audience-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--lp-accent-deep);
}

.lp-audience-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--lp-ink);
}

.lp-audience-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--lp-ink-soft);
    margin: 0;
}

/* ---------- CLOSING CTA ---------- */

.lp-closing {
    margin: 0 40px 60px;
    background: linear-gradient(135deg, #16213a 0%, #0b111e 100%);
    border-radius: 28px;
    padding: 70px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-closing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(77, 163, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.lp-closing-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 14px;
    position: relative;
}

.lp-closing-text {
    color: #9ca3af;
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.65;
    position: relative;
}

.lp-closing .lp-btn-primary {
    position: relative;
    font-size: 1rem;
    padding: 15px 32px;
}

/* ---------- FOOTER ---------- */

.lp-footer {
    padding: 36px 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--lp-line);
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-footer-brand svg {
    width: 22px;
    height: 22px;
}

.lp-footer-tagline {
    color: var(--lp-ink-soft);
    font-size: 0.88rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .lp-section {
        padding: 0 24px;
    }

    .lp-nav {
        padding: 16px 20px;
    }

    .lp-nav-links {
        gap: 20px;
    }

    .lp-hero {
        grid-template-columns: 1fr;
        padding-top: 30px;
        padding-bottom: 50px;
        text-align: center;
        min-height: unset;
    }

    .lp-hero-title {
        font-size: 2.4rem;
    }

    .lp-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-actions {
        justify-content: center;
    }

    .lp-hero-visual {
        height: 320px;
        order: -1;
    }

    .lp-method-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-feature-row,
    .lp-feature-row.lp-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .lp-feature-row .lp-feature-visual,
    .lp-feature-row.lp-reverse .lp-feature-visual {
        order: -1;
    }

    .lp-feature-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-feature-list {
        align-items: center;
    }

    .lp-feature-list li {
        text-align: left;
    }

    .lp-audience-grid {
        grid-template-columns: 1fr;
    }

    .lp-closing {
        margin: 0 20px 40px;
        padding: 50px 28px;
    }

    .lp-footer {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .lp-nav-links {
        display: none;
    }

    .lp-hero-title {
        font-size: 2rem;
    }

    .lp-method-grid {
        grid-template-columns: 1fr;
    }

    .lp-section-title {
        font-size: 1.7rem;
    }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    #lp-root {
        transition: none;
    }

    .lp-hero-eyebrow,
    .lp-hero-title,
    .lp-hero-text,
    .lp-hero-actions,
    .lp-hero-note,
    .lp-hero-blob,
    .lp-tile {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .lp-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .lp-tile-inner {
        transition: none;
    }
}
