/* ============================================================
   Rayhaan Jay — Author Site
   Brand: Luna's Colour Quest
   ============================================================ */

:root {
  /* Brand palette — from Luna's Colour Quest Brand Bible */
  --luna-blue:       #4A90D9;
  --luna-blue-deep:  #2E6FB3;
  --luna-blue-soft:  #E4EFFA;
  --fox-orange:      #E8762B;
  --fox-orange-soft: #FBE6D5;
  --sunflower:       #F5C842;
  --sunflower-soft:  #FCEEC3;
  --leaf-green:      #5B9A5E;
  --leaf-green-soft: #E1ECDE;
  --lavender:        #B39DDB;
  --lavender-soft:   #ECE6F6;
  --cream:           #FAF8F3;
  --cream-deep:      #F2EDE2;
  --charcoal:        #3A3A3A;
  --charcoal-soft:   #6E6962;

  /* Type */
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body:    "Lora", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--luna-blue-deep); text-decoration-color: rgba(46,111,179,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--luna-blue-deep); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--fox-orange);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(232,118,43,0.6);
}
.btn-primary:hover { background: #d76a22; box-shadow: 0 10px 22px -8px rgba(232,118,43,0.7); }

.btn-secondary {
  background: var(--cream);
  color: var(--charcoal);
  border-color: rgba(58,58,58,0.18);
}
.btn-secondary:hover { border-color: var(--charcoal); background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(58,58,58,0.2);
}
.btn-ghost:hover { background: rgba(58,58,58,0.05); border-color: var(--charcoal); }

.btn-blue {
  background: var(--luna-blue);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(74,144,217,0.55);
}
.btn-blue:hover { background: var(--luna-blue-deep); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1240px;
  z-index: 50;
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(58,58,58,0.08);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 30px -18px rgba(58,58,58,0.25);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.author-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(58,58,58,0.18));
}
.author-mark svg { width: 100%; height: 100%; display: block; }

.bio-note .author-mark {
  vertical-align: -6px;
  margin-right: 6px;
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(58,58,58,0.06); }
.nav-links a.active { color: var(--luna-blue-deep); background: var(--luna-blue-soft); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { content:""; position: absolute; top: -6px; }
.nav-toggle span::after  { content:""; position: absolute; top:  6px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg) translate(4px,4px); }
.nav-toggle.open span::after  { transform: rotate(-45deg) translate(4px,-4px); }

.mobile-menu {
  position: fixed;
  top: 78px; left: 14px; right: 14px;
  z-index: 49;
  background: var(--cream);
  border: 1px solid rgba(58,58,58,0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 30px 60px -30px rgba(58,58,58,0.35);
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 14px; }
.mobile-menu li a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
}
.mobile-menu li a:hover { background: rgba(58,58,58,0.05); }
.mobile-menu .btn { width: 100%; justify-content: center; }

@media (max-width: 880px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(96px, 11vh, 132px);
  padding-bottom: clamp(48px, 6vh, 72px);
  background: var(--cream);
  overflow: visible;
}
.hero-centered {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  margin: 0 0 0.25em;
}
.hero h1 .accent { color: var(--fox-orange); display: inline-block; }
.hero h1 .blue   { color: var(--luna-blue-deep); }
.hero-sub {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--charcoal-soft);
  max-width: 52ch;
  margin: 14px auto 22px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(58,58,58,0.18);
  font-size: 12px;
  color: var(--charcoal-soft);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-green); }

/* ---- Hero stage: book mockup with peeking pages ---- */
.hero-stage {
  position: relative;
  width: min(440px, 84%);
  aspect-ratio: 1.6/1;
  margin: 18px auto 14px;
  perspective: 1400px;
  cursor: default;
}

.page-peek {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%;
  aspect-ratio: 1/1;
  background: #fff;
  padding: 8px 8px 10px;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 18px 32px -18px rgba(58,58,58,0.42),
    0 5px 12px -6px rgba(58,58,58,0.2);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
  z-index: 1;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}
.page-peek img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.hero-stage.active .page-peek {
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 26px 44px -20px rgba(58,58,58,0.5),
    0 9px 16px -8px rgba(58,58,58,0.26);
}

