:root {
  --accent: #2563eb;
  --text: #111;
  --bg: #fff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

main { flex: 1; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ── Container ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Hero (index) ── */
.hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── App Grid ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 1.25rem;
  padding: 0 1.5rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
}

.app-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.app-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
}

.app-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ── Store Badges ── */
.badge-play,
.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #000;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-play:hover,
.badge-appstore:hover {
  background: #1a1a1a;
  opacity: 1;
}

.btn-learn-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

/* ── App Detail Page ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); opacity: 1; }
.breadcrumb .sep { color: var(--border); }

.app-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.app-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
}

.app-detail-meta { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; }
.app-detail-meta h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.app-detail-meta .category { font-size: 0.85rem; color: var(--muted); }

.app-description {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #333;
}

.features-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.features-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.store-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.coming-soon-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.page-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-links a {
  font-size: 0.875rem;
  color: var(--muted);
}

.page-links a:hover { color: var(--accent); opacity: 1; }

/* ── Legal Pages ── */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.effective-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.legal-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul li {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.2rem;
  color: #333;
}

.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ol li {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
  color: #333;
}

.legal-content a { color: var(--accent); }

/* ── Support ── */
.faq-section { margin-bottom: 2rem; }
.faq-section h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }

.faq-item { margin-bottom: 1.25rem; }
.faq-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.faq-item p { font-size: 0.9rem; color: #444; line-height: 1.65; }

.contact-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.contact-box h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-box p { font-size: 0.9rem; color: #444; line-height: 1.65; }

/* ── Delete Account ── */
.steps-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}

.steps-list li::before {
  content: counter(steps);
  background: var(--accent);
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #1e40af;
  line-height: 1.6;
}

/* ── 404 ── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
  flex: 1;
}

.error-page .error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.error-page p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.btn-home {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-home:hover { opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .app-grid { grid-template-columns: 1fr; padding: 0 1rem 2rem; }
  .container { padding: 1.5rem 1rem; }
  .app-detail-header { flex-direction: column; }
  .app-detail-icon { width: 64px; height: 64px; }
  .page-links { gap: 0.75rem; }
}
