/* Pra-Tempah — buyer campaign page. OWNED-family: system sans, near-white ground,
   ink text, emerald = money/ownership ONLY. Visuals carry meaning, never decorate. */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #26241f;
  --ink-3: #525252;
  --ink-faint: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #ededed;

  --emerald: #0f9d58;
  --emerald-50: #ecfdf3;
  --emerald-700: #0b7c45;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --step: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
em { font-style: italic; }
strong { font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 500;
}
.skip-link:focus { left: 0; }

section { padding: calc(var(--step) * 13) 0; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 calc(var(--step) * 3); }

/* editorial section markers (rhythm + depth) */
.section-mark {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 calc(var(--step) * 5);
}
.section-mark span {
  font-variant-numeric: tabular-nums; font-size: 11px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.section-mark.on-dark { color: rgba(255, 255, 255, 0.5); }
.section-mark.on-dark span { color: #fff; border-color: rgba(255, 255, 255, 0.28); }

/* ── ① The Claim ──────────────────────────────────── */
.claim { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--step) * 8); }
.claim-text {
  font-weight: 700; font-size: clamp(2rem, 7.6vw, 3.25rem);
  line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance;
}
.claim-text em { display: inline-block; margin-top: 0.4em; font-style: normal; font-weight: 500; color: var(--ink-3); letter-spacing: -0.02em; }
.claim-sub { margin: calc(var(--step) * 4) 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-3); max-width: 30rem; }

