@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Patrick+Hand&display=swap");

:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #302f38;
  --soft-ink: #67616a;
  --blue: #245f78;
  --coral: #ee756d;
  --deep-coral: #d95f5c;
  --strawberry-coral: #bd5552;
  --deep-strawberry-coral: #b94e50;
  --pink: #eaa1ad;
  --line: #e8d7bf;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --serif: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f2eee8;
  font-family: var(--body);
  line-height: 1.45;
}

button, input { font: inherit; }

button { cursor: pointer; }

.order-page {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 38px) 116px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 60px rgba(86, 58, 37, .1);
}

.offer-banner {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 calc(-1 * clamp(18px, 5vw, 38px));
  padding: 6px 18px;
  background: #194d63;
  color: #fff;
  font-size: clamp(10px, 2.7vw, 12px);
  letter-spacing: .015em;
  line-height: 1.25;
  text-align: center;
}

.offer-banner span { color: #ffd7af; font-size: 9px; }

.shop-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 calc(-1 * clamp(18px, 5vw, 38px));
  padding: 0 clamp(18px, 5vw, 38px);
  border-bottom: 1px solid rgba(36,95,120,.12);
  background: rgba(255,255,255,.98);
  box-shadow: 0 3px 13px rgba(62,47,36,.055);
}

.top-hero {
  position: relative;
  margin: 0 calc(-1 * clamp(18px, 5vw, 38px)) 28px;
  padding: 22px clamp(18px, 5vw, 38px) 24px;
  border-bottom: 1px solid rgba(213, 190, 159, .52);
  background: #fff;
}

.intro {
  text-align: center;
}

