/* WellFlow — page-specific styles consolidated from the build */

/* ===== Today page ===== */
.task-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.task-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.task-card.is-done { background: var(--color-bg); border-color: var(--color-accent); }
.task-card.is-done .task-title { text-decoration: line-through; color: var(--color-text-muted); }
.task-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ring-container { position: relative; width: 100px; height: 100px; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.day-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; }
.day-dot--done { background: var(--color-accent); color: white; }
.day-dot--today { background: var(--color-primary); color: white; box-shadow: 0 0 0 3px rgba(59,94,166,0.25); }
.day-dot--upcoming { background: var(--color-border); color: var(--color-text-muted); }

/* ===== Program detail page ===== */
.day-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); }
.day-item--active { border-color: var(--color-primary); background: rgba(59,94,166,0.04); }
.day-number { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.sticky-cta { position: sticky; bottom: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 1rem 1.25rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0)); }

/* ===== Programs / Creators filter chips ===== */
.filter-chip { padding: 0.4rem 1rem; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); background: var(--color-surface); border: 1.5px solid var(--color-border); cursor: pointer; transition: all 0.2s; white-space: nowrap; min-height: 36px; }
.filter-chip.is-active, .filter-chip:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* ===== Pricing page ===== */
.plan-card { border: 2px solid var(--color-border); border-radius: var(--radius-xl); padding: 1.5rem; background: var(--color-surface); transition: all 0.3s; cursor: pointer; }
.plan-card.is-selected { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(59,94,166,0.12); }
.plan-card.is-popular { border-color: var(--color-primary); background: linear-gradient(135deg, rgba(59,94,166,0.04), rgba(82,196,160,0.04)); }
.feature-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.feature-check { width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== Focus tracker ===== */
.mood-tile { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.875rem 0.5rem; border: 2px solid var(--color-border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; background: var(--color-surface); flex: 1; }
.mood-tile:hover { border-color: var(--color-focus-tracker); }
.mood-tile.is-selected { border-color: var(--color-focus-tracker); background: rgba(124,111,224,0.08); }
.mood-emoji { font-size: 2rem; line-height: 1; }
.mood-label { font-size: 0.7rem; font-weight: 500; color: var(--color-text-muted); }
.mood-tile.is-selected .mood-label { color: var(--color-focus-tracker); font-weight: 600; }
.focus-score { font-size: 3.5rem; font-family: var(--font-heading); color: var(--color-focus-tracker); line-height: 1; }
.timer-ring { position: relative; width: 140px; height: 140px; }
.timer-ring svg { transform: rotate(-90deg); }
.timer-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ===== Movement tracker ===== */
.breath-circle { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(82,196,160,0.3) 0%, rgba(82,196,160,0.1) 60%, transparent 100%); border: 3px solid var(--color-accent); display: flex; align-items: center; justify-content: center; transition: transform 4s ease-in-out; cursor: pointer; }
.breath-circle.is-inhale { transform: scale(1.3); }
.breath-circle.is-exhale { transform: scale(0.85); }
.intensity-btn { flex: 1; padding: 0.75rem 0.5rem; border: 2px solid var(--color-border); border-radius: var(--radius-lg); text-align: center; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; background: var(--color-surface); }
.intensity-btn.is-selected { border-color: var(--color-movement-tracker); background: rgba(82,196,160,0.1); color: var(--color-movement-tracker); }

/* ===== Nutrition tracker ===== */
.meal-card { border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem; background: var(--color-surface); transition: border-color 0.2s; }
.meal-card.is-logged { border-color: var(--color-accent); }
.hunger-btn { flex: 1; padding: 0.625rem 0.25rem; border: 2px solid var(--color-border); border-radius: var(--radius-md); text-align: center; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; background: var(--color-surface); color: var(--color-text-muted); }
.hunger-btn.is-selected { border-color: var(--color-nutrition-tracker); background: rgba(249,115,22,0.1); color: var(--color-nutrition-tracker); }
.water-drop { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-border); cursor: pointer; transition: all 0.2s; }
.water-drop.is-filled { background: #3B82F6; border-color: #3B82F6; }
.food-tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s; background: var(--color-surface); }
.food-tag.is-selected { background: rgba(249,115,22,0.1); border-color: var(--color-nutrition-tracker); color: var(--color-nutrition-tracker); }

/* ===== Reflection page ===== */
.completion-checkmark { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light)); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(82,196,160,0.35); animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti-particle { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: confetti-fall 1.5s ease-out both; }
@keyframes confetti-fall { from { transform: translateY(-20px) rotate(0deg); opacity: 1; } to { transform: translateY(120px) rotate(540deg); opacity: 0; } }
.prompt-card { border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem; cursor: pointer; transition: all 0.2s; background: var(--color-surface); }
.prompt-card:hover { border-color: var(--color-primary); background: var(--color-bg); }
.prompt-card.is-selected { border-color: var(--color-primary); background: rgba(59,94,166,0.05); }

