/* PDFModule Studio — standalone app shell. Intentionally independent of the
   developer dashboard's style.css so the two products look distinct. */

/* Light theme is the default. */
:root {
    --st-bg: #f6f8fb;
    --st-panel: #ffffff;
    --st-panel-2: #eef1f5;
    --st-line: #e2e7ee;
    --st-ink: #1b2430;
    --st-ink-dim: #5c6775;
    --st-accent: #2f6fe0;
    --st-accent-2: #7c5cff;
    --st-ok: #1f9d57;
    --st-warn: #c9851b;
    --st-err: #dc2626;
    --st-radius: 12px;
    --st-bg-rgb: 246, 248, 251;       /* --st-bg as rgb, for translucent chrome */
    --st-accent-rgb: 47, 111, 224;
    --st-accent-2-rgb: 124, 92, 255;
    --st-ok-rgb: 31, 157, 87;
    --st-warn-rgb: 201, 133, 27;
}

/* Dark theme (opt-in via the rail toggle). */
[data-theme="dark"] {
    --st-bg: #0f1216;
    --st-panel: #171c22;
    --st-panel-2: #1e242c;
    --st-line: #2a323c;
    --st-ink: #e7ecf2;
    --st-ink-dim: #9aa6b2;
    --st-accent: #4f9dff;
    --st-accent-2: #7c5cff;
    --st-ok: #2fbf71;
    --st-warn: #f0a92b;
    --st-err: #ef5b5b;
    --st-bg-rgb: 15, 18, 22;
    --st-accent-rgb: 79, 157, 255;
    --st-accent-2-rgb: 124, 92, 255;
    --st-ok-rgb: 47, 191, 113;
    --st-warn-rgb: 240, 169, 43;
}

* { box-sizing: border-box; }

