/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g50:  #EAF3DE;
  --g100: #C0DD97;
  --g200: #97C459;
  --g400: #639922;
  --g600: #3B6D11;
  --g800: #27500A;
  --g900: #173404;
  --text: #1a1a18;
  --text2: #4a4a46;
  --text3: #7a7a74;
  --bg:   #fafaf8;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: 'DM Serif Display', serif;
  --font-sans:  'Outfit', sans-serif;
  --shadow: 0 2px 20px rgba(63,107,17,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 600; color: var(--g900);
  letter-spacing: -0.02em;
}
.logo-leaf {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--g50); display: flex; align-items: center; justify-content: center;
}

.nav-links {
  display: flex; list-style: none; gap: 1.75rem; margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem; color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--g600); }

.nav-cta {
  background: var(--g600); color: #fff;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 1.25rem; border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--g800); transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--card); padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 0.75rem 0; color: var(--text2); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border: none; }
.mobile-cta {
  margin-top: 0.75rem; text-align: center;
  background: var(--g600); color: #fff;
  padding: 0.75rem; border-radius: 50px; font-weight: 500;
}
.mobile-nav.open { display: flex; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--g600); color: #fff;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.85rem 2rem; border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--g800); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block; color: var(--g600);
  font-size: 0.95rem; font-weight: 500;
  padding: 0.85rem 2rem; border-radius: 50px;
  border: 1.5px solid var(--g400);
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: var(--g50); transform: translateY(-2px); }

/* ── Section Helpers ─────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--g400); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400; line-height: 1.2;
  color: var(--g900); margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--text2);
  max-width: 520px; margin-bottom: 2.5rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 5rem 2.5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--g50) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--g800); background: var(--g100);
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.15;
  color: var(--g900);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-title em { font-style: italic; color: var(--g600); }

.hero-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 520px; margin: 0 auto 2rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* Hero Garden Grid Preview */
.hero-garden {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem 1.5rem 0;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease 0.4s both;
}

/* ── How It Works ────────────────────────────────────── */
.how {
  padding: 5rem 0;
  text-align: center;
}
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem;
}
.step {
  flex: 1; min-width: 180px; max-width: 260px;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem; color: var(--g100);
  line-height: 1; margin-bottom: 0.75rem;
}
.step-icon { margin-bottom: 1rem; }
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--g900); }
.step p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }
.step-arrow {
  font-size: 1.5rem; color: var(--g100); align-self: center;
  padding-bottom: 2rem;
}

/* ── Garden Section ──────────────────────────────────── */
.garden-section { padding: 5rem 0; background: var(--g50); }
.garden-section .section-sub { margin: 0 0 2.5rem; }

.garden-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 680px;
  box-shadow: var(--shadow);
}
.garden-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.garden-month { font-size: 0.78rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.garden-name { font-size: 1rem; font-weight: 600; color: var(--g900); }
.garden-streak {
  display: flex; align-items: center; gap: 5px;
  background: var(--g50); color: var(--g600);
  font-size: 0.8rem; font-weight: 500;
  padding: 4px 12px; border-radius: 50px;
}
.garden-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 0.72rem;
  color: var(--text3); margin-bottom: 6px;
  gap: 5px;
}
.garden-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 5px; margin-bottom: 1rem;
}
.g-cell {
  aspect-ratio: 1; border-radius: 6px;
  transition: transform 0.15s;
  cursor: default;
}
.g-cell:hover { transform: scale(1.2); }
.g-empty  { background: var(--g50); border: 1px solid var(--g100); }
.g-sprout { background: var(--g200); }
.g-bloom  { background: var(--g400); }
.g-glow   { background: var(--g600); }
.g-today  { background: var(--g800); outline: 2.5px solid var(--g200); outline-offset: 2px; }
.g-future { background: #f0f0ec; border: 1px solid #e0e0db; }

.garden-legend {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text3);
}
.leg { display: flex; align-items: center; gap: 5px; }
.leg-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.ld-today { background: var(--g800); outline: 2px solid var(--g200); outline-offset: 1px; }

/* ── Grove Chat ──────────────────────────────────────── */
.grove-section { padding: 5rem 0; }
.chat-ui {
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--g50);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--g600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-name { font-size: 0.95rem; font-weight: 600; color: var(--g900); }
.chat-status { font-size: 0.78rem; color: var(--text3); }
.chat-online {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g400); margin-left: auto;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.chat-messages {
  padding: 1.5rem;
  min-height: 200px; max-height: 320px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.msg { max-width: 82%; }
.msg p { font-size: 0.9rem; line-height: 1.65; padding: 0.875rem 1.1rem; border-radius: 16px; }
.msg-grove p { background: var(--g50); color: var(--g900); border-radius: 4px 16px 16px 16px; }
.msg-user { align-self: flex-end; }
.msg-user p { background: var(--g600); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-typing p {
  background: var(--g50);
  border-radius: 4px 16px 16px 16px;
  color: var(--text3);
  font-style: italic;
}

.chat-input-row {
  display: flex; gap: 8px;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: 50px; padding: 0.6rem 1.1rem;
  font-family: var(--font-sans); font-size: 0.9rem;
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--g400); }
.chat-input::placeholder { color: var(--text3); }

.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--g800); transform: scale(1.05); }

.chat-note {
  padding: 0.6rem 1.5rem 0.9rem;
  font-size: 0.72rem; color: var(--text3); text-align: center;
}

