/* Precipio brand — Green #22a73a / Dark Blue #2a56a1 / Gray #777 / Roboto */
:root {
  --green: #22a73a;
  --blue: #2a56a1;
  --navy: #123a75;
  --teal: #1a87a8;
  --gray: #777777;
  --dark: #313131;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e3e8ef;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.container.wide { max-width: 1200px; }

.site-header { background: #fff; border-bottom: 4px solid var(--green); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 20px; flex-wrap: wrap; }
.logo { height: 44px; width: auto; }
.header-title { color: var(--blue); font-weight: 700; font-size: 1.05rem; letter-spacing: .3px; }
.accent { color: var(--green); }

h1, h2, h3 { color: var(--blue); line-height: 1.25; }
h1 { font-size: 2rem; font-weight: 900; }
a { color: var(--green); }
a:hover { color: var(--blue); }

.hero {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; border-radius: 14px; padding: 34px 34px 28px; margin: 26px 0;
}
.hero .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; opacity: .85; font-weight: 500; }
.hero h1 { color: #fff; margin: 8px 0 6px; }
.hero .tagline { font-size: 1.15rem; color: #cfe3cf; font-weight: 500; }
.hero .icon { font-size: 2.6rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 28px; margin: 18px 0;
}
.card h2 { margin-top: 0; }
.point { margin: 14px 0; }
.point b { color: var(--blue); }

.tips li { margin: 8px 0; }
.pill {
  display: inline-block; background: #e8f5ea; color: var(--green);
  border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 700;
}

.btn {
  display: inline-block; background: var(--green); color: #fff !important;
  font-weight: 700; padding: 12px 26px; border-radius: 8px; text-decoration: none;
  border: none; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #1c8c31; color: #fff; }
.btn.secondary { background: var(--blue); }
.btn.secondary:hover { background: var(--navy); }

.quiz-q { margin: 20px 0; padding: 16px 18px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.quiz-q p.q { font-weight: 700; color: var(--blue); margin: 0 0 10px; }
.quiz-q label { display: block; margin: 6px 0; cursor: pointer; }
.quiz-q.q-right { border-left: 4px solid var(--green); }
.quiz-q.q-wrong { border-left: 4px solid #c0392b; }
.q-missed { color: #c0392b; font-weight: 700; }
.ans { padding: 6px 10px; margin: 4px 0; border-radius: 6px; }
.ans b { font-weight: 700; font-size: .85rem; }
.ans-correct { background: #e8f5ea; border: 1px solid #bfe3c6; color: #1c6b2c; }
.ans-wrong { background: #fdecec; border: 1px solid #f5c2c2; color: #a33; }
.explain { background: #fffbe8; border: 1px solid #f0e3ad; border-radius: 6px; padding: 8px 12px; font-size: .9rem; color: #6b5d1f; margin: 10px 0 0; }
.attest { background: #eef4ff; border: 1px solid #c8d8f2; border-radius: 10px; padding: 16px 18px; margin: 22px 0; }
.attest label { font-weight: 500; cursor: pointer; }
.error { background: #fdecec; border: 1px solid #f5c2c2; color: #a33; border-radius: 10px; padding: 12px 16px; }
.success-banner { background: #e8f5ea; border: 1px solid #bfe3c6; border-radius: 10px; padding: 16px 20px; color: #1c6b2c; }

.weeknav { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.weeknav a {
  text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: .9rem;
  background: #fff; border: 1px solid var(--line); color: var(--gray);
}
.weeknav a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.weeknav a.done { border-color: var(--green); color: var(--green); }

table.matrix { border-collapse: collapse; width: 100%; background: #fff; font-size: .9rem; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
table.matrix th { background: var(--blue); color: #fff; font-weight: 500; }
table.matrix td.name { text-align: left; font-weight: 500; }
.ok { color: var(--green); font-weight: 700; }
.pend { color: #b58900; font-weight: 700; }
.miss { color: #bbb; }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.stat {
  flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px;
}
.stat .n { font-size: 2rem; font-weight: 900; color: var(--blue); }
.stat .l { color: var(--gray); font-size: .85rem; }

.site-footer { background: var(--navy); color: #cdd7e6; margin-top: 48px; padding: 28px 0 34px; font-size: .85rem; }
.site-footer a { color: #9fd8a9; }
.footer-logo { height: 30px; margin-bottom: 10px; }

form.inline { display: inline; }
textarea, input[type="text"], input[type="password"] {
  font-family: inherit; font-size: .95rem; padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; width: 100%;
}
@media (max-width: 640px) {
  .hero { padding: 24px 20px; }
  h1 { font-size: 1.5rem; }
  .card { padding: 18px; }
}
