/* You're Not Bothering Them: sales page
   Type: Alegreya (display, quotes), Figtree (text), Cormorant Garamond italic (author line).
   All fonts self-hosted, SIL Open Font License. */

@font-face { font-family: "Alegreya"; src: url("assets/fonts/alegreya.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/alegreya-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --paper-2: #F2F5F1;
  --white: #FFFFFF;
  --ink: #1E2622;
  --soft: #4E5752;
  --mute: #5D645F;
  --sage: #3F6150;
  --sage-tint: #DCE8DF;
  --rule: #DCE1DA;
  --tomato: #B4442D;
  --tomato-press: #A93F2A;
  --serif: "Alegreya", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; max-width: 36em; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.012em; max-width: 21ch; }
h3 { font-size: 1.3rem; line-height: 1.25; }
cite { font-style: italic; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section-lede { color: var(--soft); max-width: 38rem; margin-top: 1rem; font-size: 1.125rem; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0.9rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.mark-icon { width: 30px; height: 30px; flex: none; }
.mark-text { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; }
.nav a { color: var(--soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a.nav-buy { display: inline-block; color: var(--ink); font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 0 1.1rem; line-height: 42px; min-height: 44px; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out); }

/* Buttons */
.btn {
  display: inline-block; text-align: center;
  min-height: 54px; padding: 0.95rem 1.75rem; line-height: 1.3;
  background: var(--tomato); color: var(--white);
  font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.005em;
  border-radius: 999px; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); background: var(--tomato-press); }
.btn-sm { min-height: 46px; padding: 0.75rem 1.15rem; font-size: 0.98rem; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--tomato-press); }
  .nav a:hover { color: var(--ink); }
  .nav a.nav-buy:hover { background: var(--ink); color: var(--paper); }
  .foot a:hover, .faq a:hover { color: var(--ink); }
}
.cta-note { font-size: 0.9rem; color: var(--mute); margin: 0.75rem 0 0; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-areas: "title book" "sub book" "lede book" "cta book" "facts book";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
}
.hero-title { grid-area: title; font-size: clamp(2.9rem, 1.4rem + 5.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.022em; font-weight: 700; max-width: 11ch; }
.hero-sub { grid-area: sub; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.38; color: var(--soft); margin: 1.25rem 0 0; max-width: 30ch; }
.hero-book { grid-area: book; margin: 0; align-self: start; justify-self: end; width: 100%; max-width: 380px; }
.hero-book img { border-radius: 3px; box-shadow: 0 1px 2px rgba(30, 38, 34, 0.12), 0 24px 48px -28px rgba(30, 38, 34, 0.45); }
.hero-lede { grid-area: lede; margin: 2rem 0 0; max-width: 34rem; font-size: 1.15rem; color: var(--ink); }
.hero-cta { grid-area: cta; margin-top: 1.75rem; }
.facts { grid-area: facts; align-self: start; max-width: 34rem; list-style: none; padding: 1.25rem 0 0; margin: 2rem 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.95rem; color: var(--soft); }
.facts li { position: relative; }
.facts li + li::before { content: ""; position: absolute; left: -0.95rem; top: 0.68em; width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }

/* Bubbles (same language as the book) */
.bubble { max-width: 30rem; padding: 0.8rem 1.1rem; margin: 0; border-radius: 20px; font-size: 1.02rem; line-height: 1.5; }
.bubble.me { background: var(--sage-tint); color: var(--ink); border-bottom-right-radius: 6px; margin-left: auto; }
.bubble.them { background: var(--white); border: 1px solid var(--rule); border-bottom-left-radius: 6px; margin-right: auto; }
.bubble.say { background: var(--white); border: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: 1.12rem; margin-right: auto; border-bottom-left-radius: 6px; }
.bubble.say::before { content: "\201C"; } .bubble.say::after { content: "\201D"; }
.bubble.muted { background: var(--white); border: 1px solid var(--rule); color: var(--soft); }

/* Draft section */
.draft { background: var(--paper-2); padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.draft-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.draft-copy p { color: var(--soft); max-width: 34rem; }
.draft-copy h2 { margin-bottom: 1.5rem; }
.thread { background: var(--white); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.6rem; }
.thread-label { margin: 0.4rem 0 0; font-size: 0.85rem; font-weight: 600; color: var(--mute); }
.thread-label:first-child { margin-top: 0; }
.thread .bubble { max-width: 88%; }
.thread .bubble.muted, .thread .bubble.them { background: var(--paper-2); border: 0; }
.delivered { margin: 0; font-size: 0.8rem; color: var(--mute); text-align: right; padding-right: 0.25rem; }
.typing { display: inline-flex; gap: 5px; padding: 0.9rem 1rem; width: max-content; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); opacity: 0.45; }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.js .thread.in .reveal { opacity: 1; transform: none; }
.js .thread.in p.reveal:nth-child(4) { transition-delay: 380ms; }
.js .thread.in p.reveal:nth-child(5) { transition-delay: 640ms; }
.js .thread.in p.reveal:nth-child(6) { transition-delay: 900ms; }

/* Why */
.why { padding: clamp(4rem, 8vw, 7rem) 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2.75rem; border-top: 1px solid var(--ink); padding-top: 2rem; }
.why-item h3 { margin-bottom: 0.75rem; }
.why-item p { color: var(--soft); }
.why-foot { margin-top: 2rem; max-width: 36rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }

/* Five moves */
.inside { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--rule); }
.moves { list-style: none; padding: 0; margin: 3rem 0 0; border-bottom: 1px solid var(--rule); }
.moves li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 11rem; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.move-n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--sage); font-weight: 500; }
.move-main h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); margin-bottom: 0.5rem; }
.move-main p { margin: 0; color: var(--soft); max-width: 40rem; }
.move-ch { font-size: 0.92rem; color: var(--mute); text-align: right; }

