﻿/*
 * app.css — AIFI Studio main stylesheet  (~22,000 lines)
 *
 * TABLE OF CONTENTS
 * ─────────────────────────────────────────────────────────────────────
 *  1. CSS Variables / Design Tokens          :root { ... }
 *  2. Carousel / Menu Cards                 .demo-card, .demo-card-*
 *  3. Matte composite card                  .demo-matte-*
 *  4. Step-flow indicators                  .wf-step-*
 *  5. Workspace shell                       .demo-effect-shell, .workspace-grid
 *  6. Rail importer (left asset panel)      .workspace-rail-*
 *  7. Render history panel                  .history-*
 *  8. Result / job status pages             .direct-job-*, .result-*
 *  9. Auth pages                            .auth-card, .auth-brand
 * 10. Admin dashboard                       .admin-*, .spending-*
 * 11. Account / billing / profile           .ui-lab-*, .account-*
 * 12. Home page / hero                      .home-*, .hero-*
 * 13. Pricing page                          .pricing-*
 * 14. Workflows page                        .workflows-*
 * 15. Chain / compound workflow             .cg-*, .chain-*
 * 16. Mobile studio (< 720px)              .mobile-studio, @media < 720px
 * 17. 3-Panel layout                        .wf-triptych, .wf-triptych-*
 * 18. Banners / modals / popovers           .beta-*, .flash-*, .modal-*
 * 19. FaithTools theme (clergy brand)       .brand-clergy, .wf-hymn-lib
 * 20. Scanner / App Engine pages            .scanner-*, .engine-*
 * 21. Kids Studio / KidVid                  .kidvid-*
 * 22. AI Chat widget                        .tool-chat-*
 * ─────────────────────────────────────────────────────────────────────
 */

:root {
    --bg: #111318;
    --panel: rgba(25, 28, 34, 0.94);
    --panel-strong: rgba(30, 34, 42, 0.98);
    --panel-border: rgba(255, 255, 255, 0.08);
    --ink: #edf1f7;
    --muted: #98a2b3;
    --accent: #f28b3c;
    --accent-dark: #d66f22;
    --accent-soft: rgba(242, 139, 60, 0.16);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 22px 52px rgba(0, 0, 0, 0.36);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(77, 114, 255, 0.08), transparent 20%),
        linear-gradient(180deg, #111318 0%, #0b0d11 100%);
}

.page-shell {
    max-width: none;
    width: calc(100vw - 12px);
    margin: 0 auto;
    padding: 0 6px 14px;
}

.page-shell.shell-mode {
    max-width: none;
    /* Same issue as `.wf-unified-shell`: `calc(100vw - 12px)` measures against the
       layout viewport while a visible scrollbar shrinks the *visual* width, so the
       shell can end up a few pixels wider than the view → horizontal page scroll. */
    width: 100%;
    max-width: 100%;
    padding: 8px 6px 8px;
    /* Pin the shell to the viewport — no body scroll in workspace mode.
       Brandbar + carousel stay at the top; only panel body scrolls internally. */
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Studio (shell-mode): lock html/body so no stray overflow from the shell grid,
   min-content strips, or floating UI can create document-level scrollbars. The
   <main> was already overflow:hidden, but the scroll container was often still
   the document — especially when `100vw` vs scrollbar width mis-measured. */
html:has(.page-shell.shell-mode),
body:has(.page-shell.shell-mode) {
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
}

.hero {
    padding: 16px 0 12px;
}

.hero.compact {
    padding-top: 6px;
    padding-bottom: 8px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.02;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.lede,
.muted {
    color: var(--muted);
}

.card-grid,
.two-column {
    display: grid;
    gap: 22px;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.two-column {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

