/* Polar App — Shared Stylesheet */

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #4caf50;
  --accent-hover: #66bb6a;
  --link: #64b5f6;
  --link-hover: #90caf9;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Header / Nav */
header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-muted);
}

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

/* Main content */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero (landing page) */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.bear-icon {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero p.description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 16px auto 40px;
}

/* App store badges */
.badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s, background-color 0.2s;
  text-decoration: none;
}

.badge:hover {
  border-color: var(--accent);
  background-color: #222;
  text-decoration: none;
  color: var(--text);
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-text .store-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-text .store-name {
  font-size: 1rem;
  font-weight: 600;
}

.badge-coming-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.feature {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

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

.feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Prose (privacy policy, support) */
.prose h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: block;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.prose p strong, .prose li strong {
  color: var(--text);
}

.prose ul, .prose ol {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
}

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

.prose a {
  color: var(--link);
}

/* FAQ */
.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact card */
.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.contact-card a {
  font-weight: 600;
  font-size: 1.05rem;
}

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

footer a {
  color: var(--text-muted);
  margin: 0 8px;
}

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

/* Responsive */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p.tagline {
    font-size: 1.1rem;
  }

  nav {
    gap: 16px;
  }
}
