:root {
  --bg: #fafaf8;
  --surface: #fff;
  --surface-muted: #f4f4f2;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999;
  --border: #e8e8e5;
  --accent: #2a7d3f;
  --content: min(920px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content);
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: inline-flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  width: var(--content);
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: var(--content);
  margin: 0 auto;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.app-card-muted {
  background: var(--surface-muted);
  border-color: transparent;
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.platform-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-card h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.app-card > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.store-slot {
  margin-top: auto;
  padding-top: 24px;
}

.store-badge {
  height: 40px;
  width: auto;
}

.store-badge-disabled {
  opacity: 0.3;
  filter: grayscale(1);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: var(--content);
  margin: 48px auto 0;
}

.screenshots img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s;
  cursor: zoom-in;
}

.screenshots img:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

.lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  border-radius: 10px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox-close:hover {
  opacity: 1;
}

.privacy {
  width: var(--content);
  max-width: 580px;
  margin: 72px auto 0;
  padding-bottom: 72px;
  text-align: center;
}

.privacy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.privacy p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer {
  width: var(--content);
  margin: 0 auto;
  padding: 20px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.footer-legal {
  margin-top: 6px !important;
}

@media (max-width: 720px) {
  :root {
    --content: min(100% - 32px, 920px);
  }

  .hero {
    padding: 48px 0 40px;
  }

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

  .screenshots {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .privacy {
    margin-top: 48px;
    padding-bottom: 48px;
  }
}

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