/* ============================================================
   VOICE · case study page
   Class-based CSS. Fonts:
   <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Mulish:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500;600&display=swap" rel="stylesheet">
   ============================================================ */

: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, body { margin: 0; padding: 0; }
body { background: var(--paper); font-family: 'Mulish', system-ui, sans-serif; color: var(--ink-2); }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
.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: 16ch; }
.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: 60ch; }

/* verdict row */
.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, .panel__label { 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; }

/* body layout · rail + content */
.body { padding: 0 40px 40px; display: grid; grid-template-columns: 190px 1fr; gap: 56px; align-items: start; }

/* rail */
.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; }

/* single column below the rail breakpoint (after .rail so display:none wins) */
@media (max-width: 860px) { .body { grid-template-columns: 1fr; gap: 0; } .rail { display: none; } }

/* content + sections */
.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; }
.section strong { color: var(--ink-2); }

/* 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); }

/* call transcript */
.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); }

/* behavior spec rows */
.spec { margin: 0; }
.spec__row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 15px 18px; border-bottom: 1px solid oklch(0.95 0.006 300); }
.spec__row:last-child { border-bottom: none; }
@media (max-width: 620px) { .spec__row, .callrow { grid-template-columns: 1fr; gap: 6px; } }
.spec__k { font-family: 'Spline Sans Mono', monospace; font-size: 11.5px; color: var(--violet); line-height: 1.4; }
.spec__v { font-size: 13.5px; line-height: 1.55; color: var(--body); margin: 0; }

/* code artifact */
.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; }

/* real screenshot figure */
.shot { margin: 0; }
.shot img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* two-col panels */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px){ .cols2 { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line-2); border-radius: 12px; padding: 20px; background: #fff; }
.panel--tint { background: var(--tint); border-color: oklch(0.88 0.03 300); }
.panel ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--body); display: flex; flex-direction: column; gap: 8px; }

/* stepped flow */
.loop { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px){ .loop { grid-template-columns: 1fr 1fr; } }
.loop__step { padding: 20px 16px; border-left: 1px solid oklch(0.94 0.006 300); }
.loop__n { font-family: 'Spline Sans Mono', monospace; font-size: 11px; color: oklch(0.62 0.12 300); margin-bottom: 8px; }
.loop__head { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.loop__sub { font-size: 12px; line-height: 1.4; color: var(--body); }
.loop__caption { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: var(--violet); margin-top: 14px; }

/* landing grid */
.landing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
@media (max-width: 620px){ .landing { grid-template-columns: 1fr; } }
.landing__cell { background: #fff; padding: 22px; }
.landing__cell .verdict__k { margin-bottom: 10px; }
.landing__cell p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.landing__v { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; line-height: 1; color: var(--violet); margin-bottom: 8px; }
.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; }

/* voice standards: do and don't pairs */
.std__row { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 16px; padding: 15px 18px; border-bottom: 1px solid oklch(0.95 0.006 300); }
.std__row:last-child { border-bottom: none; }
.std__k { font-family: 'Spline Sans Mono', monospace; font-size: 11.5px; color: var(--violet); line-height: 1.4; }
.std__src { display: block; font-family: 'Spline Sans Mono', monospace; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); }
.std__cell--no .std__src { color: var(--amber); }
.std__cell--do .std__src { color: var(--green); }
.std__cell p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
@media (max-width: 720px) { .std__row { grid-template-columns: 1fr; gap: 10px; } }

/* 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); }
