@font-face {
  font-family: "Manrope";
  src: local("Manrope");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-1: #f5f0e6;
  --bg-2: #e7efe8;
  --bg-3: #fbfaf7;
  --text-main: #141414;
  --muted: rgba(20, 20, 20, 0.6);
  --accent: #1f5d52;
  --accent-2: #c9a46b;
  --accent-3: #0f3b33;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  --soft-border: rgba(0, 0, 0, 0.06);
}

body {
  font-family: "Manrope", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.bg-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 164, 107, 0.14), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(31, 93, 82, 0.12), transparent 50%),
    linear-gradient(140deg, var(--bg-1), var(--bg-3) 70%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--soft-border);
}

.app-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.app-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.app-hero {
  padding: 28px 0 12px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42ch;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(40, 111, 98, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

.card-glass {
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-card {
  text-align: center;
  padding: 28px 24px;
}

.hero-card .hero-title {
  margin-bottom: 6px;
}

.hero-metric {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 93, 82, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-cta {
  margin-top: 28px;
}

.hero-caption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.header-context {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.55);
  margin-bottom: 6px;
}

.page-header {
  padding: 24px 0 12px;
}

.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  text-decoration: none;
}

.group-header {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.55);
}

.activity-list {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 4px 18px;
  border: 1px solid var(--soft-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-name {
  font-weight: 600;
}

.activity-meta {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.activity-points {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.empty-state {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid var(--soft-border);
  text-align: center;
  color: var(--muted);
}

.timer-card {
  border-radius: 16px;
  border: 1px dashed rgba(31, 93, 82, 0.25);
  padding: 16px;
  background: rgba(31, 93, 82, 0.05);
  text-align: center;
}

.timer-display {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.set-inputs .btn {
  white-space: nowrap;
}

.walk-card {
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(40, 111, 98, 0.08), rgba(216, 179, 119, 0.16));
  border: 1px dashed rgba(40, 111, 98, 0.25);
}

.exercise-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--soft-border);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-border);
}

.set-row:last-child {
  border-bottom: none;
}

.set-inputs {
  display: flex;
  gap: 8px;
  width: 50%;
}

.history-item {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: var(--card);
}

.alert-warning-soft {
  background: #fff2d6;
  border-color: #ffe1a8;
  color: #5c4214;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.85);
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 93, 82, 0.22);
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 16px;
}

.btn-primary:hover {
  background: #1b5248;
}

.btn-outline-dark {
  border-color: rgba(31, 93, 82, 0.2);
  color: var(--accent);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  background: rgba(31, 93, 82, 0.05);
}

.btn-outline-dark:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
}

.elevated {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.badge-soft {
  background: rgba(40, 111, 98, 0.12);
  color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 10px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-hero,
.card-glass,
.exercise-card,
.history-item {
  animation: fadeUp 0.6s ease both;
}

@media (min-width: 992px) {
  .app-hero {
    text-align: left;
  }

  .hero-subtitle {
    margin: 0;
  }
}

.badge-soft {
  background: rgba(40, 111, 98, 0.12);
  color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 10px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-title-strong {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.input-soft {
  background: #f7f6f2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.sticky-actions {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  border: 1px solid var(--soft-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--soft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.calendar-day.completed {
  background: rgba(40, 111, 98, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.history-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .set-inputs {
    width: 55%;
  }
}
