@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --dark-hero-bg: #0f172a;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* --- HERO SECTION CONTRAST FIX --- */
.hero-wrapper {
    background: #0f172a !important; /* Fixed dark contrast */
    color: #ffffff !important;
    padding: 80px 0 60px 0;
}

.hero-wrapper h1 {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-wrapper p {
    color: #94a3b8 !important; /* Visible light-slate text */
}

.badge-hero {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* --- BUTTONS & INTERACTION --- */
.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 28px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease-in-out;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* --- CARDS & SHEETS --- */
.card-custom {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.demo-paper-sheet {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    padding: 30px;
    min-height: 420px;
}

/* --- RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop) --- */

/* Desktop & Large Screens (≥ 992px) */
@media (min-width: 992px) {
    .max-w-750 {
        max-width: 750px;
        margin: 0 auto;
    }
}

/* Tablet Screens (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-wrapper {
        padding: 60px 0 40px 0;
    }
    .hero-wrapper h1 {
        font-size: 2.75rem;
    }
    .demo-paper-sheet {
        padding: 20px;
        min-height: 380px;
    }
}

/* Mobile Screens (≤ 767px) */
@media (max-width: 767px) {
    .hero-wrapper {
        padding: 40px 15px 30px 15px;
        text-align: center;
    }
    .hero-wrapper h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    .hero-wrapper p {
        font-size: 0.95rem;
    }
    .demo-paper-sheet {
        padding: 15px;
        min-height: 320px;
    }
    .btn-primary-custom {
        width: 100%;
        padding: 12px 16px;
    }
}
/* =========================================================
   SELECTED PAPER BASKET
   Clean single-box question layout
   ========================================================= */

.basket-question-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 55px 20px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Question content */
.basket-question-content {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
}

/* Remove unwanted spacing from copied question HTML */
.basket-question-content > *:first-child {
    margin-top: 0 !important;
}

.basket-question-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Remove button */
.basket-remove-btn {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 34px;
    height: 34px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: transparent;
    color: #64748b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.basket-remove-btn:hover {
    background: #f1f5f9;
    color: #dc2626;
}

/* Make sure copied Bootstrap cards do NOT create another box */
.basket-question-content .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove unwanted question-wrapper borders */
.basket-question-content .question-item-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove checkbox from basket if one gets copied */
.basket-question-content .question-checkbox {
    display: none !important;
}

/* Remove common action controls copied from question cards */
.basket-question-content .remove-question,
.basket-question-content .delete-question,
.basket-question-content .edit-question,
.basket-question-content .question-actions {
    display: none !important;
}

/* Mobile */
@media (max-width: 767px) {

    .basket-question-item {
        padding: 16px 48px 16px 16px;
        margin-bottom: 12px;
    }

    .basket-question-content {
        font-size: 15px;
        line-height: 1.6;
    }

    .basket-remove-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* =========================================================
   PAPERGENIE 2026 PRODUCT-FIRST UI
   Visual layer only. Existing functional IDs/classes remain.
   ========================================================= */
:root {
    --pg-ink: #111827;
    --pg-muted: #64748b;
    --pg-blue: #4f6ff5;
    --pg-blue-dark: #3e5de0;
    --pg-blue-soft: #eef3ff;
    --pg-line: #e5e7eb;
    --pg-bg: #f7f8fc;
    --pg-green: #16a36a;
    --pg-radius: 22px;
}

html { scroll-behavior: smooth; }
body { background: var(--pg-bg); color: var(--pg-ink); }

/* Navbar */
.navbar.pg-navbar,
body > nav.navbar {
    background: rgba(255,255,255,.94) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #edf0f5 !important;
    padding: 14px 0 !important;
}
body > nav.navbar .navbar-brand { color:#111827 !important; font-weight:700; letter-spacing:-.03em; }
body > nav.navbar .navbar-brand i { color:#111827 !important; }
body > nav.navbar .nav-link { color:#475569 !important; font-weight:600 !important; }
body > nav.navbar .nav-link:hover { color:var(--pg-blue) !important; }
body > nav.navbar .btn-primary-custom { padding:9px 16px; border-radius:10px; }

.pg-hero { background:linear-gradient(180deg,#ffffff 0%,#f4f7ff 100%); border-bottom:1px solid #e9edf5; overflow:hidden; }
.pg-hero-inner { padding:72px 0 78px; }
.pg-eyebrow { display:inline-flex; align-items:center; gap:9px; font-size:14px; font-weight:700; color:#34415c; margin-bottom:22px; }
.pg-eyebrow-dot { width:9px; height:9px; border-radius:50%; background:var(--pg-blue); box-shadow:0 0 0 6px rgba(79,111,245,.11); }
.pg-hero-title { font-size:clamp(2.7rem,5vw,4.5rem); line-height:1.04; letter-spacing:-.055em; font-weight:800; max-width:700px; margin:0 0 22px; color:#111827; }
.pg-hero-title span { color:var(--pg-blue); display:block; }
.pg-hero-copy { max-width:650px; font-size:18px; line-height:1.75; color:#59657a; margin-bottom:30px; }
.pg-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:25px; }
.pg-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:50px; padding:0 21px; border-radius:12px; text-decoration:none; font-weight:700; transition:.2s ease; }
.pg-btn-primary { background:var(--pg-blue); color:#fff; box-shadow:0 12px 28px rgba(79,111,245,.24); }
.pg-btn-primary:hover { background:var(--pg-blue-dark); color:#fff; transform:translateY(-2px); }
.pg-btn-secondary { background:#fff; color:#182235; border:1px solid #dce2ed; }
.pg-btn-secondary:hover { border-color:#b9c5dc; color:var(--pg-blue); transform:translateY(-2px); }
.pg-trust-row { display:flex; flex-wrap:wrap; gap:18px; color:#536078; font-size:13px; font-weight:600; }
.pg-trust-row i { color:var(--pg-green); margin-right:6px; }

/* Hero product demo */
.pg-product-demo { background:#fff; border:1px solid #dfe5ef; border-radius:22px; box-shadow:0 30px 70px rgba(28,44,80,.13); overflow:hidden; transform:translateY(4px); }
.pg-window-top { height:52px; display:flex; align-items:center; padding:0 18px; border-bottom:1px solid #edf0f5; background:#fbfcfe; }
.pg-window-dots { display:flex; gap:6px; margin-right:18px; }
.pg-window-dots i { width:9px; height:9px; border-radius:50%; background:#d8dde7; display:block; }
.pg-window-dots i:nth-child(1){background:#efb0ad}.pg-window-dots i:nth-child(2){background:#e8c76d}.pg-window-dots i:nth-child(3){background:#9bc99e}
.pg-window-title { font-size:13px; font-weight:700; color:#334155; display:flex; align-items:center; gap:8px; }
.pg-window-title i { color:var(--pg-blue); }.pg-window-title span { background:#e9f8f0; color:#198754; padding:4px 8px; border-radius:20px; font-size:11px; }
.pg-demo-body { padding:19px; }
.pg-demo-progress { display:flex; align-items:center; gap:8px; font-size:11px; color:#8791a3; margin-bottom:17px; }
.pg-demo-progress span { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.pg-demo-progress span.active { color:#27344d; font-weight:700; }
.pg-demo-progress b { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:#eef1f6; color:#69758a; font-size:10px; }
.pg-demo-progress .active b { background:var(--pg-blue); color:#fff; }.pg-demo-progress i { height:1px; flex:1; background:#e2e7ef; }
.pg-demo-grid { display:grid; grid-template-columns:185px 1fr; gap:14px; }
.pg-demo-controls { background:#f8faff; border:1px solid #e5eaf3; border-radius:15px; padding:13px; }
.pg-mini-label { font-size:9px; font-weight:800; letter-spacing:.1em; color:#8792a6; margin-bottom:9px; }
.pg-select-mock { position:relative; border:1px solid #dce3ee; background:#fff; border-radius:9px; padding:7px 26px 7px 9px; margin-bottom:7px; }
.pg-select-mock small { display:block; color:#98a2b2; font-size:8px; line-height:1.1; }.pg-select-mock strong { font-size:11px; color:#263249; }.pg-select-mock i { position:absolute; right:9px; top:50%; transform:translateY(-50%); color:#8b96a9; font-size:8px; }
.pg-demo-stat { display:flex; justify-content:space-between; border-top:1px solid #e8edf4; padding-top:8px; margin-top:8px; font-size:9px; color:#8993a5; }.pg-demo-stat strong { color:#263249; font-size:9px; }
.pg-mini-paper { border:1px solid #e1e5ec; border-radius:15px; background:#fff; padding:18px; box-shadow:0 9px 25px rgba(30,42,70,.06); min-height:260px; }
.pg-mini-paper-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #e7eaf0; padding-bottom:9px; margin-bottom:13px; }.pg-mini-paper-head strong{font-size:13px}.pg-mini-paper-head span{font-size:8px;color:#8a94a7;font-weight:700}
.pg-mini-question { font-size:11px; line-height:1.55; color:#273249; margin:9px 0 6px; }.pg-mini-question b{margin-right:5px}.pg-mini-options{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;color:#5f6a7d;font-size:9px;padding-left:20px}.pg-mini-pdf{margin-top:15px;padding:9px;border-radius:10px;background:#f4f7ff;display:flex;gap:9px;align-items:center;color:var(--pg-blue)}.pg-mini-pdf i{font-size:16px}.pg-mini-pdf strong{display:block;font-size:10px;color:#34415c}.pg-mini-pdf small{display:block;font-size:8px;color:#7b879a;margin-top:2px}
.pg-demo-footer { display:flex; align-items:center; gap:12px; padding-top:13px; margin-top:13px; border-top:1px solid #edf0f5; font-size:9px; color:#7b8698; }.pg-demo-footer span{white-space:nowrap}.pg-demo-footer i{color:var(--pg-green)}.pg-demo-footer button{margin-left:auto;border:0;background:#172033;color:#fff;border-radius:8px;padding:8px 11px;font-size:9px;font-weight:700}

/* How it works */
.pg-how { padding:82px 0 88px; background:#fff; }
.pg-section-heading { text-align:center; max-width:800px; margin:0 auto 46px; }.pg-section-heading>span{font-size:11px;letter-spacing:.14em;color:var(--pg-blue);font-weight:800}.pg-section-heading h2{font-size:clamp(2rem,3.5vw,3rem);letter-spacing:-.045em;margin:10px 0 10px;font-weight:800}.pg-section-heading p{color:#6b7689;margin:0;font-size:16px}
.pg-step-row { position:relative; }.pg-step-card{height:100%;padding:28px;border:1px solid #e5e9f1;border-radius:20px;background:#fff;box-shadow:0 12px 35px rgba(25,37,65,.045);position:relative;transition:.2s ease}.pg-step-card:hover{transform:translateY(-4px);box-shadow:0 20px 42px rgba(25,37,65,.09)}.pg-step-featured{border-color:#cbd6ff;background:linear-gradient(180deg,#f8faff,#fff)}.pg-step-number{font-size:11px;font-weight:800;color:#9aa4b6;letter-spacing:.08em}.pg-step-icon{width:42px;height:42px;border-radius:12px;background:#eef3ff;color:var(--pg-blue);display:grid;place-items:center;margin:23px 0 16px}.pg-step-card h3{font-size:22px;font-weight:800;letter-spacing:-.025em;margin-bottom:10px}.pg-step-card p{font-size:14px;line-height:1.7;color:#68748a;min-height:70px}.pg-step-example{display:inline-flex;align-items:center;gap:7px;background:#f7f8fb;border:1px solid #e7eaf0;border-radius:9px;padding:8px 10px;font-size:11px;font-weight:700;color:#3a465b}.pg-step-note{margin-top:17px;color:#526078;font-size:11px;font-weight:700}.pg-step-note i{color:var(--pg-blue);margin-right:6px}

/* Workbench */
.pg-workbench-section{padding:84px 0 95px;background:#f5f7fb}.pg-workbench-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.pg-section-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--pg-blue);font-size:11px;font-weight:800;letter-spacing:.11em}.pg-workbench-heading h2{font-size:clamp(2rem,3.5vw,2.8rem);letter-spacing:-.045em;margin:8px 0 8px;font-weight:800}.pg-workbench-heading p{margin:0;color:#69758a}.pg-live-status{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#fff;border:1px solid #e1e6ef;border-radius:20px;font-size:11px;font-weight:700;color:#516079;white-space:nowrap}.pg-live-status span{width:7px;height:7px;background:#22b573;border-radius:50%;box-shadow:0 0 0 4px #e5f8ef}
.pg-workbench-shell{background:#fff;border:1px solid #dfe5ef;border-radius:22px;box-shadow:0 20px 55px rgba(30,42,70,.08);overflow:hidden}.pg-workbench-topbar{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-bottom:1px solid #e8ebf1;background:#fbfcfe}.pg-builder-steps{display:flex;align-items:center;gap:8px;font-size:10px;color:#9aa3b2;font-weight:700}.pg-builder-steps span{display:flex;align-items:center;gap:6px;white-space:nowrap}.pg-builder-steps span.current{color:#33415a}.pg-builder-steps b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf0f5;font-size:9px}.pg-builder-steps span.current b{background:var(--pg-blue);color:#fff}.pg-builder-steps i{width:22px;height:1px;background:#dfe4ec}.pg-selection-summary{font-size:11px;color:#7b8698}.pg-selection-summary strong{color:#25324a}
.pg-control-panel{height:100%;padding:24px;border-right:1px solid #e8ebf1;background:#fbfcfe}.pg-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.pg-panel-heading>div{display:flex;align-items:center;gap:10px}.pg-panel-icon{width:38px;height:38px;border-radius:11px;background:#edf2ff;color:var(--pg-blue);display:grid;place-items:center}.pg-panel-heading h3{font-size:16px;font-weight:800;margin:0}.pg-panel-heading small{color:#8a95a7;font-size:10px}.pg-free-badge{background:#e9f8f0;color:#18865a;font-size:9px;font-weight:800;border-radius:20px;padding:6px 8px}
.pg-field-group{margin-bottom:14px}.pg-field-group label,.pg-advanced-field label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;color:#46536a;margin-bottom:7px}.pg-field-group label span{color:#a0a9b8;font-size:9px}.pg-select{border-color:#dce2eb!important;border-radius:10px!important;min-height:43px;font-size:12px!important;color:#263249!important;box-shadow:none!important;background-color:#fff!important}.pg-select:focus{border-color:#9aaefb!important;box-shadow:0 0 0 3px rgba(79,111,245,.09)!important}.pg-lock-note{margin-top:7px;padding:8px 9px;border-radius:9px;background:#fff8e8;color:#8a641c;font-size:9px;line-height:1.4}.pg-lock-note i{margin-right:5px}.pg-advanced-field{padding-top:14px;margin-top:14px;border-top:1px solid #e8ecf2}.pg-type-pills{display:flex;flex-wrap:wrap;gap:6px}.pg-type-pills button{border-radius:20px!important;font-size:10px!important;padding:5px 9px!important}.pg-load-button{width:100%;border:0;border-radius:11px;background:#172033;color:#fff;padding:13px 15px;font-size:11px;font-weight:800;margin-top:8px;transition:.2s}.pg-load-button:not(:disabled):hover{background:var(--pg-blue);transform:translateY(-1px)}.pg-load-button:disabled{opacity:.45;cursor:not-allowed}
.pg-basket-card{margin-top:22px;padding:15px;border-radius:15px;border:1px solid #e1e6ef;background:#fff}.pg-basket-top{display:flex;justify-content:space-between;align-items:center}.pg-basket-top>div{display:flex;align-items:center;gap:9px}.pg-basket-icon{width:31px;height:31px;border-radius:9px;background:#eef3ff;color:var(--pg-blue);display:grid;place-items:center}.pg-basket-top strong{display:block;font-size:11px}.pg-basket-top small{display:block;font-size:9px;color:#909aaa;margin-top:2px}.pg-basket-top>span{min-width:24px;height:24px;padding:0 7px;border-radius:20px;background:#172033;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800}.pg-basket-metrics{display:flex;justify-content:space-between;margin:12px 0;color:#8993a4;font-size:9px}.pg-basket-metrics strong{color:#27344b;margin-left:3px}.pg-basket-button{width:100%;background:#fff;border:1px solid #dfe4ed;border-radius:9px;padding:9px;font-size:10px;font-weight:800;color:#354158}.pg-basket-button:hover{border-color:#b9c5dc;color:var(--pg-blue)}.pg-basket-button i{float:right;margin-top:2px}
.pg-question-panel{padding:22px;background:#fff;height:100%;min-height:720px}.pg-question-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:15px;border-bottom:1px solid #e8ebf1;margin-bottom:15px}.pg-render-badge{display:inline-flex;align-items:center;gap:6px;background:#eef3ff;color:var(--pg-blue);padding:7px 10px;border-radius:20px;font-size:10px;font-weight:800}.pg-toolbar-hint{font-size:10px;color:#9aa3b1;margin-left:9px}.pg-google-mini{max-width:190px;overflow:hidden}.pg-live-paper{min-height:620px;border:1px solid #e3e7ee!important;border-radius:15px!important;padding:25px!important;box-shadow:none!important;background:#fff}.pg-empty-state{min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:540px;margin:auto}.pg-empty-icon{width:64px;height:64px;border-radius:18px;background:#eef3ff;color:var(--pg-blue);display:grid;place-items:center;font-size:25px;margin-bottom:18px}.pg-empty-state h3{font-size:19px;font-weight:800;margin-bottom:8px}.pg-empty-state p{font-size:12px;line-height:1.7;color:#788397;max-width:470px}.pg-empty-flow{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:17px;font-size:9px;font-weight:800;color:#566278}.pg-empty-flow span{padding:7px 9px;border-radius:8px;background:#f5f7fa;border:1px solid #e6e9ef}.pg-empty-flow i{font-size:8px;color:#9ba4b4}

/* Preserve question cards rendered by the existing JS, while giving them a coherent UI */
.pg-live-paper .question-item-wrapper,.pg-live-paper .question-card{border-radius:12px!important;border:1px solid #e4e8ef!important;box-shadow:0 4px 13px rgba(25,37,65,.035)!important;margin-bottom:12px!important}.pg-live-paper .question-checkbox{accent-color:var(--pg-blue)}

@media (max-width: 991px){.pg-hero-inner{padding:52px 20px 60px}.pg-hero-title{font-size:3.2rem}.pg-demo-grid{grid-template-columns:1fr}.pg-demo-controls{display:none}.pg-workbench-heading{align-items:flex-start}.pg-question-panel{min-height:550px}.pg-control-panel{border-right:0;border-bottom:1px solid #e8ebf1}}
@media (max-width: 767px){.pg-hero-inner{padding:40px 15px 50px}.pg-hero-title{font-size:2.45rem}.pg-hero-copy{font-size:15px}.pg-hero-actions{flex-direction:column}.pg-btn{width:100%}.pg-trust-row{justify-content:center;gap:9px 15px}.pg-product-demo{margin-top:10px}.pg-demo-body{padding:12px}.pg-demo-progress{font-size:9px}.pg-demo-progress span:nth-of-type(2){display:none}.pg-demo-progress i{display:none}.pg-mini-paper{padding:13px}.pg-demo-footer{flex-wrap:wrap}.pg-demo-footer span{display:none}.pg-demo-footer button{margin-left:0;width:100%}.pg-how{padding:60px 0}.pg-step-card p{min-height:0}.pg-workbench-section{padding:60px 0}.pg-workbench-heading{display:block}.pg-live-status{display:inline-flex;margin-top:15px}.pg-workbench-topbar{display:block}.pg-builder-steps{overflow:auto;padding-bottom:5px}.pg-selection-summary{margin-top:10px}.pg-control-panel,.pg-question-panel{padding:16px}.pg-question-toolbar{align-items:flex-start}.pg-toolbar-hint{display:none}.pg-google-mini{max-width:155px}.pg-live-paper{min-height:430px}.pg-empty-state{min-height:390px}.pg-empty-flow i{display:none}}

/* =========================================================
   PaperGenie compact, human-first hero refresh
   Existing application functionality/IDs are untouched.
   ========================================================= */
.pg-hero-compact{background:linear-gradient(180deg,#fff 0%,#f7f9ff 100%)}
.pg-hero-compact .pg-hero-inner{padding:54px 0 58px}
.pg-hero-compact .pg-hero-title{font-size:clamp(2.55rem,4.35vw,4.05rem);line-height:1.02;max-width:620px;margin-bottom:18px}
.pg-hero-compact .pg-hero-copy{max-width:590px;font-size:16px;line-height:1.65;margin-bottom:24px}
.pg-hero-compact .pg-hero-actions{margin-bottom:19px}
.pg-hero-compact .pg-btn{padding:12px 19px;font-size:14px}
.pg-hero-compact .pg-trust-row{font-size:12px}
.pg-hero-compact .pg-eyebrow{font-size:13px;margin-bottom:18px}
.pg-hero-visual{position:relative;min-height:430px;display:flex;align-items:center;justify-content:center;padding:15px 0 15px 25px}
.pg-people-graphic{width:min(100%,560px);height:auto;display:block;filter:drop-shadow(0 22px 40px rgba(35,52,90,.10))}
.pg-builder-mini{position:absolute;right:12px;top:35px;width:275px;background:rgba(255,255,255,.96);border:1px solid #dfe5ef;border-radius:16px;box-shadow:0 16px 38px rgba(30,42,70,.12);overflow:hidden;backdrop-filter:blur(8px)}
.pg-builder-mini-head{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #edf0f5;font-size:11px;font-weight:800;color:#26324a}
.pg-builder-mini-head i{color:#5969e9;margin-right:5px}.pg-builder-mini-head b{color:#26945f;background:#eaf7ef;border-radius:20px;padding:4px 7px;font-size:9px}
.pg-builder-mini-steps{display:flex;align-items:center;gap:5px;padding:9px 12px;font-size:8px;color:#9aa3b2}.pg-builder-mini-steps span.active{color:#33415a;font-weight:800}.pg-builder-mini-steps i{height:1px;flex:1;background:#e4e8ef}
.pg-builder-mini-body{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:11px 12px;background:#f8faff;font-size:9px;color:#66738a}.pg-builder-mini-body span{background:#fff;border:1px solid #e5eaf2;border-radius:7px;padding:7px}.pg-builder-mini-body strong{grid-column:1/-1;color:#26324a;padding:5px 1px 1px}
.pg-float-card{position:absolute;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e1e6ef;border-radius:13px;padding:9px 12px;box-shadow:0 12px 30px rgba(30,42,70,.10);z-index:3}.pg-float-card>i{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#eef1ff;color:#5969e9;font-size:12px}.pg-float-card span{display:flex;flex-direction:column}.pg-float-card strong{font-size:10px;color:#26324a}.pg-float-card small{font-size:8px;color:#8a94a5;margin-top:2px}.pg-float-top{left:18px;top:50px}.pg-float-bottom{right:28px;bottom:33px}.pg-float-bottom>i{background:#edf8f2;color:#299965}
@media (max-width:1199px){.pg-builder-mini{right:0;width:245px}.pg-float-top{left:0}.pg-float-bottom{right:10px}.pg-hero-visual{padding-left:0}}
@media (max-width:991px){.pg-hero-compact .pg-hero-inner{padding:45px 20px 48px}.pg-hero-compact .pg-hero-title{font-size:3rem}.pg-hero-visual{min-height:390px;margin-top:4px}.pg-builder-mini{right:5%;top:22px}.pg-float-top{left:4%;top:38px}.pg-float-bottom{right:7%;bottom:20px}}
@media (max-width:767px){.pg-hero-compact .pg-hero-inner{padding:36px 15px 42px}.pg-hero-compact .pg-hero-title{font-size:2.35rem}.pg-hero-compact .pg-hero-copy{font-size:15px}.pg-hero-compact .pg-hero-actions{flex-direction:row}.pg-hero-compact .pg-btn{width:auto}.pg-hero-compact .pg-trust-row{justify-content:flex-start}.pg-hero-visual{min-height:315px;padding:0;margin-top:10px}.pg-people-graphic{width:100%}.pg-builder-mini{width:205px;top:5px;right:2px}.pg-builder-mini-head{padding:8px 9px;font-size:9px}.pg-builder-mini-steps{padding:7px 9px;font-size:7px}.pg-builder-mini-body{padding:8px 9px;gap:5px}.pg-float-card{padding:7px 9px}.pg-float-card small{display:none}.pg-float-top{left:2px;top:34px}.pg-float-bottom{right:0;bottom:8px}}


/* =========================================================
   WORKBENCH: INTERNAL SCROLLING + PAGINATION
   The question sheet scrolls inside its own panel;
   the page itself no longer scrolls with the question list.
   ========================================================= */
.pg-workbench-shell {
    --pg-panel-h: clamp(560px, 82vh, 860px);
}

.pg-workbench-shell .pg-question-panel {
    display: flex;
    flex-direction: column;
    height: var(--pg-panel-h);
    min-height: 0;
    overflow: hidden;
}

.pg-workbench-shell .pg-question-toolbar {
    flex: 0 0 auto;
}

.pg-workbench-shell .pg-question-panel .pg-live-paper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.pg-workbench-shell .pg-empty-state {
    min-height: 360px;
}

.pg-workbench-shell .pg-live-paper.is-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .15s ease;
}

@media (min-width: 992px) {
    .pg-workbench-shell .pg-control-panel {
        height: var(--pg-panel-h);
        overflow-y: auto;
    }
    .pg-workbench-shell .pg-question-panel .pg-live-paper,
    .pg-workbench-shell .pg-control-panel {
        overscroll-behavior: contain;
    }
}

@media (max-width: 991px) {
    .pg-workbench-shell .pg-question-panel {
        height: 80vh;
        min-height: 480px;
    }
}

.pg-pagination-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8ebf1;
}

.pg-page-summary {
    font-size: 12px;
    color: #7b8698;
}

.pg-page-summary strong {
    color: #25324a;
}

.pg-page-error {
    display: inline-block;
    margin-left: 10px;
    color: #c0392b;
    font-weight: 600;
}

.pg-page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #fff;
    color: #33415a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pg-page-btn:hover:not(:disabled):not(.active) {
    background: #eef3ff;
    border-color: #c9d7ff;
    color: var(--pg-blue);
}

.pg-page-btn.active {
    background: var(--pg-blue);
    border-color: var(--pg-blue);
    color: #fff;
    cursor: default;
}

.pg-page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pg-page-gap {
    color: #9aa3b2;
    padding: 0 2px;
}