/* ============================================================
   SIH 2026 - Kumaraguru  |  light theme
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #f4f7fd;
  --ink: #0f1e3d;
  --ink-soft: #33415c;
  --muted: #5f6f8c;
  --line: #e4eaf4;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --saffron: #f97316;
  --green: #12a150;
  --sky: #0ea5e9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 39, 75, .08);
  --shadow-sm: 0 4px 14px rgba(24, 39, 75, .06);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --done: #12a150;
  --active: #4f46e5;
  --locked: #b3bed4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.14; font-family: var(--font-display); letter-spacing: -.01em; text-wrap: balance; }

/* ---------- entrance animations ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ringDraw { from { stroke-dashoffset: var(--circ); } }
.rise { animation: riseIn .5s cubic-bezier(.2,.7,.3,1) both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .19s; } .rise-4 { animation-delay: .26s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-1, .rise-2, .rise-3, .rise-4 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: linear-gradient(135deg, var(--saffron), var(--brand));
  color: #fff; padding: 5px 10px; border-radius: 10px; font-size: 14px; letter-spacing: .5px;
}
.brand-text { color: var(--muted); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--ink-soft); margin-left: 18px; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 10px; }
.nav-cta:hover { background: var(--brand); }

main { }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- generic ---------- */
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 10px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 62ch; margin: 0 0 34px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-weight: 700; border: 1.5px solid transparent; cursor: pointer; font-size: 15px; transition: transform .12s, box-shadow .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(900px 500px at 88% -8%, rgba(124, 58, 237, .10), transparent 60%),
    radial-gradient(700px 460px at 5% 0%, rgba(249, 115, 22, .10), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 78px 0 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-soft); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 30px; margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 161, 80, .18); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.5px; margin: 0 0 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--saffron), var(--brand) 55%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 54ch; margin: 0 0 28px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(24,39,75,.12)); }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat .n { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #fff; line-height: 1; }
.stat .n .u { color: var(--saffron); }
.stat .l { color: #b9c4dd; font-size: 13px; font-weight: 600; margin-top: 8px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.ico-blue { background: rgba(79,70,229,.12); color: var(--brand); }
.ico-saf { background: rgba(249,115,22,.14); color: var(--saffron); }
.ico-grn { background: rgba(18,161,80,.14); color: var(--green); }
.ico-sky { background: rgba(14,165,233,.14); color: var(--sky); }
.ico svg { width: 26px; height: 26px; }

/* ---------- process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--brand), var(--green)); border-radius: 3px; }
.tl-step { text-align: center; padding: 0 14px; position: relative; }
.tl-node { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); color: var(--brand); font-weight: 800; font-size: 20px; display: grid; place-items: center; margin: 0 auto 16px; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.tl-step h3 { font-size: 17px; margin: 0 0 6px; }
.tl-step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- data viz (skills in demand) ---------- */
.viz { display: grid; gap: 12px; }
.viz-row { display: grid; grid-template-columns: 210px 1fr 48px; align-items: center; gap: 14px; }
.viz-row .lbl { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.viz-track { background: var(--surface-2); border-radius: 20px; height: 16px; overflow: hidden; border: 1px solid var(--line); }
.viz-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.viz-row .val { font-weight: 800; color: var(--brand); text-align: right; }

/* ---------- themes grid ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.theme-pill { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.theme-pill .em { font-size: 20px; }

/* ---------- org chips ---------- */
.org-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.org-chip { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px; font-weight: 600; font-size: 14px; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.org-chip b { color: var(--brand); }

/* ---------- benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.benefit { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.benefit .bico { font-size: 26px; }
.benefit h3 { margin: 0 0 4px; font-size: 16px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- big CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 24px; padding: 54px 40px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; }
.cta-band p { color: #e6e2ff; font-size: 18px; margin: 0 0 26px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; box-shadow: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 24px; text-align: center; color: var(--muted); font-size: 14px; background: var(--bg-soft); }

/* ============================================================
   inner pages: prose, forms, journey, problems, submissions
   ============================================================ */
.prose { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.prose.narrow { max-width: 560px; }
.prose h1 { font-size: clamp(28px, 4vw, 42px); }
.lead { font-size: 19px; color: var(--ink-soft); }

.messages { max-width: 820px; margin: 16px auto 0; padding: 0 24px; }
.msg { padding: 12px 18px; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.msg-success { border-color: rgba(18,161,80,.4); background: #f0fdf5; }
.msg-error { border-color: rgba(220,60,60,.4); background: #fef2f2; }
.msg-info { border-color: rgba(14,165,233,.4); background: #f0f9ff; }

.stack { display: grid; gap: 16px; margin-top: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.field input, .field select, .field textarea {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  padding: 12px 14px; border-radius: 11px; font-size: 15px; font-family: inherit; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.field textarea { resize: vertical; }
.err { color: #d64545; font-size: 13px; }

.chips-field { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.chips-field legend { padding: 0 8px; color: var(--ink-soft); font-weight: 700; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { display: none; }
.chip-check span { display: inline-block; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-soft); padding: 7px 13px; border-radius: 20px; font-size: 13px; }
.chip-check input:checked + span { background: rgba(79,70,229,.12); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.chip-check.inline { display: flex; gap: 10px; align-items: flex-start; }
.chip-check.inline span { background: none; border: none; padding: 0; color: var(--ink); }
.edge-box { background: #fffaf5; border: 1.5px dashed var(--saffron); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }

.nudge { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 20px 0; font-weight: 600; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 24px 0; }
.jstep { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.jstep.done { border-left-color: var(--green); }
.jstep h3 { margin: 0 0 4px; font-size: 15px; }
.jstep p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

.choice-list { display: grid; gap: 10px; margin: 14px 0; }
.choice-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.choice-row .rank { font-size: 22px; font-weight: 800; color: var(--brand); }
.choice-row p { margin: 4px 0 0; font-size: 13px; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.inline-form input, .inline-form select { background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 11px 14px; border-radius: 11px; }
.rank-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow-sm); }
.btn-row { display: flex; gap: 12px; }

.warn-box { background: #fffaf0; border: 1px solid rgba(249,115,22,.4); border-radius: 14px; padding: 14px 18px; }
.ok-box { background: #f0fdf5; border: 1px solid rgba(18,161,80,.4); border-radius: 14px; padding: 14px 18px; color: var(--green); font-weight: 600; }

.readiness { margin: 18px 0; }
.readiness-bar { height: 14px; background: var(--surface-2); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.readiness-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--green)); transition: width .3s; }

/* ---------- problem browser ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.filters input, .filters select { background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 11px 14px; border-radius: 11px; font-size: 15px; }
.filters input[type=search] { flex: 1; min-width: 220px; }
.active-tag { color: var(--muted); }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: 1120px; margin: 8px auto 0; padding: 0 24px; }
.ps-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.ps-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(79,70,229,.35); }
.ps-card-top { display: flex; justify-content: space-between; align-items: center; }
.ps-num { color: var(--muted); font-size: 13px; font-weight: 700; }
.ps-cat { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.ps-cat-software { background: rgba(79,70,229,.12); color: var(--brand); }
.ps-cat-hardware { background: rgba(18,161,80,.14); color: var(--green); }
.ps-card h3 { font-size: 16px; margin: 2px 0; line-height: 1.35; }
.ps-org { color: var(--muted); font-size: 13px; margin: 0; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.ps-meta { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; background: #fff; }
.pill-heat { color: var(--green); border-color: rgba(18,161,80,.4); }
.pill-warn { color: var(--saffron); border-color: rgba(249,115,22,.4); }
.why { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 3px; }
.why li { font-size: 12px; color: var(--green); }
.why li::before { content: "\2713  "; }
.note { color: var(--muted); max-width: 1120px; margin: 24px auto 0; padding: 0 24px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .timeline::before { display: none; }
  .viz-row { grid-template-columns: 130px 1fr 40px; }
  .row { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 12px; font-size: 14px; }
}

/* ---------- smart filters ---------- */
.smart-filters { margin: 18px 0 4px; display: grid; gap: 12px; }
.sf-search input { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 16px; box-shadow: var(--shadow-sm); }
.sf-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.sf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sf-row select { background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 14px; font-size: 14px; color: var(--ink); box-shadow: var(--shadow-sm); }
.sf-row select:focus { outline: none; border-color: var(--brand); }
.sf-check { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); cursor: pointer; }

/* ---------- dashboard onboarding ---------- */
.onboard { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #e0e3f5; border-radius: 18px; padding: 26px 28px; margin: 20px 0 8px; box-shadow: var(--shadow-sm); }
.onboard-ico { font-size: 40px; line-height: 1; }
.onboard h2 { margin: 0 0 6px; font-size: 22px; }
.onboard p { color: var(--ink-soft); margin: 0 0 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 14px; gap: 14px; }
.section-head h2 { margin: 0; }
@media (max-width: 560px) { .onboard { flex-direction: column; gap: 12px; } }

/* ---------- playbook (vertical numbered process) ---------- */
.playbook { display: grid; gap: 0; margin-top: 24px; max-width: 760px; }
.pb-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; position: relative; padding-bottom: 26px; }
.pb-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 52px; bottom: 0; width: 2px; background: linear-gradient(var(--brand), rgba(79,70,229,.15)); }
.pb-n { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(79,70,229,.3); z-index: 1; }
.pb-body { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.pb-body h3 { margin: 0 0 5px; font-size: 18px; }
.pb-body p { margin: 0; color: var(--muted); }

/* ---------- team role cards ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); position: relative; transition: transform .15s, box-shadow .15s; }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; }
.role-tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; color: var(--brand); background: rgba(79,70,229,.1); border-radius: 20px; padding: 3px 10px; }
.role h3 { margin: 0 0 5px; font-size: 17px; }
.role p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- roadmap stepper ---------- */
.roadmap { display: flex; gap: 4px; margin: 0 0 28px; overflow-x: auto; padding-bottom: 4px; }
.rm-step { flex: 1; min-width: 110px; text-align: center; position: relative; }
.rm-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 60%; right: -40%; height: 2px; background: var(--line); }
.rm-step.done:not(:last-child)::after { background: var(--green); }
.rm-dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 800; display: grid; place-items: center; margin: 0 auto 8px; position: relative; z-index: 1; font-size: 14px; }
.rm-step.done .rm-dot { background: var(--green); border-color: var(--green); color: #fff; }
.rm-step.active .rm-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.18); }
.rm-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.rm-step.active .rm-label { color: var(--brand); }
.rm-step.done .rm-label { color: var(--ink-soft); }

/* ---------- choices picker ---------- */
.why-box { background: #eef2ff; border: 1px solid #dfe3f7; border-radius: 14px; padding: 16px 20px; margin: 6px 0 22px; color: var(--ink-soft); }
.why-box strong { color: var(--ink); }
.small { font-size: 13px; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.picker-find, .picker-picks { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.picker h3 { margin: 0 0 12px; font-size: 16px; }
.match-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.match-chip { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; cursor: pointer; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); }
.match-chip:hover { border-color: var(--brand); }
.match-chip .plus { font-weight: 800; color: var(--brand); }
.match-chip.is-picked { background: #f0fdf5; border-color: rgba(18,161,80,.4); color: var(--green); }
.ps-search { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.ps-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.ps-results { margin-top: 10px; max-height: 380px; overflow-y: auto; display: grid; gap: 8px; }
.ps-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ps-rn { font-weight: 700; font-size: 12px; color: var(--muted); }
.ps-rt { font-size: 13px; margin-top: 2px; }
.btn-add { border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 8px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-add:hover { background: var(--brand); color: #fff; }
.btn-add:disabled { border-color: var(--line); color: var(--muted); background: var(--surface-2); cursor: default; }
.mini-cat { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 10px; }
.mini-software { background: rgba(79,70,229,.12); color: var(--brand); }
.mini-hardware { background: rgba(18,161,80,.14); color: var(--green); }
.picks { display: grid; gap: 12px; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.pick-head { display: flex; align-items: flex-start; gap: 10px; }
.pick-rank { font-size: 20px; font-weight: 800; color: var(--brand); }
.pick-title { flex: 1; font-size: 13px; line-height: 1.4; }
.pick-actions { display: flex; gap: 4px; }
.pick-actions button { border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 28px; height: 28px; cursor: pointer; color: var(--muted); }
.pick-actions button:hover { border-color: var(--brand); color: var(--brand); }
.pick-reason { width: 100%; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; font-family: inherit; font-size: 14px; resize: vertical; }
.pick-reason:focus { outline: none; border-color: var(--brand); }
@media (max-width: 760px) { .picker { grid-template-columns: 1fr; } }

/* ---------- interactive checklist ---------- */
.checklist { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow-sm); max-width: 760px; }
.cl-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cl-bar { flex: 1; height: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--green)); transition: width .3s; border-radius: 20px; }
.cl-pct { font-weight: 800; color: var(--brand); white-space: nowrap; }
.cl-group { margin-bottom: 18px; }
.cl-group h3 { font-size: 16px; margin: 0 0 10px; }
.cl-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.cl-item:hover { background: var(--surface-2); }
.cl-item input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.cl-item span { color: var(--ink-soft); }
.cl-item input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- solution workspace ---------- */
.ws-readiness { margin: 18px 0 8px; }
.ws-rtext { margin-top: 8px; font-size: 15px; }
.save-state { color: var(--green); font-weight: 700; margin-left: 4px; }
.ws-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ws-card.ws-edge { border-color: rgba(249,115,22,.4); }
.ws-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; gap: 12px; }
.ws-head h3 { margin: 0; font-size: 17px; }
.ws-body { padding: 0 20px 20px; display: grid; gap: 14px; }
.ws-card.collapsed .ws-body { display: none; }
.ws-tip { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; margin: 0; font-size: 14px; color: var(--ink-soft); }
.ws-edge .ws-tip { background: #fff7ed; }
.edge-flag { font-size: 11px; font-weight: 800; color: var(--saffron); background: rgba(249,115,22,.12); border-radius: 20px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.ws-badge { width: 74px; text-align: center; font-size: 11px; font-weight: 800; padding: 4px 0; border-radius: 20px; }
.ws-badge::after { content: "Empty"; }
.badge-empty { background: var(--surface-2); color: var(--muted); }
.badge-started { background: rgba(249,115,22,.14); color: var(--saffron); }
.badge-started::after { content: "Started"; }
.badge-strong { background: rgba(18,161,80,.14); color: var(--green); }
.badge-strong::after { content: "Strong ✓"; }

/* ---------- comments ---------- */
.comments-card .ws-head { cursor: default; }
.cmt-list { display: grid; gap: 12px; margin: 10px 0 16px; }
.cmt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.cmt-reviewer { background: #eef2ff; border-color: #dfe3f7; }
.cmt-meta { font-size: 13px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmt p { margin: 0; color: var(--ink-soft); }
.cmt-form { display: grid; gap: 10px; }
.cmt-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; }
.cmt-form textarea:focus { outline: none; border-color: var(--brand); }
.cmt-form-row { display: flex; gap: 10px; align-items: center; }
.cmt-form-row select { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; }

/* ---------- deadline / announcement banner ---------- */
.topbar { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: center;
  background: var(--ink); color: #fff; padding: 8px 20px; font-size: 13.5px; font-weight: 600; }
.topbar .tb-dl { color: #ffd8a8; }
.topbar .tb-dl.closed { color: #ff9c9c; }

/* ---------- decision flags ---------- */
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.flag { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--line); }
.flag-good { background: rgba(18,161,80,.12); color: var(--green); border-color: rgba(18,161,80,.35); }
.flag-warn { background: rgba(220,65,65,.1); color: #cf3d3d; border-color: rgba(220,65,65,.32); }
.flag-info { background: var(--surface-2); color: var(--muted); }

/* ---------- inspire / assist panel ---------- */
.inspire { background: linear-gradient(135deg, #eef2ff, #f6f3ff); border: 1px solid #e0e3f5; border-radius: 16px; padding: 20px 24px; }
.inspire-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inspire-head h2 { margin: 0; font-size: 19px; }
.inspire-ai { background: #fff; border-radius: 10px; padding: 12px 14px; }
.insp-q { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--brand); }
.insp-q strong { color: var(--ink); }
.insp-q p { margin: 2px 0 0; }
.insp-hints { margin: 12px 0 0; padding-left: 18px; color: var(--saffron); font-weight: 600; }
:root[data-theme="dark"] .inspire, :root:not([data-theme="light"]) .inspire { }

/* ---------- reviewer scorecard ---------- */
.scorecard { display: grid; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.score-row > span { font-weight: 600; font-size: 14px; }
.score-dots { display: flex; gap: 6px; }
.score-dots label { cursor: pointer; }
.score-dots input { display: none; }
.score-dots span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: 13px; }
.score-dots input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* PS card title link */
.ps-card h3 a { color: var(--ink); }
.ps-card h3 a:hover { color: var(--brand); text-decoration: none; }

/* ---------- pitch coach ---------- */
.coach-thread { display: grid; gap: 12px; margin: 18px 0; }
.coach-q { display: flex; gap: 12px; align-items: flex-start; background: #eef2ff; border: 1px solid #dfe3f7; border-radius: 12px; padding: 14px 16px; }
.coach-q p { margin: 0; font-weight: 600; color: var(--ink); }
.coach-badge { background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.coach-a { margin-left: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink-soft); }

/* ---------- ideation lenses ---------- */
.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lens { display: block; cursor: pointer; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: border-color .12s, background .12s; }
.lens:hover { border-color: var(--brand); }
.lens input { display: none; }
.lens strong { display: block; font-size: 15px; margin-bottom: 4px; }
.lens span { color: var(--muted); font-size: 13.5px; }
.lens.sel { border-color: var(--brand); background: #eef2ff; }
@media (max-width: 640px) { .lens-grid { grid-template-columns: 1fr; } }

/* ---------- PS1 -> PS2 fallback prompt ---------- */
.ps2-card { background: linear-gradient(135deg, #fff7ed, #fef2f2); border: 1px solid rgba(249,115,22,.45); border-radius: 16px; padding: 22px 24px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.ps2-card h2 { margin: 0 0 8px; font-size: 20px; }
.ps2-feedback { background: #fff; border-radius: 10px; padding: 10px 14px; margin: 10px 0; color: var(--ink-soft); }
.ps2-card p { color: var(--ink-soft); margin: 8px 0 14px; }

/* --- notifications + nav badges + pager (flow-smoothing batch) --- */
.nav-bell { position: relative; text-decoration: none; font-size: 18px; padding: 4px 6px; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 10px; line-height: 1; vertical-align: middle;
}
.nav-bell .nav-badge {
  position: absolute; top: -4px; right: -6px; margin: 0;
  background: #ef4444;
}
.notif-list { display: grid; gap: 2px; margin-top: 18px; }
.notif {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  padding: 15px 16px; border-radius: 13px; border: 1px solid transparent;
}
.notif:hover { background: var(--surface-2); }
.notif.is-unread { background: #fff7ed; border-color: rgba(249,115,22,.28); }
.notif-ic { font-size: 20px; line-height: 1.4; }
.notif-msg { font-weight: 600; color: var(--ink); }
.notif-msg a { color: var(--brand); }
.notif-meta { color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.pager {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  margin: 26px 0; font-weight: 600;
}
.pager a { color: var(--brand); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pager a:hover { background: var(--surface-2); }

/* ============================================================
   MISSION CONTROL  ·  student progress dashboard
   ============================================================ */
.mc-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(124,58,237,.10), transparent 55%),
    linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 34px; box-shadow: var(--shadow); margin: 8px 0 30px;
}
.mc-hi { font-family: var(--font-display); font-size: clamp(24px,3vw,32px); margin: 0 0 4px; }
.mc-sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

/* progress ring (conic) */
.ring {
  --pct: 0; --ring-size: 132px;
  width: var(--ring-size); height: var(--ring-size); border-radius: 50%;
  display: grid; place-items: center; position: relative; flex: none;
  background: conic-gradient(var(--brand) calc(var(--pct) * 1%), var(--surface-2) 0);
  animation: popIn .5s cubic-bezier(.2,.7,.3,1) both;
}
.ring::before {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 2px 8px rgba(24,39,75,.06);
}
.ring-inner { position: relative; text-align: center; line-height: 1; }
.ring-pct { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--ink); display: block; }
.ring-pct span { font-size: 15px; color: var(--muted); }
.ring-lbl { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-top: 3px; display: block; }

/* spotlight — the single next action */
.spotlight {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  border-radius: 18px; padding: 20px 22px; box-shadow: 0 12px 26px rgba(79,70,229,.28);
}
.spotlight .sl-kicker { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .85; display: flex; align-items: center; gap: 7px; }
.spotlight h2 { color: #fff; font-size: 22px; margin: 6px 0 4px; }
.spotlight p { margin: 0 0 14px; opacity: .92; font-size: 14.5px; }
.spotlight .btn-spot { background: #fff; color: var(--brand); font-weight: 800; padding: 12px 22px; border-radius: 11px; display: inline-flex; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.spotlight .btn-spot:hover { transform: translateY(-1px); text-decoration: none; }
.spotlight .sl-errs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 5px; }
.spotlight .sl-errs li { font-size: 13.5px; opacity: .95; padding-left: 20px; position: relative; }
.spotlight .sl-errs li::before { content: "\2192"; position: absolute; left: 0; opacity: .8; }

/* journey rail — vertical progress with states */
.journey-rail { list-style: none; padding: 0; margin: 6px 0 8px; position: relative; }
.jr-step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 4px 0 20px; position: relative; }
.jr-step::before { content: ""; position: absolute; left: 22px; top: 40px; bottom: -4px; width: 3px; background: var(--line); border-radius: 3px; }
.jr-step:last-child::before { display: none; }
.jr-step.is-done::before { background: var(--done); }
.jr-node {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; position: relative; z-index: 1;
  border: 3px solid var(--line); background: #fff; color: var(--muted); flex: none;
}
.jr-step.is-done .jr-node { background: var(--done); border-color: var(--done); color: #fff; }
.jr-step.is-active .jr-node { border-color: var(--active); color: var(--active); box-shadow: 0 0 0 6px rgba(79,70,229,.14); animation: pulseNode 2s ease-in-out infinite; }
@keyframes pulseNode { 0%,100% { box-shadow: 0 0 0 6px rgba(79,70,229,.14);} 50% { box-shadow: 0 0 0 10px rgba(79,70,229,.05);} }
@media (prefers-reduced-motion: reduce){ .jr-step.is-active .jr-node { animation: none; } }
.jr-body { padding-top: 3px; }
.jr-title { font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 16.5px; }
.jr-step.is-locked .jr-title { color: var(--locked); }
.jr-hint { color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.jr-step.is-done .jr-hint { color: var(--done); }
.jr-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; vertical-align: middle; }
.jr-tag.now { background: rgba(79,70,229,.12); color: var(--brand); }
.jr-cta { margin-top: 9px; }

/* two-column dashboard body */
.mc-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
.mc-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.mc-panel h2 { font-size: 19px; margin: 0 0 14px; }

/* ============================================================
   STATUS TRACK  ·  submission review pipeline
   ============================================================ */
.track { display: flex; align-items: flex-start; gap: 0; margin: 14px 0 4px; }
.track-stage { flex: 1; text-align: center; position: relative; padding: 0 4px; }
.track-stage::before { content: ""; position: absolute; top: 17px; left: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track-stage:last-child::before { display: none; }
.track-stage.done::before { background: var(--done); }
.track-node { width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 8px; position: relative; z-index: 1; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #fff; border: 3px solid var(--line); color: var(--muted); }
.track-stage.done .track-node { background: var(--done); border-color: var(--done); color: #fff; }
.track-stage.current .track-node { border-color: var(--active); color: var(--active); box-shadow: 0 0 0 5px rgba(79,70,229,.14); }
.track-stage.win .track-node { background: var(--green); border-color: var(--green); color: #fff; }
.track-stage.changes .track-node { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.track-stage.reject .track-node { background: #e5484d; border-color: #e5484d; color: #fff; }
.track-lbl { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.track-stage.upcoming .track-lbl { color: var(--locked); }
.track-note { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* ============================================================
   TEAM PROGRESS BOARD
   ============================================================ */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; margin: 6px 0 8px; }
.slot { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; }
.slot .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.slot .who { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.slot .sub { color: var(--muted); font-size: 12.5px; }
.slot.empty { border-style: dashed; background: var(--surface-2); color: var(--muted); justify-content: center; font-weight: 700; font-size: 14px; }
.slot.empty .av { background: none; border: 2px dashed var(--locked); color: var(--locked); }

.team-checklist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.team-checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.chk-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; }
.team-checklist li.ok .chk-ic { background: var(--done); color: #fff; }
.team-checklist li.no .chk-ic { background: #fff; border: 2px solid var(--locked); color: var(--locked); }
.chk-label { font-weight: 600; color: var(--ink); flex: 1; }
.team-checklist li.ok .chk-label { color: var(--ink-soft); }
.chk-detail { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.team-checklist li.ok .chk-detail { color: var(--done); }

/* mini progress bar (reused) */
.pbar { height: 10px; border-radius: 20px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.pbar > i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.pbar.good > i { background: linear-gradient(90deg, var(--green), #34d17e); }

/* responsive */
@media (max-width: 860px) {
  .mc-hero { grid-template-columns: 1fr; text-align: center; }
  .mc-hero .ring { margin: 0 auto; }
  .mc-cols { grid-template-columns: 1fr; }
  .track-lbl { font-size: 11px; }
}
