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

:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --card-bg: #ffffff;
  --marble: #6366f1;
  --symposium: #0891b2;
  --galley: #16a34a;
  --quill: #d97706;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 48px 0 24px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1.1rem;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--fg);
}

/* App Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.app-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-card .tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.app-card .description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #374151;
}

.app-card .features {
  list-style: none;
  margin-bottom: 24px;
}

.app-card .features li {
  font-size: 0.9rem;
  padding: 4px 0;
  color: #4b5563;
}

.app-card .features li::before {
  content: "→ ";
  color: var(--muted);
}

.app-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 12px;
}

.badge-marble { background: var(--marble); }
.badge-symposium { background: var(--symposium); }
.badge-galley { background: var(--galley); }
.badge-quill { background: var(--quill); }

.app-card .price {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

/* Section titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

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

footer a:hover {
  text-decoration: underline;
}

/* Privacy Policy page */
.policy {
  max-width: 720px;
  margin: 0 auto 64px;
}

.policy h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.policy .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.policy h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.policy p {
  margin-bottom: 16px;
  color: #374151;
}

.policy ul {
  margin: 0 0 16px 24px;
  color: #374151;
}

.policy li {
  margin-bottom: 6px;
}

.policy strong {
  color: var(--fg);
}

/* App landing section on privacy page */
.app-data {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.app-data h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-data ul {
  margin: 0 0 0 20px;
}

.app-data li {
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  header { padding: 32px 0 16px; }
  header h1 { font-size: 1.5rem; }
  nav { gap: 20px; flex-wrap: wrap; }
  .app-card { padding: 24px; }
}
