/* Pen and Paper Academy — mobile-first landing */
:root {
  --cream: #F7F4EE;
  --paper: #FFFCF7;
  --ink: #1A1916;
  --navy: #1B2158;
  --red: #E23B2A;
  --gold: #D4A04A;
  --gold-deep: #C48A2E;
  --yellow: #F2C94C;
  --muted: #5C584F;
  --line: #E4DDD0;
  --shadow: 0 24px 60px rgba(27, 33, 88, 0.12);
  --pad: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
body.has-sticky {
  padding-bottom: calc(72px + var(--safe-bottom));
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px;
}
.logo { height: 32px; width: auto; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #E8BE72, var(--gold-deep));
  color: #fff; font-weight: 700; border: 0; border-radius: 12px;
  padding: 12px 16px; cursor: pointer; font-size: 15px; line-height: 1.2;
  box-shadow: 0 10px 24px rgba(196, 138, 46, 0.28);
  text-align: center;
  min-height: 44px;
}
.btn-top {
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;
  flex: none;
  min-height: 36px;
  letter-spacing: -0.01em;
}
h1, h2, .display { font-family: Fraunces, Georgia, serif; letter-spacing: -0.03em; }
.script { font-family: "Great Vibes", cursive; color: var(--red); font-weight: 400; line-height: 1; }

.hero { padding: 16px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.hero-intro, .hero-proof, .form { min-width: 0; }
#cta { scroll-margin-top: calc(var(--header-h) + 12px); }

.display {
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.15; margin: 0 0 4px; color: var(--ink);
  overflow-wrap: anywhere;
}
.display .break { display: inline; }
.nowrap { white-space: nowrap; }
.rotate {
  min-height: 1.35em;
  font-size: clamp(24px, 6.6vw, 36px);
  color: var(--red);
  position: relative;
  margin: 0 0 8px;
}
.rotate span {
  position: absolute; left: 0; top: 0; right: 0;
  opacity: 0; transform: translateY(6px);
  animation: word 12s infinite;
  white-space: normal;
  overflow-wrap: anywhere;
}
.rotate span:first-child { opacity: 1; transform: none; }
.rotate span:nth-child(2) { animation-delay: 3s; }
.rotate span:nth-child(3) { animation-delay: 6s; }
.rotate span:nth-child(4) { animation-delay: 9s; }
@keyframes word {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-6px); }
}
.lede { font-size: 16px; color: var(--muted); max-width: 540px; margin: 8px 0 0; }

.stats {
  display: grid; grid-template-columns: 1fr;
  gap: 8px;
  border: 1.5px dashed #C9C1B2; border-radius: 16px;
  padding: 12px 14px; margin: 0 0 16px;
}
.stats ul { margin: 0; padding: 0; display: contents; }
.stats li {
  list-style: none; display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--navy); font-size: 14px;
}
.dot {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); font-size: 13px;
}
.proof { color: var(--navy); font-weight: 700; margin: 12px 0 4px; font-size: 15px; }
.stars { margin: 0; color: var(--ink); font-weight: 600; font-size: 14px; }

.card {
  background: var(--paper);
  border: 1px solid #F0E8DA;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}
.form h3 { margin: 0 0 2px; font-size: clamp(20px, 5.5vw, 24px); line-height: 1.2; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: var(--navy); }
input, textarea {
  width: 100%; max-width: 100%;
  border: 1px solid #E4DDD0; background: #FFFAF3;
  border-radius: 10px; padding: 12px 14px;
  font-size: 16px; color: var(--ink);
  min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid rgba(226,59,42,.25); border-color: var(--red); }
.form .btn { width: 100%; margin-top: 16px; min-height: 48px; }
.err { color: #B42318; font-weight: 700; font-size: 13px; margin-top: 10px; }
.btn-hero-extra { display: none; }

.feedback { margin-top: 16px; }
.quote-wrap { position: relative; padding: 0 28px; }
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
  align-items: center;
  min-height: 168px;
  padding: 14px;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  transition: opacity .16s ease, transform .16s ease;
}
.quote.is-out { opacity: 0; transform: translateX(12px); }
.quote.is-in { opacity: 1; transform: none; }
.quote img {
  width: 108px; height: 132px;
  object-fit: contain; object-position: top; margin: 0;
  background: transparent;
}
.quote blockquote { margin: 0; font-family: Fraunces, serif; font-style: italic; font-size: 15px; color: var(--ink); }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: 14px; }
.quote small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.quote-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  box-shadow: 0 6px 16px rgba(27, 33, 88, 0.08);
}
.quote-prev { left: 0; }
.quote-next { right: 0; }
.authors {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto; padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.authors::-webkit-scrollbar { display: none; }
.author-dot {
  width: 48px; height: 48px; padding: 0; border: 0; background: transparent;
  border-radius: 50%; flex: none; cursor: pointer;
  font-size: 0; color: transparent;
  overflow: hidden;
}
.author-dot img {
  width: 44px; height: 44px; object-fit: cover; object-position: top;
  border-radius: 50%; background: var(--yellow);
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.08);
  display: block; margin: 2px auto 0;
}
.author-dot.is-active { outline: 3px solid var(--gold); outline-offset: 1px; }

