/* ============================================================================
   KNOVLI LANDING — styles for kv-landing.js (the signed-out homepage).
   Owner's mockups, 2026-10-14. Sections use the app's theme tokens, so dark
   mode flips automatically; the hero is always the dark brand panel.
   ============================================================================ */

.kvl { display: flex; flex-direction: column; gap: 22px; margin: 0 0 26px; }
.kvl-tail { margin: 30px 0 8px; }

/* ── type + buttons ─────────────────────────────────────────────────────── */
.kvl-h1, .kvl-h2 { font-family: 'Sora', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }
.kvl-h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; font-weight: 800; color: #fff; }
.kvl-h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); line-height: 1.12; font-weight: 800; color: var(--text); }
.kvl-accent {
    background: linear-gradient(92deg, #38BDF8 0%, #3B82F6 45%, #A855F7 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kvl-lead { font-size: 1.12rem; line-height: 1.5; color: rgba(226, 232, 240, 0.92); margin: 16px 0 0; max-width: 34em; }
.kvl-text { font-size: 1.02rem; line-height: 1.55; color: var(--text-muted); margin: 12px 0 0; max-width: 40em; }
.kvl-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px;
    padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #7C3AED; background: rgba(139, 92, 246, 0.12);
}
[data-theme="dark"] .kvl-eyebrow { color: #C4B5FD; background: rgba(139, 92, 246, 0.2); }

.kvl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem;
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
    font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.kvl-btn:hover { transform: translateY(-1px); }
.kvl-btn:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.kvl-btn-primary { color: #fff; background: linear-gradient(92deg, #2563EB, #6D5CF6); box-shadow: 0 10px 24px -10px rgba(59, 91, 246, 0.8); }
.kvl-btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(59, 91, 246, 0.9); }
.kvl-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); }
.kvl-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.kvl-btn-violet { color: #fff; background: linear-gradient(92deg, #6D28D9, #7C3AED); }
.kvl-btn-outline { color: #6D28D9; border-color: #8B5CF6; background: transparent; }
[data-theme="dark"] .kvl-btn-outline { color: #C4B5FD; }
.kvl-btn-block { width: 100%; }
.kvl-btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.kvl-arrow { width: 18px; height: 18px; }
.kvl-ico-sm { width: 18px; height: 18px; flex: none; }
.kvl-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.kvl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-blue); text-decoration: none; white-space: nowrap; }
.kvl-link .kvl-arrow { width: 16px; height: 16px; }

/* ── picture slots ──────────────────────────────────────────────────────── */
.kvl-art { margin: 0; min-width: 0; }
.kvl-art img { display: block; width: 100%; height: auto; border-radius: 18px; }

/* ── hero ───────────────────────────────────────────────────────────────── */
/* FULL BLEED (owner, 2026-10-14): edge to edge, flush under the top bar.
   Cancels exactly the .main-panel inset it publishes (--kv-bleed-x/-top),
   the same way .kv-dhero does — never a guessed number. The top is pulled up
   only when the landing is the FIRST thing on the page (a notice above it
   keeps its gap). */
.kvl-hero {
    position: relative; overflow: hidden; border-radius: 0; color: #fff;
    margin: 0 calc(-1 * var(--kv-bleed-x, 0px));
    background: #0B1530;
}
.kvl:first-child > .kvl-hero:first-child { margin-top: calc(-1 * var(--kv-bleed-top, 0px)); }
/* THE STAGE is the owner's desk banner (2160×728, i/home/hero-bg.webp): dark
   on the left, the laptop from ~40% across, the phone on the right. Its
   height follows the picture's own shape (100vw / 2.967) so it is shown
   WHOLE, not zoomed — zooming pushed the laptop under the headline — and
   the copy is held to the dark left 40%. */
.kvl-hero-stage { position: relative; display: flex; align-items: center; min-height: clamp(400px, calc(100vw / 2.967), 720px); }
.kvl-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 14, 34, 0.92) 0%, rgba(8, 14, 34, 0.72) 26%, rgba(8, 14, 34, 0.15) 42%, rgba(8, 14, 34, 0) 50%),
        linear-gradient(0deg, #0B1530 0%, rgba(11, 21, 48, 0) 14%),
        url('i/home/hero-bg.webp') right center / cover no-repeat;
}
.kvl-hero-inner { position: relative; width: 100%; box-sizing: border-box; padding: 44px clamp(48px, 4vw, 120px); }
/* 🔑 NOT centred in a max-width box: the picture's dark side is its LEFT 40%
   at every width, so the copy stays pinned to the left edge (centring put it
   on the laptop at 2200px). */
