:root {
  color-scheme: dark;
  --ink: #080b0f;
  --panel: #101419;
  --white: #f5f5f5;
  --muted: #a8adb5;
  --red: #f22435;
  --border: rgba(255,255,255,.16);
  --toolbar: clamp(72px, 7.7vh, 92px);
  --page-pad: clamp(30px, 4.6vw, 112px);
  font-family: 'Jost', Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: var(--white);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.toolbar { position: absolute; inset: 0 0 auto; height: var(--toolbar); z-index: 20; display: flex; align-items: center; gap: 30px; padding: 0 clamp(24px, 2.7vw, 64px); background: #080b0f; border-bottom: 1px solid var(--border); transition: transform .2s, opacity .2s; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.toolbar-separator { width: 1px; height: 32px; background: var(--border); }
.toolbar-context { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.context-overline { font-size: 9px; letter-spacing: .24em; color: var(--muted); }
#contextTitle { font-size: 14px; font-weight: 500; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.control { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 14px; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.control:hover, .icon-button:hover { background: rgba(255,255,255,.08); }
.control-outline { border-color: var(--border); }
.control-outline:hover { border-color: rgba(255,255,255,.4); }
.icon-button { display: inline-flex; width: 42px; height: 42px; justify-content: center; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 4px; }
.welcome { position: absolute; top: var(--toolbar); inset-inline: 0; bottom: 0; min-height: 0; isolation: isolate; }
.hero-visual { position: absolute; inset: 0; z-index: -2; background: url('assets/1.8.0/welcome.webp') center 36% / cover no-repeat; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,11,15,.08) 0%,rgba(8,11,15,.02) 32%,rgba(8,11,15,.61) 62%,rgba(8,11,15,.95) 92%,#080b0f 100%); }
.image-caption { position: absolute; top: 32px; left: var(--page-pad); display: flex; gap: 12px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .21em; text-shadow: 0 1px 8px #000; }
.small-line { width: 26px; height: 2px; background: var(--red); }
.welcome-bottom { position: absolute; bottom: clamp(108px, 11vh, 150px); left: var(--page-pad); right: var(--page-pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, .45fr); align-items: end; column-gap: 6vw; }
.eyebrow { font-size: clamp(10px, .7vw, 14px); font-weight: 700; letter-spacing: .22em; margin: 0 0 20px; color: var(--red); }
h1 { font-size: clamp(60px, 6.45vw, 146px); line-height: .96; letter-spacing: -.045em; font-weight: 750; margin: 0; }
.red-dot { color: var(--red); }
.welcome-description { font-size: clamp(14px, 1.08vw, 23px); color: #c1c5cb; line-height: 1.55; margin: 25px 0 0; }
.booklet-card { max-width: 600px; width: 100%; justify-self: end; padding: clamp(24px, 2.15vw, 48px); background: rgba(11,15,20,.95); border: 1px solid rgba(255,255,255,.2); border-top: 3px solid var(--red); border-radius: 2px; box-shadow: 0 15px 60px rgba(0,0,0,.16); }
.card-kicker { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .15em; font-weight: 700; color: #b8bdc4; }
.card-kicker .icon { width: 20px; height: 20px; }
.booklet-card h2 { display: flex; align-items: center; justify-content: space-between; font-size: clamp(35px, 2.7vw, 62px); letter-spacing: -.035em; font-weight: 600; margin: 18px 0 10px; }
.card-number { align-self: center; font-size: 13px; font-weight: 400; letter-spacing: 0; color: #707781; }
.booklet-card p { font-size: clamp(13px, .85vw, 18px); color: var(--muted); line-height: 1.5; margin: 0 0 25px; }
.primary-button { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--red); background: var(--red); color: #fff; padding: 20px 22px; font-size: clamp(15px, .94vw, 21px); font-weight: 700; border-radius: 2px; transition: background .18s, border-color .18s, transform .18s; }
.primary-button:hover { background: #d91527; border-color: #d91527; transform: translateY(-1px); }
.primary-button .icon { width: 24px; height: 24px; }
.card-note { display: block; text-align: center; font-size: 11px; color: #838b96; padding-top: 15px; }
.welcome-footer { position: absolute; bottom: 0; left: var(--page-pad); right: var(--page-pad); height: 78px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.product-families { display: flex; align-items: center; gap: clamp(16px, 2vw, 42px); font-size: clamp(10px,.75vw,16px); letter-spacing: .12em; font-weight: 600; }
.product-families i { width: 1px; height: 13px; background: var(--red); }
.footer-tag { font-size: 10px; letter-spacing: .19em; color: #8f96a1; white-space: nowrap; }
body.reading { --toolbar: 66px; }
body.reading .toolbar { gap: 24px; }
.reader { position: absolute; top: var(--toolbar); inset-inline: 0; bottom: 0; background: #080b0f; transition: top .2s; }
#bookletFrame { width: 100%; height: 100%; display: block; border: 0; background: #080b0f; }
.reader-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #080b0f; }
.loading-ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); border-top-color: var(--red); animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reader-loading h2 { margin: 28px 0 8px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.reader-loading p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.text-button { border: 0; background: transparent; padding: 7px 0; color: #d8dce3; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
body.focus-mode .toolbar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.focus-mode .reader { top: 0; }
.restore-toolbar { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 14px; z-index: 25; display: flex; align-items: center; gap: 8px; border: 1px solid #454a53; background: rgba(8,11,15,.94); color: #fff; padding: 9px 13px; border-radius: 5px; font-size: 12px; box-shadow: 0 2px 10px #0003; }
.restore-toolbar:hover { background: #252a31; }
.reader-notice { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 18px; padding: 16px 18px; max-width: min(800px, 94vw); background: #1c222a; border: 1px solid #555d69; border-radius: 4px; box-shadow: 0 8px 32px #0006; font-size: 13px; }
.reader-notice .text-button { flex-shrink: 0; }
.notice-close { display: grid; place-items: center; background: transparent; border: 0; padding: 0; }
.notice-close .icon { width: 18px; height: 18px; }
.toast { position: fixed; z-index: 90; bottom: 30px; left: 50%; transform: translateX(-50%); background: #1c222a; border: 1px solid #5e6875; color: #fff; padding: 16px 22px; border-radius: 4px; max-width: 90vw; font-size: 14px; line-height: 1.5; }
.modal { width: min(94vw, 540px); border: 1px solid #353c47; border-top: 3px solid var(--red); border-radius: 4px; padding: 44px; background: #11161d; color: #fff; max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 20px 100px #000a; }
.modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal .eyebrow { font-size: 9px; margin-top: 6px; margin-bottom: 18px; }
.modal h2 { font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 15px; }
.modal-intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.share-modal { text-align: center; }
.qr-frame { margin: 0 auto 20px; background: #fff; padding: 2px; width: min(100%, 280px); border-radius: 3px; }
.qr-frame img { display: block; width: 100%; height: auto; }
.share-url { font-size: 16px; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 25px; }
.share-url .icon { width: 15px; height: 15px; }
.copy-button { justify-content: center; font-size: 14px; padding: 15px 20px; }
.fine-print { color: #858e9b; font-size: 11px; line-height: 1.7; margin: 18px 0 0; }
#copyStatus { min-height: 16px; margin-top: 10px; }
.help-modal { width: min(94vw, 850px); }
.help-modal h2 { max-width: 620px; margin-bottom: 30px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.help-grid h3 { font-size: 14px; margin: 0 0 9px; }
.help-grid p { font-size: 13px; line-height: 1.65; color: #a7afbb; margin: 0; }
.help-grid strong { color: #dbe0e6; font-weight: 500; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 26px; margin-top: 30px; }
.compact { width: auto; justify-content: center; font-size: 13px; padding: 12px 18px; }
.no-script { position: fixed; bottom: 0; inset-inline: 0; background: #691c28; color: white; padding: 18px; z-index: 200; text-align: center; }
.no-script a { text-decoration: underline; }
@media (min-width: 2400px) {
  body.reading { --toolbar: 86px; }
  .control { font-size: 17px; padding: 14px 20px; }
  .toolbar-context #contextTitle { font-size: 18px; }
  .context-overline { font-size: 12px; }
  .icon { width: 26px; height: 26px; }
  .image-caption, .card-kicker { font-size: 15px; }
  .card-note { font-size: 15px; }
  .footer-tag { font-size: 14px; }
  .welcome-footer { height: 100px; }
}
@media (max-width: 1150px) {
  .toolbar-context, .toolbar-separator { display: none; }
  .toolbar-actions { gap: 3px; }
  .toolbar { gap: 15px; }
  .control { padding: 10px; font-size: 12px; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) 320px; gap: 24px; }
  h1 { font-size: 6.7vw; }
  .welcome-description { font-size: 14px; max-width: 350px; }
  .booklet-card { padding: 24px; }
  .footer-tag { display: none; }
}
@media (max-height: 720px) and (min-width: 801px) {
  :root { --toolbar: 66px; }
  .welcome-bottom { bottom: 85px; }
  h1 { font-size: clamp(52px, 7vw, 86px); }
  .eyebrow { margin-bottom: 12px; }
  .welcome-description { margin-top: 17px; }
  .booklet-card { padding: 20px 24px; }
  .booklet-card h2 { margin: 10px 0 8px; font-size: 34px; }
  .booklet-card p { margin-bottom: 17px; }
  .primary-button { padding: 15px 20px; font-size: 15px; }
  .card-note { padding-top: 10px; }
  .welcome-footer { height: 60px; }
}
@media (max-width: 800px) {
  :root { --toolbar: 68px; --page-pad: 24px; }
  .toolbar { padding: 0 20px; gap: 12px; }
  .brand { gap: 10px; }
  .control span { display: none; }
  .control { min-width: 39px; padding: 8px; min-height: 40px; }
  .toolbar-actions { gap: 1px; }
  .toolbar .icon { width: 19px; height: 19px; }
  .icon-button { width: 35px; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) 265px; gap: 20px; bottom: 100px; }
  h1 { font-size: 6.8vw; }
  .welcome-description { font-size: 12px; }
  .booklet-card { padding: 20px; }
  .booklet-card h2 { font-size: 32px; }
  .card-kicker { font-size: 8px; gap: 7px; }
  .card-kicker .icon { width: 17px; }
  .booklet-card p { font-size: 12px; }
  .product-families { gap: 14px; font-size: 9px; }
}
@media (max-width: 600px) {
  :root { --page-pad: 22px; }
  body { overflow: auto; }
  body.reading { overflow: hidden; --toolbar: 62px; }
  .welcome { min-height: 810px; position: relative; top: 0; margin-top: var(--toolbar); height: calc(100svh - var(--toolbar)); }
  .hero-visual { background-position: center top; background-size: auto 57%; }
  .hero-visual::after { background: linear-gradient(180deg,rgba(8,11,15,.12),rgba(8,11,15,.04) 22%,rgba(8,11,15,.84) 42%,#080b0f 58%); }
  .image-caption { top: 23px; font-size: 8px; }
  .welcome-bottom { grid-template-columns: 1fr; bottom: 115px; gap: 25px; }
  .welcome-copy { max-width: 100%; }
  .eyebrow { font-size: 9px; margin-bottom: 13px; }
  h1 { font-size: clamp(41px, 11.6vw, 65px); }
  .welcome-description { font-size: 12px; margin-top: 16px; }
  .booklet-card { max-width: none; padding: 21px 24px; }
  .booklet-card h2 { margin-top: 12px; }
  .booklet-card p { margin-bottom: 18px; }
  .primary-button { padding: 15px 18px; }
  .card-note { padding-top: 11px; font-size: 10px; }
  .welcome-footer { height: 87px; }
  .product-families { flex-wrap: wrap; gap: 12px 13px; font-size: 9px; line-height: 1.8; }
  .product-families i { height: 10px; }
  .toolbar { padding: 0 14px; }
  body.reading .brand { display: none; }
  body.reading .toolbar-actions { justify-content: space-between; margin: 0; width: 100%; }
  body.reading .control span { display: inline; font-size: 10px; }
  body.reading .control { gap: 5px; padding: 7px; }
  body.reading #shareButton span, body.reading #fullscreenButton span { display: none; }
  .modal { padding: 38px 25px 25px; }
  .modal h2 { font-size: 31px; }
  .modal .eyebrow { max-width: 250px; margin-inline: auto; line-height: 1.6; }
  .help-grid { grid-template-columns: 1fr; gap: 20px; }
  .help-actions { margin-top: 22px; padding-top: 22px; }
  .reader-notice { padding: 12px; font-size: 11px; gap: 10px; }
  .reader-notice .text-button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v1.4.0: owner's supplied logo for BLACK backgrounds, bundled locally.
   The original JPEG is used without tracing, recoloring or distortion. */
.toolbar { background: #000; }
.brand {
  padding: 0;
  gap: 0;
  background: #000;
  border-radius: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: 252px;
  height: auto;
  object-fit: contain;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}
body.reading .brand { padding: 0; }
body.reading .brand-logo { width: 220px; }
.share-modal { background: #000; }
.share-brand {
  display: inline-flex;
  justify-content: center;
  background: #000;
  padding: 0;
  border-radius: 0;
  margin: 0 auto 26px;
}
.share-brand img {
  display: block;
  width: min(290px, 64vw);
  height: auto;
  color: #fff;
  font-size: 12px;
  object-fit: contain;
}
@media (max-height: 720px) and (min-width: 801px) {
  .brand-logo { width: 204px; }
}
@media (max-width: 800px) {
  .brand-logo, body.reading .brand-logo { width: 180px; }
}

/* v1.2.0 - Full HD exhibition layout.
   Native DOM text/icons, never a scaled screenshot or fixed 1920px canvas.
   The iframe fits the viewport; its own page layout/zoom remain with Heyzine. */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
.reader { width: 100%; min-width: 0; min-height: 0; overflow: hidden; }
#bookletFrame { min-width: 0; min-height: 0; }
.brand-logo { max-height: none; }
body.reading .brand-logo { max-height: none; }
.display-check {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  padding: 22px; margin-top: 26px; background: #080b0f;
  border: 1px solid var(--border); border-left: 3px solid var(--red);
}
.display-check > div { display: flex; flex-direction: column; gap: 10px; }
.display-label { color: #a8adb5; font-size: 11px; letter-spacing: .13em; }
.display-check strong, .display-check output { font-size: 18px; }
.display-check small { display: block; margin-top: 6px; color: #a8adb5; font-size: 12px; font-weight: 400; }
.display-check p { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; color: #a8adb5; margin: 4px 0 0; }

/* Large landscape desktop / screen: the reference viewport is 1920 x 1080. */
@media (min-width: 1440px) and (min-height: 800px) {
  :root { --toolbar: 96px; --page-pad: clamp(56px, 4.2vw, 100px); }
  .toolbar { padding-inline: 48px; }
  .brand { padding: 0; }
  .brand-logo { width: 320px; height: auto; object-fit: contain; }
  .context-overline { font-size: 12px; letter-spacing: .2em; }
  #contextTitle { font-size: 18px; }
  .toolbar-separator { height: 38px; }
  .toolbar-actions { gap: 12px; }
  .control { font-size: 18px; min-height: 50px; padding: 12px 16px; gap: 10px; }
  .icon { width: 24px; height: 24px; }
  .icon-button { width: 46px; height: 46px; }
  .image-caption { top: 36px; font-size: 13px; }
  .welcome-bottom {
    bottom: clamp(116px, 12.3vh, 160px);
    grid-template-columns: minmax(0, 1fr) minmax(365px, 460px);
    column-gap: clamp(40px, 4vw, 90px);
  }
  .eyebrow { font-size: 15px; margin-bottom: 22px; }
  h1 { font-size: clamp(92px, 6.45vw, 146px); }
  .welcome-description { font-size: clamp(20px, 1.25vw, 28px); margin-top: 28px; }
  .booklet-card { padding: 34px; }
  .card-kicker { font-size: 13px; gap: 11px; }
  .card-kicker .icon { width: 23px; height: 23px; }
  .booklet-card h2 { font-size: 54px; margin-top: 22px; margin-bottom: 12px; }
  .card-number { font-size: 16px; }
  .booklet-card p { font-size: 19px; margin-bottom: 28px; }
  .primary-button { min-height: 72px; font-size: 23px; padding: 21px 24px; }
  .primary-button .icon { width: 27px; height: 27px; }
  .card-note { font-size: 14px; padding-top: 17px; }
  .welcome-footer { height: 88px; }
  .product-families { font-size: 16px; gap: clamp(22px, 2vw, 42px); }
  .footer-tag { font-size: 12px; }
  body.reading { --toolbar: 72px; }
  body.reading .toolbar { padding-inline: 32px; gap: 24px; }
  body.reading .brand { padding: 0; }
  body.reading .brand-logo { width: 244px; height: auto; }
  body.reading .control { min-height: 48px; padding-block: 10px; }
  .restore-toolbar { top: 12px; left: 16px; min-height: 46px; padding: 10px 16px; font-size: 16px; }
  .modal { width: min(94vw, 640px); padding: 46px 48px 34px; max-height: calc(100dvh - 64px); }
  .modal h2 { font-size: 48px; }
  .modal .eyebrow { font-size: 12px; }
  .modal-intro { font-size: 18px; }
  .share-brand { margin-bottom: 24px; }
  .share-brand img { width: 340px; }
  .qr-frame { width: 310px; }
  .share-url { font-size: 21px; margin-bottom: 20px; }
  .copy-button { min-height: 56px; font-size: 18px; padding: 15px 20px; }
  .fine-print { font-size: 13px; }
  .help-modal { width: min(94vw, 1080px); }
  .help-modal h2 { max-width: none; margin-bottom: 30px; }
  .help-grid h3 { font-size: 18px; }
  .help-grid p { font-size: 16px; }
  .help-actions { margin-top: 22px; padding-top: 22px; }
  .compact { min-height: 50px; padding: 12px 20px; font-size: 17px; }
  .display-check p { font-size: 14px; }
  .display-label { font-size: 12px; }
  .display-check strong, .display-check output { font-size: 21px; }
  .display-check small { font-size: 14px; }
  .reader-notice, .reader-notice .text-button { font-size: 16px; }
  .toast { font-size: 17px; }
}
/* A 1080p monitor at 125% scaling often exposes a 1536 x 864 CSS viewport. */
@media (min-width: 1440px) and (max-width: 1700px) and (min-height: 800px) {
  :root { --toolbar: 84px; }
  .brand-logo { width: 280px; height: auto; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) 370px; column-gap: 32px; }
  h1 { font-size: 6.1vw; }
  .booklet-card { padding: 28px; }
  .booklet-card h2 { font-size: 46px; margin-top: 17px; }
  .booklet-card p { font-size: 17px; margin-bottom: 20px; }
  .primary-button { min-height: 64px; padding: 18px 20px; font-size: 21px; }
  .card-kicker { font-size: 11px; }
  .card-note { font-size: 12px; padding-top: 13px; }
  .eyebrow { font-size: 13px; margin-bottom: 18px; }
  .welcome-description { font-size: 19px; margin-top: 23px; }
  .product-families { font-size: 13px; }
  .footer-tag { font-size: 10px; }
  .control { font-size: 16px; padding-inline: 12px; }
  .share-modal { padding-top: 30px; padding-bottom: 24px; }
  .share-brand { margin-bottom: 18px; }
  .share-brand img { width: 280px; }
  .qr-frame { width: 250px; }
  .modal h2 { font-size: 40px; }
  .modal-intro { margin-bottom: 18px; }
  .help-modal { padding: 34px; }
  .help-grid { gap: 22px 28px; }
  .help-grid h3 { font-size: 16px; }
  .help-grid p { font-size: 14px; }
  .display-check { margin-top: 20px; padding: 18px; }
}
/* Laptop fallback: keep it fluid rather than shrinking a fixed-size canvas. */
@media (min-width: 1000px) and (max-width: 1439px) and (min-height: 700px) {
  :root { --toolbar: 78px; }
  .brand-logo { width: 252px; height: auto; }
  .control { font-size: 14px; padding-inline: 10px; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) 340px; column-gap: 32px; }
  h1 { font-size: 6.2vw; }
  .booklet-card { padding: 25px; }
  .booklet-card h2 { font-size: 42px; }
  .booklet-card p { font-size: 15px; }
  .primary-button { min-height: 60px; font-size: 18px; padding: 17px 20px; }
  .welcome-description { font-size: 17px; }
  .product-families { font-size: 12px; }
  .card-note { font-size: 12px; }
  body.reading .toolbar-context, body.reading .toolbar-separator { display: none; }
}
@media (min-width: 2400px) and (min-height: 1100px) {
  :root { --toolbar: 112px; }
  body.reading { --toolbar: 88px; }
  .brand-logo { width: 400px; height: auto; max-height: none; }
  body.reading .brand-logo { width: 310px; height: auto; max-height: none; }
  .control { font-size: 22px; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) minmax(460px,620px); }
  .booklet-card { padding: 44px; }
  .booklet-card h2 { font-size: 66px; }
  .booklet-card p { font-size: 23px; }
  .product-families { font-size: 21px; }
  .footer-tag { font-size: 16px; }
}
@media (max-width: 600px) {
  .display-check { grid-template-columns: 1fr; padding: 18px; }
  .display-check strong, .display-check output { font-size: 16px; }
}

/* v1.3.0 - live booklet surround, drawn with native CSS at any resolution.
   This is NOT a picture placed over the booklet. The iframe stays interactive.
   Reference viewport: 1920 x 1080, horizontal Full HD. */
:root {
  --reader-pad-x: clamp(16px, 2.6vw, 64px);
  --reader-pad-y: clamp(14px, 2.35vh, 30px);
  --bezel: clamp(17px, 1.5vw, 30px);
}
.reader {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: var(--reader-pad-y) var(--reader-pad-x) 15px;
  isolation: isolate;
  overflow: hidden;
  background: #080b0f;
}
.reader::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,6,10,.58), rgba(3,6,10,.4) 45%, rgba(3,6,10,.94)),
    url('assets/1.8.0/welcome.webp') center center / cover no-repeat;
}
.reader::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 70%, transparent 45%, rgba(0,0,0,.23));
}
.booklet-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: var(--bezel);
  border: 1px solid #6b6d73;
  border-bottom-color: #42454c;
  border-radius: 3px;
  background:
    repeating-linear-gradient(133deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #34373c 0%, #1b1e23 28%, #17191e 53%, #303339 86%, #14161b);
  box-shadow: 0 18px 56px rgba(0,0,0,.72), 0 3px 5px #000,
    0 0 0 2px #080a0d, 0 0 0 3px rgba(166,170,180,.28),
    inset 0 2px 1px rgba(255,255,255,.28), inset 2px 0 1px rgba(255,255,255,.1),
    inset 0 -3px 2px rgba(0,0,0,.9), inset -2px 0 1px rgba(0,0,0,.8);
}
.booklet-shell::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.19);
  border-bottom-color: rgba(0,0,0,.8);
  border-right-color: rgba(0,0,0,.8);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
  pointer-events: none;
}
.booklet-shell::after {
  content: '';
  position: absolute;
  inset: calc(var(--bezel) - 10px);
  border: 1px solid rgba(0,0,0,.85);
  border-bottom-color: rgba(255,255,255,.18);
  border-right-color: rgba(255,255,255,.1);
  pointer-events: none;
}
.frame-keyline {
  position: absolute;
  inset: calc(var(--bezel) - 6px);
  border: 1px solid #f22435;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(242,36,53,.75), inset 0 0 5px rgba(242,36,53,.24),
    0 0 13px rgba(242,36,53,.16);
  pointer-events: none;
}
.frame-keyline::before, .frame-keyline::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, #fa293e, #ffe0df 22%, #ff283f 58%, #ffc2c8 90%, #ec122d);
  box-shadow: 0 0 4px #ff2339, 0 0 10px rgba(255,18,52,.62);
  pointer-events: none;
}
.frame-keyline::before { left: -1px; }
.frame-keyline::after { right: -1px; }
.frame-joint {
  position: absolute;
  z-index: 3;
  width: calc(var(--bezel) * 1.4142 - 9px);
  height: 1px;
  background: #06080a;
  box-shadow: 0 1px 0 rgba(255,255,255,.17);
  pointer-events: none;
}
.frame-joint-tl { top: 1px; left: 1px; transform: rotate(45deg); transform-origin: left center; }
.frame-joint-tr { top: 1px; right: 1px; transform: rotate(-45deg); transform-origin: right center; }
.frame-joint-bl { bottom: 1px; left: 1px; transform: rotate(-45deg); transform-origin: left center; }
.frame-joint-br { bottom: 1px; right: 1px; transform: rotate(45deg); transform-origin: right center; }
.reader-viewport {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #080b0f;
  box-shadow: 0 0 0 1px #030406, 0 0 0 3px rgba(0,0,0,.7);
}
#bookletFrame { flex: 1 1 0; min-width: 0; min-height: 0; }
.reader-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 18px;
  gap: 20px;
  color: #bbc0c8;
  font-size: clamp(9px, .6vw, 13px);
  font-weight: 500;
  letter-spacing: .21em;
  text-shadow: 0 2px 4px #000;
  white-space: nowrap;
}
.reader-caption > span { display: inline-flex; align-items: center; gap: 13px; }
.reader-caption > span:nth-child(2) { color: #9299a3; letter-spacing: .15em; }
.reader-caption i { display: inline-block; width: 25px; height: 2px; background: var(--red); }
.control-frame[aria-pressed='true'] { border-color: rgba(242,36,53,.45); background: rgba(242,36,53,.07); }
.control-frame[aria-pressed='true'] .icon { color: #ff4555; }
.control-frame:hover { border-color: var(--red); background: rgba(242,36,53,.14); }
.reader-loading {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(8,11,15,.91), rgba(8,11,15,.99) 72%),
    url('assets/1.8.0/welcome.webp') center / cover no-repeat;
}
.reader-loading .loading-overline { font-size: clamp(10px,.75vw,14px); letter-spacing: .26em; margin: 0 0 32px; color: #c6c9cf; }
.reader-loading .loading-book { width: 55px; height: 55px; color: #ff3145; stroke-width: 1; }
.reader-loading h2 { font-size: clamp(28px,3vw,52px); font-weight: 600; margin: 26px 0 15px; letter-spacing: -.035em; }
.reader-loading h2 span { color: var(--red); }
.reader-loading > p:not(.loading-overline) { font-size: clamp(13px,1vw,18px); }
.reader-loading .loading-ring { width: 26px; height: 26px; margin-top: 8px; margin-bottom: 22px; }
.reader-loading .text-button { font-size: 13px; color: #a8adb5; }
body.focus-mode .reader { --bezel: clamp(16px,1.2vw,26px); padding: 18px 24px 16px; gap: 0; }
body.focus-mode .reader-caption { display: none; }
body.focus-mode .restore-toolbar { top: 3px; left: 44px; min-height: 28px; height: 28px; padding: 5px 11px; font-size: 12px; border-radius: 3px; }
body.focus-mode .restore-toolbar .icon { width: 17px; height: 17px; }
body.frame-off .reader { padding: 0; gap: 0; }
body.frame-off .reader::before, body.frame-off .reader::after,
body.frame-off .booklet-shell::before, body.frame-off .booklet-shell::after,
body.frame-off .frame-keyline, body.frame-off .frame-joint,
body.frame-off .reader-caption { display: none; }
body.frame-off .booklet-shell { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.frame-off .reader-viewport { box-shadow: none; }
body.frame-off.focus-mode .restore-toolbar { top: 10px; left: 12px; }
.brand-fallback { display: block; color: #f3f3f5; font-size: 18px; font-weight: 700; line-height: 1.06; text-align: left; letter-spacing: -.025em; }
.brand.logo-unavailable, .share-brand.logo-unavailable { background: transparent; }
.brand.logo-unavailable { min-width: 190px; padding-left: 0; }
.share-brand.logo-unavailable .brand-fallback { font-size: 25px; text-align: center; }
@media (min-width: 1440px) and (min-height: 800px) {
  body.reading .reader-caption { font-size: 11px; }
  .brand-fallback { font-size: 23px; }
  body.reading .brand-fallback { font-size: 20px; }
}
@media (max-width: 1150px) {
  .reader { --reader-pad-x: 20px; --bezel: 18px; gap: 12px; }
  .reader-caption { letter-spacing: .15em; }
  .reader-caption > span:nth-child(2) { display: none; }
}
@media (max-width: 950px) {
  body.reading .toolbar-context, body.reading .toolbar-separator { display: none; }
  body.reading #frameButton span { display: none; }
}
@media (max-width: 600px) {
  .reader { --bezel: 12px; padding: 12px 10px 10px; gap: 10px; }
  .frame-keyline { inset: calc(var(--bezel) - 4px); border-radius: 3px; }
  .booklet-shell::after { display: none; }
  .frame-joint { width: calc(var(--bezel) * 1.4142 - 5px); }
  .reader-caption { flex-basis: 14px; font-size: 8px; letter-spacing: .1em; }
  .reader-caption > span { gap: 7px; }
  .reader-caption i { width: 12px; }
  .reader-loading .loading-overline { font-size: 8px; letter-spacing: .15em; margin-bottom: 22px; }
  .reader-loading h2 { font-size: 27px; }
  .reader-loading .loading-book { width: 42px; height: 42px; }
  body.focus-mode .reader { padding: 24px 9px 10px; --bezel: 12px; }
  body.focus-mode .restore-toolbar { left: 18px; top: 3px; height: 28px; min-height: 28px; font-size: 11px; }
  .brand.logo-unavailable { min-width: 150px; }
  .brand-fallback { font-size: 18px; }
}
@media (max-width: 430px) {
  body.reading .control span { display: none; }
  body.reading .control { min-width: 40px; min-height: 40px; padding: 8px; }
  body.reading .toolbar { padding-inline: 10px; }
}
@media (max-height: 560px) {
  .reader { --reader-pad-y: 12px; --bezel: 14px; padding-bottom: 10px; gap: 0; }
  .reader-caption { display: none; }
  .reader-loading .loading-overline { margin-bottom: 12px; }
  .reader-loading h2 { margin: 12px 0; font-size: 28px; }
  .reader-loading .loading-book { width: 32px; height: 32px; }
  .reader-loading .loading-ring { margin: 0 0 10px; width: 22px; height: 22px; }
  .reader-loading > p:not(.loading-overline) { margin-bottom: 12px; }
}

/* Local official artwork in the opening state, with true black behind it. */
.reader-loading { background: #000; }
.loading-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin: 0 0 30px;
  background: #000;
}
.loading-brand img {
  display: block;
  width: clamp(220px, 24vw, 420px);
  max-width: 80vw;
  height: auto;
  object-fit: contain;
}
.loading-brand .brand-fallback { font-size: 26px; text-align: center; }
body.reading .toolbar { background: #000; }
@media (max-width: 600px) {
  .brand-logo { width: 195px; }
  .loading-brand { margin-bottom: 22px; }
  .loading-brand img { width: min(230px, 72vw); }
}
@media (max-height: 560px) {
  .loading-brand { margin-bottom: 10px; }
  .loading-brand img { width: 220px; }
}

/* Keep the keyboard focus outline outside the framed page area as well. */
.restore-toolbar:focus-visible { outline-width: 2px; outline-offset: 1px; }


/* v1.8.0: preorder CTA, chapter shortcuts and persistent Home navigation.
   The dock is a flex row outside the iframe, not an overlay on its controls. */
:root { --chapter-footer-height: 140px; }
.welcome-bottom { bottom: calc(var(--chapter-footer-height) + 28px); }
.welcome-footer {
  height: var(--chapter-footer-height);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding-block: 15px 20px;
}
.chapter-footer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #aeb4bc; }
.chapter-footer-heading .footer-tag { font-size: 10px; font-weight: 400; }
.chapter-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.chapter-link {
  min-height: 74px; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 15px 20px; border: 1px solid #42454a; border-radius: 3px;
  background: rgba(13,17,23,.91); transition: background .18s, border-color .18s, transform .18s;
}
.chapter-link:hover { border-color: #f22435; background: #211219; transform: translateY(-2px); }
.chapter-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chapter-copy strong { color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap; }
.chapter-pages { font-size: 12px; color: #b2b8c1; letter-spacing: .05em; }
.chapter-link > .icon { width: 22px; height: 22px; color: #ff3949; }





.reader { gap: 10px; }
.reader-dock { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; width: 100%; }
.dock-home {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto;
  min-width: 124px; min-height: 44px; padding: 10px 18px; border: 1px solid #da2636; border-radius: 3px;
  background: #171016; font-size: 16px; font-weight: 600; box-shadow: 0 2px 8px #0005;
}
.dock-home:hover { background: #48101a; border-color: #ff5b69; }
.dock-home .icon { color: #ff4353; width: 20px; height: 20px; }
.dock-caption { display: inline-flex; align-items: center; justify-content: center; gap: 16px; color: #aeb4bd; font-size: 10px; letter-spacing: .18em; text-align: center; }
.dock-caption i { width: 22px; height: 1px; background: var(--red); }
.dock-actions { display: flex; justify-content: flex-end; min-width: 124px; }
body .reader-dock .restore-toolbar {
  position: static; inset: auto; z-index: auto; min-height: 44px; height: auto; padding: 10px 15px;
  font-size: 15px; font-weight: 500; border-radius: 3px; box-shadow: none;
}
body .reader-dock .restore-toolbar .icon { width: 20px; height: 20px; }
body.focus-mode .reader { gap: 10px; }
body.frame-off .reader-dock { padding: 7px 16px; border-top: 1px solid #30343d; background: #080b0f; }
body.frame-off .reader { gap: 0; }
.reader-notice { bottom: 80px; }
.chapter-help { padding-top: 20px; border-top: 1px solid var(--border); margin-top: 22px; }
.chapter-help h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.chapter-help p { color: #b6bdc7; line-height: 1.6; font-size: 14px; margin: 0; }
@media (min-width: 1440px) and (min-height: 800px) {
  :root { --chapter-footer-height: 150px; }
  .chapter-footer-heading, .chapter-footer-heading .footer-tag { font-size: 12px; }
  .chapter-link { min-height: 84px; padding: 17px 24px; }
  .chapter-copy strong { font-size: 22px; }
  .chapter-pages { font-size: 14px; }


  .dock-home, body .reader-dock .restore-toolbar { min-height: 46px; font-size: 17px; }
  .dock-home, .dock-actions { min-width: 140px; }
  .dock-caption { font-size: 11px; }
}
@media (min-width: 601px) and (max-width: 1700px) {


  .chapter-link { padding-inline: 16px; }
  .chapter-copy strong { font-size: 18px; }
}
@media (min-width: 601px) and (max-width: 1050px) {
  .chapter-links { gap: 10px; }
  .chapter-link { gap: 8px; padding-inline: 12px; }
  .chapter-copy strong { font-size: 15px; }
  .chapter-pages { font-size: 11px; }
  .chapter-link > .icon { width: 17px; height: 17px; }
  .dock-caption { font-size: 9px; letter-spacing: .1em; }
}
@media (min-width: 601px) and (max-height: 800px) {
  :root { --chapter-footer-height: 126px; }
  .welcome-bottom { bottom: calc(var(--chapter-footer-height) + 20px); }
  .welcome-footer { gap: 10px; padding-top: 12px; padding-bottom: 15px; }
  .chapter-link { min-height: 70px; padding-block: 12px; }
  .booklet-card { padding-top: 22px; padding-bottom: 20px; }
  .booklet-card h2 { margin-top: 14px; margin-bottom: 8px; }
  .booklet-card p { margin-bottom: 17px; }
  .card-note { font-size: 11px; padding-top: 10px; }


}
@media (min-width: 601px) and (max-height: 620px) {
  :root { --toolbar: 60px; --chapter-footer-height: 102px; }
  .welcome-footer { padding-top: 10px; gap: 8px; }
  .chapter-footer-heading { font-size: 8px; }
  .chapter-link { min-height: 56px; padding-block: 9px; }
  .chapter-copy { gap: 4px; }
  .chapter-copy strong { font-size: 14px; }
  .chapter-pages { font-size: 10px; }
  .welcome-bottom { bottom: calc(var(--chapter-footer-height) + 12px); }
  .booklet-card { padding: 14px 20px; }
  .booklet-card h2 { font-size: 30px; margin: 10px 0 5px; }
  .booklet-card p { font-size: 12px; margin-bottom: 12px; }
  .primary-button { min-height: 43px; padding: 10px 16px; font-size: 15px; }
  .card-note { display: none; }



  h1 { font-size: clamp(44px, 6vw, 80px); }
  .welcome-description { margin-top: 14px; }
}
@media (max-width: 600px) {
  body:not(.reading) { overflow: auto; }
  .welcome { height: auto; min-height: calc(100svh - var(--toolbar)); padding: 265px var(--page-pad) 22px; }
  .hero-visual { background-size: auto 460px; }
  .hero-visual::after { background: linear-gradient(180deg,rgba(8,11,15,.04) 0,#080b0f 470px); }
  .welcome-bottom { position: static; display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 30px; }
  .booklet-card { max-width: none; padding: 22px; }
  .welcome-footer { position: static; height: auto; padding-top: 18px; padding-bottom: 0; gap: 14px; }
  .chapter-footer-heading { font-size: 10px; }
  .chapter-footer-heading .footer-tag { display: none; }
  .chapter-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .chapter-link { padding: 13px 12px; min-height: 77px; gap: 8px; }
  .chapter-copy { gap: 7px; }
  .chapter-copy strong { font-size: 14px; }
  .chapter-pages { font-size: 11px; }
  .chapter-link > .icon { width: 16px; height: 16px; }



  .reader-dock { gap: 10px; min-height: 42px; }
  .dock-caption { display: none; }
  .dock-home, body .reader-dock .restore-toolbar { min-width: 0; min-height: 42px; padding: 9px 13px; font-size: 14px; }
  .dock-actions { min-width: 0; }
  body.focus-mode .reader { padding-top: 12px; }
  body.frame-off .reader-dock { padding: 7px 10px; }
  .reader-notice { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-link { transition: none; }
}

/* v1.8.0: two named QR controls, five chapters and direct Revolut payment.
   The QR is an unmodified black/white matrix with its full quiet zone.
   All payment UI stays outside the cross-origin booklet; opening it never
   reloads the current booklet page. No motion or timer pressures a purchase. */
html.modal-open, html.modal-open body { overflow: hidden; }
.control-qr { border-color: #363a40; }
.control-qr .icon { width: 23px; height: 23px; }
.control-payment { background: #261013; border-color: #ac2832; }
.control-payment .icon { color: #ff4b56; }
.control-payment:hover { background: #421219; border-color: #f22435; }
.chapter-links { grid-template-columns: repeat(5, minmax(0,1fr)); }
.chapter-link { padding-inline: 17px; }
.chapter-copy strong { font-size: clamp(15px, 1.1vw, 22px); }

.payment-modal {
  width: min(1240px, calc(100vw - 80px));
  max-width: none; max-height: calc(100dvh - 64px);
  padding: 0; border: 1px solid #48434a; border-radius: 12px;
  background: #11151b; box-shadow: 0 30px 120px #000c;
  overflow: auto; overscroll-behavior: contain; color-scheme: dark;
}
.payment-modal[open] { animation: payment-reveal .18s ease-out; }
@keyframes payment-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.payment-modal::backdrop { background: #020306db; backdrop-filter: blur(10px); }
.payment-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 782px; }
.payment-close {
  position: absolute; top: 15px; right: 15px; z-index: 4;
  width: 40px; height: 40px; background: #1d222a;
  border: 1px solid #55515b; border-radius: 50%;
}
.payment-close:hover { background: #421219; border-color: #f22435; }
.payment-close:focus-visible { outline-offset: 2px; outline: 2px solid #fff; }
.payment-close .icon { width: 20px; height: 20px; }
.payment-showcase { position: relative; isolation: isolate; overflow: hidden; padding: 34px; min-width: 0; background: #07090c; border-right: 1px solid #37323a; }
.payment-art {
  position: absolute; inset: 0; z-index: -2;
  background: url('assets/1.8.0/welcome.webp') 24% center / auto 100% no-repeat;
}
.payment-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,#0009 0%,#0000 24%,#07090c0a 47%,#07090ce8 80%,#07090c 100%);
}
.payment-brand { display: inline-flex; padding: 12px 16px; background: #000; border: 1px solid #3336; border-radius: 3px; }
.payment-brand img { display: block; width: 250px; max-width: 100%; height: auto; object-fit: contain; }
.payment-showcase-copy { position: absolute; bottom: 46px; left: 42px; right: 28px; }
.payment-kicker { font-size: 12px; font-weight: 700; color: #f79b95; letter-spacing: .2em; margin: 0 0 20px; }
.payment-modal .payment-showcase-copy h2 { font-size: 88px; line-height: .94; font-weight: 750; letter-spacing: -.055em; margin: 0 0 22px; }
.payment-showcase-line { margin: 0 0 28px; font-size: 18px; line-height: 1.5; color: #e1dbd9; }
.payment-product-label { display: flex; gap: 15px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .19em; color: #adb2bc; }
.payment-checkout { min-width: 0; padding: 49px 42px 26px; text-align: center; background: radial-gradient(ellipse at 50% 10%,#321a2085,transparent 60%),#11151b; }
.payment-modal .payment-overline { margin: 0 0 13px; color: #fb7b84; font-size: 11px; letter-spacing: .19em; }
.payment-modal #paymentTitle { font-size: 40px; font-weight: 700; letter-spacing: -.04em; margin: 0 0 10px; line-height: 1.15; }
.payment-intro { color: #d6d8dd; font-size: 20px; line-height: 1.45; margin: 0 0 25px; }
.payment-qr-panel { width: min(100%, 358px); margin: 0 auto; padding: 0; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #ffffff35,0 12px 40px #0005; overflow: hidden; }
.payment-qr-panel img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.payment-scan-note { color: #bec4ce; font-size: 13px; line-height: 1.4; margin: 17px 0 22px; }
.payment-cta { display: flex; justify-content: space-between; width: min(100%,420px); margin: 0 auto; min-height: 58px; font-size: 19px; padding: 16px 23px; border-radius: 5px; background: #e9162a; border-color: #e9162a; }
.payment-cta:hover { transform: none; background: #cd1124; }
.payment-destination { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 17px; font-size: 12px; line-height: 1.5; color: #c0c5ce; }
.payment-destination .icon { width: 14px; height: 14px; }
.payment-review { max-width: 400px; margin: 0 auto 14px; font-size: 12px; line-height: 1.6; color: #a6aeba; }
.payment-copy-link { background: none; border: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.4; color: #d7dbe1; text-underline-offset: 4px; }
.payment-copy-link:hover { color: #fff; text-decoration: underline; }
.payment-copy-link .icon { width: 14px; height: 14px; }
.payment-copy-status { min-height: 14px; margin: 4px 0 0; font-size: 11px; line-height: 1.45; color: #d3d8e0; }

@media (min-width: 1440px) and (min-height: 800px) {
  .chapter-link { padding-inline: 21px; }
  .control-qr { padding-inline: 18px; }
}
@media (max-width: 1360px) {
  .toolbar-context, .toolbar-separator { display: none; }
  .toolbar { gap: 18px; }
}
@media (min-width: 801px) and (max-width: 1150px) {
  body.reading .brand-logo { width: 165px; }
  body.reading .toolbar { gap: 12px; padding-inline: 18px; }
  body.reading .control { padding-inline: 8px; gap: 6px; font-size: 12px; }
  body.reading .toolbar-actions { gap: 4px; }
}
@media (max-width: 1000px) {
  .chapter-links { gap: 8px; }
  .chapter-link { padding-inline: 11px; gap: 8px; }
  .chapter-copy strong { font-size: 14px; }
  .chapter-link > .icon { width: 16px; height: 16px; }
}
@media (min-width: 761px) and (max-height: 900px) {
  .payment-modal { width: min(1120px,calc(100vw - 56px)); max-height: calc(100dvh - 40px); }
  .payment-layout { min-height: 620px; }
  .payment-checkout { padding: 29px 32px 17px; }
  .payment-modal #paymentTitle { font-size: 34px; }
  .payment-modal .payment-overline { font-size: 10px; margin-bottom: 10px; }
  .payment-intro { font-size: 18px; margin-bottom: 16px; }
  .payment-qr-panel { width: min(100%, 280px); }
  .payment-scan-note { margin: 12px 0 15px; font-size: 12px; }
  .payment-cta { min-height: 51px; font-size: 17px; padding-block: 13px; }
  .payment-destination { margin-block: 10px 11px; }
  .payment-review { margin-bottom: 7px; font-size: 11px; }
  .payment-showcase { padding: 24px; }
  .payment-brand { padding: 10px 13px; }
  .payment-brand img { width: 215px; }
  .payment-showcase-copy { left: 32px; bottom: 36px; }
  .payment-modal .payment-showcase-copy h2 { font-size: 76px; }
}
@media (max-width: 800px) {
  .control-qr { flex-direction: column; gap: 4px; padding: 6px 10px; min-height: 53px; }
  .control-qr span, body.reading .control-qr span, body.reading #shareButton span { display: inline; font-size: 11px; }
  .control-qr .icon { width: 19px; height: 19px; }
  .toolbar { gap: 12px; }
  .toolbar-actions { gap: 7px; }
  body.reading .brand { display: none; }
  body.reading .toolbar-actions { justify-content: space-between; width: 100%; margin: 0; }
  body.reading .control:not(.control-qr) span { display: none; }
  body.reading .control:not(.control-qr) { padding: 8px; min-width: 34px; }
  body.reading .control-qr { padding-inline: 7px; min-width: 54px; }
  body.reading .toolbar-actions { gap: 2px; }
  body.reading .toolbar .icon-button { width: 31px; }
}
@media (max-width: 760px) {
  .payment-modal { width: min(520px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 9px; }
  .payment-layout { display: flex; flex-direction: column; min-height: 0; }
  .payment-showcase { min-height: 88px; padding: 16px 22px; border-right: none; border-bottom: 1px solid #53414a; }
  .payment-art { background-size: cover; background-position: 34% 30%; }
  .payment-art::after { background: #0009; }
  .payment-brand { padding: 7px 10px; }
  .payment-brand img { width: 175px; }
  .payment-showcase-copy { display: none; }
  .payment-close { width: 36px; height: 36px; top: 15px; right: 14px; }
  .payment-checkout { padding: 22px 24px 16px; }
  .payment-modal .payment-overline { font-size: 9px; margin: 0 auto 10px; }
  .payment-modal #paymentTitle { font-size: 32px; margin-bottom: 8px; }
  .payment-intro { font-size: 17px; margin-bottom: 17px; }
  .payment-qr-panel { width: min(100%,270px); border-radius: 9px; }
  .payment-scan-note { margin: 12px 0 17px; font-size: 12px; }
  .payment-cta { min-height: 53px; font-size: 16px; padding: 14px 18px; }
  .payment-destination { font-size: 11px; margin-block: 10px 14px; }
  .payment-review { font-size: 11px; margin-bottom: 7px; }
  .payment-copy-status { margin-top: 1px; }
}
@media (max-width: 600px) {
  :root { --toolbar: 78px; }
  body.reading { --toolbar: 72px; }
  .toolbar { padding-inline: 12px; gap: 10px; }
  .brand-logo { width: 140px; }
  .toolbar-actions { gap: 5px; }
  .control-qr { padding-inline: 8px; }
  .control-qr span, body.reading .control-qr span, body.reading #shareButton span { font-size: 10px; }
  .chapter-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .chapter-link:last-child { grid-column: 1 / -1; }
  .chapter-copy strong { font-size: 14px; }
  .chapter-link { padding-inline: 14px; }
  #fullscreenButton { min-width: 33px; padding-inline: 7px; }
  .modal:not(.payment-modal) { width: min(94vw, 540px); }
}
@media (max-width: 370px) {
  .brand-logo { width: 106px; }
  .toolbar { padding-inline: 9px; gap: 8px; }
  .toolbar-actions { gap: 3px; }
  .control-qr { padding-inline: 6px; }
  body.reading .toolbar { padding-inline: 5px; }
  body.reading .control:not(.control-qr) { min-width: 31px; padding-inline: 5px; }
  .payment-checkout { padding-inline: 19px; }
  .payment-modal #paymentTitle { font-size: 28px; }
  .chapter-link { padding-inline: 10px; }
  .chapter-copy strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .payment-modal[open] { animation: none; } }


/* v1.8.0: homepage page-number search. This is outside the reader and does
   not change either QR dialog, the frame, or the existing chapter shortcuts. */
.page-jump {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.page-jump-label {
  display: block;
  margin-bottom: 10px;
  color: #d4d9e1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.page-jump-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid #505966;
  border-radius: 4px;
  background: #080b10;
  transition: border-color .15s, box-shadow .15s;
}
.page-jump-field:focus-within {
  border-color: #f22435;
  box-shadow: 0 0 0 2px rgba(242,36,53,.19);
}
.page-jump-icon { margin-left: 10px; color: #f44352; width: 21px; height: 21px; }
#pageNumber {
  width: 100%;
  min-width: 0;
  padding: 8px 1px;
  border: 0;
  outline: 0;
  border-radius: 1px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  caret-color: #ff4656;
}
#pageNumber::placeholder { color: #979eaa; font-size: 17px; font-weight: 400; opacity: 1; }
.page-jump-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-width: 80px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #f22435;
  border-radius: 2px;
  background: #f22435;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
.page-jump-submit .icon { width: 20px; height: 20px; }
.page-jump-submit:hover { background: #d91527; border-color: #d91527; }
.booklet-card .page-jump-hint {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: #aeb5c0;
  font-size: 12px;
  line-height: 1.5;
}
.page-jump.has-error .page-jump-field { border-color: #ff6774; }
.booklet-card .page-jump.has-error .page-jump-hint { color: #ff9ca6; }
@media (min-width: 1440px) and (min-height: 800px) {
  .page-jump { margin-top: 25px; padding-top: 22px; }
  .page-jump-label { font-size: 13px; margin-bottom: 12px; }
  .page-jump-field { gap: 10px; padding: 6px; }
  .page-jump-icon { width: 24px; height: 24px; margin-left: 12px; }
  #pageNumber { font-size: 24px; padding-block: 10px; }
  #pageNumber::placeholder { font-size: 21px; }
  .page-jump-submit { min-width: 92px; min-height: 48px; font-size: 19px; }
  .booklet-card .page-jump-hint { font-size: 14px; margin-top: 11px; }
}
@media (min-width: 601px) and (max-height: 720px) {
  .page-jump { margin-top: 15px; padding-top: 12px; }
  .page-jump-label { margin-bottom: 7px; font-size: 10px; }
  .page-jump-field { padding: 4px; }
  .page-jump-submit { min-height: 38px; min-width: 70px; padding-block: 7px; }
  #pageNumber { font-size: 19px; padding-block: 7px; }
  .booklet-card .page-jump-hint { font-size: 10px; margin-top: 7px; }
}
@media (min-width: 601px) and (max-height: 560px) {
  .booklet-card > .card-kicker, .booklet-card > h2, .booklet-card > p { display: none; }
  .page-jump { margin-top: 12px; padding-top: 10px; }
}
@media (max-width: 600px) {
  .page-jump { margin-top: 20px; padding-top: 17px; }
  .page-jump-label { font-size: 11px; }
  .page-jump-field { gap: 6px; }
  .page-jump-icon { margin-left: 7px; width: 19px; height: 19px; }
  #pageNumber { font-size: 20px; }
  .page-jump-submit { min-width: 70px; min-height: 44px; padding-inline: 10px; gap: 7px; }
  .booklet-card .page-jump-hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .page-jump-field { transition: none; } }


/* v1.8.0: corporate typography and the redesigned lower catalogue bar.
   Existing heading, subheading, button and body weights/sizes are preserved.
   The external Heyzine document and the original logo artwork are not changed. */
button, input, select, textarea, dialog { font-family: inherit; }
:root { --catalogue-bar-height: 140px; }
.welcome-bottom { bottom: calc(var(--catalogue-bar-height) + 28px); }
.welcome-footer.catalogue-bar {
  height: var(--catalogue-bar-height); display: flex; flex-direction: row;
  align-items: center; justify-content: space-between; gap: 40px;
  padding-block: 16px 20px; z-index: 25;
}
.catalogue-bar .page-jump {
  width: min(500px, 52%); flex: 0 1 500px; margin: 0; padding: 0; border: 0;
}
.catalogue-bar .page-jump-label {
  font-size: 12px; line-height: 1.4; margin: 0 0 9px;
}
.catalogue-bar .page-jump-field { padding: 5px; gap: 10px; }
.catalogue-bar .page-jump-hint {
  min-height: 1.5em; margin: 7px 0 0; color: #aeb5c0;
  font-size: 12px; line-height: 1.5;
}
.catalogue-bar .page-jump.has-error .page-jump-hint { color: #ff9ca6; }
.key-pages { position: relative; flex: 0 1 440px; max-width: 46%; }
.key-pages-toggle {
  display: flex; align-items: center; gap: 18px; width: 100%; min-height: 78px;
  padding: 17px 21px; text-align: left; border: 1px solid #50525a;
  border-radius: 4px; background: #0d1117; transition: background .16s, border-color .16s;
}
.key-pages-toggle:hover, .key-pages.is-open .key-pages-toggle { border-color: var(--red); background: #241219; }
.key-pages-symbol { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #75303b; border-radius: 50%; color: #ff4655; }
.key-pages-symbol .icon { width: 23px; height: 23px; }
.key-pages-toggle-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.key-pages-toggle-copy strong { font-size: 21px; font-weight: 600; line-height: 1.3; }
.key-pages-toggle-copy > span { color: #b5bdc9; font-size: 12px; line-height: 1.5; }
.key-pages-chevron { margin-left: auto; color: #f34856; width: 20px; height: 20px; transition: transform .16s; }
.key-pages.is-open .key-pages-chevron { transform: rotate(180deg); }
.key-pages-panel {
  position: absolute; right: 0; bottom: calc(100% + 15px); z-index: 40;
  width: min(740px, calc(100vw - 2 * var(--page-pad))); max-height: calc(100dvh - var(--toolbar) - var(--catalogue-bar-height) - 32px);
  padding: 25px; overflow: auto; overscroll-behavior: contain;
  background: #10151b; color: #f5f5f5; border: 1px solid #55525b; border-top: 3px solid var(--red);
  border-radius: 5px; box-shadow: 0 25px 80px #000b;
}
.key-pages-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.key-pages-panel-heading .eyebrow { font-size: 10px; margin: 0 0 10px; letter-spacing: .17em; }
.key-pages-panel h2 { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.key-pages-panel-heading .icon-button { flex-shrink: 0; border-color: #454b55; }
.key-pages-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 23px; }
.key-pages-group h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: #b9c1cd; margin: 0 0 10px; }
.key-pages-group nav { display: flex; flex-direction: column; gap: 7px; }
.key-page-link {
  display: flex; justify-content: space-between; align-items: center; text-align: left;
  min-height: 47px; width: 100%; gap: 12px; padding: 11px 13px;
  border: 1px solid #383f48; border-radius: 3px; background: #0b1016;
  font-size: 16px; line-height: 1.4; font-weight: 500;
}
.key-page-link:not(:disabled):hover { border-color: #f22435; background: #30171e; }
.key-page-name { min-width: 0; }
.key-page-number { color: #ff5765; font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.key-page-link:disabled { opacity: 1; cursor: not-allowed; color: #848e9b; background: #10151b; border-color: #29313c; }
.key-page-link:disabled .key-page-number { color: #8a929e; font-size: 10px; font-weight: 400; }
.key-pages-liabilities { margin-top: 19px; border-top: 1px solid #363b46; padding-top: 16px; }
.key-pages-liabilities .key-page-link { min-height: 49px; }
.key-pages-status { font-size: 11px; color: #aab1bc; line-height: 1.5; margin: 14px 0 0; }
.key-pages-panel a:focus-visible, .key-pages-panel button:focus-visible { outline-offset: 1px; }
@media (min-width: 1440px) and (min-height: 800px) {
  :root { --catalogue-bar-height: 150px; }
  .catalogue-bar .page-jump { width: 550px; flex-basis: 550px; }
  .catalogue-bar .page-jump-label { font-size: 13px; margin-bottom: 10px; }
  .catalogue-bar .page-jump-hint { font-size: 13px; }
  .key-pages { flex-basis: 455px; }
  .key-pages-toggle { min-height: 86px; }
  .key-pages-toggle-copy strong { font-size: 24px; }
  .key-pages-toggle-copy > span { font-size: 14px; }
  .key-pages-panel { width: 800px; padding: 28px; }
  .key-pages-panel h2 { font-size: 42px; }
  .key-pages-group h3 { font-size: 12px; }
  .key-page-link { min-height: 55px; font-size: 18px; }
  .key-page-number { font-size: 14px; }
  .key-page-link:disabled .key-page-number { font-size: 12px; }
  .key-pages-status { font-size: 12px; }
}
@media (min-width: 601px) and (max-height: 800px) {
  :root { --catalogue-bar-height: 126px; }
  .welcome-footer.catalogue-bar { padding-block: 12px 16px; gap: 28px; }
  .welcome-bottom { bottom: calc(var(--catalogue-bar-height) + 20px); }
  .key-pages-toggle { min-height: 72px; padding: 14px 18px; gap: 12px; }
  .key-pages-toggle-copy strong { font-size: 19px; }
  .key-pages-panel { padding: 20px; }
  .key-pages-panel-heading { margin-bottom: 15px; }
  .key-page-link { min-height: 43px; padding: 9px 11px; font-size: 15px; }
}
@media (min-width: 601px) and (max-height: 620px) {
  :root { --catalogue-bar-height: 110px; }
  .welcome-footer.catalogue-bar { padding-block: 10px; }
  .welcome-bottom { bottom: calc(var(--catalogue-bar-height) + 14px); }
  .catalogue-bar .page-jump-label { font-size: 10px; margin-bottom: 6px; }
  .catalogue-bar .page-jump-hint { font-size: 10px; margin-top: 5px; }
  .key-pages-toggle { min-height: 66px; padding: 10px 15px; }
  .key-pages-toggle-copy > span { font-size: 11px; }
  .key-pages-toggle-copy strong { font-size: 18px; }
  .key-pages-panel { max-height: calc(100dvh - var(--toolbar) - var(--catalogue-bar-height) - 24px); }
}
@media (min-width: 601px) and (max-width: 950px) {
  .welcome-footer.catalogue-bar { gap: 22px; }
  .catalogue-bar .page-jump { flex-basis: 370px; }
  .key-pages-toggle { padding-inline: 12px; gap: 10px; }
  .key-pages-symbol { width: 34px; height: 34px; }
  .key-pages-toggle-copy > span { font-size: 11px; }
  .key-pages-chevron { width: 17px; }
  #pageNumber::placeholder { font-size: 15px; }
}
@media (max-width: 600px) {
  .welcome-footer.catalogue-bar { position: static; height: auto; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding-block: 20px 0; }
  .catalogue-bar .page-jump { width: 100%; flex: none; }
  .catalogue-bar .page-jump-label { font-size: 11px; }
  .catalogue-bar .page-jump-hint { font-size: 11px; }
  #pageNumber::placeholder { font-size: 15px; }
  .key-pages { flex: none; max-width: none; width: 100%; }
  .key-pages-toggle { min-height: 74px; padding: 15px; gap: 12px; }
  .key-pages-toggle-copy strong { font-size: 20px; }
  .key-pages-toggle-copy > span { font-size: 11px; }
  .key-pages-panel { position: fixed; inset: max(88px, env(safe-area-inset-top)) 12px 12px; width: auto; max-height: none; padding: 18px; z-index: 45; }
  .key-pages-panel-heading { position: sticky; top: -18px; z-index: 2; background: #10151b; padding-block: 16px; margin-top: -16px; }
  .key-pages-grid { grid-template-columns: 1fr; gap: 22px; }
  .key-pages-panel h2 { font-size: 32px; }
  .key-page-link { min-height: 46px; }
}
@media (max-width: 370px) {
  .key-pages-toggle { padding-inline: 10px; gap: 9px; }
  .key-pages-symbol { width: 33px; height: 33px; }
  .key-pages-toggle-copy > span { font-size: 10px; }
  .catalogue-bar .page-jump-submit { min-width: 58px; padding-inline: 8px; gap: 5px; }
  #pageNumber::placeholder { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .key-pages-toggle, .key-pages-chevron { transition: none; }
}


/* v1.8.0 - compact page entry and an icon-only Key pages trigger.
   The readable dropdown itself is deliberately not miniaturised. */
.welcome-footer.catalogue-bar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.catalogue-bar .page-jump {
  flex: 0 0 196px;
  width: 196px;
  max-width: calc(100% - 68px);
}
.catalogue-bar .page-jump-field {
  width: 100%;
  gap: 8px;
  padding: 4px;
}
.catalogue-bar .page-jump-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: 6px;
}
.catalogue-bar #pageNumber {
  flex: 1 1 auto;
  width: 3.4ch;
  min-width: 3.4ch;
  padding: 7px 2px;
  text-align: center;
  font-size: 22px;
}
.catalogue-bar #pageNumber::placeholder { font-size: 22px; }
.catalogue-bar .page-jump-submit {
  min-width: 68px;
  min-height: 44px;
  padding: 8px 10px;
  gap: 6px;
  font-size: 16px;
}
.catalogue-bar .page-jump-submit .icon { width: 18px; height: 18px; }
.catalogue-bar .page-jump-hint {
  font-size: 11px;
  line-height: 1.5;
}
.catalogue-bar .key-pages {
  flex: 0 0 48px;
  width: 48px;
  max-width: none;
  margin-left: auto;
}
.catalogue-bar .key-pages-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  gap: 0;
  border-radius: 6px;
  color: #ff5765;
}
.catalogue-bar .key-pages-toggle > .icon { width: 24px; height: 24px; }
@media (min-width: 1440px) and (min-height: 800px) {
  .catalogue-bar .page-jump-submit { min-height: 48px; font-size: 17px; }
  .catalogue-bar .page-jump-hint { font-size: 12px; }
}
@media (max-width: 600px) {
  .welcome-footer.catalogue-bar { gap: 16px; }
  .catalogue-bar .page-jump { max-width: calc(100% - 64px); }
}
@media (max-width: 370px) {
  .catalogue-bar .page-jump { flex-basis: 180px; width: 180px; }
  .catalogue-bar .page-jump-field { gap: 5px; }
  .catalogue-bar .page-jump-icon { margin-left: 3px; width: 18px; height: 18px; flex-basis: 18px; }
  .catalogue-bar .page-jump-submit { min-width: 62px; padding-inline: 8px; }
}
