:root {
  --paper: #fffaf5;
  --paper-strong: #ffffff;
  --ink: #38201f;
  --muted: #756560;
  --pink: #f64f75;
  --pink-dark: #c92f55;
  --yellow: #ffd86b;
  --green: #173f3a;
  --green-light: #c8efe4;
  --line: rgba(56, 32, 31, 0.14);
  --shadow: 0 24px 60px rgba(80, 31, 38, 0.18);
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(56, 32, 31, 0.09);
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.brand__wordmark {
  width: 132px;
  height: auto;
}

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

.site-nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--pink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(840px, 84svh);
  padding: 128px 24px 88px;
  overflow: hidden;
  place-items: center;
  background: var(--ink);
}

.hero__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

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

.hero__collage img:nth-child(2) {
  object-position: 50% 28%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(34, 17, 20, 0.64);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: #fff;
  text-align: center;
}

.hero__app-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(20, 5, 8, 0.32);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow--dark {
  color: var(--pink-dark);
}

.hero h1 {
  margin: 0;
  font-family: "Kaiti SC", STKaiti, "Songti SC", serif;
  font-size: clamp(64px, 9vw, 118px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 6px 28px rgba(20, 5, 8, 0.38);
}

.hero__lead {
  max-width: 660px;
  margin: 28px auto 0;
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button--primary {
  background: var(--pink);
  color: #fff;
}

.button--primary:hover {
  background: #ff6b89;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(34, 17, 20, 0.34);
  color: #fff;
}

.button--ghost:hover {
  background: #fff;
  color: var(--ink);
}

.hero__note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero__scroll::after {
  display: block;
  width: 1px;
  height: 22px;
  margin: 6px auto 0;
  background: currentColor;
  content: "";
}

.section {
  padding: 110px 24px;
}

.section__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-heading h2,
.privacy-band h2,
.release h2 {
  margin: 0;
  font-family: "Kaiti SC", STKaiti, "Songti SC", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.process {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  min-height: 250px;
  padding: 32px 38px 24px 0;
  border-top: 2px solid var(--ink);
}

.process__step + .process__step {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.process__number {
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.process__step h3 {
  margin: 38px 0 12px;
  font-size: 25px;
  line-height: 1.3;
}

.process__step p {
  margin: 0;
  color: var(--muted);
}

.screens {
  overflow: hidden;
  background: var(--green);
  color: #fff;
}

.section-heading--light > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.screens__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
  gap: 28px;
  align-items: start;
}

.screen-shot {
  margin: 0;
}

.image-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.screen-shot .image-button {
  aspect-ratio: 9 / 14;
  border: 8px solid #101817;
  border-radius: 28px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.3);
}

.screen-shot .image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 260ms ease;
}

.screen-shot--home .image-button {
  aspect-ratio: 9 / 16;
}

.screen-shot .image-button:hover img {
  transform: scale(1.02);
}

.screen-shot figcaption {
  display: grid;
  gap: 5px;
  margin-top: 20px;
}

.screen-shot figcaption strong {
  font-size: 18px;
}

.screen-shot figcaption span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.styles {
  background: #fffdf9;
}

.style-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 14px;
}

.style-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e9e2dc;
}

.style-card--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.style-card .image-button,
.style-card img {
  width: 100%;
  height: 100%;
}

.style-card img {
  object-fit: cover;
  transition: transform 320ms ease;
}

.style-card .image-button:hover img {
  transform: scale(1.035);
}

