/* ============================================================
   VOICE TROUBLESHOOTING POC · case page styles (self-contained)
   Poppins display · Mulish text · Spline Sans Mono chrome
   ============================================================ */

:root {
  --violet:  oklch(0.52 0.20 300);
  --ink:     oklch(0.20 0.02 300);
  --ink-2:   oklch(0.30 0.02 300);
  --body:    oklch(0.40 0.015 300);
  --muted:   oklch(0.50 0.02 300);
  --line:    oklch(0.92 0.008 300);
  --line-2:  oklch(0.90 0.010 300);
  --paper:   oklch(0.985 0.006 300);
  --tint:    oklch(0.97 0.02 300);
  --green:   oklch(0.50 0.12 150);
  --amber:   oklch(0.50 0.12 40);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); font-family: 'Mulish', system-ui, sans-serif; color: var(--ink-2); margin: 0; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: 'Spline Sans Mono', monospace; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; }
.wordmark { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; color: var(--violet); text-decoration: none; }
.nav__links { display: flex; gap: 34px; font-family: 'Spline Sans Mono', monospace; font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; color: var(--body); }
.nav__links a { color: inherit; text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--violet); text-decoration: none; }

/* hero */
.hero { padding: 64px 40px 40px; }
.kicker { font-family: 'Spline Sans Mono', monospace; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); margin-bottom: 22px; }
.hero h1 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 64px; line-height: 1.02; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 28px; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero__lede { font-size: 21px; line-height: 1.5; color: var(--body); margin: 0; max-width: 62ch; }

/* verdict */
.verdict { padding: 0 40px 64px; }
.verdict__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.verdict__cell { background: #fff; padding: 22px 22px 26px; }
.verdict__k, .eyebrow { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.verdict__cell p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .verdict__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .verdict__grid { grid-template-columns: 1fr; } }

/* body grid + rail */
.body { padding: 0 40px 40px; display: grid; grid-template-columns: 190px 1fr; gap: 56px; align-items: start; }
.rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.rail-link { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.rail-link__n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid oklch(0.86 0.015 300); display: flex; align-items: center; justify-content: center; font-family: 'Spline Sans Mono', monospace; font-size: 11px; color: oklch(0.5 0.05 300); transition: .2s; }
.rail-link__t { font-size: 13.5px; line-height: 1.3; color: var(--muted); transition: .2s; }
.rail-link.is-active .rail-link__n { background: var(--violet); color: #fff; border-color: var(--violet); }
.rail-link.is-active .rail-link__t { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .body { grid-template-columns: 1fr; gap: 0; } .rail { display: none; } }

.content { min-width: 0; max-width: 760px; }
.section { scroll-margin-top: 96px; padding-bottom: 64px; }
.section + .section { border-top: 1px solid var(--line); padding-top: 48px; }
.section h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--ink); margin: 0 0 18px; }
.section p { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0 0 28px; }
.section p.note { font-size: 15px; color: oklch(0.45 0.015 300); margin: 20px 0 0; }