.book-mockup {
  position: absolute;
  top: 50%; left: 50%;
  width: 44%;
  aspect-ratio: 1/1;
  z-index: 2;
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.book-cover {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.06),
    0 32px 50px -22px rgba(58,58,58,0.5),
    0 12px 20px -10px rgba(58,58,58,0.3);
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.book-spine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 12px;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.32) 0%,
      rgba(0,0,0,0.12) 35%,
      rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.book-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: 12%; right: 0;
  background:
    linear-gradient(110deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.16) 28%,
      rgba(255,255,255,0) 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.book-pages-edge {
  position: absolute;
  top: 1.5%; bottom: 1.5%;
  right: -6px;
  width: 6px;
  background:
    repeating-linear-gradient(180deg,
      #f3ecd8 0 1.5px,
      #e6dcc2 1.5px 3px);
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 0 rgba(0,0,0,0.05);
}

@media (max-width: 720px) {
  .hero-stage { width: min(380px, 96%); aspect-ratio: 1.5/1; }
  .page-peek  { width: 36%; }
  .book-mockup { width: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-peek, .book-mockup { transition: none; }
}

/* ============================================================
   Polaroid / Book cover
   ============================================================ */
.polaroid {
  background: #fff;
  padding: 14px 14px 48px;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 18px 40px -18px rgba(58,58,58,0.35),
    0 6px 12px -6px rgba(58,58,58,0.18);
  position: relative;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.polaroid .caption {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--charcoal-soft);
}
.polaroid:hover { transform: translateY(-4px) rotate(0deg) !important; }

/* Caption-less polaroid — just a clean white border. */
.polaroid.no-caption { padding: 14px; }
.polaroid.no-caption .caption { display: none; }

/* Image wrapped in a polaroid */
.polaroid-img {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #f6f4ef;
  position: relative;
}
.polaroid-img img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Decorative watercolor PNG floating element */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(58, 58, 58, 0.08));
}
.deco-soft { opacity: 0.7; mix-blend-mode: multiply; }

/* Section contents need to sit above deco */
section > .wrap { position: relative; z-index: 2; }

.placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(135deg,
      rgba(58,58,58,0.04) 0 10px,
      rgba(58,58,58,0.07) 10px 20px);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  text-align: center;
  padding: 18px;
  overflow: hidden;
}
.placeholder .ph-tag {
  background: rgba(255,255,255,0.85);
  border: 1px dashed rgba(58,58,58,0.25);
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 80%;
}
.placeholder.tone-blue   { background-color: var(--luna-blue-soft); }
.placeholder.tone-green  { background-color: var(--leaf-green-soft); }
.placeholder.tone-orange { background-color: var(--fox-orange-soft); }
.placeholder.tone-yellow { background-color: var(--sunflower-soft); }
.placeholder.tone-lavender { background-color: var(--lavender-soft); }
.placeholder.tone-cream  { background-color: var(--cream-deep); }

/* Old hero book wrap (legacy) — not used by new centered hero */
.hero-book-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 64%;
  max-width: 360px;
}
.hero-book-wrap .placeholder,
.hero-book-wrap .polaroid-img { aspect-ratio: 1/1; }
.hero-book-wrap .ph-tag {
  font-size: 12px;
  background: #fff;
  border: 1.5px dashed rgba(58,58,58,0.3);
  padding: 10px 14px;
}

.hero-luna {
  position: absolute;
  right: -8%;
  bottom: -4%;
  width: 44%;
  max-width: 240px;
  z-index: 2;
  filter: drop-shadow(0 18px 26px rgba(58,58,58,0.22));
}
.hero-luna img { width: 100%; height: auto; display: block; transform: rotate(6deg); }

.hero-award {
  position: absolute;
  top: 4%;
  left: -2%;
  z-index: 3;
}

/* Real award seal image */
.award-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(58,58,58,0.18));
}
.award-img-wrap {
  width: 96px; height: 96px;
  display: inline-flex; align-items: center; justify-content: center;
}
.award-img-wrap.lg { width: 120px; height: 120px; }

/* CSS-rendered award seal (legacy fallback) */
.award {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff5cc 0 14%, var(--sunflower) 18% 60%, #c79a2c 100%);
  color: #5a3f08;
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px;
  box-shadow: 0 8px 20px -10px rgba(95,67,15,0.5), inset 0 0 0 4px rgba(255,255,255,0.4);
  position: relative;
}
.award strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 2px 0;
}
.award::before, .award::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 14px; height: 24px;
  background: var(--fox-orange);
}
.award::before { left: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }
.award::after  { right: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }

