:root {
    color-scheme: light;
    --ink: #102a2a;
    --muted: #657676;
    --brand: #126b60;
    --brand-dark: #0c514b;
    --paper: #fbfaf6;
    --line: #e6e9e3;
    --accent: #d7ed9f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }

.site-header { height: 82px; background: #102a2a; color: #fff; }
.header-inner, .footer-inner { width: min(1160px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 720; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.nav-link { color: #d2e0dc; font-size: 13px; font-weight: 550; text-decoration: none; }
.nav-link:hover, .footer-links a:hover { color: var(--accent); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 720; text-decoration: none; transition: transform .18s ease, background .18s ease, opacity .18s ease; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #193322; }
.button-primary:not(:disabled):hover { background: #e3f6b6; }
.button-outline { min-height: 40px; padding: 0 18px; border: 1px solid #76908a; border-radius: 5px; color: #fff; font-size: 13px; text-decoration: none; }
.button:disabled { cursor: not-allowed; opacity: .58; }

.hero { position: relative; overflow: hidden; padding: 92px max(24px, calc((100% - 1160px) / 2)) 0; color: #fff; background: #102a2a; }
.hero::before { position: absolute; top: -245px; right: -100px; width: 710px; height: 710px; border: 1px solid rgba(202, 231, 173, .1); border-radius: 50%; content: ""; }
.hero::after { position: absolute; top: -158px; right: -15px; width: 540px; height: 540px; border: 1px solid rgba(202, 231, 173, .08); border-radius: 50%; content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 62px; min-height: 430px; }
.hero-copy { max-width: 580px; padding-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #d0e7b0; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(215, 237, 159, .7); }
.overline { margin: 34px 0 14px; color: #9dc8b7; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 650px; margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
.hero-description { max-width: 480px; margin-bottom: 26px; color: #c4d2cc; font-size: 16px; line-height: 1.75; }
.hero-cta { min-width: 194px; }
.trust-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #bdd0c8; font-size: 12px; }
.trust-note span { color: var(--accent); font-size: 16px; }
.book-scene { position: relative; display: grid; min-height: 390px; place-items: center; }
.glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(174, 214, 138, .17), rgba(174, 214, 138, 0) 68%); }
.book { position: relative; z-index: 1; width: 218px; height: 298px; perspective: 700px; transform: rotate(-7deg); filter: drop-shadow(24px 24px 18px rgba(0, 0, 0, .28)); }
.book-cover { position: absolute; inset: 0 0 0 12px; display: flex; flex-direction: column; padding: 26px 23px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px 8px 8px 3px; background: linear-gradient(143deg, #227968, #145248 62%, #103e3a); box-shadow: inset 8px 0 13px rgba(0,0,0,.16); }
.book-spine { position: absolute; z-index: 2; inset: 0 auto 0 0; width: 16px; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #0d3733, #1d5e51); }
.cover-mark, .cover-bottom { color: #b7dca8; font-size: 8px; font-weight: 760; letter-spacing: .16em; }
.cover-line { width: 35px; height: 2px; margin-top: 39px; background: #d2e9a1; }
.cover-title { margin-top: 17px; color: #fff9e9; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.04; overflow-wrap: anywhere; }
.cover-bottom { margin-top: auto; color: #c4d8c6; font-size: 7px; }
.floating-note { position: absolute; right: 3px; bottom: 56px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(36, 71, 62, .83); color: #d3ded7; font-size: 11px; line-height: 1.6; box-shadow: 0 15px 35px rgba(0,0,0,.15); }
.floating-note strong { color: #fff; font-size: 13px; }
.note-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #d7ed9f; color: #143b33; font-size: 18px; }
.spark { position: absolute; color: #d7ed9f; }
.spark-one { top: 54px; right: 85px; font-size: 21px; }
.spark-two { bottom: 64px; left: 40px; color: #7faf9d; font-size: 14px; }
.hero-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; min-height: 67px; border-top: 1px solid rgba(255,255,255,.14); color: #c1d0c8; font-size: 11px; }
.hero-separator { width: 3px; height: 3px; border-radius: 50%; background: #d7ed9f; }

.account-section { padding: 82px 24px; background: #f0f3ec; }
.account-content { width: min(1000px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 76px; }
.account-intro h2 { margin: 17px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 49px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.account-intro h2 span { color: var(--brand); }
.account-intro > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.account-promise { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.account-promise span { color: var(--brand); font-size: 16px; }
.account-card { padding: 25px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 18px 48px rgba(16, 42, 42, .08); }
.account-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 550; letter-spacing: -.025em; }
.account-card > p:not(.account-privacy) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.account-actions .button { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; border-radius: 5px; font-size: 12px; font-weight: 700; text-decoration: none; }
.account-actions .button-primary { background: var(--brand); color: #fff; }
.account-actions .button-outline { border: 1px solid #76908a; color: var(--brand-dark); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 6px; background: #f1f4ef; }
.account-tab { min-height: 39px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.account-tab.is-active { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 5px rgba(16, 42, 42, .1); }
.account-form { display: grid; gap: 9px; margin-top: 20px; }
.account-form[hidden], .account-library[hidden], .reader-panel[hidden] { display: none; }
.account-form h3, .library-heading h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 550; letter-spacing: -.025em; }
.account-form > p { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-form label { margin-top: 3px; font-size: 11px; font-weight: 700; }
.account-form input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #dfe5df; border-radius: 5px; outline: none; font-size: 12px; }
.account-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 107, 96, .1); }
.account-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-submit { width: 100%; margin-top: 8px; background: var(--brand); color: #fff; }
.account-submit:not(:disabled):hover { background: var(--brand-dark); }
.account-text-button { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--brand-dark); cursor: pointer; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.account-message { min-height: 20px; margin: 14px 0 0; color: var(--brand-dark); font-size: 11px; line-height: 1.6; }
.account-message.is-error { color: #a6332a; }
.account-privacy { margin: 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-library { margin-top: 20px; }
.library-heading, .reader-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-heading h3 { margin: 5px 0 0; overflow-wrap: anywhere; }
.library-empty { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.library-grid { display: grid; gap: 12px; margin-top: 18px; }
.library-book { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.library-book img { width: 54px; height: 68px; border-radius: 3px; object-fit: cover; background: #edf2e8; }
.library-book h4 { margin: 0 0 10px; font-size: 12px; line-height: 1.4; }
.library-book-actions { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.library-book-actions button { padding: 0; border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 10px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.reader-panel { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.reader-heading { margin-bottom: 10px; }
.reader-heading h4 { margin: 0; font-size: 13px; }
.reader-panel iframe { display: block; width: 100%; height: min(68vh, 680px); min-height: 420px; border: 1px solid var(--line); border-radius: 5px; background: #f6f7f4; }

.section { width: min(1160px, calc(100% - 48px)); margin: auto; }
.details { padding-top: 92px; padding-bottom: 98px; }
.eyebrow-dark { color: var(--brand); }
.section-heading { max-width: 590px; margin: auto auto 50px; text-align: center; }
.section-heading h2, .faq-intro h2 { margin: 17px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 49px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.section-heading h2 span, .faq-intro h2 span { color: var(--brand); }
.section-heading p, .faq-intro p { margin: auto; color: var(--muted); font-size: 14px; line-height: 1.75; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 210px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.step-number { color: #99a6a0; font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.step-icon { position: absolute; top: 22px; right: 25px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #edf4e5; color: var(--brand); font-size: 18px; }
.step-card h3 { margin: 36px 0 9px; font-size: 16px; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.catalog { padding-top: 20px; padding-bottom: 96px; }
.catalog-heading { max-width: 650px; margin: 0 auto 34px; text-align: center; }
.catalog-heading h2 { margin: 17px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 49px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.catalog-heading h2 span { color: var(--brand); }
.catalog-heading p, .catalog-message { color: var(--muted); font-size: 14px; line-height: 1.7; }
.catalog-search { display: grid; width: min(460px, 100%); gap: 7px; margin: 0 auto 18px; }
.catalog-search label { color: var(--ink); font-size: 12px; font-weight: 700; }
.catalog-search input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.catalog-search input:focus { border-color: var(--brand); outline: 3px solid rgba(18,107,96,.12); }
.catalog-search input::placeholder { color: #89968f; }
.catalog-message { min-height: 24px; margin: 0 0 22px; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16, 42, 42, .08); }
.product-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(18, 107, 96, .14); }
.product-image { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: #e8eee8; }
.product-body { display: flex; min-height: 226px; flex-direction: column; padding: 20px; }
.product-formats { color: var(--brand); font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.product-body h3 { margin: 9px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; line-height: 1.2; }
.product-body > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.product-preview-button { align-self: flex-start; margin: 0 0 16px; padding: 0; border: 0; background: transparent; color: var(--brand-dark); cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.product-preview-button:focus-visible { outline: 3px solid #d7ed9f; outline-offset: 3px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-price { color: var(--ink); font-size: 17px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-more { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #8a9b91; border-radius: 5px; background: #fff; color: var(--brand-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.product-more:hover { border-color: var(--brand); background: #f3f7ef; }
.product-more:focus-visible { outline: 3px solid #d7ed9f; outline-offset: 3px; }
.product-buy { min-height: 39px; padding: 0 16px; border: 0; border-radius: 5px; background: var(--brand); color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.product-buy:not(:disabled):hover { background: var(--brand-dark); }
.product-buy:disabled { background: #aab8b2; cursor: not-allowed; }
.product-buy:focus-visible { outline: 3px solid #d7ed9f; outline-offset: 3px; }
.product-preview { width: min(760px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.product-preview::backdrop { background: rgba(8, 24, 23, .72); }
.product-preview-content { position: relative; padding: 34px; }
.product-preview-close { position: absolute; top: 10px; right: 12px; }
.product-preview-close button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2ef; color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; }
.product-preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.product-preview-layout > img { display: block; width: 100%; aspect-ratio: 8 / 5; border-radius: 6px; object-fit: cover; background: #e8eee8; }
.product-preview-label { color: var(--brand); font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.product-preview-layout h2 { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 4vw, 34px); font-weight: 500; line-height: 1.15; }
.product-preview-layout p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.product-preview-excerpt { max-height: 190px; overflow: auto; margin-top: 20px; padding: 14px; border-left: 3px solid var(--brand); background: #f4f7f3; }
.product-preview-excerpt h3 { margin: 0 0 8px; font-size: 11px; }
.product-preview-excerpt p { margin: 0; font-size: 12px; }
.product-preview-price { display: block; margin: 18px 0; font-size: 20px; }

.purchase-band { padding: 78px 24px; color: #fff; background: #153b36; }
.purchase-content { width: min(1000px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 76px; }
.purchase-content .eyebrow { color: #c4df9d; }
.purchase-content h2 { margin: 18px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 47px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.purchase-content > div:first-child > p { max-width: 420px; margin: 0; color: #c1d2ca; font-size: 14px; line-height: 1.75; }
.purchase-card { padding: 27px; border-radius: 9px; background: #fff; color: var(--ink); box-shadow: 0 22px 60px rgba(0,0,0,.17); }
.card-caption, .price-caption { display: block; color: var(--muted); font-size: 11px; }
.selected-product { display: block; margin-top: 9px; font-size: 16px; line-height: 1.4; }
.price { display: block; margin: 9px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.purchase-card form { display: grid; gap: 9px; margin-top: 22px; }
.purchase-guest-fields { display: contents; }
.purchase-card label { margin-top: 3px; font-size: 11px; font-weight: 700; }
.purchase-card input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #dfe5df; border-radius: 5px; outline: none; font-size: 12px; }
.purchase-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,107,96,.1); }
.purchase-card input:disabled { background: #f3f5f2; }
.purchase-button { width: 100%; margin-top: 8px; background: var(--brand); color: #fff; }
.purchase-button:not(:disabled):hover { background: var(--brand-dark); }
.form-message { min-height: 32px; margin: 0; color: #586d67; font-size: 11px; line-height: 1.5; }
.secure-caption { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: #72817a; font-size: 10px; }
.secure-caption span { color: var(--brand); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-top: 93px; padding-bottom: 105px; }
.faq-intro h2 { margin-bottom: 12px; }
.faq-intro p { margin: 0; }
.faq-list details { padding: 21px 0; border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 680; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); font-size: 20px; font-weight: 400; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 600px; margin: 13px 30px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.site-footer { min-height: 130px; background: #102a2a; color: #c9d6d1; }
.footer-inner { min-height: 130px; gap: 28px; }
.footer-copy { margin: 0; font-size: 11px; line-height: 1.75; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 23px; }
.footer-links a { color: #d3dfda; font-size: 11px; text-decoration: none; }

.ebook-detail-main { width: min(1080px, calc(100% - 48px)); min-height: calc(100vh - 212px); margin: 0 auto; padding: 54px 0 84px; }
.ebook-detail[hidden], .details-error[hidden] { display: none; }
.detail-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 62px; }
.detail-cover-wrap { position: relative; overflow: hidden; border-radius: 8px; background: #e8eee8; }
.detail-cover { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.detail-format { position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; border-radius: 4px; background: #102a2a; color: #fff; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.detail-intro h1 { margin: 14px 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 44px; font-weight: 500; line-height: 1.12; }
.detail-subtitle { margin: 0 0 16px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.5; }
.detail-audience { color: var(--ink); font-size: 13px; line-height: 1.7; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-actions .button-primary, .detail-bottom-cta .button-primary { background: var(--brand); color: #fff; }
.detail-actions .button-primary:hover, .detail-bottom-cta .button-primary:hover { background: var(--brand-dark); }
.detail-back-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid #93a19a; border-radius: 6px; color: var(--brand-dark); font-size: 13px; text-decoration: none; }
.detail-price { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.detail-section { padding: 66px 0; border-top: 1px solid var(--line); }
.detail-summary { max-width: 760px; margin-top: 64px; }
.detail-section h2, .detail-preview h2, .detail-bottom-cta h2 { margin: 12px 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; line-height: 1.2; }
.detail-summary > p, .detail-outline > div > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.detail-outline { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 60px; }
.chapter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; counter-reset: chapter; }
.chapter-list li { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.55; }
.chapter-number { color: var(--brand); font-size: 10px; font-weight: 800; }
.detail-preview { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 54px; padding: 42px; border-radius: 8px; background: #153b36; color: #fff; }
.detail-preview .eyebrow { color: #c4df9d; }
.detail-preview h2 { color: #fff; }
.detail-preview > div > p { margin: 0; color: #c1d2ca; font-size: 13px; line-height: 1.7; }
.detail-preview blockquote { margin: 0; padding: 22px 24px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.08); color: #f4f4eb; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.75; }
.detail-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 62px 0 0; }
.detail-bottom-cta h2 { margin-top: 0; }
.detail-bottom-cta p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.details-error { max-width: 600px; min-height: 48vh; margin: auto; padding: 60px 0; }
.details-error h1 { font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; }
.details-error p { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.details-error .button-primary { background: var(--brand); color: #fff; }

@media (max-width: 800px) {
    .hero { padding-top: 65px; }
    .hero-grid { grid-template-columns: 1fr; gap: 8px; }
    .hero-copy { padding-bottom: 0; }
    .book-scene { min-height: 340px; }
    .book { width: 190px; height: 260px; }
    .floating-note { right: 8%; bottom: 44px; }
    .steps { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-footer { align-items: flex-start; flex-direction: column; }
    .product-actions { width: 100%; }
    .product-preview-layout { grid-template-columns: 1fr; gap: 18px; }
    .product-preview-layout > img { max-height: 300px; }
    .product-preview-content { padding: 46px 22px 24px; }
    .step-card { min-height: 175px; }
    .step-card h3 { margin-top: 28px; }
    .purchase-content { grid-template-columns: 1fr; gap: 30px; }
    .purchase-card { max-width: 480px; }
    .account-content { max-width: 560px; grid-template-columns: 1fr; gap: 30px; }
    .account-card { width: 100%; }
    .faq { grid-template-columns: 1fr; gap: 34px; }
    .detail-hero { grid-template-columns: 1fr; gap: 28px; }
    .detail-cover-wrap { max-width: 620px; }
    .detail-intro h1 { font-size: 38px; }
    .detail-outline { grid-template-columns: 1fr; gap: 24px; }
    .detail-preview { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
    .detail-bottom-cta { align-items: flex-start; flex-direction: column; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 25px 0; }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .header-inner, .footer-inner, .section { width: min(100% - 36px, 1160px); }
    .site-header { height: 72px; }
    .brand { gap: 8px; font-size: 12px; }
    .brand img { width: 34px; height: 34px; }
    .site-header nav { gap: 12px; }
    .site-header nav .nav-link { display: none; }
    .button-outline { min-height: 36px; padding: 0 12px; font-size: 11px; }
    .hero { padding-right: 18px; padding-left: 18px; }
    .hero h1 { font-size: 43px; }
    .hero-description { font-size: 14px; }
    .hero-bottom { gap: 8px; font-size: 9px; }
    .hero-bottom span:last-child { max-width: 130px; }
    .details, .faq { padding-top: 68px; padding-bottom: 72px; }
    .catalog { padding-top: 0; padding-bottom: 72px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-footer { align-items: center; flex-direction: row; }
    .product-actions { width: auto; }
    .product-body { min-height: 196px; }
    .section-heading { margin-bottom: 32px; }
    .purchase-band { padding: 60px 18px; }
    .purchase-card { padding: 22px; }
    .account-section { padding: 60px 18px; }
    .account-card { padding: 20px; }
    .reader-panel iframe { min-height: 360px; }
    .ebook-detail-main { width: calc(100% - 36px); padding: 34px 0 60px; }
    .detail-intro h1 { font-size: 34px; }
    .detail-subtitle { font-size: 18px; }
    .detail-section { padding: 48px 0; }
    .detail-summary { margin-top: 48px; }
    .detail-section h2, .detail-preview h2, .detail-bottom-cta h2 { font-size: 28px; }
    .chapter-list { grid-template-columns: 1fr; }
    .detail-preview { padding: 24px; }
    .detail-preview blockquote { padding: 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
