/* ==========================================================================
   StudentFlow design system — "Gen Z, but accessible"
   Neo-brutalist structure (thick ink borders, hard shadows, pressed hover)
   + neon accents on dark hero + soft cream paper for reading.
   Every colour pair used for text meets WCAG AA (4.5:1 body, 3:1 large).
   ========================================================================== */

/* Fonts are our own files (public/fonts, SIL Open Font License 1.1: the licence texts sit next to them), so no page asks another site for a font
   and no visitor's IP address is sent to a font host. Both are variable fonts: one file per script covers every weight the site uses
   (Plus Jakarta Sans 400-800, Unbounded 600-900). Latin + Latin Extended (includes the rupee sign); other scripts use the system font. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette */
  --ink: #0d0d14;
  --ink-2: #1b1b27;
  --ink-3: #2c2c3d;
  --paper: #fff8ec;
  --paper-2: #fff1d6;
  --white: #ffffff;
  --muted: #4a4a5e;          /* >= 7:1 on paper, >= 5.5:1 on tinted cards */
  --line: #0d0d14;

  --lime: #c8ff2e;           /* ink on lime 15:1 */
  --violet: #6d3bff;         /* white on violet 5.6:1 */
  --violet-soft: #e6dcff;
  --pink: #ff3d81;           /* ink on pink 6.8:1 */
  --pink-soft: #ffd9e8;
  --orange: #ff5a1f;         /* ink on orange 6.9:1 */
  --yellow: #ffc93c;
  --cyan: #29d3ee;
  --green: #12a150;
  --green-soft: #d6f5e3;
  --red: #c21f2c;
  --red-soft: #fde1e3;

  /* type */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* fluid type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;      /* 17px body: readable on phones */
  --fs-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --fs-xl: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2.4vw, 3.1rem);
  --fs-3xl: clamp(2.2rem, 1.2rem + 4.6vw, 5rem);
  --fs-hero: clamp(2.4rem, 1rem + 6.4vw, 6.2rem);

  /* shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --bw: 2px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);

  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
hr { border: 0; border-top: var(--bw) solid var(--ink); margin: 2rem 0; }
::selection { background: var(--lime); color: var(--ink); }

/* focus: always visible, high contrast */
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--lime); color: var(--ink); padding: .75rem 1rem; border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--ink { background: var(--ink); color: var(--white); }
.section--lime { background: var(--lime); }
.section--violet { background: var(--violet); color: var(--white); }
.section--pink { background: var(--pink); }
.section--paper2 { background: var(--paper-2); }
.on-dark { color: var(--white); }
.on-dark .muted, .section--ink .muted { color: #c9c9d8; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, .75rem); align-items: center; }
.grid { display: grid; gap: var(--gap, 1.25rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .12em; padding: .35rem .8rem; border: var(--bw) solid var(--ink);
  border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); margin-bottom: 1rem;
}
.lead { font-size: var(--fs-lg); max-width: 60ch; }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%); padding-inline: .1em; }
.hl--pink { background: linear-gradient(transparent 58%, var(--pink) 58%); }
.text-lime { color: var(--lime); }
.text-pink { color: var(--pink); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--lime); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem; font-weight: 800; font-size: var(--fs-sm); line-height: 1.1;
  background: var(--bg); color: var(--fg); border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--shadow); text-decoration: none; cursor: pointer; letter-spacing: .01em;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--white); }
