/* ================================================================
   DOODLOO — Component Styles
   Section components used across multiple pages
   ================================================================ */

/* =========================
   HERO (homepage)
   ========================= */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__bg-pattern {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.7;
}
.hero__doodle {
  position: absolute;
  width: 60px; height: 60px;
  animation: floatSoft 8s ease-in-out infinite;
}
.hero__doodle--1 { top: 12%; left: 8%; animation-delay: 0s; }
.hero__doodle--2 { top: 64%; left: 4%; width: 56px; animation-delay: 1.5s; }
.hero__doodle--3 { top: 20%; right: 6%; width: 48px; animation-delay: 3s; }
.hero__doodle--4 { top: 76%; right: 10%; width: 70px; animation-delay: 0.8s; }
.hero__doodle--5 { top: 42%; left: 46%; width: 44px; animation-delay: 2.2s; }

.hero__grid {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--paper-cool);
  border: 1px solid rgba(28,27,23,0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.1s forwards;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(94, 166, 89, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  color: var(--ink);
}
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: riseIn 1s var(--ease-out) forwards;
}
.hero__word--1 { animation-delay: 0.2s; }
.hero__word--2 { animation-delay: 0.32s; }
.hero__word--3 { animation-delay: 0.44s; }
.hero__word--4 { animation-delay: 0.56s; }
.hero__word--5 { animation-delay: 0.68s; }

.hero__word--scribble {
  position: relative;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--ink);
  padding: 0 6px;
}
.hero__word--scribble .scribble-text { position: relative; z-index: 1; }
.hero__word--scribble .scribble {
  position: absolute;
  inset: -10px -16px;
  width: calc(100% + 32px);
  height: calc(100% + 20px);
  z-index: 0;
  pointer-events: none;
}
.hero__word--scribble .scribble path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawScribble 1.6s var(--ease-smooth) 1.8s forwards;
}

.hero__sub {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 44px;
  line-height: 1.55;
  opacity: 0;
  animation: riseIn 1s var(--ease-out) 1s forwards;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0;
  animation: riseIn 1s var(--ease-out) 1.15s forwards;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: riseIn 1s var(--ease-out) 1.3s forwards;
  flex-wrap: wrap;
}
.hero__trust-stars { display: flex; gap: 2px; }
.hero__trust-text { font-size: 0.88rem; color: var(--ink-muted); }
.hero__trust-divider { color: var(--ink-mute-soft); }

.hero__visual {
  position: relative;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease-out) 0.6s forwards;
}
.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
}

.hero__book {
  position: absolute;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  box-shadow:
    inset 6px 0 0 rgba(0,0,0,0.14),
    0 30px 60px -25px rgba(28,27,23,0.5),
    0 15px 30px -12px rgba(28,27,23,0.22);
  transform-style: preserve-3d;
}
.hero__book-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.hero__book-shadow {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(0,0,0,0.08) 100%);
  z-index: 2; pointer-events: none;
}
.hero__book-tape {
  position: absolute;
  width: 50px; height: 16px;
  background: rgba(247, 201, 72, 0.75);
  z-index: 4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero__book-tape--tl { top: -6px; left: 20px; transform: rotate(-8deg); }
.hero__book-tape--br { bottom: -6px; right: 20px; transform: rotate(5deg); }

.hero__book--main {
  width: 62%; aspect-ratio: 1 / 1;
  top: 12%; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  animation: floatBook 7s ease-in-out infinite;
  z-index: 3;
}
.hero__book--top {
  width: 42%; aspect-ratio: 1 / 1;
  top: -4%; right: -4%;
  transform: rotate(10deg);
  animation: floatBookSide 8s ease-in-out 1s infinite;
  z-index: 2;
  --r: 10deg;
}
.hero__book--bottom {
  width: 46%; aspect-ratio: 1 / 1;
  bottom: 2%; left: -6%;
  transform: rotate(-12deg);
  animation: floatBookSide 9s ease-in-out 2s infinite;
  z-index: 2;
  --r: -12deg;
}
.hero__orbit {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  animation: spinSlow 50s linear infinite;
}
.hero__sparkle {
  position: absolute;
  font-family: var(--f-display);
  color: var(--butter-deep);
  font-size: 1.6rem;
  animation: sparkle 3s ease-in-out infinite;
}
.hero__sparkle--1 { top: 10%; right: 20%; animation-delay: 0s; }
.hero__sparkle--2 { bottom: 20%; right: 8%; font-size: 1.2rem; animation-delay: 1s; color: var(--coral); }
.hero__sparkle--3 { top: 50%; left: 8%; font-size: 1.4rem; animation-delay: 2s; color: var(--blue); }

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s forwards;
}
.hero__scroll svg { animation: bounceArrow 2s ease-in-out infinite; }
.hero__scroll-text { transform: rotate(-5deg); }

