/* Koja Technologies: "Künye" direction. One typeface, one accent. */
:root {
  --bg: #ffffff;
  --ink: #14181f;
  --muted: #5b6472;
  --rule: #dde1e6;
  --soft: #f5f7f8;
  --accent: #0f5c4a;
  --measure: 40rem;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color 150ms ease, color 150ms ease; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.5rem 0.875rem; text-decoration: none; z-index: 10; }
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.shell { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.wordmark { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark .j { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--muted); padding: 0.5rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.layout { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
.main { min-width: 0; }

/* ---------- Künye (the colophon column) ---------- */
.kunye { border-top: 1px solid var(--ink); font-size: 0.9375rem; }
.kunye dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.kunye dt, .kunye dd { margin: 0; padding: 0.625rem 0; border-bottom: 1px solid var(--rule); }
.kunye dt { color: var(--muted); padding-right: 1.25rem; }
.kunye a { text-decoration: none; }
.kunye a:hover { text-decoration: underline; }
.kunye .row { display: contents; }
.kunye .row.is-active dt { color: var(--accent); }
.kunye .row.is-active dd { color: var(--accent); }
.status::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--accent); margin-right: 0.5rem; vertical-align: 0.1em; }

@media (min-width: 60rem) {
  .layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; }
  .kunye { position: sticky; top: 1.5rem; align-self: start; }
  .kunye dl { grid-template-columns: 1fr; }
  .kunye dt { padding-bottom: 0; border-bottom: 0; font-size: 0.8125rem; }
  .kunye dd { padding-top: 0.125rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0 0; }
.section + .section { margin-top: 1rem; }
.label { font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 1.25rem; font-weight: 500; }
.hero { padding-top: 0.5rem; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 14ch; text-wrap: balance; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: var(--measure); margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.125rem; background: var(--ink); color: #fff; text-decoration: none; font-size: 1rem; font-weight: 500; transition: background-color 150ms ease; }
.button:hover { background: var(--accent); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
.link-arrow::after { content: "→"; margin-left: 0.375rem; transition: transform 150ms ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }

/* ---------- Product ---------- */
.product-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.product-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.meta { font-size: 0.9375rem; color: var(--muted); }

/* Framed product imagery. Until real screenshots land, the frame shows a schematic. */
.frame { margin: 0; border: 1px solid var(--rule); background: var(--soft); }
.frame figcaption { font-size: 0.875rem; color: var(--muted); padding: 0.75rem 1rem; border-top: 1px solid var(--rule); background: var(--bg); }
.schematic { aspect-ratio: 16 / 9; display: grid; grid-template-columns: 18% 1fr; gap: 3%; padding: 4%; }
.schematic .side { display: grid; align-content: start; gap: 0.6rem; }
.schematic .side i, .schematic .body i { display: block; height: 0.5rem; background: var(--rule); border-radius: 1px; }
.schematic .side i:first-child { width: 60%; height: 0.75rem; background: #c7cdd4; margin-bottom: 0.6rem; }
.schematic .body { display: grid; grid-template-rows: auto auto 1fr; gap: 0.8rem; }
.schematic .body i:first-child { width: 35%; height: 1rem; background: #c7cdd4; }
.schematic .cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.schematic .cells i { height: 2.5rem; background: #fff; border: 1px solid var(--rule); }
.schematic .rows { display: grid; gap: 0.45rem; align-content: start; background: #fff; border: 1px solid var(--rule); padding: 0.8rem; }
.schematic .rows i:nth-child(odd) { width: 92%; }
.schematic .rows i:nth-child(3n) { width: 70%; }

.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts li { padding: 0.875rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.25rem; }
.facts strong { font-weight: 500; }
.facts span { color: var(--muted); font-size: 1rem; }
@media (min-width: 40rem) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* ---------- Steps (case study) ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 3rem; counter-reset: step; }
.steps li { display: grid; gap: 1rem; }
.steps h3 { font-size: 1.25rem; margin: 0; }
.steps p { color: var(--muted); max-width: var(--measure); margin: 0; }
.steps .time { font-size: 0.875rem; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- About & contact ---------- */
.contact-intro { font-size: 1.25rem; font-weight: 400; color: var(--muted); margin-bottom: 0.75rem; letter-spacing: 0; }
.after { margin-top: 1.5rem; }
.contact-line { font-size: clamp(1.25rem, 3.5vw, 1.75rem); font-weight: 500; letter-spacing: -0.01em; word-break: break-word; }

.footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: 0.875rem; color: var(--muted); display: grid; gap: 0.5rem; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); max-width: var(--measure); }
