/*
 * Public homepage: hero grove, storybook shelf, pricing hollow.
 * Composition rules: centered heading rhythm, framed-cover story cards,
 * caption plates under the tier art, seams between every section.
 */

/* ---------- hero ---------- */

.video-opening {
  position: relative;
  display: flex;
  min-height: min(54rem, 92svh);
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  padding: clamp(7rem, 10vw, 9rem) clamp(1rem, 5vw, 6rem) clamp(5rem, 8vw, 7rem);
  background: var(--kw-video-hero-poster) center / cover no-repeat #d6e9b8;
}

.video-opening-media,
.reflection-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.video-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 58%, rgba(255, 250, 214, 0.55), rgba(255, 250, 214, 0) 34%),
    linear-gradient(90deg, rgba(255, 247, 207, 0.7) 0%, rgba(255, 247, 207, 0.32) 34%, rgba(255, 247, 207, 0.03) 74%),
    linear-gradient(180deg, rgba(16, 45, 31, 0.08) 0%, rgba(16, 45, 31, 0.12) 100%);
}

.video-opening-glow {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 250, 214, 0), rgba(255, 244, 198, 0.38));
}

.video-opening-copy {
  position: relative;
  z-index: 4;
  width: min(42rem, 100%);
  padding: clamp(1.65rem, 3.2vw, 2.6rem);
  color: var(--forest-text);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 211, 95, 0.38), rgba(255, 211, 95, 0) 34%),
    linear-gradient(180deg, rgba(255, 253, 244, 0.98), rgba(244, 249, 228, 0.94));
  border: 0.12rem solid rgba(83, 66, 38, 0.22);
  border-radius: 1rem;
  box-shadow: 0 0.55rem 0.95rem rgba(20, 48, 30, 0.18);
}

.video-opening-copy .eyebrow {
  color: #165c38;
  font-weight: 900;
  font-size: clamp(0.8rem, 1vw, 0.94rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.video-opening-copy h1 {
  margin: 0;
  color: var(--forest-ink);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 100%;
  text-shadow: 0 0.12rem 0 rgba(255, 211, 95, 0.5);
}

.video-opening-copy p:not(.eyebrow) {
  max-width: 31rem;
  margin: 1.5rem 0 2rem;
  color: #162f22;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.6;
  text-wrap: pretty;
}

.video-opening-foliage {
  position: absolute;
  z-index: 2;
  right: -4rem;
  bottom: -5.3rem;
  width: min(62rem, 66vw);
  max-width: none;
  opacity: 0.88;
  pointer-events: none;
  filter: drop-shadow(0 -0.35rem 0.7rem rgba(37, 73, 35, 0.18));
}

.guide-grove {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 3.6vw, 3.2rem);
  --kw-canvas-bg: var(--kw-unified-guide-grove-canvas);
  --kw-canvas-color: var(--cream);
}

/* Fade the guide-grove background out at the bottom so the reflection
   video beneath shows through the overlap area. The fallback colour
   that was on the element moves here so the mask covers it too. */
.guide-grove::after {
  background-color: #e8f0d4;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0,0,0,0) 100%);
}

.guide-grove::before {
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0,0,0,0) 100%);
}

.guide-grove .section-heading {
  margin-inline: auto;
  text-align: center;
}

.guide-grove .section-heading h1,
.guide-grove .section-heading h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  letter-spacing: -0.01em;
}

.guide-grove .section-heading p:not(.eyebrow) {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: clamp(1rem, 1.8vw, 1.5rem);
}

.hero-actions .wood-button {
  min-width: 11.5rem;
  min-height: 3.3rem;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

.hero-actions .wood-button.is-quiet {
  min-width: 9.5rem;
  min-height: 2.9rem;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
}

.guide-grid {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(86rem, 100%);
  grid-template-columns: repeat(2, minmax(21rem, 1fr));
  gap: clamp(1.1rem, 2.3vw, 2.2rem);
  align-items: stretch;
  margin: 0 auto;
}

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(11rem, 0.82fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 2vw, 1.7rem);
  width: 100%;
  min-width: 0;
  min-height: 320px;
  background:
    radial-gradient(ellipse at 22% 0%, rgba(255, 226, 154, 0.48), rgba(255, 226, 154, 0) 48%),
    linear-gradient(168deg, #fffcf2 0%, #fff8e2 38%, #f8f0d0 72%, #f0eccc 100%);
  border: 0.12rem solid rgba(91, 50, 24, 0.26);
  border-radius: 1.1rem;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.72),
    0 0.5rem 1rem rgba(20, 48, 30, 0.16),
    0 1.2rem 2.4rem rgba(20, 48, 30, 0.08);
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  align-items: center;
  padding: clamp(1.5rem, 2.8vw, 2.6rem);
  overflow: hidden;
}

.guide-card:hover {
  transform: translateY(-0.28rem) scale(1.008);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.72),
    0 0.7rem 1.2rem rgba(20, 48, 30, 0.2),
    0 1.6rem 3.2rem rgba(20, 48, 30, 0.1),
    0 0 0 0.06rem rgba(31, 143, 87, 0.18);
  border-color: rgba(31, 143, 87, 0.38);
}

.caramel-guide {
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.82fr);
}

.caramel-guide .guide-art {
  grid-column: 2;
}

.caramel-guide .guide-copy {
  grid-column: 1;
  grid-row: 1;
}

.guide-art {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 15.5rem;
  align-items: end;
  justify-items: center;
  align-self: stretch;
}

.guide-art::before {
  content: "";
  position: absolute;
  inset: 16% 4% 0;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(255, 232, 154, 0.72), rgba(255, 232, 154, 0) 58%),
    radial-gradient(ellipse at 50% 94%, rgba(72, 111, 56, 0.24), rgba(72, 111, 56, 0) 64%);
  filter: blur(0.08rem);
}

.guide-illustration {
  display: block;
  width: min(19rem, 100%);
  max-height: 22rem;
  object-fit: contain;
  filter: drop-shadow(0 0.85rem 0.62rem rgba(42, 58, 28, 0.22));
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guide-card:hover .guide-illustration {
  transform: scale(1.04) translateY(-0.18rem);
}

.guide-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--forest-text);
  font-weight: 800;
  line-height: 1.5;
  z-index: 2;
}

.guide-real-photo {
  width: clamp(5.5rem, 8.5vw, 7.5rem);
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border: 0.35rem solid #fffaeb;
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--guide-photo-position, center);
  box-shadow:
    0 0 0 0.12rem rgba(91, 50, 24, 0.28),
    0 0 0 0.32rem rgba(255, 226, 154, 0.35),
    0 0.6rem 1.2rem rgba(37, 58, 31, 0.22);
  transition: box-shadow 280ms ease, transform 280ms ease;
}

.guide-card:hover .guide-real-photo {
  box-shadow:
    0 0 0 0.12rem rgba(91, 50, 24, 0.3),
    0 0 0 0.38rem rgba(255, 226, 154, 0.5),
    0 0.8rem 1.4rem rgba(37, 58, 31, 0.24);
  transform: scale(1.03);
}

.oreo-guide {
  --guide-photo-position: 56% 44%;
}

.caramel-guide {
  --guide-photo-position: 48% 38%;
}

.guide-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  margin: 0 0 0.35rem;
  color: var(--canopy-900);
  letter-spacing: -0.01em;
}