/* =========================
   TICKER
   ========================= */
.ticker-section {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(247, 241, 225, 0.08);
  border-bottom: 1px solid rgba(247, 241, 225, 0.08);
  overflow: hidden;
  padding: 22px 0;
}
.ticker { overflow: hidden; }
.ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: ticker 35s linear infinite;
  width: max-content;
}
.ticker__item {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  white-space: nowrap;
}
.ticker__sep {
  color: var(--butter);
  font-size: 1.1rem;
}

/* =========================
   FEATURED ON
   ========================= */
.featured {
  padding: 64px 0 48px;
  background: var(--paper);
}
.featured__label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 32px;
}
.featured__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--ink-muted);
}
.featured__logo {
  height: 32px;
  transition: all 0.3s;
  opacity: 0.6;
}
.featured__logo:hover { opacity: 1; color: var(--ink); transform: translateY(-2px); }
.featured__logo svg { height: 100%; }
.featured__divider {
  width: 1px; height: 28px;
  background: rgba(28,27,23,0.15);
}
@media (max-width: 720px) {
  .featured__divider { display: none; }
  .featured__logos { gap: 28px 24px; }
}

/* =========================
   CALM / STRESS-RELIEF SECTION
   ========================= */
.calm {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  position: relative;
  overflow: hidden;
}
.calm__bg-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.calm__bg-blob--1 { background: var(--ocean); top: -10%; left: -10%; }
.calm__bg-blob--2 { background: var(--forest); bottom: -20%; right: -10%; }

.calm__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .calm__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.calm__copy h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 18px 0 28px;
}
.calm__copy h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--green);
}
.calm__lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
}
.calm__body {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1rem;
}
.calm__body em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.calm__benefits {
  list-style: none;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.calm__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.calm__check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--butter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.calm__benefits li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Visual side: a colored sample page in a frame */
.calm__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
}
.calm__sample {
  position: absolute;
  background: var(--paper-cool);
  border: 1px solid rgba(28,27,23,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-smooth);
}
.calm__sample img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.calm__sample--colored {
  width: 78%;
  aspect-ratio: 1;
  top: 0; left: 0;
  z-index: 2;
  transform: rotate(-3deg);
}
.calm__sample--line {
  width: 60%;
  aspect-ratio: 1;
  bottom: 0; right: 0;
  z-index: 1;
  transform: rotate(4deg);
}
.calm__sample:hover {
  transform: rotate(0) scale(1.04);
  z-index: 5;
}
.calm__visual-tag {
  position: absolute;
  top: -10px; right: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-hand);
  font-size: 1.2rem;
  padding: 6px 16px;
  border-radius: 999px;
  z-index: 6;
  box-shadow: var(--shadow);
  transform: rotate(8deg);
}

/* =========================
   COLLECTION (BOOKS GRID)
   ========================= */
.collection {
  padding: 100px 0 140px;
  background: var(--paper);
}
.col-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 56px;
  padding: 6px;
  background: var(--paper-warm);
  border: 1px solid rgba(28,27,23,0.08);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.col-filters::-webkit-scrollbar { display: none; }
.col-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.col-filter:hover { color: var(--ink); }
.col-filter--active {
  background: var(--ink);
  color: var(--paper);
}
.col-filter__count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(28,27,23,0.08);
}
.col-filter--active .col-filter__count {
  background: rgba(247, 241, 225, 0.18);
}

.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 56px 28px;
  perspective: 1500px;
}
@media (min-width: 720px) {
  .books { gap: 72px 36px; }
}

