:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1a1f36;
  --muted: #5c6578;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e4e8f0;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(26, 31, 54, 0.08);
  --max-width: 960px;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.page-wrap,
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.app-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.app-card h2,
.panel h2 {
  margin-top: 0;
}

.app-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #eef2ff;
}

.app-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .app-layout {
    grid-template-columns: 280px 1fr;
  }
}

.screenshot {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.legal-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-page h1 {
  margin-bottom: 0.25rem;
}

.legal-page .updated {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}
