/* Trykk's showcase on h5bits.com/trykk — print shop: white paper, ink, crop marks,
   and the accent #5A78F7 (ink on it is #121212; accent-coloured text is #2B50D8). */
:root {
  --paper: #ffffff;
  --ink: #121212;
  --muted: #5c5c5c;
  --rule: #e3e3e3;
  --accent: #5A78F7;
  --accent-ink: #2B50D8;
  --accent-fill: #EEF1FE;
  color: var(--ink);
  background: var(--paper);
  font: 400 18px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: 64px 0 40px; border-top: 1px solid var(--rule); }
section:first-child { border-top: 0; padding-top: 18px; }
h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 14px; }
h3 { margin: 0; }
.section-lede { color: var(--muted); font-size: 20px; max-width: 36em; margin: 0 0 34px; }
.note { color: var(--muted); font-size: 15px; margin: 18px 0 0; max-width: 60em; }

/* eyebrow with a registration mark, the printer's target */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.reg { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: -4px; bottom: -4px; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: -4px; right: -4px; height: 1.5px; transform: translateY(-50%); }

/* a sheet with crop marks at its corners */
.sheet { position: relative; margin: 0; padding: 14px; }
.crop { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: #9a9a9a; }
.crop::before { width: 14px; height: 1px; }
.crop::after { width: 1px; height: 14px; }
.crop.tl { left: -6px; top: -6px; }   .crop.tl::before { top: 6px; left: -8px; } .crop.tl::after { left: 6px; top: -8px; }
.crop.tr { right: -6px; top: -6px; }  .crop.tr::before { top: 6px; right: -8px; } .crop.tr::after { right: 6px; top: -8px; }
.crop.bl { left: -6px; bottom: -6px; } .crop.bl::before { bottom: 6px; left: -8px; } .crop.bl::after { left: 6px; bottom: -8px; }
.crop.br { right: -6px; bottom: -6px; } .crop.br::before { bottom: 6px; right: -8px; } .crop.br::after { right: 6px; bottom: -8px; }

/* 1 · demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.slide {
  --b-page: #FBF7F0; --b-ink: #1B1F1E; --b-muted: #5F6B68; --b-primary: #1F5C4F; --b-second: #E8A33D; --b-rest: #B9C4C0;
  --b-head: Georgia, "Times New Roman", serif; --b-body: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  aspect-ratio: 16 / 9; background: var(--b-page); color: var(--b-ink); font-family: var(--b-body);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 50px rgba(18,18,18,.12);
  padding: 5.5% 6.5% 3.6%; display: flex; flex-direction: column; container-type: inline-size;
  transition: background-color .35s ease, color .35s ease;
}
.slide-kicker { font-size: 1.55cqi; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--b-primary); transition: color .35s; }
.slide-title { font-family: var(--b-head); font-weight: 700; font-size: 4.6cqi; line-height: 1.1; margin: 1.2cqi 0 2.4cqi; letter-spacing: -0.01em; }
.slide-body { flex: 1; display: grid; grid-template-columns: 62% 1fr; gap: 4%; align-items: center; min-height: 0; }
.slide-body svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.kpi-value { font-family: var(--b-head); font-weight: 700; font-size: 5.6cqi; line-height: 1; color: var(--b-primary); transition: color .35s; }
.kpi-text { font-size: 1.7cqi; color: var(--b-muted); margin-top: 1cqi; line-height: 1.4; }
.slide-foot { display: flex; align-items: center; gap: 1.2cqi; font-size: 1.25cqi; color: var(--b-muted); }
.slide-foot span:last-child { margin-left: auto; }
.logo { width: 2.2cqi; height: 2.2cqi; border-radius: 50%; background: var(--b-primary); transition: background-color .35s; }
.chart-text { font-family: var(--b-body); fill: var(--b-muted); }
.chart-strong { fill: var(--b-ink); font-weight: 700; }
#chart rect, #chart path, #chart circle { transition: all .45s cubic-bezier(.2,.7,.2,1); }

.controls fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.controls legend { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 7px 14px 7px 9px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.chip .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.chip[aria-checked="true"] { border-color: var(--accent); background: var(--accent-fill); box-shadow: inset 0 0 0 1px var(--accent); }
.seg { display: inline-flex; background: #f3f3f3; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 15px; padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.seg button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.data { border-collapse: collapse; width: 100%; font-size: 15px; }
.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 0 0 6px; border-bottom: 1px solid var(--rule); }
.data td { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.data input { width: 6em; font: inherit; font-variant-numeric: tabular-nums; border: 1px solid var(--rule); border-radius: 6px; padding: 4px 8px; }
.data input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-fill); }

/* 2 · tour */
.pinboard { position: relative; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #121212; font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 4px 12px rgba(18,18,18,.25); }
.legend { counter-reset: n; list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; }
.legend li { counter-increment: n; position: relative; padding-left: 42px; color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.legend li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #121212; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.legend b { color: var(--ink); }

/* 3 · features */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 44px; }
.feat { margin: 0; }
.feat img { border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(18,18,18,.07); }
.feat h3 { font-size: 21px; letter-spacing: -0.01em; margin: 16px 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* 4 · files */
.files-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; margin-top: 26px; }
.files h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.files ul { margin: 0; padding: 0; list-style: none; }
.files li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.files li b { color: var(--ink); }
code { font: 14px/1 "SF Mono", ui-monospace, Menlo, monospace; background: #f3f3f3; padding: 2px 6px; border-radius: 5px; color: var(--ink); }

/* 5 · agents */
.agents { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.agents p { color: var(--muted); margin: 0 0 12px; max-width: 32em; }
.agents p.eyebrow { color: var(--accent-ink); }
.agents pre { margin: 0; background: #121212; color: #ececec; border-radius: 14px; padding: 24px 28px; font: 14.5px/1.75 "SF Mono", ui-monospace, Menlo, monospace; overflow-x: auto; box-shadow: 8px 8px 0 var(--accent); }
.agents pre b { color: #9FB3FF; font-weight: 600; }
.agents pre i { font-style: normal; color: #8a8a8a; }

/* 6 · facts */
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; margin: 0; }
.facts dt { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

@media (max-width: 960px) {
  .demo-grid, .agents { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
  .facts dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 20px; }
  .feat-grid, .files-grid, .legend, .facts dl { grid-template-columns: 1fr; }
  .pin { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
  .agents pre { font-size: 12px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide *, #chart * { transition: none !important; }
}