.btn--white { --bg: var(--white); --fg: var(--ink); }
.btn--pink { --bg: var(--pink); }
.btn--violet { --bg: var(--violet); --fg: var(--white); }
.btn--yellow { --bg: var(--yellow); }
.btn--ghost { --bg: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--lime); box-shadow: none; transform: none; }
.on-dark .btn--ghost, .section--ink .btn--ghost { --fg: var(--white); border-color: var(--white); }
.on-dark .btn--ghost:hover, .section--ink .btn--ghost:hover { --fg: var(--ink); }
.on-dark .btn, .section--ink .btn { border-color: var(--ink); box-shadow: 4px 4px 0 var(--white); }
.on-dark .btn:hover, .section--ink .btn:hover { box-shadow: 2px 2px 0 var(--white); }
.btn--lg { min-height: 58px; padding: 1rem 2rem; font-size: var(--fs-base); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: var(--fs-xs); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
.link-arrow { font-weight: 800; display: inline-flex; gap: .35rem; align-items: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- cards & stickers ---------- */
.card {
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(1.1rem, 2.5vw, 1.75rem); position: relative;
  color: var(--ink); /* cards always set their own text colour, even inside dark sections */
}
.card--flat { box-shadow: none; }
.card--hover { transition: transform .18s var(--ease), box-shadow .18s var(--ease); text-decoration: none; display: block; color: inherit; }
.card--hover:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); text-decoration: none; }
.card--lime { background: var(--lime); }
.card--violet { background: var(--violet); color: var(--white); }
.card--pink { background: var(--pink); }
.card--yellow { background: var(--yellow); }
.card--ink { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 4px 4px 0 var(--lime); }
.card--cyan { background: var(--cyan); }
.card--orange { background: var(--orange); }
.card--paper { background: var(--paper-2); }
.card h3, .card h4 { margin-bottom: .4em; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.sticker {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; font-weight: 800;
  border: var(--bw) solid var(--ink); border-radius: var(--r-pill); background: var(--yellow); color: var(--ink);
  box-shadow: var(--shadow-sm); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em;
}
.accent-lime { --accent: var(--lime); --accent-fg: var(--ink); }
.accent-violet { --accent: var(--violet); --accent-fg: var(--white); }
.accent-pink { --accent: var(--pink); --accent-fg: var(--ink); }
.accent-orange { --accent: var(--orange); --accent-fg: var(--ink); }
.accent-yellow { --accent: var(--yellow); --accent-fg: var(--ink); }
.accent-cyan { --accent: var(--cyan); --accent-fg: var(--ink); }
.accent-bg { background: var(--accent, var(--lime)); color: var(--accent-fg, var(--ink)); }
.icon-bubble {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem;
  background: var(--accent, var(--lime)); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
}

/* ---------- badges / status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: var(--r-pill);
  border: var(--bw) solid var(--ink); font-size: var(--fs-xs); font-weight: 800; background: var(--white); color: var(--ink); max-width: 100%; line-height: 1.3; text-align: left;
}
.badge--done, .badge--completed { background: var(--green-soft); }
.badge--progress, .badge--in_progress { background: var(--yellow); }
.badge--todo, .badge--not_started { background: var(--white); }
.badge--critical { background: var(--red); color: var(--white); }
.badge--high { background: var(--orange); }
.badge--medium { background: var(--yellow); }
.badge--low { background: var(--violet-soft); }
.badge--na, .badge--not_applicable, .badge--skipped { background: #e7e7ef; color: var(--muted); border-style: dashed; }
.badge--overdue { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .label { font-weight: 800; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; background: var(--white); border: var(--bw) solid var(--ink);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--violet); outline-offset: 2px; box-shadow: 4px 4px 0 var(--lime); }
.input[aria-invalid="true"], .field--error .input, .field--error .select { border-color: var(--red); box-shadow: 2px 2px 0 var(--red); }
.field-error { color: var(--red); font-weight: 700; font-size: var(--fs-sm); }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--violet); flex: none; margin-top: .1rem; }
/* big selectable option cards (radio/checkbox) for onboarding */
.choice-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice > input + span { /* the card itself; nested spans inside stay plain */
  display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; min-height: 64px; font-weight: 800;
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform .12s, background .12s, box-shadow .12s;
}
.choice input:hover + span { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.choice input:checked + span { background: var(--lime); box-shadow: 4px 4px 0 var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 3px; }
.choice small { display: block; font-weight: 500; color: var(--muted); }
.choice > input + span > span { min-width: 0; }
.choice > input + span > span[aria-hidden="true"] { font-size: 1.5rem; line-height: 1; flex: none; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.alert { padding: .9rem 1.1rem; border: var(--bw) solid var(--ink); border-radius: var(--r-md); font-weight: 600; margin-bottom: 1rem; background: var(--white); box-shadow: var(--shadow-sm); }
.alert--ok { background: var(--green-soft); }
.alert--err { background: var(--red-soft); }
.alert--info { background: var(--violet-soft); }
.alert--warn { background: var(--yellow); }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.site-header--dark { background: var(--ink); color: var(--white); border-bottom-color: var(--ink-3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: -.04em; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--lime); border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; font-size: 1.1rem; transform: rotate(-6deg); color: var(--ink); }
.nav { display: none; gap: .25rem; align-items: center; }
.nav a { padding: .55rem .9rem; font-weight: 700; text-decoration: none; border-radius: var(--r-pill); border: var(--bw) solid transparent; font-size: var(--fs-sm); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.header-cta { display: none; gap: .6rem; align-items: center; }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: var(--bw) solid currentColor; border-radius: 14px; background: transparent; }
@media (min-width: 960px) { .nav, .header-cta { display: flex; } .menu-btn { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white); padding: 1.25rem var(--gutter) 2rem; display: none; overflow-y: auto; }
.drawer[data-open="true"] { display: block; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.drawer nav a { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.4rem); padding: .6rem 0; text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.drawer nav a:hover { color: var(--lime); }
.breadcrumb { font-size: var(--fs-sm); padding-block: 1rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before { /* retro grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.hero::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(109,59,255,.7), transparent 65%); }
.hero h1 { font-size: var(--fs-hero); margin-bottom: .35em; }
.hero .lead { color: #dedeea; }
.hero-pad { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.page-hero { background: var(--lime); border-bottom: var(--bw) solid var(--ink); padding-block: clamp(2.2rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--fs-2xl); margin-bottom: .3em; }
.page-hero--violet { background: var(--violet); color: var(--white); }
.page-hero--pink { background: var(--pink); }
.page-hero--yellow { background: var(--yellow); }
.page-hero--cyan { background: var(--cyan); }
.page-hero--orange { background: var(--orange); }
.float { animation: float 5s ease-in-out infinite; }
.float--slow { animation-duration: 8s; }
.float--delay { animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); } }

/* marquee (ticker) */
.marquee { background: var(--orange); border-block: var(--bw) solid var(--ink); overflow: hidden; transform: rotate(-1.2deg); margin-block: 1rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__item { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.6rem); padding: .8rem 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; color: var(--ink); }
.marquee__item::after { content: "✦"; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* credit-card style journey stickers (home hero) */
.card-stack { position: relative; min-height: 320px; display: grid; place-items: center; }
.pass { width: min(100%, 250px); aspect-ratio: 5/7; border-radius: 22px; border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 rgba(0,0,0,.6); padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); position: absolute; }
.pass--a { background: var(--violet); color: var(--white); transform: translateX(-52%) rotate(-10deg); }
.pass--b { background: var(--lime); transform: translateY(-14px) rotate(2deg); z-index: 2; }
.pass--c { background: var(--pink); transform: translateX(52%) rotate(11deg); }
.pass__chip { width: 38px; height: 28px; background: rgba(255,255,255,.85); border-radius: 6px; border: var(--bw) solid var(--ink); }
.pass strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; display: block; }

/* ---------- progress ---------- */
.progress { height: 18px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--r-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--lime), var(--lime) 10px, #b5ee1a 10px, #b5ee1a 20px); border-right: var(--bw) solid var(--ink); transition: width .8s var(--ease); }
.progress--thin { height: 12px; }
.ring { --p: 0; --size: 130px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--white) 0); border: var(--bw) solid var(--ink); position: relative; box-shadow: var(--shadow-sm); }
.ring::before { content: ""; position: absolute; inset: 14px; background: var(--paper); border-radius: 50%; border: var(--bw) solid var(--ink); }
.ring b { position: relative; font-family: var(--font-display); font-size: 1.6rem; }

/* ---------- tabs / accordion ---------- */
details.acc { border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: .85rem; }
details.acc summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 800; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
details.acc[open] summary::after { content: "–"; }
details.acc[open] { background: var(--paper-2); }
details.acc .acc__body { padding: 0 1.2rem 1.1rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tab { padding: .55rem 1.1rem; border: var(--bw) solid var(--ink); border-radius: var(--r-pill); font-weight: 800; background: var(--white); text-decoration: none; font-size: var(--fs-sm); }
.tab[aria-current="true"], .tab.is-active { background: var(--ink); color: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #dcdce8; padding-block: 4rem 6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-fine { border-top: 1px solid var(--ink-3); margin-top: 2.5rem; padding-top: 1.5rem; font-size: var(--fs-sm); color: #b7b7c8; }

/* ---------- app shell (student / consultant / admin) ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); }
.app__side { display: none; background: var(--ink); color: var(--white); padding: 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app__side .logo { margin-bottom: 1.5rem; color: var(--white); }
.side-nav a { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border-radius: var(--r-md); text-decoration: none; font-weight: 700; margin-bottom: .25rem; border: var(--bw) solid transparent; color: #e3e3ee; }
.side-nav a:hover { background: var(--ink-3); }
.side-nav a[aria-current="page"] { background: var(--lime); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--violet); }
.side-nav .group { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: #a8a8bb; margin: 1.25rem 0 .5rem 1rem; }
.app__main { min-width: 0; padding-bottom: 96px; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter); border-bottom: var(--bw) solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 40; }
.app__content { padding: clamp(1rem, 3vw, 2rem) var(--gutter); max-width: 1180px; margin-inline: auto; }
.app__title { font-size: var(--fs-xl); margin: 0; }
@media (min-width: 1000px) {
  .app { grid-template-columns: 260px minmax(0, 1fr); }
  .app__side { display: block; }
  .app__main { padding-bottom: 2rem; }
  .bottom-nav { display: none !important; }
}
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); display: flex; justify-content: space-around; padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); border-top: var(--bw) solid var(--ink); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .25rem; color: #d6d6e4; text-decoration: none; font-size: .72rem; font-weight: 800; border-radius: 12px; min-height: 56px; justify-content: center; }
.bottom-nav a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.bottom-nav .icon { width: 1.5rem; height: 1.5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--pink); border: var(--bw) solid var(--ink); font-family: var(--font-display); }

/* stat tiles */
.stat { color: var(--ink); background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); }

/* "next action" hero card */
.next-action { background: var(--ink); color: var(--white); border-radius: var(--r-lg); border: var(--bw) solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 8px 8px 0 var(--lime); position: relative; overflow: hidden; }
.next-action::after { content: "✦"; position: absolute; right: 1.2rem; top: .8rem; font-size: 2.2rem; color: var(--lime); }
.next-action h2 { font-size: var(--fs-xl); margin-bottom: .4em; }
.next-action p { color: #d4d4e2; }

/* task rows */
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-sm); margin-bottom: .75rem; }
.task.is-done { background: var(--green-soft); }
.task.is-done .task__title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.task__title { font-weight: 800; }
.task__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; font-size: var(--fs-xs); }
.tick { width: 34px; height: 34px; border-radius: 10px; border: var(--bw) solid var(--ink); background: var(--white); display: grid; place-items: center; }
.task.is-done .tick { background: var(--lime); }
@media (max-width: 640px) { .task { grid-template-columns: auto 1fr; } .task > :last-child { grid-column: 1 / -1; } }

/* journey timeline */
.timeline { position: relative; padding-left: 0; list-style: none; }
.stage { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.stage::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 3px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 12px); }
.stage:last-child::before { display: none; }
.stage__dot { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; border: var(--bw) solid var(--ink); background: var(--accent, var(--lime)); box-shadow: var(--shadow-sm); }
.stage.is-completed .stage__dot { background: var(--green-soft); }
.stage.is-na { opacity: .6; }

/* documents */
.doc-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: var(--white); margin-bottom: .6rem; flex-wrap: wrap; }
.doc-row__name { flex: 1 1 200px; font-weight: 800; }
.dropzone { border: 3px dashed var(--ink); border-radius: var(--r-lg); padding: 2rem 1rem; text-align: center; background: var(--paper-2); cursor: pointer; transition: background .15s; }
.dropzone:hover, .dropzone.is-over { background: var(--lime); }

