/* =========================================================================
   Expound — expounddaily.com
   ========================================================================= */

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

:root {
  --ink:        #1A1A14;
  --charcoal:   #2C2C24;
  --olive:      #4A4A30;
  --stone:      #9B9B82;
  --gold:       #C4A86A;
  --gold-light: #E8D5A8;
  --linen:      #F5F0E8;
  --linen-dark: #EDE7DA;
  --rose:       #C47A7A;
  --sage:       #7A9E7E;
  --sky:        #6A9BC4;
  --lavender:   #9A7AC4;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;

  --max-w: 900px;
  --px: 24px;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--linen);
  background-color: var(--ink);
}

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

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

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

.text-center { text-align: center; }
.text-stone  { color: var(--stone); }
.text-gold   { color: var(--gold); }

/* --- Fade-in on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--px);
  background: rgba(26, 26, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 168, 106, 0.08);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  color: var(--linen);
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--linen); }

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--px) 80px;
}

.hero-icon {
  margin-bottom: 32px;
}

/* Pillars SVG pulse animation */
@keyframes pillar-pulse {
  0%, 100% { opacity: var(--base-opacity); }
  50%      { opacity: calc(var(--base-opacity) * 0.5); }
}
.pillar-1 { --base-opacity: 1;    animation: pillar-pulse 3s ease-in-out infinite; }
.pillar-2 { --base-opacity: 0.62; animation: pillar-pulse 3s ease-in-out 0.2s infinite; }
.pillar-3 { --base-opacity: 0.32; animation: pillar-pulse 3s ease-in-out 0.4s infinite; }

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: 10px;
  color: var(--linen);
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--stone);
  line-height: 1.5;
  max-width: 500px;
  margin-bottom: 48px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 12px;
  transition: opacity 0.2s;
}
.app-store-badge:hover {
  opacity: 0.9;
  color: var(--ink);
}
.app-store-badge svg {
  width: 22px;
  height: 22px;
}

.hero-scroll-hint {
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  opacity: 0.4;
  letter-spacing: 2px;
}

/* =========================================================================
   Section shared
   ========================================================================= */
section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--linen);
  margin-bottom: 20px;
}

.section-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone);
  max-width: 640px;
}

.section-body.centered {
  margin: 0 auto;
}

/* Alternating background */
section:nth-of-type(even) {
  background: var(--charcoal);
}

/* =========================================================================
   Features (What is Expound)
   ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: rgba(196, 168, 106, 0.04);
  border: 1px solid rgba(196, 168, 106, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
}

.feature-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}

@media (max-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   How It Works
   ========================================================================= */
.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-number {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 48px;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.step h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  color: var(--linen);
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone);
}

/* =========================================================================
   Philosophy
   ========================================================================= */
.philosophy-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 48px 0;
  padding-left: 24px;
  border-left: 2px solid rgba(196, 168, 106, 0.2);
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--linen);
  line-height: 1.4;
}

.philosophy-quote.accent {
  color: var(--gold);
  font-style: italic;
}

.pillars-explanation {
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone);
  max-width: 640px;
  margin-top: 32px;
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-table {
  max-width: 560px;
  margin: 48px auto 0;
  background: rgba(196, 168, 106, 0.04);
  border: 1px solid rgba(196, 168, 106, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(196, 168, 106, 0.08);
}
.pricing-row:last-child { border-bottom: none; }

.pricing-row.header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--stone);
  text-transform: uppercase;
}

.pricing-row .label {
  font-size: 14px;
  color: var(--linen);
}
.pricing-row .free {
  text-align: center;
  font-size: 13px;
  color: var(--stone);
}
.pricing-row .pro {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

.pricing-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.pricing-card {
  border: 1.5px solid rgba(196, 168, 106, 0.3);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--gold);
  background: rgba(196, 168, 106, 0.08);
}
.pricing-card .period {
  font-weight: 500;
  font-size: 14px;
  color: var(--linen);
  margin-bottom: 4px;
}
.pricing-card .price {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  color: var(--linen);
}
.pricing-card .save-badge {
  position: absolute;
  top: -10px;
  right: -6px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-cta {
  display: inline-block;
  margin-top: 32px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 48px;
  border-radius: 12px;
  transition: opacity 0.2s;
}
.pricing-cta:hover {
  opacity: 0.9;
  color: var(--ink);
}

.pricing-legal {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  opacity: 0.6;
}

/* =========================================================================
   Waitlist Button (Hero)
   ========================================================================= */
.waitlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}
.waitlist-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================================
   Waitlist Modal
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 8, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--charcoal);
  border: 1px solid rgba(196, 168, 106, 0.15);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--stone);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--linen); }

.modal-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  color: var(--linen);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 28px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal input {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--linen);
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(196, 168, 106, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.modal input::placeholder {
  color: var(--stone);
  opacity: 0.6;
}
.modal input:focus {
  border-color: var(--gold);
}

.modal-submit {
  margin-top: 4px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.modal-submit:hover { opacity: 0.9; }
.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-error {
  font-size: 13px;
  color: var(--rose);
  margin-top: 8px;
  min-height: 20px;
}

.modal-success {
  display: none;
  text-align: center;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(196, 168, 106, 0.12);
  color: var(--gold);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-success .modal-subtitle {
  margin-bottom: 0;
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
  max-width: 640px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(196, 168, 106, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  color: var(--linen);
}
.faq-question:hover { color: var(--gold); }

.faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--stone);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(196, 168, 106, 0.08);
  text-align: center;
}

.footer-icon {
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--stone);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  opacity: 0.4;
  letter-spacing: 1px;
}

/* =========================================================================
   Legal pages (Privacy, Terms)
   ========================================================================= */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  color: var(--linen);
  margin-bottom: 8px;
}

.legal-page .effective-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  opacity: 0.6;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  color: var(--gold);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone);
  margin-bottom: 16px;
}

.legal-page ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.legal-page ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone);
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
}

.legal-page a {
  color: var(--gold);
}