body.studio {
    margin: 0;
    background: var(--st-bg);
    color: var(--st-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--st-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Left rail ───────────────────────────────────────────── */
.studio-rail {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 220px;
    background: var(--st-panel);
    border-right: 1px solid var(--st-line);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}
.studio-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--st-ink); font-weight: 700; font-size: 18px;
    margin-bottom: 28px;
}
.studio-brand:hover { text-decoration: none; }
.studio-brand__mark {
    color: var(--st-accent);
    background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 22px;
}
.studio-nav { display: flex; flex-direction: column; gap: 4px; }
.studio-nav a {
    color: var(--st-ink-dim);
    padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.studio-nav a:hover { background: var(--st-panel-2); color: var(--st-ink); text-decoration: none; }
.studio-nav a.is-active { background: var(--st-panel-2); color: var(--st-ink); font-weight: 600; }
.studio-rail__foot { margin-top: auto; font-size: 13px; color: var(--st-ink-dim); }
.studio-seat {
    background: var(--st-panel-2); border: 1px solid var(--st-line);
    border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.studio-seat__count { font-weight: 700; color: var(--st-ink); }
.studio-user { margin-bottom: 6px; word-break: break-all; }
.studio-link-btn {
    background: none; border: none; color: var(--st-accent);
    padding: 0; cursor: pointer; font-size: 13px; display: block; margin-bottom: 6px;
}
.studio-langswitch { font-size: 12px; margin-bottom: 6px; }
.studio-langswitch a { color: var(--st-ink-dim); }
.studio-langswitch a.is-active { color: var(--st-ink); font-weight: 700; }

/* ── Main column ─────────────────────────────────────────── */
.studio-main { padding: 36px clamp(20px, 5vw, 56px); }
.studio-main--railed { margin-left: 220px; }
/* Centered, laptop-friendly content width in the space right of the rail. */
.studio-shell { max-width: 1280px; margin: 0 auto; width: 100%; }
body.studio--bare .studio-shell { max-width: none; }

.studio-h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.studio-sub { color: var(--st-ink-dim); margin: 0 0 28px; }

.studio-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.studio-alert--ok { background: rgba(47,191,113,.12); border: 1px solid var(--st-ok); }
.studio-alert--err { background: rgba(239,91,91,.12); border: 1px solid var(--st-err); }

/* ── Cards / panels ──────────────────────────────────────── */
.studio-card {
    background: var(--st-panel);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    padding: 20px;
}
.studio-card + .studio-card { margin-top: 16px; }
.studio-card__title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }

/* ── Drop zone ───────────────────────────────────────────── */
.studio-drop {
    border: 2px dashed var(--st-line);
    border-radius: 16px;
    padding: 56px 24px;
    text-align: center;
    background: var(--st-panel);
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.studio-drop.is-over { border-color: var(--st-accent); background: var(--st-panel-2); }
.studio-drop__icon { font-size: 40px; }
.studio-drop__title { font-size: 18px; font-weight: 600; margin: 12px 0 4px; }
.studio-drop__hint { color: var(--st-ink-dim); font-size: 14px; }
.studio-drop input[type=file] { display: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.studio-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--st-accent); color: #fff; border: none;
    padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none;
}
.studio-btn:hover { filter: brightness(1.08); text-decoration: none; }
.studio-btn[disabled] { opacity: .5; cursor: not-allowed; }
.studio-btn--ghost { background: var(--st-panel-2); color: var(--st-ink); border: 1px solid var(--st-line); }
.studio-btn--lg { padding: 14px 26px; font-size: 16px; }
.studio-btn--sm { padding: 6px 12px; font-size: 13px; }

/* Before/after thumbnails */
.studio-thumbs { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.studio-thumbs figure { margin: 0; text-align: center; }
.studio-thumbs img { max-width: 180px; max-height: 240px; background: #fff; border: 1px solid var(--st-line); border-radius: 6px; display: block; }
.studio-thumbs figcaption { font-size: 12px; color: var(--st-ink-dim); margin-top: 6px; }
.studio-thumbs__arrow { font-size: 22px; color: var(--st-ink-dim); }

/* One-click make print-ready */
.studio-makeready {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(79,157,255,.14), rgba(124,92,255,.14));
    border: 1px solid var(--st-accent); border-radius: var(--st-radius);
    padding: 18px 20px; margin: 8px 0 8px;
}
.studio-makeready__main strong { font-size: 16px; }
.studio-makeready__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Two-column job cockpit */
.studio-cockpit {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: 20px; align-items: start; margin-top: 18px;
}
@media (max-width: 1040px) { .studio-cockpit { grid-template-columns: 1fr; } }
.studio-cockpit__side { display: flex; flex-direction: column; gap: 14px; }
.studio-cockpit__side .studio-cap { margin: 0; }

/* Advanced (manual fix/impose) disclosure */
.studio-advanced {
    margin-top: 20px; border: 1px solid var(--st-line);
    border-radius: var(--st-radius); background: var(--st-panel);
}
.studio-advanced > summary {
    padding: 14px 18px; cursor: pointer; font-weight: 600;
    list-style: none; color: var(--st-ink);
}
.studio-advanced > summary::-webkit-details-marker { display: none; }
.studio-advanced > summary::before { content: "▸ "; color: var(--st-ink-dim); }
.studio-advanced[open] > summary::before { content: "▾ "; }
.studio-advanced__body { padding: 0 18px 18px; display: grid; gap: 16px; }

/* Approval status */
.studio-approval { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; font-size: 14px; border: 1px solid var(--st-line); }
.studio-approval--ok { background: rgba(47,191,113,.12); border-color: var(--st-ok); }
.studio-approval--warn { background: rgba(240,169,43,.12); border-color: var(--st-warn); }
.studio-approval--err { background: rgba(239,91,91,.12); border-color: var(--st-err); }
.studio-approval--muted { background: var(--st-panel-2); }
.studio-approval-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--st-line); color: var(--st-ink-dim); }
.studio-approval-tag.studio-approval--ok { color: var(--st-ok); border-color: rgba(47,191,113,.5); }
.studio-approval-tag.studio-approval--warn { color: var(--st-warn); border-color: rgba(240,169,43,.5); }
.studio-approval-tag.studio-approval--err { color: var(--st-err); border-color: rgba(239,91,91,.5); }

/* Trial banner */
.studio-trialbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(124,92,255,.12); border: 1px solid var(--st-accent-2);
    color: var(--st-ink); padding: 10px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}

/* ── Stepper ─────────────────────────────────────────────── */
.studio-steps { display: flex; gap: 12px; margin: 8px 0 24px; flex-wrap: wrap; }
.studio-step {
    flex: 1 1 200px; min-width: 180px;
    background: var(--st-panel); border: 1px solid var(--st-line);
    border-radius: var(--st-radius); padding: 16px;
}
.studio-step__head { display: flex; align-items: center; justify-content: space-between; }
.studio-step__name { font-weight: 700; text-transform: capitalize; }
.studio-step__state { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--st-panel-2); color: var(--st-ink-dim); }
.studio-step.is-pending .studio-step__state { color: var(--st-ink-dim); }
.studio-step.is-processing { border-color: var(--st-accent); }
.studio-step.is-processing .studio-step__state { color: var(--st-accent); }
.studio-step.is-completed { border-color: var(--st-ok); }
.studio-step.is-completed .studio-step__state { color: var(--st-ok); }
.studio-step.is-failed { border-color: var(--st-err); }
.studio-step.is-failed .studio-step__state { color: var(--st-err); }

/* ── Capability cards ────────────────────────────────────── */
.studio-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.studio-cap {
    background: var(--st-panel); border: 1px solid var(--st-line);
    border-radius: var(--st-radius); padding: 18px;
}
.studio-cap h3 { margin: 0 0 6px; font-size: 15px; }
.studio-cap p { margin: 0 0 14px; color: var(--st-ink-dim); font-size: 13px; }

