@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --sky-0: #f5f9fd;
  --sky-1: #dde9f6;
  --line: #c5d6e8;
  --line-soft: #e3eaf2;
  --ink: #121a26;
  --ink-2: #4b5769;
  --ink-3: #7a8699;
  --lime: #d6f43a;
  --lime-ink: #5d7000;
  --paper: #ffffff;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
  font-family: "Onest", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: clip;
  margin: 0;
  background: linear-gradient(var(--sky-1), var(--sky-0) 900px) var(--sky-0);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(72rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2.5vw, 2rem);
  font-size: 0.9375rem;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(255 255 255 / 0.55);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lang a {
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: var(--ink-3);
  text-decoration: none;
}

.lang a:hover {
  color: var(--ink);
}

.lang a[aria-current] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(18 26 38 / 0.12);
}

.signin {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.signin:hover {
  border-color: var(--ink);
}

/* The grid of the hero carried down the page: two rails on the content's edges, a seam with nodes on top of every
   block, fading out to the sides. Content sits above the rails on a translucent ground. */

main {
  position: relative;
}

main::before {
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(72rem, 100% - 2 * var(--gutter));
  border-inline: 1px solid var(--line);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

main > * {
  position: relative;
}

.seam {
  position: relative;
}

.seam::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 18%,
    var(--line) 82%,
    transparent
  );
  content: "";
  transform: translateX(-50%);
}

.seam::after {
  position: absolute;
  top: -8px;
  right: -8px;
  left: -8px;
  height: 16px;
  background:
    url("/node.svg") left / 16px no-repeat,
    url("/node.svg") center / 16px no-repeat,
    url("/node.svg") right / 16px no-repeat;
  content: "";
}

.dots {
  background: url("/dots.svg") right clamp(1.5rem, 4vw, 3rem) top 3rem / 132px
    no-repeat;
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem);
  text-align: center;
  background: url("/hero-grid.svg") center -132px / 2400px auto no-repeat;
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(2.5rem, 7.4vw, 5.75rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero .sub {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: stretch;
  margin-top: 2rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.4) inset,
    0 12px 28px -12px rgb(18 26 38 / 0.55);
}

.cta-mark {
  display: grid;
  width: 3rem;
  place-items: center;
  margin: 3px;
  border-radius: 8px;
  background: var(--lime);
}

.cta-mark svg {
  width: 16px;
  height: 16px;
}

.cta-label {
  padding: 0.8rem 1.2rem 0.8rem 0.9rem;
}

.cta:hover .cta-mark {
  background: #e3ff52;
}

/* Board mock-up: a dark editor on a dotted canvas, the goal on top and projects branching from it like a tree. */

.frame {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: clamp(5px, 1vw, 10px);
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: clamp(18px, 2.5vw, 26px);
  background: rgb(255 255 255 / 0.45);
  box-shadow: 0 40px 80px -40px rgb(20 40 70 / 0.55);
}

.app {
  --d-bg: #0e131a;
  --d-panel: #141b24;
  --d-line: #1f2935;
  --d-wire: #2e3d4f;
  --d-text: #e9eef4;
  --d-mute: #8392a4;
  overflow: hidden;
  border: 1px solid #1c2530;
  border-radius: clamp(13px, 2vw, 18px);
  background: var(--d-bg);
  color: var(--d-text);
  text-align: left;
  font-size: 0.875rem;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--d-line);
  background: #111821;
}

.app-bar svg {
  width: 16px;
  height: 16px;
}

.app-bar strong {
  font-weight: 600;
}

.views {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border-radius: 8px;
  background: #19212b;
  color: var(--d-mute);
  font-size: 0.8125rem;
}

.views span {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.views .on {
  background: #2a3441;
  color: #fff;
}

.canvas {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem) 5.25rem;
  background:
    radial-gradient(circle, #222e3c 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--d-bg);
}

.goal-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem 0.75rem;
  justify-self: center;
  width: min(30rem, 100%);
  padding: 0.9rem 1rem;
  border: 1px solid var(--lime);
  border-radius: 14px;
  background: var(--d-panel);
  box-shadow:
    0 0 0 5px rgb(214 244 58 / 0.1),
    0 24px 40px -24px #000;
}