/* product / service cards */
.product { display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.product__price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; }
.product ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.product li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-sm); }
.product li::before { content: "✓"; font-weight: 900; color: var(--green); }
.product .btn { margin-top: auto; }

/* tables */
.table-wrap { position: relative; overflow-x: auto; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-sm); }
.table th { text-align: left; background: var(--ink); color: var(--white); padding: .8rem 1rem; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.table td { padding: .85rem 1rem; border-top: 1px solid #d9d4c6; vertical-align: middle; }
.table tr:hover td { background: var(--paper); }

/* chat */
.chat { display: flex; flex-direction: column; gap: .9rem; }
.bubble { max-width: min(640px, 92%); padding: .9rem 1.1rem; border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-sm); }
.bubble--user { align-self: flex-end; background: var(--lime); border-bottom-right-radius: 4px; }
.bubble--bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.bubble .sources { font-size: var(--fs-xs); color: var(--muted); margin-top: .6rem; border-top: 1px dashed var(--muted); padding-top: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem .9rem; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); background: var(--white); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; }
.chip:hover { background: var(--yellow); }

/* prose for articles (also used by LLM-friendly content pages) */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.6em; }
.prose a { color: var(--violet); font-weight: 700; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-sm); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: var(--bw) solid var(--ink); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--lime); }
.verified { display: inline-flex; gap: .4rem; align-items: center; font-size: var(--fs-sm); font-weight: 700; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--green-soft); border: var(--bw) solid var(--ink); }