.award.silver {
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, #d8d3c5 18% 60%, #8d8678 100%);
  color: #3a3a3a;
}
.award.silver::before, .award.silver::after { background: var(--luna-blue); }

.award.green {
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, var(--leaf-green) 18% 60%, #2f5f31 100%);
  color: #fff;
}
.award.green::before, .award.green::after { background: var(--lavender); }

/* ============================================================
   About book section
   ============================================================ */
.section-book { background: var(--cream); }
.book-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.book-stage {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 4px 0;
}
.book-stage .polaroid { position: relative; width: 92%; }
.book-stage .p1 { transform: rotate(-2.5deg); justify-self: start;   margin-left: 0; }
.book-stage .p2 { transform: rotate(2deg);    justify-self: end;     margin-right: 0; }
.book-stage .p3 { transform: rotate(-1deg);   justify-self: start;   margin-left: 4%; }

.recognition {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 24px;
  max-width: 460px;
}
.recog-card {
  background: #fff;
  border: 1px solid rgba(58,58,58,0.08);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  min-height: 200px;
}
.recog-card .award-img-wrap { width: 78px; height: 78px; }
.recog-card .nalis-plaque {
  width: 78px; height: 78px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px -6px rgba(58,58,58,0.3);
}
.recog-card .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  line-height: 1.3;
}
.recog-card .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--charcoal);
}

@media (max-width: 820px) {
  .book-grid { grid-template-columns: 1fr; }
  .recognition { grid-template-columns: 1fr 1fr; }
}

/* Book section: Luna overlap with CTA button */
.book-cta-row {
  margin-top: 32px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 80px;
  isolation: isolate;
}
.book-cta-row .book-luna {
  position: absolute;
  right: -18px;
  bottom: -56px;
  width: 160px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(58,58,58,0.22));
}
.book-cta-row .book-luna img {
  width: 100%;
  height: auto;
  transform: rotate(6deg);
}
.book-cta-row .btn {
  position: relative;
  z-index: 5;
}
@media (max-width: 820px) {
  .book-cta-row .book-luna { width: 120px; right: 0; bottom: -44px; }
}

/* ============================================================
   Meet Luna
   ============================================================ */
.section-luna {
  background:
    radial-gradient(900px 500px at 90% 20%, rgba(179,157,219,0.35), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(74,144,217,0.25), transparent 60%),
    linear-gradient(180deg, #eef3f9 0%, #f0eaf6 100%);
  color: var(--charcoal);
}
.luna-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 60px -30px rgba(58,58,58,0.25);
}
.luna-art {
  position: relative;
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.luna-art::before {
  content: "";
  position: absolute;
  inset: 8% 0 6% 0;
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(255,255,255,0.85), rgba(255,255,255,0) 75%);
  z-index: 0;
}
.luna-art .luna-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 1;
  filter: drop-shadow(0 24px 32px rgba(58,58,58,0.18));
}
.fav-color-chip {
  position: absolute;
  bottom: -16px; right: -16px;
  z-index: 3;
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--charcoal);
  box-shadow: 0 10px 20px -10px rgba(58,58,58,0.3);
  display: inline-flex; align-items: center; gap: 8px;
}
.fav-color-chip .swatch {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--luna-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(58,58,58,0.1);
}
.luna-pull {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--luna-blue-deep);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.3;
  border-left: 3px solid var(--luna-blue);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
}

@media (max-width: 820px) {
  .luna-card { grid-template-columns: 1fr; }
}

/* ============================================================
   From the author
   ============================================================ */
.section-author {
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(245,200,66,0.18), transparent 60%),
    var(--leaf-green-soft);
}
.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.author-photo {
  position: relative;
  max-width: 360px;
}
.author-photo .placeholder { aspect-ratio: 4/5; border-radius: var(--radius); }
.author-photo .author-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 24px 50px -24px rgba(58,58,58,0.35);
}
.author-photo::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px; right: -14px; bottom: -14px;
  border: 2px solid var(--fox-orange);
  border-radius: var(--radius);
  z-index: -1;
}
.author-letter {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
}
.author-letter p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2em;
  float: left;
  line-height: 0.9;
  padding: 4px 10px 0 0;
  color: var(--fox-orange);
}
.signature {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 28px;
  color: var(--leaf-green);
  margin: 24px 0 8px;
}
.bio-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed rgba(58,58,58,0.2);
  font-size: 15px;
  color: var(--charcoal-soft);
}
.bio-note a { color: var(--leaf-green); text-decoration-color: rgba(91,154,94,0.4); font-weight: 600; }

