html {
  background: var(--leaf-deep);
}

.landing-page {
  --apple-blue: #0071e3;
  --stage: #050505;
  --stage-soft: #151516;
  --surface: #f5f5f7;
  --surface-strong: #ffffff;
  --warm-surface: #fff5e6;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --green: #4f8f3a;
  --teal: #1d8f91;
  --coral: #ef6f3c;
  --line: rgba(29, 29, 31, 0.12);
  --soft-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  background: var(--surface);
}

.landing-page .landing-header {
  min-height: 52px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
}

.landing-page .brand {
  color: var(--ink);
  font-family: "Paperlogy", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.landing-page .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.landing-page .site-nav a {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(29, 29, 31, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.landing-page .site-nav a:hover,
.landing-page .site-nav a.is-active {
  color: var(--ink);
  background: rgba(0, 113, 227, 0.1);
}

.landing-page .button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-page .button.primary {
  color: #ffffff;
  background: var(--apple-blue);
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.24);
}

.landing-page .button.secondary {
  color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.1);
}

.landing-page .button:hover {
  transform: translateY(-2px);
}

.home-hero {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: calc(100vh - 52px);
  overflow: hidden;
  padding: 72px 0 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, #050505 0%, #050505 58%, #f5f5f7 58%, #f5f5f7 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 113, 227, 0.2), transparent 36%, rgba(239, 111, 60, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.landing-page .eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.rail-heading h2,
.strip-copy h2,
.feature-copy h2,
.book-stage-copy h2,
.closing-cta h2 {
  margin: 0;
  font-family: "Paperlogy", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.home-hero h1 {
  color: #f5f5f7;
  font-size: 76px;
}

.home-hero h1 span {
  display: block;
}

.landing-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(245, 245, 247, 0.78);
  font-size: 21px;
  line-height: 1.72;
}

.home-hero .hero-actions,
.closing-cta .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.hero-showcase {
  --scroll-y: 0px;
  --scroll-rotate: 0deg;
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 24px));
  height: 560px;
  margin: 34px auto 0;
  transform: translate3d(0, var(--scroll-y), 0);
  transition: transform 180ms linear;
}

.showcase-book {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 82%;
  max-height: 410px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
  transform: translateX(-50%);
}


.showcase-badge {
  position: absolute;
  right: 9%;
  bottom: 86px;
  z-index: 3;
  width: 124px;
  border-radius: 50%;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.flow-rail {
  padding: 90px 0 84px;
}

.rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.rail-heading h2 {
  color: var(--ink);
  font-size: 48px;
}

.flow-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flow-tile {
  display: grid;
  grid-template-rows: 270px auto auto auto;
  min-width: 0;
  min-height: 410px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
  align-content: start;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flow-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.14);
}

.flow-tile img {
  justify-self: center;
  width: 152px;
  height: 270px;
  border: 1px solid #171717;
  border-radius: 8px;
  object-fit: cover;
  background: #171717;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.flow-tile span {
  margin-top: 22px;
  color: var(--apple-blue);
  font-size: 13px;
  font-weight: 900;
}

.flow-tile strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.22;
}

.flow-tile small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.memory-strip {
  overflow: hidden;
  padding: 94px 0 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, #050505 0%, #151516 52%, #263425 100%);
}

.strip-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}

.strip-copy h2 {
  max-width: 760px;
  color: #f5f5f7;
  font-size: 54px;
}

.strip-copy p:last-child {
  margin: 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: 18px;
  line-height: 1.72;
}

.marquee {
  display: flex;
  align-items: flex-end;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: flex-end;
  width: max-content;
  gap: 18px;
  animation: marqueeScroll 46s linear infinite;
}

.marquee-track img {
  flex: 0 0 auto;
  width: auto;
  height: min(430px, 48vw);
  max-width: none;
  border-radius: 8px 8px 0 0;
  object-fit: contain;
  object-position: center bottom;
  background: #f7f3ea;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.feature-band {
  overflow: hidden;
}

.feature-band.light {
  background: #ffffff;
}

