/* noproctor app. Same brand tokens as the marketing site. */
:root {
  --bg: #0e0e0e;
  --bg-soft: #141414;
  --panel: #161616;
  --panel-2: #1b1b1b;
  --line: #272727;
  --line-soft: #1f1f1f;
  --ink: #ededed;
  --ink-dim: #b2b2b2;
  --ink-faint: #7d7d7d;
  --accent: #e80031;
  --accent-dim: #b80028;
  --ok: #37d07a;
  --warn: #ffb020;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ff4d6d; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(14, 14, 14, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-dim); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 10px; cursor: pointer; transition: .15s ease; }
.btn:hover { border-color: #3a3a3a; background: #222; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.danger { color: #ff8fa0; border-color: #4a1c25; background: #241114; }
.btn.danger:hover { background: #3a171d; }

.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-dim); padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.pill.live .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(55, 208, 122, .12); }
.pill.warn .dot { background: var(--warn); }
.pill.bad .dot { background: var(--accent); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { font-size: 15px; letter-spacing: .01em; margin-bottom: 12px; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: var(--ink-dim); }
.alert.error { border-color: #4a1c25; background: #241114; color: #ffb3bf; }
.alert.ok { border-color: #1c3a29; background: #10231a; color: #a9efc7; }

input[type=text], input[type=email], input[type=password] { width: 100%; background: #111; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px 13px; font: inherit; font-size: 14.5px; }
input:focus { outline: none; border-color: #454545; box-shadow: 0 0 0 3px rgba(232, 0, 49, .12); }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); margin-bottom: 6px; letter-spacing: .02em; }
.field + .field { margin-top: 14px; }

/* --- auth --- */
.auth { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card p.sub { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 22px; }
.auth-foot { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); text-align: center; }

/* --- landing --- */
.hero { padding: 84px 0 56px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.03; letter-spacing: -.035em; font-weight: 750; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 20px; font-size: 18px; color: var(--ink-dim); max-width: 620px; }
.foot-links { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-faint); }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.section { padding: 52px 0; border-top: 1px solid var(--line-soft); }
.section h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step .n { font-family: var(--mono); color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--ink-dim); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: #5c1420; box-shadow: 0 0 0 1px rgba(232, 0, 49, .25) inset; }
.plan .tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; height: 16px; }
.plan .name { font-size: 17px; font-weight: 650; margin-top: 2px; }
.plan .price { font-size: 36px; font-weight: 750; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.plan .blurb { color: var(--ink-dim); font-size: 13.5px; min-height: 42px; margin-bottom: 18px; }
.plan .btn { margin-top: auto; }
.plan .rate { font-size: 12px; color: var(--ink-faint); margin-bottom: 14px; }

/* --- dashboard --- */
.dash { padding: 34px 0 70px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h1 { font-size: 30px; letter-spacing: -.03em; }
.stat { font-size: 42px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }
.live-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #2d2d2d; background: linear-gradient(180deg, #1a1a1a, #151515); border-radius: var(--radius); padding: 20px 22px; }
.live-card h2 { font-size: 17px; margin-bottom: 4px; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line-soft); }
table.list td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); }
table.list tr:last-child td { border-bottom: 0; }
.empty { color: var(--ink-faint); font-size: 13.5px; padding: 6px 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: #242424; color: var(--ink-dim); }
.badge.paid { background: #10231a; color: var(--ok); }
.badge.pending { background: #2a2210; color: var(--warn); }
.badge.failed, .badge.expired { background: #2a1116; color: #ff8fa0; }

/* --- session --- */
.session-shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.sbar { height: 54px; flex: 0 0 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.sbar .left, .sbar .right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sbar .timer { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); }
.session-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; }
.vm-pane { position: relative; background: #050505; display: flex; flex-direction: column; min-width: 0; }
.vm-frame { flex: 1; min-height: 0; display: grid; place-items: center; padding: 14px; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
.vm-frame img.preview { max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid #222; }
.vm-note { padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 12px; background: var(--bg-soft); }
.overlay-pane { border-left: 1px solid var(--line-soft); background: var(--bg-soft); display: flex; flex-direction: column; min-height: 0; }
.overlay-body { padding: 16px; overflow-y: auto; }
.answer-card { border: 1px solid #3a1a22; background: linear-gradient(180deg, #1e1216, #171214); border-radius: 12px; padding: 16px; }
.answer-card .q { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.answer-text { font-size: 22px; font-weight: 700; line-height: 1.28; margin-top: 8px; letter-spacing: -.01em; word-break: break-word; }
.answer-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--ink-faint); }
.conf { display: inline-flex; align-items: center; gap: 6px; }
.conf-bar { width: 64px; height: 5px; border-radius: 3px; background: #2b2b2b; overflow: hidden; }
.conf-bar i { display: block; height: 100%; background: var(--ok); }
.overlay-actions { padding: 14px 16px; border-top: 1px solid var(--line-soft); background: var(--panel); }
.overlay-actions .btn.primary { font-size: 15px; padding: 13px; }
.hint { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 8px; }
.history { margin-top: 20px; }
.history h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.history ol { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.history li { border: 1px solid var(--line-soft); background: var(--panel); border-radius: 10px; padding: 9px 11px; font-size: 13px; }
.history li .q { font-size: 11px; color: var(--ink-faint); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history li .ans { font-weight: 600; }
.history li .meta { font-size: 11px; color: var(--ink-faint); margin-top: 3px; display: flex; gap: 8px; }

/* CSS mock of a Windows exam window, used in demo mode. */
.demo-desktop { width: 100%; height: 100%; border-radius: 10px; background: radial-gradient(1200px 600px at 30% 0%, #1d3a63, #0d1b30 60%, #0a1424); display: grid; place-items: center; padding: 26px; }
.demo-window { width: min(720px, 100%); background: #f4f5f7; color: #1a1a1a; border-radius: 8px; box-shadow: 0 26px 80px rgba(0, 0, 0, .55); overflow: hidden; }
.demo-title { background: #e6e8ec; padding: 8px 12px; font-size: 12px; color: #555; display: flex; justify-content: space-between; align-items: center; }
.demo-body { padding: 24px 26px 28px; }
.demo-body .kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7a7f88; }
.demo-body h3 { font-size: 18px; margin: 6px 0 16px; color: #111; }
.demo-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d9dce1; border-radius: 7px; padding: 10px 12px; font-size: 13.5px; color: #2a2f36; margin-bottom: 8px; }
.demo-opt .letter { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #c3c8cf; display: grid; place-items: center; font-size: 11px; flex: 0 0 auto; color: #6b7280; }
.demo-opt.on { border-color: #e80031; background: #fff0f3; }
.demo-opt.on .letter { background: #e80031; border-color: #e80031; color: #fff; }
.demo-foot { margin-top: 16px; font-size: 11px; color: #8a9099; display: flex; justify-content: space-between; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .18); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.booting { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink-dim); font-size: 14px; }
.booting .spinner { width: 26px; height: 26px; border-width: 3px; }

@media (max-width: 900px) {
  .steps, .plans, .grid-2 { grid-template-columns: 1fr; }
  .session-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 46vh; }
  .overlay-pane { border-left: 0; border-top: 1px solid var(--line-soft); }
  .hero { padding: 56px 0 40px; }
}