@media (max-width: 820px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 280px; margin: 0 auto; }
}

/* ============================================================
   For schools
   ============================================================ */
.section-schools {
  background: #fdfdfb;
  border-top: 1px solid rgba(58,58,58,0.06);
  border-bottom: 1px solid rgba(58,58,58,0.06);
}
.schools-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.bullets {
  list-style: none;
  padding: 0; margin: 20px 0 0;
  display: grid; gap: 10px;
}
.bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  font-size: 15px;
}
.bullets li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
  background: var(--luna-blue);
}
.bullets li:nth-child(2)::before { background: var(--fox-orange); }
.bullets li:nth-child(3)::before { background: var(--sunflower); }
.bullets li:nth-child(4)::before { background: var(--leaf-green); }

.pricing-card {
  background: var(--luna-blue-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(74,144,217,0.25);
}
.pricing-card h3 {
  font-size: 20px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.pricing-card h3 small {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  color: var(--charcoal-soft);
}
.tier-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.tier {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px dashed rgba(46,111,179,0.25);
  font-family: var(--font-display);
}
.tier:last-child { border-bottom: 0; }
.tier .qty { font-weight: 700; font-size: 15px; color: var(--charcoal); }
.tier .qty small { font-weight: 500; color: var(--charcoal-soft); margin-left: 6px; font-size: 12px; font-family: var(--font-body); font-style: italic; }
.tier .price { font-weight: 800; font-size: 17px; color: var(--luna-blue-deep); }
.tier.highlight { background: rgba(255,255,255,0.7); border-radius: 10px; padding-left: 10px; padding-right: 10px; border-bottom: 0; }

.calc {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.calc-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--charcoal-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.calc-stepper {
  display: inline-flex; align-items: center;
  background: var(--luna-blue-soft);
  border-radius: 999px;
  padding: 4px;
}
.calc-stepper button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: #fff; color: var(--luna-blue-deep);
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px -2px rgba(0,0,0,0.2);
}
.calc-stepper button:hover { background: var(--luna-blue); color: #fff; }
.calc-stepper .num {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  width: 36px; text-align: center;
  color: var(--charcoal);
}
.calc-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--luna-blue-deep);
}
.calc-total small { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 12px; color: var(--charcoal-soft); display: block; }

.schools-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--charcoal-soft);
  font-style: italic;
}

@media (max-width: 820px) {
  .schools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Freebie
   ============================================================ */
.section-freebie {
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(232,118,43,0.18), transparent 60%),
    var(--sunflower-soft);
}
.freebie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.freebie-preview {
  position: relative;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.freebie-preview .freebie-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.05;
}
.freebie-stack .polaroid {
  position: absolute;
  width: 72%;
  background: #fff;
}
.freebie-stack .polaroid .polaroid-img {
  background: #fffdf6;
}
.freebie-stack .polaroid .polaroid-img img {
  object-fit: contain;
  padding: 6%;
}
.freebie-stack .polaroid.back  { top: 0;  left: 0;   transform: rotate(-6deg); z-index: 1; }
.freebie-stack .polaroid.mid   { top: 8%; right: 0;  transform: rotate(5deg); z-index: 2; }
.freebie-stack .polaroid.front { bottom: 0; left: 11%; transform: rotate(-2deg); z-index: 3; }
.freebie-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fox-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px -8px rgba(232,118,43,0.55);
}
.freebie-stamp::before {
  content: "↓";
  font-size: 14px;
  line-height: 1;
}
.freebie-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -25px rgba(58,58,58,0.25);
  border: 1px solid rgba(58,58,58,0.06);
}
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.form-row.single { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(58,58,58,0.15);
  font: inherit;
  background: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--luna-blue);
  background: #fff;
}
.field.err input { border-color: #c44; }
.field-err {
  font-family: var(--font-display);
  font-size: 12px;
  color: #c44;
  margin-top: 4px;
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.fine-print {
  font-size: 12px;
  color: var(--charcoal-soft);
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

.form-success {
  background: var(--leaf-green-soft);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1.5px solid var(--leaf-green);
}
.form-success h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--leaf-green);
}
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--leaf-green);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-weight: 900;
}

