/* College Path Finder: "Route map" theme.
   Your degree is drawn as a transit line: credits you have → low-cost credits → your school.
   Colors: --have / --prep / --school are the three legs of the route and are used the same
   way everywhere (landing line, transfer path, legend). */

@font-face { font-family: Bricolage; src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Bricolage; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Figtree; src: url(../fonts/figtree-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(../fonts/figtree-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(../fonts/figtree-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F1F5F8;        /* soft blue-gray page */
  --card: #FFFFFF;
  --border: #D9E2EA;
  --text: #1C2A3A;      /* ink navy */
  --muted: #56667A;
  --have: #2BA36A;      /* leg 1: credits you have */
  --prep: #3A86D6;      /* leg 2: low-cost credits */
  --school: #E8A92E;    /* leg 3: your school */
  --tint: #E8F0F7;
  --gold-tint: #FFF4DB;
  --warn: #A54B06;
  --radius: 18px;
  --display: Bricolage, ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--text); text-decoration-color: var(--prep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--school); }
:focus-visible { outline: 3px solid var(--prep); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); }

.site-header, .site-footer { max-width: 760px; margin: 0 auto; padding: 20px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.site-footer { color: var(--muted); font-size: 14px; text-align: center; }
.site-footer a { color: var(--muted); }

main { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }

/* ---------- Landing ---------- */
.intro { padding: 48px 0 24px; }
.intro h1 { font-weight: 800; font-size: clamp(38px, 7.5vw, 62px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 12ch; }
.lede { color: var(--muted); font-size: 19px; max-width: 34ch; margin: 0 0 32px; }
.intro .hint { margin-top: 14px; }

/* The route line: three legs, a stop at the end of each */
.route { list-style: none; display: flex; padding: 0; margin: 0 0 40px; max-width: 640px; }
.route li { flex: 1; position: relative; padding-top: 30px; font-size: 14px; color: var(--muted); }
.route li::before { content: ""; position: absolute; top: 8px; left: 0; right: 10px; height: 12px; border-radius: 999px; background: var(--leg); }
.route li::after { content: ""; position: absolute; top: 3px; right: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--text); box-sizing: border-box; }
.route li:nth-child(1) { --leg: var(--have); }
.route li:nth-child(2) { --leg: var(--prep); }
.route li:nth-child(3) { --leg: var(--school); }
.route li:last-child { flex: 0 0 auto; padding-top: 30px; }
.route li:last-child::before, .route li:last-child::after { display: none; }

/* ---------- Cards, text ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.015em; line-height: 1.15; }
.card h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.01em; }
.card h3.sub { margin-top: 24px; font-size: 17px; }
.hint { color: var(--muted); font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; text-align: center; margin: 28px 0 8px; }
.warn { color: var(--warn); font-size: 15px; }
.center { text-align: center; }

/* ---------- Buttons and inputs ---------- */
.btn {
  display: inline-block; border: 2px solid var(--border); background: #fff; color: var(--text);
  padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn.primary:hover { background: #2B3E54; }
.btn.primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.big { padding: 18px 34px; font-size: 19px; font-family: var(--display); }
.btn.link { border: none; background: none; color: var(--muted); padding: 12px 0; font-weight: 400; }
.btn.link:hover { color: var(--text); }
.btn.center { display: block; margin: 0 auto; }
#skip { display: block; }

.input, .select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--border);
  background: #fff; color: var(--text); font: inherit; margin: 8px 0 16px;
}
.input:focus, .select:focus { outline: none; border-color: var(--prep); }

/* ---------- Quiz ---------- */
.quiz h2 { font-size: 28px; }
.progress { height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.progress div { height: 100%; background: var(--have); border-radius: 999px; transition: width 0.25s; }
.step-count { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.choices { display: grid; gap: 10px; margin: 16px 0 8px; }
.choice {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--border);
  background: #fff; color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
.choice-hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.program-line { color: var(--muted); margin: -2px 0 4px; }
.choice:hover, .choice.selected { border-color: var(--prep); background: #EEF5FC; }

/* ---------- Results ---------- */
.result-hero { border: 2px solid var(--text); }
.eyebrow { color: var(--have); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stats div { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.big { display: block; font-family: var(--display); font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.label { color: var(--muted); font-size: 14px; }
.reasons { margin: 0; padding-left: 20px; }
.reasons li { margin: 4px 0; }

/* Transfer path drawn as the route line */
.pathbar { display: flex; gap: 8px; height: 12px; margin: 34px 0 26px; }
.seg { position: relative; border-radius: 999px; min-width: 0; }
.seg span { position: absolute; top: -26px; left: 0; font-weight: 700; font-size: 14px; color: var(--text); }
.seg::after { content: ""; position: absolute; right: -6px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); background: #fff; border: 4px solid var(--text); border-radius: 50%; box-sizing: border-box; }
.seg.have, .legend i.have { background: var(--have); }
.seg.prep, .legend i.prep { background: var(--prep); }
.seg.school, .legend i.school { background: var(--school); }
.seg.empty { display: none; }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; }
.legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; transform: translateY(1px); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 400; font-size: 14px; }
tr.top td { background: var(--gold-tint); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.tag.over { background: #FCEBD9; color: var(--warn); }

/* Comparison table: fits the column at any width, no sideways scrolling */
.compare-table { table-layout: fixed; }
.compare-table th, .compare-table td { white-space: normal; overflow-wrap: break-word; vertical-align: top; }
.compare-table th:nth-child(1) { width: 29%; }
.compare-table th:nth-child(2) { width: 27%; }
.compare-table th:nth-child(3) { width: 22%; }
.compare-table th:nth-child(4) { width: 22%; }
.compare-table .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.compare-table .tag { display: inline-block; margin-top: 4px; }

.fit-table th, .fit-table td { white-space: normal; overflow-wrap: break-word; vertical-align: top; }
@media (max-width: 560px) {
  .fit-table { font-size: 14px; }
  .fit-table th, .fit-table td { padding: 9px 4px; }
}

.breakdown { font-size: 16px; }
.breakdown td { white-space: normal; }
.breakdown td:last-child { text-align: right; white-space: nowrap; }

.jobs { list-style: none; padding: 0; margin: 0; }
.jobs li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.jobs span { color: var(--muted); }

.funding { border: 2px solid var(--have); }
.funding .big { font-size: 20px; }
.guide { background: var(--gold-tint); border-color: #F0D9A0; }
.guide .select { border-color: #EBD49A; }
.discount { margin: 16px 0 0; display: flex; flex-direction: column; gap: 2px; }

.email form { display: flex; gap: 10px; }
.email .input { margin: 0; }
.email .btn { white-space: nowrap; }

.share-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.share-row .btn { padding: 10px 18px; font-size: 15px; }
.shared-banner { background: #fff; border: 2px solid var(--prep); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }

/* ---------- How we calculate ---------- */
.doc h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; letter-spacing: -0.025em; margin: 28px 0 10px; }
.doc .lede { margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 0 0 10px; }
.doc ul, .doc ol { padding-left: 20px; margin: 8px 0; }
.doc li { margin: 6px 0; }

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .email form { flex-direction: column; }
  .card { padding: 20px; }
  .route li { font-size: 13px; }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 10px 4px; }
  .compare-table th { font-size: 12px; }
  .compare-table .sub { font-size: 12px; }
  .compare-table .tag { font-size: 11px; padding: 1px 6px; }
}
@media (max-width: 360px) {
  main { padding: 0 12px 40px; }
  .card { padding: 16px 14px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 9px 3px; }
  .fit-table { font-size: 12.5px; }
  .fit-table th, .fit-table td { padding: 8px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