.guide-copy h2::after {
  content: "";
  display: block;
  width: 2.8rem;
  height: 0.18rem;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--honey-500), rgba(224, 173, 67, 0));
  border-radius: 999px;
}

.guide-copy p {
  color: #1e3a2a;
  margin: 0 0 1rem;
  font-size: clamp(0.92rem, 1.12vw, 1.04rem);
  font-weight: 600;
  line-height: 1.58;
}

.oreo-guide .guide-copy,
.caramel-guide .guide-copy {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}



.guide-copy .leaf-badge {
  align-self: flex-start;
  min-height: 2.3rem;
  margin-top: 0.65rem;
  padding: 0.3rem 0.95rem 0.42rem;
  white-space: nowrap;
}

/* Soft light pool behind centered headings so copy stays readable
   over the busy painted canopies. */
.library-market .section-heading.is-centered,
.pricing-hollow .section-heading.is-centered {
  padding: 1.4rem 2.6rem 1.8rem;
  background: radial-gradient(
    closest-side,
    rgba(255, 250, 225, 0.72) 0%,
    rgba(255, 250, 225, 0.46) 55%,
    rgba(255, 250, 225, 0) 100%
  );
}

.library-market .section-heading h2 {
  line-height: 1.1;
  padding-top: 0.06em;
  padding-bottom: 0.2em;
  margin-bottom: -0.14em;
}

/* ---------- reflection creek ---------- */

.reflection-parallax {
  --kw-reflection-shift: 0px;
  position: relative;
  display: flex;
  margin-top: calc(var(--kw-section-overlap) * -1);
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  padding: calc(clamp(4.5rem, 8vw, 7rem) + var(--kw-section-overlap)) clamp(1rem, 5vw, 6rem) calc(clamp(4.5rem, 8vw, 7rem) + var(--kw-section-overlap));
  background: transparent;
}

.reflection-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--kw-video-reflection-poster) center / cover no-repeat #bfdcb6;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0, 0, 0, 0) 100%);
}

.reflection-video {
  z-index: 1;
  height: calc(100% + 4rem);
  transform: translate3d(0, var(--kw-reflection-shift), 0) scale(1.04);
  transition: transform 80ms linear;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0, 0, 0, 0) 100%);
}

.reflection-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 48%, rgba(255, 246, 168, 0.2), rgba(255, 246, 168, 0) 34%),
    linear-gradient(90deg, rgba(17, 16, 36, 0.34), rgba(17, 16, 36, 0.1) 46%, rgba(17, 16, 36, 0.26));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 var(--kw-section-fade), #000 calc(100% - var(--kw-section-fade)), rgba(0, 0, 0, 0) 100%);
}

.reflection-glass {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 42%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
  background:
    linear-gradient(180deg, rgba(255, 246, 168, 0), rgba(255, 246, 168, 0.18) 58%, rgba(41, 80, 52, 0.32)),
    linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2) 48%, rgba(255, 255, 255, 0));
}

.reflection-content {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(90rem, 100%);
  grid-template-columns: minmax(18rem, 0.86fr) minmax(25rem, 1.14fr);
  gap: clamp(1.4rem, 5vw, 6rem);
  align-items: center;
}

.reflection-copy {
  position: relative;
  z-index: 5;
  width: min(30rem, 100%);
  padding: clamp(1.2rem, 2.5vw, 1.65rem) clamp(1.05rem, 2.8vw, 2rem);
  background: rgba(255, 250, 225, 0.78);
  border: 0.11rem solid rgba(91, 60, 27, 0.24);
  border-radius: 0.6rem;
  box-shadow:
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.62),
    0 0.8rem 1.4rem rgba(25, 58, 36, 0.17);
  backdrop-filter: blur(0.12rem);
}

.reflection-copy h2 {
  margin: 0;
  color: #0f3d2c;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.reflection-copy p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: #1a3527;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 700;
  line-height: 1.52;
  text-wrap: pretty;
}

.reflection-rhythm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.reflection-rhythm span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.75rem;
  color: #103828;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 246, 168, 0.82);
  border: 0.08rem solid rgba(91, 50, 24, 0.18);
  border-radius: 999px;
}

.reflection-scenes {
  position: relative;
  justify-self: end;
  width: min(43rem, 100%);
  min-height: clamp(31rem, 50vw, 42rem);
  perspective: 60rem;
  isolation: isolate;
}

.reflection-scenes::before {
  content: "";
  position: absolute;
  inset: 16% 5% 12% 6%;
  z-index: 0;
  opacity: 0.72;
  background:
    linear-gradient(115deg, rgba(118, 194, 202, 0.2), rgba(255, 246, 168, 0.36) 44%, rgba(70, 117, 83, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  clip-path: polygon(5% 44%, 23% 25%, 47% 34%, 77% 15%, 96% 31%, 76% 54%, 89% 77%, 58% 67%, 28% 83%, 6% 64%);
  filter: blur(0.08rem);
}

.reflection-scenes::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 10%;
  z-index: 6;
  width: clamp(3.8rem, 8vw, 6rem);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("../assets/higgsfield/generated/kw-butterfly-gold-cutout.png?v=20260626") center / contain no-repeat;
  filter: drop-shadow(0 0.45rem 0.5rem rgba(17, 16, 36, 0.3));
  transform: rotate(12deg);
}

.reflection-scene-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.55rem 0.72rem;
  color: #151427;
  background: #fffaf0;
  border-radius: 0.55rem;
  box-shadow:
    0 0.42rem 0.8rem rgba(17, 16, 36, 0.32),
    inset 0 0 0 0.08rem rgba(91, 50, 24, 0.1);
  transform: rotate(var(--scene-rotate, 0deg));
  transform-origin: 50% 58%;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, z-index 0ms 260ms;
}

.reflection-scene-card::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 50%;
  z-index: 3;
  width: 0.62rem;
  aspect-ratio: 1;
  background: #fff6a8;
  border-radius: 50%;
  box-shadow:
    0 0.08rem 0.12rem rgba(17, 16, 36, 0.35),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.62);
  transform: translateX(-50%);
}

.reflection-scene-card:hover,
.reflection-scene-card:focus-within {
  z-index: 8;
  box-shadow:
    0 0.65rem 0.95rem rgba(17, 16, 36, 0.38),
    inset 0 0 0 0.08rem rgba(91, 50, 24, 0.08);
  transform: translateY(-0.36rem) rotate(var(--scene-hover-rotate, var(--scene-rotate, 0deg))) scale(1.025);
  transition-delay: 0ms;
}

.reflection-scene-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.36rem;
}

.reflection-scene-card figcaption {
  display: grid;
  gap: 0.16rem;
  padding-inline: 0.18rem;
}

.reflection-scene-card strong {
  color: #1d1730;
  font-size: 0.92rem;
  line-height: 1.05;
}

.reflection-scene-card span {
  color: #4a3a29;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.22;
}

.reflection-scene-breathe {
  top: 8%;
  left: 1%;
  width: min(21rem, 51%);
  --scene-rotate: -8deg;
  --scene-hover-rotate: -5deg;
}

.reflection-scene-share {
  top: 0;
  right: 3%;
  z-index: 4;
  width: min(20rem, 45%);
  --scene-rotate: 7deg;
  --scene-hover-rotate: 4deg;
}

.reflection-scene-repair {
  right: 8%;
  bottom: 1%;
  z-index: 3;
  width: min(22rem, 50%);
  --scene-rotate: -3deg;
  --scene-hover-rotate: -1deg;
}

