:root {
  --forest: #174b36;
  --forest-2: #216447;
  --mint: #e8f5ee;
  --mint-2: #f4faf6;
  --lime: #cce86b;
  --ink: #183128;
  --muted: #62736b;
  --line: #dce9e1;
  --white: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #eaf3ed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(204, 232, 107, .22), transparent 27rem),
    radial-gradient(circle at 88% 88%, rgba(33, 100, 71, .13), transparent 32rem),
    #edf5f0;
}

button, a { font: inherit; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.assistant {
  width: min(1060px, 100%);
  min-height: 690px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(23,75,54,.1);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(23,75,54,.15);
  overflow: hidden;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: var(--forest);
  color: white;
}

.school-mark { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.school-mark strong, .school-mark small { display: block; }
.school-mark strong { font-family: Manrope, sans-serif; font-size: 1rem; letter-spacing: -.01em; }
.school-mark small { margin-top: 2px; color: #cfe2d7; font-size: .78rem; }
.mark-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 15px; background: var(--lime); color: var(--forest);
  font: 800 1.35rem Manrope, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.restart {
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 9px 14px; color: white; background: rgba(255,255,255,.08);
  cursor: pointer; font-weight: 600; font-size: .85rem;
}
.restart:hover { background: rgba(255,255,255,.15); }
.hidden { display: none !important; }

.progress {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 28px 12px; background: #fbfdfc;
  border-bottom: 1px solid var(--line);
}
.progress-step { display: flex; align-items: center; gap: 8px; color: #8a9991; font-size: .8rem; font-weight: 600; }
.progress-step b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #e7eeea; font-size: .76rem; }
.progress-step em { font-style: normal; }
.progress-step.active { color: var(--forest); }
.progress-step.active b { background: var(--lime); color: var(--forest); }
.progress i { width: 68px; height: 1px; margin: 0 12px; background: #d9e4de; }

.content { flex: 1; padding: 42px clamp(24px, 5vw, 58px); }
.view { animation: rise .3s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.eyebrow { margin: 0 0 9px; color: var(--forest-2); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font: 800 clamp(2rem, 4vw, 3.25rem)/1.08 Manrope, sans-serif; letter-spacing: -.045em; }
.intro { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.role-card {
  position: relative; min-height: 230px; padding: 28px; text-align: left;
  border: 1px solid var(--line); border-radius: 22px; background: var(--mint-2);
  cursor: pointer; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.role-card:hover, .role-card:focus-visible { transform: translateY(-3px); border-color: #8eb69f; box-shadow: 0 14px 30px rgba(23,75,54,.1); outline: none; }
.role-card .icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 17px; background: white; font-size: 1.8rem; }
.role-card strong { display: block; font: 800 1.45rem Manrope, sans-serif; }
.role-card p { margin: 8px 36px 0 0; color: var(--muted); line-height: 1.55; }
.role-card .arrow { position: absolute; right: 25px; bottom: 25px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 1.2rem; }

.question-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.role-chip { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: .8rem; font-weight: 700; }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 28px; }
.question {
  display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 15px; background: white; text-align: left;
  cursor: pointer; color: var(--ink); font-weight: 600; line-height: 1.35; transition: .18s ease;
}
.question:hover, .question:focus-visible { border-color: #7ba88e; background: var(--mint-2); transform: translateX(2px); outline: none; }
.q-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); font-size: 1.15rem; }
.question span:last-child { flex: 1; }
.chev { color: #789087; font-size: 1.1rem; }

.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; border: 0; padding: 0; background: none; color: var(--forest-2); cursor: pointer; font-weight: 700; }
.answer-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr); gap: 24px; }
.answer-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.answer-title { padding: 24px 26px; background: var(--mint); }
.answer-title .q-icon { margin-bottom: 13px; background: white; }
.answer-title h1 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.answer-body { padding: 26px; }
.answer-body p { margin: 0 0 15px; color: #4c6258; font-size: 1rem; line-height: 1.7; }
.answer-body p:last-of-type { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 17px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.primary { background: var(--forest); color: white; }
.primary:hover { background: #0f3c2a; }
.secondary { border: 1px solid var(--line); color: var(--forest); background: white; }
.help-card { align-self: start; padding: 22px; border-radius: 20px; background: var(--forest); color: white; }
.help-card small { display: block; color: #bcd4c6; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.help-card h2 { margin: 10px 0 8px; font: 700 1.12rem Manrope, sans-serif; }
.help-card p { margin: 0; color: #d8e8df; font-size: .9rem; line-height: 1.55; }
.help-card a { display: block; margin-top: 15px; color: var(--lime); font-weight: 700; text-decoration: none; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 17px 28px; border-top: 1px solid var(--line); color: #7a8982; font-size: .78rem; }
footer a { color: var(--forest-2); font-weight: 700; text-decoration: none; }

@media (max-width: 720px) {
  .shell { padding: 0; display: block; }
  .assistant { min-height: 100vh; border: 0; border-radius: 0; }
  .topbar { padding: 15px 18px; }
  .school-mark strong { font-size: .9rem; }
  .mark-icon { width: 42px; height: 42px; border-radius: 13px; }
  .restart { padding: 8px 10px; font-size: .75rem; }
  .progress { padding-inline: 18px; }
  .progress-step em { display: none; }
  .progress i { width: 50px; }
  .content { padding: 34px 18px; }
  h1 { font-size: 2rem; }
  .role-grid, .questions, .answer-wrap { grid-template-columns: 1fr; }
  .role-card { min-height: 180px; }
  .questions { margin-top: 22px; }
  .question { min-height: 64px; }
  .role-chip { display: none; }
  footer { flex-direction: column; padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
