/* 只读产品集 — 统一样式 */
:root {
  --accent: #2d5a9e;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(45, 90, 158, 0.18);
  --text: #1a2b3c;
  --text-muted: #6b7c8a;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #e2eaf0;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26, 43, 60, 0.08);
  --shadow-lg: 0 24px 64px rgba(26, 43, 60, 0.12);
  --max: 1120px;
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container,
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span.accent,
.brand > span:last-child:not(:first-child) {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(45, 90, 158, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(45, 90, 158, 0.36);
}

.btn-outline {
  background: var(--surface);
  color: var(--text) !important;
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero (product pages) */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45, 90, 158, 0.06), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge,
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 .accent,
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.window-frame,
.phone-mock,
.phone-frame {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.phone-mock {
  max-width: 280px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 28px;
}

.phone-mock img,
.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}

.phone-frame {
  max-width: 280px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(145deg, #1a2b3c 0%, #2d5a9e 100%);
}

.phone-frame img {
  border-radius: 24px;
}

.cover-frame img,
.hero-visual .cover,
.hero-visual img.cover {
  width: auto;
  max-width: 280px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  object-fit: contain;
}

.window-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-head,
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-head h2,
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-head p,
.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.025rem;
}

.section-alt {
  background: var(--surface);
}

/* Features */
.feature-grid,
.features-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover,
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--accent-glow);
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature-card h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p,
.card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Screenshots */
.screenshot-grid,
.screenshots-grid,
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-item,
.screenshot-card,
.screenshot-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.screenshot-item:hover,
.screenshot-card:hover,
.screenshot-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-item > img,
.screenshot-gallery > figure > img,
.screenshot-frame > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.screenshot-item .phone-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.screenshot-item figcaption,
.screenshot-card figcaption,
.screenshot-gallery figcaption {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.screenshot-card figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}

.screenshots-scroll .screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 240px;
}

/* Highlights / stats */
.highlight-grid,
.highlights,
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-item,
.highlight,
.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.highlight-item strong,
.highlight strong,
.stat-card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.highlight-item span,
.highlight span,
.stat-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.highlights {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  margin: 0 0 16px;
  font-size: 1.75rem;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Privacy box */
.privacy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: linear-gradient(135deg, #e8f0fb 0%, var(--surface) 60%);
  border: 1px solid #c7d9f0;
  border-radius: calc(var(--radius) + 4px);
}

.privacy-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.privacy-content p {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 560px;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

.privacy-list li::before {
  content: "● ";
  color: var(--accent);
}

/* CTA / Download */
.cta,
.download {
  padding-bottom: 96px;
}

.cta-box,
.download .container {
  text-align: center;
  padding: 64px 32px;
  background: var(--text);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-lg);
}

.cta-logo {
  margin: 0 auto 20px;
  border-radius: 14px;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.cta-box h2,
.download h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.cta-box p,
.download p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: #000;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s;
}

.play-badge:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

.play-badge svg {
  width: 28px;
  height: 28px;
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.play-badge-text small {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Download cards (MyFish) */
.download-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.play-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.play-card .app-icon {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 20px;
  object-fit: contain;
}

.play-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.play-card .pkg {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.play-card .desc {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Super Blocks extras */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.item-chip {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.item-chip strong {
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.qr-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
}

.qr-box img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.qr-box span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.install-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.install-steps li {
  counter-increment: step;
  padding: 20px 20px 20px 56px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.install-steps code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Footer */
.site-footer,
footer.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-brand span {
  font-weight: 600;
}

.footer-copy {
  width: 100%;
  margin: 4px 0 0 38px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent);
}

footer.simple-footer {
  text-align: center;
  padding: 48px 0 64px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.simple-footer a {
  font-weight: 600;
}

/* Privacy doc page */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.page-header p,
.page-header .meta {
  color: var(--text-muted);
  margin: 0;
}

.privacy-doc {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.75;
}

.privacy-doc h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.privacy-doc h2:first-child {
  margin-top: 0;
}

.privacy-doc p,
.privacy-doc li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.privacy-doc ul {
  padding-left: 1.25rem;
}

.privacy-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0;
}

.privacy-doc th,
.privacy-doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.privacy-doc th {
  background: var(--bg);
}

.privacy-doc .note {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.92rem;
  margin: 16px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--accent);
}

.back-link:hover {
  text-decoration: underline;
}

/* Hub page (products/index.html) */
.hub-header .nav {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 24px;
}

.hub-hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hub-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hub-hero p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

a.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit !important;
}

a.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit !important;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.product-head img,
.product-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg);
}

.product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.product-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.product-head .tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 8px;
}

.product-card .btn {
  background: var(--accent);
  color: #fff !important;
}

.product-card .btn:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Pricing / Pro (mytools) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card-pro {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-lg);
}

.pricing-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing-card-head h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.pricing-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.95rem;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.btn-block {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.tag-pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.about-grid .highlight-grid {
  grid-template-columns: 1fr;
}

.cta-box .qr-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.cta-box .qr-box span {
  color: rgba(255, 255, 255, 0.72);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta,
  .hero-badges {
    justify-content: center;
  }

  .feature-grid,
  .features-grid,
  .cards,
  .screenshot-grid,
  .screenshots-grid,
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid,
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .privacy-list {
    justify-content: center;
  }

  .play-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container,
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 10px 0;
  }

  .site-header .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .feature-grid,
  .features-grid,
  .cards,
  .screenshot-grid,
  .screenshots-grid,
  .screenshot-gallery,
  .highlight-grid,
  .highlights {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    margin-left: 0;
  }

  .footer-links {
    justify-content: center;
  }

  .hero {
    padding-top: 48px;
  }
}
