/* Atlas & Anchor — student application (onboarding + dashboard)
   Extends css/style.css. Same tokens, more functional density.
   The public site stays editorial; this layer is the product. */

/* ================= shared shell ================= */
.app-page { background: #f4f6fc; min-height: 100vh; padding-top: 84px; }

.app-wrap { display: grid; grid-template-columns: 246px 1fr; gap: 26px;
  width: min(1280px, 94%); margin: 0 auto; padding: 30px 0 70px; align-items: start; }

/* ---- sidebar ---- */
.app-side { position: sticky; top: 100px; background: #fff; border: 1px solid #e6e9f5;
  border-radius: 18px; padding: 14px; box-shadow: 0 10px 34px rgba(16,31,142,.06); }
.app-side .who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px;
  border-bottom: 1px solid #eef1fb; margin-bottom: 10px; }
.app-side .who .av { width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #d9b64a, #b8952e); color: #0b1668;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; }
.app-side .who b { display: block; color: var(--blue-deep); font-size: .9rem; line-height: 1.25; }
.app-side .who span { color: var(--muted); font-size: .74rem; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  font-size: .88rem; font-weight: 500; color: #46506a; transition: background .18s, color .18s; }
.app-nav a .ic { width: 18px; text-align: center; font-size: .95rem; flex: none; }
.app-nav a:hover { background: #f2f5fd; color: var(--blue); }
.app-nav a.on { background: var(--blue-deep); color: #fff; font-weight: 600; }
.app-nav a .pill { margin-left: auto; background: #e04b4b; color: #fff; font-size: .66rem;
  font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.app-nav a.on .pill { background: var(--gold); color: var(--blue-deep); }
.app-nav .sep { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9aa3bd; padding: 16px 12px 6px; font-weight: 700; }

/* ---- main column ---- */
.app-main { min-width: 0; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.app-head h1 { font-size: 1.65rem; font-weight: 700; color: var(--blue-deep); letter-spacing: -.3px; }
.app-head p { color: var(--muted); font-size: .92rem; margin-top: 5px; }

.card { background: #fff; border: 1px solid #e6e9f5; border-radius: 16px; padding: 22px;
  box-shadow: 0 8px 26px rgba(16,31,142,.05); }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: .82rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---- stat tiles ---- */
.stat { background: #fff; border: 1px solid #e6e9f5; border-radius: 14px; padding: 18px;
  box-shadow: 0 8px 26px rgba(16,31,142,.05); }
.stat .lbl { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; }
.stat .val { font-size: 1.75rem; font-weight: 800; color: var(--blue-deep); line-height: 1.15; margin-top: 6px; }
.stat .val small { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat.gold .val { color: #a8801d; }
.stat a.more { font-size: .76rem; font-weight: 700; color: var(--blue); }

/* ---- progress ----
   Named .pbar, not .bar: the site header's container is <div class="bar">,
   and any page loading both stylesheets would otherwise get a pale pill and
   overflow:hidden on its header, clipping the nav dropdown. */
.pbar { height: 8px; background: #eaeefb; border-radius: 99px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-mid), var(--blue));
  border-radius: 99px; transition: width .5s var(--ease); }
.pbar.gold > i { background: linear-gradient(90deg, #e2cd8a, var(--gold)); }

/* ---- chips / badges ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.chip.grey { background: #eef0f6; color: #5b6577; }
.chip.green { background: #e6f5ec; color: #1e7a45; }
.chip.gold { background: #faf3dd; color: #8a6d1d; }
.chip.red { background: #fdecec; color: #b23b3b; }
.chip.violet { background: #f0ecfc; color: #5b3fb8; }

/* ---- rows / lists ---- */
.row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f0f2fa; }
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
.row b { display: block; color: var(--blue-deep); font-size: .9rem; font-weight: 600; }
.row span.meta { color: var(--muted); font-size: .78rem; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); font-size: .88rem; }
.empty .big { font-size: 1.9rem; display: block; margin-bottom: 8px; opacity: .5; }

/* ---- buttons ---- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .86rem; cursor: pointer;
  padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent; transition: .2s var(--ease); }
.b-navy { background: var(--blue); color: #fff; }
.b-navy:hover { background: var(--blue-deep); }
.b-line { background: #fff; border-color: #d5dcf0; color: var(--blue-deep); }
.b-line:hover { border-color: var(--blue); color: var(--blue); }
.b-ghost { background: transparent; color: var(--muted); }
.b-ghost:hover { color: var(--blue); }
.b-sm { padding: 7px 13px; font-size: .78rem; border-radius: 8px; }
.b:disabled { opacity: .5; cursor: default; }
.b-danger { background: #fff; border-color: #f0d2d2; color: #b23b3b; }
.b-danger:hover { background: #fdecec; }

/* ---- forms ---- */
.f-lbl { display: block; font-weight: 600; font-size: .82rem; color: var(--blue-deep); margin: 0 0 7px; }
.f-in, .f-sel, .f-ta { width: 100%; padding: 12px 14px; border: 1.5px solid #dfe4f5; border-radius: 11px;
  font-family: inherit; font-size: .92rem; color: var(--ink); background: #fff; }
.f-in:focus, .f-sel:focus, .f-ta:focus { outline: none; border-color: var(--blue-mid);
  box-shadow: 0 0 0 4px rgba(67,83,198,.12); }
.f-hint { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.f-row { margin-bottom: 18px; }

/* selectable option tiles */
.opts { display: grid; gap: 10px; }
.opts.c2 { grid-template-columns: 1fr 1fr; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opt { text-align: left; font-family: inherit; cursor: pointer; background: #fff;
  border: 1.5px solid #dfe4f5; border-radius: 13px; padding: 15px 16px; transition: .18s var(--ease); }
.opt:hover { border-color: var(--blue-mid); }
.opt b { display: block; color: var(--blue-deep); font-size: .93rem; font-weight: 600; }
.opt span { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.opt.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(16,31,142,.08); }
.opt.on b { color: var(--blue); }

/* ================= onboarding ================= */
.ob-page { background: #f4f6fc; min-height: 100vh; padding: 96px 0 60px; }
.ob-shell { width: min(760px, 92%); margin: 0 auto; }
.ob-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ob-top .stepn { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.ob-top .skip { background: none; border: none; font-family: inherit; font-size: .82rem;
  color: var(--muted); cursor: pointer; text-decoration: underline; }
.ob-bar { height: 6px; background: #e4e9f8; border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.ob-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 99px; transition: width .45s var(--ease); }
.ob-card { background: #fff; border: 1px solid #e6e9f5; border-radius: 20px;
  padding: 34px; box-shadow: 0 16px 44px rgba(16,31,142,.08); }
.ob-card h2 { font-size: 1.45rem; font-weight: 700; color: var(--blue-deep); letter-spacing: -.3px; }
.ob-card .lede { color: var(--muted); font-size: .92rem; margin: 8px 0 24px; }
.ob-foot { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eef1fb; }
.ob-saved { font-size: .76rem; color: #1e7a45; opacity: 0; transition: opacity .3s; }
.ob-saved.show { opacity: 1; }

/* ================= applications ================= */
.pipe { display: flex; gap: 3px; margin: 12px 0 4px; }
.pipe i { flex: 1; height: 6px; border-radius: 99px; background: #e6eaf6; }
.pipe i.done { background: var(--blue-mid); }
.pipe i.now { background: var(--gold); }

.app-row { border: 1px solid #e6e9f5; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.app-row .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.app-row h4 { font-size: .98rem; font-weight: 700; color: var(--blue-deep); }
.app-row .meta { color: var(--muted); font-size: .79rem; margin-top: 2px; }

/* ================= documents ================= */
.doc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f2fa; }
.doc-row:last-child { border-bottom: none; }
.doc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft);
  color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem; }
.doc-row .grow b { font-size: .89rem; color: var(--blue-deep); display: block; }
.doc-row .grow span { font-size: .76rem; color: var(--muted); }

/* ================= tasks ================= */
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2fa; }
.task:last-child { border-bottom: none; }
.task .tick { width: 21px; height: 21px; border-radius: 6px; border: 1.7px solid #cdd5ea;
  background: #fff; cursor: pointer; flex: none; margin-top: 1px; position: relative; }
.task .tick.on { background: var(--blue); border-color: var(--blue); }
.task .tick.on::after { content: "✓"; position: absolute; inset: 0; color: #fff;
  font-size: .74rem; display: flex; align-items: center; justify-content: center; }
.task.done .grow b { text-decoration: line-through; color: var(--muted); font-weight: 500; }

/* ================= notifications ================= */
.nt { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f0f2fa; }
.nt:last-child { border-bottom: none; }
.nt .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; }
.nt.read .dot { background: #d8dcea; }
.nt .grow p { font-size: .87rem; color: var(--ink); line-height: 1.5; }
.nt.read .grow p { color: var(--muted); }
.nt .grow span { font-size: .74rem; color: var(--muted); }

/* ================= toast ================= */
.aa-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--blue-deep); color: #fff; padding: 13px 22px; border-radius: 11px;
  font-size: .87rem; font-weight: 500; box-shadow: 0 14px 40px rgba(7,16,71,.34);
  opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 5000; max-width: 90vw; }
.aa-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= homepage platform strip ================= */
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plat { background: #fff; border: 1px solid #e6e9f5; border-radius: 16px; padding: 26px 24px;
  box-shadow: 0 8px 26px rgba(16,31,142,.05); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex; flex-direction: column; }
.plat:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(16,31,142,.12); }
.plat .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 16px; }
.plat h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 8px; }
.plat p { color: var(--muted); font-size: .89rem; line-height: 1.6; margin-bottom: 16px; }
.plat .go { margin-top: auto; font-size: .84rem; font-weight: 700; color: var(--blue); }
.plat .go .arr { transition: transform .22s; display: inline-block; }
.plat:hover .go .arr { transform: translateX(4px); }
.plat .soon { margin-top: auto; font-size: .78rem; font-weight: 600; color: #9aa3bd; }

/* ================= mobile ================= */
@media (max-width: 940px) {
  .app-wrap { grid-template-columns: 1fr; gap: 16px; }
  .app-side { position: static; }
  .app-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .app-nav a { white-space: nowrap; padding: 9px 14px; }
  .app-nav .sep { display: none; }
  .app-side .who { border-bottom: none; padding-bottom: 10px; margin-bottom: 4px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid3, .plat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .app-page { padding-top: 74px; }
  .grid2, .grid3, .grid4, .plat-grid { grid-template-columns: 1fr; }
  .opts.c2, .opts.c3 { grid-template-columns: 1fr; }
  .ob-card { padding: 24px 20px; }
  .app-head h1 { font-size: 1.35rem; }
  .ob-foot { flex-direction: column-reverse; align-items: stretch; }
  .ob-foot .b { width: 100%; }
}
