/* ============================================================
   TikTok Money Machine — Landing page styles
   Palette taken from the book cover:
   cream #f6f6ee · sage #dadac2 · deep green #1b5a33 · ink #161a12
   Type: Poppins (display) + Inter (body)
   ============================================================ */

:root {
  --cream: #f0eee0;
  --cream-card: #faf9f1;
  --sage: #dadac2;
  --sage-soft: #e3e1cd;
  --green: #2b6b42;
  --green-deep: #1f5433;
  --green-mid: #4a7b52;
  --green-light: #c3e0cb;
  --ink: #161a12;
  --text-muted: #5c634f;
  --text-faint: #636b59;
  --border: rgba(22, 26, 18, 0.1);
  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1080px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(43, 107, 66, 0.18); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- Reveal ---------- */

.reveal { opacity: 1; transform: none; }

/* Only hide for the animation once we know scripting is alive. If the script
   never runs, the page still shows every word. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.btn--green {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 10px 26px -12px rgba(31, 84, 51, 0.45);
}
.btn--green:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(31, 84, 51, 0.55);
}
.btn--green:active { transform: translateY(0); }

.btn--lg {
  font-size: 19px;
  padding: 21px 46px;
}

.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(240, 238, 224, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.nav-logo span { white-space: nowrap; }
.nav-logo .logo-top { color: var(--ink); }
.nav-logo .logo-bottom { color: var(--green); }

.nav-cta { font-size: 15px; padding: 13px 26px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 48px;
  overflow: hidden;
  text-align: center;
}

.hero-blob {
  position: absolute;
  left: 50%;
  bottom: -55px;
  width: min(1100px, 112%);
  height: 520px;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--sage) 72%, rgba(218, 218, 194, 0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

.note {
  position: absolute;
  width: 240px;
  opacity: 0.9;
  pointer-events: none;
  animation: note-drift 9s ease-in-out infinite;
}
.note--left {
  left: -70px;
  top: 44%;
  transform: rotate(-14deg);
}
.note--right {
  right: -80px;
  top: 30%;
  transform: rotate(160deg);
  animation-delay: 2.5s;
}
@keyframes note-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -22px; }
}
@media (prefers-reduced-motion: reduce) {
  .note { animation: none; }
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage-soft);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.eyebrow svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(40px, 7.4vw, 78px);
  margin-bottom: 26px;
}

.hl {
  position: relative;
  color: var(--green);
  display: inline-block;
}
.brush {
  position: absolute;
  left: -3%;
  bottom: -0.13em;
  width: 106%;
  height: 0.21em;
  fill: var(--green);
}

.hero-sub {
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-sub strong { color: var(--green); font-weight: 700; }

.hero-actions { margin-bottom: 20px; }

.assurance {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 56px;
}
.assurance svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; }

/* ---------- Pillars strip ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--sage-soft);
  border-radius: 24px;
  padding: 30px 20px;
  max-width: 820px;
  margin: 0 auto 56px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 18px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.pillar + .pillar { border-left: 1px solid rgba(22, 26, 18, 0.12); }
.pillar svg { width: 32px; height: 32px; color: var(--green); }

/* ---------- Book ---------- */

.book-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.book {
  position: relative;
  width: 320px;
  transition: transform 0.5s var(--ease-out);
  animation: book-float 7s ease-in-out infinite;
}
.book img {
  width: 100%;
  border-radius: 3px 10px 10px 3px;
  box-shadow: 24px 36px 56px -26px rgba(22, 40, 20, 0.55);
}
/* page block peeking out on the fore-edge */
.book::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 10px;
  right: -9px;
  width: 11px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(
    90deg,
    #fbfbf4 0 1.5px,
    #dfdfd2 1.5px 3px
  );
  box-shadow: 6px 12px 20px -10px rgba(22, 40, 20, 0.4);
}
/* spine shadow along the binding */
.book::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(22, 40, 20, 0.22), rgba(22, 40, 20, 0));
  pointer-events: none;
}
.book:hover { transform: translateY(-8px) scale(1.02); }
@keyframes book-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .book { animation: none; }
}

/* ---------- Statement ---------- */

.statement-section { padding-top: 60px; }

.statement {
  position: relative;
  background: var(--green);
  color: var(--cream);
  border-radius: 32px;
  padding: 68px 56px 60px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -34px rgba(31, 84, 51, 0.5);
}

.quote-mark {
  width: 42px;
  height: 42px;
  color: var(--green-light);
  opacity: 0.55;
  margin: 0 auto 22px;
}

.statement h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-bottom: 22px;
}
.statement .accent { color: var(--green-light); }

.statement p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 17.5px;
  color: rgba(240, 238, 224, 0.93);
}

.statement-topics {
  margin-top: 34px !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c3e0cb !important;
}

/* ---------- Pricing ---------- */

.pricing-section { padding-top: 40px; }