.kvl-hero-copy { max-width: min(600px, 35.5vw); }
.kvl-hero-eyebrow { display: none; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7DD3FC; }
.kvl-hero .kvl-h1 { font-size: clamp(2.1rem, 2.85vw, 3.3rem); }
.kvl-hero .kvl-lead { font-size: 1.06rem; }
.kvl-free { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: .95rem; color: rgba(226, 232, 240, 0.85); }
.kvl-free::before { content: ""; width: 26px; height: 1px; background: rgba(226, 232, 240, 0.5); }

/* The four features: a strip under the picture. */
.kvl-feats {
    list-style: none; margin: 0; box-sizing: border-box; padding: 22px clamp(48px, 4vw, 120px) 28px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.kvl-feats li { display: flex; align-items: center; gap: 14px; font-size: .86rem; color: rgba(226, 232, 240, 0.8); line-height: 1.35; }
.kvl-feat-txt { display: flex; flex-direction: column; gap: 2px; }
.kvl-feats .kvl-ico { flex: none; width: 38px; height: 38px; color: var(--c); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.kvl-feats b { color: #fff; font-size: .98rem; }

/* ── generic section ────────────────────────────────────────────────────── */
.kvl-sec {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center;
    padding: 40px 44px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border);
}
.kvl-sec.kvl-noart { grid-template-columns: 1fr; }
.kvl-sec-copy { min-width: 0; }
.kvl-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; grid-column: 1 / -1; }

/* Page Scan: picture left, copy right; soft lavender wash */
.kvl-scan { background: linear-gradient(135deg, color-mix(in srgb, var(--bg-card) 88%, #8B5CF6), var(--bg-card)); }
.kvl-scan .kvl-btn { margin-top: 22px; }

/* ── Page Scan demo (kv-landing.js scanDemo) — one 8s loop ───────────────
   0–35%  the beam sweeps the page (tint follows it), "Scanning…"
   38%    status flips to "4 flashcards drafted"
   40%+   the cards pop in, 0.35s apart; hold; all fade at the end. */
.kvl-scanfx { position: relative; margin: 0; --kvl-loop: 8s; }
.kvl-scanfx-page { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 22px 44px -26px rgba(30, 27, 75, 0.55); }
.kvl-scanfx-page img { display: block; width: 100%; height: auto; border-radius: 0; }
.kvl-scanfx-tint { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.16)); animation: kvlScanTint var(--kvl-loop) linear infinite; }
.kvl-scanfx-beam {
    position: absolute; left: -2%; right: -2%; top: 0; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, #38BDF8 15%, #6366F1 50%, #A855F7 85%, transparent);
    box-shadow: 0 0 18px 6px rgba(99, 102, 241, 0.45); animation: kvlScanBeam var(--kvl-loop) linear infinite;
}
.kvl-scanfx-panel {
    position: absolute; right: -14px; bottom: -22px; width: min(46%, 270px); opacity: 0;
    animation: kvlScanPanel var(--kvl-loop) cubic-bezier(.2, .8, .2, 1) infinite;
    padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(99, 102, 241, 0.18); box-shadow: 0 20px 40px -20px rgba(30, 27, 75, 0.5);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.kvl-scanfx-status { margin: 0 0 8px; font-size: .78rem; font-weight: 800; color: #16A34A; }
/* "Scanning…" rides on the page while the beam runs; the card panel only
   appears once the scan is done (an empty panel read as a blank box). */
.kvl-scanfx-s1 {
    position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 11px; border-radius: 999px; font-size: .76rem; font-weight: 800; color: #4F46E5;
    background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 16px -8px rgba(30, 27, 75, 0.5);
    animation: kvlScanS1 var(--kvl-loop) linear infinite;
}
.kvl-scanfx-s1 i { width: 8px; height: 8px; border-radius: 50%; background: #6366F1; animation: kvlScanPulse 0.9s ease-in-out infinite alternate; }
.kvl-scanfx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kvl-scanfx-cards li {
    display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 10px;
    background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-left: 3px solid #6366F1;
    font-size: .74rem; line-height: 1.3; color: #475569; opacity: 0;
    animation: kvlScanCard var(--kvl-loop) cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--i) * 0.35s);
}
.kvl-scanfx-cards li:nth-child(2) { border-left-color: #A855F7; }
.kvl-scanfx-cards li:nth-child(3) { border-left-color: #10B981; }
.kvl-scanfx-cards li:nth-child(4) { border-left-color: #F59E0B; }
.kvl-scanfx-cards b { color: #0F172A; font-size: .8rem; }
.kvl-scanfx.kvl-paused * { animation-play-state: paused !important; }
@keyframes kvlScanBeam  { 0% { top: 0; opacity: 1; } 35% { top: calc(100% - 3px); opacity: 1; } 38%, 100% { top: calc(100% - 3px); opacity: 0; } }
@keyframes kvlScanTint  { 0% { height: 0; opacity: 1; } 35% { height: 100%; opacity: 1; } 48%, 100% { height: 100%; opacity: 0; } }
@keyframes kvlScanS1    { 0%, 36% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes kvlScanPanel { 0%, 36% { opacity: 0; transform: translateY(10px); } 41%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes kvlScanPulse { from { opacity: .35; } to { opacity: 1; } }
@keyframes kvlScanCard  { 0%, 38% { opacity: 0; transform: translateY(10px) scale(.96); } 45% { opacity: 1; transform: none; } 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
    .kvl-scanfx-beam, .kvl-scanfx-tint, .kvl-scanfx-s1 { display: none; }
    .kvl-scanfx-panel, .kvl-scanfx-cards li { animation: none; opacity: 1; }
}
/* Phones: the cards sit under the page instead of over it. */
@media (max-width: 640px) {
    .kvl-scanfx-panel { position: relative; right: auto; bottom: auto; width: auto; margin: -18px 10px 0; }
}
.kvl-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kvl-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); line-height: 1.25; font-size: .95rem; }
.kvl-step-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--c); box-shadow: 0 8px 18px -8px var(--c); }
.kvl-step-ico .kvl-ico { width: 24px; height: 24px; }

/* Study your way: copy + tiles left, picture right */
/* The owner's light wave background (2026-10-14, i/home/study-bg.webp) — LIGHT
   theme only: dark-theme text is light and would vanish on it. The tiles go
   frosted so the waves show through, and the five-phone shot (dark backdrop)
   reads as a framed screenshot. */
.kvl-ways { background: #F5F7FF url('i/home/study-bg.webp') center / cover no-repeat; border-color: rgba(99, 102, 241, 0.18); }
.kvl-ways .kvl-tiles a { background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, 0.9); }
.kvl-ways .kvl-h2 { color: #0F172A; }
.kvl-ways .kvl-text { color: #475569; }
.kvl-ways .kvl-tiles b { color: #0F172A; }
.kvl-ways .kvl-tiles span { color: #475569; }
/* STACKED (owner, 2026-10-14): the phones are a second background layer over
   the waves, filling the card's right side and fading in from the left so
   the two read as one backdrop; the copy + tiles stay on the light left. */
.kvl-ways { position: relative; overflow: hidden; }
.kvl-ways:not(.kvl-noart) { grid-template-columns: minmax(0, 52%) 1fr; }
.kvl-ways .kvl-sec-copy { position: relative; z-index: 1; }
.kvl-ways-art { position: absolute; top: 0; right: 0; bottom: 0; width: 47%; margin: 0; pointer-events: none; display: flex; align-items: center; }
.kvl-ways-art img { width: 100%; height: 100%; object-fit: contain; object-position: right center; border-radius: 0; filter: drop-shadow(0 18px 30px rgba(30, 27, 75, 0.35)); }
[data-theme="dark"] .kvl-ways { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .kvl-ways .kvl-tiles a { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .kvl-ways .kvl-h2, [data-theme="dark"] .kvl-ways .kvl-tiles b { color: var(--text); }
[data-theme="dark"] .kvl-ways .kvl-text, [data-theme="dark"] .kvl-ways .kvl-tiles span { color: var(--text-muted); }
.kvl-tiles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.kvl-tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kvl-tiles a, .kvl-subjtiles a, .kvl-subjtiles button {
    height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 16px 8px; border-radius: 16px; text-decoration: none; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); font-family: inherit; cursor: pointer; width: 100%;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kvl-tiles a:hover, .kvl-subjtiles a:hover, .kvl-subjtiles button:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.45); box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.6); }
.kvl-tiles img { width: 40px; height: 40px; }
/* The subject icons are WHITE line art (made for coloured chips), so they are
   used as a MASK and painted with the same gradient the study-mode icons
   carry (i/icons/*.svg: #22D3EE → #2EA8FF → #6D5DFB → #C13CFF). */
.kvl-subj-ico {
    width: 40px; height: 40px; flex: none;
    background: linear-gradient(135deg, #22D3EE 0%, #2EA8FF 42%, #6D5DFB 72%, #C13CFF 100%);
    -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.kvl-tiles b { font-size: .92rem; }
.kvl-tiles span { font-size: .78rem; color: var(--text-muted); line-height: 1.3; }
/* With the picture beside it the six tiles need two rows of three. */
.kvl-ways:not(.kvl-noart) .kvl-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Subjects: full-width rail of tiles */
.kvl-subjects { grid-template-columns: 1fr; }
.kvl-subjtiles { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.kvl-subjtiles b { font-size: .86rem; font-weight: 700; line-height: 1.25; }

/* Practice: copy + a real question card */
.kvl-practice { background: linear-gradient(135deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 90%, #3B82F6)); }
/* The owner's aqua wave background (2026-10-15, i/home/practice-bg.webp) —
   LIGHT theme only, like the study and teacher cards. */
:root:not([data-theme="dark"]) .kvl-practice { background: #EEF0FF url('i/home/practice-bg.webp') center / cover no-repeat; border-color: rgba(99, 102, 241, 0.18); }
:root:not([data-theme="dark"]) .kvl-practice .kvl-h2 { color: #0F172A; }
:root:not([data-theme="dark"]) .kvl-practice .kvl-text { color: #334155; }
.kvl-qcard { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.45); }
.kvl-qcard-bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.kvl-qcard-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563EB, #6D5CF6); }
.kvl-qcard-n { text-align: right; margin: 8px 0 6px; font-size: .82rem; color: var(--text-muted); font-weight: 700; }
.kvl-qcard-q { display: block; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 12px; }
.kvl-qcard textarea {
    width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; margin-bottom: 14px;
    padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border-strong);
    background: var(--bg-input); color: var(--text); font: inherit;
}
.kvl-qcard-after { margin: 12px 0 0; font-size: .92rem; line-height: 1.45; color: var(--text-muted); }
.kvl-qcard-after a { color: var(--brand-blue); font-weight: 700; }

/* Play: copy + four dark game tiles */
.kvl-playtiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kvl-playtiles a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    aspect-ratio: 1 / 1.05; border-radius: 16px; text-decoration: none; color: #fff; font-weight: 700; font-size: .92rem;
    background: radial-gradient(80% 70% at 50% 25%, #2A3D8F, #0E1638 75%); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .15s ease;
}
.kvl-playtiles a:hover { transform: translateY(-2px); }
.kvl-playtiles img { width: 56px; height: 56px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }

/* 🚨 #kvExploreTools carries an INLINE display:flex, which beats the [hidden]
   attribute — so `hidden` alone left the search row showing. */
#kvExploreTools[hidden] { display: none !important; }
/* "Search & browse all decks" under the signed-out shelves (button styled as a link) */
.kvl-explore-all { margin: 6px 0 4px; text-align: center; }
.kvl-explore-all button { background: none; border: 0; cursor: pointer; font: inherit; font-size: 1rem; padding: 8px 4px; }
/* ── Doorways under the hero (2026-10-15) ── */
.kvl-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kvl-door {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 16px; border-radius: 18px; text-decoration: none;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kvl-door:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--c) 70%, transparent); }
.kvl-door-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.kvl-door-ico .kvl-ico { width: 24px; height: 24px; }
.kvl-door-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kvl-door-txt b { font-size: 1.02rem; }
.kvl-door-txt span { font-size: .88rem; color: var(--text-muted); line-height: 1.4; }
.kvl-door-txt em { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--c); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.kvl-door-txt em .kvl-arrow { width: 15px; height: 15px; }

/* ── Numbers + trust line ── */
.kvl-stats { padding: 6px 4px 0; }
.kvl-stats[hidden] { display: none; }
.kvl-stats-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.kvl-stats-row li { display: flex; flex-direction: column; gap: 2px; }
.kvl-stats-row b { font-family: 'Sora', 'Inter', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800;
    background: linear-gradient(92deg, #2563EB, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kvl-stats-row span { font-size: .86rem; color: var(--text-muted); }
.kvl-trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 14px 0 0; font-size: .86rem; color: var(--text-muted); text-align: center; }
.kvl-trust .kvl-ico-sm { color: #16A34A; }
.kvl-trust a { color: var(--brand-blue); font-weight: 700; }

/* ── FAQ ── */
.kvl-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.kvl-faq-list { display: flex; flex-direction: column; gap: 8px; }
.kvl-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 0 16px; }
.kvl-faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; gap: 10px; }
.kvl-faq summary::-webkit-details-marker { display: none; }
.kvl-faq summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--brand-blue); transition: transform .2s ease; }
.kvl-faq details[open] summary::after { transform: rotate(45deg); }
.kvl-faq details p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.55; }
.kvl-faq details p a { color: var(--brand-blue); font-weight: 700; }

/* ── Fade-up on scroll (only when kv-landing.js adds .kvl-reveal) ── */
.kvl-reveal .kvl-sec, .kvl-reveal .kvl-close, .kvl-reveal .kvl-stats { transition: opacity .6s ease, transform .6s ease; }
.kvl-reveal .kvl-sec:not(.kvl-in), .kvl-reveal .kvl-close:not(.kvl-in), .kvl-reveal .kvl-stats:not(.kvl-in) { opacity: 0; transform: translateY(16px); }

/* Featured heading above the live Explore shelves */
.kvl-featured-head { margin: 34px 0 14px; }

/* Teachers (owner art, 2026-10-14): the pink wave background with the
   owner's laptop (Schoolhouse on screen; dark backdrop cut out →
   teachers.png) STACKED on its left; copy on the right. Light theme only,
   like the study card. */
/* ONE PALETTE (2026-10-15): the owner's pink and aqua waves were hue-shifted
   into the brand's indigo/violet family (teachers −75°, practice +30°) — the
   teacher band is aimed at payers, and pink read consumer, not professional. */
.kvl-teachers { position: relative; overflow: hidden; background: #F3F0FF url('i/home/teachers-bg.webp') center / cover no-repeat; border-color: rgba(139, 92, 246, 0.18); }
/* No min-height (owner, 2026-10-15: the laptop looked much taller than the
   text): the card's height comes from the copy, and the laptop is contained
   in that height minus an inset, so it never stands taller than the text. */
.kvl-teachers:not(.kvl-noart) { grid-template-columns: minmax(0, 46%) 1fr; }
.kvl-teachers .kvl-sec-copy { position: relative; z-index: 1; grid-column: 2; }
.kvl-teachers .kvl-h2 { color: #0F172A; }
.kvl-teachers .kvl-text { color: #475569; }
.kvl-teach-art { position: absolute; top: 22px; left: 24px; bottom: 22px; width: calc(46% - 24px); margin: 0; pointer-events: none; display: flex; align-items: center; }
.kvl-teach-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; filter: drop-shadow(0 20px 32px rgba(76, 29, 149, 0.30)); }
[data-theme="dark"] .kvl-teachers { background: linear-gradient(135deg, color-mix(in srgb, var(--bg-card) 84%, #A78BFA), var(--bg-card)); border-color: var(--border); }
[data-theme="dark"] .kvl-teachers .kvl-h2 { color: var(--text); }
[data-theme="dark"] .kvl-teachers .kvl-text { color: var(--text-muted); }

/* Closing band */
.kvl-close {
    margin-top: 22px; text-align: center; border-radius: 26px; padding: 48px 24px; color: #fff;
    background: radial-gradient(60% 90% at 50% 0%, rgba(99, 102, 241, 0.45), transparent 70%), linear-gradient(160deg, #0B1530, #1A1446);
}
.kvl-close .kvl-h2 { color: #fff; }
.kvl-checks { list-style: none; padding: 0; margin: 20px auto 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.kvl-checks li { display: inline-flex; align-items: center; gap: 8px; color: rgba(226, 232, 240, 0.92); }
.kvl-checks .kvl-ico-sm { color: #38BDF8; }
.kvl-tagline { margin: 22px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; color: rgba(226, 232, 240, 0.8); }

/* ── top bar for signed-out visitors ───────────────────────────────────── */
/* Signed-out menu (2026-10-15): ☰ instead of the 2×2 app icon; hidden on
   wide screens where the links are in the bar; a dropdown below that. */
.menu-btn-icon-bars { display: none; }
html.kv-anon .menu-btn-icon-grid, html.kv-anon .menu-btn-icon-caret { display: none !important; }
html.kv-anon .menu-btn-icon-bars { display: block; width: 22px; height: 22px; }
@media (min-width: 1100px) { html.kv-anon #sidebarToggleBtn { display: none; } }
@media (max-width: 1099px) {
    html.kv-anon .kv-anon-nav.kv-open:not([hidden]) {
        display: flex; flex-direction: column; position: fixed; z-index: 1200;
        top: calc(var(--topbar-height, 64px) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
        padding: 8px 18px 16px; background: #071C33; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
    }
    html.kv-anon .kv-anon-nav.kv-open a { color: #E2E8F0; text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    html.kv-anon .kv-anon-nav.kv-open a:last-child { border-bottom: 0; }
}
.kv-anon-nav:not([hidden]) { display: none; }
.kv-su-short { display: none; }
@media (min-width: 1100px) {
    .kv-anon-nav:not([hidden]) { display: flex; gap: 26px; margin: 0 auto 0 34px; }
    .kv-anon-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
    .kv-anon-nav a:hover { color: var(--brand-blue); }
}
@media (max-width: 640px) {
    .kv-su-long { display: none; }
    .kv-su-short { display: inline; }
}

/* ── responsive ─────────────────────────────────────────────────────────── */
/* Below 1200px the banner is shorter than the copy, so covering would zoom
   the laptop under the headline (measured at 1024). Stack instead: copy on
   navy, then the WHOLE banner as its own block, then the feature strip. */
@media (max-width: 1199px) {
    .kvl-hero-stage { flex-direction: column; align-items: stretch; min-height: 0; }
    .kvl-hero-inner { order: 1; padding: 40px 36px 26px; text-align: center; }
    .kvl-hero-copy { max-width: 680px; margin: 0 auto; }
    .kvl-hero-eyebrow { display: block; }
    .kvl-hero .kvl-lead { margin-left: auto; margin-right: auto; }
    .kvl-hero .kvl-ctas { justify-content: center; }
    .kvl-hero .kvl-free { justify-content: center; }
    .kvl-hero .kvl-free::before { display: none; }
    .kvl-hero .kvl-h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
    .kvl-hero-bg {
        order: 2; position: relative; inset: auto; display: block; aspect-ratio: 2160 / 728;
        background:
            linear-gradient(180deg, #0B1530 0%, rgba(11, 21, 48, 0) 18%, rgba(11, 21, 48, 0) 82%, #0B1530 100%),
            url('i/home/hero-bg.webp') center / cover no-repeat;
    }
}
@media (max-width: 900px) {
    .kvl-doors { grid-template-columns: 1fr; gap: 10px; }
    .kvl-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .kvl-faq { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
    .kvl-subjtiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .kvl-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    /* Phones: crop the banner's dark left third away so the laptop + phone
       are big enough to read. */
    .kvl-hero-inner { padding: 34px 24px 22px; }
    .kvl-hero-bg {
        aspect-ratio: 1.65;
        background:
            linear-gradient(180deg, #0B1530 0%, rgba(11, 21, 48, 0) 22%, rgba(11, 21, 48, 0) 80%, #0B1530 100%),
            url('i/home/hero-bg-1200.webp') 84% 50% / auto 100% no-repeat;
    }
    .kvl-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 24px 26px; }
    .kvl-hero-eyebrow { display: block; }
    .kvl-lead { margin-left: auto; margin-right: auto; }
    .kvl-ctas { justify-content: center; }
    .kvl-free { justify-content: center; }
    .kvl-free::before { display: none; }
    .kvl-sec { grid-template-columns: 1fr; padding: 30px 24px; gap: 24px; }
    /* Picture slots follow their copy on a phone, except Page Scan where the
       notes picture sets up the headline (as in the phone mockup). */
    .kvl-teachers:not(.kvl-noart) { grid-template-columns: 1fr; }
    .kvl-teachers .kvl-sec-copy { grid-column: 1; }
    .kvl-teach-art { order: 2; position: relative; width: auto; margin: 0 -8px -12px; aspect-ratio: 1.5; }
    .kvl-teach-art img { object-position: center; }
    .kvl-ways:not(.kvl-noart) { grid-template-columns: 1fr; }
    .kvl-ways-art { position: relative; width: auto; margin: 0 -8px -12px; aspect-ratio: 1.5; }
    .kvl-ways-art img { object-position: center; }
    .kvl-sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .kvl { gap: 16px; }
    .kvl-hero-inner { padding: 30px 18px 18px; }
    .kvl-hero-eyebrow { font-size: 10.5px; letter-spacing: .07em; }
    .kvl-ctas { flex-direction: column; }
    .kvl-ctas .kvl-btn { width: 100%; }
    /* 2×2 with the short descriptions (2026-10-15): four across squeezed
       "Multiple Study Modes" and "Games & Competitions" onto two lines each. */
    .kvl-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; padding: 10px 20px 24px; }
    .kvl-feats li { align-items: flex-start; text-align: left; gap: 10px; }
    .kvl-feats b { font-size: .9rem; line-height: 1.25; }
    .kvl-feat-txt > span { font-size: .78rem; line-height: 1.3; }
    .kvl-feats .kvl-ico { width: 30px; height: 30px; }
    .kvl-sec { padding: 26px 18px; border-radius: 20px; }
    .kvl-steps { grid-template-columns: 1fr; gap: 12px; }
    .kvl-tiles-6, .kvl-ways:not(.kvl-noart) .kvl-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .kvl-subjtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .kvl-playtiles { gap: 8px; }
    .kvl-playtiles img { width: 40px; height: 40px; }
    .kvl-playtiles a { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .kvl-btn, .kvl-tiles a, .kvl-subjtiles a, .kvl-subjtiles button, .kvl-playtiles a { transition: none; }
    .kvl-btn:hover, .kvl-tiles a:hover, .kvl-playtiles a:hover { transform: none; }
}

/* ── BUILT BY A TEACHER (2026-10-16) ───────────────────────────────────
   A quiet, confident card beside the numbers — the one trust signal no
   competitor can copy. One column with a cap badge; no picture to wait on. */
.kvl-builtby {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 22px 24px; border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.22);
}
.kvl-builtby .kvl-sec-copy { max-width: 760px; }
.kvl-builtby-ico {
    flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #2563EB, #8B5CF6);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.kvl-builtby-ico .kvl-ico { width: 28px; height: 28px; }
:root[data-theme="dark"] .kvl-builtby { background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(139, 92, 246, 0.14)); border-color: rgba(139, 92, 246, 0.35); }
@media (max-width: 600px) { .kvl-builtby { flex-direction: column; gap: 12px; padding: 18px; } }

