@import url('/language-picker.css');
:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --surface: #fffdf8;
  --ink: #183a2f;
  --muted: #546359;
  --line: #d6dfd4;
  --forest: #17362c;
  --lime: #d2f69c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button,select { font: inherit; }
button,a,select,summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a3542b; outline-offset: 5px; }
.wrap { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 84px; }
.brand { font-weight: 760; text-decoration: none; padding-block: 12px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(30px,6vw,88px); padding-block: 48px 80px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: #58715b; margin-bottom: 17px; }
h1 { font: 500 clamp(44px,5.2vw,70px)/1.07 Georgia,serif; letter-spacing: -.045em; max-width: 13ch; }
.lead { font-size: clamp(17px,1.8vw,20px); line-height: 1.6; margin: 24px 0 17px; max-width: 39ch; color: #41594a; }
.book-meta { font-size: 13px; color: var(--muted); margin-bottom: 23px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 25px; color: var(--surface); background: var(--forest); border: 1px solid var(--forest); border-radius: 6px; font-weight: 750; cursor: pointer; text-decoration: none; }
.button:hover { background: #285540; }
.button:disabled { opacity: .65; cursor: progress; }
.sample-link { display: block; width: fit-content; min-height: 44px; padding: 11px 0; font-size: 14px; }
.payment-note { font-size: 12px; line-height: 1.65; color: var(--muted); max-width: 38ch; margin-top: 7px; }
.book-display { padding: 7px 10px 0; }
.book-cover { position: relative; display: flex; flex-direction: column; min-height: 420px; border-radius: 3px 10px 10px 3px; padding: 32px 27px 26px 33px; background: #17362c; color: #f4f7ea; box-shadow: -7px 0 0 #d7dfce, -10px 0 0 #284b3c, 13px 21px 35px #183a2f22; transform: rotate(3deg); }
.book-cover::before { content: ''; position: absolute; top: 0; bottom: 0; left: 10px; width: 1px; background: #ffffff12; }
.book-cover img { width: 100%; height: auto; margin-block: 13px; }
.cover-title { font: 500 clamp(25px,3vw,38px)/1.13 Georgia,serif; max-width: 12ch; }
.cover-subtitle { font-size: 11px; line-height: 1.45; max-width: 21ch; color: #bfd1bf; }
.book-display figcaption { margin-top: 30px; font-size: 12px; text-align: center; line-height: 1.55; color: var(--muted); }
.chapter-section { padding-block: 61px; border-top: 1px solid var(--line); }
.section-intro { max-width: 640px; margin-bottom: 32px; }
h2 { font: 500 clamp(29px,3.4vw,43px)/1.15 Georgia,serif; letter-spacing: -.025em; }
.section-intro>p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.questions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.questions h3 { font-size: 17px; line-height: 1.35; margin-bottom: 12px; }
.questions p { font-size: 15px; color: var(--muted); }
.preview-section { padding-block: 65px; background: #edf0e5; }
.previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.page-button { display: block; text-align: left; color: var(--ink); padding: 0; border: 0; background: transparent; cursor: zoom-in; min-width: 0; }
.page-image { aspect-ratio: .84; overflow: hidden; background: #dfe5d8; padding: 17px 16px 0; border-radius: 6px; }
.page-image img { width: 100%; height: auto; box-shadow: 0 3px 15px #25473118; display: block; }
.page-button strong { display: block; margin-top: 15px; font-size: 15px; line-height: 1.45; }
.page-button>span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.page-button:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.contents-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.contents-section .section-intro { margin: 0; }
.contents>div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.contents>div:first-child { padding-top: 2px; }
.contents h3 { font-size: 16px; line-height: 1.35; }
.contents p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.evidence { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding-block: 50px; border-block: 1px solid var(--line); }
.evidence h2 { font-size: clamp(29px,3vw,37px); }
.evidence>div>p { color: var(--muted); }
.sources { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.sources a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
.small { font-size: 13px; line-height: 1.7; }
.faq-section { max-width: 820px; padding-block: 65px; }
.faq-section h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 20px; padding: 17px 0; cursor: pointer; font-weight: 650; line-height: 1.45; list-style: none; }
summary::after { content: '+'; flex-shrink: 0; font-size: 21px; font-weight: 400; }
summary::-webkit-details-marker { display: none; }
details[open] summary::after { content: '−'; }
details p { padding: 0 25px 20px 0; font-size: 15px; color: var(--muted); }
.closing { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 39px 42px; background: var(--forest); color: #f5f8eb; border-radius: 9px; margin-bottom: 60px; }
.closing h2 { max-width: 24ch; font-size: 32px; }
.closing p { margin-top: 13px; font-size: 14px; color: #c0d2bf; }
.closing .button { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.closing .button:hover { background: #e0fbb9; }
.closing .sample-link { color: #c0d2bf; font-size: 12px; }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 20px 28px; font-size: 12px; color: var(--muted); }
#payment-feedback { position: fixed; z-index: 4; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(540px, calc(100% - 32px)); padding: 16px 21px; border: 1px solid #bd8f68; border-radius: 8px; background: #fff6e9; box-shadow: 0 8px 40px #0002; }
dialog { width: min(850px,calc(100% - 24px)); max-height: calc(100% - 24px); padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #0c271fbd; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.dialog-heading h2 { font: 650 17px/1.3 system-ui,sans-serif; letter-spacing: normal; }
.close { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 26px; cursor: pointer; }
dialog img { display: block; width: 100%; height: auto; }
.preview-purchase { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.preview-purchase p { margin: 8px 0 0; }
.confirmation { max-width: 700px; padding-block: 70px; }
.confirmation h1 { max-width: 16ch; }
.confirmation p { margin-block: 20px; color: var(--muted); }
@media(max-width:760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { gap: 25px; padding-block: 30px 55px; }
  h1 { font-size: clamp(39px,6vw,51px); }
  .book-cover { min-height: 330px; padding: 24px 18px 24px 25px; }
  .hero-copy .lead { font-size: 17px; }
  .contents-section,.evidence { gap: 30px; }
  .questions { gap: 20px; }
  .previews { gap: 12px; }
  .page-image { padding: 9px 8px 0; }
  .closing { padding: 30px; }
}
@media(max-width:580px) {
  .topbar { min-height: 70px; }
  .brand { font-size: 13px; max-width: 62%; line-height: 1.3; }
  .language-toggle { min-width: 113px; font-size: 13px; gap: 12px; }
  .hero { grid-template-columns: 1fr; gap: 35px; }
  h1 { max-width: 14ch; font-size: clamp(41px,10vw,53px); }
  .book-display { max-width: 290px; width: 82%; margin-inline: auto; }
  .book-cover { min-height: 340px; }
  .cover-title { font-size: 31px; }
  .hero-copy .button { width: 100%; }
  .hero-copy .sample-link { margin-inline: auto; text-align: center; }
  .payment-note { max-width: none; text-align: center; }
  .questions,.contents-section,.evidence,.closing { grid-template-columns: 1fr; }
  .questions { gap: 26px; }
  .chapter-section { padding-block: 40px; }
  .preview-section,.faq-section { padding-block: 40px; }
  .previews { grid-template-columns: 1fr; gap: 25px; }
  .page-button { display: grid; grid-template-columns: 116px 1fr; column-gap: 18px; align-items: center; }
  .page-image { grid-row: span 2; }
  .page-button strong { align-self: end; margin-top: 0; }
  .page-button>span { align-self: start; }
  .closing { gap: 20px; padding: 25px; }
  .closing .button { width: 100%; }
  .footer { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
.checkout-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: clamp(24px,5vw,70px); padding-block: 30px 70px; }
.order-summary h1 { font-size: clamp(35px,4vw,51px); max-width: 18ch; }
.checkout-lead { margin: 20px 0 24px; color: var(--muted); max-width: 45ch; }
.checkout-book { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 22px; padding-block: 10px 22px; }
.checkout-book img { width: 100%; height: auto; border-radius: 6px; }
.checkout-book h2 { font-size: 25px; }
.checkout-book p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.checkout-book .checkout-price { font: 650 27px/1.25 system-ui,sans-serif; color: var(--ink); }
#checkout-includes { padding-left: 20px; margin: 4px 0 25px; }
#checkout-includes li + li { margin-top: 8px; }
.checkout-delivery { padding: 17px 20px; border: 1px solid var(--line); border-radius: 9px; background: #eef2e8; margin-bottom: 20px; font-size: 14px; }
.payment-panel { padding: clamp(16px,3vw,28px); background: white; border: 1px solid var(--line); border-radius: 12px; min-height: 240px; }
.payment-panel h2 { font: 650 18px/1.4 system-ui,sans-serif; margin-bottom: 20px; letter-spacing: normal; }
#checkout-status { color: var(--muted); margin-bottom: 16px; }
#stripe-checkout { min-height: 100px; }
.publisher-note { margin-top: 20px; }
.support-content { max-width: 760px; padding-block: 30px 70px; }
.support-content h1 { max-width: 20ch; font-size: 44px; margin-bottom: 28px; }
.support-content h2 { font-size: 27px; margin: 30px 0 12px; }
.support-content p { margin-bottom: 16px; color: var(--muted); }
.support-content a { display: inline-flex; align-items: center; min-height: 44px; }
@media(max-width:760px) { .checkout-layout { grid-template-columns: 1fr; gap: 25px; } .checkout-book { grid-template-columns: 115px 1fr; gap: 16px; } .order-summary { max-width: 650px; } }

#stripe-checkout:empty { min-height: 0; }

.checkout-book h1 { font-size: clamp(26px,3vw,38px); max-width: none; }
.checkout-book .eyebrow { font-size: 10px; line-height: 1.5; margin: 0 0 10px; }
#checkout-contents { margin-bottom: 20px; }
#checkout-contents summary { font-size: 14px; min-height: 48px; padding-block: 12px; }
#checkout-contents .checkout-lead { font-size: 14px; margin: 12px 0; padding: 0; }
#checkout-includes { font-size: 14px; }
@media(max-width:760px) {
 .checkout-layout { padding-top: 10px; }
 .checkout-book { grid-template-columns: 95px 1fr; padding-block: 0 18px; }
 .checkout-book h1 { font-size: 29px; }
 .checkout-book .eyebrow { font-size: 9px; margin-bottom: 7px; }
 .checkout-book p { font-size: 12px; }
 .checkout-delivery { padding: 12px 14px; font-size: 13px; margin-bottom: 8px; }
 #checkout-contents { margin-bottom: 12px; }
 .order-summary > .small { font-size: 11px; }
 .order-summary > .sample-link { font-size: 12px; padding-block: 7px; }
}

.merchant-note { color: var(--muted); margin: -10px 0 16px; font-size: 12px; }
