/* LectureBot marketing site. Colors mirror LectureBot.Capture.Shared/Theme/LectureBotTheme.cs ("Purple Buzz":
   deep purple + periwinkle gradient, pale lavender page, rounded white cards, pill buttons, light Open Sans
   headings). Dark mode is the same design on deep indigo. No JavaScript anywhere. */

:root {
    --primary: #4232C2;
    --secondary: #6266EA;
    --tertiary: #9B8CFF;
    --gradient: linear-gradient(135deg, #4232C2 0%, #6266EA 100%);
    --bg: #F6F9FE;
    --bg-alt: #EFEFFD;
    --surface: #FFFFFF;
    --text: #212529;
    --text-muted: #6C7086;
    --line: #E6E6F5;
    --accent-text: #4232C2;
    --shadow: 0 10px 30px rgba(66, 50, 194, .08);
    --radius: 20px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #110F24;
        --bg-alt: #171436;
        --surface: #1C1940;
        --text: #ECEBFA;
        --text-muted: #A9A6CC;
        --line: #2C2858;
        --accent-text: #C4B9FF;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 16px; border-radius: 999px; }

:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 3px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.75em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(66, 50, 194, .3); }
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-sm { padding: .5em 1.25em; font-size: .9375rem; }

/* ── Header / nav ────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }

.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--text); }

@media (max-width: 760px) {
    .desktop-nav { display: none; }
    .nav-toggle { display: block; }
    .nav-toggle > summary {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; list-style: none; cursor: pointer; padding: 10px; border-radius: 12px;
    }
    .nav-toggle > summary::-webkit-details-marker { display: none; }
    .nav-toggle > summary span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 68px;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-nav a:not(.btn) { padding: 12px 4px; }
    .site-nav .btn { margin-top: 8px; }
}

/* ── Sections ────────────────────────────────────────────── */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
    display: inline-block; margin-bottom: 14px; font-size: .8125rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }
.lead { font-size: 1.1875rem; color: var(--text-muted); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    background: var(--gradient); color: #fff;
    padding: 96px 0 112px;
}
.hero::after {
    content: ""; position: absolute; inset: auto -10% -45% auto; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(155, 140, 255, .55) 0%, transparent 65%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 strong { font-weight: 700; }
.hero .lead { color: rgba(255, 255, 255, .85); max-width: 540px; }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .875rem; color: rgba(255, 255, 255, .7); }

.page-hero { padding: 72px 0 64px; }
.page-hero .container { display: block; }

/* A stylised callout card stack in the hero, built from markup rather than a screenshot. */
.hero-card {
    background: var(--surface); color: var(--text); border-radius: 24px; padding: 24px;
    box-shadow: 0 30px 60px rgba(20, 10, 80, .35);
}
.hero-card + .hero-card { margin-top: -8px; margin-left: 32px; transform: rotate(1.5deg); }
.hero-card .meta { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--text-muted); margin-bottom: 10px; }
.hero-card blockquote { margin: 0; font-size: 1.0625rem; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--tertiary) 22%, transparent); color: var(--accent-text);
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ── Cards / grids ───────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--text-muted); margin: 0; }
.card .icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
    background: var(--gradient); color: #fff;
}
.card .icon svg { width: 24px; height: 24px; }

/* ── Flagship callouts split ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gradient) center / 100%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
}
.check-list li::after {
    content: ""; position: absolute; left: 7px; top: calc(.2em + 6px); width: 8px; height: 5px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

.callout-stack { display: grid; gap: 14px; }
.callout-stack .card { padding: 20px 22px; }
.callout-stack .card p { color: var(--text); }
.callout-stack .card .meta { font-size: .8125rem; color: var(--text-muted); margin-top: 8px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 24px; left: 28px;
    font-size: 1.75rem; font-weight: 300; color: var(--accent-text);
}

/* ── Platforms strip ─────────────────────────────────────── */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.platforms span {
    padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    font-weight: 600; color: var(--text-muted);
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
    background: var(--gradient); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center;
    box-shadow: 0 30px 60px rgba(66, 50, 194, .25);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 28px; }

/* ── Features page ───────────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.toc a { padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem; }
.toc a:hover { background: rgba(255, 255, 255, .28); }
.feature-row { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.feature-row:last-child { border-bottom: 0; }
.feature-row .icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--gradient); color: #fff; }
.feature-row .icon svg { width: 30px; height: 30px; }
.feature-row h2 { font-size: 1.75rem; }
.feature-row ul { color: var(--text-muted); padding-left: 1.2em; margin: 0; }
.feature-row li { margin-bottom: 6px; }
.feature-row .flag { margin-left: 10px; vertical-align: middle; }

/* ── Pricing ─────────────────────────────────────────────── */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.5rem; font-weight: 300; margin: 8px 0 4px; color: var(--text); }
.plan .price small { font-size: 1rem; color: var(--text-muted); }
.plan ul { padding-left: 1.2em; color: var(--text-muted); margin: 16px 0 24px; flex: 1; }
.plan.featured { border: 2px solid var(--secondary); }
.notice {
    border-radius: var(--radius); padding: 28px 32px; background: var(--surface); border: 1px dashed var(--tertiary);
    text-align: center;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq details {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px;
    padding: 0 24px;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
    font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; font-weight: 300; color: var(--accent-text);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 20px; color: var(--text-muted); }

/* ── Legal ───────────────────────────────────────────────── */
.legal h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.draft-banner {
    border-radius: 14px; padding: 14px 20px; margin-bottom: 32px; font-size: .9375rem;
    background: color-mix(in srgb, #E08A00 14%, var(--surface)); border: 1px solid color-mix(in srgb, #E08A00 40%, transparent);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; }
.footer-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.footer-links a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--accent-text); }
.footer-legal { margin-top: 40px; font-size: .875rem; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero .container, .split { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { max-width: 520px; }
}
@media (max-width: 640px) {
    section { padding: 64px 0; }
    .hero { padding: 64px 0 80px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-row { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 16px; }
    .cta-band { padding: 40px 24px; }
    .hero-card + .hero-card { margin-left: 16px; }
    .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
.feature-card { text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.feature-card:hover { transform: translateY(-2px); border-color: var(--tertiary); }
