/* Paper Trench: voice styles (loaded after styles.css; this file belongs to one builder) */

/* ---------- tones: colour with meaning (blue = ours, cyan = bots/speed, green = good, yellow = careful, red = danger) ---------- */
.vx-t-blue { --vx: var(--blue-hi); --vx-soft: var(--blue-soft); --vx-line: rgba(77, 124, 255, 0.45); }
.vx-t-cyan { --vx: var(--cyan); --vx-soft: rgba(90, 200, 255, 0.13); --vx-line: rgba(90, 200, 255, 0.42); }
.vx-t-green { --vx: var(--up); --vx-soft: var(--up-soft); --vx-line: rgba(47, 208, 138, 0.42); }
.vx-t-yellow { --vx: var(--warn); --vx-soft: var(--warn-soft); --vx-line: rgba(245, 183, 64, 0.42); }
.vx-t-red { --vx: var(--down); --vx-soft: var(--down-soft); --vx-line: rgba(255, 92, 108, 0.42); }

/* ---------- headings ---------- */
.vx-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vx-h1 { margin: 0 0 12px; font: 700 clamp(30px, 7.4vw, 52px)/1.04 var(--font-head); letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
.vx-h1-sm { font-size: clamp(26px, 6vw, 38px); }
.vx-bite { color: var(--blue-hi); display: inline-block; }
.vx-lede { margin: 0 0 16px; max-width: 58ch; font: 400 17px/1.5 var(--font-body); color: #c3cbdb; }
.vx-lede b { color: var(--text); font-weight: 600; }
.vx-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--vx-soft, var(--chip)); border: 1px solid var(--vx-line, var(--line-2)); color: var(--vx, var(--text)); font: 600 11px/1 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

/* ---------- hero ---------- */
.vx-hero { position: relative; display: grid; gap: 18px; padding: 22px 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: radial-gradient(620px 260px at 8% -10%, rgba(77, 124, 255, 0.26), transparent 70%), radial-gradient(420px 220px at 100% 110%, rgba(90, 200, 255, 0.1), transparent 70%), var(--bg-2); }
.vx-hero-main { min-width: 0; }
.vx-head { margin: 4px 0 14px; }
.vx-head .vx-h1 { margin-bottom: 8px; }
.vx-head .vx-lede { margin-bottom: 0; }

.btn.vx-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px; border-radius: 12px; font: 700 16px/1.1 var(--font-head); box-shadow: var(--glow); flex-wrap: wrap; }
.vx-cta .ico { width: 18px; height: 18px; flex: none; }
.vx-cta-sub { font: 500 13px/1.1 var(--font-head); color: rgba(255, 255, 255, 0.82); padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.35); }

.vx-progress { align-self: end; padding: 14px 16px; border-radius: 12px; background: rgba(6, 7, 11, 0.6); border: 1px solid var(--line-2); min-width: 0; }
.vx-progress-top { font: 500 14px/1 var(--font-head); color: var(--muted); }
.vx-progress-top b { font: 700 30px/1 var(--font-num); color: var(--text); letter-spacing: -0.02em; }
.vx-segs { display: flex; gap: 5px; margin: 12px 0 10px; }
.vx-seg { flex: 1 1 0; height: 8px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); }
.vx-seg.on { background: var(--up); border-color: var(--up); }
.vx-seg.next { background: var(--vx-soft); border-color: var(--vx); animation: vx-breathe 1.8s ease-in-out infinite; }
.vx-progress-note { margin: 0; font: 400 13px/1.4 var(--font-body); color: #c3cbdb; }
@keyframes vx-breathe { 50% { opacity: 0.45; } }

/* ---------- fact tiles (small coloured tiles instead of grey sentences) ---------- */
.vx-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.vx-steps li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--vx-soft); border: 1px solid var(--vx-line); border-left: 3px solid var(--vx); min-width: 0; }
.vx-steps b { font: 700 11px/1.3 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--vx); }
.vx-steps span { font: 400 14px/1.4 var(--font-body); color: var(--text); }

