/* The Vision Roadmap — scoped under .vr so it sits inside the site shell
   (styles.css header/footer) without fighting its global rules.
   Tokens are the quiz's own: the text-safe burnt (#a34a2a) and deeper
   olive match the approved phase-card PNGs in images/vision-roadmap/,
   so the on-page card and the downloadable card look identical. */
.vr {
  --burnt: #a34a2a;
  --burnt-orange: #d9730d;
  --olive: #55661f;
  --olive-dark: #3d4a14;
  --tan: #e0d6bc;
  --ink: #241f16;
  --ink-soft: #3a3226;
  --paper: #fbf8f0;
  --line: rgba(85, 102, 31, 0.45);
  --shadow: 0 1px 1px rgba(36,31,22,.05), 0 4px 8px rgba(36,31,22,.05), 0 16px 32px rgba(36,31,22,.08), 0 40px 72px rgba(36,31,22,.10);
  color: var(--ink); font-family: 'Work Sans', system-ui, sans-serif; font-weight: 500; letter-spacing: -0.005em;
  width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) 16px;
}
.vr:has(.wide:not([hidden])) { max-width: 1040px; }
.vr [hidden] { display: none !important; }
.vr em { font-style: normal; font-weight: 600; color: var(--burnt); }

.vr .eyebrow, .vr .eyebrow-sm {
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--burnt);
  display: flex; align-items: center; gap: 12px; margin: 0;
}
.vr .eyebrow::before, .vr .eyebrow::after { content: none; } /* site .eyebrow adds its own rule; ours is the .rule span */
.vr .eyebrow-sm { color: var(--ink-soft); font-size: 11px; }
.vr .rule { display: block; width: 24px; height: 1px; background: currentColor; }
.vr .wordmark { font-family: 'Yeseva One', Georgia, serif; letter-spacing: .3em; font-size: 18px; color: var(--ink); text-decoration: none; }

.vr .screen { display: flex; flex-direction: column; gap: 22px; }
.vr h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 76px); line-height: 1.03; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.vr .lede { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.65; color: var(--ink-soft); margin: 0; max-width: 580px; }
.vr .honesty { margin: 0; padding: 14px 18px; background: var(--paper); border-left: 3px solid var(--burnt-orange); font-size: 16px; line-height: 1.5; }
.vr .meta { font-size: 13px; color: var(--ink-soft); margin: 0; letter-spacing: .02em; }
.vr .returning { margin: 0; padding: 12px 18px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }

.vr .btn {
  appearance: none; border: 0; cursor: pointer; align-self: flex-start; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 28px;
  border-radius: 999px; background: var(--burnt); color: var(--paper);
  font: 700 13px/1 'Work Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .2s, transform .15s; box-shadow: none;
}
.vr .btn:hover { background: #8f4327; color: var(--paper); transform: translateY(-1px); }
.vr .btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(36,31,22,.45); }
.vr .btn.ghost:hover { border-color: var(--burnt); color: var(--burnt); background: transparent; }
.vr .btn:focus-visible, .vr .answer:focus-visible, .vr .link:focus-visible, .vr input:focus-visible, .vr textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Intro: the nine phases at a glance */
.vr .phase-strip { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 20px; border-top: 1px solid var(--line); }
.vr .phase-strip li { display: flex; align-items: baseline; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.vr .phase-strip b { font: 700 13px 'Work Sans', sans-serif; color: var(--burnt); min-width: 14px; }
.vr .phase-strip-groups { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; margin: 18px 0 0; }
.vr .phase-strip-groups span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); padding-top: 4px; }
@media (max-width: 560px) {
  .vr .phase-strip { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .vr .phase-strip-groups { display: none; }
}

.vr .progress { height: 4px; background: var(--tan); }
.vr .progress-bar { height: 100%; width: 0; background: var(--burnt); transition: width .3s ease; }
.vr .question { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin: 8px 0 12px; min-height: 2.3em; color: var(--ink); }
.vr .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vr .answer {
  appearance: none; cursor: pointer; min-height: 72px; background: var(--paper); color: var(--ink); border-radius: 0;
  border: 1.5px solid var(--line); font: 700 16px/1 'Work Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .15s, background-color .15s;
}
.vr .answer:hover { border-color: var(--burnt); }
.vr .answer.chosen { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vr .link { appearance: none; background: none; border: 0; padding: 8px 0; cursor: pointer; align-self: flex-start; color: var(--ink-soft); font: 600 14px 'Work Sans', sans-serif; }
.vr .link:hover { color: var(--burnt); }

/* Blurred master board teaser on the capture step */
.vr .roadmap-tease { position: relative; margin: 0; max-width: 520px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--paper); }
.vr .roadmap-tease img { display: block; width: 100%; height: auto; }
.vr .roadmap-tease figcaption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--paper); padding: 14px 22px; text-align: center; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow);
}
.vr .roadmap-tease figcaption span { display: block; font-family: var(--serif); font-size: 20px; color: var(--paper); }
.vr form { display: flex; flex-direction: column; gap: 10px; }
.vr label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.vr .optional { font-weight: 500; color: var(--ink-soft); }
.vr input, .vr textarea {
  font: 500 17px 'Work Sans', sans-serif; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  padding: 14px 16px; border-radius: 0; width: 100%; box-sizing: border-box;
}
.vr textarea { resize: vertical; }
.vr form .btn { margin-top: 18px; }
.vr .error { color: #8f2a1a; margin: 0; font-size: 14px; }

/* Result */
.vr .goal-quote { margin: 0; padding: 18px 22px; background: var(--paper); border-left: 3px solid var(--olive); font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.vr .track { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.vr .track div { display: flex; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.vr .track span.bar { height: 6px; background: var(--tan); }
.vr .track .done span.bar { background: var(--olive); }
.vr .track .here span.bar { background: var(--burnt-orange); }
.vr .track .here { color: var(--ink); }
@media (max-width: 640px) { .vr .track .label { display: none; } }

.vr .next { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 12px; }
.vr .next-box { background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.vr .next-box p { margin: 0; line-height: 1.6; }
.vr .next-box.accent { border-color: var(--burnt); }
.vr .next-box h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0; color: var(--ink); }
.vr .bottom-line { font-size: 20px; font-weight: 700; }
.vr .row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .vr .next { grid-template-columns: 1fr; } }

/* ---------- Phase card (matches the approved 1080×1350 cards) ---------- */
.vr .card {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0; padding: 0;
  display: flex; flex-direction: column; margin: 8px 0 24px;
}
.vr .card.capstone { background: var(--olive); color: var(--paper); border-color: rgba(36,31,22,.35); }
.vr .card-head { padding: 30px 34px 24px; display: flex; flex-direction: column; gap: 18px; }
.vr .card-top { display: flex; justify-content: space-between; align-items: center; }
.vr .card.capstone .eyebrow, .vr .card.capstone .eyebrow-sm { color: var(--paper); }
.vr .card-title { display: flex; align-items: center; gap: 20px; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; } /* reset site .card-title */
.vr .card-num { display: block; margin: 0; font-style: normal; font: 700 clamp(64px, 11vw, 104px)/.82 'Work Sans', sans-serif; letter-spacing: -.04em; color: var(--burnt); }
.vr .card.capstone .card-num { color: var(--paper); }
.vr .card-name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 5vw, 52px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: inherit; }
.vr .card-grid { --lw: 168px; }
.vr .g2, .vr .g3 { display: grid; border-top: 1px solid var(--line); }
.vr .g2 { grid-template-columns: var(--lw) 1fr; }
.vr .g3 { grid-template-columns: var(--lw) 1fr 1fr; }
.vr .card.capstone .g2, .vr .card.capstone .g3 { border-color: rgba(251,248,240,.28); }
.vr .lab { background: var(--olive); color: var(--paper); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; padding: 16px; display: flex; align-items: center; }
.vr .card.capstone .lab { background: var(--olive-dark); }
.vr .lab.ink { background: var(--ink); }
.vr .cell { padding: 16px 18px; font-size: 17px; line-height: 1.38; display: flex; align-items: center; }
.vr .cell.c { color: var(--ink-soft); }
.vr .cell.g { border-left: 1px solid var(--line); font-weight: 600; }
.vr .card.capstone .cell.c { color: var(--paper); }
.vr .card.capstone .cell.g { border-color: rgba(251,248,240,.28); }
.vr .heads { background: var(--tan); }
.vr .card.capstone .heads { background: #4a5a1b; }
.vr .heads .cell { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 16px; color: var(--ink); }
.vr .card.capstone .heads .cell { color: var(--paper); }
.vr .bottom { background: var(--burnt-orange); }
.vr .bottom .cell { color: var(--ink) !important; }
.vr .bottom .cell.g { font-weight: 700; border-color: rgba(36,31,22,.22) !important; }
.vr .card-foot { padding: 16px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vr .card.capstone .card-foot { border-color: rgba(251,248,240,.28); }
.vr .card.capstone .wordmark { color: var(--paper); }

/* Phones: stack each row so nothing gets cramped */
@media (max-width: 640px) {
  .vr .card-head { padding: 22px 18px 18px; }
  .vr .g2, .vr .g3 { grid-template-columns: 1fr; }
  .vr .heads { display: none; }
  .vr .lab { padding: 10px 16px; font-size: 12px; }
  .vr .cell { padding: 12px 16px; font-size: 16px; }
  .vr .cell.g { border-left: 0; border-top: 1px dashed var(--line); }
  .vr .cell.c::before { content: "Constraint"; }
  .vr .cell.g::before { content: "To graduate"; }
  .vr .g2 .cell::before { content: none; }
  .vr .g3 .cell { flex-direction: column; align-items: flex-start; gap: 4px; }
  .vr .g3 .cell::before { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
  .vr .card-foot { padding: 14px 18px; flex-direction: column; align-items: flex-start; }
}