/* artifact frame */
.art { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.art__cap { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.art__cap .mono { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.art__foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: oklch(0.5 0.015 300); }
.tag { font-family: 'Spline Sans Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.tag--neutral { color: var(--muted); background: oklch(0.94 0.01 300); }
.tag--green { color: var(--green); background: oklch(0.96 0.03 150); }
.tag--amber { color: var(--amber); background: oklch(0.96 0.03 40); }

/* two lanes: send help vs be the help */
.lanes { display: grid; grid-template-columns: 1fr 1fr; }
.lane { padding: 20px 22px 24px; }
.lane + .lane { border-left: 1px solid var(--line); }
.lane__head { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.lane--send .lane__head { color: var(--amber); }
.lane--live .lane__head { color: var(--green); }
.lane ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: lanestep; }
.lane li { font-size: 14px; line-height: 1.5; color: var(--ink-2); padding-left: 26px; position: relative; counter-increment: lanestep; }
.lane li::before { content: counter(lanestep, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: 'Spline Sans Mono', monospace; font-size: 10px; color: var(--muted); }
.lane li:last-child { font-weight: 700; color: var(--ink); }
.lane--live li:last-child { color: var(--green); }
.lane--send li:last-child { color: var(--amber); }
@media (max-width: 620px) { .lanes { grid-template-columns: 1fr; } .lane + .lane { border-left: 0; border-top: 1px solid var(--line); } }

/* build ladder: the five prototyping steps */
.ladder { display: flex; flex-direction: column; }
.rung { display: grid; grid-template-columns: 54px 200px 1fr; gap: 18px; padding: 18px; border-bottom: 1px solid oklch(0.95 0.006 300); align-items: baseline; }
.rung:last-child { border-bottom: none; }
.rung__n { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: #fff; background: var(--violet); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; align-self: start; }
.rung__head { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.rung__sub { font-size: 14px; line-height: 1.55; color: var(--body); margin: 0; }
.rung__sub .q { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: var(--violet); }
@media (max-width: 720px) { .rung { grid-template-columns: 40px 1fr; } .rung__sub { grid-column: 2; } }

/* instructions excerpt */
.pre-wrap { overflow-x: auto; }
.artifact-pre { margin: 0; padding: 18px; background: oklch(0.975 0.006 300); font-family: 'Spline Sans Mono', monospace; font-size: 12px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }
.artifact-pre .hl { color: var(--violet); font-weight: 600; }

/* call player */
.player { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.player audio { width: 100%; display: block; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chp { display: inline-flex; align-items: center; gap: 8px; font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); background: oklch(0.97 0.01 300); border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 12px; cursor: pointer; transition: border-color .2s, color .2s; }
.chp:hover { border-color: var(--violet); color: var(--violet); }
.chp b { font-weight: 600; color: var(--violet); }
.tx { max-height: 400px; overflow-y: auto; position: relative; }
.tx .callrow { cursor: pointer; }
.tx .callrow.is-now { background: var(--tint); }
.tx .callrow.is-now .callrow__who { color: var(--violet); font-weight: 600; }
.tx__moment { padding: 9px 18px; font-family: 'Spline Sans Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); background: oklch(0.975 0.012 300); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.call { padding: 8px 0; }
.callrow { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 13px 18px; align-items: baseline; border-bottom: 1px solid oklch(0.95 0.006 300); }
.callrow:last-child { border-bottom: none; }
.callrow--agent { background: oklch(0.975 0.008 300); }
.callrow__who { font-family: 'Spline Sans Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.callrow--agent .callrow__who { color: var(--violet); }
.callrow__said { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 620px) { .callrow { grid-template-columns: 1fr; gap: 6px; } }

/* instruction-to-moment map */
.rulemap { }
.rm__row { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 16px; padding: 15px 18px; border-bottom: 1px solid oklch(0.95 0.006 300); }
.rm__row:last-child { border-bottom: none; }
.rm__t { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: var(--violet); font-weight: 600; cursor: pointer; }
.rm__t:hover { text-decoration: underline; text-underline-offset: 3px; }
.rm__heard { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.rm__heard b { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; color: var(--ink); display: block; margin-bottom: 3px; }
.rm__rule { font-family: 'Spline Sans Mono', monospace; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.rm__rule::before { content: "instruction · "; color: var(--violet); letter-spacing: 0.06em; text-transform: uppercase; font-size: 9.5px; display: block; margin-bottom: 4px; }
@media (max-width: 720px) { .rm__row { grid-template-columns: 1fr; gap: 8px; } }

/* settled */
.settled { margin-top: 28px; padding: 22px 24px; background: var(--tint); border-radius: 12px; }
.settled p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); background: oklch(0.98 0.006 300); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px 40px; font-family: 'Spline Sans Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.footer__inner a { color: inherit; text-decoration: none; }
.footer__inner a:hover { color: var(--violet); }

@media (max-width: 720px) {
  .hero h1 { font-size: 42px; }
  .hero, .verdict, .body { padding-left: 22px; padding-right: 22px; }
  .nav__inner { padding: 16px 22px; }
}