/* ── Forms ───────────────────────────────────────────────── */
.studio-field { margin-bottom: 14px; }
.studio-field label { display: block; font-size: 13px; color: var(--st-ink-dim); margin-bottom: 6px; }
.studio-input, .studio-select {
    width: 100%; background: var(--st-bg); color: var(--st-ink);
    border: 1px solid var(--st-line); border-radius: 8px; padding: 9px 12px; font-size: 14px;
}
.studio-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.studio-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio-subfield { margin: 6px 0 10px 22px; padding: 10px; border-left: 2px solid var(--st-line); background: var(--st-bg); border-radius: 6px; }
.studio-subfield .studio-select + .studio-select { margin-top: 6px; }

/* ── Preflight report ────────────────────────────────────── */
.studio-hero { border-radius: var(--st-radius); padding: 22px; margin-bottom: 18px; color: #fff; }
.studio-hero--green { background: linear-gradient(135deg,#1f9d57,#2fbf71); }
.studio-hero--amber { background: linear-gradient(135deg,#c9851b,#f0a92b); }
.studio-hero--red   { background: linear-gradient(135deg,#c23b3b,#ef5b5b); }
.studio-hero h2 { margin: 0 0 6px; }
.studio-counts { display: flex; gap: 16px; margin-bottom: 16px; }
.studio-count b { font-size: 20px; }
.studio-issue { border: 1px solid var(--st-line); border-left-width: 4px; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.studio-issue--critical { border-left-color: var(--st-err); }
.studio-issue--warning { border-left-color: var(--st-warn); }
.studio-issue--info { border-left-color: var(--st-accent); }
.studio-issue h4 { margin: 0 0 4px; font-size: 14px; }
.studio-issue p { margin: 0; color: var(--st-ink-dim); font-size: 13px; }

/* ── Impose preview canvas ───────────────────────────────── */
.studio-preview-wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.studio-canvas-box { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 8px; padding: 14px; }
#studio-sheet { background: #fff; border-radius: 4px; display: block; min-height: 120px; }
.studio-sheet-svg { background: #fff; border-radius: 4px; padding: 6px; }
.studio-alt-chip {
    display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px;
    background: var(--st-panel-2); border: 1px solid var(--st-line);
    border-radius: 999px; color: var(--st-ink); font-size: 12px; cursor: pointer;
}
.studio-alt-chip:hover { border-color: var(--st-accent); color: var(--st-accent); }
.studio-impose-error { background: rgba(239,91,91,.12); border: 1px solid var(--st-err); color: var(--st-err); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.studio-impose-note { background: rgba(240,169,43,.14); border: 1px solid var(--st-warn); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.studio-metrics { font-size: 14px; }
.studio-metrics dt { color: var(--st-ink-dim); font-size: 12px; margin-top: 10px; }
.studio-metrics dd { margin: 2px 0 0; font-weight: 600; }
.studio-alts { margin-top: 14px; font-size: 13px; color: var(--st-ink-dim); }

/* ── Job list ────────────────────────────────────────────── */
.studio-jobs { list-style: none; padding: 0; margin: 24px 0 0; }
.studio-jobs li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border: 1px solid var(--st-line); border-radius: 8px; margin-bottom: 8px;
    background: var(--st-panel);
}
.studio-jobs .badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--st-panel-2); color: var(--st-ink-dim); }
.studio-jobs .badge.completed { color: var(--st-ok); }
.studio-jobs .badge.failed { color: var(--st-err); }
.studio-jobs .badge.processing { color: var(--st-accent); }

/* ── Auth / landing ──────────────────────────────────────── */
.studio-auth { max-width: 420px; margin: 8vh auto; }
.studio-auth .studio-card { padding: 32px; }
.studio-hero-landing { text-align: center; max-width: 720px; margin: 10vh auto 0; }
.studio-hero-landing h1 { font-size: 40px; margin: 0 0 12px; }
.studio-hero-landing p { font-size: 18px; color: var(--st-ink-dim); margin: 0 0 28px; }
.studio-price { font-size: 15px; color: var(--st-ink-dim); margin-top: 16px; }
.studio-muted { color: var(--st-ink-dim); font-size: 13px; }
.studio-hide { display: none !important; }

/* ── Marketing landing ───────────────────────────────────── */
/* Landing renders in the bare layout; let it control full width. */
body.studio--bare .studio-main { max-width: none; padding: 0; }

.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(var(--st-bg-rgb), .72); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: height .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.lp-nav.is-scrolled { background: rgba(var(--st-bg-rgb), .88); border-bottom-color: var(--st-line); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.lp-nav.is-scrolled .lp-nav__inner { height: 56px; }
.lp-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; transition: height .25s ease; }
.lp-brand { color: var(--st-ink); font-weight: 700; font-size: 18px; }
.lp-brand:hover { text-decoration: none; }
.lp-brand__mark { background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-brand__sub { color: var(--st-ink-dim); font-weight: 500; }
.lp-nav__links { display: flex; align-items: center; gap: 22px; }
.lp-nav__links a { color: var(--st-ink-dim); font-size: 14px; }
.lp-nav__links a:hover { color: var(--st-ink); text-decoration: none; }
.lp-nav__links a.studio-btn, .lp-nav__links a.studio-btn:hover { color: #fff; }
.lp-nav__signin { color: var(--st-ink) !important; }
@media (max-width: 720px){ .lp-nav__links a:not(.studio-btn):not(.lp-nav__signin){ display:none; } }

/* hero */
.lp-hero { position: relative; overflow: hidden; padding: 72px 0 56px; background: radial-gradient(1200px 500px at 70% -10%, rgba(124,92,255,.18), transparent), radial-gradient(900px 400px at 10% 0%, rgba(79,157,255,.16), transparent); }
.lp-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px){ .lp-hero__grid { grid-template-columns: 1fr; } }
.lp-eyebrow { display: inline-block; font-size: 13px; color: var(--st-accent); background: rgba(79,157,255,.12); border: 1px solid rgba(79,157,255,.3); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.lp-h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.lp-lead { font-size: 18px; color: var(--st-ink-dim); line-height: 1.6; margin: 0 0 26px; max-width: 520px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lp-microcopy { font-size: 13px; color: var(--st-ink-dim); margin: 0; }

/* hero cockpit mock */
.lp-mock { background: var(--st-panel); border: 1px solid var(--st-line); border-radius: 16px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lp-mock__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.lp-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--st-line); }
.lp-mock__file { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--st-ink-dim); }
.lp-mock__steps { display: flex; gap: 8px; margin-bottom: 14px; }
.lp-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--st-line); color: var(--st-ink-dim); }
.lp-chip--ok { color: var(--st-ok); border-color: rgba(47,191,113,.4); }
.lp-chip--live { color: var(--st-accent); border-color: rgba(79,157,255,.4); }
/* Swappable stage: report panel ⇄ imposed sheet, same footprint */
.lp-mock__stage { position: relative; height: 210px; }
.lp-mock__report, .lp-mock__sheet { position: absolute; inset: 0; }
.lp-mock__report { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 4px 2px; }
.lp-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--st-ink); }
.lp-check__mark { position: relative; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.lp-check__mark .lp-check__x, .lp-check__mark .lp-check__ok { grid-area: 1 / 1; line-height: 1; }
.lp-mock__sheet { background: #fff; border-radius: 8px; padding: 10px; display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(2,1fr); gap: 8px; }
.lp-mock__item { background: rgba(79,157,255,.18); border: 1px solid #4f9dff; border-radius: 3px; }
.lp-mock__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--st-ink-dim); margin-top: 12px; }

/* sections */
.lp-section { padding: 72px 0; }
.lp-section--alt { background: var(--st-panel); border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); }
.lp-h2 { font-size: clamp(26px, 3.5vw, 34px); text-align: center; margin: 0 0 10px; letter-spacing: -.01em; }
.lp-sub { text-align: center; color: var(--st-ink-dim); margin: 0 0 40px; }

.lp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 820px){ .lp-steps { grid-template-columns: 1fr; } }
.lp-step { background: var(--st-panel-2); border: 1px solid var(--st-line); border-radius: 14px; padding: 24px; }
.lp-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2)); color: #fff; font-weight: 700; margin-bottom: 14px; }
.lp-step h3 { margin: 0 0 8px; }
.lp-step p { margin: 0; color: var(--st-ink-dim); line-height: 1.6; }

.lp-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 820px){ .lp-features { grid-template-columns: 1fr; } }
.lp-feature { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 14px; padding: 24px; }
.lp-feature h3 { margin: 0 0 14px; font-size: 17px; }
.lp-feature ul { margin: 0; padding-left: 18px; color: var(--st-ink-dim); line-height: 1.9; font-size: 14px; }

/* pricing */
.lp-pricing { text-align: center; }
.lp-price-card { max-width: 420px; margin: 0 auto; background: var(--st-panel); border: 1px solid var(--st-line); border-radius: 18px; padding: 32px; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lp-price-card__head { text-align: center; margin-bottom: 22px; }
.lp-price-amt { font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.lp-price-amt span { font-size: 16px; font-weight: 400; color: var(--st-ink-dim); }
.lp-price-note { color: var(--st-ink-dim); font-size: 14px; margin-top: 4px; }
.lp-price-feats { list-style: none; padding: 0; margin: 0 0 24px; }
.lp-price-feats li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--st-line); }
.lp-price-feats li:before { content: "✓"; color: var(--st-ok); position: absolute; left: 4px; font-weight: 700; }

/* faq */
.lp-faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px){ .lp-faq__grid { grid-template-columns: 1fr; } }
.lp-faq h4 { margin: 0 0 6px; }
.lp-faq p { margin: 0; color: var(--st-ink-dim); line-height: 1.6; }