/* ── Check-In ────────────────────────────────────────── */
.checkin-section { padding: 5rem 0; background: var(--g50); }
.checkin-card {
  max-width: 580px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.checkin-q { font-size: 1.05rem; color: var(--g900); font-weight: 500; margin-bottom: 1.5rem; }
.checkin-q2 { font-size: 0.9rem; color: var(--text2); margin-bottom: 0.875rem; margin-top: 1.75rem; }

.mood-slider-wrap { margin-bottom: 1rem; }
.mood-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(to right, var(--g200), var(--g600));
  border-radius: 3px; outline: none;
}
.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--g600); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer; transition: transform 0.15s;
}
.mood-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.mood-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text3); margin-top: 6px;
}
.mood-val {
  font-family: var(--font-serif); font-size: 2rem; color: var(--g600);
  font-weight: 400; line-height: 1;
}

.mood-emojis {
  display: flex; justify-content: space-between;
  margin: 1rem 0 0;
}
.mood-face { opacity: 0.3; transition: opacity 0.3s, transform 0.2s; cursor: pointer; }
.mood-face.active { opacity: 1; transform: scale(1.2); }

.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px; border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 0.83rem; color: var(--text2);
  background: var(--bg);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--g400); color: var(--g600); }
.tag.active { background: var(--g50); border-color: var(--g400); color: var(--g800); font-weight: 500; }

.checkin-submit {
  margin-top: 2rem; width: 100%;
  background: var(--g600); color: #fff;
  padding: 0.9rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 500;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s;
}
.checkin-submit:hover { background: var(--g800); transform: translateY(-2px); }

.checkin-done { text-align: center; padding: 2rem 1rem; }
.done-icon { margin: 0 auto 1.25rem; width: fit-content; animation: popIn 0.5s ease; }
@keyframes popIn { 0%{transform:scale(0)} 70%{transform:scale(1.1)} 100%{transform:scale(1)} }
.checkin-done h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--g900); margin-bottom: 0.5rem; }
.checkin-done p { font-size: 0.9rem; color: var(--text2); margin-bottom: 1rem; }
.done-stat { font-size: 0.9rem; color: var(--g600); }
.done-stat strong { font-weight: 600; }

/* ── Breathe Mode ────────────────────────────────────── */
.breathe-section { padding: 5rem 0; text-align: center; }
.breathe-section .section-sub { margin: 0 auto 2.5rem; }
.breathe-ui { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.breathe-circle {
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--g50); border: 2px solid var(--g100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
}
.breathe-circle::before {
  content: ''; position: absolute;
  inset: -8px; border-radius: 50%;
  border: 1.5px solid var(--g100);
  transition: transform 4s ease, opacity 0.5s;
  opacity: 0;
}
.breathe-circle.inhale::before { opacity: 1; }
.breathe-circle.inhale { transform: scale(1.35); transition: transform 4s ease; }
.breathe-circle.exhale { transform: scale(1); transition: transform 4s ease; }
.breathe-circle.hold   { transition: none; }

.breathe-inner {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--g100);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.5s;
}
.breathe-circle.inhale .breathe-inner { background: var(--g200); }
.breathe-circle.exhale .breathe-inner { background: var(--g100); }

.breathe-text { font-size: 0.9rem; font-weight: 500; color: var(--g800); }
.breathe-count { font-size: 0.9rem; color: var(--text3); min-height: 1.5rem; }

.breathe-pattern { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pattern-btn {
  padding: 6px 16px; border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 0.83rem; color: var(--text2);
  font-family: var(--font-sans);
  background: var(--bg);
  transition: all 0.2s;
}
.pattern-btn:hover { border-color: var(--g400); }
.pattern-btn.active { background: var(--g50); border-color: var(--g400); color: var(--g800); font-weight: 500; }

/* ── Features ────────────────────────────────────────── */
.features-section { padding: 5rem 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.feat {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--g50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feat h3 { font-size: 1rem; font-weight: 600; color: var(--g900); margin-bottom: 0.5rem; }
.feat p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--g50);
}
.footer-inner {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.95rem; font-weight: 600; color: var(--g800);
}
.footer-links {
  display: flex; gap: 1.5rem;
}
.footer-links a { font-size: 0.83rem; color: var(--text3); transition: color 0.2s; }
.footer-links a:hover { color: var(--g600); }
.footer-note { font-size: 0.78rem; color: var(--text3); margin-left: auto; }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 3rem 1.5rem 0; }
  .container { padding: 0 1.5rem; }
  .step-arrow { display: none; }
  .footer-note { margin-left: 0; }
  .footer-links { display: none; }
}

/* ── Weekly Mood Chart ───────────────────────────────── */
.chart-section { padding: 5rem 0; background: var(--g50); }
.chart-card {
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.25rem;
  box-shadow: var(--shadow);
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  margin-bottom: 10px;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.chart-bar {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  transition: transform 0.2s, opacity 0.2s;
  cursor: default;
  position: relative;
}
.chart-bar:hover { transform: scaleY(1.04); transform-origin: bottom; }
.chart-bar-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--g800);
  font-family: var(--font-sans);
}
.chart-days {
  display: flex;
  gap: 10px;
}
.chart-day {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text3);
  font-family: var(--font-sans);
}
.chart-day.today { color: var(--g600); font-weight: 600; }