/* Scripts */
.scripts { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.script-list { margin: 3rem 0 0; }
.script-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); align-items: center; }
.script-row:last-child { border-bottom: 1px solid var(--rule); }
.script-row dt { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; font-weight: 500; }
.script-row dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.script-row dd .bubble { margin-left: 0; margin-right: 0; }
.script-row .bubble.me { margin-left: auto; }
.script-src { font-size: 0.82rem; color: var(--mute); }

/* Pages */
.pages { padding: clamp(4rem, 8vw, 7rem) 0; }
.page-row { margin-top: 2.75rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.75rem); }
.page-row img { width: 100%; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); box-shadow: 0 18px 36px -30px rgba(30, 38, 34, 0.5); }
.page-row img:nth-child(even) { margin-top: 2.5rem; }

/* Sheets */
.sheets { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--rule); }
.sheets-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.sheet-list { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.sheet-list li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; padding: 0.85rem 0; border-top: 1px solid var(--rule); color: var(--soft); }
.sheet-list li:last-child { border-bottom: 1px solid var(--rule); }
.sheet-list li > span { min-width: 0; }
.sheet-list li::before { content: "0" counter(s); font-size: 0.85rem; font-weight: 600; color: var(--sage); padding-top: 0.2em; }
.sheet-list strong { color: var(--ink); font-weight: 600; }
.sheets-art { position: relative; aspect-ratio: 1 / 1.08; }
.sheets-art img { position: absolute; width: 66%; border: 1px solid var(--rule); background: var(--white); box-shadow: 0 1px 2px rgba(30,38,34,0.08), 0 24px 44px -30px rgba(30, 38, 34, 0.55); }
.sheet-a { left: 0; top: 0; }
.sheet-b { right: 0; bottom: 0; }

/* Fit */
.fit { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper-2); border-top: 1px solid var(--rule); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2.75rem; }
.fit-grid h3 { margin-bottom: 1rem; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; }
.ticks, .crosses { border-bottom: 1px solid var(--rule); }
.ticks li, .crosses li { position: relative; padding: 0.7rem 0 0.7rem 1.9rem; border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 0.15rem; top: 1.3rem; width: 0.9rem; height: 2px; background: var(--tomato); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.care { margin-top: 1.75rem; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; font-size: 0.98rem; color: var(--soft); }

/* Buy */
.buy { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--rule); }
.buy-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.buy-cover { width: 100%; border-radius: 3px; box-shadow: 0 1px 2px rgba(30, 38, 34, 0.12), 0 24px 48px -28px rgba(30, 38, 34, 0.45); }
.buy-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.buy-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.buy-list li span:first-child { font-weight: 600; }
.buy-list li span:last-child { color: var(--soft); text-align: right; }
.buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.price { margin: 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.price-note { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; color: var(--mute); }

/* FAQ */
.faq { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper-2); border-top: 1px solid var(--rule); }
.faq-in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { color: var(--soft); max-width: 40rem; padding-bottom: 0.6rem; }