/* final + footer */
.lp-final { padding: 80px 0; text-align: center; background: radial-gradient(900px 360px at 50% 120%, rgba(124,92,255,.18), transparent); }
.lp-final .lp-h2 { margin-bottom: 24px; }
.lp-foot { border-top: 1px solid var(--st-line); padding: 24px 0; }
.lp-foot__inner { display: flex; justify-content: space-between; font-size: 13px; color: var(--st-ink-dim); }
.lp-foot a { color: var(--st-ink-dim); }

/* ──────────────────────────────────────────────────────────────────────────
   Motion: scroll reveals, hero aurora, live mock, pinned storytelling, chrome.
   All transform/opacity, GPU-friendly. Fully disabled under reduced-motion.
   ────────────────────────────────────────────────────────────────────────── */

/* Top scroll-progress bar */
.lp-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--st-accent), var(--st-accent-2));
    will-change: transform; }

/* Scroll reveal */
.lp-reveal { opacity: 0; transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 80ms); }
.lp-reveal.is-in { opacity: 1; transform: none; }

/* Hero aurora — drifting blurred blobs behind the hero content */
.lp-hero__aura { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: 0;
    pointer-events: none; filter: blur(60px); opacity: .9; }
.lp-hero__aura span { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.lp-hero__aura span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -8%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--st-accent-2-rgb), .55), transparent 62%);
    animation: lp-drift1 26s ease-in-out infinite alternate; }
