:root {
  --paper: #f7f4ee;
  --paper-raised: #fffdf8;
  --ink: #1c1a17;
  --ink-soft: #625c52;
  --zhu: #a8322a;
  --gold: #9a7742;
  --line: rgba(28, 26, 23, 0.14);
  --shadow: 0 24px 70px rgba(43, 34, 26, 0.09);
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(159, 49, 42, 0.07), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

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

.site-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(43, 34, 26, 0.16);
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
}

.language-nav a {
  min-width: 36px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.language-nav a:focus-visible,
.store-link:focus-visible,
.brand:focus-visible,
.card-domain:focus-visible {
  outline: 3px solid rgba(159, 49, 42, 0.35);
  outline-offset: 3px;
}

.download-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--zhu);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 48px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.16;
}

.download-card {
  position: relative;
  isolation: isolate;
  width: min(760px, 100%);
  margin: 24px auto 0;
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.download-card::before {
  position: absolute;
  top: 0;
  left: 18%;
  z-index: -1;
  width: 64%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.card-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(43, 34, 26, 0.2);
}

.card-brand-name {
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.card-positioning {
  margin: 15px auto 0;
  color: var(--zhu);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.download-card h2 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 600;
  line-height: 1.35;
}

.card-slogan {
  max-width: 38rem;
  margin: 14px auto 0;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}

.card-value {
  max-width: 39rem;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.card-boundary {
  max-width: 37rem;
  margin: 10px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.device-support {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(154, 119, 66, 0.06);
}

.device-summary {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 650;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.device-list li {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.download-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: clamp(24px, 5vw, 42px);
  align-items: center;
  margin-top: 24px;
}

.qr-image {
  display: block;
  width: 196px;
  height: 196px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  image-rendering: pixelated;
}

.handoff-copy {
  text-align: left;
}

.download-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.handoff-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.install-instruction {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.store-link {
  display: inline-flex;
  max-width: 100%;
  margin-top: 0;
  border-radius: 999px;
  text-decoration: none;
}

.store-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: inherit;
  background: #a8322a;
  color: #fffdf8;
  box-shadow: 0 5px 16px rgba(92, 29, 25, 0.15);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.store-link:hover .store-link-label {
  background: #8b2822;
}

.store-link:active .store-link-label {
  background: #75211d;
}

.scan-instruction {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.download-context {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.share-arrival {
  max-width: 660px;
  margin: 30px auto 0;
  color: var(--ink-soft);
  text-align: left;
  font-size: 15px;
}

.share-arrival h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
}

.share-arrival p {
  margin: 10px 0 0;
}

.share-arrival .preview-note {
  padding-top: 12px;
  font-size: 13px;
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.card-domain {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-decoration: none;
}

footer {
  padding: 28px 20px 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 699px) {
  .site-header {
    width: min(100% - 28px, 1080px);
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 17px;
  }

  .language-nav a {
    min-width: 32px;
    padding-inline: 7px;
  }

  .download-main {
    width: min(100% - 28px, 920px);
    padding: 8px 0 48px;
  }

  h1 {
    font-size: clamp(27px, 7vw, 36px);
  }

  .download-card {
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .card-brand {
    gap: 11px;
  }

  .card-brand-mark {
    width: 36px;
    height: 36px;
  }

  .card-brand-name {
    font-size: 25px;
  }

  .card-positioning {
    margin-top: 10px;
    font-size: 13px;
  }

  .card-boundary {
    font-size: 13px;
  }

  .handoff-copy h2 {
    margin: 0;
  }

  .card-value {
    font-size: 15px;
  }

  .device-support {
    padding: 16px 10px;
  }

  .device-list {
    gap: 6px;
  }

  .device-list li {
    padding: 9px 3px;
    font-size: 12px;
  }

  .download-handoff {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    margin-top: 20px;
  }

  .qr-image {
    width: min(176px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .handoff-copy {
    text-align: center;
  }

  .store-link {
    align-items: center;
  }

  .scan-instruction {
    max-width: 30ch;
    margin-inline: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --paper-raised: #211e19;
    --ink: #f3ede3;
    --ink-soft: #bcb3a7;
    --zhu: #e27a70;
    --gold: #d2aa67;
    --line: rgba(243, 237, 227, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  }

  .language-nav,
  .download-card {
    background: rgba(33, 30, 25, 0.92);
  }

  .device-support {
    background: rgba(210, 170, 103, 0.07);
  }

  .store-link-label {
    background: #dca46b;
    color: #211e19;
  }

  .store-link:hover .store-link-label {
    background: #eaba87;
  }

  .store-link:active .store-link-label {
    background: #d29a60;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