/* ---------- lesson cards ---------- */
.lessons.vx-lessons { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 22px; }
.lesson-card.vx-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; padding: 16px; min-height: 0; border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--vx-soft), transparent 46%), var(--bg-2); box-shadow: inset 0 2px 0 var(--vx); transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease; }
.lesson-card.vx-card:hover, .lesson-card.vx-card:focus-visible { transform: translateY(-3px); border-color: var(--vx); box-shadow: inset 0 2px 0 var(--vx), 0 14px 30px -18px var(--vx); text-decoration: none; }
.vx-lessons > li { min-width: 0; }
.vx-card-top { display: flex; align-items: center; gap: 10px; }
.vx-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--vx-soft); border: 1px solid var(--vx-line); color: var(--vx); }
.vx-tile .vx-art { width: 30px; height: 30px; }
.vx-tile-lg { width: 76px; height: 76px; border-radius: 18px; }
.vx-tile-lg .vx-art { width: 48px; height: 48px; }
.vx-card-n { font: 700 11px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--vx); }
.vx-state { margin-left: auto; height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); font: 700 11px/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vx-card:hover .vx-state { color: var(--text); border-color: var(--vx); }
.vx-state.done-mark { color: var(--up); border-color: rgba(47, 208, 138, 0.5); background: var(--up-soft); }
.vx-state.vx-state-next { color: #fff; background: var(--blue); border-color: var(--blue); }
.lesson-card .vx-card-h { font: 700 19px/1.2 var(--font-head); letter-spacing: -0.01em; color: var(--text); }
.vx-card-hook { font: 400 15px/1.45 var(--font-body); color: #c3cbdb; flex: 1 1 auto; }
.vx-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 4px; }
.vx-min, .vx-lv, .vx-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 12px/1 var(--font-head); white-space: nowrap; }
.vx-min { background: var(--chip); color: var(--text); }
.vx-lv { background: var(--chip); color: var(--text); }
.vx-lv i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.vx-lv-2 i { background: var(--warn); }
.vx-lv-3 i { background: var(--down); }
.vx-badge { background: var(--vx-soft); border: 1px solid var(--vx-line); color: var(--vx); }
.vx-badge .ico { width: 12px; height: 12px; }
.vx-card.is-done { box-shadow: inset 0 2px 0 var(--up); }
.vx-card.is-done .vx-tile { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--up); }
.vx-card.is-next { border-color: var(--blue); box-shadow: inset 0 2px 0 var(--vx), 0 0 0 3px rgba(77, 124, 255, 0.2); }

/* ---------- lesson page ---------- */
.vx-lesson-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 18px; margin: 10px 0 18px; border-radius: 16px; border: 1px solid var(--vx-line); background: linear-gradient(135deg, var(--vx-soft), transparent 60%), var(--bg-2); }
.vx-lesson-head .grow { flex: 1 1 260px; min-width: 0; }
.vx-lesson-head .vx-lede { margin-bottom: 10px; }

/* ---------- trench words ---------- */
.vx-words h2 { margin: 0 0 4px; }
.vx-dl { display: grid; gap: 8px; margin: 10px 0 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.vx-word { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-top: 2px solid var(--vx); }
.vx-word dt { font: 600 14px/1.3 var(--font-mono); color: var(--vx); }
.vx-word dd { margin: 2px 0 0; font: 400 14px/1.4 var(--font-body); color: var(--text); }

/* ---------- friendly empty states + coloured stat tiles ---------- */
.empty.vx-empty { padding: 26px 16px; border-color: rgba(77, 124, 255, 0.4); background: radial-gradient(360px 140px at 50% 0%, rgba(77, 124, 255, 0.14), transparent 70%); }
.empty.vx-empty b { font: 700 18px/1.25 var(--font-head); color: var(--text); margin-bottom: 6px; }
.empty.vx-empty p { color: #c3cbdb; max-width: 44ch; margin: 0 auto 12px; }
.vx-empty .vx-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stat.vx-stat { border-top: 2px solid var(--vx); background: linear-gradient(180deg, var(--vx-soft), transparent 70%), var(--bg-3); }
.stat.vx-stat .stat-k { color: var(--vx); }
.stat.vx-stat .stat-v { font-size: 20px; }

/* ---------- 404 ---------- */
.vx-404 { text-align: center; padding: 30px 18px; background: radial-gradient(520px 220px at 50% -10%, rgba(77, 124, 255, 0.24), transparent 70%), var(--bg-2); }
.vx-404-n { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 8px; font: 700 clamp(72px, 22vw, 132px)/1 var(--font-head); letter-spacing: -0.04em; color: var(--blue-hi); }
.vx-404-n img { width: 0.78em; height: 0.78em; }
.vx-404 .vx-lede { margin-left: auto; margin-right: auto; }
.vx-404-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 20px; }
.vx-404 .vx-steps { text-align: left; margin-bottom: 0; }

@media (min-width: 640px) {
  .vx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lessons.vx-lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .vx-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 30px 32px; }
  .lessons.vx-lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .vx-404 { padding: 44px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-seg.next { animation: none; }
  .lesson-card.vx-card { transition: none; }
  .lesson-card.vx-card:hover { transform: none; }
}
@media (min-width: 900px) {
  .stats.vx-stats5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
