:root{--ink:#172b4d;--muted:#69768a;--blue:#225cec;--line:#dce3ed;--surface:#fff;--bg:#f3f6fa;--radius:18px;font-family:Inter,"Segoe UI",sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,select,summary{cursor:pointer}button{transition:background .16s,box-shadow .16s}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.dropzone:focus-visible{outline:3px solid #84a5ff;outline-offset:3px}.topbar{padding:20px max(5vw,24px);border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-size:28px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:10px}.brand-mark{width:34px;height:38px;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:Georgia,serif;border-radius:8px;font-size:32px;font-weight:normal;padding-bottom:4px}.brand-detail{font-size:12px;letter-spacing:1.2px;color:var(--muted);font-weight:600;margin-left:20px}.privacy{display:flex;align-items:center;gap:9px;font-size:14px;color:#56687d}.privacy svg{width:17px;height:19px}main{max-width:1440px;margin:auto;padding:46px max(4vw,24px) 0}.intro{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:35px}.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:700;color:var(--blue);margin:0 0 13px}h1{font-size:clamp(36px,3.7vw,52px);line-height:1.12;letter-spacing:-1.8px;margin:0 0 16px;font-weight:650}h1 em{font-family:Georgia,serif;font-weight:normal;color:var(--blue)}.subtitle{font-size:16px;color:var(--muted);margin:0;line-height:1.7}.steps{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted);white-space:nowrap}.steps span{display:flex;align-items:center;gap:8px}.steps b{font-weight:600;border:1px solid #ccd6e3;width:28px;height:28px;display:grid;place-items:center;border-radius:50%}.steps .active{color:var(--ink)}.steps .active b{background:var(--ink);color:#fff;border-color:var(--ink)}.steps i{width:22px;height:1px;background:var(--line)}.workspace{display:grid;grid-template-columns:355px minmax(0,1fr);gap:25px;align-items:start}.settings{display:flex;flex-direction:column;gap:20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:0 4px 16px #172b4d03}.card-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:22px}h2{font-size:17px;margin:0;font-weight:650;letter-spacing:-.2px}.small-label{font-size:12px;font-weight:650;color:#a9b2c0}.dropzone{border:1.5px dashed #b8c9e2;border-radius:12px;background:#f7faff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:26px 12px;cursor:pointer;text-align:center;transition:background .2s,border .2s}.dropzone:hover,.dropzone.drag{background:#edf3ff;border-color:var(--blue)}.dropzone svg{width:57px;height:57px;color:#778aab;margin-bottom:19px}.dropzone .accent{stroke:var(--blue)}.dropzone strong{font-weight:600;font-size:16px}.dropzone span{font-size:14px;color:var(--muted);margin-top:8px}.dropzone small{font-size:12px;color:#8b98aa;margin-top:23px}.dropzone input{display:none}.text-button{background:none;border:0;color:var(--blue);font-size:14px;padding:10px 0;text-align:center;font-weight:550}.upload-card>.text-button{display:block;width:100%;margin-top:8px;margin-bottom:-9px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:block;margin-top:16px}label{font-size:14px;font-weight:550}input[type=text],input[type=number],select{width:100%;height:44px;border:1px solid #d5dfed;border-radius:8px;padding:0 10px;background:white;color:var(--ink);font-size:14px;margin-top:8px;min-width:0}input::placeholder{color:#8795a8}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 0 6px;font-size:14px}.switch-row small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px;line-height:1.5}.switch-row input{appearance:none;width:35px;height:21px;border-radius:30px;background:#a7b6ca;position:relative;flex-shrink:0;cursor:pointer;transition:background .15s}.switch-row input::after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;background:#fff;border-radius:50%;transition:transform .15s}.switch-row input:checked{background:var(--blue)}.switch-row input:checked::after{transform:translateX(14px)}.hint{font-size:12px;line-height:1.65;color:var(--muted);margin:11px 0 0}details{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}summary{font-size:14px;color:#59708b;margin-bottom:15px}.primary-button,.secondary-button{border-radius:9px;padding:13px 18px;font-size:14px;font-weight:600;min-height:46px;display:inline-flex;align-items:center;justify-content:center}.primary-button{background:var(--blue);color:#fff;border:1px solid var(--blue);box-shadow:0 4px 10px #225cec18}.primary-button:hover:not(:disabled){background:#164ed6}.secondary-button{background:#fff;color:var(--ink);border:1px solid #bdcce0}.secondary-button:hover:not(:disabled){background:#edf3fb}#start,#cancel{width:100%;margin-top:23px}#cancel{margin-top:10px}.local-note{color:var(--muted);font-size:12px;line-height:1.65;text-align:center;margin:13px 0 0}.sidebar-note{display:flex;align-items:start;gap:12px;color:var(--muted);padding:2px 8px}.sidebar-note svg{flex-shrink:0;width:22px;height:23px}.sidebar-note p{font-size:13px;line-height:1.75;margin:0}.sidebar-note strong{display:block;color:#5d6d82;font-weight:550;margin-bottom:4px}.preview{padding:0;overflow:hidden;min-height:750px}.preview-top{display:flex;justify-content:space-between;align-items:center;padding:27px 30px;border-bottom:1px solid var(--line);gap:14px}.preview-top .eyebrow{font-size:11px;margin-bottom:9px;letter-spacing:1.5px}.preview-top h2{font-size:20px}.status-pill{font-size:12px;background:#edf2f9;color:#596f8d;border:1px solid #dbe4f1;padding:7px 11px;border-radius:20px;white-space:nowrap}.empty-preview{text-align:center;display:flex;flex-direction:column;align-items:center;padding:60px 24px 90px}.book-illustration{width:300px;height:265px;position:relative;margin-bottom:30px}.scan-paper,.clean-paper{position:absolute;width:155px;height:218px;border-radius:3px;box-shadow:0 13px 30px #22335113;background:white;border:1px solid #d1dce9;top:25px;padding:20px}.scan-paper{left:12px;transform:rotate(-9deg);background:#eff2f5}.clean-paper{right:2px;transform:rotate(8deg);top:7px;border-top:5px solid var(--blue)}.paper-tag{font-size:10px;font-family:monospace;letter-spacing:2px;color:#97a4b6;display:block;text-align:left}.scan-lines{height:26px;margin-top:16px;opacity:.7;filter:blur(.4px);background:repeating-linear-gradient(to bottom,#afbac9 0,#afbac9 2px,transparent 2px,transparent 7px)}.scan-lines.short{width:78%;height:16px;margin-top:8px}.big-letter{font-family:Georgia,serif;font-size:61px;display:block;text-align:left;margin:25px 0 17px;color:var(--ink)}.clean-rule{display:block;height:3px;background:#9aaec7;margin-top:9px}.clean-rule.short{width:70%}.empty-preview h3{font-family:Georgia,serif;font-size:25px;font-weight:normal;letter-spacing:-.35px;margin:0 0 16px}.empty-preview p{color:var(--muted);font-size:14px;line-height:1.8;margin:0}.format-badges{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:28px}.format-badges span{border:1px solid #dce5f0;border-radius:6px;padding:7px 9px;font-size:12px;color:#7a8ba3;background:#f8fafc}.file-info{display:flex;gap:11px;align-items:center;margin-top:15px;min-width:0}.file-info>div:nth-child(2){min-width:0;flex:1}.file-info strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-info span{font-size:12px;display:block;color:var(--muted);margin-top:5px}.file-icon{padding:9px 5px;background:#ecf2ff;color:var(--blue);border-radius:6px;font-size:11px;font-weight:650}.icon-button{border:1px solid var(--line);background:#fff;border-radius:7px;font-size:23px;min-width:33px;height:34px;padding:0 7px;line-height:1}.icon-button:hover:not(:disabled){background:#eff4fb}.notice{margin:20px 25px;padding:14px 17px;border-radius:8px;font-size:14px;background:#edf3ff;color:#28518e;line-height:1.6}.notice.error{background:#fff1ef;color:#a23c32;border:1px solid #efd3ce}.progress-panel{margin:24px 30px;padding:20px 22px;background:#f4f7fd;border:1px solid #dae5f6;border-radius:12px}.progress-panel>div{display:flex;gap:15px;justify-content:space-between;font-size:14px}.progress-panel strong{font-weight:600}.progress-panel span{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}progress{width:100%;height:7px;appearance:none;border:none;border-radius:10px;overflow:hidden;margin-top:18px;display:block;background:#dce6f5}progress::-webkit-progress-bar{background:#dce6f5}progress::-webkit-progress-value{background:var(--blue)}progress::-moz-progress-bar{background:var(--blue)}.progress-panel p{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.5}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 25px;border-bottom:1px solid var(--line)}.view-tabs{display:flex;background:#edf2f8;padding:3px;border-radius:8px;gap:3px}.view-tabs button{background:none;border:0;border-radius:6px;padding:7px 13px;font-size:14px;color:var(--muted)}.view-tabs .selected{background:#fff;color:var(--ink);box-shadow:0 2px 4px #172b4d0c}.page-navigation{display:flex;align-items:center;gap:7px}.page-navigation select{height:34px;max-width:180px;margin:0}.page-meta{display:flex;justify-content:space-between;gap:16px;padding:17px 30px 4px;color:var(--muted);font-size:12px;line-height:1.6}#text-editor{width:100%;min-height:430px;border:0;resize:vertical;padding:22px 40px 35px;font:17px/1.85 Georgia,serif;background:#fff;color:var(--ink);outline-offset:-4px}.editor-note{font-size:12px;color:var(--muted);padding:8px 30px 18px;margin:0;line-height:1.5}.export-panel{padding:24px 30px 28px;border-top:1px solid var(--line);background:#f9fbfe}.export-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.export-heading h3{font-size:16px;margin:0;font-weight:600}.export-heading span{font-size:12px;color:var(--muted)}.optional{font-weight:400;color:var(--muted);font-size:12px}.export-buttons{display:flex;gap:12px;margin-top:19px}.export-buttons button{flex:1}.scan-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:17px 20px}#scan-canvas{display:block;max-width:calc(100% - 50px);height:auto;margin:15px auto 25px;box-shadow:0 3px 15px #172b4d10}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}footer{display:flex;justify-content:space-between;gap:24px;padding:32px 0 27px;color:#8a98ac;font-size:12px}.footer-divider{padding:0 8px;color:#b5c0cf}[hidden]{display:none!important}@media(max-width:1080px){.workspace{grid-template-columns:315px minmax(0,1fr);gap:18px}.card{padding:21px}.preview{padding:0}.steps{font-size:12px;gap:7px}.steps i{width:10px}.brand-detail{display:none}.preview-top{padding:24px}.status-pill{font-size:11px}.two-fields{gap:9px}}@media(max-width:820px){main{padding:30px 20px 0}.intro{align-items:start;flex-direction:column;gap:24px}.workspace{grid-template-columns:1fr}.settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sidebar-note{grid-column:1/-1}.preview{min-height:600px}.empty-preview{padding:40px 15px 60px}.intro h1{font-size:42px}.privacy{font-size:12px}.settings .card-title h2{font-size:15px}}@media(max-width:540px){.topbar{padding:17px 20px}.brand{font-size:25px}.privacy{max-width:160px;font-size:11px;line-height:1.5}.privacy svg{flex-shrink:0}.settings{display:flex}.intro h1{font-size:37px}.subtitle{font-size:14px}.steps{font-size:13px;gap:12px}.steps i{width:13px}.preview-top{padding:22px 20px;align-items:start;flex-direction:column;gap:13px}.preview-top h2{font-size:20px}.editor-toolbar{padding:14px 16px;gap:8px}.page-navigation select{max-width:123px;font-size:12px}.view-tabs button{padding:7px 10px}.page-meta{padding:16px 20px 0}#text-editor{padding:22px 24px;min-height:360px;font-size:16px}.export-panel{padding:24px 20px}.export-heading{flex-direction:column;align-items:start;gap:8px}.export-buttons{flex-direction:column}.editor-note{padding-left:20px;padding-right:20px}.progress-panel{margin:20px 18px;padding:18px}.progress-panel>div{font-size:13px}.book-illustration{transform:scale(.88);margin-bottom:4px}.empty-preview h3{font-size:22px}.empty-preview p{font-size:13px}footer{flex-direction:column;gap:8px;padding-top:28px}}

.privacy-panel{display:flex;align-items:flex-start;gap:17px;margin:0 0 26px;padding:21px 25px;border:1px solid #cbdaf2;border-radius:14px;background:#edf3ff}.privacy-panel svg{width:28px;height:29px;flex-shrink:0;color:#225cec}.privacy-panel h2{font-size:16px;margin:0 0 7px}.privacy-panel p{font-size:14px;line-height:1.7;margin:0;color:#49607f}.privacy-panel small{display:block;font-size:12px;line-height:1.6;margin-top:6px;color:#6e819c}@media(max-width:540px){.privacy-panel{padding:18px 17px;gap:12px}.privacy-panel svg{width:23px}.privacy-panel h2{font-size:15px}.privacy-panel p{font-size:13px}}

.page-inclusion{display:flex;align-items:center;gap:.6rem;margin:1rem 0;font-size:.94rem;font-weight:600}.page-inclusion input{width:1.15rem;height:1.15rem;accent-color:var(--navy,#172b4d)}.review-summary p{margin:0 0 .5rem}.review-summary .text-button{margin:0;padding:0;text-align:left}

.pricing-note{font-size:.9rem;line-height:1.6;border-top:1px solid #e4eaf2;padding-top:1rem;margin-top:1rem;color:#405779}dialog{border:1px solid #dbe3ef;border-radius:18px;box-shadow:0 24px 80px #172b4d40;padding:28px;width:min(520px,calc(100vw - 32px));max-height:90vh;overflow:auto;color:#172b4d}dialog::backdrop{background:#172b4d80}.purchase-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.purchase-heading h2{font-size:1.4rem;margin:0}.purchase-price{display:block;font-size:2rem;margin:20px 0}dialog p{line-height:1.6}footer a{color:inherit}

.topbar .privacy{margin-left:auto}.contact-open{flex-shrink:0}footer>span:last-child{line-height:1.8;overflow-wrap:anywhere}@media(max-width:650px){.topbar{flex-wrap:wrap;gap:12px}.topbar .privacy{order:3;flex-basis:100%;max-width:none;margin-left:0}.contact-open{margin-left:auto;min-height:40px;padding:9px 14px}}
/* Figure review uses original proportions, also on small screens. */
.graphics-panel{padding:18px 0;border-top:1px solid #e3e8ed}
.graphics-panel h3{margin:0 0 8px;font-size:16px}
.graphics-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
.graphic-card{border:1px solid #e3e8ed;border-radius:10px;padding:12px;min-width:0;background:#fff}
.graphic-card img{display:block;width:100%;height:180px;object-fit:contain;margin-bottom:12px}
.graphic-card label{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.graphic-card input{flex:none}
.preview-description{margin:16px 30px;font-size:12px;line-height:1.65;color:var(--muted)}
#page-preview-panel{padding:1px 0 8px;background:#f3f6fa}
.book-page{margin:20px auto;padding:42px 48px;width:calc(100% - 60px);max-width:650px;min-height:480px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px #172b4d0a;font:17px/1.5 Georgia,serif;color:#172b4d;overflow-wrap:anywhere}
.book-page p{margin:.5em 0;text-indent:1.2em;white-space:pre-line;orphans:2;widows:2}
.book-page h1,.book-page h2{font-family:inherit;font-weight:700;text-indent:0;line-height:1.3;margin:1em 0 .5em;break-after:avoid}
.book-page h1{font-size:1.8em}.book-page h2{font-size:1.4em}.book-page strong{font-weight:700}
.book-page figure{margin:1em 0;text-align:center;break-inside:avoid}
.book-page img{display:block;max-width:100%;height:auto;margin:auto;object-fit:contain}
.book-page .preview-empty{color:var(--muted);text-indent:0;font:14px/1.6 Inter,"Segoe UI",sans-serif}
@media(max-width:540px){.editor-toolbar{flex-wrap:wrap}.view-tabs{flex-wrap:wrap}.page-navigation{margin-left:auto}.preview-description{margin:14px 20px}.book-page{width:calc(100% - 32px);padding:28px 24px;min-height:360px;font-size:16px}}

.consent-dialog{border:0;border-radius:22px;padding:32px;max-width:540px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;color:var(--ink);background:#fff;box-shadow:0 24px 90px #172b4d40}
.consent-dialog::backdrop{background:rgba(23,43,77,.62);backdrop-filter:grayscale(1) blur(3px)}
.consent-dialog h2{font-size:25px;line-height:1.25;margin:0 0 16px}.consent-dialog p{line-height:1.65;font-size:15px;color:#526176;margin:0 0 22px}
.consent-actions{display:flex;flex-direction:column;gap:8px}.consent-agree{background:#225cec;color:#fff;border:0;border-radius:12px;font-weight:650;padding:15px 22px;min-height:48px;cursor:pointer}.consent-agree:hover{background:#184ac9}.consent-actions .text-button{min-height:44px;color:#35455e}
.consent-option{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid var(--line)}.consent-option strong{display:block;font-size:15px}.consent-option small{display:block;margin-top:5px;color:#69768a;font-size:13px;line-height:1.5}
.consent-option input{appearance:none;flex:0 0 48px;width:48px;height:28px;border:2px solid #8491a3;border-radius:20px;background:#8491a3;position:relative;cursor:pointer;margin:0}.consent-option input::before{content:"";position:absolute;width:20px;height:20px;top:2px;left:2px;border-radius:50%;background:white;transition:transform .15s}.consent-option input:checked{background:#225cec;border-color:#225cec}.consent-option input:checked::before{transform:translateX(20px)}.consent-dialog .consent-note{font-size:12px;margin-top:16px}
@media(max-width:540px){.consent-dialog{padding:24px}.consent-dialog h2{font-size:22px}}

.payment-page{min-height:100dvh;display:grid;place-items:center;padding:48px 24px;background:#f3f6fa}
.payment-card{width:100%;max-width:640px;margin:0;padding:40px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 16px 60px #172b4d0a}
.payment-brand{display:inline-flex;margin-bottom:28px}.payment-card h1{font-size:clamp(28px,4vw,38px);line-height:1.18;letter-spacing:-1px;margin:0 0 18px;overflow-wrap:break-word}
.payment-message{font-size:16px;line-height:1.65;color:#526176;margin:0 0 28px}.payment-downloads{display:grid;grid-template-columns:1fr 1fr;gap:14px}.payment-downloads button{margin:0;min-height:52px;width:100%}
.payment-recheck{display:block;margin:0 0 24px;min-height:48px}.payment-footer{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.payment-back{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;text-align:left}.payment-hint{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
@media(max-width:540px){.payment-page{padding:24px 16px;align-items:start}.payment-card{padding:28px 22px;border-radius:18px;margin-top:8vh}.payment-downloads{grid-template-columns:1fr;gap:12px}.payment-brand{margin-bottom:24px}.payment-message{margin-bottom:24px}.payment-footer{margin-top:24px}}