.reflection-scene-wonder {
  bottom: 13%;
  left: 11%;
  z-index: 1;
  width: min(17.5rem, 40%);
  --scene-rotate: 10deg;
  --scene-hover-rotate: 7deg;
}

.reflection-foliage {
  display: none;
}

/* ---------- storybook shelf ---------- */

.library-market {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.7vw, 1.35rem);
  --kw-canvas-bg: var(--kw-unified-library-market-canvas);
  --kw-canvas-color: #c3dcb2;
}

.library-market::before {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 252, 226, 0.54), rgba(255, 252, 226, 0) 35%),
    radial-gradient(ellipse at 50% 72%, rgba(86, 61, 29, 0.18), rgba(86, 61, 29, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(26, 63, 39, 0.12));
}

.library-showcase {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(66rem, 100%);
  isolation: isolate;
  padding: clamp(0.85rem, 1.45vw, 1.15rem) clamp(1rem, 2vw, 1.6rem) clamp(0.75rem, 1.3vw, 1.05rem);
}

.library-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255, 252, 226, 0.58), rgba(255, 252, 226, 0) 64%),
    radial-gradient(ellipse at 50% 100%, rgba(93, 61, 27, 0.14), rgba(93, 61, 27, 0) 62%),
    linear-gradient(180deg, rgba(255, 244, 198, 0.18), rgba(83, 57, 25, 0.08));
  border-radius: 0.9rem;
}

.library-grid {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.7vw, 3rem);
  align-items: end;
  justify-items: center;
  isolation: isolate;
  padding: clamp(0.35rem, 0.8vw, 0.65rem) clamp(0.1rem, 0.65vw, 0.55rem) clamp(0.7rem, 1.2vw, 1rem);
}

.library-market .story-card {
  z-index: 1;
  --library-card-holder: var(--kw-ui-story-card-holder-green);
  --slot-art-left: 17.5%;
  --slot-art-right: 16.5%;
  --slot-art-top: 11.8%;
  --slot-art-height: 36.5%;
  --slot-copy-left: 14%;
  --slot-copy-right: 14%;
  --slot-copy-top: 52.8%;
  --slot-copy-bottom: 12.5%;
  display: block;
  overflow: visible;
  max-width: 18.55rem;
  aspect-ratio: 848 / 1264;
  padding: 0;
  background: var(--library-card-holder) center / contain no-repeat;
  border-radius: 1.2rem;
  filter: drop-shadow(0 0.9rem 0.62rem rgba(26, 48, 24, 0.27));
  transform-origin: 50% 100%;
}

.library-market .story-card:hover {
  transform: translateY(-0.18rem) rotate(-0.4deg);
  filter: drop-shadow(0 1.15rem 0.78rem rgba(26, 48, 24, 0.31));
}

.library-market .story-card.is-theme-red {
  --library-card-holder: var(--kw-ui-story-card-holder-red);
  --slot-art-left: 18.7%;
  --slot-art-right: 17.7%;
  --slot-art-top: 11.2%;
  --slot-art-height: 37.9%;
  --slot-copy-left: 15.8%;
  --slot-copy-right: 15.8%;
  --slot-copy-top: 53.2%;
  --slot-copy-bottom: 16.4%;
}

.library-market .story-card.is-theme-green {
  --library-card-holder: var(--kw-ui-story-card-holder-green);
  --slot-art-left: 14.15%;
  --slot-art-right: 18.87%;
  --slot-art-top: 11.71%;
  --slot-art-height: 41.14%;
  --slot-copy-left: 18.40%;
  --slot-copy-right: 20.28%;
  --slot-copy-top: 57.91%;
  --slot-copy-bottom: 17.41%;
}

.library-market .story-card.is-theme-lavender {
  --library-card-holder: var(--kw-ui-story-card-holder-lavender);
  --slot-art-left: 22%;
  --slot-art-right: 11.5%;
  --slot-art-top: 12%;
  --slot-art-height: 34.6%;
  --slot-copy-left: 22.2%;
  --slot-copy-right: 11.7%;
  --slot-copy-top: 58.9%;
  --slot-copy-bottom: 11.8%;
}

.library-market .story-card.is-theme-gold {
  --library-card-holder: var(--kw-ui-story-card-holder-green);
  --slot-art-left: 14.15%;
  --slot-art-right: 18.87%;
  --slot-art-top: 11.71%;
  --slot-art-height: 41.14%;
  --slot-copy-left: 18.40%;
  --slot-copy-right: 20.28%;
  --slot-copy-top: 57.91%;
  --slot-copy-bottom: 17.41%;
}

.library-market .story-card-art {
  position: absolute;
  z-index: 1;
  top: var(--slot-art-top);
  left: var(--slot-art-left);
  right: var(--slot-art-right);
  height: var(--slot-art-height);
  overflow: hidden;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0.64rem;
  box-shadow:
    inset 0 0 0 0.08rem rgba(72, 45, 20, 0.2),
    0 0.18rem 0.26rem rgba(41, 43, 20, 0.18);
}

.library-market .story-card-body {
  position: absolute;
  z-index: 2;
  top: var(--slot-copy-top);
  right: var(--slot-copy-right);
  bottom: var(--slot-copy-bottom);
  left: var(--slot-copy-left);
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  padding: 0.2rem 0.42rem 0.26rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.library-market .story-card-body h3 {
  width: min(10.8rem, 100%);
  margin-inline: auto;
  color: #123d2d;
  font-size: 1.14rem;
  line-height: 1.03;
  text-shadow: 0 1px 0 rgba(255, 246, 204, 0.72);
}

.library-market .story-card-meta-line {
  max-width: 12.2rem;
  margin: 0;
  color: #254331;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.library-market .story-state {
  margin-top: 0.02rem;
  padding: 0;
  color: #6a3c18;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 0 1px 0 rgba(255, 247, 206, 0.66);
  text-transform: none;
}

.library-empty {
  position: relative;
  z-index: 1;
  width: min(30rem, 100%);
  margin: 0 auto;
  padding: 1.05rem 1.35rem;
  background: rgba(255, 250, 225, 0.88);
  border: 0.12rem solid rgba(110, 78, 38, 0.22);
  border-radius: 0.65rem;
  color: #2b4634;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
}

.library-cta {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  min-height: 3rem;
  align-items: center;
  margin-top: clamp(-0.45rem, -0.5vw, -0.15rem);
  padding-inline: 0;
}

.library-cta .wood-button {
  min-width: 12.4rem;
  min-height: 3rem;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
}

/* ---------- pricing ---------- */

.pricing-hollow {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  padding-bottom: clamp(8rem, 10vw, 10rem);
  --kw-canvas-bg: var(--kw-unified-pricing-hollow-canvas);
  --kw-canvas-color: #cadfbd;
}

.tier-stage {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(74rem, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  align-items: end;
}

.tier-column {
  display: grid;
  justify-items: center;
}

.tier-art {
  width: 100%;
  max-width: 19rem;
  min-height: clamp(13rem, 17vw, 17rem);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: drop-shadow(0 1.6rem 1.3rem rgba(18, 42, 26, 0.26));
}

.tier-free .tier-art {
  background-image: var(--kw-tier-book-red-stump);
}

.tier-family .tier-art {
  min-height: clamp(14.5rem, 19vw, 19rem);
  background-image: var(--kw-tier-book-green-stump);
}

.tier-pro .tier-art {
  background-image: var(--kw-tier-book-purple-stump);
}

.tier-caption {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  width: min(16.5rem, 100%);
  margin-top: -1.5rem;
  padding: 1.5rem 1.2rem;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 211, 95, 0.22), rgba(255, 211, 95, 0) 38%),
    rgba(255, 253, 244, 0.97);
  border: 0.1rem solid rgba(83, 66, 38, 0.22);
  border-radius: 0.9rem;
  box-shadow: 0 0.42rem 0.72rem rgba(20, 48, 30, 0.15);
  color: var(--forest-text);
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tier-column:hover .tier-caption {
  transform: translateY(-0.12rem);
  box-shadow: 0 0.55rem 0.85rem rgba(20, 48, 30, 0.18);
}

.tier-caption h3 {
  margin: 0;
  color: #0f3d2c;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.tier-caption p {
  margin: 0;
  color: #2e2e1e;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.tier-caption strong {
  display: block;
  margin-top: 0.1rem;
  color: #174d38;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}

.tier-caption strong small {
  font-size: 0.85rem;
  color: #6a4a25;
}

.tier-caption .wood-button {
  min-width: 10rem;
  min-height: 2.7rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.tier-family .tier-caption {
  border-color: rgba(46, 106, 60, 0.45);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.55),
    0 0 0 0.22rem rgba(120, 176, 110, 0.35),
    0 0.45rem 0.55rem rgba(20, 45, 26, 0.18);
}

.tier-flag {
  margin-bottom: 0.45rem;
}

.pricing-footnote {
  position: relative;
  z-index: 3;
  max-width: 38rem;
  margin: 0;
  padding: 0.6rem 1rem 0.7rem;
  color: #0f2e1f;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  font-weight: 900;
  line-height: 1.55;
  background: rgba(255, 250, 224, 0.88);
  border: 0.1rem solid rgba(91, 60, 27, 0.22);
  border-radius: 0.65rem;
  box-shadow:
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.62),
    0 0.5rem 0.9rem rgba(24, 52, 32, 0.14);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 252, 231, 0.9);
}

