:root {
  --ink: #17302e;
  --muted: #60736e;
  --pine: #173c39;
  --pine-2: #24534e;
  --moss: #6f8072;
  --mist: #eef2ed;
  --snow: #f8faf7;
  --white: #ffffff;
  --line: #dce4dc;
  --sand: #d7c7a9;
  --amber: #9a6c2e;
  --danger: #9a3f3f;
  --shadow: 0 24px 60px rgba(25, 49, 45, .10);
  --radius: 24px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7aa49c; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-180%); background: var(--white); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 247, .88);
  border-bottom: 1px solid rgba(220, 228, 220, .9);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.2; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #b9c8be; border-radius: 50%; font-family: Georgia, serif; letter-spacing: -.04em; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 17px; font-weight: 600; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; letter-spacing: .1em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.main-nav a:hover { color: var(--pine); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); padding: 9px 14px; }

.hero { position: relative; overflow: hidden; padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -20% auto auto 56%; width: 500px; height: 500px; border-radius: 50%; background: rgba(155, 181, 164, .2); filter: blur(4px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.eyebrow { color: var(--moss); text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 750; }
h1, h2, h3, .display { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(43px, 6.2vw, 80px); margin: 18px 0 24px; }
h2 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 18px; }
h3 { font-size: 24px; margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.7; color: var(--muted); max-width: 680px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 12px 20px; text-decoration: none; font-size: 14px; font-weight: 760; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--pine); color: var(--white); box-shadow: 0 10px 28px rgba(23, 60, 57, .18); }
.button--primary:hover { background: var(--pine-2); }
.button--ghost { border-color: #bdcbc1; background: rgba(255,255,255,.55); color: var(--pine); }
.button--soft { background: #e4ece6; color: var(--pine); }
.button--danger { background: #9a3f3f; color: var(--white); }
.button--small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.hero-visual { min-height: 500px; width: min(100%, 600px); margin-inline: auto; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-portrait { position: absolute; top: 50%; right: 0; width: min(285px, 54%); height: 430px; transform: translateY(-50%); object-fit: cover; object-position: center 24%; border-radius: 170px 170px 28px 28px; filter: grayscale(1); box-shadow: var(--shadow); }
.cover-stack { position: absolute; left: 0; bottom: 38px; display: flex; align-items: end; gap: 0; z-index: 2; }
.cover-stack img { width: 164px; height: auto; max-height: 350px; object-fit: contain; border-radius: 4px; box-shadow: 0 28px 45px rgba(22, 44, 41, .24); border: 1px solid rgba(255,255,255,.5); }
.cover-stack img:first-child { transform: rotate(-5deg) translateY(-8px); }
.cover-stack img:last-child { width: 142px; margin-left: -18px; transform: rotate(5deg) translateY(16px); }

.trust-strip { padding: 22px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.trust-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--pine); font-weight: 800; }

.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--pine { background: var(--pine); color: var(--white); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-heading p { color: var(--muted); font-size: 18px; margin: 0; max-width: 640px; }
.section--pine .section-heading p { color: #c9d8d2; }
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.book-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; min-height: 450px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); padding: 30px; box-shadow: 0 18px 50px rgba(31, 55, 51, .06); }
.book-cover-wrap { display: flex; align-items: center; justify-content: center; }
.book-cover { width: 100%; max-height: 330px; object-fit: contain; border-radius: 3px; box-shadow: 0 22px 34px rgba(27, 47, 44, .2); }
.book-card__content { display: flex; flex-direction: column; justify-content: center; }
.book-card h2 { font-size: 34px; margin-top: 12px; }
.book-card p { color: var(--muted); margin: 0; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.price-row strong { font-size: 22px; }
.price-row span { color: var(--muted); font-size: 14px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.step { counter-increment: steps; border-top: 1px solid rgba(255,255,255,.22); padding: 26px 16px 8px 0; }
.step::before { content: "0" counter(steps); display: block; color: #a9c4b8; font-family: Georgia, serif; font-size: 15px; margin-bottom: 26px; }
.step h3 { font-size: 21px; }
.step p { color: #c9d8d2; margin: 0; font-size: 14px; }

.author-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.author-photo { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 220px 220px 24px 24px; filter: grayscale(1); }
.credential-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 28px 0; padding: 0; list-style: none; }
.credential-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.page-hero { padding: 74px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); max-width: 880px; }
.page-hero .lead { max-width: 790px; }
.content-shell { width: min(850px, calc(100vw - 40px)); margin: 0 auto; }
.prose { padding: 66px 0 90px; }
.prose h2 { font-size: 34px; margin-top: 50px; }
.prose h3 { font-family: inherit; font-size: 18px; font-weight: 760; letter-spacing: 0; margin-top: 32px; }
.prose p, .prose li { color: #435b57; }
.prose a { color: var(--pine); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.prose th, .prose td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }

.detail-grid { display: grid; grid-template-columns: 390px 1fr; gap: 76px; align-items: start; padding: 76px 0 96px; }
.detail-cover { position: sticky; top: 112px; padding: 36px; background: var(--mist); border-radius: var(--radius); }
.detail-cover img { width: 100%; max-height: 560px; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow); }
.detail-copy h1 { font-size: clamp(42px, 5vw, 68px); }
.detail-copy h2 { font-size: 32px; margin-top: 42px; }
.detail-copy .lead { max-width: 700px; }
.feature-list { list-style: none; padding: 0; margin: 30px 0; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.feature-list li::before { content: "✓"; color: var(--pine); font-weight: 900; }
.price-box { margin-top: 32px; padding: 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }

.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; padding: 60px 0 96px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: 0 16px 45px rgba(28, 50, 46, .055); }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 30px; }
.summary-card { position: sticky; top: 108px; }
.summary-book { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.summary-book img { width: 92px; max-height: 132px; object-fit: contain; border-radius: 2px; box-shadow: 0 10px 22px rgba(25,47,43,.16); }
.summary-book h3 { font-size: 20px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary-total strong { font-size: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .field-label { display: block; font-size: 13px; font-weight: 760; margin-bottom: 7px; color: #36504b; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd7ce; border-radius: 13px; background: #fbfcfa; color: var(--ink); padding: 13px 14px; transition: border .18s ease, box-shadow .18s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7b9c90; box-shadow: 0 0 0 4px rgba(123,156,144,.14); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field-help { color: var(--muted); font-size: 12px; margin-top: 6px; }
.field-help--error { color: var(--danger); font-weight: 700; }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { width: 33.333%; padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison-table th { color: var(--pine); font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.comparison-table td:first-child { color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.comparison-table tr:last-child td { border-bottom: 0; }
.payment-options { display: grid; gap: 12px; }
.payment-option { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; background: #fbfcfa; }
.payment-option:has(input:checked) { border-color: #6d9187; background: #eff5f1; box-shadow: 0 0 0 3px rgba(109,145,135,.12); }
.payment-option input { width: 18px; height: 18px; accent-color: var(--pine); }
.payment-option strong { display: block; }
.payment-option small { color: var(--muted); }
.payment-price { font-weight: 800; white-space: nowrap; }
.payment-panel { margin-top: 14px; padding: 16px; background: var(--mist); border-radius: 14px; color: var(--muted); font-size: 13px; }
.checkline { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 14px 0; color: #435b57; font-size: 13px; }
.checkline input { width: 18px; height: 18px; accent-color: var(--pine); margin-top: 2px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.order-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 58px 0 96px; align-items: start; }
.status { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 800; }
.status--muted { background: #e8ede8; color: #52655f; }
.status--attention { background: #fff0d8; color: #81561c; }
.status--ok { background: #dff1e6; color: #24603d; }
.status--danger { background: #f8dddd; color: #853535; }
.status--info { background: #dfeaf3; color: #315d7a; }
.order-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--muted); }
.payment-sheet { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.data-list { margin: 0; }
.data-row { display: grid; grid-template-columns: minmax(120px,.7fr) 1.3fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.data-row:first-child { border-top: 0; }
.data-row dt { color: var(--muted); font-size: 13px; }
.data-row dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.copy-button { border: 1px solid var(--line); background: var(--mist); border-radius: 999px; padding: 6px 10px; font-size: 11px; cursor: pointer; }
.qr-box { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; margin-top: 26px; padding: 20px; background: var(--snow); border-radius: 18px; }
.qr-box img { width: 190px; background: white; border: 8px solid white; }
.paypal-box { padding: 24px; border-radius: 18px; background: #eef4ff; border: 1px solid #d9e5fa; }
.proof-upload { border: 1px dashed #a9bcb0; border-radius: 16px; padding: 20px; background: #fbfcfa; }
.proof-upload input[type=file] { max-width: 100%; }
.notice { padding: 16px 18px; border-left: 3px solid #7d9d92; background: var(--mist); border-radius: 4px 14px 14px 4px; color: #435b57; }
.notice--warning { border-color: #c38a3d; background: #fff6e7; }
.notice--danger { border-color: #ad4a4a; background: #fff0f0; }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; }
.timeline li { position: relative; padding: 0 0 22px 28px; color: var(--muted); font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #86a196; box-shadow: 0 0 0 5px #edf2ed; }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: 3px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }

.admin-body { background: #eef2ed; }
.admin-bar { background: #112e2c; color: white; padding: 14px 0; }
.admin-bar .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-bar a { color: white; }
.admin-wrap { padding: 40px 0 80px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.metric { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 30px; font-family: Georgia, serif; margin-top: 5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; border-radius: 18px; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.orders-table th, .orders-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.orders-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.orders-table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.login-card { width: min(520px, calc(100vw - 40px)); margin: 80px auto; }
.login-card .card { padding: 40px; }
.proof-preview { max-width: 100%; max-height: 650px; margin: 20px auto; object-fit: contain; border: 1px solid var(--line); }

.flash { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 14px; }
.flash--success { background: #dff1e6; color: #245f3d; }
.flash--error { background: #f8dddd; color: #823535; }
.flash--info { background: #dfeaf3; color: #315d7a; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

.site-footer { padding: 64px 0 22px; background: #102b29; color: #d7e1dc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 60px; }
.footer-title { font-family: Georgia, serif; color: white; font-size: 23px; }
.footer-label { color: #9eb5aa; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; margin-bottom: 12px; }
.site-footer p { color: #a9bdb5; max-width: 450px; }
.site-footer a, .site-footer span { display: block; color: #d7e1dc; text-decoration: none; margin: 8px 0; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; color: #829c91; font-size: 12px; }

@media (max-width: 1050px) {
  .hero-grid, .section-heading, .author-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; width: min(100%, 680px); }
  .books-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 210px 1fr; }
  .detail-grid { grid-template-columns: 320px 1fr; gap: 44px; }
  .checkout-grid, .order-layout { grid-template-columns: 1fr 320px; gap: 28px; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 28px, 1180px); --radius: 20px; }
  .nav-wrap { min-height: 68px; }
  .brand small { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 68px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .hero { padding: 54px 0 44px; }
  .hero-grid { gap: 20px; }
  .hero-visual { min-height: 360px; }
  .hero-portrait { width: min(265px, 52%); height: 330px; right: 2%; }
  .cover-stack { left: 4%; bottom: 28px; }
  .cover-stack img { width: 130px; }
  .cover-stack img:last-child { width: 112px; margin-left: -14px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 66px 0; }
  .section-heading { gap: 8px; margin-bottom: 30px; }
  .book-card { grid-template-columns: 125px 1fr; gap: 20px; min-height: 0; padding: 20px; }
  .book-card h2 { font-size: 28px; }
  .book-card .button-row { display: grid; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .credential-list { grid-template-columns: 1fr; }
  .detail-grid, .checkout-grid, .order-layout { grid-template-columns: 1fr; padding: 40px 0 70px; }
  .detail-cover, .summary-card { position: static; }
  .detail-cover { max-width: 380px; margin-inline: auto; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .data-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .data-row dt { grid-column: 1 / -1; }
  .qr-box { grid-template-columns: 1fr; text-align: center; }
  .qr-box img { margin-inline: auto; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .brand strong { font-size: 15px; }
  h1 { font-size: 42px; }
  .hero-visual { min-height: 330px; }
  .hero-portrait { width: 50%; height: 270px; right: 0; }
  .cover-stack { left: 0; bottom: 28px; }
  .cover-stack img { width: 112px; }
  .cover-stack img:last-child { width: 94px; margin-left: -12px; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover { width: 160px; }
  .book-card__content { text-align: center; }
  .book-card .button-row, .price-row { justify-content: center; }
  .steps-grid, .trust-grid, .admin-grid { grid-template-columns: 1fr; }
  .payment-option { grid-template-columns: 22px 1fr; }
  .payment-price { grid-column: 2; }
  .button-row .button { width: 100%; }
}

@media print {
  .site-header, .site-footer, .button, .copy-button, .proof-upload, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  .payment-sheet, .card { border: 0; box-shadow: none; padding: 0; }
  .order-layout { display: block; padding: 0; }
}