.book {
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  display: block;
  color: inherit;
}
.book.is-in { opacity: 1; transform: translateY(0); }
.book--hidden { display: none; }
.book__stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth);
  will-change: transform;
}
.book:hover .book__stage {
  transform: translateY(-14px) rotateX(var(--rx,0)) rotateY(var(--ry,0));
}
.book__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 3px 14px 14px 3px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow:
    inset 6px 0 0 rgba(0,0,0,0.14),
    0 20px 40px -18px rgba(28,27,23,0.3),
    0 8px 20px -10px rgba(28,27,23,0.15);
  transition: box-shadow 0.5s var(--ease-smooth);
}
.book:hover .book__cover {
  box-shadow:
    inset 6px 0 0 rgba(0,0,0,0.18),
    0 40px 70px -25px rgba(28,27,23,0.4),
    0 14px 28px -12px rgba(28,27,23,0.22);
}
.book__cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder cover for coming-soon books */
.book__placeholder {
  position: absolute; inset: 0;
  background: var(--book-color, var(--paper-warm));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10% 8% 7%;
  text-align: center;
}
.book__placeholder-logo {
  width: 42%;
  aspect-ratio: 609 / 180;
  margin-bottom: 6%;
  background-image: url('../images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.book__placeholder-title {
  font-family: var(--f-chunky);
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  line-height: 1;
  color: #FFFFFF;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--ink);
  text-transform: uppercase;
  margin-bottom: 6%;
  word-break: break-word;
}
.book__placeholder-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.book__placeholder-art svg {
  max-width: 52%;
  max-height: 95%;
  color: var(--ink);
  opacity: 0.78;
}
.book__placeholder-sub {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 6%;
  opacity: 0.75;
}

.book__ribbon {
  position: absolute;
  top: 14px; right: -8px;
  padding: 6px 14px;
  background: var(--butter);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 3;
}
.book__ribbon::after {
  content: '';
  position: absolute;
  top: 100%; right: 0;
  border: 4px solid transparent;
  border-top-color: var(--butter-deep);
  border-right-color: var(--butter-deep);
}
.book__ribbon--soon {
  background: rgba(28,27,23,0.9);
  color: var(--paper);
}
.book__ribbon--soon::after {
  border-top-color: rgba(28,27,23,1);
  border-right-color: rgba(28,27,23,1);
}
.book--soon .book__cover-img { filter: saturate(0.6) brightness(0.96); }
.book--soon .book__stage::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(28,27,23,0.18) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.book__meta {
  padding-top: 22px;
}
.book__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.book__price-tag {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: 1.1rem;
  color: var(--ink);
  flex-shrink: 0;
}
.book__price-tag-soon {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-family: var(--f-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.book__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  flex: 1;
  min-width: 0;
}
.book__theme {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.book__tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.book__tag {
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border: 1px solid rgba(28,27,23,0.08);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.collection__footnote {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  justify-content: center;
}
.collection__footnote svg { flex-shrink: 0; }

/* =========================
   WORLDS / CHARACTERS
   ========================= */
.worlds {
  position: relative;
  padding: 140px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.worlds__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(247, 201, 72, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 122, 93, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.worlds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}
.world-card {
  position: relative;
  padding: 0;
  background: rgba(247, 241, 225, 0.04);
  border: 1px solid rgba(247, 241, 225, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
}
.world-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--wc-color, var(--butter));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
  z-index: 5;
}
.world-card:hover {
  background: rgba(247, 241, 225, 0.08);
  border-color: var(--wc-color, var(--butter));
  transform: translateY(-6px);
}
.world-card:hover::before { transform: scaleX(1); }
.world-card__hero {
  aspect-ratio: 4/3;
  background: var(--wc-color, var(--paper-warm));
  position: relative;
  overflow: hidden;
}
.world-card__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-smooth);
}
.world-card:hover .world-card__hero img {
  transform: scale(1.05);
}
.world-card__body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.world-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(247, 241, 225, 0.08);
  color: rgba(247, 241, 225, 0.75);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  width: fit-content;
}
.world-card__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wc-color, var(--butter));
}
.world-card__duo {
  font-family: var(--f-hand);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--wc-color, var(--butter));
  margin-bottom: 12px;
}
.world-card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 16px;
}
.world-card__desc {
  font-size: 0.92rem;
  color: rgba(247, 241, 225, 0.7);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.world-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 241, 225, 0.12);
}
.world-card__theme {
  font-size: 0.78rem;
  color: rgba(247, 241, 225, 0.55);
}
.world-card__arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(247, 241, 225, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  color: var(--paper);
}
.world-card:hover .world-card__arrow {
  background: var(--wc-color, var(--butter));
  color: var(--ink);
  transform: rotate(-45deg);
}

/* =========================
   WHY DOODLOO
   ========================= */
