/* app.css */
/* Shared styles for the CPHNPrep app. Brand carried from the landing page. */

:root {
  --navy: #0f2a43;
  --navy-deep: #0a1d30;
  --navy-soft: #16395a;
  --gold: #c9a24b;
  --gold-soft: #e3c987;
  --cream: #f6f1e7;
  --paper: #fbf8f2;
  --ink: #11212f;
  --muted: #5e7184;
  --line: rgba(15, 42, 67, 0.12);
  --ok: #2e7d52;
  --bad: #b3402f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hanken Grotesk", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: var(--cream);
  padding: 16px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; color: var(--cream); text-decoration: none; }
.brand span { color: var(--gold); }
.topbar a.navlink { color: rgba(246,241,231,0.85); text-decoration: none; font-weight: 600; font-size: 0.92rem; margin-left: 18px; cursor: pointer; }
.topbar a.navlink:hover { color: var(--gold-soft); }

/* Cards and panels */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-top: 28px;
  box-shadow: 0 10px 30px rgba(15,42,67,0.06);
}

h1 { font-family: "Fraunces", serif; font-weight: 500; font-size: 2rem; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.01em; }
h2 { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.5rem; color: var(--navy); margin-bottom: 14px; }
.sub { color: var(--muted); margin-bottom: 24px; }

/* Forms */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
input[type="email"], input[type="password"], input[type="text"], select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 18px;
  outline: none;
}
input:focus, select:focus { border-color: var(--gold); }

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  padding: 14px 26px;
  border-radius: 100px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,162,75,0.35); }
.btn.full { width: 100%; }
.btn.secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.secondary:hover { background: var(--navy); color: var(--cream); }

/* Links and messages */
.link { color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; }
.msg { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.msg.error { color: var(--bad); }
.msg.success { color: var(--ok); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.92rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Choices (domain checkboxes, options) */
.choice {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  background: var(--paper); transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--gold); }
.choice.selected { border-color: var(--gold); background: #fff; }
.choice input { width: auto; margin: 0; }

/* Quiz option states */
.option { display: block; width: 100%; text-align: left; }
.option.correct { border-color: var(--ok); background: rgba(46,125,82,0.08); }
.option.wrong { border-color: var(--bad); background: rgba(179,64,47,0.08); }

/* Rationale box */
.rationale {
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
}
.rationale strong { color: var(--navy); }

/* Progress and stats */
.bar { height: 10px; background: var(--line); border-radius: 100px; overflow: hidden; margin: 6px 0 14px; }
.bar > span { display: block; height: 100%; background: var(--gold); }
.stat-big { font-family: "Fraunces", serif; font-size: 3rem; color: var(--navy); line-height: 1; }