:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
  background: #dededb;
  color: #0b0b0b;
  --ink: #0b0b0b;
  --muted: #686865;
  --paper: #f8f8f6;
  --soft: #ececea;
  --line: rgba(11, 11, 11, .16);
  --dark: #080808;
  --dark-muted: #b8b8b3;
  --page-gutter: clamp(24px, 5vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #dededb;
  color: var(--ink);
}

img { max-width: 100%; }
a { color: inherit; }

a:focus-visible {
  outline: 3px solid #777;
  outline-offset: 4px;
}

.shell {
  width: 100%;
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(0, 0, 0, .1);
}

.home-page .shell { box-shadow: none; }

.site-header,
body:not(.home-page) header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 18px var(--page-gutter);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, .09);
  background: rgba(248, 248, 246, .76);
  backdrop-filter: blur(20px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  filter: grayscale(1);
}

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

nav a {
  color: #30302e;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover { color: #000; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 20px; }
.instagram-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #454545;
}
.instagram-link:hover { color: #000; }

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 730;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  transition: transform .2s ease, background .2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  background: #303030;
}

.store-button--small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 14px;
}

.product-tour {
  position: relative;
  height: 420svh;
  background: var(--paper);
}

.feature-anchor {
  position: absolute;
  top: 95svh;
}

.tour-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  overflow: hidden;
  padding: 118px var(--page-gutter) 52px;
  background:
    radial-gradient(ellipse at 77% 48%, #c7c7c7 0%, #dedede 29%, transparent 58%),
    linear-gradient(110deg, #fafafa 22%, #f1f1f1 62%, #e5e5e5);
}

.tour-copy {
  position: relative;
  z-index: 4;
  min-height: 460px;
}

.tour-copy-item {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  max-width: 590px;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  pointer-events: none;
  will-change: opacity, transform;
}

.tour-copy-item.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tour-copy-item h1,
.tour-copy-item h2 {
  margin: 0 0 30px;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.025em;
  white-space: pre-line;
  text-wrap: balance;
}

html:lang(en) .tour-copy-item h1,
html:lang(en) .tour-copy-item h2 { line-height: 1.16; letter-spacing: -.035em; }
[data-en] { white-space: pre-line; }

.lead {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.tour-copy-item > p:last-child:not(.lead) {
  max-width: 32ch;
  margin: 0;
  color: #565653;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.85;
}

.phone-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(82vh, 840px);
  min-height: 560px;
  overflow: visible;
}

.phone-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 52%;
  height: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, .24);
  filter: blur(20px);
  pointer-events: none;
}

.phone-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  filter: drop-shadow(14px 20px 18px rgba(0, 0, 0, .2));
}

.phone-fallback {
  position: absolute;
  inset: 6% 24%;
  z-index: 1;
  overflow: hidden;
  border: 5px solid #161616;
  border-radius: 52px;
  background: #111;
}

.phone-fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-cue {
  position: absolute;
  left: var(--page-gutter);
  bottom: 28px;
  z-index: 4;
  color: #5d5d59;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .06em;
  opacity: var(--scroll-cue-opacity, 1);
}

.trust {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 120px);
  margin: 0;
  padding: 120px clamp(24px, 7vw, 110px);
  border: 0;
  background: var(--dark);
  color: #fff;
}

.trust h2,
.download h2 {
  margin: 22px 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.trust p {
  max-width: 620px;
  color: var(--dark-muted);
  font-size: 17px;
  line-height: 1.8;
}

.trust-links {
  display: grid;
  align-content: center;
  border-top: 1px solid #333;
}

.trust-links a {
  display: grid;
  gap: 8px;
  padding: 25px 4px;
  border-bottom: 1px solid #333;
  color: #fff;
  text-decoration: none;
  transition: padding-left .2s ease, background .2s ease;
}

.trust-links a:hover { padding-left: 14px; background: rgba(255, 255, 255, .045); }
.trust-links strong { font-size: 20px; }
.trust-links span { color: #999; font-size: 14px; }

.download {
  min-height: 78svh;
  display: grid;
  place-items: center;
  align-content: center;
  margin: 0;
  padding: 110px 24px;
  border: 0;
  background: #efefec;
  text-align: center;
}

.download img {
  width: 108px;
  height: 108px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  filter: grayscale(1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
}

.download p:not(.kicker) {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

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

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 30px var(--page-gutter) 38px;
  border-top: 1px solid var(--line);
  background: #efefec;
  color: #656562;
  font-size: 14px;
}

footer div { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: #000; }

/* Privacy and terms pages share the same monochrome system. */
body:not(.home-page) .shell {
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  padding: 0 clamp(22px, 5vw, 58px);
}

body:not(.home-page) header {
  grid-template-columns: 1fr auto;
  padding-inline: 0;
  border-bottom: 1px solid var(--line);
}

body:not(.home-page) nav { justify-self: end; }
.page { padding: 58px 0 90px; }

.page h1 {
  margin: 16px 0 22px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1;
}

.page section {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page h2 { margin: 0 0 14px; font-size: 26px; }
.page h3 { margin: 26px 0 10px; color: #242423; }
.page p, .page li { max-width: 72ch; color: #565653; line-height: 1.78; }
.updated { color: #7b7b77; }

.contact {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #ececea;
}

@media (max-width: 920px) {
  .tour-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, .65fr) minmax(0, 1.35fr);
    gap: 8px;
    padding: 104px 24px 34px;
  }
  .tour-copy { min-height: 0; height: 100%; }
  .tour-copy-item { max-width: 720px; align-content: center; }
  .tour-copy-item h1,
  .tour-copy-item h2 { font-size: clamp(2.25rem, 5.2vw, 3.25rem); margin-bottom: 20px; }
  .phone-stage { height: 100%; min-height: 0; }
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 12px 16px;
  }

  .site-header nav { display: none; }
  .site-header { gap: 12px; }
  .header-actions { gap: 12px; }
  .instagram-link { font-size: 13px; }
  .brand img { width: 38px; height: 38px; }
  .store-button--small { min-height: 40px; padding-inline: 14px; }
  .product-tour { height: 400svh; }
  .tour-sticky {
    grid-template-rows: minmax(230px, .8fr) minmax(0, 1.2fr);
    padding: 82px 18px 22px;
  }
  .tour-copy-item { align-content: center; text-align: left; }
  .tour-copy-item h1,
  .tour-copy-item h2 { margin: 0 0 18px; font-size: clamp(2rem, 8vw, 2.625rem); }
  .tour-copy-item > p:last-child:not(.lead) { font-size: 16px; line-height: 1.7; }
  .lead { font-size: 16px; line-height: 1.7; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions { margin-top: 20px; }
  .phone-stage { min-height: 0; }
  .scroll-cue { left: 18px; bottom: 14px; }
  .trust { padding: 90px 22px; }
  .download { min-height: 72svh; padding: 90px 22px; }
  body:not(.home-page) .shell { width: 100%; }
  body:not(.home-page) header { grid-template-columns: 1fr; }
  body:not(.home-page) nav { justify-self: start; gap: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .product-tour { height: auto; }
  .tour-sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .tour-copy { min-height: 0; }
  .tour-copy-item {
    position: relative;
    min-height: 280px;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .phone-stage { height: min(76svh, 760px); min-height: 520px; }
  .scroll-cue { display: none; }
}
