:root {
  color-scheme: light;
  --ink: #203c34;
  --muted: #67776f;
  --green: #008561;
  --paper: #f8faf9;
  --line: #e4ebe7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 72px 24px 64px;
}

.app { width: min(100%, 460px); }

.logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgb(0 133 97 / 10%);
}

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-indent: .12em;
}

.lead {
  margin: 14px 0 0;
  color: #52675d;
  font-size: 18px;
  letter-spacing: .04em;
}

.features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 18px 0 34px;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 13px;
}

.features li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 13px;
  border-radius: 50%;
  background: #a5b7ad;
  vertical-align: middle;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.download svg { width: 23px; height: 28px; flex-shrink: 0; }
.download span { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.platform { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.open-help { margin: 30px auto 0; max-width: 320px; color: var(--muted); font-size: 12px; }
.open-help summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
}
.open-help summary::-webkit-details-marker { display: none; }
.open-help svg { width: 12px; height: 12px; }
.open-help[open] svg { transform: rotate(180deg); }
.open-help p { margin: 8px 0 0; text-wrap: pretty; }

footer {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer a { color: inherit; text-decoration: none; }
.company { display: inline-block; margin-bottom: 8px; }
.legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; }
.legal a { display: inline-flex; align-items: center; gap: 4px; }
.legal img { width: 12px; height: 12px; object-fit: contain; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; border-radius: 6px; }
.apps-link { display: block; width: fit-content; margin: 0 auto 10px; }

.catalog { width: min(100%, 620px); }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; letter-spacing: .14em; }
.catalog h1 { font-size: 32px; letter-spacing: .04em; text-indent: .04em; }
.catalog .lead { margin-top: 12px; font-size: 15px; }
.app-list { display: grid; gap: 16px; margin-top: 36px; }
.app-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  text-decoration: none;
  transition: border-color .2s ease;
}
.app-card .logo { width: 64px; height: 64px; margin: 0; border-radius: 16px; box-shadow: none; }
.app-card h2 { margin: 0; font-size: 20px; font-weight: 600; }
.app-card p { margin: 6px 0; color: var(--muted); font-size: 13px; }
.app-platform { color: var(--muted); font-size: 11px; }
.card-arrow { align-self: start; color: var(--green); font-size: 20px; }

@media (hover: hover) {
  .download:hover { background: #2b5144; transform: translateY(-2px); }
  footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
  .open-help summary:hover { color: var(--green); }
  .app-card:hover { border-color: var(--green); }
}

@media (max-width: 480px) {
  main { padding: 56px 24px 48px; }
  h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .features { gap: 10px; font-size: 12px; }
  .features li + li::before { margin-right: 10px; }
  footer { padding-top: 18px; }
  .app-card { grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 14px; padding: 20px 16px; }
  .app-card .logo { width: 52px; height: 52px; border-radius: 13px; }
  .app-card h2 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .download, .app-card { transition: none; }
  .download:hover { transform: none; }
}