/* Author */
.author { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.author-in { max-width: 48rem; }
.author h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1.25rem; }
.author p { max-width: 36rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; color: var(--soft); }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 3rem 0 3.5rem; font-size: 0.93rem; color: var(--soft); }
.foot-title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; max-width: 40rem; }
.foot-small { color: var(--mute); font-size: 0.85rem; }
.foot-nav { display: flex; gap: 1.75rem; margin-top: 1rem; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }

/* Sticky mobile bar: hidden until the hero buy area has scrolled away */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--rule);
    animation: up 260ms var(--ease-out);
  }
  .sticky-t { font-family: var(--serif); font-weight: 600; font-size: 0.98rem; line-height: 1.2; min-width: 0; }
  .foot { padding-bottom: 6.5rem; }
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }

/* Tablet */
@media (max-width: 980px) {
  .moves li { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .move-ch { grid-column: 2; text-align: left; margin-top: -0.75rem; }
  .page-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-row img:nth-child(even) { margin-top: 1.5rem; }
}

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 1.03rem; }
  .nav { display: none; }
  .top-in { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .hero { padding-top: 2rem; }
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "sub" "book" "cta" "lede" "facts"; grid-template-rows: none; }
  .hero-title { max-width: none; font-size: clamp(2.6rem, 1.2rem + 7vw, 3.6rem); }
  .hero-sub { margin-top: 0.9rem; }
  .hero-book { justify-self: center; max-width: 60vw; margin-top: 1.75rem; }
  .hero-cta { margin-top: 1.75rem; }
  .hero-lede { margin-top: 2rem; font-size: 1.08rem; }
  .hero-cta .btn { width: 100%; }
  .draft-in, .why-grid, .sheets-in, .fit-grid, .faq-in, .buy-in { grid-template-columns: minmax(0, 1fr); }
  .script-row { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .buy-cover { max-width: 180px; }
  .buy-row .btn { width: 100%; }
  .sheets-art { max-width: 480px; }
  .why-foot { font-size: 1.15rem; }
}
@media (max-width: 360px) {
  .mark-text { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal and thank-you pages */
.doc { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.doc-in > * { max-width: 38rem; }
.doc h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 20ch; }
.doc-lede { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--soft); margin-top: 1rem; }
.doc h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.5rem 0 0.75rem; max-width: none; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc-list { padding-left: 1.2rem; margin: 0 0 1em; }
.doc-list li { margin-bottom: 0.5rem; }
.doc .care { margin-top: 2.5rem; }


/* Digistore24 trust badge. .ds-slot matches the earlier user sites.
   45px reserve keeps page content below the top legal footer. */
.ds-slot { min-height: 0; }
#ds24-sales-page-badge,
#ds24-thank-you-page-badge { min-height: 45px; }

/* Digistore24 also injects a fixed legal footer at the bottom (~98px, z-index 50).
   Keep the phone buy button under the book, and the sticky bar, above that footer. */
@media (max-width: 760px) {
  .hero { padding-top: 1.25rem; }
  .hero-book { max-width: min(48vw, 168px); margin-top: 1rem; }
  .hero-cta { margin-top: 1rem; scroll-margin-bottom: 130px; }
  #buy { scroll-margin-bottom: 130px; }
  .sticky:not([hidden]) { bottom: 110px; }
  .foot { padding-bottom: 230px; }
}
@media (max-width: 760px) and (max-height: 820px) {
  .hero-title { font-size: clamp(2.2rem, 1rem + 5.6vw, 3rem); }
  .hero-sub { margin-top: 0.65rem; }
  .hero-book { max-width: min(44vw, 148px); margin-top: 0.85rem; }
  .hero-cta { margin-top: 0.85rem; }
}
