/* ==========================================
   DailyGround Theme
   Editorial, grounded, warm.
   Fraunces serif + DM Sans
   Forest green / warm cream / burnished gold
   ========================================== */

:root {
  --bg: #f5f0e4;
  --bg-alt: #ede8da;
  --surface: #ffffff;
  --fg: #1a1a12;
  --fg-muted: #6b6a5c;
  --fg-subtle: #9c9b8f;
  --accent: #c9a447;
  --accent-dark: #a8882e;
  --green-deep: #1a2e1a;
  --green-mid: #2c4a2c;
  --green-light: #3d643d;
  --sage: #7a9b6d;
  --sage-light: #a8c49a;
  --border: #d6d0c2;
  --border-light: #e8e2d6;

  /* Pillar colors */
  --workout: #3d643d;
  --prayer: #8b7355;
  --habit: #5a6e8c;
  --anxiety: #7a5c7a;
  --goal: #c9a447;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(26,46,26,0.08);
  --shadow-lg: 0 8px 40px rgba(26,46,26,0.14);

  --max-w: 1120px;
  --section-pad: 100px 24px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-subtle); }

::selection { background: var(--accent); color: var(--green-deep); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,240,228,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-logo:hover { color: var(--green-mid); }

.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 5px 12px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 96px;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(122,155,109,0.12) 0%, transparent 70%);
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -40px;
  left: -60px;
  background: radial-gradient(circle, rgba(201,164,71,0.08) 0%, transparent 70%);
}

.hero-shape-3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(26,46,26,0.05) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-features-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.dot-sep { color: var(--border); }

/* ---- PROGRESS RING ---- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.progress-ring-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress-ring { width: 100%; height: 100%; }

.ring-track {
  stroke: var(--border-light);
}

.ring-fill {
  transition: stroke-dashoffset 1.5s ease;
}

.ring-workout { stroke: var(--workout); stroke-dashoffset: 0; }
.ring-prayer { stroke: var(--prayer); stroke-dashoffset: 0; }
.ring-habit { stroke: var(--habit); stroke-dashoffset: 0; }
.ring-anxiety { stroke: var(--anxiety); stroke-dashoffset: 0; }
.ring-goal { stroke: var(--goal); stroke-dashoffset: 0; }

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.1;
}

.ring-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---- CHECKLIST WIDGET ---- */
.checklist-widget {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  width: 100%;
  max-width: 300px;
  box-shadow: var(--shadow);
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.checklist-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.checklist-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(122,155,109,0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.checklist-item.checked {
  color: var(--fg);
}

.checklist-item.checked .check-icon {
  color: var(--sage);
}

.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--border);
}

.item-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-workout { background: rgba(61,100,61,0.1); color: var(--workout); }
.tag-prayer { background: rgba(139,115,85,0.1); color: var(--prayer); }
.tag-habit { background: rgba(90,110,140,0.1); color: var(--habit); }
.tag-anxiety { background: rgba(122,92,122,0.1); color: var(--anxiety); }
.tag-goal { background: rgba(201,164,71,0.1); color: var(--goal); }

/* ---- STATS ROW ---- */
.stats-row {
  background: var(--green-deep);
  padding: 40px 24px;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.stat-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  max-width: 140px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ---- SECTION LABEL ---- */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- PILLARS ---- */
.pillars {
  padding: var(--section-pad);
  background: var(--bg);
}

.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pillars-header {
  max-width: 560px;
  margin-bottom: 64px;
}

.pillars-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-deep);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.pillars-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

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

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pillar-workout::before { background: var(--workout); }
.pillar-prayer::before { background: var(--prayer); }
.pillar-habit::before { background: var(--habit); }
.pillar-anxiety::before { background: var(--anxiety); }
.pillar-goals::before { background: var(--goal); }

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

.pillar-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-workout .pillar-icon { color: var(--workout); }
.pillar-prayer .pillar-icon { color: var(--prayer); }
.pillar-habit .pillar-icon { color: var(--habit); }
.pillar-anxiety .pillar-icon { color: var(--anxiety); }
.pillar-goals .pillar-icon { color: var(--goal); }

.pillar-icon svg {
  width: 32px;
  height: 32px;
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}

.pillar-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg-muted);
  flex: 1;
}

.pillar-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: var(--section-pad);
  background: var(--bg-alt);
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 64px;
}

.how-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.how-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

.step-connector {
  color: var(--border);
  padding-top: 16px;
  flex-shrink: 0;
}

.step-connector svg { width: 60px; }

.quote-block {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0 0;
  border-top: 1px solid var(--border-light);
}

.quote-block blockquote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.quote-block cite {
  font-size: 0.78rem;
  color: var(--fg-subtle);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---- CLOSING ---- */
.closing {
  padding: var(--section-pad);
  background: var(--green-deep);
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.closing-visual {
  display: flex;
  justify-content: center;
}

.closing-illustration {
  width: 100%;
  max-width: 320px;
  color: rgba(255,255,255,0.5);
}

.closing .section-label {
  color: var(--accent);
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.closing-title em {
  font-style: italic;
  color: var(--accent);
}

.closing-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
}

.footer-note {
  font-size: 0.78rem;
  color: var(--fg-subtle);
}

.footer-note a {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
}

.footer-note a:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { order: -1; }
  .hero-lede { max-width: 100%; }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .closing-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-inner {
    justify-content: flex-start;
  }
  .stat-divider { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 20px 72px; }
  .pillars { padding: 72px 20px; }
  .how-it-works { padding: 72px 20px; }
  .closing { padding: 72px 20px; }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    flex-direction: column;
    gap: 0;
  }
  .step-connector { display: none; }
  .stats-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-divider {
    display: block;
    width: 40px;
    height: 1px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav-checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--green-mid);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-checkin-btn:hover { background: var(--green-deep); color: #fff; }

@media (max-width: 640px) {
  .nav-badge { display: none; }
}