/* Back In Class — static site
   Gamma tokens + bolder academic tilt */

:root {
  color-scheme: light;
  --ink: #231f20;
  --ink-soft: #5c5754;
  --crimson: #c0151b;
  --crimson-deep: #8e0f14;
  --bg: #f5f3f1;
  --bg-2: #e8e4e0;
  --stone: #8b8680;
  --white: #ffffff;
  --line: #231f20;
  --progress: #6b8e23;
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--crimson-deep);
}

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(35, 31, 32, 0.12);
}

.brand img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--crimson);
}

/* Type */
.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.7rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-crimson {
  background: var(--crimson);
  border-color: var(--crimson);
  box-shadow: 0 8px 22px rgba(192, 21, 27, 0.28);
}

.btn-crimson:hover,
.btn-crimson:focus-visible {
  background: #fff;
  color: var(--crimson-deep);
  border-color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(35, 31, 32, 0.35);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 0.35rem 0;
}

/* Landing hero — full-bleed, compact */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: center;
  margin: 0 0 4rem;
  overflow: hidden;
  color: #fff;
  padding: clamp(1.5rem, 3.5vw, 2.35rem) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(28, 24, 25, 0.9) 0%,
      rgba(35, 31, 32, 0.78) 36%,
      rgba(35, 31, 32, 0.35) 62%,
      rgba(35, 31, 32, 0.12) 100%
    ),
    url("../img/hero-graduate.png") center 28% / cover no-repeat;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  pointer-events: auto;
}

.hero .kicker {
  color: #f0b4b6;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}

.hero-cta {
  margin: 1.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta .btn {
  pointer-events: auto;
}

.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

.btn-on-dark:hover,
.btn-on-dark:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

/* Intro under hero */
.intro {
  margin: 0 auto 3.5rem;
  padding: 0.5rem 0 0;
}

.intro-lede {
  margin: 0;
  width: 100%;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 600;
}

.text-link {
  display: inline;
  margin-left: 0.15em;
  color: var(--crimson);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(192, 21, 27, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--crimson-deep);
  border-bottom-color: var(--crimson-deep);
  outline: none;
}

/* About / purpose */
.about {
  margin: 0 auto 0;
  padding: 4.5rem 0 1rem;
  scroll-margin-top: 1.25rem;
}

.about h2 {
  margin-bottom: 0.85rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  width: 100%;
}

.about-copy {
  grid-column: 1;
  display: grid;
  gap: 0.85rem;
}

.about-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.about-topics {
  grid-column: 2 / span 2;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
}

.about-topics li {
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(35, 31, 32, 0.1);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Why panel */
.why {
  margin: 0 auto 6rem;
  position: relative;
  z-index: 2;
  background: var(--white);
  border: none;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 36px rgba(35, 31, 32, 0.06);
  scroll-margin-top: 1.25rem;
}

.why h2 {
  margin-bottom: 0.35rem;
}

.why-hint {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* Learning option cards */
.offers {
  margin: 5rem auto 0;
}

.offers h2 {
  margin-bottom: 0.35rem;
}

.offers-hint {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

a.offer-card:hover,
a.offer-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(192, 21, 27, 0.35);
  box-shadow: 0 14px 32px rgba(35, 31, 32, 0.1);
  outline: none;
}

a.offer-card:hover .btn-outline,
a.offer-card:focus-visible .btn-outline {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 21, 27, 0.35);
  box-shadow: 0 14px 32px rgba(35, 31, 32, 0.1);
}

.offer-type {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}

.offer-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.offer-card > p:not(.offer-type):not(.offer-meta) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.offer-meta {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--stone);
}

.offer-card .btn {
  align-self: flex-start;
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.age-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.age-row span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.chip {
  border: 1px solid rgba(35, 31, 32, 0.18);
  background: var(--bg);
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--crimson);
  color: var(--crimson-deep);
}

.chip.is-on,
.chip:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.reason-choice {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  text-align: left;
  border: 1px solid rgba(35, 31, 32, 0.12);
  background: #f5f3f1;
  background-color: #f5f3f1;
  color: #231f20;
  -webkit-text-fill-color: #231f20;
  padding: 1.15rem 1.2rem;
  cursor: pointer;
  font: inherit;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  gap: 0.35rem;
  min-height: 110px;
}

.reason-choice:active {
  border-color: var(--crimson);
  box-shadow: inset 0 0 0 1px var(--crimson);
}

.reason-choice:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

/* Dark invert only for real mouse hover — never sticky on touch / iOS */
@media (hover: hover) and (pointer: fine) {
  .reason-choice:hover {
    transform: translateY(-2px);
    background: #231f20;
    background-color: #231f20;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #231f20;
    box-shadow: 0 10px 24px rgba(35, 31, 32, 0.14);
  }

  .reason-choice:hover strong,
  .reason-choice:hover span {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }
}

.reason-choice strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #231f20;
  -webkit-text-fill-color: #231f20;
}

.reason-choice span {
  color: #5c5754;
  -webkit-text-fill-color: #5c5754;
  opacity: 1;
  font-size: 0.95rem;
}

.footnote {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--stone);
  font-weight: 600;
}

