/* Little Pages: soft pastel landing page. Plain CSS, no build step. */

:root {
  --background: oklch(0.985 0.012 85);
  --foreground: oklch(0.32 0.03 40);
  --card: oklch(1 0.004 85);
  --primary: oklch(0.68 0.12 10);
  --primary-hover: oklch(0.63 0.12 10);
  --primary-foreground: oklch(0.99 0.005 85);
  --secondary: oklch(0.93 0.035 230);
  --muted: oklch(0.955 0.02 75);
  --muted-foreground: oklch(0.52 0.03 45);
  --accent-foreground: oklch(0.35 0.05 150);
  --border: oklch(0.91 0.025 60);
  --blush: oklch(0.9 0.05 10);
  --sky: oklch(0.9 0.05 230);
  --sage: oklch(0.88 0.05 150);
  --butter: oklch(0.94 0.07 90);
  --shadow-soft: 0 18px 40px -18px color-mix(in oklab, var(--primary) 35%, transparent);
  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --radius: 1.25rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.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; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container-md { max-width: 64rem; }
.container-sm { max-width: 48rem; }
.section { padding: 5rem 0; }
.bg-muted { background: color-mix(in oklab, var(--muted) 60%, transparent); }
.bg-secondary { background: color-mix(in oklab, var(--secondary) 50%, transparent); }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
  font-weight: 800; text-decoration: none; padding: .625rem 1.25rem; font-size: .9rem;
  box-shadow: var(--shadow-soft); transition: transform .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-hover); }
.btn:focus-visible, .icon-btn:focus-visible, .preview-btn:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--primary) 50%, transparent); outline-offset: 2px;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--background) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--blush); color: var(--primary); }

