/* Base Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@600;700&family=Manrope:wght@400;600&display=swap');

body {
  font-family: 'Manrope', sans-serif;
  color: #517283;
  background-color: #fafafa;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.25rem);
  transition: color 0.3s ease, background-color 0.3s ease;
}

h1, h2 {
  font-family: 'Crimson Pro', serif;
  margin-top: 1.2em;
  line-height: 1.4;
  transition: color 0.3s ease;
  color: #BF644D;
}

h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 2.75rem);
}

h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.25rem);
}

h3 {
  color: #BF644D;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: 0.005em;
  font-size: clamp(1.25rem, 2.5vw + 1rem, 1.35rem);
  margin-bottom: 0;
  line-height: 1.6em;
  transition: color 0.3s ease;
}

a {
  color: #BF644D;
}

.hero {
  text-align: center;
  padding: 1rem 1rem 4rem;
  background-color: #E5DCD5;
  transition: background-color 0.3s ease;
}

.hero > h1 {
  margin-top: 0;
  margin-bottom: -0.8rem;
}

.features, .ethos, .cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

.features ul {
  list-style: none;
  padding: 0;
}

.tagline {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 1.65rem);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #BF644D;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.005em;
  font-size: clamp(1.25rem, 2vw + 1rem, 1.35rem);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Graphic */
