/* Shared styles for per-app landing pages — The Wandering Dev */

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

:root {
  --bg:           #0f0f13;
  --bg-card:      #1a1a24;
  --bg-card-2:    #24243a;
  --border:       #2a2a44;
  --border-light: #1e1e30;
  --text:         #e8e8f0;
  --muted:        #8888aa;
  --accent:       #7766ff;
  --green:        #44dd88;
  --amber:        #ffbb33;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #aa88ff; }

img { display: block; max-width: 100%; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo em { font-style: normal; color: var(--text); }
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ===== APP HERO ===== */
.app-hero {
  padding: 72px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(119,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.app-icon-wrap {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  overflow: hidden;
  margin: 0 auto 22px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
  position: relative;
}

.app-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }

.app-icon-wrap.icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a3a6b 0%, #0d2044 100%);
}

.app-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.app-tagline {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 22px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.tag-ios      { background: rgba(119,102,255,0.12); color: #aa88ff; border: 1px solid rgba(119,102,255,0.25); }
.tag-android  { background: rgba(68,221,136,0.12); color: #44dd88; border: 1px solid rgba(68,221,136,0.25); }
.tag-web      { background: rgba(119,102,255,0.12); color: #aa88ff; border: 1px solid rgba(119,102,255,0.25); }
.tag-free     { background: rgba(68,221,136,0.12); color: #44dd88; border: 1px solid rgba(68,221,136,0.25); }
.tag-price    { background: rgba(255,187,51,0.12); color: #ffbb33; border: 1px solid rgba(255,187,51,0.25); }

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.store-badge:hover { border-color: #7766ff; color: #aa88ff; }
.store-badge svg { flex-shrink: 0; }

/* ===== SECTIONS ===== */
section { padding: 56px 24px; }

.section-inner { max-width: 860px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 36px;
}

.divider { height: 1px; background: var(--border-light); max-width: 860px; margin: 0 auto; }

/* ===== PROSE ===== */
.prose p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 28px 0 10px; }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.feature strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.feature span { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* ===== DETAIL LIST (textbooks etc.) ===== */
.detail-list { list-style: none; }

.detail-list li {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.detail-list li:last-child { border-bottom: none; }

.detail-list li::before {
  content: '→';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-size: 0.8rem;
}

.detail-list strong { color: var(--text); font-weight: 600; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}

details summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

details[open] summary::after { content: '–'; }

details .faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== NOTE BOX ===== */
.note-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.note-box strong { color: var(--text); }

/* ===== BREADCRUMB ===== */
.crumb {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

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

/* ===== FOOTER ===== */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo { font-size: 1rem; font-weight: 700; color: var(--muted); }
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 0.8rem; color: #4a5568; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .app-hero { padding: 52px 20px 40px; }
  section { padding: 44px 20px; }
}
