/* Home page sections, Apple-style pinned scroll story, interactive check & theme demos.
   Shared tokens, fonts, header, footer, and button pulse live in site.css. */

.app-screen {
  width: 300px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--screen-shadow);
  background: #FBF8EA;
  flex: none;
}

.app-screen img {
  width: 100%;
  height: auto;
}

.release {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

.release strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.release .play-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.release .play-glyph {
  width: 18px;
  height: 18px;
}

/* =========================================================
   Hero: food photos + slow cross-fade saved post -> tidy card
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0 48px;
  min-height: 620px;
}

.hero-copy h1 {
  max-width: 10em;
}

.hero-copy .lead {
  margin-top: 22px;
}

.hero-copy .pill {
  margin-top: 28px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.hero-cluster {
  position: relative;
  width: 100%;
  max-width: 576px;
  height: 520px;
}

.dish {
  position: absolute;
}

.dish img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.dish-bowl {
  width: 272px;
  top: 8px;
  right: 20px;
  transform: rotate(5deg);
  z-index: 2;
}

.dish-pasta {
  width: 212px;
  top: 256px;
  left: 8px;
  transform: rotate(-8deg);
  z-index: 1;
}

.dish-soup {
  width: 202px;
  top: 298px;
  right: 10px;
  transform: rotate(8deg);
  z-index: 2;
}

/* Import hook overlay: messy saved post -> tidy Palatto card anchored over Burrito bowl */
.import-hook {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.saved-scrap {
  position: absolute;
  top: 22px;
  left: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  width: 258px;
}

.scrap-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
}

.scrap-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid var(--line);
  flex: none;
}

.saved-scrap p {
  font-size: 12px;
  line-height: 1.48;
  color: var(--muted);
}

.hook-arrow {
  position: absolute;
  top: 158px;
  left: 230px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  display: grid;
  place-items: center;
  box-shadow: var(--card-shadow);
}

.hook-arrow .icon {
  width: 18px;
  height: 18px;
}

.tidy-card {
  position: absolute;
  top: 204px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--page);
  color: var(--ink);
  border: 2px solid var(--lime);
  border-radius: 20px;
  padding: 12px 18px 12px 14px;
  box-shadow: var(--shadow);
}

.tidy-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--herb);
  color: var(--on-herb);
  display: grid;
  place-items: center;
  flex: none;
}

.tidy-badge .icon {
  width: 18px;
  height: 18px;
}

.tidy-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.tidy-card > div span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-motion-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 576px;
}

.hero-motion-row .text-button {
  font-size: 13px;
  color: var(--muted);
}

.hero-motion-row .text-button:hover {
  color: var(--green);
}

/* =========================================================
   Scroll Story ("How it works"): calm static sequence by
   default (no-JS & reduced motion); pinned scrubbing phone
   when enhanced with normal motion.
   ========================================================= */
/* Owner (2026-11-30): the video was hard to find. It now sits on a soft lime
   panel (like the other green panels) with a "Watch" label, and the hero's
   main button jumps straight to it and starts playback. */
.promo-section {
  max-width: 1120px;
  text-align: center;
  background: var(--tint);
  color: var(--on-tint);
  border-radius: 40px;
  padding: clamp(28px, 4vw, 52px) clamp(14px, 4.5vw, 64px) clamp(36px, 4.5vw, 60px);
  scroll-margin-top: 24px;
}

.promo-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.promo-section h2 {
  margin-bottom: clamp(16px, 2.3vw, 32px);
}

.promo-player {
  --promo-tab-half: 24px;
  position: relative;
  /* The sticky story track starts above its own heading on desktop. */
  z-index: 1;
  padding-block-end: var(--promo-tab-half);
}

.promo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.promo-video:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.promo-play {
  position: absolute;
  inset: auto 0 var(--promo-tab-half);
  translate: 0 50%;
  margin-inline: auto;
  width: max-content;
  max-width: 100%;
  min-height: calc(2 * var(--promo-tab-half));
  padding: 10px 16px;
  gap: 6px;
  font-size: 14px;
  color: #1C4700;
}

.promo-play svg {
  flex: none;
}

.promo-play:hover {
  color: #1C4700;
}

.promo-play[hidden] {
  display: none;
}

.promo-play:focus-visible {
  outline: 3px solid #1A2410;
  outline-offset: 5px;
}

@media (max-width: 480px) {
  .promo-player:has(.promo-play:not([hidden])) .promo-video {
    /* Match the poster canvas and clear the lower food cards at rest. */
    background: #FAF8E9;
    object-fit: contain;
    padding-block-end: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill.promo-play::after {
    animation: none !important;
    box-shadow: none;
  }
}

.story-intro {
  max-width: 56ch;
  margin-bottom: 24px;
}

.story-intro .lead {
  margin-top: 16px;
  color: var(--muted);
}

/* Default static layout (No JS & reduced motion) */
.story-sticky-col,
.story-rail,
.story-mobile-rail {
  display: none;
}

.story-steps {
  display: grid;
  gap: 56px;
}

.story-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 56px;
  align-items: center;
}

.story-step-copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.story-step-copy .lead {
  margin-top: 16px;
  color: var(--ink);
  max-width: 34ch;
}

.story-note {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 40ch;
}