@media (max-width: 820px) {
  .freebie-grid { grid-template-columns: 1fr; }
  .freebie-preview { max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   Newsletter
   ============================================================ */
.section-newsletter { background: var(--cream); }
.newsletter-card {
  background:
    radial-gradient(500px 200px at 20% 0%, rgba(245,200,66,0.2), transparent 60%),
    linear-gradient(135deg, #fffdf6 0%, var(--cream-deep) 100%);
  border: 1px solid rgba(58,58,58,0.08);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before, .newsletter-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.newsletter-card::before { width: 80px; height: 80px; background: rgba(74,144,217,0.15); top: -20px; left: -20px; }
.newsletter-card::after  { width: 120px; height: 120px; background: rgba(91,154,94,0.12); bottom: -40px; right: -30px; }
.newsletter-card h2 { position: relative; }
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(58,58,58,0.12);
  border-radius: 999px;
  padding: 6px;
  max-width: 460px;
  margin: 24px auto 0;
}
.newsletter-form input {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font: inherit;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form .btn { font-size: 14px; padding: 12px 20px; }

/* ============================================================
   Testimonials / Social proof
   ============================================================ */
.section-testimonials {
  background: var(--leaf-green-soft);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: 0 14px 30px -18px rgba(58,58,58,0.2);
  display: flex; flex-direction: column;
}
.quote-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 0.6;
  color: var(--leaf-green);
  opacity: 0.4;
  position: absolute; top: 18px; left: 18px;
}
.quote-card .quote {
  position: relative;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  margin: 14px 0 18px;
  flex-grow: 1;
}
.quote-card .attribution {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.quote-card .attribution small {
  display: block;
  font-weight: 500;
  color: var(--charcoal-soft);
  margin-top: 2px;
  font-size: 12px;
}
.awards-row {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px dashed rgba(58,58,58,0.18);
}
.awards-row .award-cell {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 200px;
  text-align: center;
}
.awards-row .award-img-wrap { width: 110px; height: 110px; }
.awards-row .nalis-plaque {
  width: 90px; height: 110px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px -10px rgba(58,58,58,0.35);
}
.awards-row .award-cell .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  line-height: 1.4;
}

.testimonial-carousel {
  margin-top: 36px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.testimonial-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: testimonial-scroll 48s linear infinite;
}
.testimonial-track:hover { animation-play-state: paused; }
.testimonial-track .quote-card {
  width: 360px;
  flex-shrink: 0;
}
@keyframes testimonial-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

@media (max-width: 820px) {
  .testimonial-track .quote-card { width: 300px; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.section-final {
  background:
    radial-gradient(700px 400px at 80% 90%, rgba(245,200,66,0.3), transparent 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(232,118,43,0.18), transparent 60%),
    linear-gradient(180deg, #c8def4 0%, #b9d4ee 100%);
}
.final-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.final-stage {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 380px;
  margin: 0 auto;
}
.final-stage .polaroid { width: 100%; transform: rotate(-3deg); }
.final-stage .polaroid .placeholder,
.final-stage .polaroid .polaroid-img { aspect-ratio: 1/1; }
.purchase-list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
.purchase-list li {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(4px);
}
.purchase-list .channel {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--charcoal);
}
.purchase-list .channel small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  color: var(--charcoal-soft);
  margin-top: 2px;
}
.price-pill {
  background: var(--cream);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--charcoal);
}

@media (max-width: 820px) {
  .final-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #2a2826;
  color: #d8d4cc;
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--luna-blue), var(--leaf-green), var(--sunflower), var(--fox-orange), var(--lavender));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer-tag { font-family: var(--font-body); font-style: italic; color: #8d8678; max-width: 38ch; }
.footer h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d8678;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #d8d4cc; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.footer a:hover { color: var(--sunflower); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: #8d8678;
  font-family: var(--font-display);
}
.footer-bottom .eco {
  font-style: italic;
  font-family: var(--font-body);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================
   Decorative motifs
   ============================================================ */
.paw {
  display: inline-block;
  position: absolute;
  opacity: 0.45;
  pointer-events: none;
}
.paw .pad, .paw .toe {
  position: absolute;
  background: currentColor;
  border-radius: 50%;
}
.paw .pad { width: 14px; height: 12px; bottom: 0; left: 8px; }
.paw .toe { width: 7px; height: 8px; }
.paw .t1 { top: 0;  left: 0; }
.paw .t2 { top: -2px; left: 10px; }
.paw .t3 { top: -2px; left: 20px; }
.paw .t4 { top: 4px;  left: 28px; }

.splash {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
