/* ImagiFable — static site styles using brand tokens */

:root {
  --coral: #FF6B6B;
  --coral-light: #FF8A8A;
  --sage: #8FBC8F;
  --gold: #FFD700;
  --lavender: #B8A9C9;
  --cream-canvas: #FFF8F0;
  --text-primary: #1C1C1E;
  --text-secondary: #8E8E93;
  --surface: #FFFFFF;
  --border: #E5E5EA;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--cream-canvas);
  line-height: 1.6;
}

/* ——— Header ——— */

header {
  padding: 20px 24px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--coral);
}

/* ——— Hero ——— */

.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 19px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sage);
  background: rgba(143, 188, 143, 0.12);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ——— Features ——— */

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--coral);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ——— CTA Section ——— */

.cta-section {
  text-align: center;
  padding: 48px 24px 64px;
  max-width: 640px;
  margin: 0 auto;
}

.cta-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 32px;
}

.cta-heading {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-text {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  background: var(--text-primary);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  letter-spacing: 0.2px;
}

/* ——— Footer ——— */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 16px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 0;
}

a {
  color: var(--coral);
}

/* ——— Content pages (privacy, terms, support) ——— */

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

.container header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.container footer {
  border-top: none;
  margin-top: 48px;
  padding: 0;
}

h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}

p, li {
  font-size: 16px;
  margin-bottom: 12px;
}

ul {
  padding-left: 24px;
}

.effective-date {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ——— Responsive ——— */

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .cta-heading {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .container { padding: 24px 16px; }
  .content-card { padding: 24px 20px; }
  h1 { font-size: 26px; }

  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
