/* Play Move Improve — shared AHA course design system */

:root {
  --plum-900: #4A2247;
  --plum-700: #7A3B74;
  --plum-100: #F3EAF2;
  --cream-50: #FDFBF6;
  --sage-600: #5C7A5F;
  --sage-100: #E7EFE8;
  --amber-600: #A97429;
  --amber-100: #F6ECDA;
  --ink-900: #2B2430;
  --ink-500: #6B6070;
  --line: #E7DCE5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream-50);
  font-family: 'Karla', sans-serif;
  color: var(--ink-900);
}

.app-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.app { width: 100%; max-width: 640px; }

.intro { text-align: center; margin-bottom: 28px; }
.intro h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 28px; color: var(--plum-900); margin: 0 0 10px 0; }
.intro p { font-size: 15.5px; color: var(--ink-500); max-width: 480px; margin: 0 auto; line-height: 1.55; }

.progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.dot { width: 34px; height: 6px; border-radius: 999px; background: var(--line); transition: background 0.4s ease; }
.dot.done { background: var(--plum-700); }
.dot.active { background: var(--plum-900); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(74, 34, 71, 0.08); opacity: 0; transform: translateY(8px);
  animation: rise 0.5s ease forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum-700); margin-bottom: 10px; }
h1.q { font-family: 'Fraunces', serif; font-weight: 600; font-size: 23px; line-height: 1.35; margin: 0 0 24px 0; color: var(--plum-900); }

.options { display: flex; flex-direction: column; gap: 12px; }
button.option {
  text-align: left; background: var(--cream-50); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-family: 'Karla', sans-serif; font-size: 15.5px; color: var(--ink-900);
  cursor: pointer; transition: border-color 0.2s ease, transform 0.15s ease;
}
button.option:hover { border-color: var(--plum-700); transform: translateY(-1px); }
button.option.selected { border-color: var(--sage-600); background: var(--sage-100); }
button.option.selected.best { border-color: var(--sage-600); background: var(--sage-100); }
button.option.selected.ok { border-color: var(--amber-600); background: var(--amber-100); }

.feedback {
  margin-top: 14px; padding: 16px 18px; border-radius: 14px; font-size: 15px;
  line-height: 1.55; display: none; animation: fadeIn 0.35s ease forwards;
}
.feedback.show { display: block; }
.feedback.best { background: var(--sage-100); color: #33452F; }
.feedback.ok { background: var(--amber-100); color: #4A3417; }
.feedback strong { display: block; margin-bottom: 4px; font-family: 'Fraunces', serif; font-weight: 600; }

.next-row { margin-top: 24px; text-align: right; }
button.next {
  background: var(--plum-900); color: #fff; border: none; border-radius: 999px; padding: 12px 26px;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer;
  display: none; transition: background 0.2s ease;
}
button.next.show { display: inline-block; animation: fadeIn 0.4s ease; }
button.next:hover { background: var(--plum-700); }

.closing { text-align: center; }
.closing p { font-size: 16px; line-height: 1.6; color: var(--ink-500); margin-bottom: 8px; }
.closing .line { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; color: var(--plum-900); margin: 18px 0 26px; line-height: 1.5; }

/* Worksheet / fillable form elements */
.ws-card label { display: block; font-weight: 700; font-size: 14.5px; color: var(--plum-900); margin-bottom: 6px; margin-top: 20px; }
.ws-hint { font-size: 13px; color: var(--ink-500); margin: -3px 0 8px 0; line-height: 1.5; }
.ws-card input[type="text"], .ws-card textarea {
  width: 100%; font-family: 'Karla', sans-serif; font-size: 15px; color: var(--ink-900);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--cream-50);
}
.ws-card textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.adapt-grid { display: grid; gap: 10px; margin-top: 6px; }
.adapt-row label { margin-top: 0; font-weight: 500; font-size: 13.5px; color: var(--ink-500); }
.watch-box {
  background: var(--plum-100); border-radius: 12px; padding: 16px 18px; margin-top: 22px;
  font-size: 14.5px; line-height: 1.6; color: #3A1E38;
}
.watch-box strong { display: block; font-family: 'Fraunces', serif; font-weight: 600; margin-bottom: 6px; color: var(--plum-900); }
.ws-actions { margin-top: 26px; text-align: right; }
button.print-btn {
  background: var(--plum-900); color: #fff; border: none; border-radius: 999px; padding: 12px 26px;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer;
}
button.print-btn:hover { background: var(--plum-700); }

/* Reference-page elements (browsable lists, not click-through scenarios) */
.ref-category { margin-bottom: 22px; }
.ref-category h3 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--plum-900);
  margin: 0 0 6px 0;
}
.ref-category p { font-size: 14.5px; color: var(--ink-500); margin: 0; line-height: 1.55; }
.ref-note {
  background: var(--plum-100); border-radius: 12px; padding: 14px 16px; margin-top: 20px;
  font-size: 13.5px; color: #3A1E38; line-height: 1.55;
}
.back-link {
  display: inline-block; margin-top: 20px; font-size: 14px; color: var(--plum-700);
  text-decoration: none; font-weight: 700;
}
.back-link:hover { text-decoration: underline; }

/* Home page */
.home-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.home-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; text-decoration: none; transition: border-color 0.2s ease, transform 0.15s ease;
}
.home-card:hover { border-color: var(--plum-700); transform: translateY(-1px); }
.home-card .module-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--plum-700); margin-bottom: 6px;
}
.home-card h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--plum-900); margin: 0 0 4px 0; }
.home-card p { font-size: 14px; color: var(--ink-500); margin: 0; }

@media print {
  body { padding: 0; background: #fff; display: block; }
  .card { box-shadow: none; border: none; }
  .intro, .progress, .ws-actions { display: none; }
  .ws-card input, .ws-card textarea { border: 1px solid #999; background: #fff; }
}