/* ---------- story preview overlay ---------- */

.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 22, 15, 0.78);
  backdrop-filter: blur(10px);
  animation: kwFadeIn 0.3s ease-out;
}

@keyframes kwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.preview-overlay[hidden] {
  display: none;
}

.preview-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(32rem, 90vw);
  height: 39rem;
  padding: 2.2rem;
  background: radial-gradient(circle at 50% 0%, #fffefc, #f7f3e1);
  border: 8px solid #8b6e4d;
  outline: 2px solid #5c4730;
  border-radius: 1.8rem;
  box-shadow: 
    0 30px 60px -15px rgba(5, 18, 12, 0.55),
    inset 0 0 50px rgba(139, 110, 77, 0.15);
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  animation: kwBookPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kwBookPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.preview-scroll::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 2px dashed rgba(139, 110, 77, 0.35);
  border-radius: 1.4rem;
  pointer-events: none;
}

.preview-scroll > * {
  position: relative;
  z-index: 1;
}

/* Floating butterflies decoration */
.preview-decor-butterfly-gold {
  position: absolute;
  top: -1.5rem;
  right: 2rem;
  width: 3.8rem;
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  transform: rotate(15deg);
  animation: kwButterflySwayGold 6s ease-in-out infinite alternate;
}

.preview-decor-butterfly-blue {
  position: absolute;
  bottom: 4rem;
  left: -1.8rem;
  width: 3.4rem;
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  transform: rotate(-25deg);
  animation: kwButterflySwayBlue 5s ease-in-out infinite alternate;
}

@keyframes kwButterflySwayGold {
  0% { transform: rotate(15deg) translateY(0) scale(1); }
  50% { transform: rotate(20deg) translateY(-4px) scale(1.05); }
  100% { transform: rotate(10deg) translateY(2px) scale(0.95); }
}

@keyframes kwButterflySwayBlue {
  0% { transform: rotate(-25deg) translateY(0) scale(1); }
  50% { transform: rotate(-20deg) translateY(-3px) scale(1.08); }
  100% { transform: rotate(-30deg) translateY(3px) scale(0.92); }
}

