/* Evenanse site. Colours, font and the card-and-wire look are Kinesity's own. */
@font-face {
  font-family: "Supreme";
  src: url("./Supreme-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas: #17181b;
  --bar: #1d1f26;
  --ink: #edf2f5;
  --muted: #9aa3ad;
  --line: rgba(237, 242, 245, 0.55);
  --hair: rgba(237, 242, 245, 0.12);
  --accent: #496be6;
  --link: #a8b7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.55 "Supreme", "Segoe UI", Arial, sans-serif;
  /* the canvas dot grid */
  background: radial-gradient(circle, rgba(237, 242, 245, 0.09) 1px, transparent 1.5px) 0 0 / 56px 56px;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.site-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.site-head a { color: var(--ink); text-decoration: none; }
.site-head nav { display: flex; gap: 28px; }
.site-head nav a { color: var(--muted); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }
.wordmark { font-size: 20px; letter-spacing: -0.01em; }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
.lead { font-size: 20px; color: var(--muted); margin-top: 20px; max-width: 46ch; }
.muted { color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.button:hover { background: #5a7af0; }
.note { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Diagram cards, drawn the way Kinesity draws them */
.card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #1c1d21;
  color: var(--ink);
  text-decoration: none;
}
a.card:hover { border-color: var(--ink); background: #212329; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card .logo { height: 44px; width: auto; display: block; margin-bottom: 14px; }

/* Home: the company wired to its two apps */
.diagram { display: grid; grid-template-columns: 1.15fr 120px 1fr; align-items: center; padding: 72px 0 96px; }
.diagram .source { padding: 36px 32px; }
.diagram .targets { display: grid; gap: 48px; }
.wires { width: 120px; height: 100%; min-height: 320px; overflow: visible; }
.wires path { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wires .run { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms 200ms ease-out forwards; }
.wires .tip { fill: var(--line); stroke: none; opacity: 0; animation: show 200ms 1000ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wires .run, .wires .tip { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Product pages */
.hero { padding: 56px 0 48px; }
.hero .logo { height: 72px; width: auto; display: block; margin-bottom: 28px; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: 14px; }
.section { padding: 72px 0 0; }
.section > h2 { margin-bottom: 32px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 0; }
.facts div { padding: 20px 0; border-top: 1px solid var(--hair); }
.facts dt { font-size: 20px; letter-spacing: -0.01em; }
.facts dd { margin: 6px 0 0; color: var(--muted); }
.prose h2 { margin-top: 48px; font-size: 24px; }
.prose p, .prose ul { margin-top: 14px; color: #cfd6dc; max-width: 68ch; }
.prose ul { padding-left: 20px; }
.draft { margin-top: 24px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); max-width: 68ch; }

.site-foot { margin-top: 112px; border-top: 1px solid var(--hair); padding: 28px 0 44px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--muted); font-size: 15px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .diagram { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 56px; }
  .wires { display: none; }
  .diagram .targets { gap: 20px; }
  .facts { grid-template-columns: 1fr; }
  .site-head nav { gap: 20px; }
}
