/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --primary:         #1B5E7B;
  --primary-dark:    #134B63;
  --accent:          #F4A726;
  --accent-dark:     #D4911E;
  --bg:              #FAFBFC;
  --surface:         #FFFFFF;
  --text:            #1A1A1A;
  --text-secondary:  #5F6368;
  --divider:         #E0E0E0;
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --radius-card:     16px;
  --radius-sm:       8px;
  --max-width:       860px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--primary-dark);
  line-height: 0; /* remove gap below inline img */
}
.hero-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

/* ── PHILOSOPHY ──────────────────────────────────────────── */
.philosophy {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--divider);
}
.philosophy h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.philosophy p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 680px;
}
.philosophy p + p {
  margin-top: 14px;
}
.donate-link {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.donate-link:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ── CATALOG ──────────────────────────────────────────────── */
.catalog {
  padding: 64px 0 80px;
}
.catalog h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 36px;
}

/* ── APP CARD ─────────────────────────────────────────────── */
.app-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.app-list .app-card + .app-card {
  margin-top: 40px;
}

/* Card header: icon + title + tagline */
.app-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 0;
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.app-title-group {
  flex: 1;
  min-width: 0;
}
.app-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.app-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* Screenshot strip */
.app-screenshots {
  display: flex;
  gap: 12px;
  padding: 24px 28px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--divider) transparent;
  -webkit-overflow-scrolling: touch;
}
.app-screenshots::-webkit-scrollbar { height: 4px; }
.app-screenshots::-webkit-scrollbar-track { background: transparent; }
.app-screenshots::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 4px; }

.screenshot-link {
  flex-shrink: 0;
  display: block;
  width: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s;
}
.screenshot-link:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.screenshot-link img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  display: block;
}

/* Description */
.app-description {
  padding: 0 28px 24px;
  border-top: 1px solid var(--divider);
  margin-top: 0;
  padding-top: 20px;
}
.app-description p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.app-description p + p {
  margin-top: 12px;
}

/* Download badges */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 28px 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s, opacity 0.15s;
}
.badge:hover { transform: translateY(-1px); opacity: 0.88; }
.badge-android {
  background: var(--primary);
  color: #FFFFFF;
}
.badge-ios {
  background: #1A1A1A;
  color: #FFFFFF;
}
.badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.badge-coming-soon {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  font-weight: 500;
  cursor: default;
  pointer-events: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.80);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.footer-secondary { margin-top: 8px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .app-card-header { padding: 20px 20px 0; gap: 14px; }
  .app-icon { width: 60px; height: 60px; }
  .app-name { font-size: 1.15rem; }
  .app-screenshots { padding: 18px 20px; gap: 10px; }
  .screenshot-link { width: 90px; }
  .app-description { padding: 16px 20px 20px; }
  .app-badges { padding: 0 20px 20px; }
  .philosophy, .catalog { padding-top: 44px; padding-bottom: 44px; }
}
