:root {
  --paper: #fbfbf9;
  --ink: #1f1d19;
  --muted: rgba(31, 29, 25, 0.5);
  --gold: #c1b393;
  --font-primary: Outfit, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
}

.site-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  padding: 8px clamp(24px, 5vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: color 260ms ease, background 260ms ease, backdrop-filter 260ms ease;
}

.site-nav.is-dark {
  color: var(--ink);
  background: rgba(251, 251, 249, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--paper);
}

.brand-mark img {
  width: 30px;
  height: 26px;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.site-nav nav a {
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0.86;
  transition: opacity 180ms ease, background 180ms ease;
}

.site-nav nav a:hover {
  opacity: 1;
  background: rgba(193, 179, 147, 0.18);
}

.site-nav nav a.is-active {
  opacity: 1;
}

.panel,
.quotes-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-panel {
  color: #fff;
}

.hero-media,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-b {
  mix-blend-mode: normal;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.45)),
    rgba(0, 0, 0, 0.22);
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: clamp(24px, 5vw, 96px);
  width: min(590px, calc(100% - 48px));
  transform: translateY(-43%);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(58px, 4.2vw, 80px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 18px 0 40px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.45;
}

.app-store {
  width: 180px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-store:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
}

.app-store small {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
}

.app-store-dark {
  margin-top: 20px;
}

.apple-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.hero-badges {
  position: absolute;
  top: 50%;
  right: clamp(28px, 5vw, 96px);
  width: 220px;
  transform: translateY(-50%);
  color: var(--gold);
  text-align: center;
}

.pro-badge {
  min-height: 128px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pro-badge span {
  display: block;
  font-size: 20px;
}

.pro-badge strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.wheat {
  width: 40px;
  height: 52px;
  flex: 0 0 auto;
}

.wheat-right {
  width: 45px;
}

.badge-line {
  width: 106px;
  height: 1px;
  margin: 0 auto;
  background: rgba(193, 179, 147, 0.45);
}

.introduce-panel,
.course-panel,
.accompany-panel,
.quotes-panel {
  background:
    radial-gradient(circle at 48% 8%, rgba(255, 254, 241, 0.9), rgba(251, 251, 249, 0) 42%),
    var(--paper);
}

.course-panel {
  isolation: isolate;
}

.course-panel .section-heading {
  z-index: 16;
}

.course-panel .section-heading h2,
.course-panel .section-heading p {
  text-shadow: 0 1px 24px rgba(251, 251, 249, 0.92);
}

.section-heading {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 120px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 2.1vw, 40px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
}

.section-heading p {
  margin: 8px auto 0;
  max-width: 690px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.routine-grid {
  position: absolute;
  left: 50%;
  top: 29%;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.routine-card {
  position: relative;
  height: min(58vh, 524px);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0;
  color: #fff;
  background: #111;
  box-shadow: 0 30px 70px rgba(31, 29, 25, 0.12);
  opacity: 0;
  filter: blur(18px);
  transform: translateY(42px);
  transition:
    opacity 700ms ease,
    filter 800ms ease,
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.routine-card::before,
.routine-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.routine-card::before {
  top: 0;
  height: auto;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(ellipse at 50% 54%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 28%);
}

.routine-card::after {
  display: none;
}

.stagger-group.in-view .routine-card {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.routine-card:nth-child(2) {
  transition-delay: 160ms;
}

.routine-card:nth-child(3) {
  transition-delay: 320ms;
}

.routine-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.routine-card > img:not(.routine-blur) {
  z-index: 0;
}

.routine-card .routine-blur {
  z-index: 1;
  opacity: 0.42;
  filter: blur(28px) saturate(1.02) brightness(0.82);
  transform: scale(1.12);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 44%, rgba(0, 0, 0, 0.08) 56%, rgba(0, 0, 0, 0.54) 74%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 44%, rgba(0, 0, 0, 0.08) 56%, rgba(0, 0, 0, 0.54) 74%, #000 100%);
}

.routine-card:hover > img:not(.routine-blur) {
  transform: scale(1.08);
}

.routine-card:hover .routine-blur {
  transform: scale(1.14);
}

.routine-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-height: 46%;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
}

.routine-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 400;
}

.routine-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.gallery-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.originkit-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(251, 251, 249, 0) 0 21%, rgba(251, 251, 249, 0.38) 47%, rgba(251, 251, 249, 0.9) 86%),
    radial-gradient(circle, rgba(31, 29, 25, 0.14) 1px, transparent 1px);
  background-size: auto, 40px 40px;
}

.originkit-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 24%, rgba(251, 251, 249, 0.2) 40%, rgba(251, 251, 249, 0.78) 88%);
}

.origin-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 70px rgba(31, 29, 25, 0.13);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.origin-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-phone {
  position: absolute;
  left: 50%;
}

.main-phone {
  top: 172px;
  width: min(430px, 34vw);
  height: auto;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 12;
}

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

.phone-screen img {
  object-fit: contain;
}

.scroll-panel {
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
}

.sticky-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.feature-layout {
  width: min(1200px, calc(100% - 48px));
  height: calc(100% - 96px);
  margin: 0 auto;
  padding-top: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 44px;
  row-gap: 18px;
  align-items: center;
}

.feature-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(31, 29, 25, 0.1);
}

.checkin-card {
  background:
    linear-gradient(180deg, rgba(251, 251, 249, 0.58), rgba(251, 251, 249, 0.92)),
    #f7f4ee;
}

.dual-phones {
  position: absolute;
  inset: 18px 46px -32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
}

