/* ============================================================
   B4IOU — Know before you owe.
   Bold / disruptive / fintech-for-Gen-Z design system
   ============================================================ */

:root {
  /* surfaces — near-black, faint cool tint */
  --bg:        #07090A;
  --bg-2:      #0B0E0F;
  --surface:   #121619;
  --surface-2: #181D21;
  --surface-3: #20262B;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);

  /* ink */
  --text:      #F4F6F2;
  --text-2:    #AEB6B2;
  --text-3:    #757D79;

  /* the weapon: electric lime */
  --accent:        #CCFF00;
  --accent-press:  #B4E600;
  --accent-soft:   rgba(204,255,0,0.13);
  --accent-line:   rgba(204,255,0,0.34);
  --accent-ink:    #0A0E00;

  /* signals */
  --danger:    #FF5A47;
  --danger-soft: rgba(255,90,71,0.13);
  --warn:      #FFC23D;
  --good:      #57E3A0;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --app-w: 440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* desktop backdrop around the mobile app */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(204,255,0,0.05), transparent 60%);
}

#root { min-height: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- app shell : mobile column, centered on desktop ---------- */
.shell {
  width: 100%;
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0,0,0,0.6);
  overflow: clip;
}
@media (min-width: 520px) {
  body { padding: 0; display: flex; align-items: stretch; justify-content: center; }
  .shell { min-height: 100vh; margin: 0 auto; }
}

/* ---------- progress / top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 900; letter-spacing: -0.03em; font-size: 18px;
  cursor: pointer;
}
.brand .mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900; letter-spacing: -0.05em;
  box-shadow: 0 0 22px rgba(204,255,0,0.4);
}
.brand .pct { color: var(--accent); }
.step-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-3); text-transform: uppercase;
}
.progress {
  height: 3px; width: 100%; background: rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.progress > i {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

/* ---------- layout helpers ---------- */
.screen { flex: 1; display: flex; flex-direction: column; }
.pad { padding: 22px 18px 28px; }
.pad-lg { padding: 28px 18px 40px; }
.stack { display: flex; flex-direction: column; }
.grow { flex: 1; }
.spacer { flex: 1; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.dim { color: var(--text-3); }
h1.display {
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(44px, 15vw, 60px);
  text-transform: uppercase;
}
h2.title {
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.0;
  font-size: 30px;
}
h3.sub { font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.lede { color: var(--text-2); font-size: 15.5px; line-height: 1.5; font-weight: 450; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.figure { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  border: none; cursor: pointer; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.992); }
.btn-lg { font-size: 17px; padding: 17px 22px; width: 100%; }
.btn-md { font-size: 15px; padding: 13px 18px; }
.btn-sm { font-size: 13px; padding: 9px 14px; }

.btn-accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(204,255,0,0.2), 0 14px 40px rgba(204,255,0,0.22);
}
.btn-accent:hover { background: var(--accent-press); box-shadow: 0 0 0 1px var(--accent), 0 16px 46px rgba(204,255,0,0.32); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--text-3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.linkbtn {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  padding: 8px; text-decoration: none; display: inline-flex; align-items:center; gap:6px;
}
.linkbtn:hover { color: var(--text); }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.input {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-md);
  padding: 15px 15px; font-size: 16px; font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.01em; width: 100%;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); font-weight: 500; }
.input:focus { outline: none; border-color: var(--accent); background: var(--bg-2);
  box-shadow: 0 0 0 4px var(--accent-soft); }

/* searchable dropdown */
.combo { position: relative; }
.card-raised { position: relative; z-index: 60; }
.combo-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(56vh, 408px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.combo-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; background: var(--surface-3); border-bottom: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.combo-head-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); flex: 0 0 auto; }
.combo-head-hint svg { width: 13px; height: 13px; }
.combo-scroll { overflow-y: auto; overscroll-behavior: contain; }
.combo-empty { padding: 14px 15px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.combo-item {
  padding: 12px 15px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.combo-item:last-child { border-bottom: none; }
.combo-item:hover, .combo-item.active { background: var(--accent-soft); color: var(--accent); }
.combo-item .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.combo-item:hover .meta { color: var(--accent); }
.combo-free {
  flex: 0 0 auto; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 15px; font-size: 14.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
  border-top: 1px solid var(--accent-line);
}
.combo-free .meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); opacity: 0.85; font-weight: 400; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
}
.card-2 { background: var(--surface-2); }

