/* ==========================================================================
   Interview Readiness — prototype UI
   Editorial, calm, one accent. No gradients, no glass, no icon-card grids.
   ========================================================================== */
:root {
  --paper: #f6f3ee;
  --paper-2: #fffdf9;
  --ink: #16150f;
  --ink-2: #3a3730;
  --muted: #6b6659;
  --line: #ddd7ca;
  --line-2: #c9c2b2;
  --accent: #a63d18;
  --accent-2: #f2e3d8;
  --good: #2f6b4f;
  --warn: #8a6212;
  --bad: #9e2b26;
  --radius: 3px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
small, .small { font-size: .82rem; color: var(--muted); }
.mono { font-family: var(--mono); font-size: .8rem; }
.serif { font-family: var(--serif); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px 96px; }
.narrow { max-width: 720px; }
header.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.top-inner { max-width: 1060px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .01em; display: flex; align-items: baseline; gap: 8px; }
.brand b { font-weight: 400; }
.brand .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; display: inline-block; }
.steps { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.steps span {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid transparent;
}
.steps span.on { color: var(--ink); border-color: var(--line-2); background: var(--paper-2); }
.badge-proto {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 2px 7px; border-radius: 2px;
}

section.screen { display: none; padding-top: 44px; animation: fade .22s ease-out; }
section.screen.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { section.screen.on { animation: none; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 36px 0; }
.lede { font-family: var(--serif); font-size: 1.28rem; color: var(--ink-2); max-width: 62ch; }

/* --------------------------------------------------------------- controls */
button, .btn {
  font: inherit; font-size: .94rem; cursor: pointer;
  background: var(--ink); color: var(--paper-2);
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 11px 18px; transition: background .14s, color .14s, border-color .14s;
  min-height: 44px;
}
button:hover, .btn:hover { background: #2c2a22; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
button.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
button.ghost:hover { background: var(--accent-2); border-color: var(--line-2); }
button.accent { background: var(--accent); border-color: var(--accent); }
button.accent:hover { background: #8e3414; }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.linkish { background: none; border: 0; color: var(--accent); padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { background: none; color: #8e3414; }

label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
textarea, input[type=text], select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 12px 13px; resize: vertical; line-height: 1.5;
}
textarea { min-height: 150px; font-family: var(--mono); font-size: .84rem; }
textarea.tall { min-height: 260px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 18px; } }

/* ------------------------------------------------------------------ hero */
.hero { padding: 26px 0 8px; }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 14px; }
.start-actions { margin: 30px 0 8px; }
.proof { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof div { min-width: 150px; }
.proof .n { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.proof .l { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }

/* --------------------------------------------------------------- figures */
.score-xl { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 5.4rem); line-height: .92; letter-spacing: -.02em; }
.score-xl .of { font-size: .26em; color: var(--muted); letter-spacing: 0; }
.kpi-row { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.kpi { }
.kpi .k { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.pill { display: inline-block; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.good { color: var(--good); border-color: #b9cfc2; background: #eef4f0; }
.pill.warn { color: var(--warn); border-color: #ddcaa0; background: #f8f1e0; }
.pill.bad  { color: var(--bad);  border-color: #ddb4b1; background: #f9eceb; }

/* ---------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-2); }
td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }

/* ------------------------------------------------------------- weight bar */
.wbar { display: flex; align-items: center; gap: 10px; }
.wbar .track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; min-width: 60px; overflow: hidden; }
.wbar .fill { height: 100%; background: var(--ink-2); }
.wbar .fill.weak { background: var(--bad); }
.wbar .fill.mid { background: var(--warn); }
.wbar .fill.ok { background: var(--good); }

/* -------------------------------------------------------------- gap list */
.gap-group { margin-bottom: 30px; }
.gap-group h3 { display: flex; align-items: baseline; gap: 10px; }
.gap-group h3 .count { font-family: var(--sans); font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .hd { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.item .nm { font-weight: 600; font-size: .95rem; }
.item .ev { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.levels { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.levels b { color: var(--ink-2); font-weight: 600; }

/* -------------------------------------------------------------- interview */
.iv-grid { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
@media (max-width: 900px) { .iv-grid { grid-template-columns: 1fr; } }
.q-card { background: var(--paper-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 26px 26px 22px; border-radius: var(--radius); }
.q-meta { display: flex; gap: 14px; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.q-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.32; margin: 0; }
.cam { position: relative; background: #1b1a15; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.cam .off { position: absolute; inset: 0; display: grid; place-items: center; color: #8d8878; font-size: .82rem; text-align: center; padding: 14px; }
.rec { display: flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rec .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.rec.live .dot { background: var(--bad); animation: pulse 1.3s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.transcript { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 110px; font-size: .92rem; line-height: 1.5; }
.transcript:empty::before { content: attr(data-empty); color: var(--muted); font-size: .86rem; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.dots i { width: 26px; height: 4px; background: var(--line); border-radius: 2px; display: block; }
.dots i.done { background: var(--ink-2); }
.dots i.now { background: var(--accent); }
.timer { font-family: var(--mono); font-size: .9rem; color: var(--ink-2); }
.side-note { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ----------------------------------------------------------------- report */
.answer { border-top: 1px solid var(--line); padding: 20px 0; }
.answer:first-of-type { border-top: 0; }
.answer .qq { font-family: var(--serif); font-size: 1.06rem; margin-bottom: 8px; }
.answer .aa { font-size: .92rem; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 12px; margin: 10px 0; }
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px 18px; margin: 14px 0; }
.dim .dl { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dim .dv { font-family: var(--serif); font-size: 1.16rem; }
ul.tight { margin: 6px 0 12px; padding-left: 18px; }
ul.tight li { margin-bottom: 4px; font-size: .92rem; }
.star-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 4px; }
@media (max-width: 640px) { .star-grid { grid-template-columns: repeat(2, 1fr); } }
.star-cell { border: 1px solid var(--line); padding: 10px; border-radius: var(--radius); background: var(--paper-2); }
.star-cell .l { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.star-cell .v { font-family: var(--serif); font-size: 1.35rem; }
.star-cell.low .v { color: var(--bad); }
.star-cell.hi .v { color: var(--good); }

/* ----------------------------------------------------------------- drills */
.drill { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.drill h4 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 6px; }
.drill .crit { font-size: .86rem; color: var(--muted); }
.drill .crit ul { margin: 6px 0 0; padding-left: 18px; }
.fb { background: var(--accent-2); border-left: 3px solid var(--accent); padding: 14px 16px; margin-top: 14px; border-radius: var(--radius); font-size: .92rem; }
.fb.good { background: #eef4f0; border-left-color: var(--good); }

/* ------------------------------------------------------------------ misc */
.note { font-size: .86rem; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 14px; }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 18px; font-size: .8rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chart { width: 100%; height: 120px; display: block; }
dialog { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); max-width: 640px; padding: 26px; color: var(--ink); }
dialog::backdrop { background: rgba(22,21,15,.42); }
dialog h3 { margin-top: 0; }
dialog ul { padding-left: 18px; }
dialog li { margin-bottom: 6px; font-size: .9rem; }
