/* =========================================================
   emotionalcomingout.com — Beyond the Looking Glass
   One font (Instrument Sans). The head is the only colour — and it stays clean:
   the ten sections are listed beside it, nothing sits on the picture.
   ========================================================= */

:root {
  --bg: #FAFAFA;
  --text: #1F1F1F;
  --muted: #6B7280;
  --btn: #111111;
  --btn-text: #FFFFFF;
  --line: #E5E7EB;
  --panel-bg: #FFFFFF;

  /* accents taken from the head (used sparingly) */
  --accent: #B8521C;        /* orange from the flowers (a touch darker for AA contrast on white) */
  --accent-red: #B4302A;    /* red from the blossoms */
  --accent-green: #2E4A34;  /* dark green from the leaves */

  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;   /* the BUY cards and the list of sections, as in the author's pictures */
  --gold: #B8892E;                                                            /* author signature */
  --script: 'Allura', 'Snell Roundhand', 'Brush Script MT', cursive;        /* only the author's signature */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 760ms;                                  /* opening: the panel and the head move together */
  --dur-out: 560ms;                              /* closing is a little quicker — it should never keep you waiting */
  --ease-slide: cubic-bezier(.32, .72, 0, 1);    /* answers the click at once, then a long soft landing */
  --ease-out-slide: cubic-bezier(.4, 0, .2, 1);  /* closing: lets go gently, settles softly */

  --panel-w: 40vw;
  --panel-min: 420px;
  --head-w: min(36vw, 46vh, 560px);
  --col-w: clamp(200px, 23vw, 340px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3vh, 34px) 24px 14px;
  gap: clamp(8px, 1.6vh, 18px);
  /* always on its own layer, also at rest: nothing is created or thrown away
     when the movement starts or ends (that hand-over is what stutters in Safari) */
  transform: translate3d(0, 0, 0);
  transition: transform var(--dur-out) var(--ease-out-slide);
  will-change: transform;
  backface-visibility: hidden;
}
.hero.is-shifted { transition: transform var(--dur) var(--ease-slide); }

.hero-title { text-align: center; max-width: 720px; }
.hero-title h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(20px, 2.3vw, 32px);
  letter-spacing: -.005em;
  line-height: 1.25;
}
.hero-title .byline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
}

/* ---------- Stage: sections 01–05 | clean head | sections 06–10 ---------- */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: var(--col-w) var(--head-w) var(--col-w);
  align-items: center;
  column-gap: clamp(24px, 3vw, 56px);
}

