/* Shared styles for Trunkate's process and deliverable pages. Tokens match index.html. */
:root {
  color-scheme: light;
  --bg: #fdf9f4;
  --surface: #ffffff;
  --ink: #1c1834;
  --muted: #69647d;
  --line: #ece5dc;
  --indigo: #4f3fb6;
  --indigo-deep: #2c2366;
  --lavender: #d9d3fa;
  --lavender-ink: #4b3fa0;
  --mint: #36c896;
  --mint-soft: #dcf6ea;
  --mint-ink: #1d7d5c;
  --sky: #a7dbeb;
  --steel: #4f94b8;
  --sticky: #fbe27a;
  --sticky-edge: #e9c94a;
  --c1: #4f3fb6;
  --c2: #2fb487;
  --c3: #2b8fc4;
  --c4: #d99a1e;
  --f-head: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-mark: "Nunito", "Arial Rounded MT Bold", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
a { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.muted { color: var(--muted); }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 22px/1 var(--f-mark); color: var(--indigo-deep); text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.nav nav { display: flex; gap: 22px; font-weight: 500; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--indigo); }

/* Page header */
.head { position: relative; border-bottom: 2px solid var(--indigo-deep); overflow: hidden; }
.head .sky { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.blob.a { width: 520px; height: 420px; right: -100px; top: -120px; background: var(--sky); opacity: .7; }
.blob.b { width: 260px; height: 220px; right: 30%; bottom: -120px; background: var(--lavender); opacity: .7; }
.head-inner { position: relative; display: grid; gap: 16px; padding-block: 36px 48px; max-width: 760px; }
.head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; color: var(--indigo-deep); }
.head h1 .num { color: var(--steel); margin-right: .25em; }
.head .lede { font-size: 18px; color: var(--muted); max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.chip.live { background: var(--mint-soft); border-color: transparent; color: var(--mint-ink); }
.chip.soon { background: var(--sticky); border-color: transparent; color: #6f5d12; }

/* Buttons and file links */
.files { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 11px 18px; font: 600 15px/1 var(--f-body);
  background: var(--indigo); color: #fff; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--indigo); color: var(--indigo); background: var(--surface); }
.btn.off { background: transparent; color: var(--muted); border: 1px dashed #d6cfc4; cursor: default; transform: none; }
.btn small { font-weight: 500; opacity: .75; }

/* Sections */
.sec { padding-block: 64px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 720px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--indigo-deep); line-height: 1.15; }
.sec-head p { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .sec { padding-block: 48px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card h3 { font-size: 17px; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.figure { display: grid; gap: 10px; margin: 0; }
.figure img { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.figure figcaption { font-size: 14px; color: var(--muted); }
.quote { background: var(--steel); color: #fff; border-radius: 18px 18px 18px 6px; padding: 16px 20px; font-size: 17px; line-height: 1.45; margin: 0; }
.quote:nth-child(2) { background: var(--indigo); }
.quote cite { display: block; font-style: normal; font-size: 13px; opacity: .8; margin-top: 6px; }
.note { background: var(--sticky); border-bottom: 3px solid var(--sticky-edge); border-radius: 4px; padding: 14px 16px; font-weight: 600; }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-check li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.list-check li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 13px var(--f-body); color: var(--muted); background: var(--bg); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.yes { color: var(--mint-ink); }
.no { color: #a33a2c; }
.part { color: var(--muted); }
.yes::before { content: "✓"; } .no::before { content: "✕"; }
th.us, td.us { background: #f4f1ff; }
.sev { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #fff; }
.sev.s0 { background: #b9b1a6; } .sev.s4 { background: #a33a2c; } .sev.s3 { background: #d0662a; } .sev.s2 { background: #d99a1e; } .sev.s1 { background: var(--steel); }

/* Slide viewer */
.deck { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 12px; }
.deck-stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--bg); }
.deck-stage img { width: 100%; height: 100%; object-fit: contain; }
.deck-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deck-ctrl { display: flex; align-items: center; gap: 8px; }
.deck-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--ink); }
.deck-ctrl button:hover { border-color: var(--indigo); color: var(--indigo); }
.deck-count { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); min-width: 64px; text-align: center; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 auto; width: 96px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg); }
.thumbs button[aria-current="true"] { border-color: var(--indigo); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Video */
.video { display: grid; gap: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--indigo-deep); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: #fff; border: 0; cursor: pointer; width: 100%;
  background: radial-gradient(60% 80% at 75% 20%, rgba(167, 219, 235, .55), transparent), radial-gradient(50% 60% at 20% 90%, rgba(217, 211, 250, .45), transparent), var(--indigo-deep); font: 600 18px var(--f-body); }
.video-poster .play { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .2s ease; }
.video-poster:hover .play { transform: scale(1.06); }
.video-poster .play::after { content: ""; border-left: 22px solid var(--indigo); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; }
.chapters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; cursor: pointer; font: 500 14px var(--f-body); color: var(--ink); }
.chapters button:hover { border-color: var(--indigo); color: var(--indigo); }
.chapters b { font-variant-numeric: tabular-nums; color: var(--steel); margin-right: 4px; }

/* Charts */
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; min-width: 0; position: relative; }
.chart h3 { font-size: 16px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart text { font-family: var(--f-body); fill: var(--muted); font-size: 12px; }
.chart .val { fill: var(--ink); font-weight: 600; font-size: 11px; }
.chart .bar { transition: opacity .15s ease; }
.chart .bar:hover { opacity: .8; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); opacity: 0; transition: opacity .12s ease; }
details.data { font-size: 14px; }
details.data summary { cursor: pointer; color: var(--indigo); font-weight: 600; }
details.data .table-wrap { margin-top: 10px; }

/* Timeline (process page) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tl { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.tl:hover { border-color: var(--indigo); transform: translateX(3px); }
.tl .id { font: 700 26px var(--f-head); color: var(--steel); }
.tl h3 { font-size: 17px; color: var(--ink); }
.tl p { font-size: 14px; color: var(--muted); }
.tl.soon { background: transparent; border-style: dashed; }
.tl.soon .id { color: #b9b2c9; }
@media (max-width: 600px) { .tl { grid-template-columns: 52px minmax(0, 1fr); } .tl .chip { grid-column: 2; justify-self: start; } .tl .id { font-size: 20px; } }

/* Placeholder */
.placeholder { border: 2px dashed #d6cfc4; border-radius: 20px; padding: 28px; display: grid; gap: 14px; background: rgba(255, 255, 255, .5); }
.placeholder h2 { font-size: 22px; color: var(--indigo-deep); }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; }
.member img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; border: 0; border-radius: 0; }
.member div { padding: 14px 16px 16px; display: grid; gap: 2px; }
.member b { font: 700 16px var(--f-head); }
.member span { font-size: 14px; color: var(--muted); }
.member .role { color: var(--lavender-ink); font-weight: 600; }
@media (max-width: 820px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pager + footer */
.pager { display: flex; justify-content: space-between; gap: 12px; padding-block: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { text-decoration: none; display: grid; gap: 2px; color: var(--ink); }
.pager a small { color: var(--muted); font-size: 13px; }
.pager a b { font-family: var(--f-head); }
.pager .next { text-align: right; margin-left: auto; }
.foot { background: var(--indigo-deep); color: #e9e5ff; }
.foot .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot .brand { color: #fff; }
.foot p { font-size: 14px; color: #bdb5f0; }
.foot a { color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
