:root {
  --bg: #f4f1e8;
  --surface: #fffdf8;
  --forest-900: #12372a;
  --forest-800: #2b4d3f;
  --forest-700: #436850;
  --sage-100: #dfe9df;
  --sage-200: #c7d8c8;
  --accent-gold: #d1b284;
  --text-900: #2d2d2d;
  --text-700: #495148;
  --line: #d8ddd3;
  --shadow: 0 12px 30px rgba(18, 55, 42, 0.14);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-900);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1300px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 55, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  color: #f8f6ef;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}

.menu a {
  color: #d9e6dc;
  font-weight: 500;
  font-size: 0.95rem;
}

.menu a:hover {
  color: #ffffff;
}

.nav-cta {
  background: var(--bg);
  color: var(--forest-900);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 50, 39, 0.12);
  transition: transform 0.12s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.hero {
  background: linear-gradient(180deg, var(--forest-900) 0%, var(--forest-800) 59%, var(--bg) 59%);
  padding: 40px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hero-left {
  display: grid;
  gap: 14px;
}

.hero-right {
  display: block;
  height: 100%;
}

.hero-copy {
  color: #f9faf8;
  padding: 0;
  max-width: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(199, 216, 200, 0.2);
  border: 1px solid rgba(199, 216, 200, 0.44);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  max-width: 16ch;
}

.hero-subtitle {
  margin: 12px 0 14px;
  max-width: none;
  color: #dbe8de;
  font-size: 1.05rem;
}

.hero-checklist {
  margin: 2px 0 0;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d5ddd2;
  background: #ffffff;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.hero-check-item {
  color: #111111;
}

.hero-check-mark {
  color: #2f6651;
  font-weight: 800;
}

.hero-check-sep {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f6651;
  line-height: 0;
  vertical-align: middle;
}

.hero-image {
  margin: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(235, 242, 236, 0.48);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.order-card {
  margin-top: 0;
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid #dde4da;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}

.order-card h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: var(--forest-900);
  text-align: center;
}

form {
  display: grid;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest-900);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

input[type="text"],
select,
textarea {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-900);
  font-size: 0.95rem;
  padding: 0 12px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #7d847d;
}

textarea {
  min-height: 92px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  padding: 10px 12px;
}

select {
  appearance: none;
  background-color: #fbfdfa;
  color: #6e766f;
  background-image:
    linear-gradient(45deg, transparent 50%, #466653 50%),
    linear-gradient(135deg, #466653 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

select.is-selected {
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  background-color: #ffffff;
}

select option {
  color: var(--text-900);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(67, 104, 80, 0.3);
  outline-offset: 1px;
}

.length-buttons {
  display: flex;
  gap: 8px;
}

.length-button {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d8c29b;
  background: #f8f0df;
  color: #5e4a24;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.length-button:hover {
  filter: brightness(0.98);
}

.length-button.is-selected {
  background: #d9b879;
  border-color: #bc9657;
  color: #3f2f12;
}

.order-card .primary-cta {
  margin-top: 8px;
  height: 48px;
  border: 1px solid #bc9657;
  border-radius: 12px;
  background: #d9b879;
  color: #3f2f12;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(117, 89, 47, 0.25);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.order-card .primary-cta:hover {
  filter: brightness(0.98);
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #111111;
  text-align: center;
}

.feature-strip {
  padding: 24px 0 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-grid article {
  background: #edf3ec;
  border-radius: 14px;
  border: 1px solid #d1dccf;
  padding: 14px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--forest-900);
}

.feature-grid p {
  margin: 0;
  color: var(--text-700);
  font-size: 0.92rem;
}

section {
  padding: 56px 0;
}

#how-it-works,
#sample,
#pricing,
#faq,
#order {
  scroll-margin-top: 90px;
}

.how,
.sample,
.faq {
  background: #f7f3e9;
}

.how h2,
.sample h2,
.pricing h2,
.faq h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  color: var(--forest-900);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps article {
  background: #fffef9;
  border: 1px solid #dbe1d9;
  border-radius: 14px;
  padding: 18px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--forest-900);
  font-weight: 700;
  font-size: 0.85rem;
}

.steps h3 {
  margin: 12px 0 8px;
  font-size: 1.14rem;
}

.steps p {
  margin: 0;
  color: var(--text-700);
}

.section-head {
  margin-bottom: 18px;
  text-align: center;
}

.section-head p {
  margin: 0;
  color: var(--text-700);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.book-card {
  background: #fffef9;
  border: 1px solid #dae2da;
  border-radius: 14px;
  padding: 14px;
}

.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.cover-one {
  background: linear-gradient(140deg, #375742, #12372a 55%, #d1b284);
}

.cover-sophia {
  aspect-ratio: 682 / 1024;
  background-image: url("./assets/sample-sophia-waiting-star.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.cover-oliver {
  aspect-ratio: 682 / 1024;
  background-image: url("./assets/sample-oliver-sunny.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-mark {
  aspect-ratio: 682 / 1024;
  background-image: url("./assets/sample-mark-winning-game-v2.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #f2ece0;
}

.cover-two {
  background: linear-gradient(140deg, #436850, #244235 52%, #d6b68b);
}

.cover-dino {
  aspect-ratio: 682 / 1024;
  background-image: url("./assets/sample-brave-little-dinosaur-v3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-three {
  background: linear-gradient(140deg, #4a6f58, #183a2d 57%, #caa979);
}

.cover-moon {
  aspect-ratio: 682 / 1024;
  background-image: url("./assets/sample-lucy-amazing-moon-adventure.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.book-card h3 {
  margin: 12px 0 10px;
  font-size: 1.05rem;
  text-align: center;
}

.book-hook {
  margin: 0 0 12px;
  color: var(--text-700);
  font-size: 0.9rem;
}

.book-link {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d0dacf;
  background: #f6f9f4;
  color: var(--forest-900);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.book-link + .book-link {
  margin-top: 8px;
}

.book-link.secondary {
  background: #ffffff;
}

.book-card button {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d0dacf;
  background: #f6f9f4;
  color: var(--forest-900);
  font-weight: 600;
  cursor: pointer;
}

.pricing {
  background: linear-gradient(180deg, #eee6d7 0%, #f6f2e8 100%);
}

.pricing-wrap {
  text-align: center;
}

.price-card {
  width: min(520px, 100%);
  margin: 0 auto;
  background: #fffef9;
  border: 1px solid #d7e0d6;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.plan {
  margin: 0;
  color: var(--text-700);
  font-weight: 600;
}

.price {
  margin: 8px 0 16px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--forest-900);
}

.price-card ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-700);
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--forest-700);
  font-weight: 700;
}

.price-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--forest-800);
  color: #fff;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.faq-grid article {
  background: #fffef9;
  border: 1px solid #dae2da;
  border-radius: 12px;
  padding: 16px;
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.faq-grid p {
  margin: 0;
  color: var(--text-700);
}

.footer {
  background: var(--forest-900);
  color: #d8e8da;
  padding: 18px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer a {
  margin-left: 14px;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .container {
    width: min(1300px, 94vw);
  }

  .nav {
    height: 66px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand {
    font-size: 1.12rem;
  }

  .menu {
    display: none;
  }

  .hero {
    padding: 28px 0 28px;
    background: linear-gradient(180deg, var(--forest-900) 0%, var(--forest-800) 76%, var(--bg) 76%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    margin: 10px 0 12px;
    font-size: 1rem;
  }

  .hero-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    white-space: normal;
    border-radius: 14px;
    line-height: 1.35;
    padding: 9px 11px;
  }

  .hero-check-sep {
    display: none;
  }

  .hero-image img {
    height: auto;
    object-fit: contain;
  }

  .hero-image {
    transform: none;
    border-radius: 14px;
  }

  .order-card {
    height: auto;
    padding: 18px;
  }

  .order-card h2 {
    font-size: 1.28rem;
    margin-bottom: 14px;
  }

  form {
    overflow: visible;
    padding-right: 0;
    gap: 9px;
  }

  .feature-grid,
  .steps,
  .sample-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 46px 0;
  }

  .price-card {
    padding: 20px 16px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer a {
    margin-left: 0;
    margin-right: 14px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1300px, 95vw);
  }

  .hero {
    padding: 24px 0 24px;
  }

  .eyebrow {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .hero-checklist {
    font-size: 0.74rem;
  }

  .order-card {
    border-radius: 14px;
    padding: 16px;
  }

  label {
    font-size: 0.88rem;
  }

  input[type="text"],
  select,
  textarea {
    height: 42px;
    font-size: 0.92rem;
  }

  textarea {
    min-height: 86px;
    max-height: 110px;
  }

  .length-buttons {
    gap: 6px;
  }

  .length-button {
    height: 38px;
    font-size: 0.8rem;
  }

  .book-card {
    padding: 12px;
    border-radius: 12px;
  }

  .book-card h3 {
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 8px;
  }

  .book-hook {
    font-size: 0.88rem;
  }

  .steps article,
  .faq-grid article {
    padding: 14px;
  }

  .price-card a {
    width: 100%;
    min-width: 0;
  }

  section {
    padding: 40px 0;
  }
}