.feature-band.dark {
  color: #ffffff;
  background:
    linear-gradient(180deg, #050505, #171717);
}

.feature-band.warm {
  background:
    linear-gradient(180deg, #fff9ef, #f5f5f7);
}

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: 64px;
  align-items: center;
  min-height: 690px;
  padding: 94px 0;
}

.feature-showcase.reverse {
  grid-template-columns: minmax(460px, 1.12fr) minmax(0, 0.88fr);
}

.feature-showcase.reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  color: var(--ink);
  font-size: 58px;
}

.feature-band.dark .feature-copy h2 {
  color: #f5f5f7;
}

.feature-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.feature-band.dark .feature-copy p:not(.eyebrow) {
  color: rgba(245, 245, 247, 0.72);
}

.feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.feature-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.feature-band.dark .feature-points span {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
}

.phone-stage {
  --scroll-y: 0px;
  position: relative;
  min-height: 586px;
  transform: translate3d(0, var(--scroll-y), 0);
  transition: transform 180ms linear;
}

.stage-phone {
  position: absolute;
  margin: 0;
}

.stage-phone-main {
  left: 48%;
  top: 12px;
  width: 270px;
  transform: translateX(-50%);
  z-index: 2;
}

.stage-phone-back {
  left: 18%;
  top: 96px;
  width: 270px;
  opacity: 0.88;
  transform: rotate(-7deg);
}

.solo-phone {
  --scroll-y: 0px;
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
  transform: translate3d(0, var(--scroll-y), 0);
  transition: transform 180ms linear;
}

.solo-phone .phone-frame {
  width: 320px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.38);
}


.memory-wall {
  --scroll-y: 0px;
  display: grid;
  grid-template-columns: repeat(2, 220px);
  gap: 18px;
  justify-content: center;
  transform: translate3d(0, var(--scroll-y), 0);
  transition: transform 180ms linear;
}

.memory-wall img {
  width: 220px;
  aspect-ratio: 9 / 18.7;
  border: 6px solid #171717;
  border-radius: 8px;
  object-fit: cover;
  background: #171717;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}


.book-stage {
  overflow: hidden;
  padding: 98px 0 70px;
  background: #ffffff;
}

.book-stage-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 58px;
  align-items: center;
}

.book-stage-copy h2 {
  color: var(--ink);
  font-size: 56px;
}

.book-stage-copy p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.book-scene {
  --scroll-y: 0px;
  position: relative;
  min-height: 520px;
  transform: translate3d(0, var(--scroll-y), 0);
  transition: transform 180ms linear;
}

.book-cover {
  position: absolute;
  left: 0;
  bottom: 16px;
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.2);
  transform: rotate(-4deg);
  z-index: 2;
}

.book-open {
  position: absolute;
  right: 0;
  top: 52px;
  width: 82%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.18);
}

.book-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 104px;
}

.book-preview {
  display: grid;
  min-height: 430px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
}

.book-preview img {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center top;
  background: #fbf8f0;
}

.book-preview h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
}