#netlify-badge,
#nf-badge,
.netlify-badge,
[id*="netlify-badge"],
[class*="netlify-badge"],
a[href="https://www.netlify.com"],
a[href^="https://www.netlify.com/"][aria-label*="Netlify"],
a[href*="netlify.com"][style*="position"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.section { padding: 40px 0; }
.white { background: #fff; }
.center { text-align: center; }
.script.big { font-size: clamp(36px, 11vw, 64px); margin: 0 0 16px; }
.section-kicker { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.section-title {
  font-size: clamp(26px, 7vw, 42px) !important;
  line-height: 1.18;
  margin: 0 0 8px;
}
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.step {
  background: var(--cream); border-radius: 16px; padding: 18px;
  border: 1px solid var(--line); min-width: 0;
}
.num { font-family: Fraunces, serif; font-size: 32px; color: var(--red); margin-bottom: 4px; }
.step h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.milestone { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.milestone img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.gold-card {
  background: linear-gradient(160deg, #F7E7C1, #E8C36A 55%, #C4963B);
  color: #2A220F; border-radius: 18px; padding: 20px;
}
.gold-card .script { font-size: 32px; margin: 0 0 6px; }
.gold-card h2 { margin: 0 0 8px; font-size: clamp(22px, 6.4vw, 32px); line-height: 1.2; }
.gold-card p { margin: 0 0 14px; font-size: 15px; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric { background: rgba(255,255,255,.45); border-radius: 12px; padding: 10px 8px; font-weight: 800; font-size: 12px; line-height: 1.3; text-align: center; }

.books {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.books-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-top: 28px;
  padding: 8px 0 16px;
}
.track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}
.track-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex: none;
}
.track img {
  width: 124px;
  height: 192px;
  max-width: none;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
  flex: 0 0 auto;
}

.cta-band {
  background: linear-gradient(180deg, #FFF8E6, #F7E3B0);
  border-radius: 20px; padding: 24px 16px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 7vw, 40px); margin: 0 0 10px; line-height: 1.15; }
.cta-band .btn { margin-top: 18px; width: min(100%, 360px); }

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; align-items: center; margin-top: 24px; }
.partners img { height: 24px; width: auto; max-width: 40%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .85; }

.videos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
video { width: 100%; border-radius: 16px; background: #111; height: 230px; object-fit: cover; }

.family { max-width: 760px; margin: 0 auto; font-size: 16px; color: var(--muted); }
.family-grid { text-align: center; }
.faq { max-width: 860px; margin: 0 auto; }
.faq-title { margin-bottom: 16px; font-size: clamp(24px, 6.5vw, 32px); }
.faq-col { min-width: 0; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 14px; margin: 8px 0;
}
summary {
  cursor: pointer; font-weight: 700; padding: 14px 0;
  color: var(--navy); list-style: none; font-size: 15px; line-height: 1.4;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  color: var(--gold-deep);
  font-size: 22px; line-height: 1; font-weight: 600;
  margin-top: 1px;
}
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.foot { padding: 20px 0 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--navy); font-weight: 600; }
.foot-links a:hover { color: var(--red); }
.thanks { min-height: 70vh; display: grid; place-items: center; padding: 28px 0; }
.thanks-card { width: min(640px, 100%); text-align: center; padding: 28px 18px; }
.thanks-script { font-size: clamp(36px, 10vw, 48px); margin: 0 0 8px; }
.thanks-title { font-size: clamp(22px, 6vw, 32px) !important; margin: 0 0 14px; line-height: 1.25; }
.thanks-copy { font-size: 16px; }
.thanks-btn { margin-top: 18px; width: 100%; min-height: 48px; }

.bottom-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.bottom-title { font-size: clamp(24px, 7vw, 36px) !important; margin: 0 0 10px; }
.check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: #E8F6EE; color: #047857; font-size: 30px;
}

.mob-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(12px + var(--safe-bottom));
  z-index: 60; display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 14px;
  background: linear-gradient(180deg, #E8BE72, var(--gold-deep));
  color: #fff; font-weight: 800; box-shadow: 0 12px 28px rgba(196, 138, 46, 0.35);
  transition: opacity .2s ease, transform .2s ease;
}
.mob-cta.is-hidden {
  opacity: 0; pointer-events: none; transform: translateY(12px);
}

@media (min-width: 640px) {
  :root { --pad: 24px; --header-h: 64px; }
  .logo { height: 38px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr 1fr; }
  video { height: 260px; }
  .track img { width: 140px; height: 218px; }
  .btn-top { font-size: 13px; padding: 10px 14px; }
  .partners img { height: 28px; max-width: 30%; }
  .metric { font-size: 13px; padding: 12px; }
}

/* iPad portrait */
@media (min-width: 768px) {
  :root { --pad: 28px; }
  body.has-sticky { padding-bottom: 0; }
  .mob-cta { display: none; }
  .logo { height: 42px; }
  .btn { padding: 13px 20px; }
  .btn-top { font-size: 14px; padding: 10px 16px; min-height: 42px; }
  .hero { padding: 28px 0 12px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    grid-template-areas:
      "intro form"
      "proof form";
    gap: 24px 28px;
    align-items: start;
  }
  .hero-intro { grid-area: intro; }
  .hero-grid .form { grid-area: form; }
  .hero .form { position: sticky; top: calc(var(--header-h) + 12px); }
  .hero-proof { grid-area: proof; }
  .display {
    font-size: clamp(28px, 4.2vw, 36px);
    overflow-wrap: break-word;
  }
  .display .break { display: block; }
  .rotate {
    font-size: clamp(26px, 4vw, 34px);
    min-height: 1.35em;
  }
  .rotate span {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .lede { font-size: 17px; margin-top: 12px; }
  .btn-hero-extra { display: none; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step { min-height: 0; padding: 20px; }
  .milestone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .quote-wrap { padding: 0 36px; }
  .quote { min-height: 180px; }
  .videos { grid-template-columns: 1fr 1fr; gap: 16px; }
  video { height: 280px; }
  .bottom-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .cta-band { padding: 32px 24px; }
  .cta-band .btn { width: auto; min-width: 280px; }
  .track img { width: 152px; height: 236px; }
  .card { padding: 22px; }
  .form h3 { font-size: 24px; }
  .thanks-btn { width: auto; }
}

/* iPad landscape / small laptop */
@media (min-width: 1024px) {
  :root { --pad: 32px; --header-h: 72px; }
  .logo { height: 46px; }
  .topbar-inner { padding-top: 12px; padding-bottom: 12px; }
  .hero { padding: 40px 0 24px; }
  .hero-grid { gap: 32px 40px; }
  .display { font-size: clamp(36px, 3.6vw, 46px); }
  .rotate { font-size: clamp(32px, 3.3vw, 42px); min-height: 56px; }
  .lede { font-size: 18px; margin-top: 16px; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .btn-top { font-size: 15px; min-height: 44px; }
  .section { padding: 68px 0; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .step { min-height: 220px; padding: 22px; }
  .quote {
    grid-template-columns: minmax(0, 1fr) 170px;
    background: transparent;
    border: 0;
    padding: 8px 0 0;
    min-height: 200px;
  }
  .quote img {
    width: 170px; height: 200px; border-radius: 12px;
    object-fit: cover; object-position: top; margin: 0;
  }
  .quote blockquote { font-size: 17px; }
  .quote-nav { width: 36px; height: 36px; }
  .videos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  video { height: 300px; }
  .gold-card { padding: 32px; }
  .gold-card h2 { font-size: 36px; }
  .cta-band { padding: 40px; border-radius: 28px; }
  .track img { width: 164px; height: 254px; }
  .family { font-size: 19px; max-width: none; margin: 0; }
  .family-section { padding: 72px 0; }
  .family-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 20px 56px;
    text-align: left;
    align-items: center;
  }
  .family-grid .section-title { margin: 0; }
  .script.big { font-size: 68px; }
  .thanks-card { padding: 48px 36px; }
  .faq { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
  .faq-title { font-size: 40px; margin-bottom: 28px; }
  details { margin: 0 0 12px; padding: 0 18px; }
  summary { font-size: 16px; padding: 16px 0; overflow-wrap: break-word; }
  details p { font-size: 16px; }
  .bottom-cta {
    gap: 48px;
    align-items: center;
    padding: 40px;
    background: var(--paper);
    border: 1px solid #F0E8DA;
    border-radius: 28px;
    box-shadow: var(--shadow);
  }
  .bottom-title { font-size: 42px !important; line-height: 1.12; overflow-wrap: break-word; }
  .bottom-cta .lede { font-size: 18px; max-width: 460px; }
}


/* Desktop */
@media (min-width: 1280px) {
  .wrap { max-width: 1220px; }
  .hero { padding: 48px 0 28px; }
  .hero-grid { gap: 36px 56px; }
  .display { font-size: 48px; }
  .rotate { font-size: 44px; min-height: 56px; }
  .steps { gap: 18px; }
  .step { min-height: 240px; }
  video { height: 320px; }
  .track img { width: 176px; height: 272px; }
  .gold-card h2 { font-size: 40px; }
  .form h3 { font-size: 26px; }
  .bottom-cta { padding: 48px 52px; gap: 56px; }
  .bottom-title { font-size: 48px !important; }
  .legal-card { padding: 48px 40px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotate span { animation: none; opacity: 0; }
  .rotate span:first-child { opacity: 1; transform: none; }
  .quote { transition: none; }
}

.legal { padding: 28px 0 64px; }
.legal-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 22px;
  width: 100%;
  overflow-wrap: break-word;
}
.legal-card h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); overflow-wrap: break-word; }
.legal-card .legal-updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.legal-card h2 { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 28px 0 10px; color: var(--navy); }
.legal-card p, .legal-card li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-card ul { margin: 0 0 12px; padding-left: 20px; }
.legal-card a { color: var(--navy); font-weight: 700; text-decoration: underline; }

@media (min-width: 1280px) {
  .legal-card { padding: 48px 40px; }
}
