/* ===================================================================
   Becoming AI Native - landing page
   Editorial, light, trusted. Modeled on bestseller book sites
   (Atomic Habits, Deep Work, Four Thousand Weeks, PRH book pages):
   warm paper background, charcoal text, serif display, navy CTAs,
   flat cover with a quiet shadow, whitespace as the design language.
   No build step. Plain CSS with custom properties.
=================================================================== */

:root {
  --paper: #FBF9F6;        /* warm page background */
  --paper-2: #F4F1EB;      /* alternate band */
  --ink: #1F2329;          /* near-black charcoal */
  --ink-soft: #565B63;     /* muted body text */
  --rule: rgba(31, 35, 41, 0.14);   /* hairline borders */
  --navy: #1E3A5F;         /* the one accent: buttons, links */
  --navy-deep: #162C49;
  --navy-ink: #0F1F33;     /* darkest navy: closing band */
  --gold: #C9A35C;         /* hairline warmth: rules, small accents */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-title: "Inter Tight", "Source Sans 3", system-ui, sans-serif; /* neutral grotesque, like the cover */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --maxw-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Soft tonal washes give the paper depth: a cool navy light from the
     top right, a warm cast lower left, vignetted edges. */
  background:
    radial-gradient(1200px 700px at 88% -120px, rgba(30, 58, 95, 0.10), transparent 65%),
    radial-gradient(1000px 600px at -8% 38%, rgba(167, 136, 92, 0.11), transparent 60%),
    radial-gradient(1400px 900px at 50% 115%, rgba(30, 58, 95, 0.08), transparent 65%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* No noise/grain overlays: depth comes from distinct tonal bands stacked
   like sheets of paper, each casting a soft shadow onto the one below
   (see "Stacked sheets" rules under Bands). */

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

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

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
/* short warm rule under centered section eyebrows */
.framework .eyebrow::after,
.final-cta .eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
}
.lead {
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 58ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #27486F, var(--navy) 55%, var(--navy-deep));
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 31, 51, 0.25), 0 6px 16px rgba(15, 31, 51, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 31, 51, 0.28), 0 10px 24px rgba(15, 31, 51, 0.24);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: rgba(30, 58, 95, 0.07); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.header-title {
  justify-self: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}
.brand-mark { display: block; width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  justify-self: end;
}
.header-link:hover { border-bottom-color: var(--navy); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
/* hero eyebrow becomes a chip with a pulsing dot */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  margin-bottom: 22px;
}
.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow::before { animation: dot-pulse 2.4s ease-in-out infinite; }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 163, 92, 0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(201, 163, 92, 0); }
}
/* Hero title mirrors the cover type: tracked-out uppercase over heavy
   uppercase, same hierarchy as BECOMING / AI NATIVE on the jacket. */
