/* Explore Warsaw landing page. Colours are variables: set data-theme="navy", "forest" or "sky" on <html> in index.html to change them. Fonts are hosted in assets/fonts (SIL Open Font License). */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/fraunces-latin-wght-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/fraunces-latin-ext-wght-italic.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Caveat";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/caveat-basic-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url(assets/fonts/dm-sans-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url(assets/fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root, [data-theme="gallery"] {
  --bg:#f7f6f3; --bg2:#edebe6; --card:#ffffff; --ink:#121212; --muted:#6c6a66; --line:rgba(18,18,18,.13);
  --accent:#121212; --on-accent:#f7f6f3; --hl:#121212;
  --arch1:#dcdbec; --arch2:#efe7dd; --arch3:#e2bfa8; --sun:rgba(255,255,255,.7);
  --c-book:#e9e6df; --c-phone:#e1e2ec; --c-both:#ece3d9;
  --note:#f17a7f; --map-bg:#ffffff; --map-river:#dcdbec; --map-grid:rgba(18,18,18,.06); --pin:#c4452d;
  color-scheme: light;
}
[data-theme="navy"] {
  --bg:#0b1626; --bg2:#101f35; --card:#12233b; --ink:#f3ecde; --muted:#9aa8ba; --line:rgba(243,236,222,.15);
  --accent:#d9b779; --on-accent:#0b1626; --hl:#d9b779;
  --arch1:#1d3558; --arch2:#344a72; --arch3:#8a7a62; --sun:rgba(217,183,121,.22);
  --c-book:#1b2f4d; --c-phone:#22385a; --c-both:#2a3e5e;
  --note:#f17a7f; --map-bg:#0f1f36; --map-river:#1f3a63; --map-grid:rgba(243,236,222,.05); --pin:#d9b779;
  color-scheme: dark;
}
[data-theme="forest"] {
  --bg:#eeeadd; --bg2:#e2dcc9; --card:#f8f5ec; --ink:#16261c; --muted:#5d695f; --line:rgba(22,38,28,.15);
  --accent:#1f4d3a; --on-accent:#f3efe3; --hl:#1f4d3a;
  --arch1:#cdd8c9; --arch2:#e6dcc0; --arch3:#c29a6a; --sun:rgba(255,250,235,.7);
  --c-book:#d7dcc6; --c-phone:#cdd6d0; --c-both:#ddd3b8;
  --note:#f17a7f; --map-bg:#f8f5ec; --map-river:#c3d2cc; --map-grid:rgba(22,38,28,.06); --pin:#1f4d3a;
  color-scheme: light;
}
[data-theme="sky"] {
  --bg:#e8e9f7; --bg2:#dcdef2; --card:#f6f7fd; --ink:#1b1f4b; --muted:#5b6094; --line:rgba(27,31,75,.15);
  --accent:#d1432b; --on-accent:#ffffff; --hl:#d1432b;
  --arch1:#b7bbea; --arch2:#e3d5ef; --arch3:#f0b49c; --sun:rgba(255,255,255,.6);
  --c-book:#d0d3ee; --c-phone:#c5c9ea; --c-both:#dcd4ee;
  --note:#f17a7f; --map-bg:#f6f7fd; --map-river:#c3c7ec; --map-grid:rgba(27,31,75,.06); --pin:#d1432b;
  color-scheme: light;
}
:root { --sec: 64px; --fb:"DM Sans", system-ui, sans-serif; --fd:"Fraunces", Georgia, serif; --dw:400; --dls:-.02em; --ds:1; --dit:italic; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 54px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--fb); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; border-radius: 4px; }
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { margin: 0 0 8px; font: 600 .68rem/1.4 var(--fb); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--fd); font-weight: var(--dw); letter-spacing: var(--dls); line-height: 1.06; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: calc(var(--ds) * clamp(2.2rem, 5.2vw, 3.8rem)); }
h2 { font-size: calc(var(--ds) * clamp(1.5rem, 3vw, 2.2rem)); }
h3 { font-size: calc(var(--ds) * 1.3rem); margin-bottom: .25em; }
h1 em, h2 em { font-style: var(--dit); color: var(--hl); }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: 99px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 .72rem/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, color .25s; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.sm { min-height: 40px; padding: 0 18px; }
.btn.block { width: 100%; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } .btn.ghost:hover { border-color: var(--ink); } }