/* value prop row */
.vp {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); transition: border-color .2s, transform .2s;
}
.vp:hover { border-color: var(--accent-line); transform: translateX(3px); }
.vp > div { display: flex; flex-direction: column; min-width: 0; }
.vp .ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  background: var(--accent-soft); display: grid; place-items: center; font-size: 20px;
}
.vp .vp-t { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; line-height: 1.18; }
.vp .vp-d { color: var(--text-3); font-size: 12.5px; margin-top: 4px; line-height: 1.35; }

/* chips / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--text-2); text-transform: uppercase;
}
.pill.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.pill.danger { background: var(--danger-soft); border-color: rgba(255,90,71,0.35); color: var(--danger); }
.pill.good { background: rgba(87,227,160,0.12); border-color: rgba(87,227,160,0.35); color: var(--good); }

/* segmented choice cards (aid step) */
.choice {
  text-align: left; width: 100%; background: var(--surface); cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  transition: border-color .2s, background .2s, transform .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.choice:hover { border-color: var(--accent-line); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice .c-top { display: flex; align-items: center; justify-content: space-between; }
.choice .c-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-3); text-transform: uppercase; white-space: nowrap;
}
.choice.sel .c-num { color: var(--accent); }
.choice .c-title { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.choice .c-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.radio-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2);
  display: grid; place-items: center; flex: 0 0 auto;
}
.choice.sel .radio-dot { border-color: var(--accent); }
.choice.sel .radio-dot::after { content:''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* question block */
.qblock { display: flex; flex-direction: column; gap: 11px; }
.qlabel { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.25; }
.qhint { color: var(--text-3); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.opt-grid { display: grid; gap: 9px; }
.opt {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-md); padding: 13px 15px; cursor: pointer;
  font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--accent-line); }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.opt .tick { opacity: 0; }
.opt.sel .tick { opacity: 1; }

/* upload */
.upload {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 30px 20px; text-align: center; cursor: pointer; background: var(--surface);
  transition: border-color .2s, background .2s;
}
.upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload.has { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }

/* ---------- report ---------- */
.report-head { padding: 22px 18px 8px; }
.cmp-grid { display: grid; gap: 12px; }
.cmp-row {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.school-col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; position: relative; overflow: hidden;
}
.school-col.winner { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-line), 0 12px 40px rgba(204,255,0,0.08); }
.metric-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.metric-row:last-child { border-bottom: none; }
.metric-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; }
.metric-row .v { font-family: var(--font-mono); font-weight: 700; font-size: 16px; text-align: right; }
.metric-row .v.big { font-size: 22px; }
.v.pos { color: var(--good); }
.v.neg { color: var(--danger); }
.v.accent { color: var(--accent); }

.watermark {
  position: relative; border: 1px solid var(--accent-line);
  background: repeating-linear-gradient(135deg, rgba(204,255,0,0.05) 0 14px, transparent 14px 28px);
  border-radius: var(--r-md); padding: 13px 16px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em;
}
.locked {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.locked .blurred { filter: blur(7px); opacity: 0.5; pointer-events: none; user-select: none; padding: 18px; }
.locked .lock-over {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--bg) 40%, transparent), color-mix(in srgb, var(--bg) 86%, transparent));
}
.lock-over .lk { font-weight: 800; font-size: 15px; }
.lock-over .lk-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* ---------- paywall tiers ---------- */
.tier {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px;
  background: var(--surface); position: relative; cursor: pointer;
  transition: border-color .2s, transform .15s, background .2s;
}
.tier:hover { border-color: var(--accent-line); }
.tier.sel { border-color: var(--accent); background: var(--accent-soft); }
.tier.feat { box-shadow: 0 14px 50px rgba(204,255,0,0.1); }
.tier .badge {
  position: absolute; top: -11px; right: 16px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.tier .badge.alt { background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); }