/* motion motif — everything rushes; one thing holds still */
.streaks { position: relative; height: 44px; margin: calc(var(--step) * 7) 0 0; display: flex; flex-direction: column; justify-content: center; gap: 9px; overflow: hidden; }
.streak { height: 2px; background: linear-gradient(90deg, transparent, var(--line)); border-radius: 2px; }
.streak:nth-child(1) { width: 60%; animation: rush 2.6s linear infinite; }
.streak:nth-child(2) { width: 85%; animation: rush 1.7s linear infinite; }
.streak:nth-child(3) { width: 45%; animation: rush 3.4s linear infinite; }
.streak:nth-child(4) { width: 72%; animation: rush 2.1s linear infinite; }
.streak:nth-child(5) { width: 55%; animation: rush 2.9s linear infinite; }
.still { position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--emerald); }
@keyframes rush { from { transform: translateX(-30%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

.scroll-cue { margin: calc(var(--step) * 6) 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ── ② The Manifesto (excerpt — layered) ──────────── */
.manifesto { max-width: 34rem; }
.manifesto .scene { font-weight: 500; font-size: clamp(1.3rem, 4.4vw, 1.65rem); line-height: 1.45; letter-spacing: -0.017em; color: var(--ink); margin: 0 0 calc(var(--step) * 5); text-wrap: pretty; }
.manifesto p { font-weight: 400; font-size: 1.1875rem; line-height: 1.78; letter-spacing: -0.006em; color: var(--ink-2); margin: 0 0 calc(var(--step) * 4); text-wrap: pretty; }
.manifesto em { font-style: italic; color: var(--ink); }
.pull {
  margin: calc(var(--step) * 7) 0; padding: calc(var(--step) * 5) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: clamp(1.3rem, 4.6vw, 1.65rem); line-height: 1.5; letter-spacing: -0.02em; color: var(--ink);
}
.manifesto .turn { font-weight: 500; font-size: clamp(1.2rem, 4.2vw, 1.5rem); line-height: 1.45; letter-spacing: -0.018em; color: var(--ink); margin: calc(var(--step) * 6) 0 0; text-wrap: pretty; }

/* ── ③ The Reveal — book figure + story ───────────── */
.reveal-block { max-width: 34rem; }
.book-figure { display: flex; justify-content: center; margin: calc(var(--step) * 2) 0 calc(var(--step) * 3); perspective: 1300px; }
.book { transform: rotateY(-15deg) rotateX(3deg); filter: drop-shadow(-16px 22px 26px rgba(10, 10, 10, 0.26)); }
.book-cover {
  position: relative; width: 220px; height: 322px; overflow: hidden;
  background: linear-gradient(135deg, #1c1811, #130f08);
  border-radius: 3px 6px 6px 3px; padding: 26px 24px; display: flex; flex-direction: column;
}
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 11px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(255, 255, 255, 0.05)); }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%); pointer-events: none; }
.book-pub { font-size: 10px; letter-spacing: 0.28em; font-weight: 600; color: var(--emerald); }
.book-title { margin-top: auto; font-weight: 700; font-size: 30px; line-height: 1.02; letter-spacing: -0.01em; color: #efe7d6; text-transform: uppercase; }
.book-rule { width: 34px; height: 2px; background: var(--emerald); margin: 15px 0 11px; }
.book-author { font-size: 13px; letter-spacing: 0.02em; color: rgba(239, 231, 214, 0.72); }
.figure-cap { text-align: center; font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); margin: 0 0 calc(var(--step) * 8); }

/* interior pages — the book's own typesetting (serif, scoped to the object) */
.pages {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: calc(var(--step) * 2) -24px calc(var(--step) * 2);
  padding: 6px 24px 12px;
}
.pages::-webkit-scrollbar { display: none; }
.pages { scrollbar-width: none; }
.page {
  scroll-snap-align: center; flex: 0 0 auto; width: min(300px, 82vw); min-height: 380px;
  position: relative; background: #fcfbf6; border: 1px solid #e7e0d2; border-radius: 4px;
  box-shadow: 0 14px 34px -20px rgba(10, 10, 10, 0.34);
  padding: 32px 28px 44px; font-family: Georgia, "Times New Roman", serif;
}
.page-chap { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }
.page-chaptitle { font-family: Georgia, serif; font-weight: 600; font-size: 1.3rem; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 18px; }
.page-body { font-family: Georgia, serif; font-size: 0.9375rem; line-height: 1.72; color: #2a2723; margin: 0 0 12px; text-align: justify; hyphens: auto; }
.page-body:last-of-type { margin-bottom: 0; }
.page-emph { font-style: italic; color: var(--ink); }
.page-no { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: Georgia, serif; font-size: 12px; color: var(--ink-faint); }

.reveal-block .lead { font-weight: 600; font-size: clamp(1.45rem, 5vw, 1.95rem); line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 calc(var(--step) * 4); }
.reveal-block p, .author p, .handoff p { font-size: 1.0625rem; line-height: 1.72; color: var(--ink-3); margin: 0 0 calc(var(--step) * 4); }
.reveal-block p:last-child, .author p:last-child { margin-bottom: 0; }
.reveal-block strong { color: var(--ink); }

/* ── ④ The Threshold — dark decision island ───────── */
.threshold {
  background: #101010; color: #fafafa;
  border-radius: 22px; padding: calc(var(--step) * 8) calc(var(--step) * 5);
  margin: calc(var(--step) * 6) 0;
}
.threshold h2 { font-weight: 600; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 calc(var(--step) * 4); text-wrap: balance; color: #fff; }
.threshold h2 em { font-style: normal; color: var(--emerald); }

.how { list-style: none; padding: 0; margin: 0 0 calc(var(--step) * 6); display: flex; flex-direction: column; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: baseline; font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.how-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; align-self: flex-start; }

.dotwrap { margin-bottom: calc(var(--step) * 6); }
.dotgrid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; margin-bottom: calc(var(--step) * 3); }
.dot { width: 100%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.13); transition: background 380ms ease; }
.dot.on { background: var(--emerald); }
.meter-label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 calc(var(--step) * 2); }
.meter-count { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.meter-count #count { color: var(--emerald); }
.meter-sub { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.dot-note { font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); margin: 0; }

.cta {
  display: block; width: 100%; min-height: 56px; font-family: var(--sans);
  font-size: 1.0625rem; font-weight: 600; color: #fff; background: var(--emerald);
  border: 0; border-radius: 14px; padding: 16px 20px; cursor: pointer;
  transition: transform 120ms ease, background 200ms ease;
}
.cta:hover { background: var(--emerald-700); }
.cta:active { transform: translateY(1px); }
.cta:disabled { background: rgba(15, 157, 88, 0.22); color: #7ee2ad; cursor: default; }
.assurance { font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); margin: calc(var(--step) * 3) 0 0; }

/* ── ⑤ The Author ─────────────────────────────────── */
.author { max-width: 34rem; }
.author-head { display: flex; align-items: center; gap: 16px; margin-bottom: calc(var(--step) * 5); }
.author-mono {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 0.02em;
}
.author-name { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; margin: 0; }
.author-role { font-size: 0.9375rem; color: var(--ink-3); margin: 2px 0 0; }

/* ── ⑥ The Handoff ────────────────────────────────── */
.handoff { text-align: center; max-width: 34rem; }
.handoff p { color: var(--ink-3); }
.handoff .handoff-lead { font-weight: 600; font-size: clamp(1.25rem, 4.4vw, 1.55rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); margin: calc(var(--step) * 2) 0 calc(var(--step) * 5); text-wrap: balance; }
.handoff em { color: var(--ink); }
.share { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--ink); border-radius: 999px; min-height: 48px; padding: 12px 28px; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.share:hover { background: var(--ink); color: #fff; }

/* ── Footer ───────────────────────────────────────── */
footer { max-width: var(--measure); margin: 0 auto; padding: calc(var(--step) * 8) 24px calc(var(--step) * 16); border-top: 1px solid var(--line); text-align: center; }
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 var(--step); }
.tagline { font-size: 0.875rem; line-height: 1.6; color: var(--ink-faint); margin: 0; }

/* ── Sticky money bar ─────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: rgba(250, 250, 250, 0.86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%); transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.show { transform: none; }
.sticky-cta button { display: block; width: 100%; max-width: var(--measure); margin: 0 auto; min-height: 52px; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff; background: var(--emerald); border: 0; border-radius: 12px; cursor: pointer; }
.sticky-cta button:hover { background: var(--emerald-700); }

/* ── Confirmation sheet ───────────────────────────── */
.sheet { position: fixed; inset: 0; background: rgba(10, 10, 10, 0.4); display: flex; align-items: flex-end; justify-content: center; z-index: 25; padding: 12px; }
@media (min-width: 560px) { .sheet { align-items: center; } }
.sheet[hidden] { display: none; }
.sheet-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; max-width: 30rem; width: 100%; padding: calc(var(--step) * 6) calc(var(--step) * 5) calc(var(--step) * 5); text-align: center; box-shadow: 0 20px 50px -24px rgba(10, 10, 10, 0.4); }
.sheet-mark { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald-700); margin: 0 0 calc(var(--step) * 2); }
.sheet-title { font-weight: 700; font-size: 1.85rem; letter-spacing: -0.025em; margin: 0 0 calc(var(--step) * 2); }
.sheet-body { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 calc(var(--step) * 3); }
.sheet-demo { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); margin: 0 0 calc(var(--step) * 4); }
.sheet-close { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff; background: var(--ink); border: 0; border-radius: 12px; min-height: 52px; padding: 14px 40px; cursor: pointer; }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

/* ── Motion: unhurried reveal ─────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .streak { opacity: 0.5; }
}
