/* XBACK storefront — neon identity, original XBACK logo, September 2026 */
:root {
  color-scheme: dark;
  --ink: #080a0b;
  --surface: #11181b;
  --text: #f1f7f7;
  --muted: #afbec4;
  --dim: #91a5ae;
  --gold: #f0d078;
  --cyan: #39e8cb;
  --line: #25373f;
  --font: 'Kanit', sans-serif;
  --latin: 'Manrope', var(--font);
}

/* Base and shared controls */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); background: var(--ink); color: var(--text); font: 400 16px/1.8 var(--font); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1, h2 { letter-spacing: -.035em; }
ul, ol { margin: 0; }
::selection { color: var(--ink); background: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.sample-section :focus-visible { outline-color: var(--cyan); }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.latin { font-family: var(--latin); }
.gold { color: var(--gold); }
.neon-text { color: var(--cyan); text-shadow: 0 0 28px #39e8cb38; }
.eyebrow { font: 600 12px/1.6 var(--latin); letter-spacing: .16em; color: var(--cyan); }
.section { padding-block: 112px; }
.section h2 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.45; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 100; padding: 12px 20px; color: var(--ink); background: var(--gold); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button {
  display: inline-flex; min-height: 56px; justify-content: center; align-items: center; gap: 10px;
  padding: 12px 24px; background: var(--cyan); color: var(--ink); border: 1px solid var(--cyan);
  border-radius: 3px; font-size: 16px; line-height: 1.6; font-weight: 600; white-space: normal; text-align: center;
  box-shadow: 0 0 22px #39e8cb18;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.button:hover { background: #80ffe7; border-color: #80ffe7; transform: translateY(-2px); box-shadow: 0 0 28px #39e8cb38; }
.button > span:last-child[aria-hidden] { margin-left: 10px; font-family: var(--latin); font-size: 22px; line-height: 1; }
.button-small { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.button-wide { display: flex; width: 100%; justify-content: space-between; }
.button-outline { color: var(--text); background: transparent; border-color: #497078; box-shadow: none; }
.button-outline:hover { color: var(--ink); background: var(--text); border-color: var(--text); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.text-link span[aria-hidden] { font-family: var(--latin); font-size: 21px; transition: transform .2s; }
.text-link:hover { color: var(--gold); }
.text-link:hover span[aria-hidden] { transform: translate(2px, -2px); }

/* Navigation */
.site-header { padding-top: env(safe-area-inset-top); position: sticky; z-index: 30; top: 0; background: #080a0bf5; border-bottom: 1px solid #39e8cb30; backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: inline-flex; min-height: 44px; align-items: center; flex-shrink: 0; }
.wordmark img { width: 86px; height: 86px; object-fit: contain; }
.desktop-nav { display: flex; gap: 32px; }
.desktop-nav a { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 14px; transition: color .2s; }
.desktop-nav a:hover { color: var(--cyan); }

/* First screen */
.hero-section { position: relative; padding: 56px 0 64px; background: radial-gradient(ellipse at 77% 44%, #0d52442b, transparent 62%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy { padding-block: 8px; min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; font: 500 13px/1.7 var(--font); letter-spacing: .025em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--cyan); box-shadow: 0 0 12px #39e8cb; }
.hero-copy h1 { margin-top: 22px; font-size: clamp(44px, 4.35vw, 60px); line-height: 1.37; font-weight: 700; letter-spacing: -.035em; }
.hero-intro { margin-top: 24px; color: var(--text); font-size: 19px; line-height: 1.65; }
.hero-description { max-width: 465px; margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.hero-actions .text-link { font-size: 14px; }
.hero-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; font-size: 14px; }
.hero-offer + .hero-actions { margin-top: 16px; }
.price-reference { color: var(--muted); }
.price-reference s { margin-left: 5px; text-decoration-thickness: 1px; }
.savings-badge { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border: 1px solid #39e8cb45; border-radius: 3px; color: var(--cyan); background: #39e8cb0c; font-size: 13px; line-height: 1.7; white-space: nowrap; }
.savings-badge b { font-weight: 700; }
.purchase-note { color: var(--dim); margin-top: 13px; font-size: 14px; letter-spacing: .01em; }
.hero-footnote { display: flex; align-items: center; gap: 17px; margin-top: 31px; padding-top: 21px; border-top: 1px solid var(--line); max-width: 420px; }
.line-icon { color: var(--cyan); font: 400 36px/1 var(--latin); }
.hero-footnote p { color: var(--dim); font-size: 14px; line-height: 1.75; }
.hero-footnote strong { color: var(--muted); font-weight: 400; }
/* Original covers are the hero; lighting and the plinth are CSS decoration. */
.product-showcase { position: relative; min-width: 0; overflow: hidden; border: 1px solid #39e8cb40; border-radius: 4px; background: radial-gradient(ellipse at 50% 40%, #123f3940, transparent 65%), #090f12; box-shadow: 0 0 55px #39e8cb0c; }
.product-showcase::before { content: ''; position: absolute; top: 0; left: 24px; width: 76px; height: 2px; background: var(--cyan); box-shadow: 0 0 15px #39e8cb90; }
.showcase-heading { display: flex; justify-content: space-between; gap: 20px; padding: 27px 28px 0; color: var(--cyan); font: 600 12px/1.7 var(--latin); letter-spacing: .12em; }
.showcase-heading > span:last-child { color: var(--gold); }
.showcase-stage { position: relative; height: 454px; isolation: isolate; }
.showcase-halo { position: absolute; width: 74%; height: 71%; top: 7%; left: 13%; border: 1px solid #39e8cb28; border-radius: 50%; background: radial-gradient(ellipse at 50% 90%, #39e8cb22, transparent 70%); box-shadow: 0 0 46px #39e8cb0c, inset 0 0 55px #39e8cb0a; }
.showcase-plinth { position: absolute; bottom: 34px; left: 5%; width: 90%; height: 64px; border: 1px solid #2e5757; border-top-color: #81b7a0; border-bottom-color: #111e23; border-radius: 50% / 24%; background: linear-gradient(180deg, #28443e 0%, #162420 18%, #090e11 25%, #070a0c 100%); box-shadow: 0 20px 28px #0009, 0 -7px 25px #39e8cb15; }
.showcase-plinth::after { content: ''; position: absolute; top: 12px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #39e8cb90, #f0d07890, transparent); box-shadow: 0 0 12px #39e8cb60; }
.showcase-books { position: absolute; inset: 0 10%; perspective: 1000px; }
.showcase-book { position: absolute; bottom: 90px; border-radius: 1px 3px 3px 1px; box-shadow: 9px 15px 22px #000a, 2px 0 0 #d4a85360; transform-origin: 50% 100%; }
.showcase-center { width: 50%; left: 8%; z-index: 3; transform: rotate(-2deg); }
.showcase-left { width: 37%; left: 0; bottom: 96px; z-index: 1; transform: rotate(-10deg) rotateY(9deg); }
.showcase-right { width: 40%; right: 6%; bottom: 96px; z-index: 2; transform: rotate(10deg) rotateY(-9deg); }
.showcase-summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 28px; padding: 23px 0 25px; border-top: 1px solid #39e8cb30; }
.showcase-label { color: var(--cyan); font-size: 13px; }
.showcase-summary p { margin-top: 5px; font-size: 18px; font-weight: 500; }
.showcase-format { color: var(--muted); font-size: 12px; line-height: 1.8; text-align: right; white-space: nowrap; }
.showcase-format strong { color: var(--gold); font-weight: 400; }
.promise-strip { border-block: 1px solid var(--line); background: #0b1114; }
.promise-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 28px; }
.promise-inner p { display: flex; align-items: center; gap: 18px; font-size: 15px; color: var(--muted); }
.promise-inner p span { color: var(--cyan); font: 500 12px/1 var(--latin); }
.promise-inner i { display: block; width: 26px; height: 1px; background: #41626a; }

/* Complete book with a separate workbook */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 44px; }
.section-heading h2, .sample-copy h2, .approach-grid h2, .offer-copy h2, .faq-layout h2 { margin-top: 17px; }
.section-lead { max-width: 330px; padding-bottom: 6px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.book-card { min-width: 0; }
.book-stage { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 70%, #163d3b, #0d1418 75%); border: 1px solid #39e8cb30; overflow: hidden; border-radius: 3px; }
.book-stage-two { background: radial-gradient(ellipse at 50% 70%, #343021, #121517 75%); border-color: #d4a85338; }
.book-stage-three { background: radial-gradient(ellipse at 50% 70%, #123b43, #0d1418 75%); }
.book-number { position: absolute; top: 20px; left: 21px; color: var(--muted); font: 500 12px/1.6 var(--latin); letter-spacing: .13em; }
.book-stage img { width: 200px; margin-top: 12px; box-shadow: 12px 18px 24px #0005, 2px 0 0 #d4a85355; transform: rotate(-5deg); transition: transform .3s; }
.book-stage-two img { transform: rotate(4deg); }
.book-stage-three img { transform: rotate(-3deg); }
.book-card:hover .book-stage img { transform: rotate(0) translateY(-4px); }
.page-count { position: absolute; bottom: 16px; right: 20px; color: var(--muted); font-size: 13px; }
.book-sample-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.book-details { padding: 25px 0 0; }
.book-role { color: var(--cyan); font-size: 14px; line-height: 1.8; }
.book-details h3 { margin-top: 7px; font-size: 21px; line-height: 1.5; letter-spacing: -.025em; }
.book-details > p:not(.book-role) { color: var(--muted); font-size: 16px; line-height: 1.9; margin-top: 12px; }
.sample-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 15px; padding: 4px 0; background: transparent; border-bottom: 1px solid #497078; font-size: 15px; font-weight: 500; }
.sample-link span { color: var(--cyan); font: 400 20px/1 var(--latin); }
.sample-link:hover { color: var(--gold); border-color: var(--gold); }
.collection-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; }
.collection-footer p { font-size: 15px; }
.collection-footer strong { color: var(--gold); font-weight: 500; margin-left: 12px; }
.collection-footer p > span { margin-left: 24px; color: var(--dim); font-size: 14px; }
.collection-footer .text-link { color: var(--gold); }
.collection-original { margin-left: 12px; color: var(--dim); font-size: 14px; text-decoration-thickness: 1px; }

/* Real paper samples framed by the original neon identity */
.sample-section { background: #0b1215; color: var(--text); padding-block: 94px; border-block: 1px solid var(--line); }
.sample-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.sample-section .eyebrow { color: var(--cyan); }
.sample-copy h2 span { color: var(--cyan); }
.sample-copy > p:not(.eyebrow):not(.sample-caption) { max-width: 365px; margin-top: 23px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.sample-options { display: grid; gap: 0; margin-top: 31px; border-top: 1px solid var(--line); }
.sample-choice { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 65px; padding: 13px 10px; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 15px; transition: background .2s; }
.sample-choice > span:first-child { font: 500 11px/1 var(--latin); color: var(--cyan); }
.sample-choice > span:last-child { font: 400 23px/1 var(--latin); }
.sample-choice.is-active { background: #12352f; color: var(--cyan); font-weight: 600; box-shadow: inset 2px 0 var(--cyan); }
.sample-choice:hover { background: #102a27; }
.sample-caption { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.sample-frame { padding: 14px; background: var(--surface); border: 1px solid #346b64; border-radius: 3px; box-shadow: 12px 18px 0 #39e8cb0b, 0 0 36px #39e8cb0b; transform: rotate(1.7deg); }
.sample-toolbar { display: flex; justify-content: space-between; gap: 15px; padding: 1px 2px 13px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.sample-toolbar-title { font-weight: 500; }
.sample-sheet { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1100 / 1557; overflow: hidden; padding: 0; background: #f4f0e5; text-align: left; }
.sample-sheet img { width: 100%; max-width: none; height: auto; }
.sample-zoom { position: absolute; display: flex; align-items: center; gap: 18px; bottom: 16px; right: 16px; min-height: 44px; padding: 10px 16px; background: var(--ink); color: var(--text); border-radius: 2px; font-size: 14px; box-shadow: 0 3px 10px #00000055; }
.sample-zoom > span { font: 400 20px/1 var(--latin); }

/* Read several real pages without leaving the storefront. */
.sample-viewer { min-width: 0; width: 100%; }
.sample-choice > .sample-count:last-child { font: 400 13px/1.8 var(--font); white-space: nowrap; color: var(--muted); }
.sample-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 23px; }
.sample-pagination[hidden] { display: none; }
.sample-page-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); font-size: 14px; }
.sample-page-button:not(:disabled):hover { border-color: var(--cyan); color: var(--cyan); }
.sample-page-button:disabled { opacity: .4; cursor: default; }
.sample-page-status { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Brand point of view */
.approach-section { border-bottom: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.approach-copy { padding-top: 0; }
.pause-visual { margin: 0; min-width: 0; }
.pause-visual img { width: 100%; height: auto; object-fit: contain; border: 1px solid #39e8cb40; border-radius: 3px; }
.pause-visual figcaption { margin-top: 21px; padding-left: 18px; border-left: 2px solid var(--cyan); color: var(--muted); font-size: 17px; line-height: 1.8; }
.large-copy { font-size: 27px; line-height: 1.65; font-weight: 400; letter-spacing: -.02em; }
.approach-copy > p:not(.large-copy):not(.eyebrow) { margin-top: 24px; font-size: 16px; color: var(--muted); line-height: 1.95; }
.editorial-signature { display: flex; align-items: center; gap: 20px; margin-top: 33px; padding-top: 20px; border-top: 1px solid var(--line); }
.editorial-signature .wordmark img { width: 70px; height: 70px; }
.editorial-signature > span:last-child { font-size: 13px; color: var(--dim); }

/* Offer and price */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.offer-copy > p:not(.eyebrow):not(.honest-note) { max-width: 410px; margin-top: 24px; color: var(--muted); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin-top: 29px; }
.check-list li { position: relative; padding: 9px 0 9px 27px; font-size: 16px; line-height: 1.8; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font: 500 16px/1.8 var(--latin); }
.honest-note { max-width: 405px; margin-top: 29px; padding-left: 18px; border-left: 2px solid var(--cyan); font-size: 14px; color: var(--dim); line-height: 1.9; }
.offer-card { border: 1px solid #39e8cb66; border-top: 3px solid var(--cyan); border-radius: 4px; padding: 31px; background: radial-gradient(ellipse at 100% 0, #39e8cb16, transparent 60%), var(--surface); box-shadow: 0 0 48px #39e8cb0b; }
.offer-card-top { display: flex; justify-content: space-between; gap: 16px; color: var(--cyan); font: 500 13px/1.8 var(--font); }
.offer-card-top > span:last-child { color: var(--dim); font-size: 12px; }
.offer-card h3 { margin-top: 28px; font-size: 26px; line-height: 1.5; }
.offer-card > p:not(.offer-refund) { margin-top: 3px; color: var(--muted); font-size: 14px; }
.offer-pricing { margin-top: 25px; }
.price-comparison { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; }
.offer-price { display: flex; align-items: center; gap: 20px; margin-block: 15px 24px; }
.offer-price > strong { color: var(--gold); font: 600 88px/1.1 var(--latin); letter-spacing: -.07em; text-shadow: 0 0 32px #f0d07814; }
.offer-price > span { padding-top: 9px; line-height: 1.6; font-size: 15px; }
.offer-payment-note { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.offer-list { list-style: none; margin-bottom: 25px; padding: 19px 0; border-block: 1px solid var(--line); }
.offer-list li { display: flex; justify-content: space-between; gap: 14px; padding-block: 7px; font-size: 15px; line-height: 1.8; }
.offer-list li > span:last-child { white-space: nowrap; color: var(--dim); }
.offer-refund { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.offer-refund > span { margin-right: 4px; font: 400 18px/1 var(--latin); }
.offer-refund a, .checkout-assurance a { text-decoration: underline; text-underline-offset: 3px; }

/* Questions and the smaller free entry point */
.faq-section { padding-top: 14px; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.faq-contact { color: var(--muted); font-size: 15px; margin-top: 29px; }
.faq-contact .text-link { font-size: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; min-height: 70px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 400; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span[aria-hidden] { flex-shrink: 0; font: 400 25px/1 var(--latin); color: var(--cyan); transition: transform .2s; }
.faq-list details[open] summary > span[aria-hidden] { transform: rotate(45deg); }
.faq-list details > p { margin-bottom: 24px; padding-right: 38px; color: var(--muted); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.faq-list details a { text-decoration: underline; text-underline-offset: 4px; }
.free-section { background: #0d1c20; padding-block: 43px; }
.free-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.free-inner h2 { font-size: 26px; line-height: 1.6; margin-top: 7px; }
.free-inner p:not(.eyebrow) { color: var(--muted); font-size: 16px; margin-top: 6px; }
.free-inner .button { font-size: 14px; flex-shrink: 0; }
.site-footer { padding-top: 54px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 34px; }
.footer-top .wordmark img { width: 94px; height: 94px; }
.footer-top p { font-size: 14px; color: var(--dim); margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 79px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-buy { display: none; }

/* Full-page samples and reader dialogs */
.sample-dialog { position: fixed; width: min(850px, calc(100% - 32px)); max-height: 92dvh; margin: auto; padding: 25px; border: 1px solid #49766d; border-radius: 4px; background: var(--ink); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.sample-dialog::backdrop { background: #020405e8; backdrop-filter: blur(5px); }
.dialog-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; }
.dialog-bar h2 { font-size: 23px; line-height: 1.6; margin-top: 4px; letter-spacing: -.02em; }
.dialog-bar .eyebrow { font-size: 12px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; color: var(--text); font: 400 27px/1 var(--latin); }
.icon-button:hover { background: #173435; }
.dialog-page { background: #f4f0e5; }
.dialog-page img { width: 100%; height: auto; }
.dialog-note { font-size: 14px; line-height: 1.85; color: var(--muted); margin-top: 20px; margin-bottom: 20px; }
.dialog-excerpt { margin: 0 0 22px; padding: 5px 0 5px 18px; border-left: 2px solid var(--cyan); color: var(--muted); font-size: 14px; line-height: 1.9; }
.sample-reader .reader-controls { position: sticky; z-index: 2; top: -25px; margin-top: -25px; padding-top: 25px; padding-bottom: 16px; background: var(--ink); border-bottom: 1px solid var(--line); }
.sample-reader .dialog-bar { padding-bottom: 12px; }
.reader-book-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.reader-book-select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 34px 9px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 3px; font: 400 16px/1.6 var(--font); }
.reader-pagination { margin-top: 12px; }
.sample-reader .dialog-page { margin-top: 18px; }
.reader-load-status { margin-top: 12px; color: var(--muted); font-size: 14px; }
.sample-reader .dialog-note { margin-block: 17px 7px; }
.reader-page-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.reader-page-tools .text-link { min-height: 44px; font-size: 14px; color: var(--cyan); }
.reader-page-tools > span { font-size: 12px; color: var(--dim); }
.reader-text { border-block: 1px solid var(--line); margin-bottom: 22px; }
.reader-text summary { min-height: 44px; padding-block: 11px; color: var(--text); font-size: 15px; cursor: pointer; }
#reader-text-content { white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 0 20px; color: var(--text); font-size: 16px; line-height: 1.95; }
.payment-dialog { max-width: 560px; padding: 29px; }
/* A returning reader's offer, with the same cyan/gold book identity. */
.return-offer-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px 32px 16px; border-color: #39e8cb70; border-top: 3px solid var(--cyan); background: radial-gradient(ellipse at 50% 15%, #153b35 0, transparent 55%), var(--ink); text-align: center; }
.return-offer-dialog[open] { animation: return-offer-in .22s ease-out; }
.return-offer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; }
.return-offer-top p { color: var(--cyan); font-size: 13px; }
.return-offer-books { display: flex; justify-content: center; align-items: flex-end; height: 124px; margin: 6px 0 22px; }
.return-offer-books img { width: 72px; height: auto; box-shadow: 0 8px 24px #0008; }
.return-offer-books img:first-child { width: 86px; z-index: 1; transform: rotate(-6deg) translateX(6px); }

.return-offer-books img:last-child { transform: rotate(9deg) translateX(-10px); }
.return-offer-dialog h2 { font-size: 29px; line-height: 1.45; }
.return-offer-dialog h2 span { color: var(--cyan); white-space: nowrap; }
#return-offer-description { margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.return-offer-price { margin: 18px 0; }
.return-offer-price > span { color: var(--muted); font-size: 13px; }
.return-offer-price s { margin-left: 4px; }
.return-offer-price > div { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.return-offer-price strong { color: var(--gold); font-size: 72px; line-height: 1.2; letter-spacing: -.065em; }
.return-offer-price > div > span { font-size: 16px; }
.return-offer-dismiss { min-height: 44px; margin-top: 8px; padding: 8px 16px; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.return-offer-dismiss:hover { color: var(--text); }
.return-offer-error { color: var(--gold); font-size: 14px; margin-top: 12px; }
.return-reminder { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #39e8cb45; background: #39e8cb08; font-size: 14px; }
.return-reminder span { color: var(--muted); }
.return-reminder button { display: block; min-height: 44px; padding: 5px 0; background: transparent; color: var(--cyan); text-align: left; }
.return-claimed { margin: 0 0 18px; color: var(--cyan); font-size: 14px; }
[data-return-claimed][hidden], [data-return-reminder][hidden] { display: none; }
.offer-card > .return-claimed:not(.offer-refund) { color: var(--cyan); margin-bottom: 20px; }
@keyframes return-offer-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .return-offer-dialog { padding: 16px 20px 10px; }
  .return-offer-dialog h2 { font-size: clamp(23px, 6.5vw, 29px); }
  .return-offer-books { height: 104px; margin-bottom: 18px; }
  .return-offer-books img { width: 60px; }
  .return-offer-books img:first-child { width: 73px; }
  .return-offer-price { margin-block: 14px; }
  .return-offer-price strong { font-size: 64px; }
}
.preview-steps { list-style: none; padding: 0; counter-reset: step; }
.preview-steps li { position: relative; padding: 17px 0 17px 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.preview-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; color: var(--cyan); font: 500 12px/1.6 var(--latin); }
.preview-steps strong { display: block; color: var(--text); font-size: 16px; font-weight: 500; margin-bottom: 6px; }

/* Checkout keeps the product and total in one clear view */
.checkout-back { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; color: var(--muted); }
.checkout-back:hover { color: var(--text); }
.design-notice { padding: 11px 20px; text-align: center; color: var(--text); background: #102925; font-size: 14px; line-height: 1.8; }
.checkout-main { padding-top: 49px; padding-bottom: 65px; }
.checkout-title { margin-bottom: 39px; }
.checkout-title h1 { font-size: 38px; line-height: 1.5; margin-top: 12px; }
.checkout-title > p:last-child { margin-top: 11px; font-size: 16px; color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 76px; align-items: start; }
.order-books { border-top: 1px solid var(--line); }
.order-book { display: grid; grid-template-columns: 74px minmax(0, 1fr) 24px; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); padding-block: 21px; }
.order-book > img { width: 74px; box-shadow: 4px 7px 12px #0004; }
.order-book h2 { font-size: 19px; line-height: 1.6; letter-spacing: -.02em; }
.order-book p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.order-book > span { color: var(--dim); font: 500 11px/1 var(--latin); align-self: start; padding-top: 6px; text-align: right; }
.order-info { margin-top: 26px; }
.order-info h2 { font-size: 16px; line-height: 1.7; letter-spacing: 0; }
.order-info p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.order-summary { background: var(--surface); border: 1px solid #49766d; border-radius: 4px; padding: 30px; }
.order-summary > h2 { font-size: 23px; margin-bottom: 22px; line-height: 1.6; }
.order-offer-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--cyan); font-size: 13px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; font-size: 16px; color: var(--muted); }
.summary-row > span:last-child { color: var(--text); }
.summary-row > :first-child { min-width: 0; }
.summary-row > :last-child { flex-shrink: 0; white-space: nowrap; }
.summary-breakdown { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-original s { color: var(--muted); text-decoration-thickness: 1px; }
.summary-discount, .summary-row.summary-discount > span:last-child { color: var(--cyan); }
.summary-discount > span:last-child { font-weight: 600; }
.summary-total { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 24px; padding-bottom: 23px; color: var(--text); }
.summary-total strong { font: 500 43px/1.25 var(--latin); letter-spacing: -.055em; color: var(--gold); white-space: nowrap; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.payment-methods span { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-family: var(--latin); }
.checkout-assurance { margin-top: 16px; font-size: 14px; text-align: center; color: var(--muted); }
.preview-help { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 21px; color: var(--dim); font-size: 14px; text-align: center; line-height: 1.9; }
.checkout-body .site-footer { padding-top: 0; }

/* Compact navigation and a persistent reading-mode choice. */
.section-menu { display: none; }
.reader-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.reader-options .reader-book-label { margin-bottom: 0; }
.reader-mode-toggle { min-height: 44px; padding: 6px 12px; border: 1px solid #497078; border-radius: 3px; color: var(--cyan); background: var(--surface); font-size: 14px; }
.reader-mode-toggle[aria-pressed="true"] { color: var(--ink); background: var(--cyan); }
.sample-reader[data-reading-mode="text"] .dialog-page,
.sample-reader[data-reading-mode="text"] .reader-text summary { display: none; }
.sample-reader[data-reading-mode="text"] .reader-text { border-top: 0; }
.sample-reader[data-reading-mode="text"] #reader-text-content { font-size: 18px; }
.hero-grid > *, .sample-layout > *, .approach-grid > *, .offer-grid > *, .faq-layout > *, .checkout-layout > * { min-width: 0; }

/* Small desktops and landscape tablets retain columns with comfortable gutters. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .wrap { width: calc(100% - 64px); }
  .hero-grid { gap: 32px; }
  .hero-copy h1 { font-size: 48px; }
  .showcase-stage { height: 400px; }
  .showcase-heading { padding-inline: 20px; }
  .showcase-summary { margin-inline: 20px; }
  .sample-layout, .approach-grid, .offer-grid, .faq-layout { gap: 48px; }
  .book-grid { gap: 22px; }
  .book-stage { height: 320px; }
  .book-stage img { width: 155px; }
  .checkout-layout { gap: 36px; }
  .order-summary { padding: 24px; }
}
@media (min-width: 1024px) and (min-height: 850px) {
  .order-summary { position: sticky; top: 112px; }
}

/* Portrait tablets use wider reading lines and horizontal book cards. */
@media (max-width: 1023px) {
  html { scroll-padding-top: 96px; }
  .wrap { width: min(720px, calc(100% - 64px)); }
  .section { padding-block: 80px; }
  .section h2 { font-size: 38px; }
  .header-inner { min-height: 76px; gap: 16px; }
  .wordmark img { width: 72px; height: 72px; }
  .desktop-nav { display: none; }
  .section-menu { display: block; margin-left: auto; }
  .section-menu summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; list-style: none; cursor: pointer; font-size: 14px; }
  .section-menu summary::-webkit-details-marker { display: none; }
  .section-menu summary::after { content: '+'; color: var(--cyan); font: 400 20px/1 var(--latin); }
  .section-menu[open] summary::after { content: '−'; }
  .section-menu nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; padding: 12px max(24px, calc((100% - 720px) / 2)); background: var(--surface); border-bottom: 1px solid #49766d; box-shadow: 0 20px 30px #0008; }
  .section-menu nav a { display: flex; min-height: 52px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .section-menu nav a:last-child { border-bottom: 0; }
  .section-menu nav a:hover { color: var(--cyan); background: #12352f; }
  .hero-section { padding-block: 44px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: 56px; }
  .hero-description { max-width: 560px; }
  .hero-footnote { max-width: 560px; }
  .product-showcase { width: 100%; max-width: 620px; justify-self: center; }
  .showcase-stage { height: 490px; }
  .promise-inner { gap: 18px; padding-block: 20px; }
  .promise-inner p { gap: 10px; font-size: 14px; }
  .promise-inner i { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 32px; }
  .section-lead { max-width: 560px; }
  .section-lead br { display: none; }
  .book-grid { grid-template-columns: 1fr; gap: 28px; }
  .book-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .book-stage { height: 300px; }
  .book-stage img { width: 145px; }
  .book-number { top: 15px; left: 14px; }
  .book-sample-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.book-details { padding: 0; }
  .book-details h3 { font-size: 24px; }
  .collection-footer { margin-top: 0; border-top: 0; }
  .collection-footer p > span { display: block; margin-left: 0; margin-top: 6px; }
  .sample-layout, .approach-grid, .offer-grid, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .sample-copy > p:not(.eyebrow):not(.sample-caption) { max-width: 560px; }
  .sample-options { margin-top: 24px; }
  .sample-viewer { max-width: 520px; justify-self: center; }
  .pause-visual { max-width: 620px; justify-self: center; }
  .approach-copy > p:not(.large-copy):not(.eyebrow) { max-width: 620px; }
  .offer-copy > p:not(.eyebrow):not(.honest-note), .honest-note { max-width: 620px; }
  .offer-card { width: 100%; max-width: 560px; justify-self: center; }
  .faq-section { padding-top: 0; }
  .faq-layout h2 br { display: none; }
  .faq-contact { margin-top: 18px; }
  .free-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-top { align-items: flex-start; gap: 24px; }
  .footer-links { gap: 16px; }
  .footer-bottom { flex-wrap: wrap; gap: 8px; }
  .checkout-main { padding-top: 36px; }
  .checkout-title { margin-bottom: 28px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 36px; }
  .order-summary { grid-row: 1; }
}

/* Phones get full-width content, readable copy and thumb-size controls. */
@media (max-width: 600px) {
  html { scroll-padding-top: 84px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; gap: 10px; }
  .wordmark img { width: 58px; height: 58px; }
  .header-inner > .button { gap: 6px; padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .header-inner > .button > span:last-child[aria-hidden] { display: none; }
  .section-menu summary { padding-inline: 10px; }
  .section-menu summary::after { display: none; }
  .section-menu nav { padding-inline: 16px; }
  .hero-section { padding-block: 28px 40px; }
  .hero-grid { gap: 32px; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(36px, 10vw, 48px); line-height: 1.4; }
  .hero-intro { margin-top: 20px; font-size: 18px; }
  .hero-description { margin-top: 12px; }
  .hero-actions { gap: 8px 20px; margin-top: 24px; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .hero-actions .text-link { font-size: 15px; }
  .purchase-note { margin-top: 8px; }
  .hero-footnote { margin-top: 20px; padding-top: 16px; gap: 14px; }
  .showcase-heading { padding: 20px 18px 0; gap: 16px; font-size: 12px; letter-spacing: .04em; }
  .showcase-stage { height: auto; aspect-ratio: 1.08; }
  .showcase-book { bottom: 63px; }
  .showcase-left, .showcase-right { bottom: 68px; }
  .showcase-plinth { bottom: 20px; height: 52px; }
  .showcase-summary { margin-inline: 18px; padding-block: 20px; flex-wrap: wrap; gap: 12px; }
  .showcase-summary p { font-size: 18px; }
  .showcase-format { text-align: left; }
  .promise-inner { display: grid; gap: 13px; padding-block: 23px; }
  .promise-inner p { font-size: 16px; gap: 16px; }
  .section { padding-block: 60px; }
  .section h2 { font-size: clamp(29px, 7.8vw, 36px); }
  .section-heading h2, .sample-copy h2, .approach-grid h2, .offer-copy h2, .faq-layout h2 { margin-top: 14px; }
  .book-grid { gap: 32px; }
  .book-card { grid-template-columns: 1fr; gap: 20px; padding-bottom: 28px; }
  .book-stage { height: 300px; }
  .book-stage img { width: 150px; }
  .book-number { top: 18px; left: 18px; }
  .book-details h3 { font-size: 23px; }
  .book-details > p:not(.book-role) { margin-top: 10px; }
  .sample-link { margin-top: 12px; }
  .collection-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 24px; }
  .collection-footer strong { margin-left: 8px; }
  .sample-layout, .approach-grid, .offer-grid, .faq-layout { gap: 28px; }
  .sample-choice { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding-inline: 8px; }
  .sample-frame { padding: 10px; transform: none; box-shadow: 5px 8px 0 #39e8cb0b; }
  .sample-toolbar { flex-wrap: wrap; gap: 4px 12px; }
  .sample-zoom { bottom: 12px; right: 12px; }
  .sample-pagination { gap: 6px; }
  .sample-page-button { gap: 6px; padding-inline: 10px; font-size: 13px; }
  .sample-page-status { font-size: 12px; }
  .offer-card { padding: 23px; }
  .offer-card-top { flex-wrap: wrap; gap: 6px 16px; letter-spacing: .02em; }
  .offer-card h3 { margin-top: 22px; font-size: 25px; }
  .offer-price > strong { font-size: 76px; }
  .offer-pricing { margin-top: 20px; }
  .price-comparison { gap: 9px 12px; }
  .offer-price { gap: 16px; }
  .offer-list li { gap: 12px; }
  .offer-card .button { padding-inline: 16px; }
  .faq-section { padding-top: 0; }
  .faq-list summary { gap: 18px; }
  .faq-list details > p { padding-right: 0; }
  .free-section { padding-block: 36px; }
  .free-inner h2 { font-size: 26px; }
  .free-inner .button { width: 100%; font-size: 16px; }
  .site-footer { padding-top: 32px; }
  .footer-top { flex-direction: column; gap: 16px; padding-bottom: 24px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom > div { gap: 8px 20px; }
  body:has(.mobile-buy) .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .mobile-buy { display: flex; position: fixed; z-index: 25; bottom: 0; left: 0; right: 0; justify-content: space-between; align-items: center; gap: 10px; padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: #080a0bf7; border-top: 1px solid #346b64; transform: translateY(120%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .mobile-buy.is-visible { transform: translateY(0); visibility: visible; }
  .mobile-buy > div { display: grid; gap: 0; min-width: 0; }
  .mobile-buy strong { font-size: 14px; font-weight: 500; }
  .mobile-buy strong .latin { margin-left: 6px; color: var(--gold); font-size: 21px; }
  .mobile-buy > div > span { color: var(--muted); font-size: 12px; }
  .mobile-buy .button { min-height: 48px; flex-shrink: 0; font-size: 14px; padding-inline: 14px; }
  .mobile-buy .button > span:last-child[aria-hidden] { display: none; }
  .sample-dialog { padding: 18px; }
  .sample-reader { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 16px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .sample-reader .reader-controls { top: -16px; margin-top: -16px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .sample-reader .dialog-bar { padding-bottom: 4px; gap: 12px; }
  .dialog-bar h2 { font-size: 19px; line-height: 1.6; }
  .reader-page-tools { align-items: flex-start; flex-direction: column; gap: 0; }
  .reader-page-tools > span { display: none; }
  .reader-options { margin-bottom: 4px; }
  .sample-dialog > .button { font-size: 15px; padding-inline: 14px; }
  .checkout-title h1 { font-size: 32px; }
  .order-book { grid-template-columns: 68px minmax(0, 1fr); gap: 18px; }
  .order-book > img { width: 68px; }
  .order-book > span { display: none; }
  .order-book h2 { font-size: 19px; }
  .order-summary { padding: 22px; }
  .summary-total strong { font-size: 40px; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .header-inner > .button { padding-inline: 10px; }
  .offer-card, .order-summary { padding: 18px; }
  .mobile-buy { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .mobile-buy strong { font-size: 13px; }
}
/* Short landscape viewports keep the reading area available. */
@media (max-height: 600px) {
  .site-header { padding-top: env(safe-area-inset-top); position: relative; }
  .sample-reader .reader-controls { position: static; }
  .sample-reader .dialog-bar .icon-button { position: fixed; z-index: 3; top: max(24px, env(safe-area-inset-top)); right: max(26px, calc((100vw - 850px) / 2 + 12px), env(safe-area-inset-right)); box-shadow: 0 3px 16px #0008; }
}
@media (hover: none) {
  .button:hover, .book-card:hover .book-stage img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .book-card:hover .book-stage img { transform: none; }
}

/* Checkout remains readable while validating, retrying or opening Stripe. */
[data-checkout-submit]:disabled { opacity: .55; transform: none; box-shadow: none; cursor: wait; }
.checkout-status { margin-top: 13px; min-height: 3.6em; color: var(--muted); font-size: 14px; line-height: 1.8; }
.checkout-status[data-state="error"], .checkout-status[data-state="notice"] { color: var(--gold); }
.checkout-status[data-state="ready"] { color: var(--cyan); }
.checkout-retry { min-height: 44px; padding: 8px 0; background: transparent; color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.checkout-help { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.9; }
.checkout-terms { margin-top: 16px; color: var(--dim); font-size: 12px; line-height: 1.9; }
.checkout-terms a { text-decoration: underline; text-underline-offset: 3px; }
[data-claim-return-offer][aria-disabled="true"] { opacity: .55; cursor: wait; }
