:root {
  --bg: #12141c;
  --bg-elev: #1a1d29;
  --bg-elev-2: #20232f;
  --line: #2b2f3d;
  --text: #eef0f6;
  --muted: #8d93a8;

  --accent: #e8a33d;
  --accent-soft: rgba(232, 163, 61, 0.16);
  --done: #6fa66b;
  --done-soft: rgba(111, 166, 107, 0.18);
  --walk: #5b8fd1;
  --walk-soft: rgba(91, 143, 209, 0.18);

  --radius-s: 8px;
  --radius-m: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(232, 163, 61, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 48px 20px 80px;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  margin-bottom: 40px;
}

.hero__kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.hero__title {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(36px, 8vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.hero__lede {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Trail progress ---------- */

.trail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 20px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.trail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.trail__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.trail__percent {
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--accent);
}

.trail__track {
  position: relative;
  height: 4px;
  background: var(--bg-elev-2);
  border-radius: 4px;
  margin: 0 4px 30px;
}

.trail__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--walk), var(--accent));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.trail__points {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.trail__point {
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trail__point-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 2px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}

.trail__point.is-reached .trail__point-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.trail__point-label {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.trail__point.is-reached .trail__point-label {
  color: var(--text);
}

.trail__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat__num {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: var(--text);
}

.stat__label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Week / days ---------- */

.week {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 18px 8px;
  margin-bottom: 24px;
}

.week__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.week__nav button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.week__nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.week__range {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.day {
  border-top: 1px solid var(--line);
}

.day:first-child {
  border-top: none;
}

.day-main {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  cursor: pointer;
}

.day-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--bg-elev-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
}

.day-check svg {
  opacity: 0;
  transition: opacity 0.15s;
}

.day-check.is-done svg {
  opacity: 1;
}

.day-check.kind-home.is-done {
  background: var(--done-soft);
  border-color: var(--done);
}
.day-check.kind-home.is-done svg { color: var(--done); }

.day-check.kind-walk.is-done {
  background: var(--walk-soft);
  border-color: var(--walk);
}
.day-check.kind-walk.is-done svg { color: var(--walk); }

.day-body {
  flex: 1;
  min-width: 0;
}

.day-name {
  font-size: 14.5px;
  font-weight: 600;
}

.day-type {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
}

.day-date {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.day.is-today .day-name::after {
  content: "hari ini";
  margin-left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.day-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.15s;
}

.day.is-expanded .day-toggle {
  color: var(--accent);
  transform: rotate(180deg);
}

/* ---------- Exercise detail ---------- */

.day-detail {
  padding: 0 0 16px 39px;
}

.exercise-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
}

.exercise-card:last-child {
  margin-bottom: 0;
}

.exercise-art {
  flex-shrink: 0;
  width: 74px;
  height: 52px;
  color: var(--accent);
}

.exercise-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.exercise-info {
  flex: 1;
  min-width: 0;
}

.exercise-name {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.exercise-target {
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 7px;
}

.exercise-steps {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.exercise-steps li {
  margin-bottom: 2px;
}

.exercise-note {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .day-detail {
    padding-left: 0;
  }
  .exercise-card {
    flex-direction: column;
  }
  .exercise-art {
    width: 100%;
    height: 60px;
  }
}

/* ---------- Quote ---------- */

.quote {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 380px) {
  body { padding: 36px 14px 60px; }
  .stat__num { font-size: 22px; }
}
