:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --ink: #1a2114;
  --muted: #3e4a34;
  --lime: #a4d136;
  --lime-press: #8eaf2c;
  --line: #d9dccf;
  --soft: #eef3df;
  --header: 4.5rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --radius: 1rem;
  --content: 68rem;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: calc(var(--header) + 0.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: var(--space-2);
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 20;
}

.skip:focus {
  transform: none;
  top: var(--space-2);
}

.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 92%, white);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.header-nav {
  display: flex;
  gap: 0.25rem;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.85rem;
  text-decoration: none;
  border-radius: 999px;
}

.header-nav a:hover {
  background: var(--soft);
}

.hero {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-5);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-note,
.fine,
.ios-status,
.site-footer p {
  color: var(--muted);
}

.hero-note {
  margin: var(--space-3) 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--lime-press);
}

.button-secondary {
  background: transparent;
  border-color: var(--ink);
}

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

.preview {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.preview figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.bubble {
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
}

.bubble p {
  margin: 0.15rem 0 0;
}

.bubble-in {
  background: var(--soft);
}

.bubble-out {
  background: #f3f1ea;
  justify-self: end;
  width: min(100%, 18rem);
}

.who {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
}

.product,
.get {
  padding-bottom: var(--space-6);
}

h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.cards,
.get-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.cards li,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--soft);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.cards p,
.panel p {
  margin: 0;
  color: var(--muted);
}

.panel ol {
  margin: var(--space-3) 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.panel ol strong {
  color: var(--ink);
  font-weight: 700;
}

.panel .button {
  margin-top: var(--space-3);
}

.fine,
.pending {
  margin-top: var(--space-2);
  font-size: 0.95rem;
}

.ios-status {
  margin: var(--space-3) 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-4);
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid #2f4a0c;
  outline-offset: 3px;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .cards,
  .get-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