/* top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; }
.mark { display: inline-flex; align-items: center; gap: 9px; font: 700 1rem/1 var(--fb); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; text-transform: lowercase; }
.logo { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.mark i { font-style: normal; color: var(--hl); }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.top nav .links a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--hl); }
.top nav .btn { margin-left: 8px; }
.top nav .links { display: flex; }
.soc { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: color .25s, background .25s; }
.ico svg { width: 20px; height: 20px; }
.handle { display: none; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-left: 10px; }
@media (min-width: 881px) { .handle { display: inline-flex; align-items: center; } }
@media (hover: hover) { .ico:hover { background: var(--bg2); } .handle:hover { color: var(--ink); } }
/* each network lights up in its own brand colours on hover or keyboard focus */
@media (hover: hover) {
  .ico[aria-label^="Facebook"]:hover { color: #1877f2; }
  .ico[aria-label^="Instagram"]:hover { color: #e1306c; }
  .ico[aria-label^="TikTok"]:hover svg { filter: drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55); }
}
.ico[aria-label^="Facebook"]:focus-visible { color: #1877f2; }
.ico[aria-label^="Instagram"]:focus-visible { color: #e1306c; }
.ico[aria-label^="TikTok"]:focus-visible svg { filter: drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55); }
@media (max-width: 520px) { .mark span { display: none; } }

/* hero */
.hero { padding: 74px 0 44px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.hero .lede { max-width: 29em; font-size: 1rem; color: color-mix(in srgb, var(--ink) 80%, transparent); margin-bottom: 1.3rem; }
.hero-cta { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-bottom: 1.3rem; }
.facts { display: flex; flex-wrap: nowrap; align-items: baseline; white-space: nowrap; gap: 6px clamp(10px, 2.2vw, 22px); list-style: none; margin: 0; padding: 0; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts b { font: var(--dw) calc(var(--ds) * 1.6rem)/1 var(--fd); letter-spacing: 0; color: var(--ink); margin-right: 6px; }
@media (max-width: 520px) { .facts { font-size: .66rem; letter-spacing: .06em; gap: 6px 9px; } .facts b { font-size: calc(var(--ds) * 1.2rem); margin-right: 3px; } }

.art { position: relative; width: min(100%, 400px); margin-inline: auto; aspect-ratio: 4 / 5; }
.arch { position: absolute; inset: 0; border-radius: 999px 999px 26px 26px; overflow: hidden; background: linear-gradient(180deg, var(--arch1) 0%, var(--arch2) 58%, var(--arch3) 100%); }
.arch::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; left: 13%; top: 17%; border-radius: 50%; background: radial-gradient(circle, var(--sun), transparent 68%); }
.arch img { position: absolute; left: 50%; bottom: 0; width: 90%; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 16px 22px rgba(20,12,30,.25)); animation: sway 9s ease-in-out infinite alternate; }
.hero .arch img { bottom: -7%; } /* the photo reaches below the arch, so the gentle movement never shows its cut edge */
.art::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 999px 999px 26px 26px; }
.art .phone { animation: bob 6s ease-in-out infinite alternate; position: absolute; z-index: 2; right: -16%; bottom: 27%; width: 29%; transform: rotate(7deg); filter: drop-shadow(0 18px 24px rgba(20,12,30,.3)); }
@keyframes sway { 0% { translate: 0 2px; rotate: -.5deg; scale: 1; } 50% { translate: 0 -5px; rotate: .3deg; scale: 1.02; } 100% { translate: 0 -1px; rotate: .7deg; scale: 1.04; } }
@keyframes bob { from { translate: 0 3px; rotate: -1.4deg; } to { translate: 0 -9px; rotate: 1.6deg; } }
@keyframes drift { from { scale: 1; } to { scale: 1.09; } }

/* photo strip: swipe, drag, arrows, slow drift (see app.js) */
.strip { padding-bottom: var(--sec); }
.strip-head { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; min-height: 44px; }
.strip-ctl { display: flex; gap: 8px; margin-left: auto; }
.ctl { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; transition: border-color .25s, transform .25s; }
.ctl svg { width: 18px; height: 18px; }
.ctl .ic-play, .ctl[aria-pressed="true"] .ic-pause { display: none; }
.ctl[aria-pressed="true"] .ic-play { display: block; }
@media (hover: hover) { .ctl:hover { border-color: var(--ink); transform: translateY(-1px); } }
.scroller { overflow-x: auto; overflow-y: hidden; padding: 26px max(20px, calc((100vw - 1080px) / 2 + 20px)) 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.scroller::-webkit-scrollbar { display: none; }
.scroller.dragging { cursor: grabbing; user-select: none; }
.scroller .track { display: flex; gap: 12px; width: max-content; }
.scroller figure { margin: 0; flex: none; height: 210px; border-radius: 14px; overflow: hidden; background: var(--bg2); position: relative; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s; }
.scroller img { height: 100%; width: auto; max-width: none; pointer-events: none; -webkit-user-drag: none; user-select: none; transition: scale .9s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .scroller figure:hover { transform: translateY(-6px) scale(1.05); box-shadow: 0 18px 36px rgba(20,12,30,.28); z-index: 2; } .scroller figure:hover img { scale: 1.08; } }

/* handwritten notes and arrows */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.note { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; color: var(--note); font: 600 1.6rem/1 "Caveat", cursive; white-space: nowrap; pointer-events: none; }
.note svg { width: 50px; height: 33px; }
.note.inline { position: static; }
.hero-cta { position: relative; }
.hero-cta { position: static; }
.hero-copy { position: relative; }
.n-giftcta { position: static; flex-basis: auto; flex-direction: column; margin: 0 0 0 2px; transform: rotate(-3deg); }
.n-giftcta svg { transform: scaleX(-1); margin: 1px 0 0 12px; }
@media (min-width: 1101px) {
  .n-giftcta { position: absolute; left: 490px; top: 40px; flex-basis: auto; flex-direction: column; margin: 0; transform: rotate(-4deg); }
  .n-giftcta svg { transform: none; margin: 2px 0 0 62px; }
}
.feat-wrap { position: relative; padding-top: 40px; }
.n-en { top: 0; right: 10px; align-items: flex-end; transform: rotate(3deg); }
.n-en svg { transform: scaleX(-1) rotate(8deg); margin: 2px 40px 0 0; }
.shop-head { position: relative; }
.n-deal { margin: 6px auto 0; align-items: center; transform: rotate(-2deg); }
.n-deal svg { transform: rotate(24deg); margin-top: 2px; }
@media (min-width: 881px) {
  .n-deal { position: absolute; left: calc(50% + 150px); top: 4px; margin: 0; align-items: flex-start; transform: rotate(3deg); }
  .n-deal svg { transform: scaleX(-1) rotate(10deg); margin: 4px 0 0 -6px; }
}
.proof-line { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 1.1rem; font-size: .84rem; line-height: 1.4; color: var(--muted); text-decoration: none; max-width: 30em; }
.proof-line .st { color: var(--hl); letter-spacing: .12em; font-size: .74rem; flex: none; }
.proof-line b { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .proof-line:hover span:last-child { color: var(--ink); } }

/* about the book */
.about { padding-block: 0 var(--sec); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about p { color: color-mix(in srgb, var(--ink) 80%, transparent); max-width: 36em; }
.about .closing { font: var(--dw) calc(var(--ds) * 1.2rem)/1.35 var(--fd); letter-spacing: var(--dls); color: var(--ink); margin-top: 1.2em; }
.feat { list-style: none; margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); display: grid; gap: 11px; }
.feat li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.4; }
.feat svg { width: 18px; height: 18px; flex: none; color: var(--hl); margin-top: 1px; }

/* products */
.shop { padding-block: var(--sec); background: var(--bg2); }
.shop-head { text-align: center; margin: 0 auto 26px; display: flex; flex-direction: column; align-items: center; }
.shop-head h2 { margin-bottom: .1em; }
.cards { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 14px; align-items: stretch; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.pcard.best { border: 2px solid var(--hl); }
.pimg { position: relative; height: 230px; overflow: hidden; }
.best .pimg { height: 260px; }
.pimg.b { background: var(--c-book); } .pimg.p { background: var(--c-phone); } .pimg.d { background: var(--c-both); }
.pimg img { position: absolute; max-width: none; width: auto; filter: drop-shadow(0 12px 16px rgba(20,12,30,.22)); }
.pimg img { transition: scale .8s cubic-bezier(.2,.7,.2,1); transform-origin: 50% 100%; }
@media (hover: hover) { .pcard:hover .pimg img { scale: 1.06; } }
.pimg.b img { height: 86%; left: 50%; bottom: 0; transform: translateX(-50%); }
.pimg.p img { height: 80%; left: 50%; top: 10%; transform: translateX(-50%); transform-origin: 50% 50%; }
.pimg.d .h { height: 78%; left: 12%; bottom: 0; }
.pimg.d .f { height: 64%; right: 12%; bottom: 12%; transform: rotate(6deg); }
.ribbon { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 12px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 700 .66rem/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; }
.pbody { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pbody p { color: var(--muted); font-size: .86rem; margin-bottom: 12px; flex: 1; }
.pprice { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pprice b { font: var(--dw) calc(var(--ds) * 1.8rem)/1 var(--fd); letter-spacing: var(--dls); }
.pprice s { color: var(--muted); font-size: .82rem; }
.pprice { flex-wrap: wrap; }
.pprice small { font: 600 .66rem/1 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pprice small.free { color: var(--hl); }
.pbody p strong { color: var(--ink); font-weight: 600; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 22px; font-size: .82rem; color: var(--muted); }
.assure span { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 18px; height: 18px; flex: none; color: var(--hl); }

/* reviews */
.proof { padding-block: var(--sec); }
.proof-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quote { margin: 0; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.quote .st { color: var(--hl); letter-spacing: .2em; font-size: .74rem; }
.quote blockquote { margin: 0; font-size: .88rem; line-height: 1.5; flex: 1; }
.quote figcaption { font: 600 .66rem/1 var(--fb); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .78rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot nav a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; }

.sticky { display: none; }

@media (max-width: 880px) {
  .top nav .links a { display: none; }
  .hero { padding: 62px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .art { order: -1; width: min(60%, 250px); margin-bottom: 14px; }
  .art .phone { right: -20%; bottom: 24%; width: 33%; }
  :root { --sec: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .scroller { padding-inline: 20px; }
  .scroller figure { height: 150px; border-radius: 12px; }
  .note { font-size: 1.35rem; }
  .note svg { width: 40px; height: 27px; }
  .btn:not(.sm) { min-height: 48px; }
  .quotes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px)); margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; }
  .cards { grid-template-columns: 1fr; gap: 12px; max-width: 460px; margin-inline: auto; }
  .pcard { display: grid; grid-template-columns: 38% 1fr; }
  .pcard.best { order: -1; grid-template-columns: 1fr; }
  .best .pimg { min-height: 230px; }
  .best .ribbon { width: auto; white-space: nowrap; font-size: .66rem; padding: 6px 12px; text-align: left; border-radius: 99px; }
  .pimg, .best .pimg { height: auto; min-height: 200px; }
  .pbody { padding: 14px 16px 16px; }
  .pbody h3 { font-size: calc(var(--ds) * 1.15rem); }
  .pbody p { font-size: .8rem; margin-bottom: 8px; }
  .pprice b { font-size: calc(var(--ds) * 1.5rem); }
  .btn.block { min-height: 42px; padding: 0 12px; }
  .ribbon { top: 8px; left: 8px; width: calc(38% - 16px); text-align: center; white-space: normal; line-height: 1.3; font-size: .66rem; padding: 5px 6px; border-radius: 10px; }
  .sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); line-height: 1.2; font-size: .85rem; }
  .sticky[hidden] { display: none; }
  .foot { padding-bottom: 78px; }
}
@media (max-width: 560px) { .from { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .arch img, .art .phone { animation: none; } .scroller figure, .scroller img, .pimg img { transition: none; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.foot .link-btn { min-height: 32px; display: inline-flex; align-items: center; }
.foot a:hover, .foot .link-btn:hover { color: var(--ink); }
.foot .social { display: flex; align-items: center; }
.foot .social .soc { margin-left: -10px; }
.foot .social .handle { display: inline-flex; margin-left: 6px; }
.foot .copy { flex-basis: 100%; }
.foot .legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.foot .small { flex-basis: 100%; margin: 0; font-size: .72rem; opacity: .8; }

/* legal and thank-you pages */
.doc { max-width: 46rem; padding-block: 84px 80px; }
.doc.center { text-align: center; }
.doc h1 { font-size: calc(var(--ds) * clamp(2rem, 5vw, 3rem)); }
.doc h2 { font-size: calc(var(--ds) * 1.35rem); margin-top: 1.8em; }
.doc .draft { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: .9rem; }
.doc > p > a:not(.btn) { display: inline-block; padding: 12px 6px; }

/* cookie banner */
.consent { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 520px; margin-left: auto; padding: 16px 18px; border-radius: 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.18); font-size: .875rem; line-height: 1.5; }
.consent[hidden] { display: none !important; }
.consent p { margin: 0 0 12px; }
.consent .row { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { min-height: 44px; padding: 0 22px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent-open .sticky { display: none; }
@media (max-width: 560px) { .consent { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); padding: 14px; } .consent:not(.two) { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; } .consent:not(.two) p { margin: 0; } }

@media (min-width: 881px) and (max-width: 1100px) { .hero-grid .art { width: min(72%, 340px); } }

/* comfortable tap targets on touch screens */
.mark { position: relative; }
.mark::after, .proof-line::after { content: ""; position: absolute; inset: -7px -6px; }
.proof-line { position: relative; padding-block: 3px; }
@media (max-width: 880px) {
  .foot nav a, .foot .link-btn { min-height: 44px; padding-inline: 2px; }
  .foot .legal { gap: 0 12px; }
  .foot .copy a { display: inline-block; padding-block: 12px; }
  .foot .social .handle { min-height: 44px; }
}
@media (max-width: 880px) { .pcard:not(.best) .pimg img { max-width: 94%; object-fit: contain; } }
.foot .social .handle { align-items: center; }
@media (max-width: 880px) {
  .top nav > .btn { display: none; }
  .top nav .soc { margin-left: 0; }
  .assure { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; gap: 10px; }
}
@media (max-width: 374px) {
  .btn { padding-inline: 18px; letter-spacing: .1em; }
  .hero-cta { gap: 8px; }
  .btn.block { padding-inline: 8px; letter-spacing: .06em; }
}

/* thank-you page: an unmistakable "it worked" sign */
:root { --ok: #1e9e57; }
.tick { width: 76px; height: 76px; margin: 0 auto 20px; }
.tick svg { width: 100%; height: 100%; overflow: visible; }
.tick circle { fill: var(--ok); transform-origin: center; animation: tick-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.tick path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: tick-draw .45s .3s ease-out forwards; }
.eyebrow.ok { color: var(--ok); }
@keyframes tick-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tick circle, .tick path { animation: none; } .tick path { stroke-dashoffset: 0; } }

/* thank-you page: order summary with the product picture */
.thanks .lead { font-size: 1.05rem; margin-bottom: 28px; }
.order { display: grid; grid-template-columns: 250px 1fr; gap: clamp(22px, 5vw, 44px); align-items: center; max-width: 700px; margin: 0 auto; padding: 28px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 14px 40px rgba(20,12,30,.06); animation: order-in .6s .15s ease-out both; }
.order[hidden] { display: none; }
.order-art .art { width: 100%; }
.order .art .arch img { animation: none; }
.order .arch .o-solo { width: 54%; bottom: 7%; }
.order[data-kind="ebook"] .o-book, .order[data-kind="ebook"] .o-phone, .order[data-kind="book"] .o-solo, .order[data-kind="book"] .o-phone, .order[data-kind="bundle"] .o-solo { display: none; }
.order .art .phone { left: auto; right: -12%; bottom: 8%; width: 30%; transform: rotate(7deg); }
.order .art::before { display: none; }
.order-body h2 { font-size: calc(var(--ds) * 1.5rem); margin-bottom: .7em; }
.next { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.next li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.next .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; border: 1.5px solid var(--line); background: var(--bg); }
.next .done .dot { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; border-color: var(--ok); }
.order-body .btn { min-height: 50px; }
.order-body .small { margin: 10px 0 0; }
.thanks .back { margin-top: 26px; }
@keyframes order-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .order { grid-template-columns: 1fr; padding: 22px 20px; text-align: left; }
  .order-art .art { width: min(60%, 220px); margin: 0 auto 10px; }
  .order-body .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .order { animation: none; } }
.order-body .eyebrow { margin-bottom: 4px; }
.order-body h2.o-title { margin: 0 0 .7em; line-height: 1.1; }
.o-title::before { content: "Warsaw Viewpoints"; display: block; font: 600 .68rem/1.4 var(--fb); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.doc .sub { margin: -.2em 0 1.4em; color: var(--muted); }
.doc.legal-text p { max-width: 42em; }
.doc.legal-text h2 { font-size: calc(var(--ds) * 1.15rem); margin-top: 1.6em; }
.doc.legal-text p a { display: inline; padding: 0; }
.doc .upd { margin: -.6em 0 1.6em; color: var(--muted); font-size: .85rem; }
.doc.legal-text ul { max-width: 42em; padding-left: 1.2em; margin: 0 0 1em; }
.doc.legal-text li { margin: 0 0 .45em; }
.doc.legal-text li em { color: var(--muted); font-style: normal; }
.doc.legal-text blockquote { margin: 0 0 1em; padding: 16px 18px; max-width: 42em; background: var(--card); border: 1px solid var(--line); border-radius: 14px; line-height: 1.9; }
.doc.legal-text li a, .doc.legal-text blockquote a { display: inline; padding: 0; }

/* conversion additions: best-for lines, author card, faq */
.pbody p.for { flex: none; margin-bottom: 4px; font: 600 .66rem/1.3 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--hl); }
.author { padding-block: 0 clamp(30px, 4.5vw, 48px); }
.author-row { display: flex; align-items: center; gap: 16px; max-width: 700px; margin: 0 auto; padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--line); }
.author .av { width: 58px; height: 58px; flex: none; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.author p strong { color: var(--ink); font-weight: 600; }
.author p em { font-family: var(--fd); font-weight: 400; }
.author .sign { display: inline-block; margin-left: 4px; font: 600 1.25rem/1 "Caveat", cursive; color: var(--note); text-decoration: none; }
.faq { padding-block: clamp(36px, 5vw, 60px); background: var(--bg2); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px clamp(24px, 6vw, 80px); align-items: start; }
.faq h2 { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 34px 15px 0; font-weight: 500; font-size: .95rem; position: relative; min-height: 48px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); translate: 0 -70%; rotate: 45deg; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 -30%; }
.faq details p { padding: 0 34px 16px 0; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 38em; }
.faq details p a { color: var(--ink); }
.proof { padding-bottom: clamp(26px, 4vw, 40px); }
@media (max-width: 720px) {
  .author-row { gap: 12px; align-items: flex-start; }
  .author .av { width: 52px; height: 52px; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
}

.facts li.ic { display: inline-flex; align-items: baseline; }
.facts li.ic svg { width: calc(var(--ds) * 1.6rem); height: calc(var(--ds) * 1.6rem); margin-right: 8px; color: var(--ink); flex: none; align-self: auto; stroke-width: 1.5; }
@media (max-width: 520px) { .facts li.ic svg { width: calc(var(--ds) * 1.2rem); height: calc(var(--ds) * 1.2rem); margin-right: 4px; } }
.facts li.ic svg { transform: translateY(16%); }
@media (max-width: 520px) { .facts { flex-wrap: wrap; white-space: normal; row-gap: 10px; } .facts li { white-space: nowrap; } }
@media (max-width: 400px) { .facts { column-gap: 7px; font-size: .6rem; letter-spacing: .03em; } .facts b { font-size: 1.05rem; margin-right: 2px; } .facts li.ic svg { width: 1.05rem; height: 1.05rem; margin-right: 3px; } }

/* photo viewer */
.scroller figure[data-full] { cursor: zoom-in; }
.scroller figure:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lb { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14,12,12,.92); color: #fff; overflow: hidden; }
.lb::backdrop { background: transparent; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 16px 52px; }
.lb-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lb-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .lb-btn:hover { background: rgba(255,255,255,.2); } }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font: 600 .7rem/1 var(--fb); letter-spacing: .16em; color: rgba(255,255,255,.7); }
@media (min-width: 900px) { .lb-img { max-width: calc(100vw - 192px); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); } .lb-stage { padding: 40px 96px; } .lb-prev { left: 28px; } .lb-next { right: 28px; } .lb-close { top: 22px; right: 28px; } }
@media (max-width: 899px) { .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; } .lb-prev { left: calc(50% - 92px); } .lb-next { right: calc(50% - 92px); } .lb-count { bottom: 22px; } }
.order .art .phone { animation: none; }

/* cookie banner: two layers */
.consent.two { max-width: 560px; }
.consent.two .row { align-items: center; }
.consent.two .row .btn { flex: 1 1 auto; justify-content: center; }
.consent .btn.ghost { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.consent .cc-more { background: none; border: 0; padding: 8px 4px; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.consent .cc-details { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.consent .cc-details[hidden] { display: none; }
.consent .cc-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.consent .cc-item b { display: block; font-weight: 600; margin-bottom: 2px; }
.consent .cc-item span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.consent .cc-item span a { color: var(--ink); }
.consent .cc-fixed { flex: none; white-space: nowrap; font-weight: 600; font-size: .78rem; color: var(--muted); }
.consent .cc-details .row { margin-top: 12px; }
.consent .cc-switch { position: relative; flex: none; width: 46px; height: 28px; margin-top: 2px; cursor: pointer; }
.consent .cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.consent .cc-switch i { position: absolute; inset: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background .2s; }
.consent .cc-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.consent .cc-switch input:checked + i { background: var(--ink); }
.consent .cc-switch input:checked + i::after { transform: translateX(18px); }
.consent .cc-switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) { .consent.two { max-height: calc(100vh - 24px); overflow-y: auto; } .consent.two .row .btn { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .consent .cc-switch i, .consent .cc-switch i::after { transition: none; } }

/* Black Friday 2026 e-book sale (switched on by sale.js, which adds html.sale; falls back to the normal page by itself) */
:root { --bf-night: #090a16; --bf-cy: #22e6ff; --bf-mg: #ff2bd6; --bf-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sale-only { display: none; }
html.sale .sale-only { display: block; }
html.sale .reg-only { display: none; }
html.sale { scroll-padding-top: 92px; }
html.sale .hero { padding-top: 112px; }
html.sale .sale-inline { display: inline; }

/* signal bar, part of the fixed header */
.sale-bar { position: relative; display: none; align-items: center; justify-content: center; gap: 8px 18px; min-height: 36px; padding: 6px 16px; background: linear-gradient(90deg, #090a16, #17123a 50%, #090a16); color: #fff; font: 600 .72rem/1.2 var(--bf-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--bf-cy), var(--bf-mg)) 1; }
html.sale .sale-bar { display: flex; }
.sale-bar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); pointer-events: none; }
.sale-bar b { color: var(--bf-cy); text-shadow: 0 0 10px var(--bf-cy); font-weight: 700; }
.sale-bar s { opacity: .55; }
.sale-bar i { font-style: normal; opacity: .8; }
.sale-bar strong { color: #fff; font-weight: 700; }
.sale-bar .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-mg); box-shadow: 0 0 12px var(--bf-mg); flex: none; }
.sale-bar .sb-code { color: var(--bf-cy); text-shadow: 0 0 8px rgba(34,230,255,.7); }
.sale-bar .sb-go { color: #090a16; background: linear-gradient(90deg, var(--bf-cy), var(--bf-mg)); padding: 4px 12px; border-radius: 99px; text-decoration: none; font-weight: 800; letter-spacing: .12em; }

/* hero tag: a cyberpunk HUD plate in the corner of the stage (cut corners, neon edge, scanlines, split-colour numbers) */
.sale-sticker { --cut: 14px; position: absolute; top: 24px; right: 28px; z-index: 5; text-decoration: none; filter: drop-shadow(0 0 8px rgba(34,230,255,.55)) drop-shadow(0 0 20px rgba(255,43,214,.4)); }
html.sale .sale-sticker { display: block; }
.sale-sticker .st-edge { display: block; padding: 2px; background: linear-gradient(135deg, var(--bf-cy), var(--bf-mg)); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); animation: st-glitch .7s ease-out 1 both; }
.sale-sticker .st-in { position: relative; display: grid; justify-items: start; gap: 5px; padding: 13px 24px 13px 20px; overflow: hidden; color: #fff; background: linear-gradient(160deg, #12134a, #07081a); clip-path: polygon(calc(var(--cut) - 1.5px) 0, 100% 0, 100% calc(100% - var(--cut) + 1.5px), calc(100% - var(--cut) + 1.5px) 100%, 0 100%, 0 calc(var(--cut) - 1.5px)); }
.sale-sticker .st-in::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px); pointer-events: none; }
.sale-sticker .st-k { display: flex; align-items: center; gap: 8px; font: 700 .66rem/1 var(--bf-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--bf-cy); text-shadow: 0 0 8px rgba(34,230,255,.8); }
.sale-sticker .st-k::before { content: ""; width: 7px; height: 7px; background: var(--bf-mg); box-shadow: 0 0 8px var(--bf-mg); }
.sale-sticker .st-b { font: 800 3rem/.95 var(--fb); letter-spacing: -.03em; color: #fff; text-shadow: -2px 0 rgba(255,43,214,.95), 2px 0 rgba(34,230,255,.95), 0 0 18px rgba(255,255,255,.35); }
.sale-sticker .st-e { font: 600 .66rem/1 var(--bf-mono); letter-spacing: .28em; text-transform: uppercase; color: #c5c6e6; }
@keyframes st-glitch { 0% { opacity: 0; transform: translateX(-8px); } 18% { opacity: 1; transform: translateX(6px); } 34% { opacity: .35; transform: translateX(-4px); } 52% { opacity: 1; transform: translateX(3px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sale-sticker .st-edge { animation: none; } }

/* the e-book card lights up; the other cards stay as they are */
html.sale #ebook { background: var(--bf-night); color: #fff; border-color: rgba(34,230,255,.55); box-shadow: 0 0 0 1px rgba(34,230,255,.45), 0 0 34px rgba(255,43,214,.28); }
html.sale #ebook .pimg.p { background: radial-gradient(ellipse at 50% 120%, #3a1d7a, #12123a 60%, var(--bf-night)); }
html.sale #ebook .pimg.p::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(34,230,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(34,230,255,.12) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(0deg, #000, transparent 85%); mask-image: linear-gradient(0deg, #000, transparent 85%); }
html.sale #ebook .ribbon { display: block; background: linear-gradient(90deg, var(--bf-cy), var(--bf-mg)); color: #0a0a14; font-weight: 800; }
html.sale #ebook h3 { color: #fff; }
html.sale #ebook .pbody p { color: #c5c6e6; }
html.sale #ebook .pbody p.for { color: var(--bf-cy); }
html.sale #ebook .sale-code { display: inline-flex; align-self: flex-start; flex: none; margin: 0 0 10px; padding: 5px 10px; border: 1px dashed rgba(34,230,255,.7); border-radius: 8px; font: 600 .72rem/1.3 var(--bf-mono); letter-spacing: .04em; color: var(--bf-cy); }
html.sale #ebook .sale-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
html.sale #ebook .sale-price b { font: var(--dw) calc(var(--ds) * 2.1rem)/1 var(--fd); letter-spacing: var(--dls); color: #fff; }
html.sale #ebook .sale-price s { color: #8f90ad; font-size: .9rem; }
html.sale #ebook .sale-price small { font: 700 .68rem/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--bf-mg); }
html.sale #ebook .btn { background: #fff; color: #0a0a14; }
html.sale #ebook .sale-fine { margin: 10px 0 0; flex: none; font-size: .72rem; line-height: 1.4; color: #8f90ad; }
html.sale .sticky .sale-inline { color: inherit; }

@media (max-width: 880px) {
  html.sale { scroll-padding-top: 86px; }
  html.sale .hero { padding-top: 96px; }
  .sale-bar { min-height: 32px; padding: 5px 12px; gap: 6px 10px; font-size: .62rem; letter-spacing: .05em; }
  .sale-bar .sb-code, .sale-bar .sb-t, .sale-bar s, .sale-bar i { display: none; }
  html.sale .sale-sticker { position: static; order: -2; justify-self: center; --cut: 10px; }
  .sale-sticker .st-in { grid-auto-flow: column; align-items: center; justify-items: center; gap: 14px; padding: 9px 18px; }
  .sale-sticker .st-b { font-size: 1.7rem; }
  .sale-sticker .st-k, .sale-sticker .st-e { font-size: .6rem; letter-spacing: .2em; }
  /* the note sits above the button, with its arrow pointing down at it */
  html.sale .hero-cta { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  html.sale .n-giftcta { flex-direction: column; align-items: flex-start; margin: 0 0 0 26px; transform: rotate(-2deg); }
  html.sale .n-giftcta svg { transform: none; margin: 2px 0 0 54px; width: 40px; height: 27px; }
  .hero .btn { white-space: nowrap; }
  .rb-l { display: none; }
  html.sale #ebook .ribbon { left: auto; right: 10px; top: 10px; width: auto; white-space: nowrap; text-align: left; border-radius: 99px; padding: 5px 10px; }
}
@media (max-width: 400px) { .sale-bar .sb-end { display: none; } }
html.sale #ebook .pimg.p img { top: 18%; height: 74%; }

/* Black Friday hero: the whole hero becomes one soft indigo-violet-magenta stage; no arch and no outline frame */
html.sale .hero { padding-inline: 12px; }
html.sale .hero-grid { position: relative; padding: 48px clamp(40px, 7vw, 84px) 0 clamp(24px, 5vw, 56px); border-radius: 30px; overflow: hidden; background: radial-gradient(ellipse at 80% 12%, rgba(34,230,255,.22), transparent 52%), radial-gradient(ellipse at 50% 112%, rgba(255,43,214,.38), transparent 58%), linear-gradient(160deg, #090a16 0%, #141538 48%, #2a1250 100%); }
/* faint perspective grid along the bottom edge, like the horizon of the card */
html.sale .hero-grid::before { content: ""; position: absolute; left: -25%; right: -25%; bottom: -30%; height: 54%; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(255,43,214,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,43,214,.3) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 0; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
html.sale .hero-copy, html.sale .hero .art { z-index: 1; }
html.sale .hero .art { align-self: end; }
html.sale .art::before { display: none; }
html.sale .arch { border-radius: 0; overflow: visible; background: none; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
html.sale .arch::before { background: radial-gradient(circle, rgba(140,210,255,.22), transparent 66%); }
html.sale .hero-copy .eyebrow { color: #9fe9ff; }
html.sale .hero h1 { color: #fff; }
html.sale .hero .lede { color: #d3d4ee; }
html.sale .hero .btn { background: #fff; color: #0a0a14; border-color: #fff; }
html.sale .facts { color: #c5c6e6; }
html.sale .facts b, html.sale .facts li.ic svg { color: #fff; }
html.sale .n-giftcta .sale-note { display: inline-block; padding: .1em .3em .25em .15em; margin: -.1em -.3em -.25em -.15em; background: linear-gradient(90deg, #4fe3ff, #ff6be6); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.sale .n-giftcta svg { color: #ff6be6; }
@media (max-width: 880px) {
  html.sale .hero-grid { padding: 24px 20px 30px; border-radius: 24px; }
}
html.sale .hero h1 em { color: #e8d9ff; }

/* phones: the book, hands and phone read as one group, so centre that group; and the e-book card comes first in "Choose your copy" */
@media (max-width: 880px) {
  .hero .art { translate: -13% 0; }
  .cards #ebook { order: -2; }
}

/* on phones the e-book card is first, so during the sale the note above the cards talks about the e-book */
.n-deal .nd-sale { display: none; }
@media (max-width: 880px) {
  html.sale .n-deal .nd-reg { display: none; }
  html.sale .n-deal .nd-sale { display: inline-block; padding: .1em .3em .25em .15em; margin: -.1em -.3em -.25em -.15em; background: linear-gradient(90deg, #5b3df0, #e61fc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
  html.sale .n-deal svg { color: #c21fd0; }
}
@media (max-width: 880px) {
  html:not(.sale) .n-deal { display: none; } /* the e-book card is first on phones, so an arrow about the bundle would point at the wrong card (the bundle price card says "free shipping" itself) */
}

/* Black Friday hero, tighter: smaller gaps between the elements, on phones and on desktop */
html.sale .hero { padding-bottom: 28px; }
html.sale .hero-grid { padding-top: 34px; }
html.sale .hero .lede { margin-bottom: 1.1rem; }
html.sale .hero-cta { margin-bottom: 1rem; }
html.sale .hero h1 { margin-bottom: .45em; }
@media (max-width: 880px) {
  html.sale .hero { padding-top: 88px; padding-bottom: 18px; }
  html.sale .hero-grid { padding: 14px 20px 22px; gap: 4px; }
  html.sale .sale-sticker { --cut: 9px; }
  .sale-sticker .st-in { padding: 6px 16px; gap: 12px; }
  .sale-sticker .st-b { font-size: 1.45rem; }
  .sale-sticker .st-k, .sale-sticker .st-e { font-size: .56rem; }
  html.sale .hero .art { margin-bottom: 0; width: min(56%, 235px); }
  html.sale .arch { -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
  html.sale .hero .eyebrow { margin-bottom: 6px; }
  html.sale .hero h1 { margin-bottom: .35em; }
  html.sale .hero .lede { margin-bottom: .9rem; font-size: .95rem; line-height: 1.5; }
  html.sale .hero-cta { margin-bottom: .8rem; gap: 0; }
  html.sale .n-giftcta { margin-left: 20px; }
  html.sale .n-giftcta svg { margin-top: 0; width: 34px; height: 23px; }
}
@media (max-width: 880px) {
  html.sale .hero .art { aspect-ratio: 1 / 1.04; }
}

/* desktop: the plate is wide and flat, like on phones */
@media (min-width: 881px) {
  .sale-sticker .st-in { grid-auto-flow: column; align-items: center; justify-items: center; gap: 18px; padding: 10px 24px; }
  .sale-sticker .st-b { font-size: 2.1rem; }
  .sale-sticker .st-k, .sale-sticker .st-e { font-size: .62rem; letter-spacing: .22em; }
  .sale-sticker { top: 22px; right: 26px; }
}

/* desktop: the three cards line up (same picture height, same border width, buttons on one line) */
@media (min-width: 881px) {
  .pcard.best { border: 1px solid var(--hl); box-shadow: 0 0 0 1px var(--hl); }
  .pimg, .best .pimg { height: 250px; }
  html.sale #ebook .sale-fine { order: 1; margin: 2px 0 12px; }
  html.sale #ebook .btn { order: 2; }
}


/* Cyber Week (Mon 23 to Sun 29 Nov 2026): sale.js adds html.cw. Black Friday is html.bf. Shared dark e-book card, bar and hero are the html.sale rules above. */
.bf-only, .cw-only { display: none; }
html.bf .bf-only, html.cw .cw-only { display: inline; }
html.cw .no-cw { display: none; }
html.cw .sale-sticker.cw-only { display: block; }
html.cw .sale-bar > .cw-only, html.bf .sale-bar > .bf-only { display: contents; }
html.cw .pprice.cw-only { display: flex; }
html.cw .ribbon.cw-only { display: block; }
html.cw p.sale-fine2.cw-only { display: block; }
html.cw .sale-note, html.cw .sale-code, html.cw .sale-fine { display: block; }
html.cw .sale-sticker.bf-only, html.bf .sale-sticker.cw-only { display: none; }
html.cw .sale-price > .cw-only { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
html.bf .sale-price > .bf-only { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
html.cw .sale-price .cw-only b { font: var(--dw) calc(var(--ds) * 2.1rem)/1 var(--fd); letter-spacing: var(--dls); color: #fff; }
html.cw .sale-price .cw-only small { font: 700 .68rem/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--bf-mg); }
html.cw .ribbon .cw-only, html.bf .ribbon .bf-only { display: inline; }
html.sale .n-deal .nd-sale > span { display: none; }
html.bf .n-deal .nd-sale > .bf-only, html.cw .n-deal .nd-sale > .cw-only { display: inline; }

html.cw #bundle { background: var(--bf-night); color: #fff; border: 1px solid rgba(34,230,255,.55); box-shadow: 0 0 0 1px rgba(34,230,255,.45), 0 0 34px rgba(255,43,214,.28); }
html.cw #bundle .pimg.d { background: radial-gradient(ellipse at 50% 120%, #3a1d7a, #12123a 60%, var(--bf-night)); }
html.cw #bundle .ribbon { background: linear-gradient(90deg, var(--bf-cy), var(--bf-mg)); color: #0a0a14; font-weight: 800; }
html.cw #bundle h3 { color: #fff; }
html.cw #bundle .pbody p { color: #c5c6e6; }
html.cw #bundle .pbody p.for { color: var(--bf-cy); }
html.cw #bundle .pbody p strong { color: #fff; }
html.cw #bundle .pprice b { color: #fff; }
html.cw #bundle .pprice s { color: #8f90ad; }
html.cw #bundle .pprice small { color: var(--bf-mg); }
html.cw #bundle .btn { background: #fff; color: #0a0a14; border-color: #fff; }
html.cw #bundle .sale-fine2 { margin: 10px 0 0; flex: none; font-size: .72rem; line-height: 1.4; color: #8f90ad; }
html.cw #bundle .pimg.d img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); }
@media (min-width: 881px) { html.cw #bundle .sale-fine2 { order: 1; margin: 2px 0 12px; } html.cw #bundle .btn { order: 2; } }
@media (max-width: 880px) { .rb-p { display: none; } }
@media (max-width: 880px) {
  html.cw #ebook .pbody { padding-top: 50px; } /* from midnight the longer ribbon sits above the title, never on it (360 px phones); tonight stays as it is */
  html.cw #ebook .ribbon { top: 12px; }
}

/* Cyber Monday (Mon 30 Nov to Thu 3 Dec 2026): sale.js adds html.cm (together with html.cw). The cw markup stays; these pairs swap its texts. */
.t-cm { display: none; }
html.cm .t-cw { display: none; }
html.cm .t-cm { display: inline; }
.ico[aria-label^="Facebook"] svg { width: 23px; height: 23px; }