.title {
  font-family: var(--font-title);
  margin: 0 0 20px;
  line-height: 1.0;
  text-transform: uppercase;
}
.title-top {
  display: block;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.title-main {
  display: block;
  font-weight: 800;
  font-size: clamp(2.4rem, 7.5vw, 4.9rem);
  letter-spacing: 0.03em;
  line-height: 1.02;
}
.subtitle {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 34ch;
  text-wrap: balance;
}
.byline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

/* ---------- Signup form ---------- */
.signup {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 0 12px;
}
.signup-center { margin-left: auto; margin-right: auto; }
.signup-input {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-input::placeholder { color: #9A9590; }
/* Honeypot field: invisible to humans (off-screen, no pointer), bots fill it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.signup-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.microcopy {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
}
.signup-success {
  font-family: var(--font-sans);
  color: var(--navy);
  font-weight: 600;
  margin: 14px 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .signup-success:not([hidden]) {
    animation: success-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  }
}
@keyframes success-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
/* Confetti overlay (.confetti-canvas) is spawned by main.js, which sets its
   positioning inline so a stale cached stylesheet can't break it. */

/* ---------- Hero book art (transparent PNG render, blends into page bg) ----------
   drop-shadow (not box-shadow) so the shadow follows the book's silhouette,
   not the transparent canvas rectangle. Glow + dot grid give the hero depth. */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
/* layered backdrop: warm spotlight glow + fine navy dot grid, vignetted */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -12% -16%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 50% 46%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(closest-side at 50% 46%, rgba(30, 58, 95, 0.10), rgba(30, 58, 95, 0) 78%),
    radial-gradient(rgba(30, 58, 95, 0.22) 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 38%, transparent 78%);
          mask-image: radial-gradient(closest-side at 50% 48%, #000 38%, transparent 78%);
}
.book-cover-img {
  width: min(340px, 76vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 2px 4px rgba(31, 35, 41, 0.28))
    drop-shadow(0 18px 30px rgba(31, 35, 41, 0.40));
}

/* ---------- Credibility strip: big serif numerals over small-cap labels ---------- */
.cred {
  border-top: 1px solid var(--rule);
  padding: 34px 0;
  background: #FFFFFF; /* crisp white sheet between the warm hero and the cool framework band */
}
.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.cred-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 16px;
}
.cred-list li + li { border-left: 1px solid var(--rule); }
.cred-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
}
.cred-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Bands: stacked sheets ----------
   Each section is a distinct tonal layer (warm paper, white, cool tint,
   warm tint, navy). Sections higher on the page sit "on top" and cast a
   soft shadow onto the one below, so the page reads as layered sheets
   rather than one flat scroll. */
.band { padding: clamp(64px, 9vw, 110px) 0; }

main > section { position: relative; }
.hero      { z-index: 5; }
.cred      { z-index: 4; }
.framework { z-index: 3; }
.about     { z-index: 2; }
.final-cta { z-index: 1; }
.hero,
.cred,
.framework,
.about {
  box-shadow: 0 18px 32px -26px rgba(31, 35, 41, 0.45);
}

.framework {
  text-align: center;
  /* cool-tinted sheet between the white strip and the warm about band */
  background: linear-gradient(180deg, #EEF2F7, #F6F8FA);
}
.framework .lead { margin-left: auto; margin-right: auto; }

/* ---------- Three M's stacked tiers ---------- */
.mmm {
  margin: 44px auto 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tier {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border-radius: 5px;
  padding: 18px 24px;
  box-shadow:
    0 1px 2px rgba(31, 35, 41, 0.10),
    0 10px 24px rgba(31, 35, 41, 0.10);
}
.tier-name { font-family: var(--font-display); }
.tier-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.65;
}
.tier-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
}
.tier-gloss {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.8;
}
.tier-machine { background: #FBFCFE; color: var(--ink); border: 1px solid var(--rule); }
.tier-method  { background: #46618A; color: #FFFFFF; }
.tier-mindset { background: var(--navy-deep); color: #FFFFFF; }
.mmm-caption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
}

/* ---------- About ---------- */
.about {
  background: var(--paper-2); /* warm sheet after the cool framework band */
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}
.about-cta { margin-top: 28px; }
/* offset navy plate behind the photo for depth */
.about-photo { position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  background: rgba(30, 58, 95, 0.12);
  border-radius: 4px;
}
.about-photo img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  box-shadow:
    0 1px 2px rgba(31, 35, 41, 0.12),
    0 16px 36px rgba(31, 35, 41, 0.18);
}

/* ---------- Final CTA: deep navy closing band ---------- */
.final-cta {
  position: relative;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(74, 158, 255, 0.14), transparent 65%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-ink));
  color: #FFFFFF;
  border-top: 1px solid rgba(201, 163, 92, 0.45); /* gold hairline seam */
}
.final-cta .h2 { color: #FFFFFF; }
.final-cta .lead { margin: 0 auto 28px; color: rgba(255, 255, 255, 0.78); }
.final-cta .signup-success { color: #FFFFFF; }
.final-cta .signup-input { border-color: transparent; }
.final-cta .btn-primary {
  background: var(--paper);
  color: var(--navy-deep);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.25);
}
.final-cta .btn-primary:hover { background: #FFFFFF; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-mark { display: block; width: 26px; height: 26px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--navy); }
.footer-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: -1; }
  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .about-photo { order: -1; max-width: 300px; margin: 0 auto; }
  .signup { flex-direction: column; }
  .cred-list { grid-template-columns: 1fr; gap: 18px; }
  .cred-list li + li { border-left: none; border-top: 1px solid var(--rule); padding-top: 18px; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .header-title { font-size: 0.74rem; letter-spacing: 0.14em; }
  .header-link { white-space: nowrap; font-size: 0.84rem; }
}

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