/* ============================================================
   Tiger's Manual — the whole site.
   Cover, two choices, a reader. Nothing else.
   (The previous full marketing site is kept in site-backup/.)
   ============================================================ */

:root {
  --bg:      #0d0805;
  --panel:   #140c07;
  --ember:   #ff6a1a;
  --gold:    #ef8b2c;
  --bright:  #ffb552;
  --cream:   #f5f0e6;
  --muted:   #cdc2b2;
  --faint:   #8d7e6c;
  --rule:    rgba(239, 139, 44, 0.22);
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(239, 139, 44, 0.18);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- the cover ---------- */
.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px 16px 70px;
  background: radial-gradient(130% 80% at 50% 0%, #1a0f07 0%, var(--bg) 70%);
}
.cover-art {
  display: block;
  width: min(86vw, calc((100svh - 130px) * 0.667), 480px);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 70px rgba(255, 106, 26, 0.16);
  user-select: none;
  -webkit-user-drag: none;
}

/* a quiet nudge that there is more below */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.55; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- the two choices ---------- */
.choose {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 16px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 76px;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.choice-main { font-weight: 800; font-size: 1.04rem; letter-spacing: 0.01em; }
.choice-sub  { font-size: 0.86rem; color: var(--faint); font-weight: 400; }
.choice.buy  { border-color: rgba(255, 106, 26, 0.5); }
.choice.buy .choice-main { color: var(--bright); }
.choice:hover, .choice:focus-visible {
  border-color: var(--gold);
  background: #1b1009;
  transform: translateY(-1px);
}

/* ---------- the reader ---------- */
.reader-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 46px;
}
.reader {
  position: relative;        /* makes it the offsetParent of every page */
  height: min(82svh, 980px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #080504;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  user-select: none;
  -webkit-user-select: none;
}
.reader:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pages { display: flex; flex-direction: column; gap: 14px; }
.pg { margin: 0; }
.pg img {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #110a06;
  pointer-events: none;      /* no drag-to-desktop, no long-press save sheet */
  user-select: none;
  -webkit-user-drag: none;
}

.reader-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
  color: var(--faint);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.pg-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--gold);
  font-size: 1.05rem;
  cursor: pointer;
}
.pg-btn:hover { border-color: var(--gold); color: var(--bright); }
.pg-count #pg-now { color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid rgba(239, 139, 44, 0.14);
  padding: 22px 16px 34px;
  text-align: center;
  color: var(--faint);
  font-size: 0.86rem;
}
/* 12px of padding, not 8: it takes the email link to a 45px tap target.
   At 8px it measured 37px on a 375px-wide phone, under the 44px minimum. */
.foot a { color: var(--gold); display: inline-block; padding: 12px 4px; }
.foot a:hover { color: var(--bright); }

/* ---------- the free read-through is for big screens ----------------------
   A mum reviewing 59 pages needs a laptop; a phone screen cannot show a 6x9
   page properly. Below 900px the reader is hidden and a note takes its place.
   The pages are lazy-loaded, so a hidden reader costs a phone no data. */
.small-screen-note { display: none; }

@media (max-width: 899px) {
  .choice.read,
  .reader-wrap { display: none; }
  .small-screen-note {
    display: block;
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 20px 42px;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.6;
    text-align: center;
  }
}

/* ---------- phones ---------- */
@media (max-width: 620px) {
  .choose { grid-template-columns: 1fr; gap: 12px; padding-top: 26px; }
  .reader { height: 78svh; padding: 10px; }
  .reader-wrap { padding: 18px 12px 38px; }
}

/* one choice on its own should not stretch half-width */
@media (max-width: 899px) {
  .choose { grid-template-columns: 1fr; max-width: 420px; }
}

/* ---------- printing ---------- */
/* The manual is for reading here. Printing the page gets a note, not a book. */
@media print {
  .cover, .choose, .reader-wrap, .foot, .scroll-cue { display: none !important; }
  body::after {
    content: "The Tiger's Manual is for reading on screen. The printable PDF is the $7 download.";
    display: block;
    padding: 40px;
    font-family: sans-serif;
    font-size: 14pt;
    color: #000;
  }
}

/* ---------- the thank-you page ----------------------------------------
   Where Stripe lands a buyer after payment. Same furniture as the cover,
   just smaller, with the download in the middle of it. */
.thanks {
  max-width: 540px;
  margin: 0 auto;
  padding: 44px 20px 60px;
  text-align: center;
}
.thanks-art {
  display: block;
  width: min(54vw, 210px);
  margin: 0 auto 26px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), 0 0 46px rgba(255, 106, 26, 0.14);
}
.thanks h1 {
  margin: 0 0 22px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.thanks-state { min-height: 64px; display: grid; place-items: center; }
.thanks-wait { color: var(--faint); margin: 0; }
.thanks-problem { color: var(--muted); margin: 0; font-size: 0.97rem; }
.thanks-btn {
  display: inline-block;
  padding: 15px 28px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 106, 26, 0.55);
  background: var(--panel);
  color: var(--bright);
  font-weight: 800;
  font-size: 1.03rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.thanks-btn:hover, .thanks-btn:focus-visible {
  border-color: var(--gold);
  background: #1b1009;
  transform: translateY(-1px);
}
.thanks-note {
  margin: 26px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.95rem;
}
.thanks-foot {
  margin-top: 34px;
  color: var(--faint);
  font-size: 0.86rem;
  line-height: 1.9;
}
.thanks-foot a { color: var(--gold); }
.thanks-foot a:hover { color: var(--bright); }
