
/* FLIPFOLIO 3.0 PREMIUM REDESIGN — dedicated visual system */
:root{--dark:#10111f;--ink:#171b29;--lime:#cbfa78;--purple:#8b7bf2;--max:1240px}
body{background:#fff;color:#202233}
.announcement{background:#151425;border-bottom:1px solid #ffffff1a;color:#d7d7e8;letter-spacing:.2px}
.announcement strong,.announcement a{color:#cbfa78}
.header{background:#171727fa;border-bottom:1px solid #ffffff1b;box-shadow:0 4px 28px #15142518}
.header .logo{color:#fff}.header .logo>span:last-child{color:#b4a7ff}.header .logo-icon{background:#c9fa7b;color:#151827;transform:rotate(-8deg)}.header .logo-icon span{color:#8265dc}
.header .nav a{color:#d8d8e8}.header .nav a:hover{color:#cbfa78}
.header .coffee-link{color:#f8d8ad;border:1px solid #7e674b;border-radius:100px;padding:11px 13px;white-space:nowrap;background:#443a34a3}
.header .button-small{background:#cbfa78;color:#171827}
.menu-toggle{color:#fff}
.hero{max-width:none;width:100%;min-height:665px;padding:82px max(25px,calc((100vw - 1190px)/2)) 95px;gap:40px;background:radial-gradient(ellipse 46% 68% at 72% 44%,#413768a6 0%,transparent 85%),radial-gradient(ellipse 44% 78% at 4% 91%,#342d4c5e 0%,transparent 86%),#101020;position:relative;overflow:hidden}
.hero:before{position:absolute;content:'';inset:0;pointer-events:none;background-image:linear-gradient(#ffffff07 1px,transparent 1px),linear-gradient(90deg,#ffffff07 1px,transparent 1px);background-size:58px 58px;mask-image:linear-gradient(90deg,transparent,#000 60%)}
.hero:after{position:absolute;content:'';height:1px;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent,#a9a1f079,transparent)}
.hero-text{position:relative;z-index:3}
.hero .eyebrow{color:#d3c8ff;letter-spacing:1.5px;flex-wrap:wrap;gap:10px}
.hero .eyebrow-star{background:#7361b647;color:#e2d5ff}
.hero-live-dot{display:inline-flex;align-items:center;border:1px solid #baff9f6b;border-radius:100px;padding:7px 12px;color:#c8fa86;font-size:9px;letter-spacing:.65px;line-height:1;background:#c8fa860f}
.hero-live-dot:before{content:'';width:5px;height:5px;background:#c8fa86;border-radius:100%;box-shadow:0 0 0 4px #c8fa8622;margin-right:8px}
.hero h1{font-size:clamp(58px,6.6vw,96px);letter-spacing:-6.3px;color:#f7f4ff;line-height:.99;margin:26px 0}
.hero h1 em{color:#cbfa78;text-shadow:0 0 50px #ceff4c34}
.hero-text>p{color:#b6b7c9;font-size:15px;max-width:510px;line-height:1.9}
.hero-text>p strong{color:#fff;font-weight:600}
.hero .button-primary{background:#c5f37f;color:#151923;box-shadow:0 12px 34px #bef66621}
.hero .button-secondary{color:#e9e3fb;background:#ffffff0e;border-color:#77718d7a}
.hero .trust-line{color:#d4d0df;gap:19px;margin-top:24px}
.hero-footer-stats{display:flex;gap:30px;border-top:1px solid #ffffff20;padding-top:24px;margin-top:35px}
.hero-footer-stats div{display:flex;flex-direction:column;gap:4px}.hero-footer-stats b{color:#f4f0ff;font-size:28px;letter-spacing:-1px;line-height:1}.hero-footer-stats small{font-size:11px;color:#9395af}
.hero-scene{min-height:510px;overflow:visible;perspective:1400px}
.hero-scene:before{background:radial-gradient(ellipse,#9a64ff66,transparent 65%);filter:blur(42px)}
.hero-glow{position:absolute;width:340px;height:340px;border-radius:100%;background:#a39bff29;filter:blur(80px)}
.hero .orbit{width:490px;height:330px;border-color:#9f90d43b}.hero .orbit-two{width:360px;height:470px}
.hero .scene-book{width:min(100%,540px);height:345px;transform:rotate(-6deg) rotateY(-11deg) rotateX(5deg);filter:drop-shadow(32px 45px 22px #0009);animation:bookFloat 7s ease-in-out infinite;transform-origin:center}
.hero .scene-left,.hero .scene-right{padding:25px 22px}
.hero .scene-left{background:linear-gradient(132deg,#fcf5e6,#eee8de);color:#292238;box-shadow:inset -10px 0 17px #5448301d}
.hero .scene-right{background:radial-gradient(circle at 65% 40%,#3e345f,#181c37 72%);box-shadow:inset 12px 0 15px #0004}
.hero .scene-left h2{font-size:39px;line-height:1.01;margin:55px 0 0;letter-spacing:-2px}.hero .scene-left h2 i{color:#7d65b5}
.hero .scene-art{background:#ada5fa;box-shadow:0 0 30px #c3bbff38}
.hero .scene-badge{background:#ffffffef;border:1px solid #ffffff63;backdrop-filter:blur(10px);box-shadow:0 20px 38px #05041066;border-radius:18px}
.hero .scene-badge-a{right:4px;top:20px}.hero .scene-badge-b{left:-12px;bottom:65px}
.badge-icon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#eee9ff;color:#7957c7;margin-right:5px}
.hero-next{position:absolute;z-index:6;right:0;bottom:30px;border:1px solid #ffffff35;border-radius:100px;color:#eee9ff;background:#191828cc;display:flex;align-items:center;gap:20px;padding:7px 7px 7px 20px;font-weight:700;font-size:12px;box-shadow:0 6px 25px #0007;transition:.2s}
.hero-next b{display:grid;place-items:center;color:#212333;background:#cbfa78;width:35px;height:35px;font-size:18px;border-radius:50%}.hero-next:hover{transform:translateY(-3px);border-color:#cbfa78}
.hero-note{position:absolute;bottom:-17px;left:25px;color:#b2afc8;font-size:10px;letter-spacing:.4px}
.scene-turn-leaf{pointer-events:none;position:absolute;z-index:8;left:50%;top:0;bottom:0;width:50%;background:linear-gradient(90deg,#eae6e1 0%,#f6f2e9 9%,#fffdf3 70%,#c1b7e7 100%);backface-visibility:hidden;transform-origin:left;transform:rotateY(180deg);opacity:0;border-radius:0 7px 7px 0}
.scene-book.is-flipping .scene-turn-leaf{animation:flipLeaf .7s ease-in forwards}
@keyframes flipLeaf{0%{transform:rotateY(0deg);opacity:.95}75%{opacity:.95}100%{transform:rotateY(-180deg);opacity:0}}
@keyframes bookFloat{0%,100%{transform:rotate(-6deg) rotateY(-11deg) rotateX(5deg) translateY(0)}50%{transform:rotate(-5deg) rotateY(-8deg) rotateX(6deg) translateY(-9px)}}
.monetization-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:60px;padding-bottom:6px}
.monetization-intro h2{font-size:clamp(25px,3.3vw,41px);letter-spacing:-1.7px;margin:9px 0}.monetization-intro h2 em{color:#8270ce;font-style:normal}.monetization-intro p{font-size:13px;line-height:1.7;color:#898a97;max-width:550px}
.support-mini{background:#fff7e5;color:#503b22;border:1px solid #e7d3b0;display:flex;align-items:center;gap:13px;padding:14px 18px;border-radius:17px;font-size:32px;box-shadow:0 10px 23px #966f2c13}.support-mini span{display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:500}.support-mini b{font-size:12px}
.ad-slot.preview{display:flex}.ad-slot{position:relative;background:repeating-linear-gradient(-45deg,#f6f6fb,#f6f6fb 9px,#f0f0f7 9px,#f0f0f7 18px);border:1.5px dashed #9d9bc5;border-radius:13px;color:#696584;box-shadow:inset 0 0 0 8px #ffffff9c;gap:6px;max-width:100%;text-align:center}
.ad-slot.preview:before,.ad-slot.preview:after{position:absolute;content:'';width:6px;height:6px;background:#8f8cba;border-radius:50%;top:8px;left:8px}.ad-slot.preview:after{left:auto;right:8px}
.ad-slot .ad-label{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#7b73a9}.ad-slot strong{color:#39394f;font-size:21px;margin:0;letter-spacing:-.6px;font-weight:800}.ad-slot strong small{font-size:11px;color:#797689;display:block;letter-spacing:0;font-weight:500;margin-top:3px}
.ad-slot.active{display:flex;background:transparent;border:none;box-shadow:none;padding:0}
.ad-leader-shell{padding-top:0;padding-bottom:40px;display:flex;justify-content:center}
.ad-leader-shell .ad-slot{margin:10px 0 0;width:728px}.ad-slot.ad-rectangle{min-height:260px;margin-top:35px}.ad-slot.ad-skyscraper{min-height:390px;max-width:280px;margin-top:20px}.ad-slot.ad-billboard{margin:36px auto 0;min-height:200px;width:min(970px,100%)}
.ad-slot.ad-native{margin:45px auto;min-height:130px;width:min(900px,calc(100% - 50px))}.ad-slot.ad-footer{margin:50px auto 20px;min-height:90px}
.studio-zone{background:#faf9fd;padding-top:75px}.upload-card{background:#fff;border:2px dashed #ac9fe6;box-shadow:0 24px 55px #6f62b90d;min-height:405px}.upload-symbol{background:linear-gradient(145deg,#e7dffd,#c3f77e);color:#423266}.upload-card:hover{box-shadow:0 20px 70px #7362ae2b}
.studio-aside{background:#ffffff;border:1px solid #eeedf5;border-radius:24px;padding:20px}
.books-section{background:radial-gradient(ellipse at 52% 0,#352b4e,#15151f 75%);color:white;padding-top:92px;padding-bottom:105px}
.books-section .shelf-heading h2{color:#fff}.books-section .shelf-heading p{color:#c4bcce}.books-section .shelf-tag{color:#c9fa7f;border-color:#cbfa7f66}
.books-section .shelf-heading h2 em{color:#c9f87d}
.support-section{padding-top:85px;padding-bottom:65px}.support-box{background:linear-gradient(120deg,#fff4d9,#ffebc0 53%,#ffe9d8);border:1px solid #f6d7a2;box-shadow:0 25px 70px #b6793324;position:relative;overflow:hidden}
.support-box:after{content:'☕';font-size:240px;position:absolute;right:19%;bottom:-135px;color:#e2b77c33;transform:rotate(-16deg);pointer-events:none}
.support-copy,.qr-card{z-index:1;position:relative}.support-box h2{font-size:clamp(28px,3.7vw,49px);color:#3d301e;letter-spacing:-2px}.support-box h2 em{color:#996b34}.support-copy p{color:#806b52;max-width:540px}
.support-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.coffee-button{background:#ffcf6f!important;color:#3e2e15!important;box-shadow:0 7px 23px #a7672f24}.support-plain-link{font-size:12px;font-weight:800;text-decoration:underline;color:#674626}
.coffee-status{font-size:11px!important;color:#886748!important;line-height:1.5!important;max-width:565px;margin-top:16px!important}
.status-dot{display:inline-block;width:7px;height:7px;background:#f29c4b;border-radius:50%;margin-right:6px}
.qr-card{background:#fff8ed;border:1px solid #ffeed4;box-shadow:0 12px 36px #7d531326;border-radius:18px;padding:20px;min-width:200px}
.qr-card p{font-weight:700;color:#765538;font-size:11px;max-width:170px}
.coffee-qr.qr-unconfigured{width:140px;height:140px;background:#fff;position:relative;border:8px solid white;border-radius:4px;overflow:hidden}
.qr-pattern{position:relative;width:100%;height:100%;background-image:repeating-conic-gradient(#271b12 0 25%,#fff 0 50%);background-size:18px 18px;opacity:.7;filter:blur(.5px)}
.qr-pattern i{position:absolute;width:35px;height:35px;background:#fff;border:8px solid #271b12;outline:4px solid #fff;left:3px;top:3px}.qr-pattern i:nth-child(2){left:auto;right:3px}.qr-pattern i:nth-child(3){top:auto;bottom:3px}.qr-pattern b{position:absolute;left:43px;top:50px;width:48px;height:40px;border-radius:8px;background:#fff;display:grid;place-items:center;font-size:22px}
.qr-unconfigured:after{content:'DEMO';position:absolute;inset:0;display:grid;place-items:center;font-size:13px;letter-spacing:1px;font-weight:900;color:#fff;background:#211a1a9c;z-index:2}
.ad-network-section{background:#f5f4f9;padding:86px 0 100px}.ad-format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ad-format-card{background:white;border:1px solid #e8e7f0;border-radius:22px;padding:27px 25px;display:flex;flex-direction:column;min-height:240px;box-shadow:0 15px 30px #41365b08;transition:transform .25s,box-shadow .25s}.ad-format-card:hover{transform:translateY(-5px);box-shadow:0 20px 35px #3b2d6a13}.ad-format-card>span{font-size:10px;letter-spacing:1.4px;color:#8773bc;font-weight:800}.ad-format-card b{font-size:20px;letter-spacing:-.7px;margin-top:13px}.ad-format-card small{color:#89899b;font-size:12px;margin-top:9px}.ad-format-shape{margin-top:auto;height:57px;border:2px solid #b9b5d6;background:repeating-linear-gradient(-45deg,#f3f1fb,#f3f1fb 7px,#e7e4f5 7px,#e7e4f5 14px);border-radius:6px;align-self:start;width:100%;max-width:245px}.shape-board{height:80px}.shape-side{height:80px;width:105px}.shape-native{height:44px}.shape-mobile{width:170px;height:35px}.shape-pop{width:60px;height:60px;display:grid;place-items:center;font-size:27px;color:#7767ba;border-style:dashed}.ads-note{display:flex;align-items:start;gap:14px;margin-top:27px;font-size:12px;line-height:1.7;color:#818093}.ads-note span{font-size:20px;color:#7260ab}.ads-note p{margin:0}
.pricing-section{padding-top:85px}.feature-section{padding-top:85px;padding-bottom:100px}
/* Sticky ad preview is shown only on mobile, but never covers controls while viewer is active */
@media(max-width:800px){
 .hero{padding:70px 25px 90px;min-height:auto;gap:45px}.hero h1{font-size:clamp(55px,11vw,80px);letter-spacing:-3.5px}.hero-scene{min-height:450px}.hero .scene-book{width:420px;max-width:92%;height:290px}.hero .scene-left h2{font-size:32px;margin-top:45px}.hero .scene-badge-a{right:4px}.hero .scene-badge-b{bottom:70px;left:5px}.hero-next{right:10px;bottom:23px}.hero-footer-stats{gap:22px}.hero-footer-stats small{font-size:9px}
 .header .coffee-link{display:none}.nav{background:#171727}.nav a{color:#fff}.monetization-intro{padding-top:42px;flex-direction:column;align-items:flex-start}.support-mini{width:100%}
 .ad-format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-aside{padding:14px}.ad-slot.ad-skyscraper{display:none!important}
 .ad-slot.ad-rectangle{min-height:170px}.ad-leader-shell{padding-bottom:20px}
 .support-box:after{right:-20px;bottom:-120px}.qr-card{width:200px}
}
@media(max-width:550px){
 .hero{padding:54px 20px 75px}.hero h1{font-size:clamp(55px,14vw,72px)}.hero .button{width:100%}.hero .trust-line{gap:11px}.hero .trust-line span{font-size:10px}.hero-footer-stats{gap:12px}.hero-footer-stats b{font-size:24px}.hero-footer-stats small{font-size:9px}.hero-scene{min-height:310px}.hero .scene-book{height:225px;max-width:92%;animation:none;transform:rotate(-6deg)}.hero .scene-left,.hero .scene-right{padding:13px}.hero .scene-left h2{font-size:24px;margin-top:34px}.hero .scene-art{width:130px;height:110px}.hero .scene-right h3{font-size:12px}.hero .scene-badge{font-size:10px;padding:8px 9px;max-width:158px}.hero .scene-badge-a{top:-11px}.hero .scene-badge-b{bottom:44px}.hero-note{bottom:-16px;font-size:9px}.hero-next{bottom:0;right:2px}.hero .orbit{width:280px;height:225px}.hero .orbit-two{width:240px;height:300px}.hero .eyebrow{font-size:9px}
 .ad-format-grid{grid-template-columns:1fr}.ad-format-card{min-height:205px}.support-section{padding-top:60px}.support-box{padding:23px}.support-actions{align-items:start;flex-direction:column}
 .ad-slot.ad-native{width:calc(100% - 40px)}.ad-slot.ad-leader{min-height:82px}.ad-slot strong{font-size:17px}
 .ad-slot.ad-mobile-sticky.preview{display:flex!important;position:sticky;bottom:0;z-index:25;width:100%;height:61px;min-height:61px;background:#e8e5f5f2;backdrop-filter:blur(10px);border-radius:0;box-shadow:0 -5px 22px #1d152d1a;margin:0;padding:5px}
 .ad-slot.ad-mobile-sticky.preview strong{font-size:14px}.ad-slot.ad-mobile-sticky.preview span{font-size:8px}
 body:has(.reader:not(.hidden)) .ad-slot.ad-mobile-sticky.preview{display:none!important}
}
@media(prefers-reduced-motion:reduce){.hero .scene-book{animation:none}.scene-book.is-flipping .scene-turn-leaf{animation:none}}
/* Prevent wide 3D decorations forcing the narrow mobile grid beyond the viewport. */
@media(max-width:760px){
 .hero{grid-template-columns:minmax(0,1fr)}
 .hero-text,.hero-scene{min-width:0;max-width:100%}
}
@media(max-width:550px){
 .hero-scene{grid-template-columns:minmax(0,1fr)}
 .hero .scene-book{width:min(82vw,320px);max-width:min(82vw,320px)}
}

/* Additional real reader modes: horizontal swipe + non-3D slide */
.mode-tabs{display:flex;flex-wrap:wrap;gap:4px}
.mode-tabs .mode-button{white-space:nowrap}
.scroll-stage.swipe-layout{flex-direction:row;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;gap:14px;max-width:100%;padding:18px 20px;align-items:center;scroll-behavior:smooth}
.scroll-stage.swipe-layout .scroll-item{flex:0 0 min(88%,620px);scroll-snap-align:center;max-height:calc(100% - 20px);min-height:360px}
.scroll-stage.swipe-layout .scroll-item img{max-height:650px;object-fit:contain}
.single-stage.slide-layout .slide-enter{animation:folioSlide .42s ease both}
@keyframes folioSlide{0%{opacity:.15;transform:translateX(24px) scale(.985)}100%{opacity:1;transform:translateX(0) scale(1)}}
@media(max-width:760px){.scroll-stage.swipe-layout .scroll-item{flex-basis:91%;min-height:260px}.reader-toolbar{align-items:start;gap:10px}.mode-tabs{width:100%}}
@media(prefers-reduced-motion:reduce){.single-stage.slide-layout .slide-enter{animation:none}}