.step-inline-screen {
  border: 6px solid #1A2410;
  border-radius: 34px;
  justify-self: center;
}

:root[data-theme="dark"] .step-inline-screen {
  border-color: #2B3620;
}

/* Plain inline brand row inside Step 1 (not buttons) */
.source-strip {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

.source-brand {
  display: flex;
}

.source-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--ink);
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: default;
}

.brand-glyph {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
  background-color: var(--brand-color);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.source-instagram .brand-glyph {
  --brand-color: #FF0069;
  -webkit-mask-image: url('../icons/instagram.svg?v=f53af2d1fc');
  mask-image: url('../icons/instagram.svg?v=f53af2d1fc');
}

.source-tiktok .brand-glyph {
  --brand-color: #000000;
  -webkit-mask-image: url('../icons/tiktok.svg?v=6f54ac8d32');
  mask-image: url('../icons/tiktok.svg?v=6f54ac8d32');
}

:root[data-theme="dark"] .source-tiktok .brand-glyph {
  --brand-color: #FFFFFF;
}

.source-youtube .brand-glyph {
  --brand-color: #FF0000;
  -webkit-mask-image: url('../icons/youtube.svg?v=5038808acb');
  mask-image: url('../icons/youtube.svg?v=5038808acb');
}

.source-facebook .brand-glyph {
  --brand-color: #0866FF;
  -webkit-mask-image: url('../icons/facebook.svg?v=b06d18d844');
  mask-image: url('../icons/facebook.svg?v=b06d18d844');
}

/* Enhanced pinned scroll story (normal motion only) */
@media (prefers-reduced-motion: no-preference) {
  .enhanced .step-inline-screen {
    display: none;
  }

  .enhanced .story-intro {
    margin-bottom: 16px;
  }

  .enhanced .story-track {
    position: relative;
    view-timeline: --story-scroll block;
  }

  .enhanced .story-backdrop {
    position: absolute;
    inset: 6% 2%;
    border-radius: 44px;
    overflow: hidden;
    pointer-events: none;
  }

  .enhanced .story-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
  }

  .enhanced .bg-step-0 {
    background: var(--tint);
    opacity: .65;
  }

  .enhanced .bg-step-1 {
    background: var(--peach);
  }

  .enhanced .bg-step-2 {
    background: var(--tint);
  }

  .enhanced .bg-step-3 {
    background: var(--cream);
    border: 1px solid var(--line);
  }

  :root[data-theme="dark"] .enhanced .bg-step-0,
  :root[data-theme="dark"] .enhanced .bg-step-2 {
    background: #223514;
  }

  :root[data-theme="dark"] .enhanced .bg-step-1 {
    background: #3A2711;
  }

  :root[data-theme="dark"] .enhanced .bg-step-3 {
    background: #1B2414;
  }

  .enhanced .story-phone {
    position: relative;
    z-index: 2;
    padding: 10px;
    border-radius: 46px;
    background: #1A2410;
    border: 1px solid rgb(255 255 255 / .08);
    box-shadow:
      0 32px 72px -18px rgb(26 36 16 / .32),
      0 10px 24px -10px rgb(26 36 16 / .2);
    transform-style: preserve-3d;
  }

  :root[data-theme="dark"] .enhanced .story-phone {
    background: #0F150A;
    border-color: #39482C;
    box-shadow:
      0 34px 76px -16px rgb(0 0 0 / .72),
      0 12px 26px -10px rgb(0 0 0 / .5);
  }

  .enhanced .story-phone-viewport {
    position: relative;
    height: min(710px, 78vh);
    width: auto;
    aspect-ratio: 1170 / 2532;
    max-width: 390px;
    border-radius: 37px;
    overflow: hidden;
    background: #FBF8EA;
  }

  .enhanced .story-screen {
    position: absolute;
    inset: 0;
    margin: 0;
    background: #FBF8EA;
  }

  .enhanced .story-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .enhanced .screen-0 { z-index: 1; }
  .enhanced .screen-1 {
    z-index: 2;
    box-shadow: 0 -14px 28px -10px rgb(26 36 16 / .2);
  }
  .enhanced .screen-2 {
    z-index: 3;
    box-shadow: 0 -14px 28px -10px rgb(26 36 16 / .2);
  }
  .enhanced .screen-3 {
    z-index: 4;
    box-shadow: 0 -14px 28px -10px rgb(26 36 16 / .2);
  }

  /* Desktop (>= 900px): 4× viewport-height pinned story */
  @media (min-width: 900px) {
    .enhanced .story-track {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
      gap: 64px;
      align-items: start;
    }

    .enhanced .story-left {
      order: 1;
      display: grid;
      grid-template-columns: 4px minmax(0, 1fr);
      gap: 36px;
      align-items: start;
      /* Span the whole track so the rail pins and unpins exactly with the phone. */
      align-self: stretch;
    }

    .enhanced .story-sticky-col {
      order: 2;
      display: flex;
      position: sticky;
      top: 0;
      height: 100vh;
      align-items: center;
      justify-content: center;
    }

    .enhanced .story-stage {
      position: relative;
      width: 100%;
      height: min(760px, 86vh);
      display: flex;
      align-items: center;
      justify-content: center;
      perspective: 1200px;
    }

    .enhanced .story-rail {
      display: block;
      position: sticky;
      /* Centred on the phone (50vh) and short enough to clear the intro text above. */
      top: 34vh;
      height: 32vh;
      /* Same pin window as the 100vh sticky phone column: starts pinning when the
         track reaches the top, and stays centred beside the phone until it leaves. */
      margin-block: 34vh;
      border-radius: 999px;
      background: var(--line);
      overflow: hidden;
    }

    .enhanced .story-rail-fill {
      display: block;
      width: 100%;
      height: 100%;
      background: var(--lime);
      transform-origin: top;
      transform: scaleY(.08);
    }

    .enhanced .story-steps {
      display: block;
      /* Lead-in/out so every step can reach the middle of the screen, level with
         the pinned phone: step i is centred at scroll progress i/3. */
      padding-block: 30vh;
    }

    .enhanced .story-step {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 40vh;
      padding-block: 8px;
      gap: 0;
    }
  }

  /* Phones & narrow tablets (< 900px): pinned top phone + scrolling cream cards */
  @media (max-width: 899px) {
    .enhanced .story-track {
      display: block;
      /* With 24vh cards on a 32vh pitch and a 63vh pinned phone, card i reaches the
         reading line (66% down the screen) at scroll progress i/3, in step with its screen. */
      padding-bottom: 10vh;
    }

    .enhanced .story-sticky-col {
      display: flex;
      position: sticky;
      top: 0;
      height: 63vh;
      z-index: 3;
      align-items: center;
      justify-content: center;
      padding: 8px 0 24px;
      background: linear-gradient(to bottom, var(--page) 94%, transparent 100%);
    }

    .enhanced .story-stage {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .enhanced .story-backdrop {
      inset: 3% 8% 12%;
      border-radius: 30px;
    }

    .enhanced .story-phone {
      padding: 6px;
      border-radius: 30px;
      box-shadow:
        0 20px 44px -14px rgb(26 36 16 / .28),
        0 6px 14px -8px rgb(26 36 16 / .18);
    }

    /* Owner: bigger phone on mobile, with real phone proportions (1170:2532). */
    .enhanced .story-phone-viewport {
      height: min(56vh, 540px);
      width: auto;
      aspect-ratio: 1170 / 2532;
      max-width: none;
      border-radius: 28px;
    }

    .enhanced .story-mobile-rail {
      display: block;
      position: relative;
      z-index: 2;
      width: 120px;
      height: 4px;
      border-radius: 999px;
      background: var(--line);
      overflow: hidden;
    }

    .enhanced .story-mobile-rail-fill {
      display: block;
      width: 100%;
      height: 100%;
      background: var(--lime);
      transform-origin: left;
      transform: scaleX(.08);
    }

    .enhanced .story-left {
      display: block;
      position: relative;
      z-index: 1;
    }

    .enhanced .story-steps {
      display: block;
      margin-top: 0;
      padding-top: 3vh;
    }

    .enhanced .story-step {
      display: block;
      min-height: 24vh;
      box-sizing: border-box;
      margin-bottom: 8vh;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 22px 20px;
      box-shadow: var(--card-shadow);
    }

    .enhanced .story-step:last-child {
      margin-bottom: 0;
    }

    .enhanced .story-step-copy h3 {
      font-size: 26px;
    }

    /* Compact cards so the whole card fits below the pinned phone. */
    .enhanced .story-step .story-note {
      display: none;
    }

    .enhanced .story-step-copy .lead {
      font-size: 16px;
      margin-top: 10px;
    }

    .enhanced .story-note {
      font-size: 14px;
      margin-top: 12px;
    }
  }

  /* Native CSS scroll-driven scrubbing (transform & opacity only) */
  @supports (animation-timeline: view()) {
    @keyframes story-screen-0 {
      0%, 9% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
      25%, 100% { transform: translate3d(0, -10%, 0) scale(.95); opacity: 0; }
    }

    @keyframes story-screen-1 {
      0%, 9% { transform: translate3d(0, 100%, 0) scale(1); opacity: 1; }
      25%, 42% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
      58%, 100% { transform: translate3d(0, -10%, 0) scale(.95); opacity: 0; }
    }

    @keyframes story-screen-2 {
      0%, 42% { transform: translate3d(0, 100%, 0) scale(1); opacity: 1; }
      58%, 75% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
      91%, 100% { transform: translate3d(0, -10%, 0) scale(.95); opacity: 0; }
    }

    @keyframes story-screen-3 {
      0%, 75% { transform: translate3d(0, 100%, 0) scale(1); opacity: 1; }
      91%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    }

    @keyframes story-rail-y {
      from { transform: scaleY(.08); }
      to { transform: scaleY(1); }
    }

    @keyframes story-rail-x {
      from { transform: scaleX(.08); }
      to { transform: scaleX(1); }
    }

    @keyframes story-step-0 {
      0%, 11% { opacity: 1; }
      23%, 100% { opacity: .35; }
    }

    @keyframes story-step-1 {
      0%, 11% { opacity: .35; }
      23%, 44% { opacity: 1; }
      56%, 100% { opacity: .35; }
    }

    @keyframes story-step-2 {
      0%, 44% { opacity: .35; }
      56%, 77% { opacity: 1; }
      89%, 100% { opacity: .35; }
    }

    @keyframes story-step-3 {
      0%, 77% { opacity: .35; }
      89%, 100% { opacity: 1; }
    }

    @keyframes story-bg-0 {
      0%, 11% { opacity: .68; }
      23%, 100% { opacity: 0; }
    }

    @keyframes story-bg-1 {
      0%, 11% { opacity: 0; }
      23%, 44% { opacity: .62; }
      56%, 100% { opacity: 0; }
    }

    @keyframes story-bg-2 {
      0%, 44% { opacity: 0; }
      56%, 77% { opacity: .68; }
      89%, 100% { opacity: 0; }
    }

    @keyframes story-bg-3 {
      0%, 77% { opacity: 0; }
      89%, 100% { opacity: .88; }
    }

    @keyframes story-phone-tilt {
      0% { transform: rotateY(-2.5deg) rotateX(1deg); }
      33% { transform: rotateY(2deg) rotateX(-1deg); }
      67% { transform: rotateY(-2deg) rotateX(1deg); }
      100% { transform: rotateY(1.5deg) rotateX(0deg); }
    }

    .enhanced .screen-0 {
      animation: story-screen-0 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .screen-1 {
      animation: story-screen-1 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .screen-2 {
      animation: story-screen-2 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .screen-3 {
      animation: story-screen-3 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .story-rail-fill {
      animation: story-rail-y linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .story-mobile-rail-fill {
      animation: story-rail-x linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .bg-step-0 {
      animation: story-bg-0 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .bg-step-1 {
      animation: story-bg-1 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .bg-step-2 {
      animation: story-bg-2 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    .enhanced .bg-step-3 {
      animation: story-bg-3 linear both;
      animation-timeline: --story-scroll;
      animation-range: contain 0% contain 100%;
    }

    @media (min-width: 900px) {
      .enhanced .step-0 {
        animation: story-step-0 linear both;
        animation-timeline: --story-scroll;
        animation-range: contain 0% contain 100%;
      }

      .enhanced .step-1 {
        animation: story-step-1 linear both;
        animation-timeline: --story-scroll;
        animation-range: contain 0% contain 100%;
      }

      .enhanced .step-2 {
        animation: story-step-2 linear both;
        animation-timeline: --story-scroll;
        animation-range: contain 0% contain 100%;
      }

      .enhanced .step-3 {
        animation: story-step-3 linear both;
        animation-timeline: --story-scroll;
        animation-range: contain 0% contain 100%;
      }

      .enhanced .story-phone {
        animation: story-phone-tilt linear both;
        animation-timeline: --story-scroll;
        animation-range: contain 0% contain 100%;
      }
    }
  }
}

/* =========================================================
   Check before saving: ONE authentic interactive Lemon cake
   ========================================================= */
.check-section {
  background: var(--tint);
  color: var(--on-tint);
  border-radius: 40px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.check-copy .lead {
  margin-top: 22px;
  color: var(--on-tint);
}

.check-copy p + p {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.65;
}

.check-demo {
  background: var(--page);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.check-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.check-bar-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.recipe-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.recipe-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--peach);
  color: var(--on-peach);
  display: grid;
  place-items: center;
  flex: none;
}

.recipe-thumb .icon {
  width: 26px;
  height: 26px;
}

.recipe-header h3 {
  font-size: 22px;
  line-height: 1.2;
}

.recipe-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.recipe-meta .meta-resolved {
  color: var(--green);
  font-weight: 600;
}

.check-group-head {
  margin-top: 22px;
}

.check-group-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.check-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.check-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 18px;
}

.warning {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--warm);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.warning > .icon {
  width: 20px;
  height: 20px;
  color: var(--warm-ink);
  flex: none;
}

.warning .ok-icon,
.row-icon .ok-icon {
  display: none;
}

.warning.resolved .warn-icon,
.row-icon-ok .warn-icon {
  display: none;
}

.warning.resolved .ok-icon,
.row-icon-ok .ok-icon {
  display: block;
}

.warning p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.check-action {
  border: 0;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.check-action:hover {
  background: var(--tint);
  color: var(--on-tint);
}

.time-warning {
  background: var(--peach);
  color: var(--on-peach);
}

.time-warning > .icon {
  color: var(--on-peach);
}

.warning.resolved {
  background: var(--tint);
  color: var(--on-tint);
}

.warning.resolved > .icon {
  color: var(--green);
}

.warning.resolved .check-action,
.warning.resolved .check-action:disabled {
  background: var(--lime);
  color: var(--on-lime);
  cursor: default;
  opacity: 1;
}

.warning.resolved .check-action:disabled:hover,
.warning.resolved .check-action:disabled:focus-visible,
.warning.resolved .check-action:disabled:active {
  background: var(--lime);
  color: var(--on-lime);
  transform: none;
}

.check-rows {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.check-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.check-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.row-icon .icon {
  width: 15px;
  height: 15px;
}

.row-icon-ok {
  background: var(--herb);
  color: var(--on-herb);
}

.row-icon-warn {
  background: var(--warm);
  color: var(--warm-ink);
}

.check-row-head strong {
  font-size: 15px;
  font-weight: 600;
}

.row-meta {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ingredient-chips {
  list-style: none;
  margin: 10px 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
}

:root[data-theme="dark"] .ingredient-chips li {
  background: var(--paper);
}

.ingredient-chips li[hidden] {
  display: none;
}

.ingredient-chips li.just-added {
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 600;
  animation: arrive .3s var(--ease);
}

.save-recipe-btn {
  width: 100%;
  margin-top: 22px;
}

.save-recipe-btn.saved {
  background: var(--tint);
  color: var(--on-tint);
}

.demo-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  min-height: 24px;
}

.demo-bottom p {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

.demo-bottom button[hidden] {
  display: none;
}

/* =========================================================
   Theme picker: straight preview card + distinct dark dot
   ========================================================= */
.theme-section {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 56px;
  align-items: center;
}

.theme-copy > .lead {
  margin-top: 22px;
}

.theme-copy > .enhanced-only {
  margin-top: 22px;
}

.theme-swatches {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.swatch {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

.swatch:hover {
  background: var(--paper);
}

.swatch[aria-pressed="true"] {
  background: var(--tint);
  color: var(--on-tint);
  border-color: var(--green);
  font-weight: 600;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  background: var(--swatch);
  border-radius: 50%;
  flex: none;
}

.swatch-darkKitchen .swatch-dot {
  background: #141B0E;
  border: 3px solid #8BD446;
}

.theme-preview {
  --preview-page: var(--page);
  --preview-ink: var(--ink);
  --preview-hero: var(--lime);
  --preview-on-hero: var(--on-lime);
  --preview-action: var(--green);
  --preview-peach: var(--peach);
  max-width: 390px;
  width: 100%;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--preview-page);
  color: var(--preview-ink);
  box-shadow: var(--shadow);
  justify-self: center;
  cursor: default;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-head strong {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.preview-tick {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--preview-hero);
  color: var(--preview-on-hero);
  display: grid;
  place-items: center;
  flex: none;
}

.theme-preview > img {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.theme-preview h3 {
  font-size: 22px;
  margin-top: 18px;
}

.preview-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.preview-modules span {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--preview-peach);
  color: var(--preview-ink);
  font-size: 12px;
  font-weight: 500;
  cursor: default;
}

.preview-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-accent-sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--preview-hero);
  color: var(--preview-on-hero);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

.preview-footer .small {
  margin: 0;
  color: var(--preview-action);
  font-size: 12px;
}

/* =========================================================
   Honest section & closing band (static Play tile)
   ========================================================= */
.honest-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.honest-body p {
  max-width: 45ch;
  margin-bottom: 18px;
}

.honest-body a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.closing {
  margin-top: 80px;
  border-radius: 36px;
  background: var(--lime);
  padding: 52px 64px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
  color: var(--on-lime);
}

.closing-head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.play-tile {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  flex: none;
}

.play-tile .play-glyph {
  width: 30px;
  height: 30px;
}

.closing a:focus-visible,
.closing button:focus-visible {
  outline-color: var(--on-lime);
}

.closing-detail {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.closing-links a {
  color: var(--on-lime);
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}

.closing-links .icon {
  width: 18px;
  height: 18px;
}

/* =========================================================
   Restrained Hero & demo motion (transform & opacity only)
   ========================================================= */
@keyframes float-dish {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Slow, calm Hero cross-fade: saved post -> tidy Burrito bowl */
@keyframes scrap-fade {
  0%, 34% { opacity: 1; }
  46%, 86% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

@keyframes tidy-fade {
  0%, 36% { opacity: 0; }
  48%, 88% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes arrive {
  from {
    transform: translateY(8px);
    opacity: .35;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes theme-crossfade {
  0% { opacity: .72; transform: scale(.99); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes invite-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.enhanced .float {
  animation: float-dish 8.5s ease-in-out infinite;
  animation-play-state: paused;
}

.dish-pasta .float {
  animation-duration: 9.5s;
  animation-delay: -2.4s;
}

.dish-soup .float {
  animation-duration: 9s;
  animation-delay: -5.1s;
}

.enhanced .hero .saved-scrap {
  animation: scrap-fade 8.4s ease-in-out infinite;
  animation-play-state: paused;
}

.enhanced .hero .tidy-card {
  animation: tidy-fade 8.4s ease-in-out infinite;
  animation-play-state: paused;
}

.enhanced .hero.is-visible .float,
.enhanced .hero.is-visible .saved-scrap,
.enhanced .hero.is-visible .tidy-card {
  animation-play-state: running;
}

.check-action.invite-pulse {
  animation: invite-pulse 1.1s var(--ease) 1;
}

.theme-preview.changed {
  animation: theme-crossfade 280ms var(--ease);
}

.scene-hidden .float,
.scene-hidden .saved-scrap,
.scene-hidden .tidy-card {
  animation-play-state: paused !important;
}

/* Pause motion stops decorative float, crossfade, phone tilt & backdrop hue drift;
   scroll-tied phone screen scrubbing continues because it is user-driven. */
.motion-paused .float,
.motion-paused .saved-scrap,
.motion-paused .tidy-card,
.motion-paused .check-action.invite-pulse {
  animation-play-state: paused !important;
}

.motion-paused .story-phone {
  animation: none !important;
  transform: none !important;
}

.motion-paused .story-bg {
  animation: none !important;
}

.motion-paused .bg-step-0 {
  opacity: .55 !important;
}

.motion-paused .bg-step-1,
.motion-paused .bg-step-2,
.motion-paused .bg-step-3 {
  opacity: 0 !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1150px) {
  .hero {
    gap: 28px;
  }

  .hero-cluster {
    transform: scale(.86);
    transform-origin: center right;
  }

  .check-section {
    padding: 48px;
    gap: 40px;
  }

  .theme-section,
  .honest-section {
    gap: 48px;
  }

  .closing {
    padding: 44px;
    gap: 36px;
  }
}

@media (min-width: 701px) and (max-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-top: 28px;
    min-height: 0;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-visual {
    align-items: center;
  }

  .hero-cluster {
    width: 540px;
    max-width: 100%;
    transform: none;
  }

  .check-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .story-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-inline-screen {
    width: 260px;
  }
}

@media (max-width: 800px) {
  .theme-section {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .theme-preview {
    padding: 20px;
  }

  .theme-swatches {
    gap: 6px;
  }

  .swatch {
    font-size: 12px;
    padding: 10px 12px;
  }

  .honest-section {
    gap: 32px;
  }

  .closing {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 20px 0 24px;
    min-height: 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy .lead {
    margin-top: 18px;
  }

  .hero-copy .pill {
    margin-top: 22px;
  }

  .release {
    font-size: 13px;
    margin-top: 16px;
  }

  .hero-visual {
    align-items: flex-start;
    width: 100%;
  }

  .hero-cluster {
    width: 100%;
    max-width: 390px;
    height: 416px;
    transform: none;
  }

  .dish-bowl {
    width: 194px;
    right: 6px;
    top: 0;
  }

  .dish-pasta {
    width: 156px;
    left: 2px;
    top: 230px;
  }

  .dish-soup {
    width: 152px;
    right: 2px;
    top: 244px;
  }

  .saved-scrap {
    top: 8px;
    left: 0;
    width: 242px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .saved-scrap p {
    font-size: 12px;
  }

  .hook-arrow {
    top: 132px;
    left: 164px;
    width: 28px;
    height: 28px;
  }

  .hook-arrow .icon {
    width: 15px;
    height: 15px;
  }

  .tidy-card {
    top: 158px;
    right: 4px;
    padding: 10px 14px 10px 11px;
    border-radius: 16px;
    gap: 10px;
  }

  .tidy-badge {
    width: 28px;
    height: 28px;
  }

  .tidy-card strong {
    font-size: 14px;
  }

  .tidy-card > div span {
    font-size: 12px;
  }

  .hero-motion-row {
    justify-content: flex-start;
  }

  .source-strip {
    gap: 10px 18px;
    margin-top: 16px;
  }

  .source-tile {
    font-size: 13px;
    gap: 7px;
  }

  .brand-glyph {
    width: 18px;
    height: 18px;
  }

  .check-section {
    grid-template-columns: 1fr;
    border-radius: 28px;
    padding: 32px 20px;
    gap: 28px;
  }

  .check-demo {
    padding: 20px;
    border-radius: 24px;
  }

  .warning {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 18px;
  }

  .warning p {
    flex-basis: calc(100% - 34px);
  }

  .ingredient-chips {
    margin-left: 0;
  }

  .demo-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }

  .theme-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .theme-copy > .lead {
    margin-top: 18px;
  }

  .theme-swatches {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 8px 6px 2px;
    margin-top: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .swatch {
    flex: none;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .theme-preview {
    max-width: 350px;
    margin: auto;
    padding: 22px;
  }

  .honest-section {
    display: block;
    padding-top: 36px;
  }

  .honest-body {
    margin-top: 20px;
  }

  .closing {
    margin-top: 56px;
    border-radius: 28px;
    padding: 32px 24px;
    gap: 20px;
  }

  .closing-head {
    gap: 16px;
  }

  .play-tile {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .play-tile .play-glyph {
    width: 24px;
    height: 24px;
  }

  .closing h2 {
    font-size: 30px;
  }

  .closing-detail {
    font-size: 16px;
  }

  .closing-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
  }
}

@media (max-width: 374px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-cluster {
    height: 396px;
  }

  .dish-bowl {
    width: 176px;
  }

  .dish-pasta {
    width: 144px;
  }

  .dish-soup {
    width: 140px;
  }

  .saved-scrap {
    width: 236px;
  }

  .check-section {
    padding-inline: 16px;
  }

  .check-demo {
    padding: 16px;
  }

  .theme-preview {
    padding: 18px;
  }
}

/* Reduced motion: calm static sequence, no pinning, no scrubbing.
   Button tap-glow in site.css stays untouched. */
@media (prefers-reduced-motion: reduce) {
  .story-sticky-col,
  .story-rail,
  .story-mobile-rail {
    display: none !important;
  }

  .step-inline-screen {
    display: block !important;
  }

  .story-step {
    opacity: 1 !important;
  }

  .dish .float,
  .tidy-card,
  .saved-scrap {
    opacity: 1 !important;
  }

  .dish .float {
    transform: none !important;
  }

  .saved-scrap {
    transform: rotate(-3deg) !important;
  }

  .hero-motion-row {
    display: none;
  }

  .theme-preview.changed,
  .ingredient-chips li.just-added {
    opacity: 1;
    transform: none;
  }
}

/* Owner (2026-11-29): the mobile Lemon cake card was too long; make it closer to a
   phone screen's proportions without a frame. Fix buttons sit beside their text,
   like the app, and spacing is tightened. Phones only. */
@media (max-width: 700px) {
  .check-section {
    padding: 26px 14px;
    gap: 22px;
  }

  .check-demo {
    padding: 16px 16px 12px;
    border-radius: 24px;
  }

  .check-bar {
    padding-bottom: 12px;
  }

  .check-bar-title {
    font-size: 16px;
  }

  .recipe-header {
    margin-top: 12px;
    gap: 12px;
  }

  .recipe-thumb {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .recipe-header h3 {
    font-size: 19px;
  }

  .check-group-head {
    margin-top: 14px;
  }

  .check-group-label {
    margin-top: 12px;
  }

  .warning {
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 10px 10px 12px;
    gap: 10px;
    margin-top: 8px;
  }

  .warning p {
    flex-basis: auto;
    font-size: 13px;
    line-height: 1.38;
  }

  .check-action {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .check-rows {
    margin-top: 14px;
  }

  .check-row {
    padding: 9px 0;
  }

  .save-recipe-btn {
    margin-top: 14px;
  }

  .demo-bottom {
    margin-top: 8px;
  }

  .demo-bottom:not(:has(*:not(:empty))) {
    min-height: 0;
    margin-top: 0;
  }
}

/* Owner (2026-11-29): too much gap between "How Palatto works" and "Bring it in".
   On desktop, slide the scroll track up under the intro so the intro fills the
   track's lead-in space (left column) instead of sitting above it. The intro is
   kept narrower than the left column so it never meets the phone. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .enhanced .story-section .story-intro {
    position: relative;
    z-index: 2;
    max-width: min(56ch, calc(100% - 524px));
    margin-bottom: 24px;
  }

  .enhanced .story-section .story-track {
    margin-top: -30vh;
  }
}

/* Owner (2026-11-29): on desktop the Lemon cake card was too wide for a phone screen.
   Give it phone proportions: phone width, with the compact app-like spacing. */
@media (min-width: 701px) {
  .check-demo {
    max-width: 350px;
    padding: 20px 18px 14px;
    border-radius: 30px;
  }

  .check-bar { padding-bottom: 12px; }
  .check-bar-title { font-size: 16px; }
  .recipe-header { margin-top: 14px; gap: 12px; }
  .recipe-thumb { width: 48px; height: 48px; border-radius: 14px; }
  .recipe-header h3 { font-size: 20px; }
  .check-group-head { margin-top: 16px; }
  .check-group-label { margin-top: 12px; }

  .warning {
    align-items: center;
    padding: 12px 12px 12px 14px;
    gap: 10px;
    margin-top: 8px;
  }

  .warning p { font-size: 13px; line-height: 1.4; }

  .check-action {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .check-rows { margin-top: 14px; }
  .check-row { padding: 10px 0; }
  .save-recipe-btn { margin-top: 16px; }
  .demo-bottom { margin-top: 8px; }

  .demo-bottom:not(:has(*:not(:empty))) {
    min-height: 0;
    margin-top: 0;
  }
}

/* Owner (2026-11-29): too much space between the scroll story and the check section.
   The pinned phone column is a full screen tall, so the phone leaves empty space
   below itself; pull the next section up by that amount on desktop, leaving the
   normal section gap under the phone. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .enhanced .story-section {
    /* Owner: ~165px between the phone and the green panel (60 too tight, 115 still a little tight). */
    margin-bottom: calc((min(710px, 78vh) + 16px - 100vh) / 2 + 104px);
  }
}

/* Owner (2026-11-29): line up the themes, "Free, with no ads" and closing-band
   sections on one shared two-column grid, so every right column starts at the
   same x. The closing band's columns are offset by its 64px padding. */
@media (min-width: 901px) {
  .theme-section,
  .honest-section {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .closing {
    grid-template-columns: calc(50% - 32px) 1fr;
    gap: 64px;
  }

  .theme-section .theme-preview {
    justify-self: start;
    margin: 0;
  }
}

/* Owner (2026-11-29): the closing band's content lines up with the sections
   above. The content stays on the normal content grid; only the green background
   is drawn wider (up to 64px past the content edge, at least 24px from the screen
   edge). Desktop only. */
@media (min-width: 901px) {
  .closing {
    --band-bleed: min(64px, max(24px, (100vw - 1248px) / 2 - 24px));
    position: relative;
    isolation: isolate;
    background: none;
    padding-inline: 0;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .closing::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--band-bleed));
    border-radius: inherit;
    background: var(--lime);
    z-index: -1;
  }
}

/* Owner (2026-11-29): both green panels (the check section and the closing band)
   now match: content sits on the shared two-column grid (left edge = page content
   edge, right column = same x as the theme card and the "no ads" paragraph), and
   only the coloured background bleeds past the edge by the same amount. */
@media (min-width: 901px) {
  .check-section {
    --band-bleed: min(64px, max(24px, (100vw - 1248px) / 2 - 24px));
    position: relative;
    isolation: isolate;
    background: none;
    padding-inline: 0;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .check-section::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--band-bleed));
    border-radius: inherit;
    background: var(--tint);
    z-index: -1;
  }

  .check-section .check-demo {
    justify-self: start;
  }
}

/* Owner (2026-11-29): the pictures (story phone, Lemon cake card, theme card) didn't
   line up. All three now sit centred on one shared axis: the middle of the right
   column of the common 1fr 1fr grid, and both cards share one width. */
@media (min-width: 901px) {
  .enhanced .story-track {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .check-section .check-demo,
  .theme-section .theme-preview {
    justify-self: center;
    width: 100%;
    max-width: 350px;
    margin: 0;
  }
}

/* Owner (2026-11-29): right-column text starts on the same line as the cards above
   (the cards are 350px, centred in the right column). */
@media (min-width: 901px) {
  .honest-section > .honest-body,
  .closing > div:last-child {
    padding-left: max(0px, (100% - 350px) / 2);
  }
}

/* Owner (2026-11-30): new motto "Find it anywhere. Cook it here." reads as two lines,
   one sentence each, on wide screens. */
.hero-copy h1 {
  max-width: none;
}

@media (min-width: 901px) {
  .hero-copy h1 {
    font-size: clamp(52px, 5.1vw, 84px);
    white-space: nowrap;
  }
}

/* Hero actions (owner, 2026-11-30): "Watch the video" is the main, pulsing
   button; "See how it works" is the quieter second one and doesn't pulse. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

.hero-copy .hero-actions .pill,
.hero-copy .hero-actions .secondary-pill {
  margin-top: 0;
}

.hero-actions .secondary-pill {
  min-height: 56px;
  padding: 14px 24px;
  font-size: 16px;
}

.hero-actions .secondary-pill::after {
  animation: none;
  box-shadow: none;
}

.watch-pill {
  gap: 10px;
}

.watch-length {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(28 71 0 / .14);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .hero-actions {
    margin-top: 22px;
    gap: 10px 12px;
  }

  .promo-section {
    border-radius: 28px;
  }
}


/* Link card from "How Palatto works" to /how-to/ (owner, 2026-12-01: must be easy
   to spot, but secondary to the promo). */
.howto-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 10px 24px 10px 10px;
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.howto-card:hover {
  transform: translateY(-2px);
}

.howto-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.howto-thumb {
  position: relative;
  flex: none;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
}

.howto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.howto-card:hover .howto-thumb img {
  transform: scale(1.03);
}

.howto-thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #1C4700;
  box-shadow: 0 8px 18px -8px rgba(30, 50, 5, .6), 0 0 0 6px rgba(255, 255, 255, .55);
}

.howto-thumb-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26, 36, 16, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .howto-card {
    gap: 12px;
    padding: 8px 14px 8px 8px;
    border-radius: 22px;
    max-width: 100%;
  }

  .howto-thumb {
    width: 136px;
    border-radius: 14px;
  }

  .howto-thumb-play {
    width: 36px;
    height: 36px;
  }

  .howto-thumb-time {
    right: 6px;
    bottom: 6px;
    font-size: 11px;
  }

  .howto-card-text strong {
    font-size: 16px;
  }

  .howto-card-text span {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .howto-thumb img { transition: none; }
}

.howto-card-text {
  display: grid;
  line-height: 1.35;
}

.howto-card-text strong {
  font-size: 17px;
}

.howto-card-text span {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}

.howto-card-arrow {
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .howto-card { transition: none; }
}



/* =========================================================
   /how-to/ page (owner, 2026-12-01): centred like the home page, the video big in
   the lime Watch panel with the same play tab, chapter chips that jump to each
   step, and the home page's closing band.
   ========================================================= */
.howto-hero {
  text-align: center;
  padding-top: clamp(24px, 4vw, 56px);
  max-width: 820px;
}

.howto-hero h1 {
  margin-top: 6px;
}

.howto-hero .lead {
  margin: 16px auto 0;
  max-width: 34em;
}

.howto-watch {
  margin-top: clamp(28px, 4vw, 48px);
}

.chapters {
  list-style: none;
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.chapter {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 14px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.chapter:hover {
  transform: translateY(-2px);
}

.chapter:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.chapter-num {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--tint);
  color: var(--on-tint);
}

.chapter-text {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.chapter-text strong {
  font-size: 17px;
}

.chapter-text span {
  font-size: 14px;
  color: var(--muted, #5A6650);
}

.chapter-time {
  grid-column: 2;
  align-self: end;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.chapter.is-current {
  box-shadow: 0 0 0 3px var(--lime), var(--card-shadow);
}

.chapter.is-current .chapter-num {
  background: var(--lime);
  color: var(--on-lime);
}

@media (max-width: 960px) {
  .chapters {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .chapters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter { transition: none; }
}

/* The closing band on /how-to/ lines up with the Watch panel above it (the home
   page's bleed-to-grid rules don't apply here). */
.closing.howto-closing {
  max-width: 1120px;
  margin-inline: auto;
  background: var(--lime);
  color: var(--on-lime);
  margin-top: clamp(48px, 6vw, 80px);
}

.closing.howto-closing::before {
  content: none;
}

@media (min-width: 901px) {
  .closing.howto-closing {
    padding: 52px 64px;
    grid-template-columns: 1.08fr .92fr;
  }
}
