:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --text: #162030;
  --muted: #667386;
  --faint: #8b97a8;
  --line: #e0e6ee;
  --accent: #0d6e8a;
  --accent-dark: #09586f;
  --deep: #0b1220;
  --success: #16915c;
  --warning: #be5c18;
  --soft: #eef5f8;
  --shadow: 0 18px 50px rgba(22, 32, 48, 0.07);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(13, 110, 138, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--accent); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 60px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

nav a:hover { color: var(--accent); }

main { padding: 42px 0 0; }

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.hero img.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.18);
}

h1 {
  margin: 0 0 4px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0;
  color: var(--accent);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
}

.hero-copy {
  min-width: 0;
}

.hero-copy p {
  margin: 10px 0 0;
  max-width: 620px;
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 30px;
}

.badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.section-title {
  margin: 38px 0 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.platform {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.platform .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
}

.platform .glyph svg {
  width: 22px;
  height: 22px;
}

.platform h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.platform small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.download p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.download .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 14px;
}

.chip {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
}

.button.secondary:hover { background: var(--soft); }

.button.full { width: 100%; }

.alt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.alt-links a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.alt-links a:hover { text-decoration: underline; }

.hash {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 11px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.panel p, .panel li {
  color: var(--muted);
  font-size: 14px;
}

.panel ol, .panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.panel li { margin: 7px 0; }

.panel strong { color: var(--text); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 18px;
}

.shots.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.apple-panel {
  margin-top: 18px;
}

.shot {
  min-width: 0;
  margin: 0;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.shot figcaption {
  padding: 7px 3px 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #cde5ec;
  border-radius: 16px;
  background: #f2fafc;
  color: #285363;
  font-size: 13px;
}

.callout strong { color: var(--accent-dark); }

details {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p, details li { color: var(--muted); font-size: 14px; }

pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 12px;
  background: #101827;
  color: #d9e7ef;
  font-size: 12px;
  line-height: 1.65;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

p code, li code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--accent-dark);
}

footer {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

footer p { margin: 4px 0; }

footer a { color: var(--muted); }

/* Policy/support pages */
main.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 34px 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

main.article h1 {
  font-size: 32px;
}

main.article h2 {
  margin: 30px 0 8px;
  font-size: 19px;
}

main.article p, main.article li {
  color: var(--muted);
  font-size: 14px;
}

main.article .meta {
  margin-bottom: 24px;
  color: var(--faint);
  font-size: 12px;
}

main.article ul { padding-left: 1.2em; }

@media (max-width: 820px) {
  .downloads, .shots { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { align-items: flex-start; }
  .hero img.app-icon { width: 72px; height: 72px; border-radius: 17px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shot figcaption { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 18px 14px 42px; }
  header.site { align-items: flex-start; flex-direction: column; }
  .hero { gap: 16px; }
  .hero img.app-icon { width: 60px; height: 60px; border-radius: 14px; }
  .lead { font-size: 15px; }
  .shots, .shots.two { grid-template-columns: 1fr; }
  main.article { padding: 24px 20px; }
}