.tier .price { display: flex; align-items: baseline; gap: 6px; }
.tier .price .amt { font-weight: 900; font-size: 38px; letter-spacing: -0.04em; }
.tier .price .cur { font-weight: 900; font-size: 22px; color: var(--text-2); }
.feat-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.feat-list li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.feat-list .ck { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.feat-list .plus { color: var(--accent); font-weight: 800; }

/* stripe placeholder */
.stripe-box {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px;
  background: var(--bg-2); display: flex; flex-direction: column; gap: 12px;
}
.stripe-field {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 14px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; justify-content: space-between;
}

/* loading */
.loader-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; flex: 1; padding: 40px 24px; text-align: center; }
.spinner {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(204,255,0,0.15); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-tick { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); min-height: 18px; }

/* misc */
.divider { height: 1px; background: var(--line); margin: 0; border: none; }
.kicker-bar { display: flex; align-items: center; gap: 10px; }
.kicker-bar .ln { flex: 1; height: 1px; background: var(--line); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px;
  padding: 12px 18px; border-radius: 999px; z-index: 100;
  box-shadow: 0 14px 40px rgba(204,255,0,0.3);
  animation: toastin .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 14px); } }

/* entrance */
.fade-up { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.fade-up.d1 { animation-delay: .06s; }
.fade-up.d2 { animation-delay: .12s; }
.fade-up.d3 { animation-delay: .18s; }
.fade-up.d4 { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }

/* sticky footer cta */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 30;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}

/* error note */
.err-note {
  border: 1px solid rgba(255,90,71,0.4); background: var(--danger-soft);
  color: var(--danger); border-radius: var(--r-md); padding: 12px 14px;
  font-size: 13px; font-family: var(--font-mono);
}

/* protective callout */
.callout {
  border-radius: var(--r-md); padding: 14px 16px; border: 1px solid var(--line-2);
  background: var(--surface);
}
.callout .callout-h {
  display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px;
  letter-spacing: -0.01em; margin-bottom: 7px;
}
.callout p { font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.callout.warn { border-color: rgba(255,194,61,0.42); background: rgba(255,194,61,0.07); }
.callout.warn .callout-h { color: var(--warn); }
.callout.danger { border-color: rgba(255,90,71,0.42); background: var(--danger-soft); }
.callout.danger .callout-h { color: var(--danger); }
.callout.accent { border-color: var(--accent-line); background: var(--accent-soft); }
.callout.accent .callout-h { color: var(--accent); }

/* inside-the-PDF grid */
.inside-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.inside-item {
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  color: var(--text-2);
}
.inside-item .ck { color: var(--accent); flex: 0 0 auto; display: inline-flex; }

/* landing legal footer */
.site-foot { margin-top: 26px; padding: 18px 0 6px; border-top: 1px solid var(--line); }
.site-foot p { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.site-foot a { color: var(--accent); text-decoration: none; }
.site-foot .copy { font-family: var(--font-mono); font-size: 10.5px; margin-top: 8px; letter-spacing: 0.02em; }

/* ---------- report preview overlay ---------- */
.preview-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,6,7,0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: stretch; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  animation: ovin .22s ease;
}
@keyframes ovin { from { opacity: 0; } to { opacity: 1; } }
.preview-panel {
  width: 100%; max-width: 620px; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  animation: panelin .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes panelin { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); flex: 0 0 auto;
}
.preview-title { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.preview-title .mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.preview-title b { font-size: 15px; letter-spacing: -0.02em; }
.preview-x {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s;
}
.preview-x:hover { background: var(--danger-soft); color: var(--danger); }
.preview-frame {
  flex: 1 1 auto; width: 100%; border: 0; background: #fff;
  min-height: 0;
}
.preview-actions {
  display: flex; gap: 10px; padding: 12px 14px 4px; flex: 0 0 auto;
  background: var(--surface-2); border-top: 1px solid var(--line);
}
.preview-2nd { flex: 0 0 auto; width: 54px; padding-left: 0; padding-right: 0; }
.preview-hint {
  font-size: 10.5px; line-height: 1.5; color: var(--text-3);
  padding: 8px 16px 12px; background: var(--surface-2);
}
.preview-hint b { color: var(--text-2); }

/* scrollbars */
.combo-scroll::-webkit-scrollbar { width: 10px; }
.combo-scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border: 2px solid var(--surface-2); border-radius: 8px; }
.combo-scroll::-webkit-scrollbar-thumb:hover { background: var(--line-2); }
.combo-scroll { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }

/* ---------- honesty / verification UI ---------- */
.verify-banner {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(255,194,61,0.42); background: rgba(255,194,61,0.08);
  border-radius: var(--r-md); padding: 14px 16px;
}
.verify-banner .vb-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: var(--warn);
  background: rgba(255,194,61,0.14);
}
.verify-banner .vb-h { font-weight: 800; font-size: 13.5px; letter-spacing: -0.01em; color: var(--warn); }
.verify-banner p { font-size: 12px; line-height: 1.5; color: var(--text-2); margin-top: 4px; }
.verify-banner b { color: var(--text); }