.goal-label {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.goal-node b {
  font-weight: 600;
}

.goal-meter {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.6rem;
  color: #b5c1ce;
  font-variant-numeric: tabular-nums;
}

.goal-meter i,
.bar {
  position: relative;
  overflow: hidden;
  height: 6px;
  border-radius: 3px;
  background: #243040;
}

.goal-meter i {
  flex: 1;
}

.goal-meter i::after,
.bar::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: var(--c, var(--lime));
  content: "";
}

/* The wires: down from the goal, across, and down into each project. */
.goal-node::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 0.875rem;
  background: var(--d-wire);
  content: "";
}

.tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.proj {
  position: relative;
  padding: 0.85rem;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: var(--d-panel);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.proj::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 0.875rem;
  background: var(--d-wire);
  content: "";
}

.proj::after {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  width: calc(100% + 1rem);
  height: 2px;
  background: var(--d-wire);
  content: "";
}

.proj:last-child::after {
  display: none;
}

.proj:hover {
  border-color: #3a4b60;
  box-shadow: 0 18px 30px -18px #000;
  transform: translateY(-3px);
}

.proj-top,
.proj-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #b5c1ce;
}

.type::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c);
  content: "";
}

.t-biz {
  --c: #f0a35e;
}
.t-site {
  --c: #5aa7f0;
}
.t-test {
  --c: #f06a97;
}
.t-page {
  --c: #46c79a;
}

.move {
  padding: 0.05rem 0.4rem;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.move.up {
  background: rgb(214 244 58 / 0.14);
  color: var(--lime);
}

.move.off {
  background: #1e2733;
  color: var(--d-mute);
}

.proj b {
  display: block;
  margin: 0.6rem 0 0.75rem;
  color: #f4f7fa;
  font-weight: 550;
}

.proj-foot {
  margin-top: 0.55rem;
  color: var(--d-mute);
}

.proj-foot span:first-child {
  color: #dfe6ee;
  font-variant-numeric: tabular-nums;
}

.lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: start;
  gap: 1.25rem;
}

.ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ideas-label {
  width: 100%;
  color: var(--d-mute);
  font-size: 0.75rem;
}

.idea {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px dashed var(--d-wire);
  border-radius: 9px;
  color: #d3dce6;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.idea small {
  color: var(--d-mute);
  font-size: 0.75rem;
}

.idea:hover {
  border-color: #50637a;
  background: var(--d-panel);
}

.idea.hot {
  border-style: solid;
  border-color: var(--lime);
  color: #fff;
}

.agent {
  padding: 0.9rem;
  border: 1px solid #2a3644;
  border-radius: 12px;
  background: #18212c;
}

.agent h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.agent p {
  margin: 0.55rem 0 0.85rem;
  color: #b5c1ce;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agent-actions span {
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
  background: #243040;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.agent-actions span:first-child {
  background: var(--lime);
  color: var(--ink);
  font-weight: 500;
}

.toolbar {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -12px #000;
  color: var(--ink);
  transform: translateX(-50%);
}

.toolbar span {
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.toolbar span:hover {
  background: #eef2f7;
}

.toolbar .on {
  background: var(--ink);
  color: #fff;
}

.toolbar .on:hover {
  background: var(--ink);
}

.toolbar .ask {
  background: var(--lime);
}

.toolbar .ask:hover {
  background: #e3ff52;
}

.toolbar i {
  width: 1px;
  height: 20px;
  margin-inline: 3px;
  background: #e3eaf2;
}

.toolbar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* The one orchestrated moment: the goal fills, the wires grow, the projects fill in. */
@media (prefers-reduced-motion: no-preference) {
  .goal-meter i::after,
  .bar::after {
    animation: fill 1.1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  .goal-node::after,
  .proj::before {
    animation: grow-y 0.4s 0.2s ease-out backwards;
    transform-origin: top;
  }
  .proj::after {
    animation: grow-x 0.5s 0.45s ease-out backwards;
    transform-origin: left;
  }
  .idea.hot {
    animation: glow 1.6s 1.4s ease-in-out 2;
  }
}

@keyframes fill {
  from {
    width: 0;
  }
}

@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes glow {
  50% {
    box-shadow: 0 0 0 5px rgb(214 244 58 / 0.25);
  }
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 3.5vw, 2.5rem);
}

.section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  text-wrap: pretty;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 4vw, 3rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(6px);
}

