/* ========================================
   Bible Pause – Design System
   Color palette from app Constants/Colors.ts
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Tinos:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --orange: #FF7D1F;
  --bg-orange: #FEB266;
  --light-yellow: #FFF5BC;
  --pale-orange: #FFDF94;
  --white: #FFFFFF;
  --dark-brown: #3E2723;
  --deep-brown: #2B1100;
  --beige: #DDC5A2;
  --dark-beige: #A08C70;
  --grey-light: #B9B9B9;
  --grey-dark: #6C6C6C;
  --dark-grey: #333333;
  --card-beige: #FFE7C5;
  --card-beige-t: rgba(255, 248, 225, 0.6);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Tinos', 'Georgia', serif;

  --max-w: 960px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(62, 39, 35, 0.10);
  --shadow-lg: 0 8px 40px rgba(62, 39, 35, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--deep-brown);
  background: var(--white);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark-brown); }

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

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(62,39,35,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-brown);
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-beige);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-brown);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(62,39,35,0.08);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(145deg, var(--bg-orange), var(--pale-orange), var(--light-yellow));
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,125,31,0.15), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,223,148,0.25), transparent 70%);
  border-radius: 50%;
}
.hero-content {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 28px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--dark-brown);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--deep-brown);
  max-width: 480px;
  margin: 0 auto 36px;
  opacity: 0.85;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--bg-orange));
  color: var(--white);
}
.btn-primary:hover { color: var(--white); }

.btn-outline {
  background: var(--white);
  color: var(--dark-brown);
  border: 2px solid var(--beige);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn svg {
  width: 22px;
  height: 22px;
}

/* ── App Store Badge ── */
.appstore-badge {
  height: 54px;
  transition: transform .2s;
}
.appstore-badge:hover {
  transform: translateY(-2px);
}

/* ── Features Section ── */
.features {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.features h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark-brown);
  text-align: center;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.feature-card {
  background: linear-gradient(145deg, var(--card-beige), var(--card-beige-t));
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--light-yellow));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--dark-brown);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--grey-dark);
  line-height: 1.6;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(145deg, var(--pale-orange), var(--light-yellow));
  padding: 60px 24px;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark-brown);
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--deep-brown);
  opacity: 0.8;
  margin-bottom: 28px;
}

/* ── Legal / Content Pages ── */
.page-header {
  background: linear-gradient(145deg, var(--bg-orange), var(--pale-orange));
  padding: 60px 24px 40px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--dark-brown);
}
.page-header p {
  color: var(--deep-brown);
  opacity: 0.7;
  margin-top: 8px;
}
.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark-brown);
  margin: 36px 0 12px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li {
  color: var(--dark-grey);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.page-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ── Contact / Support Cards ── */
.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--card-beige), var(--card-beige-t));
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .contact-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--orange), var(--light-yellow));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark-brown);
  margin-bottom: 12px;
}
.contact-card p {
  color: var(--grey-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--orange);
  padding: 12px 28px;
  background: var(--white);
  border-radius: 50px;
  border: 2px solid var(--beige);
  transition: border-color .2s, transform .2s;
}
.contact-email:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  color: var(--orange);
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  background: var(--deep-brown);
  color: rgba(255,255,255,0.6);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.7s ease-out forwards;
}
.fade-in-delay-1 { animation-delay: 0.15s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.45s; opacity: 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 60px 20px 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-icon { width: 88px; height: 88px; border-radius: 22px; }
  .features { padding: 48px 20px; }
  .page-header { padding: 48px 20px 32px; }
  .page-header h1 { font-size: 1.8rem; }
  .contact-card { padding: 32px 24px; }
}
