/* Vouch marketing site. One stylesheet, no web fonts. */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;          /* 16.8:1 on white */
  --text-2: #6e6e73;        /* 5.07:1 on white, 4.66:1 on #f5f5f7 */
  --border: #d2d2d7;
  --border-soft: #e5e5ea;
  --accent: #4f46d8;        /* links: 6.56:1 on white, 6.03:1 on #f5f5f7 */
  --accent-hover: #4338ca;  /* 7.90:1 on white */
  --button-bg: #4f46d8;     /* white text 6.56:1 */
  --button-bg-hover: #4338ca;
  --button-text: #ffffff;
  --focus: #4f46d8;
  --error: #c62828;         /* 5.62:1 on white */
  --success: #2e7d32;       /* 5.13:1 on white */
  --field-bg: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --frame-bar: #f5f5f7;
  --radius: 12px;
  --gutter: clamp(16px, 5vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --text: #f5f5f7;        /* 19.3:1 on black */
    --text-2: #a1a1a6;      /* 8.16:1 on black, 7.2:1 on #161617 */
    --border: #424245;
    --border-soft: #2c2c2e;
    --accent: #a5a8ff;      /* 9.64:1 on black */
    --accent-hover: #c4c6ff;
    --button-bg: #5e5ce6;   /* white text 5.06:1 */
    --button-bg-hover: #4f46d8;
    --focus: #a5a8ff;
    --error: #ff7b72;       /* 6.75:1 on #1c1c1e */
    --success: #7ee787;
    --field-bg: #1c1c1e;
    --shadow: none;
    --frame-bar: #1c1c1e;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus { outline: none; }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--focus);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type scale ----------
   Display 40 -> 64px, H2 32 -> 48px, H3 21px, lead 19 -> 24px, body 17px, small 15px */
.display {
  font-size: clamp(2.5rem, 1.55rem + 4.1vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h2, .section h2 {
  font-size: clamp(2rem, 1.45rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.h3, h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.1875rem, 1.02rem + 0.75vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.small, small { font-size: 0.9375rem; }
.muted { color: var(--text-2); }
.measure { max-width: 40rem; }
.measure-narrow { max-width: 34rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-alt { background: var(--bg-alt); }
.section > .wrap > h2 + .lead,
.section-head h2 + .lead,
.section-head h2 + p { margin-top: 16px; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { max-width: 44rem; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* Text and visual side by side */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide-visual { grid-template-columns: 5fr 7fr; }
  .split-reverse > :first-child { order: 2; }
}
.split-visual { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--button-bg-hover); color: var(--button-text); }
.button:focus-visible { border-radius: 999px; }
.button-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.button-secondary:hover { background: var(--bg-alt); color: var(--accent-hover); }
.section-alt .button-secondary:hover { background: var(--bg); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.center .button-row, .button-row.center { justify-content: center; }

.more-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.more-link::after { content: "\2009\203A"; }
.more-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { border-radius: 7px; }

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  margin-right: -12px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }

/* Small screens: disclosure panel */
@media (max-width: 999px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
  }
  .site-header.is-open .site-nav { display: block; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 1.1875rem;
    font-weight: 600;
  }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  .nav-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
  }
  .nav-actions .button { min-height: 48px; font-size: 1.0625rem; }
}

/* Large screens: inline nav */
@media (min-width: 1000px) {
  .menu-button { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 40px;
  }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--text);
    font-size: 0.9375rem;
    border-radius: 8px;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--accent);
    border-radius: 0;
  }
  .nav-actions { display: flex; align-items: center; gap: 20px; }
  .nav-signin {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
  }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 88px); }
.hero .lead { margin-top: 20px; }
.hero-center { text-align: center; }
.hero-center .display { max-width: 15ch; margin-inline: auto; }
.hero-center .lead { max-width: 36rem; margin-inline: auto; }
.hero-center .button-row { justify-content: center; }
.hero-note { margin-top: 16px; font-size: 0.9375rem; color: var(--text-2); }
.page-hero .display { max-width: 18ch; }
.page-hero .lead { max-width: 38rem; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 80px);
}
.hero-visual figure { margin: 0; }
.hero-visual figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-2);
}
@media (max-width: 699px) {
  .hero-visual .hide-small { display: none; }
}