.why {
  padding: 140px 0;
  background: var(--paper);
}
.why__head {
  max-width: 820px;
  margin-bottom: 72px;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
@media (min-width: 900px) {
  .why__grid { grid-template-columns: repeat(3, 1fr); }
}
.why__card {
  position: relative;
  padding: 36px 32px 40px;
  background: var(--paper-cool);
  border: 1px solid rgba(28,27,23,0.08);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease-smooth);
  overflow: hidden;
}
.why__card:hover {
  background: var(--butter-soft);
  border-color: var(--butter-deep);
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}
.why__card:nth-child(even):hover {
  transform: translateY(-6px) rotate(0.5deg);
}
.why__num {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--butter-deep);
  margin-bottom: 14px;
}
.why__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.why__text {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.why__icon {
  position: absolute;
  right: 24px; top: 28px;
  width: 48px; height: 48px;
  opacity: 0.15;
  transition: all 0.4s var(--ease-bounce);
}
.why__card:hover .why__icon {
  opacity: 0.8;
  transform: rotate(-8deg) scale(1.1);
}

/* =========================
   GALLERY (real coloring pages)
   ========================= */
.gallery {
  padding: 120px 0;
  background: var(--paper-warm);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.gallery__tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-cool);
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  border: 1px solid rgba(28,27,23,0.08);
}
.gallery__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}
.gallery__tile:hover {
  transform: translateY(-4px) rotate(-0.8deg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.gallery__tile:hover img {
  transform: scale(1.04);
}
.gallery__tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,27,23,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.gallery__tile:hover .gallery__tile-overlay { opacity: 1; }
.gallery__tile-info {
  color: var(--paper);
}
.gallery__tile-book {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 4px;
}
.gallery__tile-page {
  font-family: var(--f-hand);
  font-size: 1.2rem;
  line-height: 1;
}
.gallery__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* =========================
   FREEBIES
   ========================= */
.freebies {
  padding: 120px 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.freebies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}
.freebie {
  padding: 32px 28px;
  background: var(--paper-cool);
  border: 1px dashed rgba(28,27,23,0.2);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.freebie::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--f-color, var(--butter-soft));
  opacity: 0.6;
  transition: all 0.5s var(--ease-smooth);
}
.freebie:hover {
  transform: translateY(-6px);
  border-color: var(--f-color, var(--butter-deep));
  border-style: solid;
  box-shadow: var(--shadow);
}
.freebie:hover::before { transform: scale(1.4); opacity: 0.8; }
.freebie__pages-stack {
  position: relative;
  z-index: 1;
  width: 72px; height: 90px;
  margin-bottom: 22px;
}
.freebie__page {
  position: absolute; inset: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.freebie__page:nth-child(1) { transform: rotate(-4deg) translate(-4px, -2px); }
.freebie__page:nth-child(2) { transform: rotate(3deg) translate(2px, 0); background: var(--f-color, var(--butter-soft)); }
.freebie__page:nth-child(3) { transform: rotate(-1deg); }
.freebie__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.freebie__info {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.freebie__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  position: relative; z-index: 1;
}
.freebie__btn svg { transition: transform 0.3s; }
.freebie:hover .freebie__btn svg { transform: translate(2px, 2px); }

/* =========================
   ABOUT
   ========================= */
.about {
  padding: 140px 0;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.about__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 900px) {
  .about__wrap { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
}
.about__img-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  max-width: 460px;
  margin: 0 auto;
}
.about__polaroid {
  position: absolute;
  width: 56%;
  background: var(--paper-cool);
  padding: 14px 14px 38px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(28,27,23,0.08);
  transition: transform 0.5s var(--ease-smooth), z-index 0s 0.5s;
}
.about__polaroid-img {
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__polaroid-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__polaroid-img--1 { background-color: var(--dino); }
.about__polaroid-img--2 { background-color: var(--butter-soft); }
.about__polaroid-img--3 { background-color: var(--forest); }
.about__polaroid-img svg {
  width: 52%; height: 52%;
  color: rgba(28,27,23,0.55);
}
.about__polaroid-cap {
  font-family: var(--f-hand);
  font-size: 1.05rem;
  text-align: center;
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1;
}
.about__polaroid--1 { top: 0; left: 2%; transform: rotate(-7deg); z-index: 1; }
.about__polaroid--2 { top: 8%; right: 0; transform: rotate(6deg); z-index: 2; }
.about__polaroid--3 { bottom: 0; left: 22%; transform: rotate(-2deg); z-index: 3; }
.about__polaroid:hover {
  z-index: 10 !important;
  transform: rotate(0) scale(1.05);
  transition: transform 0.5s var(--ease-smooth), z-index 0s 0s;
}

.about__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 20px 0 28px;
}
.about__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.about__lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
}
.about__body {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}
.about__sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.about__sign-text {
  font-family: var(--f-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.about__sign-mark {
  width: 60px;
  color: var(--butter-deep);
}

/* =========================
   JOURNAL (BLOG)
   ========================= */
.journal {
  padding: 140px 0;
  background: var(--paper);
}
.journal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .journal__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
  }
  .journal__card--featured {
    grid-row: 1 / span 2;
    grid-column: 1;
  }
}
.journal__card {
  cursor: pointer;
  background: var(--paper-cool);
  border: 1px solid rgba(28,27,23,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  color: inherit;
}
.journal__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28,27,23,0.14);
}
.journal__img {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.journal__img--featured { aspect-ratio: 3 / 4; background: linear-gradient(135deg, var(--butter) 0%, var(--coral) 100%); }
.journal__img--2 { background: linear-gradient(135deg, var(--dino) 0%, var(--pets) 100%); }
.journal__img--3 { background: linear-gradient(135deg, var(--ocean) 0%, var(--space) 100%); }
.journal__img--4 { background: linear-gradient(135deg, var(--forest) 0%, var(--bugs) 100%); }
.journal__img::before {
  content: '';
  position: absolute;
  inset: 20% 25%;
  border-radius: 50%;
  background: var(--paper-cool);
  opacity: 0.25;
  filter: blur(20px);
}
.journal__img-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 7vw, 5rem);
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.journal__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.journal__card--featured .journal__body { padding: 32px; }
.journal__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--butter-deep);
  margin-bottom: 12px;
}
.journal__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.journal__card--featured .journal__title {
  font-size: 1.9rem;
  line-height: 1.05;
}
.journal__excerpt {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}
.journal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: auto;
}
.journal__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-muted);
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonials {
  padding: 140px 0;
  background: var(--paper-warm);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial {
  padding: 40px 32px;
  background: var(--paper-cool);
  border-radius: var(--radius);
  border: 1px solid rgba(28,27,23,0.06);
  position: relative;
  transition: transform 0.4s var(--ease-smooth);
}
.testimonial:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}
.testimonial:nth-child(even):hover {
  transform: translateY(-4px) rotate(0.5deg);
}
.testimonial__quote {
  width: 34px;
  color: var(--butter);
  margin-bottom: 20px;
}
.testimonial p {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 24px;
}
.testimonial p em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.testimonial footer {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.testimonial footer strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* =========================
   FAQ
   ========================= */
.faq {
  padding: 140px 0;
  background: var(--paper);
}
.faq__list {
  max-width: 900px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid rgba(28,27,23,0.1);
  padding: 26px 0;
  transition: padding 0.3s;
}
.faq__item[open] { padding: 30px 0 34px; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.8rem;
  width: 32px; height: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-smooth);
  color: var(--butter-deep);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--butter-deep); }
