/* Process Turbine website. Colours are the app's: slate #2b3643, teal #1caf9a, the logo's lime. */
:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --band: #eaf0f3;
  --text: #1f2a36;
  --muted: #4d5b69;
  --line: #d5dde4;
  --slate: #2b3643;
  --teal: #13897a;
  --teal-strong: #0f6f63;
  --on-teal: #ffffff;
  --lime: #c6d22a;
  --node: #ffffff;
  --node-line: #9fb0bf;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141b23;
    --surface: #1c2530;
    --band: #18212b;
    --text: #e6ebf0;
    --muted: #a9b6c3;
    --line: #2f3b48;
    --teal: #1caf9a;
    --teal-strong: #39c6b0;
    --on-teal: #0b1f1c;
    --node: #1f2a36;
    --node-line: #4a5a6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141b23; --surface: #1c2530; --band: #18212b; --text: #e6ebf0; --muted: #a9b6c3; --line: #2f3b48;
  --teal: #1caf9a; --teal-strong: #39c6b0; --on-teal: #0b1f1c; --node: #1f2a36; --node-line: #4a5a6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--teal-strong); }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.top { background: var(--slate); color: #e6ebf0; position: sticky; top: 0; z-index: 2; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { color: #c8cfd8; text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: #ffffff; }
.top nav a.button { color: var(--on-teal); }

.button {
  display: inline-block; background: var(--teal); color: var(--on-teal); text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--teal);
}
.button:hover { background: var(--teal-strong); border-color: var(--teal-strong); }
.button.ghost { background: transparent; color: var(--teal-strong); }
.button.ghost:hover { background: var(--teal); color: var(--on-teal); }
.button.small { padding: 6px 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero { padding: 56px 0 40px; border-bottom: 4px solid var(--lime); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

.flow { margin: 0; }
.flow svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.flow .node rect { fill: var(--node); stroke: var(--node-line); stroke-width: 2; }
.flow .node.accent rect { stroke: var(--teal); stroke-width: 3; }
.flow .node text { fill: var(--text); font: 600 15px system-ui, -apple-system, "Segoe UI", sans-serif; text-anchor: middle; }
.flow .edge { stroke: var(--teal); stroke-width: 3; fill: none; }

section { padding: 48px 0; }
.band { background: var(--band); }

/* A section reached from a link on the page (#talk, #who) clears the sticky header and pulses twice in teal once the
   scroll has landed, so the eye finds where the link went (the owner, 2026-11-27). Still for those who ask for less motion. */
section[id] { position: relative; scroll-margin-top: 64px; }
section[id]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--teal); opacity: 0; box-shadow: inset 0 0 0 3px var(--teal);
}
section:target::after { animation: landed 1.1s ease-in-out 0.45s 2; }
@keyframes landed {
  0%, 100% { opacity: 0; }
  40% { opacity: 0.16; }
}
@media (prefers-reduced-motion: reduce) {
  section:target::after { animation: none; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cards p { margin: 0; color: var(--muted); }

.tags { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.foot { padding: 28px 16px 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.more { margin-top: 22px; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .top nav a:not(.button):not(.keep) { display: none; }
  section { padding: 36px 0; }
}
@media print {
  .top { position: static; }
  .top nav, .actions { display: none; }
  body { background: #fff; color: #000; }
}