.preview-scroll h3 {
  margin: 0 0 1.2rem;
  color: var(--forest-ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.25;
  text-align: center;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(90deg, rgba(139, 110, 77, 0.02), rgba(139, 110, 77, 0.08) 50%, rgba(139, 110, 77, 0.02));
  border: 1px solid rgba(139, 110, 77, 0.18);
  border-width: 1px 0;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.preview-scroll h3::before,
.preview-scroll h3::after {
  content: " 🍃 ";
  display: inline-block;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  filter: sepia(0.3) saturate(1.5);
  animation: kwLeafSway 3s ease-in-out infinite alternate;
}
.preview-scroll h3::after {
  animation-delay: 1.5s;
}

@keyframes kwLeafSway {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

.preview-page {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 8px solid #ffffff;
  outline: 1px solid rgba(139, 110, 77, 0.15);
  border-radius: 0.8rem;
  box-shadow: 
    0 12px 24px rgba(40, 30, 15, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.05);
  display: block;
  flex-shrink: 0;
  background: #ece7d5;
  transform: rotate(-1.5deg);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.preview-page:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 
    0 20px 32px rgba(40, 30, 15, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.06);
}

.preview-scene {
  margin: 1rem 0 0;
  height: 6rem;
  overflow-y: auto;
  color: #243b2d;
  font-family: var(--font-story);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(139, 110, 77, 0.1);
  border-radius: 0.8rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  padding-right: 0.25rem;
}

.preview-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  height: 8.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.preview-dialogue-item {
  padding: 0.6rem 1rem;
  color: #243625;
  background: #ffffff;
  border: 1px dashed rgba(139, 110, 77, 0.25);
  border-left: 5px solid #c8beab;
  border-radius: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.preview-dialogue-item:hover {
  transform: translateX(6px) scale(1.01);
  border-color: rgba(139, 110, 77, 0.4);
  box-shadow: 0 6px 12px rgba(40, 30, 15, 0.06);
}

.preview-dialogue-item b {
  color: #174d38;
  font-family: var(--font-display);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.preview-dialogue-item.is-oreo {
  border-left-color: #2f2b2c;
  background: #fafafa;
}

.preview-dialogue-item.is-oreo b {
  color: #2f2b2c;
}

.preview-dialogue-item.is-caramel {
  border-left-color: #a4623a;
  background: #fffdfa;
}

.preview-dialogue-item.is-caramel b {
  color: #a4623a;
}

/* Guideline co-reading tip styles */
.preview-guideline-item {
  padding: 0.8rem 1rem;
  color: #4c3c2b;
  background: #fffcf0;
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-left: 5px solid #d4a359;
  border-radius: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 4px 8px rgba(212, 163, 89, 0.04);
  font-style: italic;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.preview-guideline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 163, 89, 0.08);
}

.preview-guideline-item b {
  color: #8f6018;
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-style: normal;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

/* Custom scrollbars */
.preview-scene::-webkit-scrollbar,
.preview-lines::-webkit-scrollbar {
  width: 5px;
}
.preview-scene::-webkit-scrollbar-track,
.preview-lines::-webkit-scrollbar-track {
  background: rgba(139, 110, 77, 0.04);
  border-radius: 3px;
}
.preview-scene::-webkit-scrollbar-thumb,
.preview-lines::-webkit-scrollbar-thumb {
  background: var(--leaf-muted);
  border-radius: 3px;
}
.preview-scene::-webkit-scrollbar-thumb:hover,
.preview-lines::-webkit-scrollbar-thumb:hover {
  background: var(--forest-ink);
}

@media (min-width: 768px) {
  .preview-scroll {
    display: grid;
    grid-template-columns: 24rem 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "title title"
      "image scene"
      "image lines"
      "image actions";
    column-gap: 2.5rem;
    row-gap: 1.2rem;
    padding: 2.5rem 3rem;
    width: 58rem;
    height: 35rem;
    align-items: start;
  }

  .preview-scroll h3 {
    grid-area: title;
    margin-bottom: 0.2rem;
  }

  .preview-page {
    grid-area: image;
    width: 24rem;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    align-self: center;
  }

  .preview-scene {
    grid-area: scene;
    margin: 0;
    height: 7.2rem;
    overflow-y: auto;
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.55;
  }

  .preview-lines {
    grid-area: lines;
    margin: 0;
    height: 8.8rem;
    overflow-y: auto;
  }

  .preview-actions {
    grid-area: actions;
    margin-top: 0;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .video-opening {
    min-height: 90svh;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    width: min(100%, 54rem);
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .reflection-content {
    grid-template-columns: 1fr;
    gap: clamp(1.8rem, 6vw, 3rem);
  }

  .reflection-copy {
    justify-self: center;
    text-align: center;
  }

  .reflection-rhythm {
    justify-content: center;
  }

  .reflection-scenes {
    justify-self: center;
    width: min(39rem, 100%);
    min-height: clamp(28rem, 68vw, 36rem);
  }

  .library-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr));
  }

  .tier-stage {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .tier-column {
    width: min(24rem, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .video-opening {
    min-height: 88svh;
    align-items: center;
    padding: 6.4rem 1rem 4.4rem;
  }

  .video-opening::before {
    background:
      radial-gradient(circle at 50% 58%, rgba(255, 250, 214, 0.72), rgba(255, 250, 214, 0) 42%),
      linear-gradient(180deg, rgba(255, 248, 216, 0.3), rgba(255, 248, 216, 0.66) 76%, rgba(255, 248, 216, 0.38));
  }

  .video-opening-copy {
    width: min(22rem, 100%);
    margin-inline: auto;
    text-align: center;
  }

  .video-opening-copy h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.25rem);
    line-height: 0.92;
  }

  .video-opening-copy p:not(.eyebrow) {
    max-width: 20rem;
    margin-inline: auto;
    font-size: clamp(1rem, 4.2vw, 1.12rem);
  }

  .video-opening-copy .hero-actions {
    align-items: center;
    flex-direction: column;
  }

  .video-opening-copy .wood-button,
  .video-opening-copy .wood-button.is-quiet {
    width: min(13.8rem, 100%);
    min-width: 0;
  }

  .video-opening-foliage {
    right: 50%;
    bottom: -4.7rem;
    width: 132vw;
    transform: translateX(50%);
    opacity: 0.64;
  }

  .reflection-parallax {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: calc(5rem + var(--kw-section-overlap)) 1rem calc(4.6rem + var(--kw-section-overlap));
  }

  .reflection-video {
    object-position: 42% center;
  }

  .reflection-copy {
    width: min(25rem, 100%);
    text-align: center;
  }

  .reflection-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .reflection-scenes {
    display: grid;
    width: calc(100% + 2rem);
    min-height: 0;
    grid-auto-columns: minmax(12.5rem, 72vw);
    grid-auto-flow: column;
    gap: 0.95rem;
    justify-self: center;
    overflow-x: auto;
    padding: 0.8rem 1rem 1.3rem;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .reflection-scenes::-webkit-scrollbar {
    display: none;
  }

  .reflection-scenes::before,
  .reflection-scenes::after {
    display: none;
  }

  .reflection-scene-card,
  .reflection-scene-breathe,
  .reflection-scene-share,
  .reflection-scene-repair,
  .reflection-scene-wonder {
    position: relative;
    inset: auto;
    width: auto;
    scroll-snap-align: center;
  }

  .reflection-scene-card {
    transform: rotate(var(--mobile-scene-rotate, var(--scene-rotate, 0deg)));
  }

  .reflection-scene-card:hover,
  .reflection-scene-card:focus-within {
    transform: translateY(-0.2rem) rotate(var(--mobile-scene-rotate, var(--scene-rotate, 0deg))) scale(1.01);
  }

  .reflection-scene-breathe {
    --mobile-scene-rotate: -2deg;
  }

  .reflection-scene-share {
    --mobile-scene-rotate: 2.5deg;
  }

  .reflection-scene-repair {
    --mobile-scene-rotate: -1.5deg;
  }

  .reflection-scene-wonder {
    --mobile-scene-rotate: 1.8deg;
  }

  .reflection-foliage {
    min-width: 0;
    width: 132vw;
  }

  .library-showcase {
    width: min(25rem, 100%);
    padding: 0.86rem 0.78rem 0.9rem;
  }

  .library-showcase::after {
    background:
      radial-gradient(ellipse at 50% 8%, rgba(255, 252, 226, 0.68), rgba(255, 252, 226, 0) 62%),
      radial-gradient(ellipse at 50% 100%, rgba(93, 61, 27, 0.12), rgba(93, 61, 27, 0) 66%),
      linear-gradient(180deg, rgba(255, 244, 198, 0.26), rgba(83, 57, 25, 0.1));
  }

  .library-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0.7rem;
  }

  .library-market .story-card {
    max-width: min(18rem, 100%);
  }

  .library-cta {
    min-height: 3rem;
    margin-top: -0.2rem;
  }

  .guide-grove {
    padding-bottom: 3rem;
  }

  .guide-grid {
    gap: 0.9rem;
  }

  .guide-card {
    width: 100%;
    min-height: auto;
    grid-template-columns: minmax(5.25rem, 6.6rem) minmax(0, 1fr);
    gap: 0.82rem;
    align-items: center;
    padding: 1.05rem;
    overflow: hidden;
    border-radius: 0.72rem;
  }

  .caramel-guide {
    grid-template-columns: minmax(5.25rem, 6.6rem) minmax(0, 1fr);
  }

  .caramel-guide .guide-art,
  .caramel-guide .guide-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .guide-art {
    min-height: 10rem;
  }

  .guide-art::before {
    inset: 25% -8% 4%;
  }

  .guide-illustration {
    width: min(9rem, 100%);
    max-height: 11.5rem;
  }

  .guide-real-photo {
    width: 5rem;
    margin-bottom: 0.56rem;
  }

  .guide-copy h2 {
    font-size: 1.36rem;
  }

  .guide-copy p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .guide-copy .leaf-badge {
    min-height: 1.9rem;
    margin-top: 0.34rem;
    padding: 0.22rem 0.64rem 0.32rem;
    font-size: 0.7rem;
  }

  .tier-art {
    max-width: 16.5rem;
  }

  .preview-scroll {
    padding: 3rem 1.35rem 2.6rem;
    background-size: cover;
    border-radius: 0.9rem;
  }

  .preview-page {
    width: min(15rem, 88%);
  }
}

@media (max-width: 430px) {
  .video-opening-copy .wood-button,
  .reflection-copy .wood-button {
    width: min(14rem, 100%);
  }
}

/* ---------- production polish overrides ---------- */

.preview-scroll h3::before,
.preview-scroll h3::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.6rem;
  border-radius: 999px;
  background: var(--sprout);
  box-shadow: 0 0 0 0.16rem rgba(255, 211, 95, 0.22);
}

@media (max-width: 720px) {
  .guide-card,
  .oreo-guide,
  .caramel-guide {
    background:
      radial-gradient(ellipse at 22% 0%, rgba(255, 226, 154, 0.48), rgba(255, 226, 154, 0) 48%),
      linear-gradient(168deg, #fffcf2, #fff8e2 50%, #f8f0d0);
  }

  .oreo-guide .guide-copy,
  .caramel-guide .guide-copy {
    width: min(18rem, 100%);
  }

  .guide-copy p {
    color: var(--forest-text);
    font-size: 0.88rem;
    line-height: 1.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-opening-media,
  .reflection-video {
    display: none;
  }

  .reflection-video {
    transform: none;
  }
}

/* ---------- cohesive storybook material pass ---------- */

.video-opening-copy,
.reflection-copy,
.guide-card,
.tier-caption,
.pricing-footnote,
.library-empty,
.preview-scroll {
  background:
    radial-gradient(ellipse at 22% 0%, rgba(255, 226, 154, 0.42), rgba(255, 226, 154, 0) 44%),
    linear-gradient(180deg, var(--surface-paper-strong), var(--surface-paper) 58%, var(--surface-moss));
  border-color: var(--surface-border);
  box-shadow:
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.62),
    var(--surface-shadow);
}

.video-opening-copy,
.guide-card,
.tier-caption {
  border-radius: 0.72rem;
}

.video-opening-copy h1,
.guide-copy h2,
.reflection-copy h2,
.tier-caption h3 {
  color: var(--canopy-900);
}

.video-opening-copy p:not(.eyebrow),
.guide-copy p,
.reflection-copy p:not(.eyebrow),
.tier-caption p,
.pricing-footnote {
  color: var(--forest-text);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.video-opening-copy .eyebrow,
.reflection-copy .eyebrow,
.section-heading .eyebrow,
.tier-flag {
  color: var(--moss-700);
}

.guide-card:hover,
.tier-column:hover .tier-caption {
  border-color: var(--surface-border-strong);
  box-shadow:
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.62),
    0 0.42rem 0.72rem rgba(37, 58, 31, 0.24);
}

.tier-family .tier-caption {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 226, 154, 0.44), rgba(255, 226, 154, 0) 45%),
    linear-gradient(180deg, #f4f8dc, #e0f0c6);
  border-color: rgba(46, 111, 66, 0.58);
  box-shadow:
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.65),
    0 0 0 0.14rem rgba(184, 217, 154, 0.35),
    var(--surface-shadow);
}

.library-showcase::after {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 241, 201, 0.72), rgba(255, 241, 201, 0) 62%),
    radial-gradient(ellipse at 50% 100%, rgba(91, 50, 24, 0.14), rgba(91, 50, 24, 0) 64%);
}

.library-cta .wood-button,
.hero-actions .wood-button {
  min-height: 2.9rem;
}

.preview-scroll {
  border-color: var(--wood-700);
  outline-color: rgba(91, 50, 24, 0.52);
}

.preview-dialogue-item,
.preview-guideline-item {
  background: var(--paper-50);
  border-color: rgba(91, 50, 24, 0.24);
  border-left: 0.1rem solid rgba(91, 50, 24, 0.24);
  color: var(--forest-text);
}

.guide-card {
  background:
    radial-gradient(ellipse at 22% 0%, rgba(255, 226, 154, 0.48), rgba(255, 226, 154, 0) 48%),
    linear-gradient(168deg, #fffcf2 0%, #fff8e2 38%, #f8f0d0 72%, #f0eccc 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.72),
    0 0.5rem 1rem rgba(20, 48, 30, 0.16),
    0 1.2rem 2.4rem rgba(20, 48, 30, 0.08);
  backdrop-filter: blur(2px);
}

@media (max-width: 720px) {
  .guide-card,
  .oreo-guide,
  .caramel-guide {
    background:
      radial-gradient(ellipse at 22% 0%, rgba(255, 226, 154, 0.48), rgba(255, 226, 154, 0) 48%),
      linear-gradient(168deg, #fffcf2, #fff8e2 50%, #f8f0d0);
    backdrop-filter: blur(2px);
  }
}

/* ---------- newsletter ---------- */

#newsletter.newsletter-grove {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  padding-top: clamp(6rem, 8vw, 8rem);
  padding-bottom: clamp(28rem, 36vw, 32rem);
  --kw-canvas-color: #dce8d0;
}

#newsletter.newsletter-grove::after {
  background: url("../assets/higgsfield/generated/kw-newsletter-bg-new.png") center / cover no-repeat var(--kw-canvas-color);
}

#newsletter.newsletter-grove::before {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 252, 226, 0.52), rgba(255, 252, 226, 0) 36%),
    radial-gradient(ellipse at 50% 82%, rgba(86, 61, 29, 0.14), rgba(86, 61, 29, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(26, 63, 39, 0.10));
}

/* Newsletter card — cozy parchment two-column layout */
.newsletter-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  background: rgba(255, 252, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.15rem solid rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
  box-shadow:
    inset 0 0.2rem 0 rgba(255, 255, 255, 0.9),
    0 1.5rem 3.5rem rgba(20, 50, 30, 0.25),
    0 0.5rem 1rem rgba(20, 50, 30, 0.15);
  text-align: center;
  overflow: hidden;
}

.newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at 80% 90%, rgba(255, 225, 120, 0.12), transparent 60%);
  pointer-events: none;
}