.pricing-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px 44px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 26px 50px -32px rgba(22, 40, 20, 0.45);
}

.pricing-name {
  font-size: 25px;
  margin-bottom: 6px;
}
.pricing-tagline {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 66px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
  margin-bottom: 10px;
}
.price-terms {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 32px;
}

.pricing-card .btn { width: 100%; font-size: 17px; padding: 19px 34px; }

/* ---------- Trust row ---------- */

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 18px;
  max-width: 460px;
  margin: 28px auto 0;
}

.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2px 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust + .trust { border-left: 1px solid var(--border); }
.trust svg { width: 24px; height: 24px; color: var(--green); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.footer-brand span { color: var(--green); }
.footer-copy { font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .note { width: 190px; }
  .note--left { left: -80px; }
  .note--right { right: -85px; }
  .pillars { max-width: 560px; }
  .statement { padding: 56px 34px 50px; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }

  .hero { padding: 128px 0 30px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 52px); }
  .eyebrow { font-size: 11.5px; padding: 10px 18px; letter-spacing: 0.06em; }
  .assurance { margin-bottom: 42px; }

  .btn--lg { font-size: 17px; padding: 19px 34px; width: 100%; }
  .hero-actions { display: block; }

  .pillars {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 24px;
    margin-bottom: 52px;
  }
  .pillar { flex-direction: row; text-align: left; gap: 16px; padding: 0; }
  .pillar + .pillar {
    border-left: none;
    border-top: 1px solid rgba(22, 26, 18, 0.12);
    padding-top: 22px;
  }
  .pillar svg { width: 28px; height: 28px; }
  .pillar br { display: none; }

  .hero-blob { height: 360px; bottom: -40px; width: 150%; }
  .note { width: 140px; opacity: 0.75; }
  .note--left { left: -58px; top: 58%; }
  .note--right { right: -58px; top: 17%; }

  .book { width: 250px; }

  .statement { padding: 48px 26px 42px; border-radius: 26px; }
  .statement p { font-size: 16.5px; }

  .pricing-card { padding: 44px 26px; }
  .price { font-size: 56px; }

  .trust-row { padding: 24px 12px; }
  .trust { font-size: 12.5px; }

  .footer-inner { flex-direction: column; text-align: center; }
}


/* ============================================================
   Accessibility, legal and clarity additions
   ============================================================ */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pillars, .trust-row { list-style: none; }
p.eyebrow { display: inline-flex; }

.checkout-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-faint);
}

.disclaimer {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-faint);
}

/* ---------- Footer with real business details ---------- */

.footer-inner {
  align-items: flex-start;
  text-align: left;
  gap: 32px;
}
.footer-brand-block { max-width: 340px; }
.footer-brand { margin-bottom: 12px; }

.footer-details {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-details a { color: var(--text-muted); }

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal-header { padding: 130px 0 0; }
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.legal .updated { font-size: 14px; color: var(--text-faint); margin-bottom: 40px; }
.legal h2 { font-size: 21px; margin: 38px 0 12px; }
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.7;
}
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }

.legal-note {
  background: var(--sage-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.legal-note p { margin: 0; font-size: 15.5px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  margin-bottom: 28px;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .footer-inner { flex-direction: column; text-align: left; align-items: flex-start; }
  .legal-header { padding-top: 110px; }
}


/* the longer "Buy the book — £29" label crowds the logo on small screens */
@media (max-width: 460px) {
  .nav-cta { font-size: 13.5px; padding: 11px 18px; }
  .nav-inner { gap: 12px; }
  .nav-logo { font-size: 18px; }
}


/* ---------- Author line under the book ---------- */

.byline {
  text-align: center;
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--text-muted);
}
.byline strong { color: var(--ink); font-weight: 600; }

/* ---------- What's in the book ---------- */

.inside-section { padding-top: 0; }

.inside-title {
  font-size: clamp(26px, 3.6vw, 34px);
  text-align: center;
  margin-bottom: 30px;
}

.inside-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inside-list li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.5;
}
.inside-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.inside-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--text-faint);
}


/* ---------- Proof: real brand emails ---------- */

.proof-section { padding-top: 0; }

.proof-title {
  font-size: clamp(26px, 3.6vw, 34px);
  text-align: center;
  margin-bottom: 10px;
}

.proof-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 auto 34px;
  max-width: 440px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

.proof-item { margin: 0; }

.proof-featured {
  max-width: 620px;
  margin: 0 auto 30px;
}
.proof-featured figcaption {
  font-size: 16px;
}

.proof-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(22, 26, 18, 0.16);
  box-shadow: 0 14px 30px -18px rgba(22, 40, 20, 0.45);
  background: #1c1c1c;
}

.proof-item figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}
.proof-item figcaption strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
}

.proof-note {
  max-width: 480px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
}

@media (max-width: 680px) {
  .proof-grid { grid-template-columns: 1fr; gap: 26px; }
}
