/* Spotlight: the public homepage only. Shared legal/admin styles remain in site.css. */
.spotlight-page {
    --paper: #ffffff;
    --mist: #f4f6f5;
    --surface: #ffffff;
    --ink: #111413;
    --muted: #5f6563;
    --quiet: #7a8380;
    --line: #ececec;
    --accent: #11816b;
    --brand: #11816b;
    --brand-deep: #0d6d5c;
    --brand-content: #ffffff;
    --night: #0c1110;
    --night-surface: #1d2725;
    --night-ink: #f2f5f4;
    --night-muted: #a8b2ae;
    --night-quiet: #7d8884;
    --night-accent: #5fcaa8;
    --float-shadow: 0 24px 50px -24px rgb(0 0 0 / 25%);
    --phone-shadow: 0 50px 100px -30px rgb(0 0 0 / 35%);
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
:root[data-theme="flashcard-dark"] .spotlight-page {
    --paper: #0f1211;
    --mist: #161a19;
    --surface: #1e2322;
    --ink: #eef1f0;
    --muted: #a9b1ae;
    --quiet: #858f8b;
    --line: #272d2b;
    --accent: #5fcaa8;
    --night: #070a09;
    --night-surface: #18201e;
    --float-shadow: 0 24px 50px -24px rgb(0 0 0 / 70%);
    --phone-shadow: 0 50px 100px -30px rgb(0 0 0 / 80%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .spotlight-page {
        --paper: #0f1211; --mist: #161a19; --surface: #1e2322; --ink: #eef1f0;
        --muted: #a9b1ae; --quiet: #858f8b; --line: #272d2b; --accent: #5fcaa8;
        --night: #070a09; --night-surface: #18201e;
        --float-shadow: 0 24px 50px -24px rgb(0 0 0 / 70%);
        --phone-shadow: 0 50px 100px -30px rgb(0 0 0 / 80%);
    }
}

.spot-wrap, .spotlight-page .site-footer.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.spotlight-page h1, .spotlight-page h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
.spot-quiet { color: var(--quiet); }
.spot-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spot-kicker { margin: 0 0 18px; color: var(--accent); font-size: 15px; font-weight: 600; }
.spot-lede { max-width: 32em; margin: 0 auto; color: var(--muted); font-size: 20px; line-height: 1.55; }
.spot-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

/* Buttons and links */
.spot-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background-color .15s, transform .15s; }
.spot-button:active { transform: translateY(1px); }
.spot-button-ink { background: var(--ink); color: var(--paper); }
.spot-button-ink:hover { background: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.spot-button-brand { background: var(--brand); color: var(--brand-content); }
.spot-button-brand:hover { background: var(--brand-deep); }
.spot-button-light { background: var(--night-ink); color: var(--night); }
.spot-button-light:hover { background: #ffffff; }
.spot-button-small { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.spot-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding-inline: 18px; color: var(--accent); font-size: 16px; font-weight: 600; }
.spot-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Header */
.spot-header { border-bottom: 1px solid var(--line); }
.spot-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.spotlight-page .brand { font-size: 17px; font-weight: 600; letter-spacing: -.3px; gap: 9px; }
.spotlight-page .brand-light { font-weight: inherit; }
.spotlight-page .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.spot-navigation { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.spot-navigation-link:hover { color: var(--ink); }

/* Hero */
.spot-hero { padding-top: 96px; overflow: hidden; text-align: center; background: linear-gradient(var(--paper), var(--mist)); }
.spot-hero h1 { max-width: 12em; margin: 0 auto 24px; font-size: clamp(50px, 7.2vw, 104px); line-height: .98; letter-spacing: -.05em; }
.spot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.spot-stage { position: relative; max-width: 860px; height: 600px; margin: 72px auto 0; }
.spot-phone { position: absolute; left: 50%; top: 0; width: 300px; padding: 8px 8px 0; border-radius: 50px 50px 0 0; background: #121514; box-shadow: var(--phone-shadow); transform: translateX(-50%); }
.spot-phone img { display: block; width: 100%; height: 592px; object-fit: cover; object-position: top; border-radius: 42px 42px 0 0; }
.spot-float { position: absolute; display: grid; padding: 22px; border-radius: 20px; background: var(--surface); text-align: left; box-shadow: var(--float-shadow); }
.spot-float-left { left: 0; top: 120px; width: 230px; transform: rotate(-4deg); }
.spot-float-right { right: 0; top: 70px; width: 220px; transform: rotate(3deg); }
.spot-float-deck { margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.spot-float-front { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.spot-float-back { margin-top: 8px; color: var(--accent); font-size: 15px; }
.spot-float-question { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.spot-chip { position: absolute; right: 60px; top: 330px; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; box-shadow: var(--float-shadow); }
.spot-chip svg { width: 16px; height: 16px; color: var(--accent); }

/* Reasons */
.spot-reasons { padding-block: 120px; background: var(--mist); }
.spotlight-page h2 { max-width: 14em; margin: 0 auto 20px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.04em; text-align: center; }
.spot-reasons h2 { margin-bottom: 56px; }
.spot-reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.spot-reason { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 280px; padding: 40px 32px; border-radius: 28px; background: var(--surface); }
.spot-reason-number { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.spot-reason h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.spot-reason p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Try a card */
.spot-try { padding-block: 120px; text-align: center; scroll-margin-top: 16px; }
.spot-try .spot-lede { margin-bottom: 56px; font-size: 19px; line-height: 1.6; }
.spot-demo { width: min(480px, 100%); margin-inline: auto; padding: 28px; border-radius: 28px; background: var(--mist); }
.spot-demo-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; text-align: left; }
.spot-card { position: relative; }
.spot-card summary { display: flex; flex-direction: column; align-items: center; gap: 24px; list-style: none; cursor: pointer; border-radius: 20px; }
.spot-card summary::-webkit-details-marker { display: none; }
.spot-card-front { width: 100%; margin-top: 24px; padding: 64px 24px; border-radius: 20px; background: var(--surface); box-shadow: 0 20px 40px -28px rgb(0 0 0 / 30%); font-family: var(--display); font-size: clamp(40px, 4vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.spot-card-toggle { display: inline-flex; align-items: center; min-height: 52px; padding: 0 32px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; transition: background-color .15s; }
.spot-card summary:hover .spot-card-toggle { background: var(--brand); color: var(--brand-content); }
.spot-hide, .spot-card[open] .spot-reveal { display: none; }
.spot-card[open] .spot-hide { display: inline; }
.spot-card[open] summary { gap: 0; }
.spot-card[open] .spot-card-front { padding-bottom: 32px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.spot-card[open] .spot-card-toggle,
.spot-card[open] summary:hover .spot-card-toggle { position: absolute; top: 36px; right: 14px; min-height: 32px; padding: 0 10px; background: none; color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.spot-card-answer { padding: 20px 24px 32px; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; background: var(--surface); box-shadow: 0 20px 40px -28px rgb(0 0 0 / 30%); }
.spot-card-answer > span { color: var(--accent); font-size: 24px; font-weight: 600; }
.spot-card-answer p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Interactive practice demo: a browser-only copy of the app's practice screen. */
.spot-demo [hidden] { display: none !important; }
.demo-practice { margin-top: 20px; }
.demo-progress { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.demo-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .3s ease; }
.demo-counter-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 12px; }
.demo-counter { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.demo-direction { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.demo-direction-lock { width: 12px; height: 12px; margin: 0 4px 0 6px; color: var(--muted); }
.demo-direction-option { min-height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.demo-direction-option[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 14%); }
.demo-direction-option:hover:not(:disabled) { color: var(--ink); }
.demo-direction-option:disabled { cursor: default; opacity: .55; }
.demo-direction-option:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.demo-viewport { overflow: hidden; border-radius: 22px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.demo-viewport:active { cursor: grabbing; }
.demo-viewport:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.demo-strip { display: flex; gap: 16px; will-change: transform; }
.demo-strip.is-animated { transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.demo-card { position: relative; flex: 0 0 100%; min-height: 260px; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 20px 40px -28px rgb(0 0 0 / 30%); }
.demo-card:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }
.demo-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 24px 28px; }
.demo-card-back, .demo-card.is-revealed .demo-card-front { visibility: hidden; }
.demo-card.is-revealed .demo-card-back { visibility: visible; }
.demo-card-label { position: absolute; top: 20px; left: 22px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.demo-card-text { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.demo-card-back .demo-card-text { color: var(--accent); font-size: clamp(24px, 3.2vw, 32px); }
.demo-card-question { color: var(--muted); font-size: 15px; }
.demo-card-note { max-width: 32ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.demo-status { min-height: 1.5em; margin: 16px 0 18px; color: var(--muted); font-size: 14px; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-answer { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; white-space: nowrap; border: 2px solid transparent; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.demo-answer svg { width: 20px; height: 20px; flex: none; }
.demo-answer-learning { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.demo-answer-got { background: var(--ink); color: var(--paper); }
.demo-answer:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.demo-answer.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.demo-answer:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.demo-done { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; padding: 24px 12px; }
.demo-done-title { margin: 0; font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.demo-done-text { max-width: 34ch; margin: 12px auto 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.demo-restart { min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.demo-restart:hover { background: var(--brand); color: var(--brand-content); }
@media (prefers-reduced-motion: reduce) {
    .demo-strip.is-animated, .demo-progress span { transition: none; }
}
@media (max-width: 560px) {
    .demo-card { min-height: 220px; }
    .demo-answer { min-height: 48px; gap: 6px; padding: 0 10px; font-size: 15px; }
    .demo-answer svg { width: 18px; height: 18px; }
}

/* AI companion */
.spot-ai { padding-block: 120px; background: var(--night); color: var(--night-ink); text-align: center; scroll-margin-top: 0; }
.spot-ai .spot-kicker { color: var(--night-accent); }
.spot-ai h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
.spot-ai .spot-quiet { color: var(--night-quiet); }
.spot-ai .spot-lede { color: var(--night-muted); font-size: 19px; line-height: 1.6; }
.spot-mcp-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; max-width: 920px; margin: 56px auto 0; padding: 0; list-style: none; }
.spot-mcp-node { display: grid; justify-items: center; gap: 6px; height: 100%; padding: 26px 20px; border: 1px solid color-mix(in srgb, var(--night-ink) 12%, transparent); border-radius: 20px; background: var(--night-surface); }
.spot-mcp-node svg { width: 48px; height: 48px; margin-bottom: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--night-accent) 14%, transparent); fill: none; stroke: var(--night-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spot-mcp-node strong { font-size: 16px; }
.spot-mcp-node span { color: var(--night-muted); font-size: 14px; line-height: 1.5; }
.spot-mcp-node-library { border-color: var(--night-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--night-accent) 14%, transparent); }
.spot-mcp-link { display: grid; justify-items: center; gap: 8px; color: var(--night-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spot-mcp-link::before { content: ""; width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--night-accent) 0 6px, transparent 6px 11px); }
.spot-mcp-analogy { max-width: 40em; margin: 44px auto 0; color: var(--night-muted); font-size: 18px; line-height: 1.6; }
.spot-mcp-analogy strong { color: var(--night-ink); }
.spot-mcp-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 44px auto 0; text-align: left; }
.spot-mcp-faq div { padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--night-ink) 14%, transparent); }
.spot-mcp-faq dt { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.spot-mcp-faq dd { margin: 0; color: var(--night-muted); font-size: 14px; line-height: 1.55; }
.spot-ai-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 40px; }
.spot-ai-privacy { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-ink); font-size: 14px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--night-ink) 40%, transparent); text-underline-offset: 5px; }
.spot-ai a:focus-visible { outline-color: var(--night-ink); }

/* Closing */
.spot-closing { padding-block: 128px; text-align: center; }
.spot-closing h2 { margin-bottom: 32px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -.05em; }
.spotlight-page .site-footer { border-top: 1px solid var(--line); padding-block: 28px; }

@media (prefers-reduced-motion: no-preference) {
    .spot-card[open] .spot-card-answer { animation: spot-reveal .3s ease-out both; }
}
@keyframes spot-reveal {
    from { opacity: 0; transform: translateY(-6px); }
}

@media (max-width: 900px) {
    .spot-reason-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .spot-reason { min-height: 0; padding: 28px 24px; gap: 20px; }
    .spot-reason-number { font-size: 40px; }
    .spot-stage { max-width: 600px; }
    .spot-float-right { display: none; }
    .spot-mcp-flow { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 10px; margin-top: 40px; }
    .spot-mcp-link { display: flex; justify-content: center; align-items: center; gap: 10px; }
    .spot-mcp-link::before { width: 2px; height: 28px; background: repeating-linear-gradient(180deg, var(--night-accent) 0 6px, transparent 6px 11px); }
    .spot-mcp-faq { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 18px; }
}
@media (max-width: 640px) {
    .spot-wrap, .spotlight-page .site-footer.wrap { width: calc(100% - 40px); }
    .spot-header-inner { min-height: 60px; }
    .spotlight-page .brand { font-size: 16px; gap: 8px; }
    .spotlight-page .brand-mark { width: 26px; height: 26px; }
    .spot-navigation-link { display: none; }
    .spot-hero { padding-top: 56px; }
    .spot-kicker { margin-bottom: 14px; font-size: 14px; }
    .spot-hero h1 { margin-bottom: 18px; font-size: clamp(40px, 12.8vw, 54px); line-height: 1; letter-spacing: -.045em; }
    .spot-lede { font-size: 17px; }
    .spot-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 28px; }
    .spot-text-link { justify-content: center; }
    .spot-stage { width: min(350px, 100%); height: 440px; margin-top: 32px; }
    .spot-phone { width: 220px; padding: 6px 6px 0; border-radius: 38px 38px 0 0; }
    .spot-phone img { height: 434px; border-radius: 32px 32px 0 0; }
    .spot-float { padding: 14px; border-radius: 16px; }
    .spot-float-left { left: -4px; top: 90px; width: 140px; transform: rotate(-5deg); }
    .spot-float-deck { margin-bottom: 10px; font-size: 10px; }
    .spot-float-front { font-size: 18px; }
    .spot-float-back { margin-top: 4px; font-size: 12px; }
    .spot-chip { right: -4px; top: 250px; gap: 6px; padding: 9px 12px; font-size: 12px; }
    .spot-chip svg { width: 14px; height: 14px; }
    .spot-reasons, .spot-try, .spot-ai { padding-block: 72px; }
    .spot-reasons h2 { margin-bottom: 32px; }
    .spot-try .spot-lede, .spot-ai .spot-lede { font-size: 16px; }
    .spot-try .spot-lede { margin-bottom: 32px; }
    .spot-demo { padding: 18px; border-radius: 24px; }
    .spot-demo-meta { font-size: 12px; }
    .spot-card-front { padding: 48px 16px; }
    .spot-card-toggle { align-self: stretch; justify-content: center; }
    .spot-mcp-analogy { font-size: 16px; }
    .spot-ai-actions { flex-direction: column; align-items: stretch; }
    .spot-ai-privacy { justify-content: center; }
    .spot-closing { padding-block: 80px; }
    .spot-closing .spot-button { display: flex; }
}
@media (max-width: 360px) {
    /* Keep the brand and beta button on one row; wrap rather than overflow when fonts render wider. */
    .spot-header-inner { flex-wrap: wrap; gap: 8px 10px; padding-block: 10px; }
    .spotlight-page .brand { font-size: 15px; gap: 7px; }
    .spotlight-page .brand-mark { width: 24px; height: 24px; }
    .spot-header .spot-button-small { min-height: 36px; padding: 8px 12px; font-size: 13px; }
    .spot-float-left { display: none; }
    .spot-chip { right: 0; }
}

/* ChatGPT and Claude marks in the AI section. */
.spot-mcp-logos { display: flex; gap: 8px; margin-bottom: 8px; }
.spot-mcp-node .spot-mcp-logos svg { width: 48px; height: 48px; margin: 0; padding: 11px; border-radius: 14px; background: color-mix(in srgb, var(--night-ink) 8%, transparent); color: var(--night-ink); stroke: none; }
.spot-ai-guide { gap: 8px; }
.spot-ai-guide .ai-logo { width: 18px; height: 18px; flex: none; }
