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

:root {
    --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-radius: 12px;
}

* { 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;
}

/* ── Main column ─────────────────────────────────────────── */
.studio-main { padding: 36px clamp(20px, 5vw, 64px); max-width: 1100px; }
.studio-main--railed { margin-left: 220px; }

.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; }

/* ── 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; }

/* ── 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; }
.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: 10; background: rgba(15,18,22,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--st-line); }
.lp-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.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__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 { 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 { 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; gap: 6px; margin-bottom: 14px; }
.lp-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--st-line); }
.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); }
.lp-mock__sheet { background: #fff; border-radius: 8px; padding: 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.lp-mock__item { aspect-ratio: 3/4; 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); }