.lp-hero__aura span:nth-child(2) { width: 40vw; height: 40vw; left: -6%; top: 6%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--st-accent-rgb), .5), transparent 62%);
    animation: lp-drift2 30s ease-in-out infinite alternate; }
.lp-hero__aura span:nth-child(3) { width: 30vw; height: 30vw; left: 30%; top: 30%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--st-accent-2-rgb), .35), transparent 60%);
    animation: lp-drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes lp-drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.15); } }
@keyframes lp-drift2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(8%, -6%, 0) scale(.92); } }

/* Cockpit mock — phased storyboard (preflight → fix → impose), JS sets data-phase */
.lp-mock { transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d; }
.lp-hero__grid:hover .lp-mock { box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lp-mock--live { animation: lp-float 7s ease-in-out infinite; }
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Chips: current phase = accent; completed phases = green ✓ */
.lp-chip { transition: color .35s ease, border-color .35s ease, background .35s ease; }
.lp-chip::after { content: ""; }
.lp-mock[data-phase="fix"] .lp-chip[data-chip="preflight"],
.lp-mock[data-phase="impose"] .lp-chip[data-chip="preflight"],
.lp-mock[data-phase="impose"] .lp-chip[data-chip="fix"] {
    color: var(--st-ok); border-color: rgba(47,191,113,.4);
}
.lp-mock[data-phase="fix"] .lp-chip[data-chip="preflight"]::after,
.lp-mock[data-phase="impose"] .lp-chip[data-chip="preflight"]::after,
.lp-mock[data-phase="impose"] .lp-chip[data-chip="fix"]::after { content: " ✓"; }
.lp-mock[data-phase="preflight"] .lp-chip[data-chip="preflight"],
.lp-mock[data-phase="fix"] .lp-chip[data-chip="fix"],
.lp-mock[data-phase="impose"] .lp-chip[data-chip="impose"] {
    color: var(--st-accent); border-color: rgba(var(--st-accent-rgb), .5); background: rgba(var(--st-accent-rgb), .12);
}

/* Panels cross-fade: report for preflight+fix, sheet for impose */
.lp-mock__report, .lp-mock__sheet { transition: opacity .5s ease, transform .5s ease; }
.lp-mock__report { opacity: 1; }
.lp-mock__sheet { opacity: 0; transform: scale(.98); pointer-events: none; }
.lp-mock[data-phase="impose"] .lp-mock__report { opacity: 0; transform: scale(.98); pointer-events: none; }
.lp-mock[data-phase="impose"] .lp-mock__sheet { opacity: 1; transform: none; }

/* Checks: ✗ red by default, flip to ✓ green (staggered) once fixing/imposed */
.lp-check__mark { background: rgba(var(--st-accent-2-rgb), 0); }
.lp-check__x { color: var(--st-err); opacity: 1; transition: opacity .35s ease; transition-delay: calc(var(--i,0) * 120ms); }
.lp-check__ok { color: var(--st-ok); opacity: 0; transition: opacity .35s ease; transition-delay: calc(var(--i,0) * 120ms); }
.lp-mock[data-phase="fix"] .lp-check__x,
.lp-mock[data-phase="impose"] .lp-check__x { opacity: 0; }
.lp-mock[data-phase="fix"] .lp-check__ok,
.lp-mock[data-phase="impose"] .lp-check__ok { opacity: 1; }

/* Sheet items pop in (staggered) when imposed */
.lp-mock__item { opacity: 0; transform: scale(.6); transform-origin: 50% 60%;
    transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.lp-mock[data-phase="impose"] .lp-mock__item { opacity: 1; transform: none; transition-delay: calc(var(--i,0) * 90ms); }

/* Meta colour cue while issues are open */
.lp-mock[data-phase="preflight"] [data-meta-left] { color: var(--st-err); }
.lp-mock[data-phase="fix"] [data-meta-left] { color: var(--st-accent); }

/* Pinned scroll storytelling for the three steps (desktop, motion-on) */
.lp-pin { position: relative; }
.lp-pin__stage { display: block; }
@media (min-width: 861px) {
    .lp-pin.is-pinnable { height: 300vh; }
    .lp-pin.is-pinnable .lp-pin__stage { position: sticky; top: 0; min-height: 100vh;
        display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
    .lp-pin.is-pinnable .lp-steps { transition: none; }
    .lp-pin.is-pinnable .lp-step { opacity: .4; transform: scale(.97);
        transition: opacity .5s ease, transform .5s ease, border-color .5s ease, box-shadow .5s ease; }
    .lp-pin.is-pinnable .lp-step.is-active { opacity: 1; transform: scale(1.02);
        border-color: rgba(var(--st-accent-rgb), .5); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
    .lp-pin.is-pinnable .lp-step.is-active .lp-step__n { box-shadow: 0 0 0 6px rgba(var(--st-accent-rgb), .15); }
}
/* progress rail under the steps in the pinned stage */
.lp-pin__rail { position: relative; height: 3px; border-radius: 3px; background: var(--st-line); margin: 28px auto 0; max-width: 680px; overflow: hidden; }
.lp-pin__rail > i { position: absolute; inset: 0 auto 0 0; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--st-accent), var(--st-accent-2)); transition: transform .2s linear; }
@media (max-width: 860px) { .lp-pin__rail { display: none; } }

/* Hover micro-interactions (landing + app) */
.lp-step, .lp-feature, .lp-price-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lp-step:hover, .lp-feature:hover { transform: translateY(-4px); border-color: rgba(var(--st-accent-rgb), .4); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.lp-price-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
/* button sheen */
.studio-btn { position: relative; overflow: hidden; }
.studio-btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-18deg); transition: left .6s ease; pointer-events: none; }
.studio-btn:hover::after { left: 140%; }

/* In-app polish */
.studio-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.studio-alt-chip { transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.studio-alt-chip:hover { transform: translateY(-2px); }
.studio-step { transition: background .3s ease, border-color .3s ease, color .3s ease; }
#studio-sheet svg { animation: lp-fade .4s ease both; }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }

/* Respect reduced motion — kill every animation/transition, show content as-is */
@media (prefers-reduced-motion: reduce) {
    .lp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .lp-progress { display: none; }
    .lp-hero__aura span, .lp-mock--live, #studio-sheet svg { animation: none !important; }
    /* Static finished frame: JS sets data-phase="impose"; show sheet filled, no transitions */
    .lp-mock__report, .lp-mock__sheet, .lp-check__x, .lp-check__ok, .lp-mock__item, .lp-chip { transition: none !important; }
    .lp-mock__item { opacity: 1 !important; transform: none !important; }
    .lp-pin.is-pinnable { height: auto !important; }
    .lp-pin.is-pinnable .lp-pin__stage { position: static !important; min-height: 0 !important; }
    .lp-pin.is-pinnable .lp-step { opacity: 1 !important; transform: none !important; }
    * { scroll-behavior: auto !important; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Long-form sales sections (below the hero)
   ────────────────────────────────────────────────────────────────────────── */

/* Capability stat band */
.lp-stats { padding: 40px 0 8px; }
.lp-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 720px){ .lp-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.lp-stat { display: flex; flex-direction: column; gap: 4px; }
.lp-stat__n { font-size: clamp(34px, 5vw, 50px); font-weight: 800; letter-spacing: -.02em; line-height: 1;
    background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-stat__l { font-size: 13px; color: var(--st-ink-dim); }
.lp-stats__line { text-align: center; max-width: 760px; margin: 28px auto 0; color: var(--st-ink-dim); font-size: 16px; line-height: 1.6; }

/* Shared bits */
.lp-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--st-accent); margin-bottom: 12px; }
.lp-h2--left { text-align: left; }
.lp-deep__lead { color: var(--st-ink-dim); font-size: 17px; line-height: 1.65; margin: 0 0 18px; }
.lp-ticks { list-style: none; padding: 0; margin: 0; }
.lp-ticks li { position: relative; padding: 7px 0 7px 28px; color: var(--st-ink); line-height: 1.5; }
.lp-ticks li::before { content: "✓"; position: absolute; left: 2px; top: 7px; color: var(--st-ok); font-weight: 800; }

/* Alternating deep-dive rows */
.lp-deep { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lp-deep--rev .lp-deep__text { order: 2; }
.lp-deep--rev .lp-deep__visual { order: 1; }
@media (max-width: 860px){ .lp-deep { grid-template-columns: 1fr; gap: 28px; }
    .lp-deep--rev .lp-deep__text, .lp-deep--rev .lp-deep__visual { order: 0; } }

/* Visual: 3D-ish card (report / imposed sheet) */
.lp-card3d { background: var(--st-panel); border: 1px solid var(--st-line); border-radius: 16px; padding: 16px;
    box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.lp-card3d__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.lp-card3d__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--st-line); }
.lp-card3d__bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--st-ink-dim); }
.lp-rep { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--st-ink); padding: 7px 4px; border-bottom: 1px solid var(--st-line); }
.lp-rep:last-child { border-bottom: 0; }
.lp-rep__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.lp-rep__dot--err { background: var(--st-err); }
.lp-rep__dot--warn { background: var(--st-warn); }
.lp-rep__dot--ok { background: var(--st-ok); }

