:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --bg-elevated: rgba(242, 242, 247, 0.82);
  --card: #ffffff;
  --label: #000000;
  --secondary: rgba(60, 60, 67, 0.6);
  --tertiary: rgba(60, 60, 67, 0.3);
  --separator: rgba(60, 60, 67, 0.12);
  --accent: #247eff;
  --accent-pressed: #1b6ae6;
  --accent-soft: rgba(36, 126, 255, 0.14);
  --fill: rgba(118, 118, 128, 0.12);
  --hairline: 0.5px;
  --radius: 20px;
  --page: 680px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --icon-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: rgba(28, 28, 30, 0.78);
    --card: #1c1c1e;
    --label: #ffffff;
    --secondary: rgba(235, 235, 245, 0.6);
    --tertiary: rgba(235, 235, 245, 0.3);
    --separator: rgba(84, 84, 88, 0.65);
    --accent: #247eff;
    --accent-pressed: #409cff;
    --accent-soft: rgba(36, 126, 255, 0.22);
    --fill: rgba(118, 118, 128, 0.24);
    --icon-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(90% 40% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-lang="zh"] .lang-en,
html[data-lang="en"] .lang-zh {
  display: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 16px 8px;
  background: var(--bg-elevated);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--hairline) solid var(--separator);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--label);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
  opacity: 0.72;
}

.brand-link img,
.app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6.5px;
  box-shadow: var(--icon-shadow);
}

.chips {
  display: inline-flex;
  gap: 8px;
}

.chips button {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 44px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.08px;
  cursor: pointer;
}

.chips button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.page {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 20px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}

.hero {
  padding: 28px 4px 32px;
  text-align: center;
}

.hero-mark,
.masthead .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--icon-shadow);
}

.hero h1,
.masthead h1 {
  margin: 16px 0 6px;
  font-size: 28px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.slogan {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 17px;
}

.lead {
  margin: 0 auto;
  max-width: 34em;
  color: var(--secondary);
}

.masthead {
  padding: 28px 4px 24px;
  text-align: center;
}

.meta {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-pressed);
  text-decoration: none;
}

.group {
  margin: 0 0 28px;
}

.group-label {
  margin: 0 16px 8px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.08px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.card-body {
  padding: 16px;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--label);
}

.card-body p:last-child,
.card-body ul:last-child,
.card-body .rows:last-child,
.prose > :last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.card-body .secondary {
  color: var(--secondary);
}

.prose p + p {
  margin-top: 10px;
}

.rows {
  margin: 4px 0 0;
}

.row {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: var(--hairline) solid var(--separator);
}

.row:first-child {
  border-top: 0;
  padding-top: 8px;
}

.row-title {
  font-weight: 590;
  letter-spacing: -0.02em;
}

.row-caption {
  color: var(--secondary);
  font-size: 15px;
}

.list {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.list-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: var(--hairline) solid var(--separator);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.list-icon svg {
  display: block;
}

.list-icon.blue { background: #247eff; }
.list-icon.green { background: #34c759; }
.list-icon.indigo { background: #5856d6; }
.list-icon.orange { background: #ff9500; }

.list-title {
  font-weight: 590;
  letter-spacing: -0.02em;
}

.list-caption {
  color: var(--secondary);
  font-size: 15px;
  margin-top: 2px;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 11px 16px 11px 36px;
  border-bottom: var(--hairline) solid var(--separator);
}

.bullets li:last-child {
  border-bottom: 0;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.site-footer {
  padding: 8px 16px 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.4;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .hero h1,
  .masthead h1 {
    font-size: 24px;
  }

  .hero-mark,
  .masthead .app-icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }
}

/* ---- Home page (product layout) ----
   Everything below is scoped to body.home or brand-new class names,
   so the privacy page keeps its original layout. */

body.home .page {
  width: min(1080px, 100%);
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  font-size: 15px;
  font-weight: 590;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 32px 4px 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.06px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.home-hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.slogan-lines {
  margin: 0 0 14px;
}

.slogan-lines p {
  margin: 0 0 6px;
  color: var(--secondary);
  line-height: 1.5;
}

.slogan-lines p:nth-child(1),
.slogan-lines p:nth-child(2) {
  color: var(--label);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

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

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.01em;
}

.hero-cta:hover {
  text-decoration: none;
  background: var(--accent-pressed);
  color: #fff;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--separator);
  color: var(--label);
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.01em;
}

.hero-scroll:hover {
  text-decoration: none;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.hero-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.01em;
}

.hero-more:hover {
  color: var(--accent);
  text-decoration: none;
}

.shot {
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    0 0 0 1px var(--separator),
    0 24px 48px rgba(0, 0, 0, 0.22);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-hero {
  width: min(100%, 320px);
  margin: 0 auto;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 48px;
  border-top: var(--hairline) solid var(--separator);
}

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

.feature-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-sub {
  margin: 0;
  max-width: 40em;
  color: var(--secondary);
}

.feature-flip {
  flex-direction: row-reverse;
}

.feature-shot {
  flex: 0 0 auto;
  width: 250px;
}

.shot-pair {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

.shot-pair .shot {
  width: 236px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mini-title {
  font-weight: 590;
  letter-spacing: -0.02em;
}

.mini-text {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.45;
}

.feature-more {
  align-items: flex-start;
}

.feature-more .feature-copy {
  max-width: none;
  flex-basis: 100%;
}

.more-grid {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.more-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}

.more-title {
  font-weight: 590;
  letter-spacing: -0.02em;
}

.more-text {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    text-align: left;
  }

  .home-hero-media {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .feature {
    padding: 32px 0 40px;
  }

  .feature-flip {
    flex-direction: row;
  }

  .feature-shot {
    margin: 0 auto;
  }
}

/* The subscription pair swipes horizontally on its own row on narrow
   screens, so the touch gesture scrolls the shots instead of the page. */
@media (max-width: 900px) {
  .shot-pair {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shot-pair::-webkit-scrollbar {
    display: none;
  }

  .shot-pair .shot {
    flex: 0 0 auto;
    width: min(74vw, 300px);
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .topbar-link:not(.topbar-cta) {
    display: none;
  }
}