.est-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn);
  background: rgba(255,194,61,0.14); border-radius: 5px;
  padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.scorecard-link {
  display: inline-block; margin-top: 10px; font-family: var(--font-mono);
  font-size: 11px; line-height: 1.4; color: var(--accent); text-decoration: none;
}
.scorecard-link:hover { text-decoration: underline; }

/* accreditation verification line — neutral "verify", never a green tick */
.accred-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.accred-line + .accred-line { border-top: 1px solid var(--line); }
.accred-ic {
  flex: 0 0 auto; margin-top: 1px; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; color: var(--warn); background: rgba(255,194,61,0.14);
}
.accred-ic[data-status="not-required"] { color: var(--text-3); background: var(--surface-3); }
.accred-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.accred-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.accred-acc { font-weight: 800; font-size: 13px; letter-spacing: -0.01em; color: var(--text); }
.accred-badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warn); background: rgba(255,194,61,0.14); border-radius: 5px; padding: 2px 6px;
}
.accred-badge.muted { color: var(--text-3); background: var(--surface-3); }
.accred-guide { font-size: 12px; color: var(--text-2); line-height: 1.45; margin-top: 4px; }
.accred-link {
  display: inline-block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 11px; color: var(--accent); text-decoration: none;
}
.accred-link:hover { text-decoration: underline; }

/* consent row on email captures */
.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 11px; cursor: pointer; }
.consent input { flex: 0 0 auto; margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.consent span { font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
.consent a { color: var(--accent); text-decoration: none; }
.consent a:hover { text-decoration: underline; }

/* ---------- live College Scorecard search ---------- */
.sc-spin {
  display: inline-block; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--accent-line); border-top-color: var(--accent);
  animation: sc-rot 0.7s linear infinite; vertical-align: middle;
}
@keyframes sc-rot { to { transform: rotate(360deg); } }
.sc-matched {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 11.5px; font-weight: 700; color: var(--accent);
}
.sc-matched svg { width: 14px; height: 14px; }
.sc-loading { margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* a cost cell whose value the institution didn't report to the feds */
.v.nr {
  font-family: var(--font-mono); font-size: 11px !important; font-weight: 500;
  color: var(--text-3); text-align: right; line-height: 1.3; max-width: 150px;
}

/* the required College Scorecard attribution at the bottom of every report */
.data-source-note {
  font-size: 10.5px; line-height: 1.5; color: var(--text-3);
  text-align: center; padding: 14px 6px 2px; border-top: 1px solid var(--line);
  margin-top: 6px;
}

/* "for-profit" tag in the live school dropdown */
.own-tag {
  display: inline-block; margin-left: 7px; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn); background: rgba(255,194,61,0.14);
  border-radius: 4px; padding: 1px 5px; vertical-align: middle;
}

/* institutional-grant nudge in the cost breakdown */
.grant-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 11px;
  padding: 9px 11px; border-radius: 10px;
  background: rgba(125,224,90,0.07); border: 1px solid var(--accent-line);
  font-size: 11.5px; line-height: 1.45; color: var(--text-2);
}
.grant-note svg { flex: 0 0 auto; margin-top: 1px; width: 13px; height: 13px; color: var(--accent); }
.grant-note b { color: var(--text); }