.hero-graphic {
  background-color: #E5DCD5;
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 27rem;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.wave-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.wave {
  position: absolute;
  width: 100vw;
  opacity: 1;
}

.wave-bottom {
  bottom: 0;
  opacity: 1.0;
  right: 0;
  left: auto;
  max-height: 26rem;
}

.wave-mid-1 {
  top: 10vh;
  right: 0;
  left: auto;
  max-width: 45em;
  width: 110vw;
  max-height: 16rem;
}

.wave-mid-2 {
  bottom: 0;
  right: 0;
  left: auto;
}

.wave-mid-3 {
  bottom: 0;
  left: 0;
  max-width: 57rem;
  min-width: 40.5rem;
  opacity: 0.7;
  max-height: 9rem;
}

.wave-top {
  position: absolute;
  width: 100vw;
  left: 0;
  opacity: 1;
  height: auto;
  max-height: 7rem;
}

.bell-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12.5rem;
  height: auto;
  transform: translate(-50%, -50%);
}
/* Feature Icons */
.features li[data-icon] {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.features li[data-icon]::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.125rem; /* Slight adjustment to align with text */
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.features li[data-icon="meditation"]::before {
  background-image: url('/assets/images/meditationIconSmall.svg');
}

.features li[data-icon="bell"]::before {
  background-image: url('/assets/images/bellIconSmall.svg');
}

.features li[data-icon="sound"]::before {
  background-image: url('/assets/images/startSoundIconSmall.svg');
}

.features li[data-icon="ambience"]::before {
  background-image: url('/assets/images/ambienceIconSmall.svg');
}

.features li[data-icon="health"]::before {
  background-image: url('/assets/images/healthIconSmall.svg');
}

.features li[data-icon="stats"]::before {
  background-image: url('/assets/images/bestStreakIconSmall.svg');
}

.features li[data-icon="shortcuts"]::before {
  background-image: url('/assets/images/shortcutsIconSmall.svg');
}

/* Dark mode icon variants (if needed) */
@media (prefers-color-scheme: dark) {
  .features li[data-icon="meditation"]::before {
    background-image: url('/assets/images/meditationIconSmall-dark.svg');
  }

  .features li[data-icon="bell"]::before {
    background-image: url('/assets/images/bellIconSmall-dark.svg');
  }

  .features li[data-icon="sound"]::before {
    background-image: url('/assets/images/startSoundIconSmall-dark.svg');
  }
  
  .features li[data-icon="ambience"]::before {
    background-image: url('/assets/images/ambienceIconSmall-dark.svg');
  }

  .features li[data-icon="health"]::before {
    background-image: url('/assets/images/healthIconSmall-dark.svg');
  }

  .features li[data-icon="stats"]::before {
    background-image: url('/assets/images/bestStreakIconSmall-dark.svg');
  }

  .features li[data-icon="shortcuts"]::before {
    background-image: url('/assets/images/shortcutsIconSmall-dark.svg');
  }
  body {
    color: #fff;
    background-color: #2a3a3a;
  }

  h1, h2 {
    color: #fff;
  }

  h3 {
    color: #D9B970;
  }
  a {
    color: #D9B970;
  }
  .hero {
    background-color: #517283;
  }

  .hero-graphic {
    background-color: #517283;
  }

  .button {
    background-color: #f2c2aa;
    color: #1a1a1a;
  }

  /* Dark mode image switching */
  .wave-bottom {
    content: url('/assets/images/wave-bottom-dark.png');
  }

  .wave-mid-1 {
    content: url('/assets/images/wave-mid-1-dark.png');
  }

  .wave-mid-2 {
    content: url('/assets/images/wave-mid-2-dark.png');
  }

  .wave-mid-3 {
    content: url('/assets/images/wave-mid-3-dark.png');
  }

  .wave-top {
    content: url('/assets/images/wave-top-dark.png');
  }

  .bell-logo {
    content: url('/assets/images/belllogo-dark.png');
  }
}

/* Navigation Styles */
.main-nav {
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(81, 114, 131, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.main-nav .nav-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
}

.homepage .main-nav .nav-container {
  justify-content: flex-end;
}

.nav-support {
  color: #BF644D;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-support:hover {
  color: #8B4A3A;
}

/* Support Section Styles */

.nav-container li {
  list-style: none;
  display: block;
}

.nav-home {
  color: #BF644D;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-home:hover {
  color: #8B4A3A;
}

.nav-title {
  font-family: 'Crimson Pro', serif;
  color: #BF644D;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.support-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.support-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.page-description {
  font-size: 1.1rem;
  color: #668291;
  margin-top: 0.5rem;
}

.article-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background-color: #fff;
  border: 1px solid rgba(81, 114, 131, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: rgba(191, 100, 77, 0.2);
  box-shadow: 0 4px 20px rgba(191, 100, 77, 0.1);
}

.article-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.article-card h3 a {
  text-decoration: none;
  color: #BF644D;
  transition: color 0.3s ease;
}

.article-card h3 a:hover {
  color: #8B4A3A;
}

.article-card p {
  color: #668291;
  margin-bottom: 1rem;
}

.article-category {
  display: inline-block;
  background-color: rgba(191, 100, 77, 0.1);
  color: #BF644D;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Support Article Styles */
.support-article {
  max-width: 720px;
  margin: 0 auto;
}

.support-article img {
  display: inline-block;
  width: 100%;
  max-width: 20rem;
  margin: 1rem 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.support-article img:hover {
  transform: translateY(-2px);
}

/* iPhone screenshot specific styling */
.support-article img[src*="step-"] {
  max-width: 13rem;
}

/* Image zoom modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  opacity: 0.7;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(81, 114, 131, 0.1);
}

.article-description {
  font-size: 1.1rem;
  color: #668291;
  margin-top: 0.5rem;
}

.article-date {
  display: block;
  color: #888;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.article-content {
  line-height: 1.7;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #BF644D;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background-color: rgba(81, 114, 131, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
}

.article-content pre {
  background-color: rgba(81, 114, 131, 0.05);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid #BF644D;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(81, 114, 131, 0.1);
}

.related-articles h3 {
  color: #BF644D;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 0.5rem;
}

.related-articles a {
  color: #BF644D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-articles a:hover {
  color: #8B4A3A;
}

/* Privacy Policy Styles */
.privacy-hero {
  background-color: #E5DCD5;
  padding: 3rem 1rem 2rem;
}

.hero-icon {
  width: 7rem;
  margin-bottom: 1em;
}

.subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  color: #517283;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.highlight-box {
  background-color: rgba(191, 100, 77, 0.08);
  border: 1px solid rgba(191, 100, 77, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-info {
  background-color: rgba(81, 114, 131, 0.05);
  border: 1px solid rgba(81, 114, 131, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
}

.last-updated {
  text-align: center;
  font-size: 0.875rem;
  color: #888;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(81, 114, 131, 0.1);
}

/* Privacy Policy List Styles */
.content-section ul {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem 0;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Dark Mode Support Styles */
@media (prefers-color-scheme: dark) {
  .main-nav {
    background-color: rgba(42, 58, 58, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .support-nav {
    background-color: #2a3a3a;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .nav-title {
    color: #D9B970;
  }

  .nav-support, .nav-home {
    color: #D9B970;
  }

  .nav-support:hover, .nav-home:hover {
    color: #E8C987;
  }

  .page-description, .article-description {
    color: #B8C5D1;
  }

  .article-card {
    background-color: rgba(81, 114, 131, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .article-card:hover {
    border-color: rgba(217, 185, 112, 0.3);
    box-shadow: 0 4px 20px rgba(217, 185, 112, 0.1);
  }

  .article-card p {
    color: #B8C5D1;
  }

  .article-category {
    background-color: rgba(217, 185, 112, 0.2);
    color: #D9B970;
  }

  .article-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .article-content h2 {
    color: #D9B970;
  }

  .article-content code {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .article-content pre {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #D9B970;
  }

  .related-articles {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .related-articles h3 {
    color: #D9B970;
  }

  .related-articles a {
    color: #D9B970;
  }

  .related-articles a:hover {
    color: #E8C987;
  }

  /* Privacy Policy Dark Mode */
  .privacy-hero {
    background-color: #2a3a3a;
  }

  .highlight-box {
    background-color: rgba(217, 185, 112, 0.1);
    border-color: rgba(217, 185, 112, 0.3);
  }

  .contact-info {
    background-color: rgba(81, 114, 131, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .last-updated {
    color: #B8C5D1;
  }

  /* Support article image styles for dark mode */

  .image-modal {
    background-color: rgba(0, 0, 0, 0.9);
  }

  body {
    color: #B8C5D1;
    background-color: #1a1f1f;
  }

  h1, h2 {
    color: #D9B970;
  }

  h3 {
    color: #D9B970;
  }

  a {
    color: #D9B970;
  }

  .subtitle {
    color: #B8C5D1;
  }
}