/* ===== Stats page ===== */
.period-btn { flex: 1; padding: 0.5rem; border-radius: var(--radius-md); font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); background: transparent; border: none; cursor: pointer; transition: all 0.2s; }
.period-btn.is-active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-card); }
.bar-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.bar-wrapper { width: 100%; height: 80px; display: flex; flex-direction: column; justify-content: flex-end; }
.bar-fill { width: 100%; border-radius: 4px 4px 0 0; height: 0; transition: height 1s ease 0.2s; }
.heatmap-cell { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.stat-box { background: var(--color-surface); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-card); text-align: center; }

/* ===== Challenges page ===== */
.tab-pill { flex: 1; padding: 0.5rem; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; background: transparent; color: var(--color-text-muted); }
.tab-pill.is-active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-card); }
.rank-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* ===== Notifications page ===== */
.notif-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: var(--radius-lg); transition: background 0.2s; }
.notif-item.is-unread { background: rgba(59,94,166,0.05); }
.notif-item:hover { background: var(--color-bg); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; margin-top: 5px; }
.notif-item:not(.is-unread) .notif-dot { background: transparent; }

/* ===== Profile/Settings page ===== */
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; border-radius: var(--radius-lg); transition: background 0.2s; gap: 0.75rem; }
.settings-row:hover { background: var(--color-bg); }
.settings-label { font-size: 0.9rem; font-weight: 500; color: var(--color-text); }
.settings-value { font-size: 0.8rem; color: var(--color-text-muted); }
.toggle-switch { width: 44px; height: 24px; border-radius: 12px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; border: none; }
.toggle-switch.is-on { background: var(--color-accent); }
.toggle-switch.is-off { background: var(--color-border); }
.toggle-switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle-switch.is-on::after { left: 23px; }
.toggle-switch.is-off::after { left: 3px; }

/* ===== Onboarding page ===== */
.option-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border: 2px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); cursor: pointer; transition: all 0.2s; width: 100%; text-align: left; }
.option-card:hover { border-color: var(--color-primary); background: var(--color-bg); }
.option-card.is-selected { border-color: var(--color-primary); background: rgba(59,94,166,0.06); }
.option-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mood-btn { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.875rem 0.5rem; border: 2px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); cursor: pointer; transition: all 0.2s; flex: 1; }
.mood-btn.is-selected { border-color: var(--color-primary); background: rgba(59,94,166,0.06); }
.mood-btn.is-selected .mood-label { color: var(--color-primary); }

/* ===== Auth page tab switcher ===== */
.tab-btn {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-align: center;
  margin-bottom: -1px;
}
.tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-btn:hover:not(.is-active) {
  color: var(--color-text);
}

/* ===== Footer ===== */
.wf-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  padding: 3.5rem 1.5rem 0;
}
/* Brand + nav stack vertically; nav owns its own column grid */
.wf-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
/* Nav: 1 col mobile → max 3 cols at 640px+ */
.wf-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .wf-footer__nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
  }
}
.wf-footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.wf-footer__logo:hover { color: var(--color-accent); }
.wf-footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}
.wf-footer__col-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.wf-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.wf-footer__list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.wf-footer__list a:hover { color: var(--color-accent); }
.wf-footer__bottom {
  max-width: 64rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== Landing — Pricing teaser ===== */
.price-card { border: 2px solid var(--color-border); border-radius: var(--radius-xl); padding: 2rem; background: var(--color-surface); }
.price-card--featured { border-color: var(--color-primary); background: linear-gradient(135deg, rgba(59,94,166,0.04) 0%, rgba(82,196,160,0.04) 100%); }
.price-amount { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-text); line-height: 1; }
.price-period { font-size: 0.85rem; color: var(--color-text-muted); }
.price-feature { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9rem; color: var(--color-text-muted); padding: 0.375rem 0; }
.price-feature svg { flex-shrink: 0; }

/* ===== Landing — FAQ accordion ===== */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--color-text); list-style: none; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--color-bg); border: 1.5px solid var(--color-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.faq-icon::after { content: ''; display: block; width: 7px; height: 7px; border-right: 2px solid var(--color-text-muted); border-bottom: 2px solid var(--color-text-muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.faq-item[open] .faq-icon { background: var(--color-primary); border-color: var(--color-primary); }
.faq-item[open] .faq-icon::after { border-color: white; transform: rotate(-135deg) translateY(-2px); }
.faq-answer { padding-bottom: 1.25rem; color: var(--color-text-muted); line-height: 1.7; font-size: 0.95rem; }