.newsletter-card-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(8rem, 20vw, 12rem);
  flex-shrink: 0;
  margin: 0 auto;
}

.newsletter-card-illustration img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0.4rem 1.2rem rgba(40, 70, 35, 0.15));
  animation: envelope-float 5s ease-in-out infinite;
}

@keyframes envelope-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-0.5rem) rotate(1.5deg); }
}

.newsletter-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.newsletter-card-content .eyebrow {
  margin-bottom: 0.3rem;
}

.newsletter-card-content h2 {
  margin: 0;
  color: var(--forest-ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow:
    0 0.08rem 0 rgba(255, 240, 180, 0.65),
    0 0.35rem 1rem rgba(20, 57, 35, 0.18);
}

.newsletter-desc {
  max-width: 32rem;
  margin: 0.6rem auto 0;
  color: #2a4d3a;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 246, 205, 0.45);
}

.newsletter-form {
  max-width: 100%;
  margin: 1.2rem 0 0;
}

.newsletter-input-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  background: #fffdf4;
  padding: 0.35rem;
  border: 0.1rem solid rgba(91, 50, 24, 0.22);
  border-radius: 0.7rem;
  box-shadow:
    inset 0 0.06rem 0.15rem rgba(91, 50, 24, 0.08),
    0 0.2rem 0.5rem rgba(20, 48, 30, 0.04);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.newsletter-input-group:focus-within {
  border-color: rgba(47, 143, 87, 0.45);
  box-shadow:
    inset 0 0.06rem 0.15rem rgba(0, 0, 0, 0.03),
    0 0.3rem 0.8rem rgba(47, 143, 87, 0.12),
    0 0 0 0.18rem rgba(47, 143, 87, 0.10);
}

.newsletter-input-group input[type="email"] {
  border: none !important;
  background: transparent !important;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #162f22;
  flex-grow: 1;
  min-height: 3rem;
  box-shadow: none !important;
}

.newsletter-input-group input[type="email"]:focus {
  outline: none !important;
  background: transparent !important;
}

.newsletter-input-group input[type="email"]::placeholder {
  color: #7a6b52;
  font-weight: 500;
}

.newsletter-input-group .wood-button {
  flex-shrink: 0;
  min-height: 3rem;
  padding: 0 1.8rem;
  white-space: nowrap;
  font-size: 0.95rem;
  border-radius: 0.65rem;
}

/* Newsletter responsive */
@media (max-width: 768px) {
  .newsletter-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(2rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2rem);
    gap: 1.2rem;
  }

  .newsletter-card-illustration {
    width: clamp(6rem, 22vw, 8rem);
    margin: 0 auto;
  }

  .newsletter-card-content {
    align-items: center;
  }

  .newsletter-desc {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .newsletter-input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: 0.8rem;
  }

  .newsletter-input-group:focus-within {
    box-shadow: none;
    border-color: transparent;
  }

  .newsletter-input-group input[type="email"] {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 0.08rem solid rgba(83, 66, 38, 0.18) !important;
    border-radius: 0.65rem !important;
    min-height: 3.2rem;
    padding: 0 1.2rem;
  }

  .newsletter-input-group .wood-button {
    width: 100%;
    min-height: 3.2rem;
    border-radius: 0.65rem;
  }
}