.style-card figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 4px;
  background: rgba(34, 17, 20, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.privacy-band {
  border-top: 1px solid rgba(23, 63, 58, 0.12);
  border-bottom: 1px solid rgba(23, 63, 58, 0.12);
  background: var(--green-light);
}

.privacy-band__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.45fr auto;
  gap: 50px;
  align-items: end;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.privacy-band__inner > p {
  margin: 0;
  color: #31534f;
}

.text-link {
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.release {
  min-height: 560px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  text-align: center;
}

.release__inner {
  max-width: 680px;
}

.release__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border: 4px solid #fff;
  border-radius: 25px;
  box-shadow: 0 18px 40px rgba(90, 59, 7, 0.18);
}

.release__inner > p:not(.eyebrow) {
  margin: 22px auto 0;
  color: #654e28;
  font-size: 17px;
}

.release__badge {
  display: inline-flex;
  margin-top: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(56, 32, 31, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  padding: 52px 24px;
  background: var(--ink);
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 32px;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.brand--footer {
  font-family: "Kaiti SC", STKaiti, serif;
  font-size: 22px;
  font-weight: 900;
}

.brand--footer .brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.site-footer nav a {
  text-underline-offset: 5px;
}

.preview-dialog {
  width: min(92vw, 680px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.preview-dialog::backdrop {
  background: rgba(20, 10, 12, 0.86);
  backdrop-filter: blur(8px);
}

.preview-dialog img {
  width: 100%;
  max-height: 88vh;
  border-radius: 6px;
  object-fit: contain;
}

.preview-dialog__close {
  position: absolute;
  top: -46px;
  right: 0;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(20, 10, 12, 0.6);
  color: #fff;
  cursor: pointer;
  font: 28px/1 sans-serif;
  place-items: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.process__step:nth-child(2),
.screens__grid > :nth-child(2),
.style-gallery > :nth-child(2) {
  transition-delay: 80ms;
}

.process__step:nth-child(3),
.screens__grid > :nth-child(3),
.style-gallery > :nth-child(3) {
  transition-delay: 160ms;
}

.style-gallery > :nth-child(4) {
  transition-delay: 220ms;
}

/* Legal pages */
.legal-page {
  background: #fffdf9;
}

.legal-header {
  position: static;
}

.legal-main {
  width: min(100%, 820px);
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-main h1 {
  margin: 0;
  font-family: "Kaiti SC", STKaiti, serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.2;
}

.legal-meta {
  margin: 14px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.legal-summary {
  padding: 22px 0 22px 24px;
  border-left: 4px solid var(--pink);
  color: #574541;
  font-size: 17px;
}

.legal-main h2 {
  margin: 42px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.legal-main p,
.legal-main li {
  color: #574b47;
}

.legal-main ul {
  padding-left: 22px;
}

.legal-back {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .section {
    padding: 84px 22px;
  }

  .site-header {
    padding-right: 22px;
    padding-left: 22px;
  }

  .brand__wordmark {
    width: 112px;
  }

  .site-nav {
    gap: 18px;
  }

  .hero__collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__collage img:last-child {
    display: none;
  }

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

  .process__step,
  .process__step + .process__step {
    min-height: 0;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process__step h3 {
    margin-top: 16px;
  }

  .screens__grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    padding-bottom: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screen-shot {
    scroll-snap-align: start;
  }

  .style-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

  .privacy-band__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .privacy-band__inner > p {
    max-width: 680px;
  }

  .text-link {
    justify-self: start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p {
    text-align: right;
  }

  .site-footer small {
    text-align: right;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 8px 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand__wordmark {
    width: 92px;
  }

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

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 78svh;
    padding: 104px 20px 72px;
  }

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

  .hero__app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 21px;
  }

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

  .hero__lead {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero__actions {
    display: grid;
    margin-top: 26px;
  }

  .button {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .section {
    padding: 70px 18px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .privacy-band h2,
  .release h2 {
    font-size: 39px;
  }

  .section-heading > p:last-child {
    font-size: 15px;
  }

  .screens__grid {
    gap: 16px;
    margin-right: -18px;
    padding-right: 18px;
  }

  .style-gallery {
    grid-auto-rows: 220px;
    gap: 8px;
  }

  .style-card--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .style-card--wide img {
    object-position: 50% 35%;
  }

  .release {
    min-height: 500px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer p,
  .site-footer small {
    text-align: left;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .legal-main {
    padding: 50px 20px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
