:root{--navy:#071b4c;--teal:#08748a;--gold:#cf970f;--light:#f4f8fb;--line:#d7e3e9}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#14233a;background:#f7fafc}header{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1250px)/2))}.brand{font-weight:950;font-size:28px;letter-spacing:-1px;color:var(--navy);text-decoration:none}.brand span{color:var(--teal)}nav{display:flex;align-items:center;gap:16px}a{color:var(--teal)}nav a{text-decoration:none;font-size:14px}button,.button,select{border:0;background:var(--teal);color:#fff;border-radius:9px;padding:12px 16px;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#eaf2f6;color:var(--navy)}select{background:#f0f6f9;color:var(--navy)}main{max-width:1250px;margin:auto;padding:32px 24px}.hero{background:linear-gradient(125deg,#fff,#f0f8fc 70%,#d5edf7);border:1px solid var(--line);border-radius:20px;display:grid;grid-template-columns:1fr 265px;gap:24px;padding:35px 5%;align-items:center}.hero img{width:100%;max-height:360px;object-fit:contain;filter:drop-shadow(0 15px 13px #0b25432e)}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800;color:var(--teal)}h1{font-size:clamp(33px,4vw,56px);line-height:1.08;color:var(--navy);margin:15px 0}h2{color:var(--navy);margin:0 0 8px}p{line-height:1.55}.intro>p{max-width:630px;color:#53647b}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips span{background:#e5f1f3;color:#136578;padding:7px 11px;border-radius:20px;font-size:12px;font-weight:700}.price{font-size:35px;font-weight:900;color:var(--navy);margin-top:20px}.price small{font-size:14px;color:#738295;font-weight:500}.helper{font-size:13px}.offers{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.offer,.account,.reader{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px}.offer{display:flex;align-items:center;justify-content:space-between;gap:16px}.offer p{font-size:14px;color:#64748b;margin:0}.offer button,.offer .button{white-space:nowrap}.account{max-width:720px;margin:30px auto}label{display:block;font-size:13px;font-weight:700;margin:15px 0}label input{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #b9cbd7;border-radius:8px;font-size:15px}.actions{display:flex;gap:10px}#authError{color:#a12034;font-size:13px}.hidden{display:none!important}.readerBar{display:flex;justify-content:space-between;align-items:center}.readerBar p{color:#65768b}.readerLayout{display:grid;grid-template-columns:240px 1fr;gap:20px}aside{border:1px solid var(--line);border-radius:10px;padding:16px;align-self:start}aside h3{margin:0 0 15px}.tocLink{display:block;width:100%;text-align:left;background:transparent;color:var(--navy);padding:9px;border-bottom:1px solid #e8edf0;border-radius:0;font-weight:500}.tocLink:hover{background:#e7f2f5}.small,.note{font-size:12px;color:#64748b}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px;background:var(--light);border-radius:10px 10px 0 0}.toolbar input{width:70px;padding:10px;border:1px solid var(--line);border-radius:8px}.viewer iframe{width:100%;height:76vh;min-height:500px;border:1px solid var(--line);border-radius:0 0 9px 9px}footer{color:#79889b;font-size:12px;text-align:center;padding:32px 0}@media(max-width:850px){header{padding:12px;height:auto;gap:8px;flex-wrap:wrap}nav{gap:9px;flex-wrap:wrap}.hero{grid-template-columns:1fr 135px;padding:23px}.offers{grid-template-columns:1fr}.readerLayout{grid-template-columns:1fr}aside{max-height:210px;overflow:auto}.offer{flex-wrap:wrap}}@media(max-width:510px){.hero{grid-template-columns:1fr}.hero img{max-height:235px;order:-1}.offer{align-items:flex-start}.offer .button{white-space:normal}}

/* Responsive page-by-page PDF.js reader; avoids mobile iframe PDF white screen */
.pdf-page{width:100%;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:auto;background:#eaf0f4;border:1px solid var(--line);border-radius:0 0 9px 9px;padding:8px}
#pdfCanvas{display:block;max-width:100%;height:auto;box-shadow:0 3px 13px #081c3f22;background:#fff}
#pdfStatus{font-size:13px;color:#39536a;line-height:1.4}
@media(max-width:850px){.reader{padding:12px}.readerLayout{grid-template-columns:minmax(0,1fr)}.viewer{min-width:0}.toolbar{gap:7px}.pdf-page{padding:4px}.toolbar button{padding:11px}}

/* CricPrep vertical reader */
.pdf-page{display:block!important;overflow:visible!important;min-height:0!important;padding:4px!important;}
#pdfStack{width:100%;display:flex;flex-direction:column;align-items:center;gap:14px;}
.pdf-sheet{position:relative;width:100%;background:#fff;box-shadow:0 2px 9px #091c3a20;display:flex;justify-content:center;align-items:flex-start;overflow:hidden;scroll-margin-top:12px;}
.pdf-sheet-canvas{max-width:100%;height:auto;display:block;}
.pdf-sheet-number{position:absolute;bottom:5px;right:8px;font-size:11px;color:#718096;pointer-events:none;}
#pdfCanvas{display:none!important;}
@media(max-width:600px){.pdf-sheet{scroll-margin-top:6px;}#pdfStack{gap:8px;} .viewer{min-width:0;}}

/* CricPrep: independent PDF window scrolling */
#pdfPage.pdf-page {
    display: block !important;
    height: 70vh !important;
    min-height: 350px !important;
    max-height: 850px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-behavior: auto;
}

#pdfPage .pdf-sheet {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

#pdfPage .pdf-sheet-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 850px) {
    #pdfPage.pdf-page {
        height: 65dvh !important;
        min-height: 300px !important;
    }
}


/* CricPrep study toolbar / fixed contained scroll */
.studyBar{background:#fff;border:1px solid #d7e3e9;border-bottom:0;padding:10px 12px;position:relative;z-index:2}
.progressMeta{display:flex;justify-content:space-between;font-size:12px;color:#334155;margin-bottom:6px}
.progressTrack{height:6px;border-radius:99px;background:#e2e8f0;overflow:hidden;margin-bottom:10px}
#progressFill{width:0;height:100%;background:#08748a;transition:width .15s}
.studyControls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.studyControls button{padding:7px 11px;min-width:35px}
.studyControls select{width:auto;padding:8px}
.studyControls button.selected{background:#d1faf0;border-color:#08748a}
#pdfPage.pdf-page{display:block!important;height:70vh!important;min-height:320px!important;max-height:850px!important;overflow-y:auto!important;overflow-x:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;position:relative}
#pdfStack{display:flex;flex-direction:column;align-items:center;gap:12px;width:max-content;min-width:100%}
#pdfPage .pdf-sheet{position:relative;flex:none;background:white;margin:0 auto;box-shadow:0 2px 10px #1a35522b}
#pdfPage .pdf-sheet-canvas{display:block;max-width:none!important;height:auto}
.cp-text-layer{position:absolute;top:0;left:0;overflow:hidden;line-height:1;opacity:1;z-index:3;user-select:text;-webkit-user-select:text}
.cp-text-layer span,.cp-text-layer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0;}
.cp-text-layer ::selection{background:rgba(255,224,79,.5)}
.cp-highlights{position:absolute;inset:0;z-index:2;pointer-events:none}
.cp-highlight{position:absolute;opacity:.48;mix-blend-mode:multiply}
@media(max-width:850px){#pdfPage.pdf-page{height:64dvh!important;min-height:320px!important}.studyControls button{padding:7px 9px}}

/* PDF canvas-only hotfix: no selectable text layer */
#pdfPage,#pdfPage canvas,#pdfStack {user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important;}
#pdfPage canvas{pointer-events:none;}
.cp-text-layer{display:none!important;}
@media print {#reader,.viewer,#pdfPage{display:none!important;}}
