:root {
  --bg: #f4f2f8;
  --card: #ffffff;
  --ink: #1a1430;
  --muted: #675f78;
  --line: #e6e1f0;
  --accent: #5b45f5;
  --accent-dark: #4334c9;
  --soft: #efeaff;
  --safer: #0c7a45;
  --safer-bg: #e5f6ec;
  --possible: #8a5a00;
  --possible-bg: #fff3d8;
  --unlikely: #5e5870;
  --unlikely-bg: #f1f0f4;
  --shadow: 0 10px 30px rgba(48, 32, 110, 0.06);
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --radius: 20px;
  --nav: 62px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, #efeaff 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom));
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #c9bdff; outline-offset: 2px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: rgba(244, 242, 248, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand svg { width: 32px; height: 32px; display: block; }
.desktop-nav { display: none; margin-left: auto; gap: 6px; }
.desktop-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}
.desktop-nav a[aria-current="page"] { background: var(--soft); color: var(--accent-dark); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  min-height: var(--nav);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }

.home-hero {
  display: grid;
  gap: 16px;
  padding: 8px 0 4px;
}
.home-copy h1 { max-width: 11em; }
.predict-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  min-height: 220px;
}
.predict-panel p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b8ff;
}
.predict-panel strong { font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.04em; line-height: 1.1; }
.predict-panel span { color: #d9d3ea; }
.predict-panel em {
  margin-top: auto;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.stats div {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.stats dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.stats dd { margin: 4px 0 0; font-weight: 800; letter-spacing: -0.03em; }
.home-block { margin-top: 36px; }
.home-grid { display: grid; gap: 12px; }
.text-link { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.steps {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 800;
}
.steps strong { display: block; margin-top: 10px; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.hero { padding: 12px 0 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(34px, 8vw, 56px); }
h2 { margin: 0; font-size: 22px; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 38rem; }

.search {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 12px;
  font-size: 16px;
}
.search input:focus { outline: none; }

.button, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button { background: var(--accent); color: #fff; }
.button:active { background: var(--accent-dark); }
.ghost { background: var(--soft); color: var(--accent-dark); }
.full { width: 100%; }

.streams, .actions, .stack { display: grid; gap: 12px; margin-top: 18px; }
.streams { grid-template-columns: 1fr; }
.stream, .panel, .college, .result, .stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stream, .action {
  display: block;
  padding: 16px;
  text-decoration: none;
}
.stream { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stream strong, .action strong { display: block; font-size: 16px; }
.stream span, .action span, .muted { color: var(--muted); }
.action {
  display: block;
  padding: 18px;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.action span { color: #d9d3ea; }

.section { margin: 28px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head p { margin: 0; color: var(--muted); font-weight: 700; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.rail .college { scroll-snap-align: start; }

.college { display: block; padding: 16px; text-decoration: none; }
.college h2, .college h3 { margin: 0; font-size: 17px; }
.place { margin: 4px 0 12px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f7f5fb;
}
.fact small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.fact strong { font-size: 14px; overflow-wrap: anywhere; }
.list { display: grid; gap: 10px; }
.filters { display: grid; gap: 10px; margin: 8px 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.select, .field input, .field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 16px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.pager p { margin: 0; color: var(--muted); font-weight: 700; font-size: 14px; }

.back { display: inline-flex; margin: 8px 0 12px; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.kicker { margin: 0 0 6px; color: var(--muted); font-weight: 700; }
.profile { padding: 18px; }
.hero { display: grid; gap: 18px; }
.college-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}
.rating-line { display: flex; gap: 8px; align-items: center; margin: 8px 0; color: var(--muted); font-weight: 700; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #16a34a;
  color: white;
  font-weight: 800;
}
.overview { margin: 8px 0 0; color: var(--ink); line-height: 1.55; }
.hero-photo {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #efeaff, #d9d0ff);
}
.hero-photo img.campus { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.hero-photo .initials {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: #4334c9;
  font-size: 56px;
  font-weight: 800;
}
.fact-chip {
  position: absolute;
  max-width: 46%;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 16, 40, 0.14);
}
.fact-chip small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.fact-chip strong { display: block; font-size: 16px; }
.fact-chip.tl { top: 12px; left: 12px; }
.fact-chip.tr { top: 12px; right: 12px; }
.fact-chip.bl { bottom: 12px; left: 12px; }
.fact-chip.br { bottom: 12px; right: 12px; }
.degree { padding: 14px 0; border-top: 1px solid var(--line); }
.degree h3 { margin: 0; }
.degree p { margin: 4px 0 10px; color: var(--muted); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f0ff;
  font-size: 13px;
  font-weight: 700;
}
.video {
  margin-top: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #1a1430;
}
.video iframe { width: 100%; height: 100%; border: 0; }
.profile h1 { font-size: clamp(30px, 7vw, 44px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.section-nav a {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.section-nav a[href="#courses"] { background: #efeaff; color: #4334c9; }
.section-nav a[href="#admission"] { background: #e7f0ff; color: #1d4ed8; }
.section-nav a[href="#cutoff"] { background: #fde8ef; color: #9f1239; }
.section-nav a[href="#placements"] { background: #e5f6ec; color: #0c7a45; }
.section-nav a[href="#answers"] { background: #fff3d8; color: #8a5a00; }
.sheet {
  margin-top: 14px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  border-top: 4px solid var(--line);
  scroll-margin-top: 16px;
}
.sheet h2 { margin: 0 0 12px; font-size: 20px; }
#courses { background: #f7f4ff; border-color: #ddd4ff; border-top-color: #5b45f5; }
#courses h2 { color: #4334c9; }
#admission { background: #f3f7ff; border-color: #d5e4ff; border-top-color: #2563eb; }
#admission h2 { color: #1d4ed8; }
#cutoff { background: #fff5f7; border-color: #f8d0dc; border-top-color: #e11d48; }
#cutoff h2 { color: #9f1239; }
#placements { background: #f3fbf6; border-color: #cfeedd; border-top-color: #0c7a45; }
#placements h2 { color: #0c7a45; }
#answers { background: #fffaf0; border-color: #f3e2b8; border-top-color: #d97706; }
#answers h2 { color: #8a5a00; }
.sheet > p { margin: 8px 0; }
.course-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.course-table th, .course-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.course-table th { color: var(--muted); font-size: 12px; font-weight: 800; }
.course-table td:last-child, .course-table th:last-child { text-align: right; white-space: nowrap; }
.course-table td:first-child { font-weight: 700; }
#show-courses { margin-top: 12px; }
.qa { padding: 12px 0; border-top: 1px solid var(--line); }
.qa h3 { margin: 0; font-size: 16px; }
.qa p { margin: 6px 0 0; color: var(--muted); }
.more-answers { margin-top: 10px; }
.more-answers summary { cursor: pointer; font-weight: 800; color: var(--accent-dark); }
.recruiters { color: var(--muted); }
.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.statline div {
  flex: 1 1 140px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.statline small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.statline strong { display: block; margin-top: 2px; font-size: 16px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.block { margin-top: 8px; }
.block h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: -0.02em; color: var(--muted); font-weight: 800; }
.block p { margin: 6px 0 0; }
.detail-cta { margin-top: 16px; }
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: 64px;
  z-index: 8;
  margin: 16px 0 12px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.tab {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.detail-panel { padding: 18px 16px 8px; border-radius: 24px; }
.table-scroll { overflow-x: auto; margin-top: 8px; -webkit-overflow-scrolling: touch; }
.detail-panel table { width: 100%; min-width: 560px; border-collapse: collapse; }
.detail-panel th, .detail-panel td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.detail-panel th { color: var(--muted); font-size: 12px; font-weight: 800; }
.course-list { display: grid; gap: 12px; }
.course-card {
  padding: 16px 16px 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.course-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.course-card h4 { margin: 0; font-size: 18px; }
.course-card header p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.course-card header strong { font-size: 15px; letter-spacing: -0.03em; text-align: right; }
.course-card header strong span { color: var(--muted); font-weight: 700; font-size: 12px; }
.course-card ul { list-style: none; margin: 0; padding: 0; }
.course-card li {
  padding: 11px 0;
  border-bottom: 1px solid #f1eef6;
  font-weight: 600;
}
.course-card .more { margin: 4px 0 8px; }
.course-card summary, .faq summary, .block summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent-dark);
  list-style: none;
}
.course-card summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; }
.faq-list { display: grid; gap: 8px; }
.faq {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.faq summary { padding: 12px 0; }
.faq p, .block details p { margin: 0 0 12px; color: var(--muted); }

.form { display: grid; gap: 12px; padding: 16px; }
.form .button { width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.field { display: grid; gap: 6px; }
.field span, legend { font-size: 13px; font-weight: 800; }
.segment { display: flex; gap: 8px; }
.segment label {
  position: relative;
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.segment input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segment label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.pill.safer { background: var(--safer-bg); color: var(--safer); }
.pill.possible { background: var(--possible-bg); color: var(--possible); }
.pill.unlikely { background: var(--unlikely-bg); color: var(--unlikely); }
.result { padding: 16px; }
.result h3 { margin: 8px 0 4px; font-size: 18px; }
.note, .status, .empty { color: var(--muted); }
.status[role="alert"] { color: #9d1230; font-weight: 700; }
.hidden { display: none; }

@media (min-width: 720px) {
  .home-hero { grid-template-columns: 1.35fr 0.85fr; align-items: stretch; gap: 20px; padding-top: 28px; }
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hero-photo, .hero-photo img.campus, .hero-photo .initials { min-height: 320px; }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .streams { grid-template-columns: repeat(3, 1fr); }
  .actions { grid-template-columns: 1.4fr 1fr; }
  .rail { grid-auto-columns: minmax(280px, 32%); }
  .filters { grid-template-columns: 1fr 180px; align-items: center; }
  .form { grid-template-columns: 1fr 1fr; }
  .form .wide, .form .button { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .home-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 32px; }
  .desktop-nav { display: flex; }
  .tabbar { display: none; }
  .list { gap: 12px; }
}