.newsletter-form .form-status {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.newsletter-form .form-status.is-error {
  color: #b23b3b !important;
}

.newsletter-form .form-status.is-success {
  color: #165c38 !important;
}

/* ---------- dark storybook homepage pass ---------- */

/* Nav — dark frosted glass */
.home-page .forest-nav .brand-mark,
.home-page .forest-nav .branch-nav button,
.home-page .forest-nav .branch-nav a,
.home-page .forest-nav .map-toggle {
  background: rgba(30, 28, 45, 0.85);
  border: 0.08rem solid rgba(255, 255, 255, 0.12);
  color: #ebe7f8;
  padding: 0.65rem 1.2rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
  text-shadow: none;
  backdrop-filter: blur(0.6rem);
  -webkit-backdrop-filter: blur(0.6rem);
  transition: all 250ms ease;
}

.home-page .forest-nav .brand-mark {
  color: #fff;
  font-weight: 800;
}

.home-page .forest-nav .branch-nav button[data-auth-link],
.home-page .forest-nav .branch-nav a[data-auth-link] {
  background: var(--kw-story-cream) !important;
  color: #171326 !important;
  border-color: var(--kw-story-cream) !important;
  font-weight: 800;
  box-shadow: 0 0.4rem 1rem rgba(255, 246, 168, 0.25) !important;
}

.home-page .forest-nav .branch-nav a[aria-current="page"],
.home-page .forest-nav .branch-nav button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* Hero Section content box */
.home-page .video-opening-copy {
  background: rgba(34, 32, 53, 0.88);
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  color: var(--kw-story-text);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.2rem;
  box-shadow: 
    0 1.2rem 3.5rem rgba(0, 0, 0, 0.45),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0.8rem);
  -webkit-backdrop-filter: blur(0.8rem);
}

.home-page .video-opening-copy .eyebrow {
  color: var(--kw-story-cream);
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.home-page .video-opening-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  text-shadow: none;
}

.home-page .video-opening-copy p:not(.eyebrow) {
  color: #ebe7f8;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  margin-top: 0.8rem;
}

.home-page .video-opening-copy .hero-actions {
  margin-top: 1.8rem;
  gap: 1rem;
}

/* Typography & Headings */
.home-page .section-heading,
.home-page .reflection-copy {
  color: var(--kw-story-text);
  text-shadow: none;
}

.home-page .guide-grove .section-heading,
.home-page .section-heading.is-centered {
  background: rgba(34, 32, 53, 0.85);
  border: 0.08rem solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  padding: clamp(1.8rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
  max-width: 48rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  box-shadow: 
    0 1rem 2.5rem rgba(0, 0, 0, 0.35),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0.6rem);
  -webkit-backdrop-filter: blur(0.6rem);
  text-align: center;
}

.home-page .section-heading .eyebrow,
.home-page .reflection-copy .eyebrow,
.home-page .newsletter-card-content .eyebrow {
  color: var(--kw-story-cream);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-shadow: none;
  margin-bottom: 0.4rem;
}

.home-page .section-heading h2,
.home-page .reflection-copy h2,
.home-page .newsletter-card-content h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  text-shadow: none;
}

.home-page .section-heading p:not(.eyebrow),
.home-page .reflection-copy p:not(.eyebrow),
.home-page .newsletter-desc {
  color: #ebe7f8;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  margin-top: 0.8rem;
  text-shadow: none;
}

/* Cards & Boards */
.home-page .guide-card,
.home-page .reflection-copy,
.home-page .tier-caption,
.home-page .pricing-footnote,
.home-page .newsletter-card {
  background: var(--kw-story-panel) !important;
  border: 0.08rem solid var(--kw-story-line) !important;
  border-radius: 1.2rem !important;
  box-shadow: 
    0 1rem 2.5rem rgba(0, 0, 0, 0.35),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.08) !important;
  color: var(--kw-story-text);
  text-shadow: none;
  backdrop-filter: blur(0.6rem);
  -webkit-backdrop-filter: blur(0.6rem);
  transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-page .guide-card {
  padding: 2.2rem;
  gap: 1.8rem;
}

.home-page .guide-card:hover {
  transform: translateY(-0.35rem) scale(1.005);
  border-color: var(--kw-story-cream) !important;
  box-shadow: 
    0 1.4rem 3.5rem rgba(0, 0, 0, 0.45),
    0 0 0 0.08rem var(--kw-story-cream),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.1) !important;
}

.home-page .reflection-copy {
  padding: clamp(2rem, 3.5vw, 3rem);
  max-width: 32rem;
}

.home-page .reflection-rhythm span {
  color: #171326;
  background: var(--kw-story-cream);
  border-color: rgba(255, 246, 168, 0.38);
  box-shadow: 0 0.32rem 0.72rem rgba(255, 246, 168, 0.18);
}