.head-wrap {
  position: relative;
  width: var(--head-w);
  aspect-ratio: 807 / 1061;
  z-index: 1;
}
.head {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* the lists beside the head (desktop): number, then the name of the section */
.label-col {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 26px);
  width: max-content;
  max-width: 100%;
}
.label-col--left { justify-self: end; }
.label-col--right { justify-self: start; }
.hs-label {
  display: flex;
  align-items: baseline;
  gap: 1.1em;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);          /* the light, widely spaced serif of the author's picture */
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: clamp(13px, 1.08vw, 16px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  transition: color 160ms var(--ease);
}
.hs-label .n { flex: 0 0 auto; min-width: 1.7em; color: var(--muted); font-weight: 400; letter-spacing: .08em; }
.hs-label .sub {
  display: block;
  text-transform: none;
  letter-spacing: .01em;
  font-size: .86em;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.hs-label:hover, .hs-label.is-active { color: var(--accent); }

/* legend (mobile only) */
.legend { display: none; }

/* ---------- Buy ---------- */
/* the two BUY buttons: the size of a normal button, the colours of the
   picture in the brief — orange and navy, flowers at the edges, a gold frame */
.buy { text-align: center; width: 100%; max-width: 760px; }
.buy-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.buy-btn {
  display: block;
  padding: clamp(12px, 1.8vh, 20px) 22px;
  border-radius: 10px;
  color: #F4E9DA;
  font-family: var(--serif);
  text-decoration: none;
  background-repeat: no-repeat;
  box-shadow: 0 4px 14px rgba(70, 40, 20, .14);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
}
/* the gold frame, just inside the edge */
.buy-btn::before {
  content: ""; position: absolute; inset: 4px; z-index: -1; pointer-events: none;
  border: 1px solid rgba(212, 167, 91, .85); border-radius: 7px;
}
.buy-btn--prevention {
  background-image: url("../img/buy-prevention-l.png"), url("../img/buy-prevention-r.png"), linear-gradient(180deg, #B73E05, #AA3A05 50%, #762902);
  background-image: image-set(url("../img/buy-prevention-l.webp") type("image/webp"), url("../img/buy-prevention-l.png") type("image/png")),
                    image-set(url("../img/buy-prevention-r.webp") type("image/webp"), url("../img/buy-prevention-r.png") type("image/png")),
                    linear-gradient(180deg, #B73E05, #AA3A05 50%, #762902);
  background-position: left center, right center, 0 0;
  background-size: auto 100%, auto 100%, 100% 100%;
}
.buy-btn--guide {
  background-image: url("../img/buy-guide-l.png"), url("../img/buy-guide-r.png"), linear-gradient(180deg, #132432, #142634 50%, #112230);
  background-image: image-set(url("../img/buy-guide-l.webp") type("image/webp"), url("../img/buy-guide-l.png") type("image/png")),
                    image-set(url("../img/buy-guide-r.webp") type("image/webp"), url("../img/buy-guide-r.png") type("image/png")),
                    linear-gradient(180deg, #132432, #142634 50%, #112230);
  background-position: left center, right center, 0 0;
  background-size: auto 100%, auto 100%, 100% 100%;
}
.buy-btn:hover { color: #F4E9DA; transform: translateY(-1px); filter: brightness(1.06); }
.buy-btn .big { display: block; font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .03em; line-height: 1.05; }
.buy-btn .orn {
  display: block; width: 64px; height: 7px; margin: 4px auto 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5h52M68 5h52' stroke='%23D4A75B' stroke-width='1.4'/%3E%3Cpath d='M60 1.5l6 3.5-6 3.5-6-3.5z' fill='%23D4A75B'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.buy-btn .line { display: block; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.3; }
.buy-btn .sub { display: block; font-style: italic; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.3; margin-top: 2px; color: #E6AE4C; }
.buy-btn--guide .sub { color: #DDA045; }
.buy-or {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #9A7433; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1;
}
.buy-or::before, .buy-or::after {
  content: ""; width: 40px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 8'%3E%3Cpath d='M0 4h25M33 4h25' stroke='%239A7433' stroke-width='1.2'/%3E%3Cpath d='M29 1l4 3-4 3-4-3z' fill='%239A7433'/%3E%3C/svg%3E") center / contain no-repeat;
}
.buy-meta { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; transition: opacity 500ms var(--ease); }
/* the first-visit hint and the price line share one slot, so nothing jumps */
.buy-note { display: grid; margin: 10px 0 0; }
.buy-note > * { grid-area: 1 / 1; }
.buy-hint {
  margin: 0;
  opacity: 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: opacity 800ms var(--ease);
}
.buy-hint.is-in { opacity: 1; }
.buy-note.hint-on .buy-meta { opacity: 0; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  font-size: 11px;
  color: var(--muted);
}
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.site-foot .brand { color: var(--text); }
.site-foot .credit { opacity: .7; }

/* ---------- Slide-over panel ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-out) var(--ease-out-slide), visibility 0s linear var(--dur-out);
}
.backdrop.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease-slide), visibility 0s; }

.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: max(var(--panel-w), var(--panel-min));
  max-width: 100vw;
  background: var(--panel-bg);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .06);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  /* only the transform moves: it stays on the graphics card, so the slide is even.
     The width is set before the panel appears, never animated. */
  transition: transform var(--dur-out) var(--ease-out-slide), visibility 0s linear var(--dur-out);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout style;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.panel.is-open { transform: translate3d(0, 0, 0); visibility: visible; transition: transform var(--dur) var(--ease-slide), visibility 0s; }
.panel--narrow { --panel-w: 32vw; --panel-min: 380px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 48px 14px;
  flex: 0 0 auto;
}
.panel-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.panel-title .n { color: var(--muted); font-weight: 400; margin-right: .6em; letter-spacing: .04em; }
.close {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 160ms var(--ease);
  margin-right: -10px;
}
.close:hover { background: #F1F1F1; color: var(--text); }
.close svg { width: 18px; height: 18px; }

.panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 48px 72px;
  scrollbar-width: thin;
  scrollbar-color: #D1D5DB transparent;
}
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }

.sheet-handle { display: none; }

/* ---------- Content typography (panels + reader) ---------- */
.prose { max-width: 560px; }
.prose p { margin: 0 0 1em; font-size: var(--panel-fs, 16px); line-height: 1.65; }
.prose p.lead { font-size: 18px; font-weight: 500; line-height: 1.5; }
.prose p.small { font-size: 14px; color: var(--muted); }
.prose p.q { font-size: 18px; font-weight: 500; line-height: 1.5; margin: 1.2em 0; }
.prose p.sign { font-family: var(--script); color: var(--gold); font-size: 30px; line-height: 1.2; margin-top: 1.1em; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 1.8em 0 .6em; line-height: 1.3; letter-spacing: -.005em; }
.prose h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 1.8em 0 .8em; }
.prose .lines { margin: 0 0 1.3em; }
.prose .lines p { margin: 0 0 .25em; }
.prose hr, .soft-rule { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose em { font-style: italic; }
.prose strong { font-weight: 600; }

.link-btn {
  display: inline-block;
  background: var(--btn);
  color: var(--btn-text) !important;
  text-decoration: none !important;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12.5px;
  border: 0;
  cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.link-btn:hover { background: #000; transform: translateY(-1px); }
.link-btn--ghost { background: none; color: var(--text) !important; border: 1px solid var(--text); }
.link-btn--ghost:hover { background: var(--text); color: #fff !important; }
.text-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.text-btn:hover { color: var(--accent); }

/* book details: one table per book */
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 10px 20px; margin: 4px 0 0; max-width: 520px; }
.spec dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.spec dd { margin: 0; font-size: var(--panel-fs, 16px); }
.spec-plus { max-width: 520px; text-align: center; color: var(--accent); font-size: 30px; font-weight: 400; line-height: 1; padding: 22px 0; }

/* FAQ */
.faq { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.faq li { border-top: 1px solid var(--line); }
.faq li:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-q .ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; position: relative; }
.faq-q .ico::before, .faq-q .ico::after {
  content: ""; position: absolute; background: currentColor; left: 50%; top: 50%;
  transition: transform 220ms var(--ease);
}
.faq-q .ico::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .ico::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-q[aria-expanded="true"] .ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 320ms var(--ease); }
.faq-a.is-open { max-height: none; }   /* settled open: follows its content when the width changes */
.faq-a .prose { padding: 0 32px 18px 0; }
.faq-a .prose p { font-size: var(--panel-fs, 16px); }

/* reviews */
.reviews { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.reviews li { margin: 0 0 22px; }
.reviews blockquote { margin: 0; font-size: var(--panel-fs, 16px); line-height: 1.6; }
.reviews cite { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.reviews-more { margin: 4px 0 26px; }
.reviews .more { display: none; }
.reviews.is-expanded .more { display: block; animation: fadeUp 380ms var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* what you get */
.bundle { max-width: 560px; }
.bundle-intro { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.bundle-item { padding: 22px 0; }
.bundle-item .num { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .1em; }
.bundle-item h3 { margin: 4px 0 2px; font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.bundle-item .subtitle { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.bundle-item .kicker { margin: 0 0 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.bundle-item .cover { display: block; width: 100%; max-width: 250px; margin: 0 auto 18px; }
.bundle-item .cover img { width: 100%; height: auto; }
.bundle-item .cover--small { max-width: 190px; }
.bundle-item p { margin: 0 0 .8em; font-size: var(--panel-fs, 16px); line-height: 1.6; }
.bundle-item .meta { color: var(--accent); font-size: 13.5px; font-weight: 500; margin: 10px 0 0; line-height: 1.7; }
.bundle-plus { text-align: center; color: var(--accent); font-size: 34px; font-weight: 400; line-height: 1; padding: 6px 0; }
.bundle-trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; margin: 12px 0 24px;
}
.bundle-trust > div { display: flex; gap: 12px; align-items: flex-start; }
.bundle-trust > div > div { min-width: 0; }   /* title above its line of text */
.bundle-trust svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent); stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.bundle-trust b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.bundle-trust span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.bundle-close { text-align: center; padding: 22px 16px; background: #F3F3F1; border-radius: var(--radius); }
.bundle-close strong { display: block; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; line-height: 1.5; }
.bundle-close span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* desktop panels on larger screens: a wider panel and slightly larger type.
   One size (--panel-fs) for every panel, so they all read the same.
   The narrow panel keeps its width and the base size. */
@media (min-width: 1280px) {
  :root { --panel-w: min(44vw, 820px); }
  .panel:not(.panel--narrow) { --panel-fs: 17px; }
  .panel:not(.panel--narrow) :is(.prose, .faq, .reviews, .bundle) { max-width: 600px; }
  .panel:not(.panel--narrow) .prose p.lead,
  .panel:not(.panel--narrow) .prose p.q { font-size: 19px; }
}
@media (min-width: 1800px) {
  .panel:not(.panel--narrow) { --panel-fs: 18px; }
  .panel:not(.panel--narrow) :is(.prose, .faq, .reviews, .bundle) { max-width: 640px; }
}

/* tablet sheet (600–900 px): the content is centred in the wide sheet */
@media (min-width: 600px) and (max-width: 900px) {
  .panel-body > * { max-width: 560px; margin-left: auto; margin-right: auto; }
  .panel-head { max-width: 604px; margin: 0 auto; width: 100%; }
}

/* my story: a soft divider, then a few facts about the author */
.facts-title, .prose .facts-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 1.4em; }
.facts-photo { width: 100%; max-width: 280px; height: auto; border-radius: var(--radius); margin: 0 0 1.6em; }

/* read a free sample: the two options */
.sample-options { display: grid; gap: 14px; max-width: 520px; }
.sample-note { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.option {
  display: block; width: 100%; text-align: left; text-decoration: none; cursor: pointer;
  background: var(--btn); color: var(--btn-text); border: 1px solid var(--btn); border-radius: var(--radius);
  padding: 18px 20px; transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.option:hover { background: #000; color: var(--btn-text); transform: translateY(-1px); }
.option--ghost { background: none; color: var(--text); border-color: var(--text); }
.option--ghost:hover { background: var(--text); color: #fff; }
.option-title { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.option-text { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; opacity: .82; }

/* video (My story) */
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; background: #111; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .3);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}
.video-thumb:hover .play, .video-thumb:focus-visible .play { transform: scale(1.07); background: #fff; }
.video-thumb .play svg { width: 21px; height: 21px; margin-left: 3px; fill: var(--text); }

/* ---------- Reader (the free sample: clean full-page overlay) ---------- */
.reader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
}
.reader.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.reader-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  background: linear-gradient(var(--bg) 70%, rgba(250, 250, 250, 0));
}
.reader-body {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 64px) 24px 120px;
}
.reader-body .chapter + .chapter { margin-top: clamp(64px, 12vh, 110px); }
.reader-body h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.2; margin: 0 0 36px; letter-spacing: .01em; text-align: center; }
.reader-body .prose { max-width: none; }
.reader-body .prose p { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.75; margin: 0 0 1.25em; }
.reader-body .prose p.center { text-align: center; font-weight: 600; margin: 1.6em 0; }
.reader-body .prose p.note { font-size: 14px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2em; }
.reader-body .prose sup { font-size: .7em; line-height: 0; }
.reader-body .prose figure { margin: 0 0 1.6em; }
.reader-body .prose figure img { width: 100%; height: auto; }
.reader-end { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); text-align: center; }
.link-btn--big { padding: 20px 44px; }
.link-btn--big .cta { display: block; font-size: 15px; letter-spacing: .14em; }
.link-btn--big .cta-sub { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; font-style: italic; letter-spacing: .01em; text-transform: none; opacity: .85; }
.reader-email { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }
.reader-email p { margin: 0 0 .8em; font-size: 15.5px; }
.reader-email p.muted { color: var(--muted); }
.email-form { display: flex; gap: 10px; margin-top: 22px; }
.reader-email p.email-note { margin-top: 14px; font-size: 13px; }
.reader-email p.email-note a { color: inherit; }
.email-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid #8B929E; border-radius: var(--radius); background: #fff; color: var(--text);
}
.email-form input:focus { outline: none; border-color: var(--text); }
.email-form .msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* "Write to the author": a quiet link under BUY, the form lives in the panel */
.buy-contact { margin: 10px 0 0; }
.buy-contact .text-btn { font-size: 13px; color: var(--muted); }
.buy-contact .text-btn:hover { color: var(--accent); }
.contact-form { display: grid; gap: 14px; margin-top: 22px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text);
  background: #fff; border: 1px solid #8B929E; border-radius: var(--radius);
  padding: 11px 13px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(31, 31, 31, .06); }
.contact-form .link-btn { justify-self: start; }
.contact-form .msg { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.contact-note { margin: 20px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Secondary pages (checkout, thank-you, legal) ---------- */
.page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 24px 24px 80px; }
.page-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 34px; font-size: 12px; letter-spacing: .06em; }
.page-top a { text-decoration: none; color: var(--muted); }
.page-top a:hover { color: var(--text); }
.page h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.01em; }
.page h2 { font-size: 18px; font-weight: 600; margin: 2em 0 .6em; }
.page p, .page li { font-size: 16px; line-height: 1.65; }
.page .muted { color: var(--muted); }
.page .updated { font-size: 13px; color: var(--muted); margin-bottom: 30px; }

/* checkout */
.checkout { max-width: 560px; }
.order { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 28px; background: #fff; }
.order .items { margin: 0; }
.order .items div { font-size: 17px; font-weight: 500; line-height: 1.5; }
.order .kind { color: var(--muted); font-size: 13px; margin-top: 10px; }
.order .price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.order .price b { font-size: 24px; font-weight: 600; }
.order .price span { color: var(--muted); font-size: 13px; }
#checkout-area { min-height: 220px; }
.pay-placeholder {
  border: 1px dashed #D1D5DB; border-radius: var(--radius); padding: 28px 24px; color: var(--muted); font-size: 14px; line-height: 1.6;
}
.pay-placeholder b { color: var(--text); display: block; margin-bottom: 6px; }
.checkout .note { font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.6; }

/* thank-you */
.thanks { position: relative; text-align: center; max-width: 620px; padding-top: clamp(30px, 8vh, 90px); }
.thanks h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; }
.thanks p { font-size: 17px; }
.thanks .downloads { display: grid; gap: 14px; margin: 34px auto 26px; max-width: 460px; }
.thanks .downloads[hidden] { display: none; }   /* the buttons appear only when there is somewhere to send the buyer */
.thanks .downloads a { display: block; text-align: center; padding: 18px 20px; }
.thanks .downloads small { display: block; text-transform: none; letter-spacing: .02em; font-weight: 400; opacity: .7; margin-top: 4px; font-size: 12.5px; }
.thanks .downloads--paddle { gap: 26px; }
.thanks .dl-book { display: grid; gap: 10px; }
.thanks .dl-name { margin: 0; font-weight: 600; }
.thanks .dl-name small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.thanks .dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thanks .dl-row a { padding: 16px 12px; }
.thanks .sign { color: var(--gold); margin-top: 34px; }
.ghost-head {
  position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none;
}
.ghost-head .wrap { position: relative; width: min(46vw, 62vh, 560px); aspect-ratio: 807 / 1061; opacity: .14; filter: saturate(.85); }

/* ---------- Mobile: full-width head, bottom sheet ---------- */
@media (max-width: 900px) {
  :root { --head-w: min(100%, 520px); }
  .hero { padding: 22px 18px 12px; gap: 14px; }
  .hero-title h1 { font-size: 19px; }
  .hero-title .byline { font-size: 12.5px; margin-top: 7px; }
  .stage { display: block; width: 100%; max-width: 520px; }
  .label-col { display: none; }
  .head-wrap { width: 100%; margin: 0 auto; }

  .legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;            /* 01–05 down the left, 06–10 down the right */
    gap: 4px 14px;
    width: 100%;
    max-width: 520px;
    margin: 4px 0 6px;
    padding: 0;
    list-style: none;
  }
  .legend button {
    width: 100%; display: flex; gap: 10px; align-items: baseline;
    background: none; border: 0; border-bottom: 1px solid var(--line);
    padding: 10px 2px; text-align: left; cursor: pointer;
    font-family: var(--serif); text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; font-weight: 400; line-height: 1.35;
  }
  .legend li { display: flex; }
  .legend button .n { color: var(--muted); font-weight: 400; min-width: 1.6em; letter-spacing: 0; }
  .legend button.is-active { color: var(--accent); }
  .legend button .sub { display: block; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12.5px; font-weight: 400; }
  .legend button:active { color: var(--accent); }

  /* on the phone the buttons are below the fold, so the first-visit hint floats */
  .buy-hint {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 22px 16px 16px;
    background: linear-gradient(rgba(250, 250, 250, 0), var(--bg) 45%);
    pointer-events: none;
  }
  .buy-note.hint-on .buy-meta { opacity: 1; }

  .buy-row { grid-template-columns: 1fr; gap: 10px; }
  .buy-btn { padding: 18px 20px; }
  .buy-or { flex-direction: row; justify-content: center; gap: 10px; font-size: 20px; }

  .panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 60vh;
    height: 60dvh;   /* dvh last: on iOS the sheet must end above Safari's toolbar */
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .10);
    transform: translate3d(0, 100%, 0);
    transition: transform var(--dur-out) var(--ease-out-slide), height 320ms var(--ease), visibility 0s linear var(--dur-out);
    touch-action: pan-y;
  }
  .panel.is-open { transform: translate3d(0, 0, 0); transition: transform var(--dur) var(--ease-slide), height 320ms var(--ease), visibility 0s; }
  .panel.is-expanded { height: 93vh; height: 93dvh; }
  .panel.is-dragging { transition: none; }
  .panel--narrow { --panel-w: 100vw; }
  .sheet-handle {
    display: block; width: 100%; padding: 10px 0 4px; cursor: grab; background: none; border: 0; flex: 0 0 auto;
  }
  .sheet-handle::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #D1D5DB; margin: 0 auto; }
  .panel-head { padding: 6px 22px 10px; }
  .panel-body { padding: 4px 22px calc(48px + env(safe-area-inset-bottom, 0px)); }
  .panel-title { font-size: 11px; }
  .site-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

  /* iOS zooms into any field with text smaller than 16px */
  .email-form input, .contact-form input, .contact-form textarea { font-size: 16px; }

  /* the claim and the price line wrap evenly instead of leaving one word alone */
  .hero-title h1, .buy-meta { text-wrap: balance; }
  .buy-meta { max-width: 36em; margin-left: auto; margin-right: auto; }

  .prose p { font-size: 15.5px; }
  .spec { grid-template-columns: 100px 1fr; }
  .bundle-trust { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .page-top { padding-bottom: 24px; }
}

/* a phone held sideways: the head must not be taller than the screen */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 600px) {
  .head-wrap { width: min(100%, calc(84vh * 807 / 1061)); }
  .panel { height: 88vh; height: 88dvh; }   /* 60 % of so little height leaves three lines of text */
}

/* small phones (iPhone SE, compact Androids) */
@media (max-width: 480px) {
  .hero-title h1 br { display: none; }   /* the two fixed lines don't fit, let it balance */
  .legend { column-gap: 10px; }
  .legend button { letter-spacing: .06em; gap: 8px; }
  .page .link-btn { max-width: 100%; padding: 13px 16px; letter-spacing: .01em; text-transform: none; font-size: 14px; overflow-wrap: break-word; }
}
@media (max-width: 380px) {
  .buy-btn { padding: 16px 14px; }
}

/* touch screens: no sticky hover after a tap */
@media (hover: none) {
  .buy-btn:hover, .link-btn:hover, .option:hover { transform: none; filter: none; box-shadow: 0 4px 14px rgba(70, 40, 20, .14); }
  a:hover, .text-btn:hover, .faq-q:hover { color: inherit; }
  .buy-btn:hover { color: #F4E9DA; }
  .link-btn:hover { background: var(--btn); }
}

@media (min-width: 901px) and (max-height: 700px) {
  :root { --head-w: min(36vw, 42vh); }
  .hero-title h1 { font-size: 20px; }
}

/* ---------- Cinematic intro (first visit only) ---------- */
.intro { display: none; }
.intro-pending .intro {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 24px;
  text-align: center;
  background-color: var(--bg);
  transition: background-color 1200ms var(--ease), opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.intro.is-clear { background-color: rgba(250, 250, 250, 0); pointer-events: none; }
.intro.is-gone { opacity: 0; visibility: hidden; }

.intro-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 750ms var(--ease), visibility 0s linear 750ms;
}
.intro-stage.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.intro-stage.is-slow-out { transition-duration: 1100ms; }

.intro-wordmark {
  margin: 0;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(12px, 1.5vw, 19px);
  letter-spacing: .62em;
  text-indent: .62em;
  transition: letter-spacing 1600ms var(--ease), text-indent 1600ms var(--ease);
}
.intro-stage.is-on .intro-wordmark { letter-spacing: .26em; text-indent: .26em; }

.intro-claim {
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1.55;
  font-size: clamp(15px, 2.1vw, 29px);
}
.intro-claim .l {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(9px);
  transition: opacity 1050ms var(--ease), transform 1150ms var(--ease), filter 950ms var(--ease);
}
.intro-claim .l.is-in { opacity: 1; transform: none; filter: none; }
.intro-claim .accent { color: var(--accent); }

.intro-look {
  display: block;
  margin: clamp(30px, 6vh, 60px) auto 0;
  background: none;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 950ms var(--ease), transform 950ms var(--ease), color 180ms var(--ease);
}
.intro-look.is-in { opacity: 1; transform: none; }
.intro-look:hover { color: var(--text); }

.intro-question {
  margin: 0;
  max-width: 900px;
  font-size: clamp(21px, 3.3vw, 41px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.01em;
  transform: translateY(12px);
  transition: transform 950ms var(--ease);
}
.intro-stage.is-on .intro-question { transform: none; }


.intro-skip {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 700ms var(--ease), color 180ms var(--ease);
}
.intro-skip.is-in { opacity: 1; }
.intro-skip:hover { color: var(--text); }

/* while the intro runs, the site waits underneath */
.intro-pending body { overflow: hidden; }
.intro-pending .hero-title,
.intro-pending .buy,
.intro-pending .site-foot,
.intro-pending .label-col,
.intro-pending .legend { opacity: 0; }
.intro-pending .head-wrap { opacity: 0; transform: scale(1.05); filter: blur(18px); }

/* …and then the head emerges from the background, the rest follows */
.intro-pending.head-in .head-wrap {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1700ms var(--ease), transform 2100ms var(--ease), filter 1600ms var(--ease);
}
.intro-pending.ui-in .hero-title,
.intro-pending.ui-in .buy,
.intro-pending.ui-in .site-foot,
.intro-pending.ui-in .label-col,
.intro-pending.ui-in .legend { opacity: 1; transition: opacity 1100ms var(--ease); }

@media (max-width: 900px) {
  .intro-claim { letter-spacing: .14em; line-height: 1.6; }
  .intro-question { font-size: clamp(20px, 6.4vw, 30px); }
}

/* ---------- Smooth motion everywhere (calm, never showy) ---------- */

/* page to page: a soft cross-fade instead of a hard cut */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 420ms; animation-timing-function: var(--ease); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes headIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ghostIn { from { opacity: 0; transform: scale(1.03); } }

/* gentle hover states */
a, .text-btn, .faq-q, .legend button, .page-top a, .site-foot a { transition: color 200ms var(--ease); }
.buy-btn, .link-btn { transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.buy-btn:hover, .link-btn:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .16); }
.buy-btn:active, .link-btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); transition-duration: 90ms; }
.email-form input { transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.email-form input:focus { box-shadow: 0 0 0 3px rgba(31, 31, 31, .06); }

/* home, returning visitors (no intro): the head fades in, the rest follows */
.enter .hero-title { animation: rise 800ms var(--ease) 80ms both; }
.enter .head-wrap { animation: headIn 1100ms var(--ease) 160ms both; }
.enter .label-col { animation: fadeIn 900ms var(--ease) 520ms both; }
.enter .legend { animation: rise 800ms var(--ease) 480ms both; }
.enter .buy { animation: rise 800ms var(--ease) 620ms both; }
.enter .site-foot { animation: fadeIn 800ms var(--ease) 800ms both; }

/* panel: the content fades in while the panel arrives — one calm movement, not ten */
.panel.is-open .panel-title { animation: fadeIn 520ms var(--ease) 140ms both; }
.panel.is-open .panel-body > * { animation: fadeIn 680ms var(--ease) 200ms both; }   /* the content, not the scrolling box */

/* FAQ: the answer fades in as it unfolds */
.faq-a .prose { opacity: 0; transform: translateY(-4px); transition: opacity 240ms var(--ease), transform 320ms var(--ease); }
.faq-q[aria-expanded="true"] + .faq-a .prose { opacity: 1; transform: none; transition-delay: 80ms; }

/* Chapter One: title, text and ending arrive one after another */
.reader.is-open .reader-body > * { animation: rise 700ms var(--ease) both; animation-delay: 420ms; }
.reader.is-open .reader-body > :nth-child(1) { animation-delay: 120ms; }
.reader.is-open .reader-body > :nth-child(2) { animation-delay: 200ms; }
.reader.is-open .reader-body > :nth-child(3) { animation-delay: 300ms; }

/* secondary pages (checkout, thank-you, legal) */
.page > * { animation: rise 700ms var(--ease) both; animation-delay: 420ms; }
.page > :nth-child(1) { animation-delay: 40ms; }
.page > :nth-child(2) { animation-delay: 110ms; }
.page > :nth-child(3) { animation-delay: 180ms; }
.page > :nth-child(4) { animation-delay: 250ms; }
.page > :nth-child(5) { animation-delay: 320ms; }
.page > :nth-child(6) { animation-delay: 380ms; }
.page ~ .site-foot { animation: fadeIn 800ms var(--ease) 500ms both; }
.pay-placeholder { animation: rise 600ms var(--ease) both; }
.ghost-head .wrap { animation: ghostIn 1600ms var(--ease) both; }

/* ---------- Tap feedback: every clickable thing has its own animation ----------
   motion.js adds .is-tap on each press (and --rx/--ry = where it landed). */

/* the lists beside the head: a small step towards the head */
.label-col--left .hs-label.is-tap  { animation: stepRight 420ms var(--ease); }
.label-col--right .hs-label.is-tap { animation: stepLeft 420ms var(--ease); }
@keyframes stepRight { 40% { transform: translateX(6px); } }
@keyframes stepLeft  { 40% { transform: translateX(-6px); } }

/* mobile list of the ten sections: an orange line draws itself underneath */
.legend button { position: relative; }
.legend button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none;
}
.legend button.is-tap::after { animation: drawLine 700ms var(--ease); }
@keyframes drawLine { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* × close: a quarter turn */
.close.is-tap svg { animation: quarterTurn 420ms var(--ease); }
@keyframes quarterTurn { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.8); } 100% { transform: rotate(90deg) scale(1); } }

/* FAQ question: the text leans in */
.faq-q.is-tap > span:first-child { animation: leanIn 380ms var(--ease); }
@keyframes leanIn { 40% { transform: translateX(5px); } }

/* "Read more reviews →": slides on, like turning a page */
.text-btn.is-tap { animation: slideOn 460ms var(--ease); }
@keyframes slideOn { 45% { transform: translateX(8px); opacity: .45; } }

/* BUY: pressed in, with a light passing across */
.buy-btn { position: relative; overflow: hidden; isolation: isolate; }
.buy-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
}
.buy-btn.is-tap { animation: press 300ms var(--ease); }
.buy-btn.is-tap::after { animation: sheen 750ms var(--ease); }
@keyframes press { 40% { transform: scale(.97); } }
@keyframes sheen { to { transform: translateX(120%); } }

/* black buttons (Buy the book, Download, Stay connected): a ripple from the finger */
.link-btn { position: relative; overflow: hidden; isolation: isolate; }
.link-btn::after {
  content: ""; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: rgba(255, 255, 255, .35); transform: scale(0); opacity: 0; pointer-events: none;
}
.link-btn--ghost::after { background: rgba(31, 31, 31, .18); }
.link-btn.is-tap, .option.is-tap { animation: press 300ms var(--ease); }
.link-btn.is-tap::after { animation: ripple 650ms var(--ease); }
@keyframes ripple { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(48); opacity: 0; } }

/* video play: the button pulses outwards */
.video-thumb.is-tap .play { animation: playPulse 560ms var(--ease); }
@keyframes playPulse {
  0%   { box-shadow: 0 2px 18px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 255, 255, .55); }
  40%  { transform: scale(.9); }
  100% { box-shadow: 0 2px 18px rgba(0, 0, 0, .3), 0 0 0 26px rgba(255, 255, 255, 0); }
}

/* bottom-sheet handle: the bar stretches */
.sheet-handle.is-tap::before { animation: stretch 420ms var(--ease); }
@keyframes stretch { 45% { width: 68px; background: var(--muted); } }

/* intro: "look inside →" opens up, "skip" steps back */
.intro-look.is-tap { animation: openUp 520ms var(--ease); }
@keyframes openUp { 50% { letter-spacing: .34em; color: var(--text); } }
.intro-skip.is-tap { animation: stepBack 360ms var(--ease); }
@keyframes stepBack { 50% { transform: scale(.9); opacity: .5; } }

/* links inside the texts: a soft orange highlight */
.prose a.is-tap { animation: highlight 700ms var(--ease); border-radius: 2px; }
@keyframes highlight { 0% { background: rgba(196, 88, 31, 0); } 30% { background: rgba(196, 88, 31, .18); } 100% { background: rgba(196, 88, 31, 0); } }

/* footer links lift, "← back" steps back */
.site-foot a.is-tap { animation: lift 380ms var(--ease); }
@keyframes lift { 45% { transform: translateY(-3px); color: var(--accent); } }
.page-top a.is-tap { animation: back 400ms var(--ease); }
@keyframes back { 45% { transform: translateX(-6px); color: var(--text); } }

/* long legal texts: further paragraphs rise gently as they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .page > :nth-child(n+7) {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}

@media print {
  .panel, .backdrop, .reader { display: none !important; }
}

/* Sales paused (config salesOpen: false) */
.sales-closed .buy-row,
.sales-closed .reader-end { display: none; }
