:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --divider: #ededf0;
  --text: #111114;
  --text-secondary: #8e8e93;
  --accent: #4f5bd5;
  --accent-soft: rgba(79, 91, 213, 0.1);
  --accent-hover: #3f4ab8;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --max: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 auto 2rem;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.hero-bonus {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-meta {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-height: 1.25em;
}

.hero-meta[hidden] {
  display: none;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lead {
  margin: -1rem auto 2rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section:not(.section-alt) .feature-card {
  background: var(--surface);
  border-color: transparent;
  box-shadow: none;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shots img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  background: var(--surface);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

#screenshots[hidden] {
  display: none;
}

/* Pricing */
.pricing-note {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.pricing-note strong {
  color: var(--text);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  background: var(--bg);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 280px;
}

.price-table th,
.price-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

.price-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

.pricing-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Legal / prose pages */
.page-main {
  padding: 2.5rem 0 4rem;
}

.page-main h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 0.975rem;
  line-height: 1.7;
}

.prose p {
  margin: 0 0 0.875rem;
}

.prose ul {
  margin: 0 0 0.875rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Pay return */
.pay-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 4rem;
}

.pay-card {
  width: min(100%, 400px);
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
}

.pay-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.pay-card .lead {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1rem;
}

.pay-card .hint {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .price-table th,
  .price-table td {
    padding: 0.75rem 1rem;
  }
}
