:root {
  color-scheme: light;
  --background: #f5f5f7;
  --foreground: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.14);
  --panel: rgba(255, 255, 255, 0.72);
  --accent: #1d1d1f;
  --apple-blue: #0071e3;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

.page-shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 28px;
  opacity: 1;
  transition: opacity 150ms ease;
}

html.is-language-fading .page-shell {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-shell {
    transition: none;
  }
}

.site-header {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100vw;
  min-height: 52px;
  margin-left: calc(50% - 50vw);
  padding: 0 clamp(16px, 2.6vw, 40px);
  background: #ffffff;
}

.site-header::before {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav-links,
.footer-links,
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--foreground);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 30px;
  padding: 0 14px;
  color: #ffffff !important;
  background: var(--apple-blue);
  border-radius: 999px;
  line-height: 1;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.language-switcher button {
  appearance: none;
  min-width: 38px;
  height: 22px;
  margin: 0;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 5.4vw, 76px);
  align-items: center;
  min-height: 760px;
  padding: clamp(46px, 5.2vw, 78px) 0 clamp(60px, 5.8vw, 92px);
  overflow: visible;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 7.8vw, 106px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
  white-space: pre-line;
}

html[data-language="zh"] h1 {
  max-width: 690px;
  font-size: clamp(56px, 6.2vw, 88px);
  line-height: 1.04;
}

.lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.42;
  font-weight: 560;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--apple-blue);
}

.button.primary.support-email-button {
  background: var(--accent);
}

.button.secondary {
  color: var(--foreground);
  background: var(--panel);
  border: 1px solid var(--line);
}

.app-store-badge {
  display: block;
  width: auto;
  height: 44px;
}

.app-store-badge-zh {
  display: none;
}

html[data-language="zh"] .app-store-badge-en {
  display: none;
}

html[data-language="zh"] .app-store-badge-zh {
  display: block;
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 520px);
  aspect-ratio: 0.68 / 1;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  display: block;
  width: 78%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.hero-phone-zh {
  display: none;
}

html[data-language="zh"] .hero-phone-en {
  display: none;
}

html[data-language="zh"] .hero-phone-zh {
  display: block;
}

.hero-app-icon {
  display: block;
  position: absolute;
  z-index: 2;
  left: 1%;
  top: 47%;
  width: clamp(120px, 31%, 164px);
  height: auto;
  border-radius: 24%;
  transform: translate(0, -50%) rotate(-7deg);
  box-shadow: 0 28px 56px rgba(29, 29, 31, 0.18);
}

.feature-section {
  margin: 0 calc(50% - 50vw);
  padding: clamp(76px, 8vw, 118px) max(18px, calc((100vw - 1180px) / 2));
}

.feature-section-white {
  background: #ffffff;
}

.feature-section-gray {
  background: var(--background);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.feature-layout-reversed {
  grid-template-columns: minmax(320px, 1.02fr) minmax(0, 0.98fr);
}

.feature-layout-reversed .feature-copy-block {
  order: 2;
}

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

.feature-title {
  max-width: 680px;
  margin: 0;
  color: var(--foreground);
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
  white-space: pre-line;
}

html[data-language="zh"] .feature-title {
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.06;
}

.feature-lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.42;
  font-weight: 560;
}

.track-gallery {
  display: grid;
  grid-template-columns: minmax(0, calc((200% - 18px) / 3)) minmax(0, calc((100% - 36px) / 3));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.track-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.track-card-large {
  grid-row: span 2;
  min-height: 0;
}

.track-feature {
  display: block;
  position: relative;
}

.track-card img,
.track-card video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: auto 0;
  object-fit: contain;
  border-radius: calc(var(--radius) - 3px);
}

.track-card video {
  background: #ffffff;
}

.track-card span {
  display: block;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.track-hint {
  position: absolute;
  top: calc(100% + 10px);
  left: 2px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.reminder-panel,
.reminder-shot {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(29, 29, 31, 0.08);
}

.reminder-shot {
  display: block;
  margin: 0;
  padding: 14px;
}

.reminder-shot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 3px);
}

.reminder-shot-zh {
  display: none;
}

html[data-language="zh"] .reminder-shot-en {
  display: none;
}

html[data-language="zh"] .reminder-shot-zh {
  display: block;
}

.reminder-panel {
  display: grid;
  gap: 0;
  padding: 18px;
}

.reminder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}

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

.reminder-row strong {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1;
}

.reminder-row span {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
}

.reminder-row i {
  position: relative;
  display: block;
  width: 58px;
  height: 34px;
  background: #d2d2d7;
  border-radius: 999px;
}

.reminder-row i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
}

.reminder-row i.is-on {
  background: var(--foreground);
}

.reminder-row i.is-on::after {
  left: 28px;
}

.widgets-section {
  margin: 0 calc(50% - 50vw);
  padding: clamp(76px, 8vw, 112px) max(18px, calc((100vw - 1180px) / 2)) clamp(70px, 7vw, 108px);
  background: #ffffff;
}

.section-title {
  margin: 0 0 16px;
  color: var(--foreground);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.poster {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.more-to-come {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 36px calc(50% - 50vw) 0;
  padding: 22px max(18px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  background: var(--background);
  font-size: 12px;
  font-weight: 620;
}

.site-footer p {
  margin: 0;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.legal-hero {
  display: block;
  max-width: 820px;
  min-height: auto;
  padding-top: clamp(76px, 9vw, 132px);
  padding-bottom: 30px;
}

.legal-content {
  max-width: 760px;
  margin: 0 0 82px;
  padding: 30px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-content h2 {
  margin: 30px 0 8px;
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.2;
}

.legal-content h2:first-child,
.legal-content p:first-child + h2 {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 520;
}

.legal-content ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.legal-content li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 520;
}

.legal-content a {
  color: var(--foreground);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.zh-only {
  display: none;
}

html[data-language="zh"] .zh-only {
  display: block;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 0;
  }

  .site-header {
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
  }

  .site-header::before {
    top: -16px;
    bottom: -12px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .nav-links {
    order: 1;
    gap: 0;
  }

  .language-switcher {
    order: 2;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a[href="support.html"] {
    display: inline;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 66px 0 58px;
    overflow: visible;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(48px, 16vw, 78px);
  }

  .hero-visual {
    position: relative;
    width: min(86vw, 430px);
    margin: 34px auto 0;
  }

  .feature-section,
  .widgets-section {
    padding: 58px 14px;
  }

  .feature-layout,
  .feature-layout-reversed {
    display: block;
  }

  .feature-layout-reversed .feature-copy-block {
    order: initial;
  }

  .feature-title {
    font-size: clamp(40px, 12vw, 62px);
  }

  html[data-language="zh"] .feature-title {
    font-size: clamp(38px, 11vw, 56px);
  }

  .track-gallery,
  .reminder-panel,
  .reminder-shot {
    margin-top: 30px;
  }

  .track-gallery {
    grid-template-columns: 1fr;
  }

  .track-gallery > .track-card {
    display: none;
  }

  .track-card,
  .track-card-large {
    min-height: 0;
  }

  .poster {
    padding: 6px;
  }

  .legal-content {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