.points h3,
.steps h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.points p,
.steps p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
}

/* How it works is a real sequence, so it is numbered. */
.band {
  background: rgb(255 255 255 / 0.6);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--paper);
  counter-increment: step;
}

.steps li::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  content: counter(step);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps li:first-child::before {
  background: var(--lime);
  color: var(--ink);
}

/* Stages are a timeline: the line and its nodes echo the grid of the hero. */
.stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.stages li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 2.25rem;
}

.stages li::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--sky-0);
  content: "";
}

.stages li::after {
  position: absolute;
  top: 7px;
  right: -1.25rem;
  left: 16px;
  height: 2px;
  background: var(--line);
  content: "";
}

.stages li:last-child::after {
  display: none;
}

.stages .done::before,
.stages .done::after {
  border-color: var(--ink);
  background: var(--ink);
}

.stages .now::before {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 0 0 0 6px rgb(214 244 58 / 0.35);
}

.state {
  order: -1;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.stages .done .state {
  color: var(--ink);
}

.stages .now .state {
  color: var(--lime-ink);
}

.stages p {
  margin: 0;
  color: var(--ink-2);
}

.stages .now p {
  color: var(--ink);
  font-weight: 500;
}

/* FAQ: answers stay in the page for search and for readers. */
.faq {
  display: grid;
  gap: 0.6rem;
  margin: 2.5rem 0 0;
}

.faq details {
  padding-inline: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.6);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.faq details:hover,
.faq details[open] {
  border-color: var(--line);
  background: var(--paper);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 550;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  content: "+";
  font-size: 1.125rem;
  line-height: 1;
  transition:
    transform 0.25s ease,
    background 0.2s ease;
}

.faq details[open] summary::after {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
  transform: rotate(45deg);
}

.faq p {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  color: var(--ink-2);
}

/* Hover: every card answers the pointer the same way. */
.points li,
.steps li {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.points li:hover,
.steps li:hover {
  border-color: var(--line);
  box-shadow: 0 16px 30px -22px rgb(40 70 110 / 0.5);
  transform: translateY(-3px);
}

.steps li::before {
  transition: background 0.2s ease;
}

.steps li:hover::before {
  background: var(--lime);
  color: var(--ink);
}

.stages li::before {
  transition: transform 0.2s ease;
}

.stages li:hover::before {
  transform: scale(1.3);
}

.cta,
.signin {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta-mark svg {
  transition: transform 0.4s ease;
}

.cta:hover .cta-mark svg {
  transform: rotate(90deg);
}

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

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem clamp(1rem, 3.5vw, 2.5rem) 2.25rem;
  border-inline: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: the board becomes a list, as the product does. */
@media (max-width: 860px) {
  .tree,
  .lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lower {
    grid-template-columns: 1fr;
  }
  /* Narrow screens drop the wires: the tree reads as a list, as the product does on a phone. */
  .goal-node::after,
  .proj::before,
  .proj::after {
    display: none;
  }
  .canvas {
    gap: 1.25rem;
  }
  .points {
    grid-template-columns: 1fr;
  }
  .dots {
    background: none;
  }
  .stages {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stages li {
    padding: 0 0 1.75rem 2.25rem;
  }
  .stages li::after {
    top: 16px;
    right: auto;
    bottom: 0;
    left: 7px;
    width: 2px;
    height: auto;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .hero .sub {
    padding-inline: 0.75rem;
  }
  .views span:not(.on) {
    display: none;
  }
  .tree {
    grid-template-columns: 1fr;
  }
  .proj:nth-child(4) {
    display: none;
  }
  .toolbar span:nth-of-type(n + 5):not(.ask) {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}