/* cited Tier-5 ownership correction (stale federal classification) */
.own-override {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.own-override-h { font-size: 12px; color: var(--text); margin-bottom: 4px; }
.own-override-h b { color: var(--accent); }
.own-override p { font-size: 11.5px; line-height: 1.45; color: var(--text-3); margin: 0 0 6px; }
.own-override a { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); text-decoration: none; }
.own-override a:hover { text-decoration: underline; }

/* sibling-campus program-aggregation note under the program field */
.prog-note {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 7px;
  font-size: 10.5px; line-height: 1.4; color: var(--text-3);
}
.prog-note svg { flex: 0 0 auto; margin-top: 1px; width: 12px; height: 12px; color: var(--accent); }

/* ---------- school-admin correction entry point ---------- */
.correction-link {
  display: flex; align-items: center; gap: 7px; width: 100%;
  margin-top: 12px; padding: 9px 11px; border-radius: 9px;
  background: transparent; border: 1px dashed var(--line);
  color: var(--text-3); font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.02em; cursor: pointer; text-align: left;
  transition: border-color .15s, color .15s, background .15s;
}
.correction-link:hover { border-color: var(--accent-line); color: var(--accent); background: rgba(125,224,90,0.05); }
.correction-link svg { flex: 0 0 auto; width: 13px; height: 13px; }

/* ---------- correction modal ---------- */
.cm-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 18px; background: rgba(8,10,8,0.78); backdrop-filter: blur(4px);
  animation: cm-fade .18s ease;
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
.cm {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  animation: cm-rise .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes cm-rise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cm-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center;
}
.cm-x:hover { color: var(--text); border-color: var(--text-3); }
.cm-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cm-eyebrow svg { width: 13px; height: 13px; }
.cm-head h3 { font-size: 19px; letter-spacing: -0.02em; margin: 9px 0 6px; line-height: 1.15; }
.cm-sub { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.cm-body { margin-top: 16px; display: flex; flex-direction: column; gap: 13px; }
.cf { display: flex; flex-direction: column; gap: 5px; }
.cf-l { font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: 0.01em; }
.cf-h { font-size: 10.5px; line-height: 1.4; color: var(--text-3); }
.cm-ta { resize: vertical; min-height: 64px; font-family: inherit; line-height: 1.45; }
.cm-bad { border-color: var(--bad, #e5604d) !important; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.cm-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }
.cm-divider::before, .cm-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cm-divider span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.cm-body .btn { margin-top: 4px; }
.cm-fine { font-size: 10.5px; line-height: 1.45; color: var(--text-3); text-align: center; }

/* confirmation state */
.cm-done { text-align: center; padding: 6px 4px; }
.cm-done-ic { width: 46px; height: 46px; border-radius: 50%; margin: 4px auto 12px; display: grid; place-items: center; background: rgba(125,224,90,0.14); color: var(--accent); }
.cm-done-ic svg { width: 22px; height: 22px; }
.cm-done h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.cm-done > p { font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.cm-vl { margin: 16px 0; padding: 13px 14px; border-radius: 12px; background: rgba(125,224,90,0.06); border: 1px solid var(--accent-line); text-align: left; }
.cm-vl-h { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; color: var(--accent); margin-bottom: 5px; }
.cm-vl-h svg { width: 14px; height: 14px; }
.cm-vl p { font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 440px) { .cm-row { grid-template-columns: 1fr; } }