.book-preview p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.closing-cta {
  padding: 110px 0;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(135deg, #050505 0%, #151516 56%, #193c3d 100%);
}

.closing-cta h2 {
  max-width: 840px;
  margin: 0 auto;
  color: #f5f5f7;
  font-size: 58px;
}

.closing-cta p {
  max-width: 680px;
  margin: 22px auto 0;
  color: rgba(245, 245, 247, 0.76);
  font-size: 19px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatY {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1120px) {
  .home-hero h1 {
    font-size: 62px;
  }

  .hero-showcase {
    height: 520px;
  }

  .flow-tiles,
  .book-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-showcase,
  .feature-showcase.reverse,
  .book-stage-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature-showcase.reverse .feature-copy {
    order: 0;
  }

  .feature-copy,
  .book-stage-copy {
    max-width: 760px;
  }

  .book-scene {
    min-height: 470px;
  }
}

@media (max-width: 820px) {
  .home-hero {
    min-height: auto;
    padding-top: 56px;
    background:
      linear-gradient(180deg, #050505 0%, #050505 64%, #f5f5f7 64%, #f5f5f7 100%);
  }

  .home-hero h1 {
    font-size: 46px;
  }

  .landing-lead {
    font-size: 18px;
  }

  .hero-showcase {
    height: 444px;
    margin-top: 26px;
  }

  .showcase-book {
    width: 96%;
    bottom: 38px;
  }

  .showcase-badge {
    right: 5%;
    bottom: 64px;
    width: 94px;
  }

  .rail-heading,
  .strip-copy {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rail-heading h2,
  .strip-copy h2,
  .feature-copy h2,
  .book-stage-copy h2,
  .closing-cta h2 {
    font-size: 40px;
  }

  .flow-rail,
  .memory-strip,
  .book-stage,
  .closing-cta {
    padding-top: 68px;
    padding-bottom: 64px;
  }

  .memory-strip {
    padding-bottom: 0;
  }

  .flow-tiles {
    display: flex;
    gap: 14px;
    margin: 0 -14px;
    padding: 0 14px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    scroll-padding-right: 14px;
  }

  .flow-tiles::before {
    content: "";
    flex: 0 0 14px;
  }

  .flow-tile {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .feature-showcase {
    min-height: auto;
    padding: 68px 0;
  }

  .phone-stage,
  .solo-phone {
    min-height: 520px;
  }

  .stage-phone-main,
  .solo-phone .phone-frame {
    width: 244px;
  }

  .solo-phone .phone-frame {
    width: 280px;
  }

  .stage-phone-back {
    left: 4%;
    width: 244px;
  }

  .memory-wall {
    grid-template-columns: repeat(2, 170px);
  }

  .memory-wall img {
    width: 170px;
  }

  .book-gallery {
    grid-template-columns: 1fr;
    padding-bottom: 72px;
  }
}

@media (max-width: 520px) {
  .landing-page .site-nav {
    gap: 2px;
  }

  .landing-page .site-nav a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }

  .hero-copy {
    width: min(100% - 28px, 980px);
  }

  .home-hero h1 {
    font-size: 36px;
  }

  .landing-lead {
    font-size: 16px;
  }

  .home-hero .hero-actions,
  .closing-cta .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-right: auto;
    margin-left: auto;
  }

  .hero-showcase {
    height: 374px;
  }

  .showcase-book {
    bottom: 28px;
  }

  .showcase-badge {
    right: 4%;
    bottom: 48px;
    width: 76px;
  }

  .rail-heading h2,
  .strip-copy h2,
  .feature-copy h2,
  .book-stage-copy h2,
  .closing-cta h2 {
    font-size: 32px;
  }

  .strip-copy p:last-child,
  .feature-copy p:not(.eyebrow),
  .book-stage-copy p:not(.eyebrow),
  .closing-cta p {
    font-size: 16px;
  }
  .marquee-track img {
    height: min(330px, 70vw);
  }

  .phone-stage,
  .solo-phone {
    min-height: 470px;
  }

  .stage-phone-main,
  .solo-phone .phone-frame {
    width: 218px;
  }

  .solo-phone .phone-frame {
    width: 244px;
  }

  .stage-phone-back {
    width: 218px;
  }

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

  .memory-wall img {
    width: 100%;
    border-width: 5px;
  }

  .book-scene {
    min-height: 410px;
  }

  .book-cover {
    width: 148px;
  }

  .book-open {
    top: 38px;
    width: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-showcase,
  .phone-stage,
  .solo-phone,
  .memory-wall,
  .book-scene,
  .landing-page .button,
  .flow-tile {
    transition: none;
  }
  .showcase-badge,
  .marquee-track {
    animation: none;
  }
}
/* App capture refinements */
.landing-page .flow-tile img,
.landing-page .phone-stage .phone-frame,
.landing-page .solo-phone .phone-frame,
.landing-page .memory-wall img {
  border-width: 1px;
}

.landing-page .phone-stage .phone-frame,
.landing-page .solo-phone .phone-frame,
.landing-page .memory-wall img {
  border-color: rgba(29, 29, 31, 0.82);
}

.landing-page .feature-band.dark .solo-phone .phone-frame {
  border-color: rgba(255, 255, 255, 0.42);
}

.landing-page .memory-wall {
  gap: 18px;
  align-items: start;
}

.landing-page .memory-wall img {
  transform: none;
}

@media (max-width: 520px) {
  .landing-page .memory-wall {
    gap: 10px;
  }
}
/* Preserve full Lineup screenshots */
.landing-page .flow-tile img {
  width: auto;
  height: 270px;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}
/* Square, borderless app screenshots */
.landing-page .flow-tile img,
.landing-page .phone-stage .phone-frame,
.landing-page .phone-stage .phone-frame img,
.landing-page .solo-phone .phone-frame,
.landing-page .solo-phone .phone-frame img,
.landing-page .memory-wall img {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}
/* Compact family book preview cards */
.landing-page .book-gallery {
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  align-items: start;
  gap: 18px;
}

.landing-page .book-preview {
  width: fit-content;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  align-content: start;
}

.landing-page .book-preview img {
  width: auto;
  height: 280px;
  display: block;
  border-radius: 0;
  background: transparent;
}

.landing-page .book-preview h3 {
  margin: 14px 0 16px;
  text-align: center;
}

.landing-page .book-preview p {
  display: none;
}

@media (max-width: 1120px) {
  .landing-page .book-gallery {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 720px) {
  .landing-page .book-gallery {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
/* Brighter dark-section secondary buttons */
.landing-page .home-hero .button.secondary,
.landing-page .closing-cta .button.secondary {
  color: #ffffff;
  background: rgba(0, 113, 227, 0.44);
  border: 0;
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.24);
}

.landing-page .home-hero .button.secondary:hover,
.landing-page .closing-cta .button.secondary:hover {
  background: rgba(0, 113, 227, 0.58);
}
/* Show hero magazine at its uploaded 1120x630 size */
.landing-page .hero-showcase {
  width: 1120px;
  max-width: none;
  height: 726px;
  overflow: visible;
}

.landing-page .showcase-book {
  top: 96px;
  bottom: auto;
  width: 1120px !important;
  min-width: 1120px;
  height: 630px !important;
  max-width: none !important;
  max-height: none;
  aspect-ratio: 1120 / 630;
  object-fit: contain;
}

@media (max-width: 900px) {
  .landing-page .hero-showcase {
    width: min(1120px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    height: clamp(410px, 64vw, 520px);
  }

  .landing-page .showcase-book {
    top: auto;
    bottom: 58px;
    width: min(1120px, 96%) !important;
    min-width: 0;
    height: auto !important;
  }
}

@media (max-width: 520px) {
  .landing-page .hero-showcase {
    height: 374px;
  }

  .landing-page .showcase-book {
    bottom: 48px;
  }
}
/* Show full 611x869 family book pages in the marquee */
.landing-page .marquee-track img {
  display: block;
  width: auto;
  height: min(430px, 56vw);
  aspect-ratio: 611 / 869;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 520px) {
  .landing-page .marquee-track img {
    height: min(330px, 78vw);
  }
}
/* Desktop image sharpness */
.landing-page .flow-tile img,
.landing-page .marquee-track img,
.landing-page .phone-frame img,
.landing-page .memory-wall img,
.landing-page .book-preview img,
.landing-page .book-cover,
.landing-page .book-open,
.landing-page .showcase-book {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.landing-page .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 901px) {
  .landing-page .marquee-track img {
    height: 540px;
  }

  .landing-page .phone-stage {
    min-height: 730px;
  }

  .landing-page .stage-phone-main {
    left: 50%;
    width: 350px;
  }

  .landing-page .stage-phone-back {
    left: 9%;
    width: 350px;
  }

  .landing-page .solo-phone {
    min-height: 730px;
  }

  .landing-page .solo-phone .phone-frame {
    width: 380px;
  }

  .landing-page .memory-wall {
    grid-template-columns: repeat(2, 270px);
    gap: 22px;
  }

  .landing-page .memory-wall img {
    width: 270px;
    aspect-ratio: 1080 / 2220;
    object-fit: contain;
  }

  .landing-page .book-preview img {
    height: 360px;
  }
}
/* Mobile hero button row and scroll-settled hero image */
@media (max-width: 520px) {
  .landing-page .home-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(calc(100% - 28px), 360px);
    margin-right: auto;
    margin-left: auto;
  }

  .landing-page .home-hero .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .landing-page .home-hero .hero-showcase {
    --mobile-hero-lift: 40px;
    height: 326px;
    margin-top: -14px;
  }

  .landing-page .home-hero .showcase-book {
    bottom: var(--mobile-hero-lift, 40px);
  }
}
/* Mobile feature visual spacing and family book scroller */
.landing-page .mobile-only-book-preview {
  display: none;
}

@media (max-width: 520px) {
  .landing-page #today .phone-stage {
    width: min(100%, 390px);
    min-height: 500px;
    margin: 20px auto 0;
  }

  .landing-page #today .stage-phone-main {
    left: 56%;
    top: 0;
    width: 218px;
  }

  .landing-page #today .stage-phone-back {
    left: 14%;
    top: 94px;
    width: 218px;
  }

  .landing-page #questions .feature-showcase {
    padding-bottom: 0;
  }

  .landing-page #questions .solo-phone {
    min-height: 600px;
    margin-top: 20px;
    padding-top: 0;
    place-items: start center;
  }

  .landing-page #questions .solo-phone .phone-frame {
    width: min(292px, 72vw);
  }

  .landing-page #memory .memory-wall {
    width: min(100%, 390px);
    margin: 20px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .landing-page #memory .memory-wall img {
    width: 100%;
    aspect-ratio: 1080 / 2220;
    object-fit: contain;
  }

  .landing-page .book-stage {
    padding-bottom: 28px;
  }

  .landing-page .book-stage-inner {
    display: block;
  }

  .landing-page .book-stage-copy {
    max-width: 100%;
  }

  .landing-page .book-scene,
  .landing-page .book-cover,
  .landing-page .book-open {
    display: none !important;
  }

  .landing-page .book-gallery {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 14px 14px 36px;
    scroll-padding-left: 14px;
    scroll-padding-right: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .landing-page .book-preview,
  .landing-page .mobile-only-book-preview {
    display: grid;
  }

  .landing-page .book-preview {
    flex: 0 0 260px;
    width: 260px;
    min-height: 430px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
    align-content: start;
    justify-items: center;
    overflow: hidden;
    scroll-snap-align: start;
  }

  .landing-page .book-preview img {
    width: 100%;
    height: 340px;
    max-width: 100%;
    display: block;
    border-radius: 0;
    object-fit: contain;
    object-position: center top;
    background: transparent;
  }

  .landing-page .book-preview h3 {
    margin: 14px 0 0;
    text-align: center;
    font-size: 20px;
    color: var(--ink);
  }
}
/* Float mobile LINEUP cards above the archive section */
@media (max-width: 520px) {
  .landing-page .flow-rail {
    padding-bottom: 0px;
  }

  .landing-page .flow-tiles {
    padding-bottom: 40;
  }

  .landing-page .flow-tile {
    min-height: 420px;
    align-content: start;
  }

  .landing-page .flow-tile strong {
    margin-top: 2px;
  }
}

/* iOS Safari paints the floating address bar area from the page canvas. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 520px) {
    body.landing-page {
      background-color: var(--leaf-deep);
    }

    .landing-page main {
      background: var(--surface);
    }

    .landing-page .site-footer {
      padding-bottom: 14px;
    }
  }
}


/* Web app popup launch button 2026-06-29 */
.landing-page .button.web-run {
  color: #ffffff;
  background: #4f8f3a;
  box-shadow: 0 16px 34px rgba(79, 143, 58, 0.26);
}

.landing-page .button.web-run:hover {
  background: #5a9b43;
}

.landing-page .home-hero .button.web-run,
.landing-page .closing-cta .button.web-run {
  color: #ffffff;
  background: #4f8f3a;
  box-shadow: 0 14px 30px rgba(79, 143, 58, 0.28);
}

.landing-page .home-hero .button.web-run:hover,
.landing-page .closing-cta .button.web-run:hover {
  background: #5a9b43;
}

@media (max-width: 520px) {
  .landing-page .home-hero .hero-actions {
    width: min(calc(100% - 28px), 420px);
  }

  .landing-page .home-hero .button.web-run {
    grid-column: 1 / -1;
  }
}