.faq__body {
  padding-top: 14px;
  padding-right: 56px;
  animation: faqOpen 0.4s var(--ease-out);
}
.faq__body p {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.faq__body p:last-child { margin-bottom: 0; }
.faq__body a {
  color: var(--butter-deep);
  font-weight: 500;
  border-bottom: 1.5px solid var(--butter);
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   NEWSLETTER
   ========================= */
.newsletter {
  padding: 120px 0;
  background: var(--butter);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.newsletter__bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.newsletter__doodle {
  position: absolute;
  width: 100px; height: 100px;
}
.newsletter__doodle--1 { top: 10%; left: 6%; animation: floatSoft 7s ease-in-out infinite; }
.newsletter__doodle--2 { bottom: 12%; right: 8%; width: 80px; animation: floatSoft 9s ease-in-out 1s infinite; }
.newsletter__wrap {
  text-align: center;
  position: relative; z-index: 2;
  max-width: 680px;
}
.newsletter__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
}
.newsletter__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.newsletter__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 36px;
}
.newsletter__fields {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--paper-cool);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.3);
  max-width: 480px;
  margin: 0 auto;
}
.newsletter__input {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  min-width: 0;
}
.newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s var(--ease-out);
}
.newsletter__btn:hover { background: var(--butter-deep); }
.newsletter__success {
  display: none;
  padding: 14px;
  font-weight: 500;
}
.newsletter__form.is-sent .newsletter__fields { display: none; }
.newsletter__form.is-sent .newsletter__success { display: block; }
.newsletter__legal {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 166, 89, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(94, 166, 89, 0); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(5deg); }
}
@keyframes floatBook {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
  50%      { transform: translateX(-50%) translateY(-12px) rotate(-3.5deg); }
}
@keyframes floatBookSide {
  0%, 100% { transform: translateY(0) rotate(var(--r, 10deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--r, 10deg) - 1deg)); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85) rotate(0); }
  50%      { opacity: 1; transform: scale(1.15) rotate(180deg); }
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}
@keyframes drawScribble {
  to { stroke-dashoffset: 0; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
