:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1f2a2e;
  --muted: #5d6b70;
  --accent: #2f7d6d;
  --accent-dark: #22594e;
  --line: #e2ddd3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header { padding-top: 2rem; }
h1 { margin: 0.25rem 0; font-size: 2rem; }
.intro { color: var(--muted); margin-top: 0.25rem; }

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.clear-btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
}
.clear-btn:hover { background: var(--accent-dark); }
.clear-btn:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }

.progress { color: var(--muted); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.exercise {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.exercise:last-child { border-bottom: 0; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.exercise input {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.exercise label {
  flex: 1;
  font-size: 1.1rem;
  cursor: pointer;
}
.exercise input:checked + label {
  text-decoration: line-through;
  color: var(--muted);
}

.tag {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

a { color: var(--accent-dark); }
.details { white-space: nowrap; font-weight: 600; text-decoration: none; }
.details:hover { text-decoration: underline; }

.back {
  display: inline-block;
  margin: 1rem 0;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}
.video video, .video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-note { font-size: 0.9rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.steps li { margin-bottom: 0.5rem; }

footer { color: var(--muted); font-size: 0.9rem; padding-bottom: 2rem; }

@media (max-width: 520px) {
  .tag { display: none; }
  h1 { font-size: 1.6rem; }
}

section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin: 1.75rem 0 0.5rem;
}
.section-label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
}
.note {
  background: #fff7e6;
  border-left: 4px solid #f0b429;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.why-btn {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  min-height: 36px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.why-btn:hover, .why-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.why-btn:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.why {
  margin: 0 1rem 0.9rem 3.15rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.95rem;
}
.why p { margin: 0.2rem 0; }
@media (max-width: 520px) { .why { margin-left: 1rem; } }
