/* Layout and brand values match customer-web/MobileStoryHomepage and CustomerBrand.
   Keep this isolated static preview free of customer SDKs and production capture. */
:root {
  --cream: #fbf5ea;
  --paper: #fbf4e6;
  --sand: #e7d9be;
  --ink: #2a2320;
  --muted: #7a6e60;
  --rust: #b5472a;
  --rust-dark: #903820;
  --olive: #6e7a4e;
  --line: #dfd2be;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h2 em {
  font-weight: 500;
  color: var(--rust);
}
p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}
svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.eyebrow {
  font:
    700 10.5px/1 system-ui,
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}
.page-shell {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 0 max(12px, env(safe-area-inset-bottom));
  isolation: isolate;
}
.topbar {
  flex: 0 0 auto;
  margin: 0 20px;
  display: flex;
  align-items: center;
}
.logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-divider,
.brand-audience {
  /* The lettering sits below the centre of the logo's illustrated image box. */
  transform: translateY(8px);
}
.brand-divider {
  flex: 0 0 1px;
  height: 14px;
  margin: 0 10px;
  background: var(--line);
}
.brand-audience {
  color: var(--muted);
  font:
    500 13px/1.2 system-ui,
    sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.story-viewport {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.scene-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  margin-top: 20px;
  overflow: hidden;
  --art-scale: 1;
}
.story-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-scene.is-active {
  opacity: 1;
  pointer-events: auto;
}
.scene-art {
  position: relative;
  flex: none;
  transform: scale(var(--art-scale));
  transform-origin: center;
}
.story-copy {
  flex: none;
  padding: 8px 28px 0;
  text-align: center;
  min-height: 104px;
}
.story-copy h1 {
  font-size: 27px;
  font-weight: 600;
  margin: 9px 0 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.story-copy h1 span {
  display: block;
}
.story-description {
  margin-top: 8px;
  font:
    600 12px/1.4 system-ui,
    sans-serif;
  min-height: 17px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  background: var(--rust);
  color: white;
  font:
    700 15px system-ui,
    sans-serif;
  box-shadow:
    0 16px 34px -12px rgba(181, 71, 42, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.primary:hover {
  background: var(--rust-dark);
}
.primary svg {
  width: 23px;
  height: 23px;
}
.homepage-actions {
  position: relative;
  flex: none;
  display: grid;
  gap: 10px;
  margin: 20px 28px 0;
}
.hero-cta {
  margin: 0;
}
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #c9ac97;
  border-radius: 999px;
  color: var(--rust-dark);
  background: #fffaf2;
  font:
    600 15px/1.4 system-ui,
    sans-serif;
  text-decoration: none;
}
.secondary:hover {
  background: #f2e8d7;
}
.story-clock {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* Same 360×320 composition, frame and portrait geometry as the customer hero. */
.moms-art {
  transform: scale(var(--opening-art-scale, 0.85));
  width: 360px;
  height: 320px;
}
.video-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 258px;
  margin: -129px 0 0 -98px;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid white;
  box-shadow:
    0 24px 44px -18px rgba(42, 35, 32, 0.7),
    0 0 0 1px rgba(42, 35, 32, 0.08);
  background: #cdbfa6;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 258px;
  margin: -129px 0 0 -98px;
  border-radius: 24px;
  border: 2px solid var(--rust);
  opacity: 0;
}
.portrait-position {
  position: absolute;
  left: 50%;
  top: 50%;
}
.floating-portrait {
  border-radius: 50%;
  border: 3px solid white;
  background: #d9c9a6;
  box-shadow: 0 10px 20px -10px rgba(42, 35, 32, 0.6);
  overflow: hidden;
}
.floating-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.portrait-0 {
  margin-left: -153px;
  margin-top: -87px;
}
.portrait-0 .floating-portrait {
  width: 50px;
  height: 50px;
}
.portrait-1 {
  margin-left: 97px;
  margin-top: -99px;
}
.portrait-1 .floating-portrait {
  width: 54px;
  height: 54px;
}
.portrait-2 {
  margin-left: -168px;
  margin-top: 10px;
}
.portrait-2 .floating-portrait {
  width: 44px;
  height: 44px;
}
.portrait-3 {
  margin-left: 118px;
  margin-top: 14px;
}
.portrait-3 .floating-portrait {
  width: 48px;
  height: 48px;
}
.portrait-4 {
  margin-left: -111px;
  margin-top: 77px;
}
.portrait-4 .floating-portrait {
  width: 46px;
  height: 46px;
}
.portrait-5 {
  margin-left: 67px;
  margin-top: 79px;
}
.portrait-5 .floating-portrait {
  width: 50px;
  height: 50px;
}
/* Pan a baked map texture, with no live map renderer or street geometry in the DOM. */
.map-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f2ede1;
}
.map-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    #fbf5ea,
    transparent 7%,
    transparent 90%,
    #fbf5ea
  );
}
.network-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%) scale(var(--network-scale, 1))
    translate(var(--tour-shift-x, 260px), var(--tour-shift-y, 310px));
  transform-origin: center;
}
.network-base {
  position: absolute;
  inset: 0;
  width: 1000px;
  height: 1000px;
  max-width: none;
}
.network-atlas-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.network-route {
  position: absolute;
  background-image: url("assets/network-routes.webp");
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
}
.network-kitchen {
  position: absolute;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 3;
}
.kitchen-marker {
  position: relative;
  /* Only the focused mom's visit frames enlarge this otherwise small shell. */
  transform: scale(0.72);
  width: 64px;
  height: 64px;
  border: 3px solid white;
  border-radius: 50%;
  background: #fff3df;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fffaf2;
  box-shadow: 0 10px 20px -10px rgba(42, 35, 32, 0.6);
}
.painted-mom {
  width: 100%;
  height: 100%;
  background-image: url("assets/painted-moms.webp");
  background-size: 500% 300%;
  /* Atlas art crosses a few nominal grid seams. Crop 10% inside each cell. */
  transform: scale(1.25);
  transform-origin: center;
  background-repeat: no-repeat;
  border-radius: inherit;
}
/* These heads sit high in the last atlas row; retain their hair while cropping sides. */
.mom-portrait-10,
.mom-portrait-11,
.mom-portrait-12,
.mom-portrait-13,
.mom-portrait-14 {
  transform-origin: center top;
}
.kitchen-ring {
  position: absolute;
  inset: -10px;
  border: 3px solid white;
  border-radius: 50%;
  opacity: 0;
}
.network-home {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  z-index: 2;
}
.customer-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2.5px solid #86906b;
  background: #fffaf2;
  border-radius: 50%;
  color: #66724c;
}
.customer-marker svg {
  width: 29px;
  height: 29px;
  stroke-width: 2;
}
.network-loading {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  text-align: center;
  font-size: 12px;
  color: #7a6e60;
  background: #fbf5eae6;
  padding: 12px;
  border-radius: 16px;
}
.map-attribution {
  position: absolute;
  bottom: 2px;
  right: 14px;
  font-size: 10px;
  line-height: 1.4;
  color: #7a6e60;
  text-decoration: none;
  background: #fbf5eae6;
  padding: 3px 5px;
  border-radius: 4px;
}
/* Three illustrated prints share the opening scene's photo-collage language. */
.support-story {
  position: relative;
  width: 100%;
  height: 100%;
  flex: none;
}
.support-position {
  position: absolute;
}
/* Keep placement and stacking separate from the fade/slide rendering layer. */
.support-reveal {
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
}
.support-cook {
  z-index: 1;
}
.support-collect {
  z-index: 2;
}
.support-deliver {
  z-index: 3;
}
.support-print {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 5px 5px 6px;
  background: white;
  border-radius: 13px;
  box-shadow:
    0 20px 32px -18px #2a232070,
    0 0 0 1px #2a232012;
  transform: rotate(var(--support-rotation, 0deg));
}
.support-print figcaption {
  height: 32px;
  padding: 5px 2px 9px;
  white-space: nowrap;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  text-align: center;
  font:
    600 14px/1.1 "Fraunces",
    Georgia,
    serif;
}
.support-photo {
  position: relative;
  height: var(--support-photo-size, 146.8px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}
.payout-frame {
  position: relative;
  width: var(--payout-size);
  height: var(--payout-size);
  border: 5px solid white;
  border-radius: 24px;
  overflow: hidden;
  background: #fbf5ea;
  box-shadow:
    0 24px 44px -18px #2a232066,
    0 0 0 1px #2a232014;
}
.support-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: fill;
}
.support-panel-1 {
  transform: translateX(-33.333333%);
}
.support-panel-2 {
  transform: translateX(-66.666667%);
}
.payout-story {
  position: relative;
  width: var(--payout-size);
  height: calc(var(--payout-size) + 44px);
  flex: none;
}
.payout-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.payout-calendar {
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 126px;
  padding: 0 0 8px;
  text-align: center;
  background: #fffaf2;
  border: 3px solid white;
  border-radius: 14px;
  box-shadow: 0 14px 28px -12px #2a232066;
}
.calendar-binding {
  position: absolute;
  left: 20px;
  top: -7px;
  width: 5px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 73px 0 var(--ink);
}
.calendar-label {
  display: block;
  padding: 8px 0 6px;
  background: var(--rust);
  color: white;
  border-radius: 10px 10px 0 0;
  font:
    800 13px/1 system-ui,
    sans-serif;
  letter-spacing: 0.06em;
}
.payout-calendar svg {
  display: block;
  width: 36px;
  height: 36px;
  margin: 7px auto 4px;
  padding: 7px;
  background: var(--olive);
  border-radius: 50%;
  color: white;
  stroke-width: 3.25;
}
.calendar-caption {
  display: block;
  color: var(--ink);
  font:
    600 12px/1.2 system-ui,
    sans-serif;
}
@media (min-width: 769px) {
  .page-shell {
    max-width: 850px;
  }
  .scene-stage {
    min-height: 350px;
  }
  .story-copy {
    padding-top: 12px;
  }
  .homepage-actions {
    max-width: 440px;
    width: calc(100% - 56px);
    align-self: center;
  }
}
@media (max-height: 650px) {
  .page-shell {
    padding-top: 12px;
    min-height: 540px;
  }
  .scene-stage {
    margin-top: 8px;
    min-height: 160px;
  }
  .story-copy {
    min-height: 97px;
    padding-top: 4px;
  }
  .homepage-actions {
    margin-top: 12px;
    gap: 8px;
  }
  .hero-cta {
    height: 52px;
  }
  .how-button {
    min-height: 44px;
    padding: 10px 16px;
  }
}
@media (max-width: 355px) {
  .hero-cta {
    font-size: 13px;
  }
  .story-copy {
    padding-left: 20px;
    padding-right: 20px;
  }
  .story-copy h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Preserve the customer logo above the media's decorative stacking contexts. */
.topbar {
  position: relative;
  z-index: 2;
}

/* Gesture surface follows the customer hero; forms/dialogs remain editable. */
.page-shell,
.story-viewport {
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.scene-stage img,
.scene-stage video {
  -webkit-user-drag: none;
  pointer-events: none;
}