/* Path page */
.page-head {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid rgba(35, 31, 32, 0.12);
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--crimson);
}

/* Area detail pages */
.area-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}

.area-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(35, 31, 32, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--white);
}

.area-switch a:hover {
  border-color: var(--crimson);
  color: var(--crimson-deep);
}

.area-switch a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.area-body {
  margin-bottom: 2.5rem;
}

.area-body h2 {
  margin: 1.75rem 0 0.65rem;
}

.area-body > p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.area-list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.area-list li + li {
  margin-top: 0.55rem;
}

.area-list strong {
  color: var(--ink);
}

.area-examples {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.75rem;
}

.area-example {
  background: var(--white);
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.area-example h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.area-example > p {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
}

.area-example .btn {
  margin-top: 0.35rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.area-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

.path-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.path-meta span {
  border: 1px solid rgba(35, 31, 32, 0.18);
  border-radius: var(--radius);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  margin-bottom: 2.25rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(35, 31, 32, 0.12);
}

.pathway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.path-stage {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.path-stage.is-in {
  opacity: 1;
  transform: none;
}

.path-stage img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid rgba(35, 31, 32, 0.12);
}

.path-stage-body {
  padding: 1rem 1.05rem 1.15rem;
}

.path-stage-body .stage {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}

.path-stage-body h3 {
  margin: 0.25rem 0 0.35rem;
}

.path-stage-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.starter {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.starter ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.starter li + li {
  margin-top: 0.4rem;
}

.options {
  display: grid;
  gap: 0.85rem;
}

.option {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.option h3 {
  margin-bottom: 0.25rem;
}

.option .meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faculty {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.faculty-photo-wrap {
  width: 144px;
  height: 144px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.faculty-mark,
.faculty-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.22);
  transform-origin: center 20%;
}

.faculty-mark {
  width: 144px;
  height: 144px;
  background: var(--crimson);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(35, 31, 32, 0.12);
}

.actions > .btn,
.actions > a.btn,
.actions > .save-panel {
  flex: 0 0 auto;
  align-self: flex-start;
}

.actions .saved-note {
  flex: 1 0 100%;
  margin: 0 0 0.25rem;
}

/* Quiz */
.quiz-main {
  width: 100%;
  max-width: none;
  margin: 0.5rem 0 2.5rem;
}

.progress {
  display: grid;
  grid-template-columns: repeat(var(--quiz-steps, 5), minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  margin: 1rem 0 1.25rem;
}

.progress span {
  display: block;
  width: 100%;
  min-width: 0;
  height: 5px;
  background: var(--bg-2);
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: 2px;
}

.progress span.on,
.progress span.done {
  background: var(--crimson);
  border-color: var(--crimson);
}

.quiz-card {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.quiz-card[hidden] {
  display: none;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quiz-options label {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  cursor: pointer;
  font-weight: 650;
  min-height: 64px;
  display: flex;
  align-items: center;
  background: var(--bg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quiz-options label:hover,
.quiz-options label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.quiz-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.summary-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(35, 31, 32, 0.1);
}

.summary-list strong {
  font-weight: 700;
}

/* Saved */
.saved {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(35, 31, 32, 0.12);
  margin-bottom: 2rem;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.next-card {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.next-card p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

/* How it works */
.how {
  margin: 0 auto 4.5rem;
  scroll-margin-top: 1.25rem;
}

.how h2 {
  margin-bottom: 0.35rem;
}

.how-hint {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
}

.how-step {
  border: 1px solid rgba(35, 31, 32, 0.12);
  background: var(--white);
  padding: 1.25rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.how-step h2,
.how-step h3 {
  margin: 0;
  font-size: 1.25rem;
}

.how-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.how-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: 7rem;
  padding: 2.5rem 0 2rem;
  background: #1c1819;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  gap: 1.5rem 2rem;
}

.footer-brand .brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #f0b4b6;
}

.footer-meta {
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.fade-in {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 300px;
  }

  .hero-bg {
    background-position: 68% 22%;
  }

  .hero-inner {
    width: 100%;
  }

  .reason-grid,
  .pathway,
  .next-grid,
  .quiz-options,
  .offer-grid,
  .how-steps,
  .about-layout,
  .about-topics {
    grid-template-columns: 1fr;
  }

  .about-copy,
  .about-topics {
    grid-column: auto;
  }

  .option {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .path-stage,
  .fade-in,
  .btn,
  .reason-choice {
    transition: none !important;
    animation: none !important;
  }

  .path-stage {
    opacity: 1;
    transform: none;
  }
}

/* PHP app compatibility */
.btn-primary {
  background: var(--crimson);
  border-color: var(--crimson);
  box-shadow: 0 8px 22px rgba(192, 21, 27, 0.28);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  color: var(--crimson-deep);
  border-color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(35, 31, 32, 0.35);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip.is-selected,
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step.shake {
  animation: fadeIn 0.3s ease;
}

.quiz-choice {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  cursor: pointer;
  font-weight: 650;
  min-height: 64px;
  display: flex;
  align-items: center;
  background: var(--bg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quiz-choice:hover,
.quiz-choice:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.quiz-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-form fieldset {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem 1.5rem 1.4rem;
  margin: 0 0 1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.05);
}

.quiz-form legend {
  float: left;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  box-sizing: border-box;
}

.quiz-form legend + * {
  clear: both;
}

.save-panel {
  display: inline-block;
  max-width: 100%;
}

.save-panel summary {
  list-style: none;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
}

.save-panel summary::-webkit-details-marker {
  display: none;
}

.save-form {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  gap: 0.75rem;
  min-width: min(320px, 100%);
}

.save-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.save-form input:not([type="checkbox"]) {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(35, 31, 32, 0.2);
  border-radius: var(--radius);
}

.save-consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.55rem !important;
  align-items: start;
  font-weight: 500 !important;
  color: var(--ink-soft);
}

.save-consent input {
  margin-top: 0.2rem;
}

.form-note,
.micro,
.saved-note,
.field-hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.optional {
  font-weight: 400;
  color: var(--stone);
}

.pill {
  display: inline-block;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(35, 31, 32, 0.15);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill.muted {
  color: var(--stone);
}

.pill.accent {
  color: var(--crimson);
  border-color: rgba(192, 21, 27, 0.3);
}

.option .meta,
.faculty .meta {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.why-form {
  margin: 0;
  padding: 0;
  border: 0;
}

.why-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.page-shell {
  padding-bottom: 1rem;
}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header account menu */
.header-tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.account-menu {
  position: relative;
}

.account-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(35, 31, 32, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: var(--crimson);
  color: var(--crimson-deep);
  box-shadow: 0 8px 20px rgba(35, 31, 32, 0.08);
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.account-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.account-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 40;
  width: min(300px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(35, 31, 32, 0.14);
  display: grid;
  gap: 0.55rem;
}

.account-panel[hidden] {
  display: none;
}

.account-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.account-panel-email {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  word-break: break-all;
}

.account-panel a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  padding: 0.35rem 0;
}

.account-panel a:hover {
  color: var(--crimson);
}

.account-login-form {
  display: grid;
  gap: 0.7rem;
}

.account-login-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.9rem;
}

.account-login-form input {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(35, 31, 32, 0.2);
  border-radius: var(--radius);
}

.account-login-form .btn {
  width: 100%;
}

.profile-card {
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(35, 31, 32, 0.06);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-identity h2 {
  margin: 0 0 0.25rem;
}

.profile-facts {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.profile-facts div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(35, 31, 32, 0.1);
}

.profile-facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
}

.profile-facts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .header-tools {
    gap: 0.65rem;
  }

  .site-nav {
    display: none;
  }

  .account-label {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Offline support widget */
.support-widget {
  --support-lift: 0px;
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + var(--support-lift));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  transition: bottom 0.18s ease;
  pointer-events: none;
}

.support-widget > * {
  pointer-events: auto;
}

.support-launcher {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(192, 21, 27, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

.support-launcher:hover,
.support-launcher[aria-expanded="true"] {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(192, 21, 27, 0.36);
}

.support-launcher[aria-expanded="true"] {
  display: none;
}

.support-launcher-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  background: #ece9e6;
  border: 0;
  flex-shrink: 0;
  display: block;
}

.support-panel {
  width: min(340px, calc(100vw - 2rem));
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(35, 31, 32, 0.2);
  overflow: hidden;
}

.support-panel[hidden] {
  display: none;
}

.support-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1rem 0.75rem;
  background: #1c1819;
  color: #fff;
}

.support-panel-identity {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.support-panel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  background: #ece9e6;
  border: 0;
  flex-shrink: 0;
}

.support-agent-name {
  margin: 0;
  font-weight: 700;
}

.support-status {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #f0b4b6;
}

.support-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.support-copy {
  margin: 0;
  padding: 0.9rem 1rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.support-form {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem 1.1rem;
}

.support-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.9rem;
}

.support-form input,
.support-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(35, 31, 32, 0.2);
  border-radius: var(--radius);
  resize: vertical;
}

.support-consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.55rem !important;
  align-items: start;
  font-weight: 500 !important;
  color: var(--ink-soft);
}

.support-consent input {
  margin-top: 0.2rem;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-meta a:hover {
  color: #f0b4b6;
}

.legal-page .legal-body {
  max-width: 46rem;
  color: var(--ink-soft);
}

.legal-body h2 {
  margin-top: 1.75rem;
  color: var(--ink);
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body li + li {
  margin-top: 0.45rem;
}

@media (max-width: 860px) {
  .support-widget {
    right: 0.85rem;
    bottom: calc(0.85rem + var(--support-lift));
  }

  .support-launcher {
    padding: 0;
  }
}

/* Admin / signals */
.page-admin .wrap {
  width: min(1180px, calc(100% - 2.5rem));
}

.page-admin .site-nav a[aria-current="page"] {
  color: var(--crimson);
}

.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.admin-page-head .lede {
  margin-bottom: 0;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-login {
  max-width: 26rem;
  margin-bottom: 2.5rem;
}

.admin-login-form {
  margin-top: 0.5rem;
}

.admin-error {
  margin: 0 0 0.75rem;
  color: var(--crimson-deep);
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.9rem;
  margin: 0 0 2rem;
}

.stat-card {
  position: relative;
  padding: 1.1rem 1.1rem 1.15rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 241, 0.92)),
    var(--white);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(35, 31, 32, 0.22);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.08);
}

.stat-card.is-accent {
  border-color: rgba(192, 21, 27, 0.28);
}

.stat-card.is-accent::before {
  background: var(--crimson);
}

.stat-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
}

.stat-value {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.stat-note {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.35;
}

.admin-panel {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-panel-head {
  margin-bottom: 1rem;
}

.admin-panel-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.28rem;
}

.admin-panel-head .field-hint {
  margin: 0;
}

.admin-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(35, 31, 32, 0.1);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

.admin-table tbody tr:hover td {
  background: rgba(245, 243, 241, 0.7);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table .meta {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.admin-chart-panel {
  overflow: hidden;
}

.chart-frame {
  width: 100%;
  min-height: 280px;
}

.chart-frame-bar {
  min-height: 320px;
}

.chart-frame-sankey {
  min-height: 380px;
}

.chart-empty {
  margin: 0;
  padding: 1.5rem 0.25rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.support-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.support-msg-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8f6f4);
}

.support-msg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.support-msg-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.support-msg-email {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--crimson-deep);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  word-break: break-all;
}

.support-msg-email:hover {
  text-decoration: underline;
}

.support-alert-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-alert-badge.is-sent {
  background: rgba(107, 142, 35, 0.14);
  color: #4f6b1a;
}

.support-alert-badge.is-pending {
  background: rgba(192, 21, 27, 0.1);
  color: var(--crimson-deep);
}

.support-msg-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-msg-meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--stone);
  font-weight: 600;
}

.support-msg-meta .meta {
  color: var(--ink-soft);
  font-weight: 500;
  word-break: break-all;
}

.admin-guide .admin-panel h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
}

.admin-guide-steps {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.admin-guide-steps li + li {
  margin-top: 0.45rem;
}

.admin-guide .admin-panel > p:last-child,
.admin-guide .admin-panel > .field-hint:last-child {
  margin-bottom: 0;
}

.insight-verdict {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.35rem 1.3rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  border-left: 4px solid rgba(35, 31, 32, 0.35);
}

.insight-verdict.insight-tone-positive {
  border-left-color: var(--crimson);
}

.insight-verdict.insight-tone-caution {
  border-left-color: #a67c52;
}

.insight-status {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.insight-verdict h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.insight-verdict .meta {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.insight-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.75rem;
}

.insight-card {
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8f6f4);
  border-top: 3px solid rgba(35, 31, 32, 0.18);
}

.insight-card.insight-tone-positive {
  border-top-color: var(--crimson);
}

.insight-card.insight-tone-caution {
  border-top-color: #a67c52;
}

.insight-card.insight-tone-neutral {
  border-top-color: rgba(35, 31, 32, 0.28);
}

.insight-answer {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.insight-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.insight-split .admin-panel {
  margin-bottom: 0;
}

.insight-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.insight-list li + li {
  margin-top: 0.45rem;
}

.insight-list-adjust li::marker {
  color: var(--crimson-deep);
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-frame-bar,
  .chart-frame-sankey {
    min-height: 300px;
  }

  .insight-answer-grid,
  .insight-split {
    grid-template-columns: 1fr;
  }
}