/* Hero */
.hero { position: relative; overflow-x: clip; }
.blob { position: absolute; width: 18rem; height: 18rem; border-radius: 999px; filter: blur(64px); pointer-events: none; }
.blob-1 { left: -6rem; top: 2.5rem; background: color-mix(in oklab, var(--blush) 60%, transparent); }
.blob-2 { right: -5rem; bottom: 0; background: color-mix(in oklab, var(--sky) 60%, transparent); }
.hero-grid { position: relative; display: grid; gap: 3.5rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; background: var(--sage); color: var(--accent-foreground); padding: .375rem 1rem; font-size: .875rem; font-weight: 800; }
.pill .icon { width: 1rem; height: 1rem; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.25rem, 6vw, 3.75rem); }
.hero-lead { margin-top: 1.25rem; max-width: 32rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.price-chip { background: var(--card); border-radius: 1rem; padding: .5rem 1rem; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .875rem; font-weight: 700; }
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust .icon { width: 1rem; height: 1rem; color: var(--primary); }

.covers { position: relative; margin: 0 auto; width: 100%; max-width: 24rem; height: 20rem; }
.covers img {
  position: absolute; height: 16rem; width: auto; aspect-ratio: 735 / 951; object-fit: cover;
  border-radius: 1rem; border: 4px solid var(--card); box-shadow: var(--shadow-soft);
}
.covers .c-left { left: 0; top: 2rem; transform: rotate(-12deg); }
.covers .c-right { right: 0; top: 1.5rem; transform: rotate(12deg); }
.covers .c-front { left: 50%; top: 0; transform: translateX(-50%); z-index: 1; }

/* Price */
.price { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .75rem; }
.price-amount { font-family: var(--font-display); font-weight: 600; color: var(--primary); font-size: 1.875rem; line-height: 1.1; }
.price-big .price-amount { font-size: 3rem; }
.price-note { font-size: .875rem; color: var(--muted-foreground); }
.badge { border-radius: 999px; background: var(--sage); color: var(--accent-foreground); padding: .25rem .75rem; font-size: .75rem; font-weight: 800; }
.price-anchor { flex-basis: 100%; text-align: center; font-size: .875rem; color: var(--muted-foreground); }

/* Section titles */
.section-title { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.eyebrow { margin-bottom: .5rem; font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.section-title h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); }
.section-title .sub { margin-top: 1rem; color: var(--muted-foreground); }

/* Books */
.grid { display: grid; gap: 1.5rem; }
.book {
  border: 1px solid var(--border); background: var(--card); border-radius: 1.75rem; padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.book img { width: 8rem; aspect-ratio: 8.5 / 11; object-fit: cover; border-radius: 1rem; border: 1px solid var(--border); margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.book h3 { font-size: 1.25rem; }
.book .pages { margin-top: .25rem; font-size: .875rem; font-weight: 800; color: var(--primary); }
.book p:last-child { margin-top: .5rem; color: var(--muted-foreground); }
.bonus-strip {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem;
  border-radius: 1.5rem; background: var(--butter); padding: 1.25rem 1.5rem; text-align: center; font-weight: 700;
}
.bonus-strip span { display: inline-flex; align-items: center; gap: .5rem; }

/* Benefits */
.benefit { display: flex; gap: 1rem; }
.benefit h3 { font-size: 1.125rem; }
.benefit p { color: var(--muted-foreground); }
.dot { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; flex-shrink: 0; }
.dot-lg { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; }
.dot-lg .icon { width: 1.5rem; height: 1.5rem; }
.tone-0 { background: var(--blush); } .tone-1 { background: var(--sky); } .tone-2 { background: var(--sage); } .tone-3 { background: var(--butter); }

/* Carousel */
.carousel { position: relative; max-width: 64rem; margin: 0 auto; padding: 0 2.75rem; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; column-gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem .25rem 1rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; margin: 0; }
.preview-btn {
  display: block; width: 100%; padding: 0; cursor: zoom-in; aspect-ratio: 8.5 / 11; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1.75rem; background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / .06); transition: transform .2s ease, box-shadow .2s ease;
}
.preview-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.preview-btn img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { margin-top: .75rem; text-align: center; font-size: .875rem; font-weight: 700; }
.icon-btn {
  position: absolute; top: 42%; transform: translateY(-50%); display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground); cursor: pointer; box-shadow: 0 1px 3px rgb(0 0 0 / .08);
}
.icon-btn:hover { background: var(--muted); }
.icon-btn .icon { width: 1rem; height: 1rem; }
.carousel .prev { left: 0; } .carousel .next { right: 0; }

.lightbox { border: 0; border-radius: 1.75rem; padding: 1rem; width: min(92vw, 44rem); max-height: 92vh; background: var(--card); color: var(--foreground); }
.lightbox::backdrop { background: rgb(40 30 25 / .55); }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.lightbox-head h3 { font-size: 1.125rem; }
.lightbox img { margin: 0 auto; max-height: 75vh; width: auto; max-width: 100%; border-radius: .75rem; border: 1px solid var(--border); object-fit: contain; }
.lightbox .icon-btn { position: static; transform: none; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border-radius: 1.75rem; padding: 1.5rem; text-align: center; }
.step .dot-lg { background: var(--blush); color: var(--primary); }
.step .num { font-size: .875rem; font-weight: 800; color: var(--primary); }
.step h3 { font-size: 1.25rem; }
.step p:last-child { margin-top: .5rem; color: var(--muted-foreground); }

/* Promise */
.promise { border: 1px solid var(--border); background: var(--card); border-radius: 1.75rem; padding: 1.5rem; text-align: center; }
.promise h3 { font-size: 1.25rem; }
.promise p { margin-top: .5rem; color: var(--muted-foreground); }

/* Pricing */
.pricing-card {
  max-width: 32rem; margin: 0 auto; text-align: center; background: var(--card);
  border: 4px solid var(--blush); border-radius: 2rem; padding: 2rem; box-shadow: var(--shadow-soft);
}
.pricing-card h2 { margin-top: .5rem; font-size: 1.875rem; }
.pricing-card .price { margin-top: 1.5rem; }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; text-align: left; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .75rem; }
.checks .icon { color: var(--accent-foreground); margin-top: .15rem; }
.bonus-box { margin-top: 1.5rem; border-radius: 1rem; background: var(--butter); padding: 1rem; text-align: left; }
.bonus-box p { display: flex; align-items: center; gap: .5rem; font-weight: 800; margin-bottom: .5rem; }
.bonus-box p .icon { width: 1rem; height: 1rem; }
.bonus-box ul { list-style: none; padding: 0; margin: 0; font-size: .875rem; display: grid; gap: .25rem; }
.pricing-card .btn-block { margin-top: 2rem; }
.checkout-note { margin-top: .75rem; font-size: .75rem; color: var(--muted-foreground); }
.guarantee { margin-top: 1.25rem; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }
.guarantee .icon { color: var(--accent-foreground); }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 0 1.25rem; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1rem; height: 1rem; color: var(--muted-foreground); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: 1rem; color: var(--muted-foreground); }

/* Final CTA */
.final { max-width: 64rem; margin: 0 auto; border-radius: 2rem; background: var(--blush); padding: 3.5rem 1.5rem; text-align: center; }
.final h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); }
.final p { margin: .75rem auto 0; max-width: 36rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.final .btn { margin-top: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: .875rem; color: var(--muted-foreground); }
.site-footer .container { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--foreground); }

/* Sticky mobile buy bar */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--card) 95%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
}
.buy-bar .name { font-size: .875rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar .meta { font-size: .875rem; }
.buy-bar .meta small { font-size: .75rem; color: var(--muted-foreground); }
.has-buy-bar { padding-bottom: 5rem; }

/* Legal pages */
.legal { max-width: 48rem; margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
.legal .back { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.legal h1 { margin-top: 1.5rem; font-size: clamp(2rem, 5vw, 2.5rem); }
.legal .updated { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.legal h2 { margin-top: 2.25rem; font-size: 1.375rem; }
.legal p, .legal ul { margin-top: .75rem; color: color-mix(in oklab, var(--foreground) 88%, transparent); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .375rem; }
.legal a { color: var(--primary); }

/* Breakpoints */
@media (min-width: 640px) {
  .covers { height: 24rem; }
  .covers img { height: 18rem; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-track { grid-auto-columns: calc(50% - .5rem); }
  .pricing-card { padding: 2.5rem; }
  .site-footer .container { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; }
  .grid-3-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buy-bar { display: none; }
  .has-buy-bar { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { column-gap: 2rem; row-gap: 2.5rem; }
  .carousel-track { grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
