/* ============================================================
   SPEND MOMENTS — MAIN STYLESHEET
   Version 1.0 · spendmoments.app
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --cream:        #fdf7f1;
  --cream-dark:   #f5ede0;
  --warm-white:   #f9f3ec;
  --parchment:    #efe6d8;
  --sage:         #6b8f71;
  --sage-dark:    #4a6b50;
  --sage-mid:     #5d7d63;
  --sage-light:   #a8c5ac;
  --sage-pale:    #d6e8d8;
  --blush:        #c9957e;
  --blush-light:  #ddb8a8;
  --blush-pale:   #f0ddd6;
  --charcoal:     #2a2e2b;
  --charcoal-mid: #4a514b;
  --muted:        #7a877b;
  --border:       rgba(74, 107, 80, 0.12);
  --border-dark:  rgba(74, 107, 80, 0.22);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 12px rgba(42, 46, 43, 0.06);
  --shadow-md:  0 8px 32px rgba(42, 46, 43, 0.09);
  --shadow-lg:  0 20px 60px rgba(42, 46, 43, 0.12);

  --max-width:   1120px;
  --prose-width:  720px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- BASE ---- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY SCALE ---- */
.t-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
}

.t-display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { font-weight: 300; color: var(--charcoal-mid); }

strong { font-weight: 500; color: var(--charcoal); }

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

.container--prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- SECTIONS ---- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }

.section-label {
  display: inline-block;
  margin-bottom: 14px;
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(253, 247, 241, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-svg {
  width: 28px;
  height: 28px;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--charcoal-mid);
  font-size: 0.87rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 100px;
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover {
  background: rgba(107, 143, 113, 0.08);
  color: var(--sage-dark);
}

.nav-link.active {
  color: var(--sage-dark);
  font-weight: 500;
}

.nav-cta {
  background: var(--charcoal);
  color: white;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.18s, transform 0.18s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--sage);
  color: white;
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 107, 80, 0.3);
}

.btn-dark {
  background: var(--charcoal);
  color: white;
}

.btn-dark:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: var(--sage-pale);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 400;
}

.btn-ghost:hover { color: var(--sage-dark); }

/* ---- CARDS ---- */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ---- TAGS / BADGES ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tag-sage {
  background: rgba(107, 143, 113, 0.1);
  color: var(--sage-dark);
}

.tag-blush {
  background: rgba(201, 149, 126, 0.1);
  color: var(--blush);
}

/* ---- DIVIDERS ---- */
.divider-ornament {
  text-align: center;
  color: var(--sage-light);
  font-size: 1.2rem;
  margin: 40px 0;
  letter-spacing: 12px;
}

/* ---- NEWSLETTER ---- */
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
}

.newsletter-input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--border-dark);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--sage);
}

.newsletter-input::placeholder {
  color: var(--muted);
}

/* ---- STORE BADGES ---- */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  color: white;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}

.store-badge:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.store-badge-icon { font-size: 1.2rem; }
.store-badge-text small { display: block; font-size: 0.66rem; opacity: 0.65; font-weight: 300; }
.store-badge-text strong { font-size: 0.9rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-col .footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 260px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  font-weight: 300;
  transition: color 0.18s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--sage-light);
  color: var(--sage-light);
}

/* ---- ARTICLE CARD ---- */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--warm-white), var(--sage-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

.article-card-body {
  padding: 26px 28px;
}

.article-card-cat {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 10px;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 0.87rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- PROSE ARTICLE BODY ---- */
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--charcoal);
  font-weight: 400;
}

.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--charcoal);
  font-weight: 500;
}

.prose p {
  margin-bottom: 22px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--charcoal-mid);
  font-weight: 300;
}

.prose ul, .prose ol {
  margin: 20px 0 28px 0;
  padding-left: 0;
  list-style: none;
}

.prose ul li, .prose ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--charcoal-mid);
  font-weight: 300;
  line-height: 1.7;
}

.prose ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-size: 1.4rem;
  line-height: 1.4;
}

.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; }
.prose ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.8;
}

.prose blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  background: var(--warm-white);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0;
  line-height: 1.5;
}

.prose .callout {
  background: rgba(107, 143, 113, 0.07);
  border: 1px solid rgba(107, 143, 113, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}

.prose .callout p {
  margin-bottom: 0;
  color: var(--sage-dark);
}

.prose a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: var(--sage-light);
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.prose a:hover { color: var(--sage); }

.prose strong { font-weight: 500; color: var(--charcoal); }

/* ---- ARTICLE PAGE HERO ---- */
.article-hero {
  padding: 140px 0 72px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 40px;
}

.article-hero-cat {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 16px;
  display: block;
}

.article-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.article-hero-subtitle {
  font-size: 1.12rem;
  color: var(--charcoal-mid);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 560px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-meta-bar span { display: flex; align-items: center; gap: 5px; }

/* ---- FAQ ACCORDION ---- */
.faq-list { border-top: 1px solid var(--border); }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.18s;
}

.faq-question:hover { color: var(--sage-dark); }

.faq-icon {
  font-size: 1.3rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform 0.25s;
  font-style: normal;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 0.95rem;
  color: var(--charcoal-mid);
  line-height: 1.72;
  font-weight: 300;
}

/* ---- RELATED ARTICLES ---- */
.related-articles {
  background: var(--warm-white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .container { padding: 0 28px; }
  .container--prose { padding: 0 28px; }
  section { padding: 72px 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 0 20px; }
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav-menu.mobile-open .nav-cta {
    display: block;
    text-align: center;
    margin-top: 8px;
  }

  .container { padding: 0 20px; }
  .container--prose { padding: 0 20px; }
  section { padding: 56px 0; }

  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .related-grid { grid-template-columns: 1fr; }

  .article-hero { padding: 110px 0 52px; }

  .store-badges { flex-direction: column; }
  .store-badges .store-badge { justify-content: center; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.55s; }

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-sage   { color: var(--sage-dark); }
.text-muted  { color: var(--muted); font-weight: 300; }
.italic      { font-style: italic; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

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

/* ============================================================
   HOMEPAGE ADDITIONS — v1.1
   New: founder-section, journal-section, screenshot layouts
   All tokens preserved. No existing rules modified.
   ============================================================ */

/* ---- BLOG NEWSLETTER (dark version — used in blog/index.html) ---- */
.blog-newsletter {
  background: var(--charcoal);
  padding: 80px 0;
  text-align: center;
}

.blog-newsletter h2 { color: white; margin-bottom: 14px; }
.blog-newsletter p { color: rgba(255,255,255,0.5); max-width: 420px; margin: 0 auto 32px; font-weight: 300; }

.blog-newsletter .newsletter-form {
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.blog-newsletter .newsletter-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: white;
}

.blog-newsletter .newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.blog-newsletter .newsletter-input:focus { border-color: var(--sage-light); }

/* ---- SCREENSHOT UTILITY ---- */
/* Ensures all app screenshots maintain phone shape regardless of context */
.app-screenshot {
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(42,46,43,0.08),
    0 20px 56px rgba(42,46,43,0.14),
    0 4px 12px rgba(42,46,43,0.06);
  display: block;
}
