:root {
  color-scheme: light only;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.06);
  --soft: #f5f5f7;
  --fill: #f2f2f7;
  --blue: #0071e3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

::selection {
  background: rgba(0, 113, 227, 0.16);
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(52px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
}

.hero {
  padding: 56px 0 80px;
  text-align: center;
  background: radial-gradient(
    120% 70% at 50% 0%,
    rgba(0, 113, 227, 0.05),
    rgba(255, 255, 255, 0) 58%
  );
}

.hero h1 {
  font-size: clamp(56px, 16vw, 92px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.tagline {
  margin-top: 16px;
  font-size: clamp(20px, 5.4vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.subcopy {
  max-width: 34rem;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-actions .btn {
  min-width: 124px;
}

.btn-primary {
  background: #1d1d1f;
  color: #fff;
}

.btn-secondary {
  background: var(--fill);
  color: var(--text);
}

.btn:active {
  transform: scale(0.98);
}

.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.section-lead {
  max-width: 28em;
  margin: -12px auto 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.band {
  background: var(--soft);
}

.feature-grid,
.download-grid,
.app-grid {
  display: grid;
  gap: 12px;
}

.feature-grid,
.download-grid {
  grid-template-columns: 1fr;
}

.app-grid {
  grid-template-columns: 1fr 1fr;
}

.card {
  min-width: 0;
  padding: 28px 24px 30px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  color: var(--text);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.card p,
.method-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.method {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.method-copy {
  flex: 1 1 auto;
}

.method-action {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}

.method-action .btn {
  width: 100%;
}

.code {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
  user-select: all;
}

.linkish {
  margin-left: 2px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
  vertical-align: baseline;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-grid li {
  display: grid;
  min-height: 88px;
  place-items: center;
  border-radius: 20px;
  background: var(--soft);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fine-print {
  max-width: 36em;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.legal-wrap,
.missing-wrap {
  width: min(680px, calc(100% - 40px));
  margin-inline: auto;
}

.legal {
  padding: 36px 0 96px;
}

.back {
  margin-bottom: 28px;
  font-size: 15px;
}

.back a,
.legal a {
  color: var(--blue);
  text-decoration: none;
}

.legal h1,
.missing h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
}

.legal p,
.legal li {
  color: #3a3a3c;
  font-size: 17px;
  line-height: 1.75;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 1.15em;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

.legal p + p {
  margin-top: 12px;
}

.legal a {
  overflow-wrap: anywhere;
}

.missing {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
  padding: 64px 0;
  text-align: center;
}

.missing .kicker {
  margin-bottom: 8px;
}

.missing p {
  margin: 12px 0 28px;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover,
  .header-nav a:hover,
  .site-footer a:hover,
  .back a:hover {
    opacity: 0.62;
  }

  .btn-primary:hover {
    background: #000;
  }

  .btn-secondary:hover {
    background: #e6e6eb;
  }

  .linkish:hover,
  .legal a:hover {
    text-decoration: underline;
  }

  .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  }
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (min-width: 800px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .app-grid li {
    min-height: 112px;
    font-size: 22px;
  }
}

@media (min-width: 734px) {
  .wrap {
    width: min(1080px, calc(100% - 80px));
  }

  .hero {
    padding: 104px 0 128px;
  }

  .section {
    padding: 112px 0;
  }

  .hero-actions {
    margin-top: 36px;
  }

  .hero-actions .btn {
    min-width: 148px;
    padding: 0 22px;
  }
}

@media (min-width: 960px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 359px) {
  .wrap,
  .legal-wrap,
  .missing-wrap {
    width: calc(100% - 28px);
  }

  .header-nav a {
    padding: 0 8px;
  }

  .hero h1 {
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