.mini-phone {
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: start center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transition:
    opacity 720ms ease,
    transform 860ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-up {
  transform: translateY(-76px);
}

.phone-down {
  place-items: end center;
  transform: translateY(76px);
}

.accompany-panel.in-view .phone-up,
.accompany-panel.in-view .phone-down {
  opacity: 1;
  transform: translateY(0);
}

.mini-phone img {
  width: auto;
  max-width: 100%;
  height: 118%;
  object-fit: contain;
}

.phone-down img {
  width: 100%;
  height: auto;
  transform: translateY(-42%);
}

.feature-copy {
  max-width: 560px;
}

.feature-copy-panel {
  position: static;
  align-self: center;
  padding: 10px 8px;
}

.feature-copy h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.22;
}

.feature-copy p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pet-card {
  background:
    linear-gradient(180deg, rgba(251, 251, 249, 0.42), rgba(251, 251, 249, 0.92)),
    #f4f0e8;
}

.secrets-field {
  position: absolute;
  inset: -90px -70px -30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  transform: rotate(-12deg);
  animation: secretsDrift 16s linear infinite;
  opacity: 0.58;
}

.secrets-field span {
  display: grid;
  place-items: center;
  height: 116px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(193, 179, 147, 0.34);
  color: #6e624c;
  font-size: 22px;
  writing-mode: vertical-rl;
}

@keyframes secretsDrift {
  from {
    transform: translate(-40px, -40px) rotate(-12deg);
  }
  to {
    transform: translate(60px, 60px) rotate(-12deg);
  }
}

.panda {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: min(330px, 58%);
  transform: translate(-50%, 86px);
  opacity: 0;
  filter: drop-shadow(0 30px 40px rgba(31, 29, 25, 0.18));
  transition:
    opacity 800ms ease,
    transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.accompany-panel.in-view .panda {
  opacity: 1;
  transform: translate(-50%, 0);
}

.quotes-panel {
  min-height: calc(100vh + 200px);
  overflow: hidden;
  background: var(--paper);
  scroll-snap-align: start;
}

.quotes-screen {
  position: relative;
  height: 100vh;
}

.quotes-screen::before,
.quotes-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 3;
}

.quotes-screen .section-heading {
  z-index: 4;
}

.quotes-screen::before {
  top: 0;
  height: 52vh;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(251, 251, 249, 0.99) 26%, rgba(251, 251, 249, 0.9) 48%, rgba(251, 251, 249, 0.46) 76%, rgba(251, 251, 249, 0) 100%),
    radial-gradient(ellipse at 50% 34%, rgba(251, 251, 249, 0.96), rgba(251, 251, 249, 0.22) 56%, rgba(251, 251, 249, 0) 78%);
  mask-image: linear-gradient(180deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.78) 64%, rgba(0, 0, 0, 0.32) 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.78) 64%, rgba(0, 0, 0, 0.32) 86%, transparent 100%);
}

.quotes-screen::after {
  bottom: 0;
  height: 8vh;
  background: linear-gradient(180deg, rgba(251, 251, 249, 0), rgba(251, 251, 249, 0.28));
}

.waterfall {
  position: absolute;
  left: 50%;
  top: 8vh;
  width: min(1200px, calc(100% - 48px));
  height: 110vh;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 8%, rgba(0, 0, 0, 0.1) 18%, rgba(0, 0, 0, 0.28) 34%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.86) 68%, #000 82%, rgba(0, 0, 0, 0.18) 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 8%, rgba(0, 0, 0, 0.1) 18%, rgba(0, 0, 0, 0.28) 34%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.86) 68%, #000 82%, rgba(0, 0, 0, 0.18) 96%, transparent 100%);
}

.poster-column {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.poster-column img {
  width: 100%;
  height: 40vh;
  min-height: 330px;
  object-fit: cover;
}

.poster-column.up {
  animation: postersUp 26s linear infinite;
}

.poster-column.down {
  animation: postersDown 26s linear infinite;
}

@keyframes postersUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-47%);
  }
}

@keyframes postersDown {
  from {
    transform: translateY(-47%);
  }
  to {
    transform: translateY(0);
  }
}

.site-footer {
  height: 200px;
  padding: 54px clamp(24px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  scroll-snap-align: none;
}

@media (min-width: 1800px) {
  .site-nav {
    padding-inline: calc((100vw - 1200px) / 2);
  }

  .hero-copy {
    left: calc((100vw - 1200px) / 2);
  }

  .hero-badges {
    right: calc((100vw - 1200px) / 2);
  }

  .site-footer {
    padding-inline: calc((100vw - 1200px) / 2);
  }
}

.site-footer a {
  width: fit-content;
  font-size: 16px;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.86);
}

.download-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 28px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(31, 29, 25, 0.88);
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, 80px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.download-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }

  .site-nav {
    padding-inline: 18px;
  }

  .brand {
    font-size: 18px;
  }

  .site-nav nav {
    gap: 4px;
    font-size: 12px;
  }

  .site-nav nav a {
    padding-inline: 6px;
  }

  .hero-copy {
    top: 52%;
  }

  .hero-badges {
    display: none;
  }

  .routine-grid,
  .feature-layout,
  .waterfall {
    grid-template-columns: 1fr;
  }

  .routine-grid {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 40px auto 0;
    padding-bottom: 48px;
  }

  .introduce-panel {
    min-height: auto;
  }

  .routine-card {
    min-height: 360px;
  }

  .main-phone {
    top: 208px;
    width: min(330px, 78vw);
    height: auto;
  }

  .feature-layout {
    align-content: center;
    gap: 18px;
  }

  .feature-card {
    height: 42vh;
    min-height: 330px;
  }

  .waterfall {
    top: 38vh;
    height: 62vh;
  }

  .poster-column:not(:first-child) {
    display: none;
  }
}
