/* InnerEcho Website Styles */

:root {
  /* App colors from DesignTokens.swift */
  --color-primary: #D9A08F;  /* Rose gold peach */
  --color-text-base: rgb(56, 51, 45);  /* HSL(30, 10%, 20%) - warm dark brown */
  --color-text: rgba(56, 51, 45, 0.9);  /* 90% opacity for primary text */
  --color-text-secondary: rgba(56, 51, 45, 0.6);  /* 60% opacity for secondary text */
  --color-bg: #FFF8F0;  /* Warm peachy cream */
  --color-border: rgba(56, 51, 45, 0.4);  /* 40% opacity for borders */
  --max-width: 850px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
}

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

html {
  height: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  min-height: 100%;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      to bottom,
      rgb(135, 165, 200) 0%,
      rgba(160, 185, 210, 0.6) 30%,
      transparent 60%
    ),
    /* extremely soft center lift */
    radial-gradient(
      70% 60% at 55% 40%,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 70%
    ),
    /* diagonal rainbow stripe in middle */
    linear-gradient(
      120deg,
      #f5f0e8 0%,
      #ede8d8 30%,
      #dfd8c8 45%,
      #f0d8c8 55%,
      #f5e5d8 70%,
      #f5f0e8 100%
    );
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/grain_texture.png');
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--spacing-md);
  z-index: 1;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Homepage hero section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.tagline {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 3rem;
  color: var(--color-text-base);  /* 100% opacity */
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  line-height: 1.3;
}

.app-store-badge {
  display: inline-block;
  margin-top: var(--spacing-md);
}

.app-store-badge img {
  height: 60px;
  width: auto;
}

/* Footer navigation */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer-nav .separator {
  color: var(--color-text-secondary);
}

header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
}

.site-title {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.nav {
  margin-bottom: var(--spacing-md);
}

.nav a {
  margin-right: var(--spacing-sm);
  color: var(--color-text-secondary);  /* Secondary: 60% opacity */
}

h1 {
  font-family: 'Spectral', serif;
  font-weight: 400;  /* Regular weight - no bold */
  font-size: 2.5rem;
  color: var(--color-text);  /* Primary: 90% opacity */
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-family: 'Spectral', serif;
  font-weight: 400;  /* Regular weight - no bold */
  font-size: 1.75rem;
  color: var(--color-text);  /* Primary: 90% opacity */
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-family: 'Spectral', serif;
  font-weight: 400;  /* Regular weight - no bold */
  font-size: 1.25rem;
  color: var(--color-text);  /* Primary: 90% opacity */
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);  /* Secondary: 60% opacity */
}

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);  /* Secondary: 60% opacity */
}

li {
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-secondary);  /* Secondary: 60% opacity */
}

/* Ethereal card style matching app's ethereal cards */
.legal-content {
  background-color: rgba(255, 250, 245, 0.75);  /* #FFFAF5 at 75% - milky frosted glass */
  border-radius: 14px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow:
    0 0 0 0.5px rgba(217, 160, 143, 0.20),  /* Inner rose gold border */
    0 0 0 1px rgba(56, 51, 45, 0.40),        /* Outer darker border (text tertiary) */
    0 1px 3px rgba(217, 160, 143, 0.08);     /* Soft shadow */
}

.last-updated {
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

footer {
  padding: var(--spacing-md) 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

strong {
  font-weight: 500;  /* Medium weight for DM Sans, never bold on Spectral */
  color: var(--color-text);  /* Primary: 90% opacity */
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-sm);
  }

  .tagline {
    font-size: 2rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
