/* tmcx-apps shared styles */
:root {
  --color-bg: #0a0a0a;
  --color-surface: #161616;
  --color-border: #2a2a2a;
  --color-text: #e8e8e8;
  --color-text-secondary: #888;
  --color-accent: #007AFF;
  --color-accent-hover: #0a84ff;
  --radius: 12px;
  --max-width: 720px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Header */
.site-header {
  text-align: center;
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}
.site-header h1 {
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-header p {
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-size: 0.95em;
}

/* App card (for index page) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s, transform 0.2s;
}
.app-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.app-card .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.app-card h2 {
  font-size: 1.15em;
  font-weight: 600;
  margin-bottom: 6px;
}
.app-card p {
  color: var(--color-text-secondary);
  font-size: 0.9em;
}

/* App detail page */
.app-hero {
  text-align: center;
  padding: 48px 24px 32px;
}
.app-hero .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin-bottom: 20px;
}
.app-hero h1 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app-hero .subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05em;
  margin-top: 8px;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.badge-row a img {
  height: 44px;
}

.features {
  margin-top: 48px;
}
.features h2 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 16px;
}
.features ul {
  list-style: none;
  padding: 0;
}
.features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.95em;
}
.features li::before {
  content: "→ ";
  color: var(--color-accent);
  font-weight: 600;
}

/* Links / nav */
.links {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9em;
}
.links a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  color: var(--color-text-secondary);
  font-size: 0.85em;
}
.site-footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-text);
}

/* Privacy policy / support pages */
.prose h2 {
  font-size: 1.15em;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose p, .prose li {
  color: var(--color-text-secondary);
  font-size: 0.95em;
  margin-bottom: 12px;
}
.prose ul {
  padding-left: 20px;
}
.prose strong {
  color: var(--color-text);
}
.prose a {
  color: var(--color-accent);
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .site-header h1 { font-size: 1.4em; }
  .app-hero h1 { font-size: 1.6em; }
  .container { padding: 24px 16px 60px; }
}