.home-page .reflection-scenes::before {
  opacity: 0.78;
  background:
    linear-gradient(115deg, rgba(91, 198, 205, 0.24), rgba(255, 246, 168, 0.34) 44%, rgba(118, 89, 166, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.home-page .reflection-scene-card {
  background: #fff8e8;
  box-shadow:
    0 0.62rem 0.95rem rgba(0, 0, 0, 0.42),
    inset 0 0 0 0.08rem rgba(91, 50, 24, 0.09);
}

.home-page .reflection-scene-card:hover,
.home-page .reflection-scene-card:focus-within {
  box-shadow:
    0 0.82rem 1rem rgba(0, 0, 0, 0.48),
    0 0 0 0.08rem rgba(255, 246, 168, 0.4),
    inset 0 0 0 0.08rem rgba(91, 50, 24, 0.08);
}

.home-page .reflection-scene-card strong {
  color: #171326;
}

.home-page .reflection-scene-card span {
  color: #5c4127;
}

.home-page .library-showcase {
  background: rgba(34, 32, 53, 0.65);
  border: 0.08rem solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.home-page .library-showcase::after {
  border-color: rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.05), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.home-page .guide-card h2,
.home-page .reflection-copy h2,
.home-page .tier-caption h3,
.home-page .newsletter-card-content h2 {
  color: #fff;
  font-family: var(--font-display);
  text-shadow: none;
}

.home-page .guide-copy p,
.home-page .reflection-copy p:not(.eyebrow),
.home-page .tier-caption p,
.home-page .pricing-footnote,
.home-page .newsletter-desc {
  color: #ebe7f8;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: none;
}

.home-page .guide-real-photo {
  border: 0.35rem solid #38354d;
  box-shadow: 
    0 0 0 0.12rem rgba(255, 255, 255, 0.08),
    0 0.6rem 1.4rem rgba(0, 0, 0, 0.35);
}

.home-page .guide-art::before {
  background: radial-gradient(circle, rgba(119, 88, 166, 0.28), transparent 70%);
}

.home-page .guide-illustration,
.home-page .tier-art {
  filter: drop-shadow(0 0.8rem 1.5rem rgba(0, 0, 0, 0.45));
}

.home-page .newsletter-card-illustration img {
  mix-blend-mode: normal;
  filter: brightness(1.2) drop-shadow(0 0.8rem 1.5rem rgba(0, 0, 0, 0.35));
}

.home-page .tier-caption strong {
  color: var(--kw-story-cream);
  font-size: 1.8rem;
}

.home-page .tier-caption strong small {
  color: #ebe7f8;
  font-weight: 600;
}

.home-page .tier-family .tier-caption {
  background: var(--kw-story-panel) !important;
  border-color: var(--kw-story-cream) !important;
  box-shadow:
    0 0 0 0.15rem rgba(255, 246, 168, 0.15),
    0 1.2rem 3rem rgba(0, 0, 0, 0.42) !important;
}

.home-page .tier-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 20rem; /* Give pricing boxes consistent height */
  padding: 1.8rem 1.4rem;
  box-sizing: border-box;
}

.home-page .tier-caption .wood-button {
  margin-top: auto; /* Push buttons to the bottom of the card */
  width: 100%;
}

/* Wood Buttons */
.home-page .wood-button {
  background: var(--kw-story-cream) !important;
  border: 0 !important;
  color: #171326 !important;
  font-weight: 800;
  text-shadow: none !important;
  padding: 0.72rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 0.4rem 1.2rem rgba(255, 246, 168, 0.22) !important;
  transition: all 250ms ease;
}

.home-page .wood-button:hover,
.home-page .wood-button:focus-visible {
  filter: brightness(1.08) !important;
  transform: translateY(-0.1rem) !important;
  box-shadow: 0 0.6rem 1.6rem rgba(255, 246, 168, 0.35) !important;
}

.home-page .wood-button.is-quiet {
  background: #38354d !important;
  border: 0.08rem solid #57516f !important;
  color: #f7f3ff !important;
  box-shadow: none !important;
}

.home-page .wood-button.is-quiet:hover {
  background: #474360 !important;
  transform: translateY(-0.1rem) !important;
}

.home-page .tier-caption .wood-button[disabled] {
  background: #242235 !important;
  border: 0.08rem solid #38354d !important;
  color: #57516f !important;
  opacity: 0.85 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Newsletter Card */
.home-page .newsletter-card {
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 48rem;
}

/* Newsletter Input */
.home-page .newsletter-input-group {
  border-color: #47425f;
  background: #222033;
  padding: 0.45rem;
  border-radius: 999px;
  box-shadow: inset 0 0.08rem 0.18rem rgba(0, 0, 0, 0.25);
  max-width: 32rem;
  margin: 1.5rem auto 0;
  transition: all 250ms ease;
}

.home-page .newsletter-input-group:focus-within {
  border-color: var(--kw-story-cream);
  box-shadow: 
    inset 0 0.08rem 0.18rem rgba(0, 0, 0, 0.2),
    0 0 0 0.15rem rgba(255, 246, 168, 0.15);
}

.home-page .newsletter-input-group input[type="email"] {
  color: #fff;
  padding-left: 1.2rem;
}

.home-page .newsletter-input-group input[type="email"]::placeholder {
  color: #837a9f;
  font-weight: 500;
}

.home-page .newsletter-input-group .wood-button {
  border-radius: 999px;
  min-height: 2.8rem;
  padding: 0 1.8rem;
  box-shadow: none !important;
}

/* Footer Card */
.home-page .forest-footer {
  background: transparent;
}

.home-page .footer-main {
  background: rgba(23, 22, 38, 0.86);
  border: 0.08rem solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  color: #fffdf5;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0.6rem);
  -webkit-backdrop-filter: blur(0.6rem);
}

.home-page .footer-brand .eyebrow {
  color: var(--kw-story-cream);
  font-weight: 800;
  letter-spacing: 0.15em;
}

.home-page .footer-brand h2,
.home-page .footer-tagline {
  color: #fff;
}

.home-page .footer-links a {
  background: #38354d;
  border-color: #57516f;
  border-radius: 999px;
  padding: 0.58rem 1.2rem;
  color: #f7f3ff;
  font-weight: 700;
  transition: all 250ms ease;
}

.home-page .footer-links a:hover,
.home-page .footer-links a:focus-visible {
  background: var(--kw-story-cream);
  color: #171326;
  border-color: var(--kw-story-cream);
  transform: translateY(-0.08rem);
}

/* Mobile responsive adjustments */
@media (max-width: 720px) {
  .home-page .video-opening-copy {
    width: min(22rem, 100%);
    padding: 1.5rem;
    background: rgba(34, 32, 53, 0.92);
  }

  .home-page .guide-grove .section-heading,
  .home-page .section-heading.is-centered {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .home-page .guide-card,
  .home-page .reflection-copy,
  .home-page .tier-caption,
  .home-page .pricing-footnote,
  .home-page .newsletter-card,
  .home-page .library-showcase {
    border-radius: 1rem !important;
  }

  .home-page .tier-caption {
    min-height: auto;
  }

  .home-page .newsletter-input-group {
    border-radius: 1rem;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.8rem;
  }

  .home-page .newsletter-input-group input[type="email"] {
    background: #222033;
    border: 0.08rem solid #47425f;
    border-radius: 0.8rem;
    min-height: 3.2rem;
    padding: 0 1.2rem;
  }

  .home-page .newsletter-input-group .wood-button {
    width: 100%;
    min-height: 3.2rem;
    border-radius: 0.8rem;
  }

  /* Mobile nav overlay */
  .home-page .forest-nav .branch-nav {
    background:
      linear-gradient(180deg, rgba(17, 16, 36, 0.92), rgba(17, 16, 36, 0.82)),
      var(--kw-next-character-grove) center / cover no-repeat #172235;
  }

  .home-page .forest-nav .branch-nav button,
  .home-page .forest-nav .branch-nav a {
    width: min(14rem, 82vw);
    min-height: 3rem;
    background: #38354d;
    color: #f7f3ff;
  }

  .home-page .forest-nav .branch-nav button[data-auth-link],
  .home-page .forest-nav .branch-nav a[data-auth-link] {
    background: var(--kw-story-cream) !important;
    color: #171326 !important;
  }

  .home-page .newsletter-card,
  .home-page .footer-main {
    border-radius: 1rem !important;
  }
}