/* empty state */
.empty { text-align: center; padding: 3rem 1rem; border: 3px dashed var(--ink); border-radius: var(--r-lg); background: var(--paper-2); }
.empty .big { font-size: 3rem; }

/* toast (flash) */
.toast-wrap { position: fixed; top: 1rem; right: 1rem; left: 1rem; z-index: 200; display: grid; gap: .6rem; pointer-events: none; justify-items: end; }
.toast { pointer-events: auto; max-width: 420px; }

/* scroll reveal — opt-in via JS so content is visible without it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
.flex { display: flex; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .items-center { align-items: center; }
.hide-mobile { display: none; } @media (min-width: 700px) { .hide-mobile { display: initial; } }
.only-mobile { display: initial; } @media (min-width: 1000px) { .only-mobile { display: none; } }
.w-full { width: 100%; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
@media print { .site-header, .site-footer, .bottom-nav, .app__side, .marquee { display: none !important; } body { background: #fff; } }

/* mobile "More" sheet in the bottom bar (no-JS, <details>) */
.bottom-nav details.more { flex: 1; position: static; }
.bottom-nav details.more > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 56px; padding: .5rem .25rem; color: #d6d6e4; font-size: .72rem; font-weight: 800; border-radius: 12px; }
.bottom-nav details.more > summary::-webkit-details-marker { display: none; }
.bottom-nav details.more[open] > summary { background: var(--lime); color: var(--ink); }
.more__panel { position: fixed; left: .75rem; right: .75rem; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70; background: var(--ink); color: #fff; border: var(--bw) solid var(--lime); border-radius: var(--r-lg); padding: .75rem; max-height: 64vh; overflow-y: auto; box-shadow: 6px 6px 0 rgba(0,0,0,.4); }
.more__panel ul { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.more__panel li a { display: flex; align-items: center; gap: .6rem; padding: .75rem .8rem; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); border: var(--bw) solid var(--ink-3); min-height: 48px; }
.more__panel li a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.more__panel .btn { box-shadow: 3px 3px 0 var(--lime); }