/* ---------- Class flow (ordered steps) ---------- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: flow;
}
.flow li {
  counter-increment: flow;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.flow li::before {
  content: counter(flow);
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.flow h3 { font-size: 1.125rem; }
.flow p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (min-width: 1000px) { .flow-5 { grid-template-columns: repeat(5, 1fr); gap: 28px; } }
@media (min-width: 1000px) { .flow-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Two-column feature list ---------- */
.feature-list {
  display: grid;
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list > li,
.feature-list > div {
  padding-block: 28px;
  border-top: 1px solid var(--border);
}
.feature-list h3 + p { margin-top: 8px; color: var(--text-2); }
.feature-list dt { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.012em; }
.feature-list dd { margin: 8px 0 0; color: var(--text-2); }

/* ---------- Long-form step sections (How it works) ---------- */
.step-number {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
}
.step-block + .step-block { margin-top: clamp(72px, 10vw, 120px); }
.step-block h2, .step-block h3.h2 { margin-bottom: 16px; }
.step-block .lead + p, .step-block p + p { margin-top: 1em; }
.step-block .body { color: var(--text-2); }

.inline-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.inline-steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 16px 40px;
}
.inline-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  color: var(--text);
}

.check-list { margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--border-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Audience columns ---------- */
.audiences {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) { .audiences { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.audiences > div { padding-top: 24px; border-top: 2px solid var(--text); }
.audiences h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.audiences p { margin-top: 12px; color: var(--text-2); }
.audiences .more-link { margin-top: 8px; }

/* ---------- Roles table ---------- */
.roles { margin: 0; }
.roles > div {
  display: grid;
  gap: 4px 32px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
}
.roles > div:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .roles > div { grid-template-columns: 14rem 1fr; } }
.roles dt { font-weight: 600; }
.roles dd { margin: 0; color: var(--text-2); }

/* ---------- Callout ---------- */
.note {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.section-alt .note { background: var(--bg); }

/* ---------- Closing call to action ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 34rem; margin: 16px auto 0; color: var(--text-2); }
.cta .button-row { justify-content: center; }

/* ---------- Browser frame for screenshots ---------- */
.browser {
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--frame-bar);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.browser-bar b {
  flex: 1;
  margin-right: 46px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.browser img { width: 100%; background: #f5f5f7; }
.figure-caption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.browser-figure { margin: 0; }
@media (prefers-color-scheme: dark) {
  .browser { border-color: #48484a; }
  .browser img { border-top: 1px solid #3a3a3c; }
}

/* ---------- Phone frame and drawn app screens ---------- */
.phone {
  flex: none;
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border-radius: 48px;
  background: #1d1d1f;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .phone { background: #2c2c2e; box-shadow: 0 0 0 1px #48484a; }
}
.screen {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 38px;
  background: #f6f7fb;
  color: #1b1b21;
  font-family: Roboto, var(--font);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: left;
}
.screen svg { display: block; fill: currentColor; }
.sb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 10px 26px 0;
  font-size: 12px;
  font-weight: 600;
}
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sb-icons i { display: block; width: 14px; height: 8px; border-radius: 2px; background: #1b1b21; opacity: 0.85; }
.sb-icons i:first-child { width: 10px; }
.appbar { display: flex; align-items: center; gap: 22px; padding: 10px 18px 0; }
.appbar svg { width: 20px; height: 20px; }
.appbar-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.appbar-center { flex-direction: column; gap: 0; text-align: center; position: relative; }
.appbar-center .back { position: absolute; left: 18px; top: 10px; }
.appbar-sub { color: #3949ab; font-size: 11.5px; font-weight: 500; }

/* Lecturer: session active */
.s-course { margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 600; }
.s-timer { margin-top: 6px; text-align: center; font-size: 15px; letter-spacing: 0.18em; color: #45464f; font-variant-numeric: tabular-nums; }
.s-beacon {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 14px auto 0;
  border-radius: 50%;
  border: 1.5px solid #dcefdc;
  display: grid;
  place-items: center;
}
.s-beacon::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 2px solid #b9deb9;
}
.s-beacon span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 6px #e3f2e3, 0 0 0 8px #b9deb9;
  color: #fff;
}
.s-beacon svg { width: 38px; height: 38px; }
.s-count { margin-top: 14px; text-align: center; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.s-count-label { margin-top: 4px; text-align: center; font-size: 12.5px; color: #45464f; }
.s-chips { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 11px; font-size: 11px; font-weight: 600; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-green { background: #e5f3e6; color: #2e7d32; }
.chip-grey { background: #ebebef; color: #5d5e67; }
.s-actions { padding: 10px 16px 0; display: grid; gap: 8px; }
.open-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #b9deb9;
  border-radius: 12px;
  background: #e8f1ec;
}
.open-card svg { width: 20px; height: 20px; color: #2e7d32; flex: none; }
.open-card b { display: block; font-size: 12.5px; }
.open-card small { display: block; font-size: 11px; color: #45464f; }
.open-card em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: #3949ab; white-space: nowrap; }
.ob {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 1px solid #d5d7e2;
  border-radius: 10px;
  color: #3949ab;
  font-size: 12.5px;
  font-weight: 600;
}
.ob svg { width: 16px; height: 16px; }
.danger { background: #b71c1c; border-color: #b71c1c; color: #fff; }
.danger i { width: 9px; height: 9px; border-radius: 2px; background: #fff; }

/* Student: checked in */
.ci-mark {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 26px auto 0;
  border-radius: 50%;
  background: #e8f3e9;
}
.ci-mark span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #d0e8d1;
}
.ci-mark svg { width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: #2e7d32; color: #fff; }
.ci-title { margin-top: 18px; text-align: center; font-size: 26px; font-weight: 600; color: #2e7d32; letter-spacing: -0.01em; }
.ci-sub { margin-top: 6px; text-align: center; font-size: 14px; color: #303139; }
.ci-time { margin-top: 4px; text-align: center; font-size: 13px; color: #5d5e67; }
.ci-text { margin: 10px 26px 0; text-align: center; font-size: 11.5px; color: #5d5e67; }
.ci-card {
  margin: 16px 16px 0;
  padding: 14px;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  background: #fff;
}
.ci-card b { font-size: 13px; font-weight: 600; }
.ci-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ci-tiles div { padding: 10px; border-radius: 12px; background: #f1f2f7; }
.ci-tiles svg { width: 16px; height: 16px; color: #2e7d32; }
.ci-tiles .t-blue svg { color: #1e63c4; }
.ci-tiles small { display: block; margin-top: 6px; font-size: 10.5px; color: #5d5e67; }
.ci-tiles strong { display: block; font-size: 13px; font-weight: 600; }
.ci-buttons { position: absolute; left: 16px; right: 16px; bottom: 22px; display: grid; gap: 8px; }
.tonal { height: 42px; border: 0; background: #dde1ff; color: #1a237e; font-size: 13px; }

/* Student: dashboard */
.sd-head { padding: 14px 20px 0; }
.sd-head small { display: block; font-size: 13px; color: #45464f; }
.sd-head strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.alert {
  display: flex;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 10px 12px;
  border: 1px solid #f0c98a;
  border-radius: 14px;
  background: #fff1d0;
  color: #8a3b00;
}
.alert svg { width: 18px; height: 18px; flex: none; color: #b34700; }
.alert b { display: block; font-size: 12px; color: #a64200; }
.alert span { display: block; margin-top: 2px; font-size: 11px; }
.hero-card {
  position: relative;
  margin: 10px 16px 0;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b3550 0%, #12607e 60%, #1b85a5 100%);
  color: #fff;
}
.hero-card small { display: block; font-size: 11.5px; opacity: 0.8; }
.hero-card strong { display: block; margin-top: 4px; max-width: 150px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.hero-card .ring {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-size: 17px;
  font-weight: 700;
}
.hero-card .matric { display: block; margin-top: 10px; font-size: 11.5px; opacity: 0.8; letter-spacing: 0.02em; }
.hero-card .white-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  margin-top: 12px;
  border-radius: 10px;
  background: #fff;
  color: #3949ab;
  font-size: 13px;
  font-weight: 600;
}
.hero-card .white-btn svg { width: 15px; height: 15px; }
.snap-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px 0; }
.snap-head b { font-size: 16px; font-weight: 700; }
.snap-head span { color: #3949ab; font-size: 11.5px; font-weight: 600; }
.course {
  margin: 8px 16px 0;
  padding: 10px 12px;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  background: #fff;
}
.course-top { display: flex; justify-content: space-between; align-items: center; }
.course-top b { display: block; font-size: 12.5px; }
.course-top small { display: block; font-size: 11px; color: #5d5e67; }
.pct { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.pct-ok { background: #e3f2e4; color: #2e7d32; }
.pct-low { background: #fbe9df; color: #b34700; }
.bar { height: 5px; margin-top: 8px; border-radius: 3px; background: #ececf2; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.bar-ok i { background: #2e7d32; }
.bar-low i { background: #d9661f; }
.course-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: #5d5e67; }
.course-foot .low { color: #b34700; font-weight: 600; }
.course-foot .ok { color: #2e7d32; font-weight: 600; }

/* Gentle pulse on the lecturer beacon */
@media (prefers-reduced-motion: no-preference) {
  .s-beacon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid #b9deb9;
    animation: pulse 3s ease-out infinite;
  }
  @keyframes pulse {
    from { transform: scale(0.75); opacity: 0.9; }
    to { transform: scale(1.06); opacity: 0; }
  }
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: clamp(48px, 7vw, 72px); }
.faq-group h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 18px 40px 18px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
}
.faq details[open] summary::after { top: 30px; transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 22px; color: var(--text-2); max-width: 44rem; }
.faq .answer p + p { margin-top: 0.75em; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.faq-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.form-aside > * + * { margin-top: 16px; }
.other-ways { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); list-style: none; }
.other-ways li + li { margin-top: 16px; }
.other-ways a { font-weight: 600; }
.other-ways p { color: var(--text-2); font-size: 0.9375rem; }

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 18px;
  background: var(--bg-alt);
}
.field + .field { margin-top: 20px; }
.field-row { display: grid; gap: 20px; margin-top: 20px; }
.field-row .field + .field { margin-top: 0; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9375rem; }
.field .optional { font-weight: 400; color: var(--text-2); }
.field .hint { display: block; margin: -2px 0 8px; font-size: 0.9375rem; color: var(--text-2); }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem; /* keeps iOS from zooming */
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); border-radius: 10px; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { display: block; margin-top: 6px; color: var(--error); font-size: 0.9375rem; font-weight: 500; }
.field-error:empty { display: none; }
.form-actions { margin-top: 28px; }
.form-actions .button { width: 100%; }
@media (min-width: 600px) { .form-actions .button { width: auto; } }
.form-status { margin-top: 20px; }
.form-status:empty { display: none; }
.form-status .error-box {
  padding: 14px 16px;
  border: 1px solid var(--error);
  border-radius: 10px;
  color: var(--text);
}
.form-status .error-box strong { color: var(--error); }
.form-privacy { margin-top: 20px; font-size: 0.9375rem; color: var(--text-2); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: var(--bg-alt); }
.form-done h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.form-done p { margin-top: 12px; color: var(--text-2); }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 3px solid var(--focus); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  font-size: 0.9375rem;
}
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 2fr 5fr; gap: 64px; } }
.footer-brand p { margin-top: 12px; color: var(--text-2); max-width: 22rem; }
.footer-brand p + p { margin-top: 8px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(4, 1fr); } }
.footer-nav h2 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.footer-brand a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 44px; }
.file-note { white-space: nowrap; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-2); }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(80px, 14vw, 160px); }
.not-found ul { margin: 24px 0 0; padding: 0; list-style: none; }
.not-found li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.bar .w92 { width: 92%; }
.bar .w68 { width: 68%; }
@media (min-width: 1000px) { .flow-4 { grid-template-columns: repeat(4, 1fr); } }
.figure-stack > * + * { margin-top: 24px; }
.two-col { display: grid; gap: 48px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.two-col h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.02em; }
.two-col h2 + p { margin-top: 12px; }
.two-col p { color: var(--text-2); }
.two-col .more-link { margin-top: 8px; }
.mt-48 { margin-top: clamp(40px, 6vw, 64px); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
h1, h2, h3, .lead { text-wrap: balance; }

/* Phone screen fit (overrides) */
.screen { height: 610px; }
.s-beacon { width: 128px; height: 128px; margin-top: 10px; }
.s-beacon::before { inset: 11px; }
.s-beacon span { width: 82px; height: 82px; box-shadow: 0 0 0 5px #e3f2e3, 0 0 0 7px #b9deb9; }
.s-beacon svg { width: 34px; height: 34px; }
.s-count { margin-top: 12px; font-size: 42px; }
.s-chips { margin-top: 8px; }
.s-actions { padding-bottom: 16px; }
.ci-mark { width: 96px; height: 96px; margin-top: 16px; }
.ci-mark span { width: 64px; height: 64px; }
.ci-mark svg { width: 36px; height: 36px; padding: 5px; }
.ci-title { margin-top: 12px; font-size: 23px; }
.ci-sub { margin-top: 4px; }
.ci-time { margin-top: 2px; }
.ci-text { margin-top: 8px; }
.ci-card { margin-top: 12px; padding: 12px; }
.ci-tiles div { padding: 8px 10px; }
.ci-tiles small { margin-top: 4px; }
h1 + .lead, h2 + .lead, .h2 + .lead { margin-top: 16px; }
.open-card small { white-space: nowrap; }
.open-card { padding: 10px; gap: 8px; }
@media (max-width: 999px) {
  .site-header.is-open .site-nav { box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08); }
}

/* Drawn lecturer phone: let the check-in card shrink to the screen instead of overflowing it. */
.s-actions > * { min-width: 0; }
.open-card { gap: 8px; }
.open-card > div { min-width: 0; }
.open-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