/* Visual: before / after */
.lp-ba { display: flex; align-items: center; justify-content: center; gap: 16px; }
.lp-ba__side { text-align: center; }
.lp-ba__tag { font-size: 12px; font-weight: 700; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.lp-ba__tag--err { color: var(--st-err); background: rgba(220,38,38,.12); }
.lp-ba__tag--ok { color: var(--st-ok); background: rgba(47,191,113,.14); }
.lp-ba__page { position: relative; width: 140px; height: 186px; border-radius: 6px; }
.lp-ba__page--rgb { background: conic-gradient(from 0deg, #ff4d4d, #4d9bff, #4dff88, #ffd24d, #ff4d4d); opacity: .7; outline: 2px dashed var(--st-line); outline-offset: 3px; }
.lp-ba__page--cmyk { background: linear-gradient(135deg, #2b3a4d, #1b2430); border: 3px solid rgba(var(--st-accent-rgb), .55); box-shadow: 0 0 0 4px rgba(var(--st-accent-rgb), .12); }
.lp-ba__nobleed { position: absolute; inset: auto 0 6px 0; font-size: 10px; color: #1b2430; background: rgba(255,255,255,.85); padding: 2px; }
.lp-ba__bleed { position: absolute; inset: -3px; border: 2px solid rgba(47,191,113,.7); border-radius: 7px; }
.lp-ba__arrow { font-size: 26px; color: var(--st-accent); }

/* Visual: imposed sheet */
.lp-impo { background: #fff; border-radius: 8px; padding: 10px; display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(2,1fr); gap: 8px; height: 188px; }
.lp-impo__cell { background: rgba(79,157,255,.18); border: 1px solid #4f9dff; border-radius: 3px; }
.lp-impo__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--st-ink-dim); margin-top: 12px; }

/* Large-format spotlight (accent band) */
.lp-bigformat { padding: 72px 0; background: linear-gradient(135deg, #20155a, #11244d); color: #eaf0ff; }
[data-theme="dark"] .lp-bigformat { background: linear-gradient(135deg, #1a1140, #0e1c3a); }
.lp-bigformat__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 860px){ .lp-bigformat__inner { grid-template-columns: 1fr; gap: 28px; } }
.lp-bigformat .lp-h2, .lp-bigformat .lp-deep__lead { color: #eaf0ff; }
.lp-bigformat .lp-deep__lead { opacity: .85; }
.lp-kicker--on-accent { color: #b9c8ff; }
.lp-ticks--on-accent li { color: #eaf0ff; }
.lp-ticks--on-accent li::before { color: #8fe3b4; }
.lp-bigformat__visual { display: flex; gap: 18px; align-items: flex-end; justify-content: center; }
.lp-roll { position: relative; width: 120px; height: 220px; background: #fff; border-radius: 8px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.lp-roll__art { height: 100%; border-radius: 4px; background: linear-gradient(160deg, #4f9dff, #7c5cff); }
.lp-roll__w, .lp-bed__w { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: #b9c8ff; }
.lp-bed { position: relative; width: 230px; height: 150px; background: #fff; border-radius: 8px; padding: 8px; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,1fr); gap: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.lp-bed i { background: rgba(124,92,255,.25); border: 1px solid #7c5cff; border-radius: 3px; }
.lp-bed i:nth-child(1){ grid-row: span 2; }
.lp-bed i:nth-child(4){ grid-column: span 2; }

/* Workflow grid */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px){ .lp-grid { grid-template-columns: 1fr; } }
.lp-gcard { background: var(--st-panel); border: 1px solid var(--st-line); border-radius: 14px; padding: 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lp-gcard:hover { transform: translateY(-4px); border-color: rgba(var(--st-accent-rgb), .4); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.lp-gcard__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
    background: rgba(var(--st-accent-rgb), .12); margin-bottom: 14px; }
.lp-gcard h3 { margin: 0 0 8px; font-size: 17px; }
.lp-gcard p { margin: 0; color: var(--st-ink-dim); line-height: 1.6; font-size: 14px; }

/* Old way vs Studio */
.lp-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px){ .lp-vs { grid-template-columns: 1fr; } }
.lp-vs__col { border: 1px solid var(--st-line); border-radius: 16px; padding: 26px; }
.lp-vs__col h3 { margin: 0 0 16px; font-size: 18px; }
.lp-vs__col ul { list-style: none; padding: 0; margin: 0; }
.lp-vs__col li { position: relative; padding: 9px 0 9px 28px; line-height: 1.5; border-bottom: 1px solid var(--st-line); }
.lp-vs__col li:last-child { border-bottom: 0; }
.lp-vs__col--old { background: var(--st-bg); }
.lp-vs__col--old li { color: var(--st-ink-dim); }
.lp-vs__col--old li::before { content: "✕"; position: absolute; left: 4px; color: var(--st-ink-dim); font-weight: 700; }
.lp-vs__col--new { background: var(--st-panel); border-color: rgba(var(--st-accent-rgb), .4); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.lp-vs__col--new li::before { content: "✓"; position: absolute; left: 3px; color: var(--st-ok); font-weight: 800; }

/* Auth pages (register / login) — landing-style */
.lp-auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.lp-auth__brand { position: absolute; top: 22px; left: 28px; z-index: 5; color: var(--st-ink); font-weight: 700; font-size: 17px; }
.lp-auth__brand:hover { text-decoration: none; }
.lp-auth__grid { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; }
.lp-auth--solo .lp-auth__grid { grid-template-columns: 1fr; }
@media (max-width: 860px){ .lp-auth__grid { grid-template-columns: 1fr; } }

.lp-auth__aside { position: relative; overflow: hidden; display: flex; align-items: center; padding: 64px 56px;
    background: linear-gradient(150deg, #20155a, #11244d); color: #eaf0ff; }
[data-theme="dark"] .lp-auth__aside { background: linear-gradient(150deg, #1a1140, #0e1c3a); }
@media (max-width: 860px){ .lp-auth__aside { display: none; } }
.lp-auth__asideInner { position: relative; z-index: 1; max-width: 460px; margin-left: auto; }
.lp-auth__asideInner h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 24px; color: #fff; }
.lp-auth__note { margin: 22px 0 0; color: #b9c8ff; font-size: 14px; }
.lp-auth__aura { position: absolute; inset: -20%; pointer-events: none; filter: blur(70px); opacity: .8; }
.lp-auth__aura span { position: absolute; display: block; border-radius: 50%; }
.lp-auth__aura span:nth-child(1){ width: 40vw; height: 40vw; left: -6%; top: 8%; background: radial-gradient(circle, rgba(var(--st-accent-2-rgb), .6), transparent 62%); }
.lp-auth__aura span:nth-child(2){ width: 34vw; height: 34vw; right: -8%; bottom: 0; background: radial-gradient(circle, rgba(var(--st-accent-rgb), .55), transparent 62%); }
.lp-auth__aura--page { position: fixed; inset: -10% -10% auto -10%; height: 60vh; opacity: .5; }

.lp-auth__form { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center;
    width: 100%; max-width: 440px; margin: 0 auto; padding: 80px 32px 48px; }
.lp-auth__h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0 0 8px; }
.lp-auth__sub { color: var(--st-ink-dim); margin: 0 0 24px; line-height: 1.5; }
.lp-auth__fields { display: flex; flex-direction: column; }
.lp-auth__cta { width: 100%; justify-content: center; }
.lp-auth__fine { color: var(--st-ink-dim); font-size: 12.5px; text-align: center; margin: 8px 0 0; }
.lp-auth__or { display: flex; align-items: center; gap: 12px; color: var(--st-ink-dim); font-size: 12px; margin: 18px 0; }
.lp-auth__or::before, .lp-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--st-line); }

/* Free-tier usage bar (mirrors the trial bar) */
.studio-freebar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(var(--st-accent-rgb), .10); border: 1px solid rgba(var(--st-accent-rgb), .35);
    color: var(--st-ink); padding: 10px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.studio-freebar--full { background: rgba(239,91,91,.10); border-color: var(--st-err); }

/* Standards strip */
.lp-standards { padding: 48px 0; border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); background: var(--st-panel); }
.lp-standards__title { text-align: center; color: var(--st-ink-dim); font-size: 13px; letter-spacing: .04em; margin: 0 0 18px; }
.lp-standards__row { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }
.lp-standards__row span { font-size: 13px; font-weight: 600; color: var(--st-ink-dim); border: 1px solid var(--st-line); border-radius: 999px; padding: 7px 14px; }