.lc-logo {
  display: flex;
  width: max-content;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.my-order-nav {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.my-order-nav:hover { color: var(--strawberry-coral); transform: translateY(-1px); }
.my-order-nav:focus-visible { border-radius: 50%; outline: 2px solid rgba(36,95,120,.55); outline-offset: 2px; }

.my-order-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.my-order-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 8px;
  width: 8px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.my-order-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 3px;
  width: 18px;
  height: 10px;
  border: 1.8px solid currentColor;
  border-radius: 11px 11px 3px 3px;
}

.lc-logo > span {
  color: var(--coral);
  background: linear-gradient(90deg, #ef756b 0 18%, #efb742 18% 35%, #7da76f 35% 52%, #7caec1 52% 70%, #9b83a7 70% 86%, #ef756b 86%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--hand);
  font-size: clamp(17px, 4.5vw, 23px);
  font-weight: 400;
  letter-spacing: .025em;
  -webkit-text-fill-color: transparent;
}

.lc-logo > span::after {
  content: "";
  display: inline-block;
  width: 1.28em;
  height: 1.28em;
  margin-left: .16em;
  vertical-align: -.34em;
  background: url("../little-chapter/images/little-chapter-star.png") center / contain no-repeat;
}

.lc-logo small {
  margin-top: 7px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.intro h1 {
  width: 100%;
  margin: 0 auto 26px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(21.5px, 6.5vw, 39px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.intro h1 span { white-space: nowrap; }

.intro p {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: none;
}

.story-carousel {
  --story-gutter: clamp(18px, 5vw, 38px);
  margin: 24px calc(-1 * clamp(18px, 5vw, 38px)) 10px;
  padding: 24px 0;
  overflow: hidden;
  background: #f5eadc url("./images/product-room-background.jpg") center / cover no-repeat;
}

.story-track {
  display: flex;
  direction: ltr;
  column-gap: calc(var(--story-gutter) + var(--story-gutter));
  padding-inline: var(--story-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
}

.story-track::-webkit-scrollbar { display: none; }

.story-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 6px 0 -12px;
}

.story-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.story-dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(48,47,56,.34);
  transform: translate(-50%,-50%);
  transition: width 160ms ease, background-color 160ms ease;
}

.story-dots button[aria-current="true"]::before {
  width: 19px;
  background: var(--deep-strawberry-coral);
}

.story-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 999px; }

.story-track.is-auto-sliding {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.keepsake-story {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1.05 / 1;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.story-set {
  direction: ltr;
  overflow: hidden;
}

figure { margin: 0; }

.keepsake {
  position: absolute;
  top: 0;
  right: 1%;
  width: 76%;
  transform: none;
}

.keepsake img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: none;
}

.keepsake-layered .keepsake-art-insert {
  position: absolute;
  z-index: 1;
  top: 11.6%;
  left: 14.2%;
  width: 71.6%;
  height: 76.9%;
  border-radius: 0;
  object-fit: cover;
}

.source-photo {
  position: absolute;
  z-index: 2;
  bottom: 174px;
  left: 3%;
  width: 28%;
  max-width: 128px;
  padding: 7px 7px 21px;
  border: 1px solid rgba(185, 157, 124, .28);
  background: #f4eadb;
  box-shadow: 0 8px 16px rgba(75, 54, 39, .14);
  transform: rotate(-8deg);
}

.message-letter {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  left: 2%;
  width: 30%;
  max-width: 132px;
  padding: 14px 11px 11px;
  border: 1px solid #ddcbb4;
  border-radius: 2px;
  background: linear-gradient(145deg, #f7eedc, #f3e7d1 72%, #efe0c6);
  color: #564630;
  font-family: var(--hand);
  box-shadow: none;
  transform: rotate(5deg);
}

.message-letter::after {
  content: "✦";
  position: absolute;
  top: 5px;
  right: 7px;
  color: #efb94a;
  font-size: 10px;
  opacity: .75;
}

.message-letter strong,
.message-letter p,
.message-letter small { display: block; position: relative; z-index: 1; }

.message-letter strong { margin-bottom: 8px; font-size: clamp(10px, 2.55vw, 13px); font-weight: 400; }
.message-letter p { margin: 0; font-size: clamp(8px, 2.05vw, 10px); line-height: 1.3; }
.message-letter p b { color: #4d3d2b; font-weight: 700; }
.message-letter small { margin-top: 9px; color: var(--coral); font-size: clamp(8px, 1.95vw, 10px); }

.source-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.sketch-arrow {
  position: absolute;
  z-index: 3;
  top: 38%;
  left: 25%;
  width: 48px;
  height: 25px;
  border-bottom: 3px solid var(--coral);
  border-radius: 0 0 72% 48%;
  color: var(--coral);
  font-size: 0;
  filter: drop-shadow(0 0 3px rgba(255, 249, 239, .95));
  transform: rotate(12deg);
}

.sketch-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  transform: rotate(-22deg);
}

.photo-note {
  margin: 22px auto 4px;
  color: var(--soft-ink);
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  margin: 0 0 28px;
  padding: 18px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(238,117,109,.3);
  background: transparent;
}

.price-wrap { padding-bottom: 18px; }

.original-price {
  display: block;
  margin-bottom: 5px;
  color: var(--soft-ink);
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 700;
}

.original-price s { text-decoration-thickness: 1.5px; }

.current-price { display: flex; align-items: baseline; }

.price { color: var(--blue); font-family: var(--serif); font-size: clamp(46px, 13vw, 70px); font-weight: 800; line-height: .9; }

.currency { margin-left: 5px; color: var(--blue); font-size: clamp(18px, 5vw, 25px); font-weight: 800; }

.maple-leaf {
  width: 15px;
  height: 17px;
  object-fit: contain;
  vertical-align: -.2em;
}

.value-points {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(238,117,109,.3);
}

.value-point {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px 4px;
}

.value-point + .value-point { border-top: 1px solid rgba(238,117,109,.26); }

.value-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  overflow: visible;
  fill: none;
  stroke: #a82d2a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-point strong,
.value-point small { display: block; }

.value-point strong {
  color: var(--ink);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 800;
  line-height: 1.25;
}

.value-point small {
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.35;
}

.name-form { margin: 0 auto 29px; text-align: center; }

.name-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(23px, 6.4vw, 31px);
  font-weight: 800;
  letter-spacing: -.025em;
}

.name-form label img {
  width: 1.05em;
  height: 1.05em;
  object-fit: contain;
  vertical-align: -.22em;
}

.name-form input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1.5px solid #cfc5bc;
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: 17px;
  box-shadow: inset 0 1px 2px rgba(63,42,28,.05);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.name-form input::placeholder { color: #aaa5a3; }

.name-form input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(238,117,109,.13);
}

.primary-cta {
  width: 100%;
  min-height: 62px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(90deg, var(--strawberry-coral), var(--deep-strawberry-coral));
  color: #fff;
  font-size: clamp(17px, 4.5vw, 22px);
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 11px 24px rgba(140, 70, 66, .2);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-cta:hover, .primary-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(140, 70, 66, .27);
}

.primary-cta span { margin-left: 8px; font-size: 1.25em; }

.secure {
  margin: 11px 0 0;
  color: #79767a;
  font-size: 13px;
}

.secure img {
  width: 13px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -.18em;
}

.existing-order-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.founder-story {
  margin: 8px calc(-1 * clamp(18px, 5vw, 38px)) 36px;
  overflow: hidden;
  border-top: 1px solid rgba(189,85,82,.15);
  border-bottom: 1px solid rgba(189,85,82,.15);
  background: #f8f2eb;
}

.founder-portrait {
  height: 280px;
  overflow: hidden;
  background: #eee3d8;
}

.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.founder-copy {
  padding: 24px clamp(22px, 6vw, 38px) 27px;
}

.founder-kicker {
  margin: 0 0 5px;
  color: var(--strawberry-coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.founder-copy h2 {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: clamp(25px, 6.5vw, 33px);
  letter-spacing: -.025em;
  line-height: 1.12;
}

.founder-copy > p:not(.founder-kicker, .founder-signature) {
  margin: 0 0 12px;
  color: var(--soft-ink);
  font-size: clamp(13px, 3.45vw, 15px);
  line-height: 1.55;
}

.founder-signature {
  margin: 17px 0 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1.05;
}

.founder-signature span {
  display: block;
  margin-top: 5px;
  color: var(--soft-ink);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.parent-reviews {
  margin: 4px 0 28px;
  text-align: center;
}

.parent-reviews h2 {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: clamp(22px, 5.8vw, 29px);
  letter-spacing: -.025em;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 18px 16px 15px;
  border: 1px solid rgba(189,85,82,.2);
  border-radius: 14px;
  background: #fff8f6;
  text-align: left;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px,3.5vw,15px);
  font-weight: 700;
  line-height: 1.45;
}

.review-card figcaption {
  margin-top: 14px;
  color: var(--strawberry-coral);
  font-size: 11px;
  font-weight: 850;
}

.faq-section {
  margin: 34px 0 32px;
}

.faq-section > h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(25px, 6.5vw, 32px);
  letter-spacing: -.025em;
  text-align: center;
}

.faq-list {
  border-top: 1px solid rgba(48,47,56,.16);
}

.faq-list details {
  border-bottom: 1px solid rgba(48,47,56,.16);
  background: #fff;
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) 22px;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(36,95,120,.55);
  outline-offset: 3px;
}

.faq-list summary i {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.faq-list summary i::before,
.faq-list summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blue);
  transform: translate(-50%,-50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.faq-list summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-list details[open] summary i::after { opacity: 0; transform: translate(-50%,-50%) rotate(0); }

.faq-answer {
  padding: 0 38px 19px 2px;
  color: var(--soft-ink);
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.6;
}

.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--ink); font-weight: 800; }

.signoff {
  margin: 0;
  color: var(--blue);
  font-family: var(--hand);
  font-size: clamp(20px, 5.3vw, 27px);
  text-align: center;
  transform: rotate(-1deg);
}

.signoff img {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  vertical-align: -.28em;
}

.sticky-cta {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 11px;
  width: min(100%, 620px);
  min-height: 72px;
  margin: 0 auto;
  padding: 9px max(18px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-radius: 20px 20px 0 0;
  background:
    radial-gradient(circle, rgba(255,244,232,.14) 0 1.15px, transparent 1.4px) 2px 3px / 19px 19px,
    radial-gradient(circle, rgba(255,224,215,.09) 0 .9px, transparent 1.2px) 8px 10px / 27px 27px,
    linear-gradient(90deg, var(--strawberry-coral), var(--deep-strawberry-coral));
  color: #fff;
  box-shadow: 0 -10px 28px rgba(118,58,55,.18);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transform: translateZ(0);
}

.sticky-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -48px;
  left: 0;
  height: 49px;
  background: linear-gradient(90deg, var(--strawberry-coral), var(--deep-strawberry-coral));
  pointer-events: none;
}

.sticky-cta img {
  width: 42px;
  height: 49px;
  border: 3px solid white;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(77,41,32,.2);
}

.sticky-cta [data-checkout-label] {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 800;
  text-align: left;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.sticky-cta:focus-visible { outline: 3px solid rgba(36, 95, 120, .55); outline-offset: -4px; }

.sticky-cta > span { font-size: 30px; line-height: 1; }

@media (min-width: 480px) {
  .founder-story {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
  }

  .founder-portrait { height: auto; min-height: 390px; }
  .founder-copy { align-self: center; padding: 30px 32px; }
}

@media (max-width: 430px) {
  .intro h1 {
    font-size: clamp(21.5px, 6vw, 25px);
    letter-spacing: -.04em;
  }
  .story-carousel { margin-top: 22px; }
  .keepsake-story { aspect-ratio: 1.04 / 1; }
  .keepsake { right: 1%; width: 76%; }
  .source-photo { bottom: 164px; }
  .message-letter { padding: 11px 8px 9px; }
  .price-card { padding-top: 17px; }
  .value-point { grid-template-columns: 46px minmax(0,1fr); gap: 10px; }
  .value-icon { width: 38px; height: 38px; }
}

/* Keep rotated photos and product frames clear of the carousel's clipping edges. */
.story-set .keepsake { right: 3%; width: 73%; }
.story-set .source-photo { left: 5%; }
.story-set .message-letter { left: 4%; }

@media (max-width: 355px) {
  .intro h1 {
    width: calc(100% + 12px);
    margin-inline: -6px;
    font-size: 21.5px;
  }
  .price-wrap { padding-bottom: 14px; }
  .value-point { padding-inline: 5px; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 0; }
  .sticky-cta { grid-template-columns: 38px 1fr 24px; gap: 8px; padding-inline: 12px; }
}

/* Tighten the two oversized vertical pauses in the phone hero. */
.intro h1 { margin-bottom: 16px; }

/* Let the native horizontal carousel breathe beyond its old clipping frame. */
.story-carousel,
.story-set { overflow: visible; }
.story-track { column-gap: calc(var(--story-gutter) + var(--story-gutter)); }

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