:root {
  --fg: #1c1c1e;
  --fg-soft: #3a3a3c;
  --muted: #6b6b70;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --bg: #f7f7f8;
  --card: #ffffff;
  --border: #e6e6ea;
  --border-strong: #d1d1d6;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 920px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Header */
.site-header {
  background: #ffffffcc;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-title a { color: var(--fg); }
.site-title a:hover { text-decoration: none; color: var(--accent); }
.site-nav a {
  margin-left: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--fg); text-decoration: none; }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Typography */
h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}
p  { margin: 12px 0; color: var(--fg-soft); }
ul { padding-left: 22px; }
li { margin: 6px 0; color: var(--fg-soft); }

.intro {
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 4px;
  max-width: 640px;
}

/* App cards on home page */
.app-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.app-list > li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.app-list > li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.app-card-body { flex: 1; min-width: 0; }
.app-list a.app-name {
  font-weight: 600;
  font-size: 19px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.app-list a.app-name:hover { color: var(--accent); text-decoration: none; }
.app-list .desc { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.app-list .status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.status-available { background: #e7f5ec; color: #137333; }
.status-soon { background: #fef3c7; color: #92400e; }

/* App icon */
.app-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: #fff;
  display: block;
}
.app-icon-lg {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

/* App detail two-column */
.app-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  margin-top: 28px;
  align-items: start;
}
.app-detail .shot img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.app-detail .shot .placeholder {
  width: 250px;
  height: 444px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-align: center;
  padding: 16px;
  font-size: 15px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.app-detail .info p:first-child { margin-top: 0; }
.app-detail .info ul li { margin: 8px 0; }

@media (max-width: 720px) {
  main { padding: 32px 20px 64px; }
  h1 { font-size: 28px; }
  .app-detail { grid-template-columns: 1fr; gap: 24px; }
  .app-detail .shot img,
  .app-detail .shot .placeholder { margin: 0 auto; }
}

/* App Store badge */
.appstore-badge {
  display: inline-block;
  margin: 14px 0 4px;
  transition: opacity 0.15s ease;
}
.appstore-badge:hover { opacity: 0.85; text-decoration: none; }
.appstore-badge img {
  height: 48px;
  width: auto;
  display: block;
}
.coming-soon-pill {
  display: inline-block;
  margin: 14px 0 4px;
  padding: 12px 18px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Privacy link block */
.privacy-link {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.privacy-link a { color: var(--muted); }
.privacy-link a:hover { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #fff;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
