:root{--ink:#152f35;--muted:#587076;--paper:#f7f7f1;--accent:#dbf286;--line:#dce3d9;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit}header,main,footer{max-width:1240px;margin:auto;padding:24px 40px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:24px;font-weight:800;letter-spacing:-1px;text-decoration:none}nav{display:flex;gap:28px}nav a{text-decoration:none;font-size:14px}h1,h2,h3{line-height:1.15;letter-spacing:-.04em}h1{font-size:clamp(32px,4vw,56px);margin:12px 0 24px}h2{font-size:28px}h3{font-size:20px;margin:10px 0}p{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:800}.hero{position:relative;min-height:450px;padding:45px 0 65px;overflow:hidden}.hero h1{font-size:clamp(38px,5vw,68px);max-width:650px}.hero>p{max-width:550px}.hero-art{position:absolute;right:60px;top:50px;transform:rotate(8deg)}.book{width:240px;height:310px;background:#25494a;color:#e8f0cc;padding:35px 25px;border-left:10px solid #183b3d;border-radius:3px 12px 12px 3px;font-size:28px;line-height:1.25;font-weight:750;box-shadow:20px 25px 0 #dfe6ce}.book small{display:block;font-size:12px;font-weight:400;margin-top:80px}.badge{position:absolute;right:-32px;bottom:-28px;border-radius:50%;background:var(--accent);width:115px;height:115px;display:grid;place-content:center;text-align:center;font-size:14px;font-weight:700;transform:rotate(-8deg)}.button,button{border:0;background:var(--ink);color:white;border-radius:6px;padding:12px 20px;display:inline-block;text-decoration:none;font:700 13px/1.4 system-ui;cursor:pointer}.button:hover,button:hover{background:#2d5358}.secondary{background:#e7ece2;color:var(--ink)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-title span{font-size:13px;color:var(--muted)}.filters{display:flex;gap:16px;align-items:end;margin-bottom:25px}.filters label:first-child{flex:1}label{display:block;font-size:13px;font-weight:600;margin:0 0 18px}input,select,textarea{display:block;width:100%;margin-top:6px;font:inherit;padding:11px 12px;border:1px solid #bdcac1;border-radius:5px;background:white;color:var(--ink)}.filters label{margin:0}.filters button{height:46px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}.cover{padding:25px;display:flex;flex-direction:column;justify-content:space-between;height:255px;text-decoration:none;background:#e2e8d0;color:#243e38}.cover span{font-size:11px;letter-spacing:.15em;border:1px solid currentColor;border-radius:20px;padding:2px 8px;align-self:flex-start}.cover strong{font-size:25px;line-height:1.15;font-weight:700;letter-spacing:-.04em}.cover small{font-size:9px;letter-spacing:.18em}.mp3{background:#e4ded4;color:#574435}.mp4{background:#d9e5e8;color:#294851}.zip{background:#e4dfee;color:#4a385d}.card-body{padding:20px;flex:1;display:flex;flex-direction:column}.card h3 a{text-decoration:none}.card-body p:not(.eyebrow){font-size:13px}.card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:15px;gap:8px}.card-bottom small{font-weight:400;font-size:10px}.card-bottom .button{padding:10px 16px}.note{margin:45px 0 20px;border-top:1px solid var(--line);padding-top:25px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:32px;max-width:760px;margin:24px auto}.panel h1{font-size:38px}.panel h2{font-size:22px}.price{font-size:30px;font-weight:750;color:var(--ink)}.price small{font-size:14px;font-weight:400}.product{display:grid;grid-template-columns:1fr 1.4fr;gap:50px;padding:40px 0}.product .cover{height:450px;padding:45px}.product .cover strong{font-size:42px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.admin-grid .panel{margin:0;max-width:none}.inline{display:flex;align-items:center;gap:10px}.inline input{width:auto;margin:0}.table-wrap{overflow:auto;background:white;margin:20px 0 40px}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px;vertical-align:top}td form{margin-top:8px}.error{color:#a42c27}.notice{color:#2b6b39}footer{border-top:1px solid var(--line);font-size:12px;color:var(--muted);margin-top:30px}footer span{float:right}:focus-visible{outline:3px solid #c28039;outline-offset:3px}@media(max-width:1050px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-art{right:20px;opacity:.9}.hero h1{font-size:50px;max-width:500px}.hero>p{max-width:430px}}@media(max-width:800px){header,main,footer{padding:20px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{display:none}.hero{min-height:auto}.product,.admin-grid{grid-template-columns:1fr}.product .cover{height:320px}.panel{padding:24px}.filters{flex-wrap:wrap}.filters label:first-child{min-width:180px}}@media(max-width:480px){.grid{grid-template-columns:1fr}.cover{height:240px}.hero h1{font-size:42px}nav{gap:12px}nav a{font-size:12px}.brand{font-size:21px}.section-title{align-items:start}.panel h1{font-size:30px}}

/* EbooksCreation storefront */
:root {
    --ink: #17243c;
    --muted: #53617a;
    --paper: #f5f7fc;
    --line: #dce3ef;
    --accent: #b8efb5;
}
body { font-family: Inter, system-ui, sans-serif; }
header { min-height: 80px; }
header .brand { letter-spacing: -.05em; }
.hero {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 56px;
    margin: 0 0 32px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 84% 25%, #324682 0%, transparent 50%), #17243c;
    color: #fff;
}
.hero-content { max-width: 590px; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--accent); margin: 0 0 15px; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); margin: 0 0 18px; }
.hero p { color: #d9e2fa; }
.hero .button { background: var(--accent); color: #17243c; margin-top: 10px; }
.hero .button:hover { background: #d5f8d2; }
.hero-art {
    position: relative;
    width: 300px;
    height: 270px;
    flex: 0 0 300px;
    right: auto;
    top: auto;
    transform: none;
    opacity: 1;
}
.hero-book {
    position: absolute;
    border-radius: 7px 14px 14px 7px;
    width: 188px;
    height: 244px;
    box-shadow: 0 18px 35px #070e2855;
}
.hero-book-back { top: 4px; left: 73px; background: #a2a5ee; transform: rotate(13deg); }
.hero-book-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 10px;
    left: 20px;
    transform: rotate(-9deg);
    padding: 24px 20px;
    border-left: 8px solid #83bb83;
    background: #b8efb5;
    color: #17243c;
}
.hero-book-front strong { font-size: 32px; line-height: 1; letter-spacing: -.06em; }
.hero-book-front span, .hero-book-front small { font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.hero-formats { position: absolute; right: 1px; bottom: 3px; display: flex; gap: 5px; }
.hero-formats span { color: #17243c; background: #fff; border-radius: 5px; padding: 4px 8px; font-size: 11px; font-weight: 750; }
#catalogue { scroll-margin-top: 20px; }
.filters { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.card { box-shadow: 0 3px 10px #17243c09; }
.card .cover {
    height: 188px;
    padding: 20px;
    color: #122740;
    background: linear-gradient(130deg, #e1f4cf, #a9d9a5);
    border-bottom: 1px solid #17243c14;
}
.card .cover.mp3 { background: linear-gradient(130deg, #fcebd9, #efc3a7); }
.card .cover.mp4 { background: linear-gradient(130deg, #dceafa, #a3c6ee); }
.card .cover.zip { background: linear-gradient(130deg, #ede5fc, #c7b5ed); }
.card .cover strong { font-size: clamp(21px, 2.1vw, 29px); overflow-wrap: anywhere; }
.card-body h3 { font-size: 17px; letter-spacing: -.02em; }
.card-body p { margin: 3px 0 12px; }
.card-bottom { border-top: 1px solid var(--line); }
@media (max-width: 800px) {
    .hero { min-height: auto; padding: 32px 26px; }
    .hero-art { display: none; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 36px; }
    .filters { gap: 10px; }
    .filters label:first-child { min-width: 100%; }
}

#payment-next-steps {
    margin-top: 1.25rem;
    padding: .8rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--paper);
}
#payment-next-steps code { overflow-wrap: anywhere; }

.store-intro { margin: 20px 0 26px; max-width: 75ch; }
.preserve-lines { white-space: pre-line; }
.promotion { margin: 0 0 26px; }
.campaign { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; }
.campaign img { width: min(100%, 230px); max-height: 180px; object-fit: contain; border-radius: .4rem; }
.campaign > div { flex: 1 1 220px; min-width: 0; }
.campaign h2 { margin-top: 0; }
.cover.has-image, .card .cover.has-image, .product .cover.has-image { padding: 0; overflow: hidden; }
.cover.has-image img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.admin-image { display: block; max-width: 180px; max-height: 120px; object-fit: contain; }
.storefront-settings { margin: 28px 0; }
.payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.payment-options > div { padding: 16px; border: 1px solid var(--line); border-radius: .65rem; }
.payment-options button:disabled { opacity: .55; cursor: default; }

header { gap: 10px; flex-wrap: wrap; }
header nav { align-items: center; gap: clamp(9px, 2vw, 24px); flex-wrap: wrap; }
header nav a[aria-current] { font-weight: 800; text-decoration: underline; }

.affiliate-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.affiliate-balance button:disabled { background: #697386; color: #fff; cursor: default; }

.site-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 24px; }
.site-footer nav { display:flex; flex-wrap:wrap; gap:10px 20px; }
.site-footer a { text-underline-offset:.2em; }
.affiliate-title { color:#142a38; margin-bottom:.4em; }
.affiliate-entry { margin-top:2rem; }
.affiliate-entry .panel { min-width:0; }
.secret-card { padding:1.15rem 1.3rem; background:#e5f3ed; border:1px solid #a4c7b7; border-radius:.75rem; margin:1.25rem 0; color:#153e34; }
.secret-card h3 { margin-top:0; }
.secret-card code { display:block; overflow-wrap:anywhere; color:#153e34; font-size:clamp(.95rem, 2vw, 1.3rem); font-weight:700; }
.info-page { max-width:820px; margin:0 auto 3rem; }
.info-page .panel { max-width:none; margin:1.25rem 0; }
.info-page ol { padding-left:1.4rem; }
.info-page li { margin:.7rem 0; line-height:1.55; }
.info-nav { display:flex; flex-wrap:wrap; gap:.6rem; }
.info-nav a { display:inline-block; border:1px solid #a8c5bd; border-radius:2rem; padding:.55rem 1rem; text-decoration:none; font-weight:700; }
.info-contact { margin-top:1.5rem; }

body { background:#f3f7f6; color:#172e39; }
header { background:#fff; border-bottom:1px solid #d7e4e0; }
.hero { background:linear-gradient(130deg,#153a36,#102832); }
.card, .panel { box-shadow:0 5px 20px rgba(21,54,51,.055); }
.card { border-color:#d9e6e0; }
.card-body { line-height:1.55; }
.section-title { color:#173b36; }
.site-footer { color:#38524f; border-top:1px solid #d7e4e0; }

.product-languages { display:flex; align-items:center; flex-wrap:wrap; column-gap:1.3rem; row-gap:.55rem; margin:0 0 1rem; padding:.65rem .85rem; border:1px solid #d7e4e0; border-radius:.7rem; }
.product-languages legend { padding:0 .3rem; font-weight:700; }
.product-languages .inline, .product-languages p { margin:0; }
.product-languages p { flex-basis:100%; font-size:.88rem; }
.product-previous-copy { margin:1rem 0; }
