:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #68645f;
  --line: #dedbd4;
  --paper: #fbfaf7;
  --paper-deep: #f2efe9;
  --warm: #e9cfaa;
  --warm-strong: #c7955f;
  --dark: #121110;
  --dark-soft: #201e1b;
  --blue: #0a7aff;
  --shell: 1320px;
  --page-pad: clamp(22px, 5vw, 76px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0.45em;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.5rem, 6vw, 6.4rem);
}

h2 {
  max-width: 980px;
  font-size: clamp(2.7rem, 5.4vw, 5.9rem);
}

p {
  max-width: 64ch;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 650;
  transform: translateY(-180%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 17, 16, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.nav-shell,
.content-shell,
.hero-shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link img {
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  font-size: 0.86rem;
  font-weight: 560;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-download) {
  color: rgba(255, 255, 255, 0.74);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.locale-link {
  min-width: 42px;
  text-align: center;
}

.nav-download {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-download:hover,
.nav-download:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  display: grid;
  min-height: max(800px, 100svh);
  overflow: hidden;
  align-items: center;
  background: var(--dark);
  color: #fff;
}

.hero-stage {
  position: absolute;
  inset: 0;
  background: var(--dark) url("./imgs/hero-stage.webp") center bottom / cover no-repeat;
}

.hero-stage::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  content: "";
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(410px, 0.92fr) minmax(500px, 1.08fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: 96px;
  padding-bottom: 74px;
}

html[lang="zh-Hans"] .hero h1 {
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.eyebrow,
.section-index {
  margin-bottom: 22px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-lede {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.55;
}

.badge-clearspace {
  display: inline-block;
  margin-top: 14px;
  padding: 12px;
}

.app-store-badge {
  display: block;
  width: max-content;
}

.app-store-badge img {
  width: auto;
  min-height: 40px;
  height: 48px;
}

.hero-note {
  margin: 0 0 0 12px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.78rem;
}

.hero-product {
  position: relative;
  width: min(680px, 52vw);
  margin: 0;
  justify-self: end;
  perspective: 1400px;
  transform: translate3d(0, 0, 0) rotate(1.8deg);
  transform-origin: 50% 80%;
  will-change: transform;
}

.hero-product img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(22px, 3vw, 40px);
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.66), 0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.hero-product figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-align: center;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.section-pad {
  padding-block: clamp(96px, 13vw, 190px);
}

.difference {
  background: #fff;
}

.difference-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(52px, 8vw, 130px);
  align-items: end;
}

.difference h2 {
  max-width: 950px;
  font-size: clamp(2.65rem, 4.7vw, 5rem);
}

.difference-copy,
.privacy-copy {
  padding-bottom: 8px;
}

.difference-copy > p:first-child,
.privacy-lede {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.5;
}

.supporting-copy {
  color: var(--muted);
}

.story {
  background: var(--paper);
}

.story-scene {
  overflow: hidden;
}

.scene-tint {
  background: var(--paper-deep);
}

.scene-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.scene-grid-reverse .scene-copy {
  order: 2;
}

.scene-grid-reverse {
  grid-template-columns: minmax(520px, 1.28fr) minmax(280px, 0.72fr);
}

.scene-copy h2 {
  max-width: 640px;
  font-size: clamp(3rem, 5.5vw, 6rem);
}

.scene-copy > p:not(.section-index) {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.scene-media {
  position: relative;
  margin: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.scene-media img {
  width: 100%;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: clamp(18px, 2vw, 30px);
  box-shadow: 0 30px 80px rgba(45, 40, 33, 0.16);
}

.portrait-media {
  width: min(100%, 820px);
  justify-self: end;
}

.wide-media {
  width: min(100%, 920px);
}

.picker-media {
  width: min(100%, 860px);
  transform: rotate(-1.2deg);
}

.reach-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.75fr) minmax(250px, 0.4fr) minmax(420px, 0.85fr);
  gap: clamp(30px, 4vw, 66px);
  align-items: center;
}

.reach-grid .scene-copy h2 {
  font-size: clamp(2.7rem, 4.2vw, 4.8rem);
}

.menu-media img {
  border-radius: 32px;
}

.everywhere-media {
  align-self: end;
}

.privacy {
  background: var(--dark);
  color: #fff;
}

.privacy .section-index {
  color: var(--warm);
}

.privacy h2 {
  font-size: clamp(3.2rem, 6.4vw, 7rem);
}

.privacy-lede {
  color: rgba(255, 255, 255, 0.84);
}

.privacy-points {
  margin: 52px 0 32px;
}

.privacy-points div {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.privacy-points dt {
  font-weight: 680;
}

.privacy-points dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

.text-link {
  color: #fff;
  text-underline-offset: 5px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--warm) url("./imgs/brand-background.webp") center / cover no-repeat;
}

.final-cta::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 235, 0.32);
  content: "";
}

.final-shell {
  position: relative;
  z-index: 2;
  text-align: center;
}

.final-icon {
  width: clamp(104px, 11vw, 144px);
  margin: 0 auto 32px;
  border-radius: 25%;
  box-shadow: 0 20px 42px rgba(77, 55, 27, 0.15);
}

.final-shell .eyebrow {
  color: #77532e;
}

.final-shell h2 {
  margin-inline: auto;
}

.final-shell > p:not(.eyebrow) {
  margin: 0 auto 36px;
  color: #544738;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.final-download {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 680;
  text-decoration: none;
}

.final-download:hover,
.final-download:focus-visible {
  background: #302c27;
}

.site-footer {
  padding-block: 52px;
  background: #0d0c0b;
  color: rgba(255, 255, 255, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px 60px;
  align-items: start;
}

.footer-grid strong {
  color: #fff;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: flex-end;
}

.footer-links a {
  text-underline-offset: 4px;
}

.legal {
  grid-column: 1 / -1;
  max-width: 104ch;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  line-height: 1.65;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (max-width: 1040px) {
  .hero-shell {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 132px;
  }

  html[lang="zh-Hans"] .hero h1 {
    white-space: normal;
  }

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

  .hero-product {
    width: min(900px, 100%);
    justify-self: center;
  }

  .difference-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .scene-grid,
  .reach-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid-reverse .scene-copy {
    order: initial;
  }

  .scene-media,
  .portrait-media,
  .wide-media,
  .picker-media,
  .menu-media,
  .everywhere-media {
    width: min(100%, 900px);
    justify-self: center;
  }

  .menu-media {
    width: min(72vw, 520px);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-shell {
    min-height: 66px;
  }

  .site-nav > a:first-child,
  .site-nav > a:nth-child(2) {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .nav-download {
    padding: 8px 12px;
  }

  .hero {
    min-height: 920px;
  }

  .hero-shell {
    gap: 44px;
    padding-top: 112px;
    padding-bottom: 112px;
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 5.2rem);
  }

  h2,
  .scene-copy h2,
  .privacy h2,
  .difference h2 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-product {
    width: 112%;
    margin-right: -12%;
  }

  .scroll-cue {
    display: none;
  }

  .section-pad {
    padding-block: 92px;
  }

  .difference-grid,
  .privacy-grid,
  .scene-grid {
    gap: 42px;
  }

  .menu-media {
    width: min(86vw, 480px);
  }

  .privacy-points div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

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

  .hero-product,
  .scene-media {
    transform: none !important;
  }
}
