@import"https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Inter:wght@400;500;600;700&display=swap";:root{color-scheme:light;--bg: #f7f5f1;--surface: #ffffff;--surface-soft: #faf8f4;--surface-muted: #f3f1ed;--ink: #111111;--muted: #666666;--border: #e6e1d8;--border-strong: #d7d0c4;--primary: #101010;--primary-hover: #242424;--accent: #d18a1d;--accent-soft: #fff4dd;--accent-strong: #b8740f;--danger: #b42318;--danger-soft: #fff1f0;--success: #12623f;--success-soft: #edf7f1;--shadow: 0 18px 48px rgba(17, 17, 17, .06)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Inter,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(circle at top left,rgba(209,138,29,.08),transparent 25%),linear-gradient(180deg,#fbfaf8,#f7f5f1)}button,input,textarea,a{font:inherit}button{border:0;background:transparent}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.app-shell{min-height:100vh}.home-shell,.workflow-shell{width:min(1200px,100%);margin:0 auto;padding-inline:16px}.home-shell{padding:40px 0 72px}.workflow-shell{padding:28px 0 72px}.hero-panel,.process-panel,.editor-card{border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}.hero-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:24px;padding:20px}.hero-copy,.process-panel,.editor-card{padding:32px}.hero-copy{display:flex;flex-direction:column;justify-content:center;min-height:360px;padding:12px 8px 12px 12px}.hero-visual{overflow:hidden;border-radius:20px;min-height:360px;background:linear-gradient(180deg,#f8f5ef,#fff)}.hero-visual img{width:100%;height:100%;object-fit:cover}.hero-badge,.eyebrow{display:inline-flex;align-items:center;gap:8px;width:fit-content;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface-soft);font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}.hero-badge,.eyebrow{color:var(--accent-strong)}.hero-copy h1,.section-copy h1{margin:18px 0 16px;font-family:Libre Baskerville,Georgia,serif;font-size:clamp(2.8rem,6vw,4.7rem);line-height:1.05;letter-spacing:-.04em}.hero-copy p,.section-copy p,.process-step p,.empty-state p,.final-callout p{line-height:1.7}.hero-copy>p{max-width:620px;margin:0;color:var(--muted);font-size:1.05rem}.hero-actions,.card-actions,.card-footer,.viewer-footer,.modal-actions{display:flex;flex-wrap:wrap;gap:12px}.hero-actions{margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 18px;border-radius:999px;border:1px solid transparent;cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease,opacity .14s ease}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.55;transform:none}.button-primary{background:var(--primary);color:#fff}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-secondary{border-color:var(--border-strong);background:var(--surface);color:var(--ink)}.button-secondary:hover:not(:disabled),.button-ghost:hover:not(:disabled){border-color:var(--ink);background:var(--surface-soft)}.button-ghost{border-color:transparent;color:var(--muted)}.workflow-shell .button{min-height:44px;padding:0 15px;gap:8px;font-size:.92rem}.button-icon{width:18px;height:18px;flex-shrink:0}.badge-icon{width:16px;height:16px;flex-shrink:0}.section-copy{display:grid;gap:10px}.section-copy h2,.final-callout h3,.empty-state h3{margin:0;font-size:clamp(2rem,4vw,2.7rem);font-family:Libre Baskerville,Georgia,serif;font-weight:700;letter-spacing:-.03em;line-height:1.15}.section-copy.section-copy-centered{text-align:center;justify-items:center}.process-heading h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.2}.section-copy p{margin:0;color:var(--muted)}.process-panel{margin-top:28px}.process-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:28px}.process-step{display:flex;gap:18px;padding:8px 0}.process-number{display:grid;place-items:center;width:48px;height:48px;border-radius:999px;background:var(--primary);color:#fff;font-weight:700;flex-shrink:0}.process-number.amber{background:var(--accent)}.process-step h3{margin:0 0 8px;font-size:1.1rem}.process-step p{margin:0;color:var(--muted)}.workflow-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.step-indicator{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:28px auto 0;padding:0 8px;max-width:980px}.step-item{display:flex;align-items:center;flex:1 1 0}.step-marker{display:grid;place-items:center;width:44px;height:44px;border-radius:999px;border:2px solid var(--border-strong);background:var(--surface);color:var(--muted);font-size:.95rem;font-weight:700;flex-shrink:0}.step-marker.current{border-color:var(--primary);background:var(--primary);color:#fff}.step-marker.complete{border-color:var(--accent);background:var(--accent);color:#fff}.step-label{margin-left:10px;color:var(--muted);font-size:.74rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.step-label.current{color:var(--ink)}.step-line{flex:1 1 auto;height:2px;margin:0 14px;background:var(--border)}.step-line.complete{background:var(--accent)}.step-check-icon{width:20px;height:20px}.editor-card{margin-top:26px}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.review-screen-copy p{margin-bottom:12px}.render-progress-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.render-progress-pill{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border:1px solid rgba(17,17,17,.08);border-radius:999px;background:#faf4e7f2;color:var(--muted);font-size:.82rem;font-weight:600;letter-spacing:.01em}.render-progress-pill.active{border-color:#d18a1d4d;background:#fff3d6fa;color:var(--ink)}.editor-form,.draft-page-stack,.story-viewer{display:grid;gap:24px}.editor-form,.story-viewer,.final-callout{margin-top:28px}.field-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px}.field{display:grid;gap:8px}.field span{font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.field input,.field textarea{width:100%;padding:14px 16px;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface);color:var(--ink);transition:border-color .14s ease,box-shadow .14s ease}.field input:focus,.field textarea:focus,.draft-page-body textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px #1111110d}.field textarea,.draft-page-body textarea{resize:vertical}.field small{color:var(--muted);line-height:1.6}.upload-dropzone,.story-stage,.empty-state,.final-callout{border:1px solid var(--border);border-radius:20px}.upload-dropzone{display:grid;place-items:center;min-height:220px;padding:24px;border-width:2px;border-color:#d18a1d61;background:linear-gradient(180deg,#fffaf1f5,#fffffffa);border-style:dashed;cursor:pointer;text-align:center;transition:border-color .14s ease,background .14s ease,transform .14s ease}.upload-dropzone:hover{border-color:#d18a1d85;background:var(--accent-soft);transform:translateY(-1px)}.upload-dropzone:hover .upload-icon{color:var(--accent-strong)}.upload-icon{width:40px;height:40px;margin-bottom:14px;color:var(--accent-strong)}.upload-dropzone-active{border-style:dashed;border-width:2px;border-color:#d18a1d8f;background:linear-gradient(180deg,#fff0d2f5,#fff)}.upload-dropzone-active:hover{border-color:#d18a1da3;background:#ffe9bd}.upload-dropzone strong,.story-placeholder strong{font-size:1rem}.upload-dropzone p,.story-placeholder p{margin:8px 0 0;color:var(--muted)}.upload-count-pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:14px;padding:0 14px;border-radius:999px;background:#d18a1d24;color:var(--accent-strong);font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.reference-thumb{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:14px 16px;border-radius:18px;border:1px solid var(--border);background:var(--surface)}.reference-file{display:flex;flex:1 1 auto;align-items:center;gap:12px;min-width:0;overflow:hidden}.reference-file-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-soft);color:var(--accent-strong);flex-shrink:0}.reference-icon{width:20px;height:20px}.reference-file strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.94rem;font-weight:600}.reference-remove{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:999px;color:var(--muted);cursor:pointer;flex-shrink:0}.reference-remove:hover{background:var(--surface-soft);color:var(--ink)}.reference-remove-icon{width:16px;height:16px}.card-footer{justify-content:flex-end}.footer-actions{margin-top:28px}.draft-page-card{padding:24px;border:1px solid var(--border);border-radius:22px;background:var(--surface)}.loading-status-card{display:grid;justify-items:center;align-content:center;gap:16px;min-height:380px;padding:28px;border:1px dashed rgba(209,138,29,.52);border-radius:22px;background:linear-gradient(180deg,#fff4ddb8,#fffffffa);text-align:center}.loading-status-card p{max-width:560px;margin:0;color:#5f4923;line-height:1.7}.loading-status-card-draft{min-height:340px}.loading-status-card-story{width:min(760px,calc(100% - 56px))}.loading-spinner-icon{width:34px;height:34px;color:var(--accent-strong)}.draft-page-header{padding-bottom:16px;border-bottom:1px solid var(--border)}.draft-page-title{margin:0;font-size:1.05rem;font-weight:600;color:var(--ink)}.draft-page-body{display:grid;gap:20px;margin-top:24px}.draft-field{display:grid;gap:10px}.draft-field span{font-size:.76rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.draft-field-label{display:inline-flex;align-items:center;gap:8px}.field-icon{width:16px;height:16px;color:var(--accent-strong);flex-shrink:0}.draft-page-body textarea{min-height:112px;padding:14px 16px;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface)}.draft-field-prompt textarea{background:var(--accent-soft);border-color:#ecd6a0}.character-preview{position:relative;display:grid;min-height:540px;place-items:center;padding:0;border:1px solid var(--border);border-radius:20px;overflow:hidden;background:var(--surface-soft)}.character-option-toggle{position:absolute;top:16px;right:16px;z-index:2;display:flex;gap:8px}.character-option-button{min-height:34px;padding:0 12px;border-radius:999px;background:#ffffffeb;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.character-option-button.active{border-color:var(--ink);background:var(--surface)}.character-preview img{width:100%;max-height:100%;border-radius:0;box-shadow:0 16px 40px #1111111f;object-fit:contain}.final-title{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}.title-icon{width:24px;height:24px;color:var(--accent-strong);flex-shrink:0}.story-stage{display:grid;place-items:center;min-height:580px;padding:0;overflow:hidden;background:var(--surface-soft)}.story-image-frame{display:grid;place-items:center;width:100%;min-height:100%}.story-page-image{width:100%;height:auto;object-fit:contain;border-radius:0;box-shadow:0 20px 42px #1111111f}.story-placeholder{display:grid;place-items:center;min-height:380px;padding:28px;text-align:center;border-radius:20px;border:1px dashed var(--border-strong);background:var(--surface)}.viewer-footer{align-items:center;justify-content:space-between}.viewer-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;flex:1 1 auto}.viewer-dot{width:10px;height:10px;padding:0;border-radius:999px;background:#cfc7ba;cursor:pointer}.viewer-dot.active{width:36px;background:var(--accent)}.final-callout{display:grid;gap:10px;justify-items:center;margin-top:28px;padding:28px;background:var(--accent-soft);text-align:center}.final-callout h3{margin:0;font-size:1.6rem;font-family:Libre Baskerville,Georgia,serif}.final-callout p{max-width:680px;margin:0;color:#574927}.empty-state{display:grid;gap:12px;place-items:center;min-height:260px;padding:32px;text-align:center;background:var(--surface-soft)}.empty-state h3{font-size:1.5rem}.empty-state p{max-width:520px;margin:0;color:var(--muted)}.modal-overlay{position:fixed;inset:0;display:grid;place-items:center;padding:20px;background:#11111161;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:50}.modal-card{position:relative;width:min(560px,calc(100vw - 32px));padding:28px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 24px 70px #1111112e}.modal-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:999px;color:var(--muted);cursor:pointer}.modal-close:hover{background:var(--surface-soft);color:var(--ink)}.modal-body{display:grid;gap:22px;margin-top:24px}.checkout-modal-card{width:min(760px,calc(100vw - 32px))}.checkout-modal-overlay{place-items:start center;overflow-y:auto}.checkout-modal-overlay .checkout-modal-card{margin-block:20px}.checkout-modal-body{display:grid;gap:18px}.checkout-frame{min-height:540px;padding:10px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(180deg,#fbf8f1f5,#fffffffa)}.checkout-loading-card{min-height:180px}.recovery-code-modal-card{width:min(520px,calc(100vw - 32px))}.recovery-code-panel{display:grid;gap:10px;padding:18px 20px;border:1px solid #ecd6a0;border-radius:18px;background:linear-gradient(180deg,#fff5e0eb,#fffffffa)}.recovery-code-label{font-size:.76rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.recovery-code-value{display:block;overflow-wrap:anywhere;font-size:clamp(1.1rem,2vw,1.35rem);font-weight:700;letter-spacing:.18em;color:var(--accent-strong)}.recovery-code-actions{justify-content:space-between}.modal-error{margin:0;padding:14px 16px;border:1px solid rgba(173,56,42,.18);border-radius:16px;background:#f4e2dddb;color:#7c2b1f;line-height:1.6}.print-storybook-steps{display:grid;gap:12px;margin:0;padding-left:22px;color:var(--muted);line-height:1.7}.modal-note{margin:0;color:#5f4923;line-height:1.7}.modal-actions{justify-content:flex-end}.spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:1080px){.hero-panel{grid-template-columns:1fr}.step-label{display:none}.step-line{margin:0 10px}}@media(max-width:820px){.home-shell,.workflow-shell{width:100%;padding-inline:10px}.hero-copy,.process-panel,.editor-card{padding:22px}.field-row,.process-grid,.reference-grid{grid-template-columns:1fr}.workflow-topbar,.card-header{flex-direction:column;align-items:stretch}.step-indicator{padding:0}.step-marker{width:42px;height:42px}.viewer-footer{flex-direction:column}.checkout-modal-card{width:min(100vw - 24px,760px);padding:24px 18px}.checkout-modal-overlay .checkout-modal-card{margin-block:12px}.checkout-frame{min-height:480px;padding:6px}.recovery-code-actions{gap:12px;justify-content:stretch}.recovery-code-actions .button{width:100%}}@media(max-width:560px){.home-shell{padding-top:18px}.workflow-shell{padding-top:16px}.hero-copy h1,.section-copy h1{font-size:2.4rem}.section-copy h2{font-size:1.6rem}.story-stage,.character-preview{min-height:420px;padding:20px}}
