:root {
  color-scheme: light;
  --ink: #192828;
  --muted: #556662;
  --accent: #dd4c20;
  --line: #d5dfdc;
  --mint: #eef5f4;
  --paper: #fff;
  letter-spacing: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #197c72; outline-offset: 5px; }
img { max-width: 100%; display: block; }
p { line-height: 1.85; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 36px; line-height: 1.4; font-weight: 650; margin-bottom: 20px; }
h3 { font-size: 24px; margin-bottom: 14px; }

.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex-shrink: 0; font-size: 25px; font-weight: 800; line-height: 1; color: var(--ink); }
.brand span { color: var(--accent); }
.header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.header a:hover, .footer a:hover, .text-link:hover { color: var(--accent); }
.nav-download { border-bottom: 1px solid var(--ink); padding: 12px 0; }
.nav-download span { margin-left: 18px; }

.hero {
  position: relative;
  background: var(--mint) url("/assets/hero.webp") center center / cover no-repeat;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-content { padding-top: 58px; padding-bottom: 44px; }
.eyebrow { font-size: 13px; font-weight: 600; margin-bottom: 22px; color: #42635d; }
h1 { font-size: 96px; line-height: 1.05; margin-bottom: 14px; font-weight: 800; }
.brand-dot { color: var(--accent); }
.hero-tagline { font-size: 28px; margin-bottom: 18px; font-weight: 600; }
.hero-description { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 54px;
  padding: 16px 25px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: background .18s;
}
.primary { background: var(--ink); color: #fff; }
.primary:hover { background: #30504a; }
.button[aria-disabled=true] { background: #e1e7e4; color: #63716b; cursor: default; pointer-events: none; }
.hero-note { font-size: 12px; color: var(--muted); margin: 15px 0 0; }
.hero-bottom {
  border-top: 1px solid #c7d7d2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  padding-bottom: 19px;
  font-size: 12px;
  color: #42635d;
}

.section { padding-top: 80px; padding-bottom: 80px; }
.section-heading { max-width: 660px; }
.section-heading > p:last-child { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.features { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.features article { border-top: 1px solid var(--line); padding-top: 24px; }
.feature-number { display: block; font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 27px; }
.features p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.app-info-section { background: #fbf6ef; border-block: 1px solid #eaded0; }
.app-info {
  padding-block: 50px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 58px;
  align-items: start;
}
.app-card { display: flex; gap: 22px; align-items: center; }
.app-monogram {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 108px;
  background: var(--ink);
  color: #fff;
  font-size: 54px;
  font-weight: 800;
  box-shadow: 0 20px 38px rgba(25, 40, 40, .16);
}
.app-card h2 { font-size: 38px; line-height: 1.1; margin-bottom: 8px; }
.app-card p:last-child { color: var(--muted); font-size: 15px; margin: 0; }
.app-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 34px;
}
.app-meta div { border-top: 1px solid #e2d3c0; padding-top: 14px; }
.app-meta dt { font-size: 12px; font-weight: 700; color: #8b4a2f; margin-bottom: 8px; }
.app-meta dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); }
.app-meta a { border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }

.safety-band { background: #f2f4f1; }
.safety-content { padding-block: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.safety-content h2 { font-size: 30px; margin-bottom: 0; }
.safety-content p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.text-link { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 6px 0; cursor: pointer; font-size: 14px; display: inline-block; }
.text-link[hidden] { display: none; }

.download-section { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center; }
.download-copy > p { color: var(--muted); font-size: 15px; }
.download-copy .release-status { font-size: 13px; color: var(--ink); min-height: 24px; margin: 24px 0 13px; }
.download-help { max-width: 520px; font-size: 13px !important; margin-bottom: 0; }
.download-qr { margin: 0; text-align: center; justify-self: center; }
.download-qr img { background: #fff; border: 1px solid var(--line); padding: 10px; width: 204px; height: 204px; }
.download-qr figcaption { margin-top: 20px; font-size: 14px; }
.download-qr span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
#retry { margin-left: 16px; }
details { margin-top: 18px; font-size: 13px; max-width: 580px; }
summary { cursor: pointer; width: fit-content; }
#release-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin-top: 14px; max-height: 250px; overflow: auto; }

.support-section { background: var(--mint); padding: 38px 0; }
.support-content { display: grid; grid-template-columns: 230px 1fr auto; gap: 24px; align-items: center; }
.support-content h2 { font-size: 23px; margin: 0; }
.support-content p { font-size: 13px; color: var(--muted); margin: 0; }
.footer { padding-block: 36px; display: flex; justify-content: space-between; gap: 30px; font-size: 12px; color: var(--muted); }
.footer strong { font-size: 20px; color: var(--ink); }
.footer p { margin: 10px 0 0; }
.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.skip-link { position: absolute; top: -80px; left: 20px; background: #fff; padding: 16px; z-index: 10; }
.skip-link:focus { top: 10px; }

.legal { max-width: 780px; padding-block: 54px 80px; min-height: 70vh; }
.legal h1 { font-size: 40px; line-height: 1.4; margin-bottom: 20px; }
.legal h2 { font-size: 22px; margin: 35px 0 12px; }
.legal p { font-size: 15px; color: var(--muted); }
.legal .eyebrow { font-size: 13px; }
.legal a { text-decoration: underline; }

@media (min-width: 1700px) {
  .hero { min-height: 600px; background-size: 1600px auto; }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 76px; }
  .brand { font-size: 22px; }
  .header nav { gap: 18px; font-size: 12px; }
  .header nav > a:first-child { display: none; }
  .hero { min-height: 565px; background-position: 58% center; }
  .hero-content { padding-top: 48px; }
  h1 { font-size: 72px; }
  .hero-tagline { font-size: 24px; }
  .hero-description { font-size: 14px; }
  .hero-bottom { font-size: 11px; }
  .section { padding-block: 54px; }
  h2 { font-size: 28px; }
  .features { gap: 24px; margin-top: 32px; }
  .features h3 { font-size: 20px; }
  .features p { font-size: 13px; }
  .app-info { grid-template-columns: 1fr; gap: 34px; }
  .app-meta { gap: 14px 24px; }
  .safety-content { gap: 32px; }
  .safety-content h2 { font-size: 26px; }
  .download-section { grid-template-columns: 1fr 204px; gap: 26px; }
  .support-content { grid-template-columns: 1fr; gap: 14px; }
  .support-content .text-link { justify-self: start; }
  .footer { flex-direction: column; gap: 24px; }
  .footer-links { gap: 16px; }
}

@media (max-width: 540px) {
  .hero { background-image: url("/assets/hero-mobile.webp"); background-position: center bottom; background-size: cover; min-height: 570px; }
  .hero-content { padding-top: 38px; padding-bottom: 120px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  h1 { font-size: 52px; }
  .hero-tagline { font-size: 23px; }
  .hero-description { margin-bottom: 22px; }
  .hero-bottom > span:last-child { display: none; }
  .features { grid-template-columns: 1fr; gap: 30px; }
  .feature-number { margin-bottom: 15px; }
  .features p { font-size: 15px; max-width: 400px; }
  .app-info { padding-block: 38px; }
  .app-card { align-items: flex-start; }
  .app-monogram { width: 78px; height: 78px; flex-basis: 78px; border-radius: 18px; font-size: 40px; }
  .app-card h2 { font-size: 30px; }
  .app-meta { grid-template-columns: 1fr; }
  .safety-content { grid-template-columns: 1fr; gap: 18px; padding-block: 40px; }
  .safety-content p { margin-bottom: 10px; }
  .download-section { grid-template-columns: 1fr; gap: 32px; }
  .download-qr { justify-self: start; display: flex; align-items: center; gap: 18px; text-align: left; }
  .download-qr img { width: 124px; height: 124px; padding: 5px; }
  .download-qr figcaption { margin: 0; font-size: 13px; }
  .download-qr span { font-size: 11px; }
  .footer-links { align-items: flex-start; }
  .footer-links > span { width: 100%; }
  .legal { padding-top: 35px; }
  .legal h1 { font-size: 32px; }
  .button { gap: 24px; padding-inline: 20px; }
  #retry { margin-left: 0; display: block; width: fit-content; margin-top: 12px; }
  #retry[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
