/* workflowproj.io. Plain CSS, no build step; breakpoints at 1023px (menu), 991px, 767px and 478px. */

:root {
  --ink: #111418;
  --ink-2: #2B313A;
  --muted: #4A525E;
  --subtle: #5B6470;
  --line: #E3E5E8;
  --line-soft: #EEF0F2;
  --paper: #FFFFFF;
  --paper-2: #FCFCFB;
  --tint: #F7F7F5;
  --brand: #4F46E5;
  --brand-dark: #4338CA;
  --brand-deep: #3730A3;
  --brand-soft: #EEF0FF;
  --teal: #0F766E;
  --teal-soft: #E6F4F1;
  --night: #0E1116;
  --night-line: #2A303B;
  --night-text: #A9B1BC;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .cta :focus-visible, .footer :focus-visible { outline-color: #FFFFFF; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { padding: 9px 18px; border: 1px solid #D5D8DD; background: var(--paper); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { padding: 11px 22px; background: #FFFFFF; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline-light { padding: 10px 21px; border: 1px solid rgba(255, 255, 255, 0.7); color: #FFFFFF; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--subtle); font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-end { display: flex; align-items: center; gap: 10px; }

/* Small screens: the links fold into a menu (a details element, so no script is needed). */
.menu { display: none; position: relative; }
.menu summary {
  padding: 9px 14px;
  border: 1px solid #D5D8DD;
  border-radius: 8px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(17, 20, 24, 0.14);
}
.menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; text-decoration: none; }
.menu nav a:hover { background: var(--tint); }
.menu nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

/* Hero */

.hero { padding: 72px 0 96px; background: var(--tint); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px 56px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}
h1 {
  margin-bottom: 20px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead { margin-bottom: 32px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Example board */

.board {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.04), 0 12px 32px rgba(17, 20, 24, 0.08);
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.board-title { font-size: 14px; font-weight: 600; }
.board-meta { color: #6B7380; font-size: 12px; }
.board-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  padding: 10px;
  border-radius: 10px;
  background: #F4F5F7;
}
.col-name {
  padding: 0 0 4px 2px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card { padding: 10px; border: 1px solid #E6E8EB; border-radius: 8px; background: var(--paper); }
.card-key { margin-bottom: 4px; color: var(--brand); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.card-title { font-size: 13px; line-height: 1.35; }
.card-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
}

/* Sections */

.section { padding: 96px 0; background: var(--paper); scroll-margin-top: 57px; }
.section-tint { background: var(--tint); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 16px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { margin-bottom: 10px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); font-size: 18px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.feature, .int { border: 1px solid var(--line); border-radius: 12px; }
.feature { padding: 28px; background: var(--paper-2); }
.int { padding: 24px; background: var(--paper); }
.feature p:not(.feature-num), .int p:not(.int-type) { color: var(--muted); font-size: 16px; line-height: 1.6; }
.feature p a { color: var(--brand); text-underline-offset: 2px; }
.feature-num { margin-bottom: 16px; color: var(--brand); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.int-type {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Workflows as code */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px 56px; }
.checks { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.checks li { padding-left: 14px; border-left: 2px solid var(--brand); color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.code { overflow: hidden; border-radius: 12px; background: var(--night); box-shadow: 0 12px 32px rgba(17, 20, 24, 0.16); }
.code-head { padding: 12px 20px; border-bottom: 1px solid #222833; color: #8A929C; font-family: var(--mono); font-size: 12px; }
.code-body {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  color: #D6DAE0;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}

/* Deploy (dark) */

.dark { background: var(--night); color: #F2F4F7; }
.dark .kicker { color: #A5B4FC; }
.dark h2, .dark h3 { color: #FFFFFF; }
.dark h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: 0; }
.dark .section-lead, .dark-item p { color: var(--night-text); }
.dark-item { padding-top: 24px; border-top: 1px solid var(--night-line); }
.dark-item p { font-size: 15.5px; line-height: 1.6; }

/* Call to action and footer */

.cta { padding: 80px 24px; background: var(--brand); }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta h2 { margin-bottom: 14px; color: #FFFFFF; font-size: 36px; }
.cta p { margin-bottom: 28px; color: #E0E3FF; font-size: 18px; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.footer { padding: 32px 0; background: var(--night); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand { color: #FFFFFF; font-size: 15px; font-weight: 700; }
.footer-text { flex-grow: 1; color: #8A929C; font-size: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #C9CED6; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; }

/* Feature pages */

.page-hero { padding: 64px 0 72px; background: var(--tint); }
.page-hero h1 { max-width: 880px; font-size: 48px; }
.page-hero .lead { max-width: 760px; }
.hero-shot { margin-top: 56px; }

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.04), 0 16px 40px rgba(17, 20, 24, 0.1);
}
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #F4F5F7; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5D8DD; }
.shot img { display: block; width: 100%; height: auto; }
.shot-link { display: block; cursor: zoom-in; }
.shot-caption { margin-top: 14px; color: var(--subtle); font-size: 14px; line-height: 1.5; text-align: center; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px 64px;
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 57px;
}
.feature-row:first-child { border-top: 0; }
.feature-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: 32px; }
.feature-row p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.feature-row p + p { margin-top: 14px; }
.feature-row .checks { margin-top: 24px; }
.feature-row .code-body { font-size: 13px; }

.feature-row p code, .feature p code, .int p code, .checks code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--line-soft);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.88em;
}
.more-link { display: inline-block; margin-top: 24px; color: var(--brand); font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.section .more-link { margin-top: 32px; }
.dark .more-link { color: #A5B4FC; }
.sd-queries { margin-top: 56px; }
.sd-queries h3 { font-size: 24px; }
.sd-queries .section-lead { max-width: 720px; margin-bottom: 24px; }

.tour-card { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s; }
.tour-card:hover { border-color: var(--brand); }
.tour-card h3 { color: var(--ink); }

.feature h3 a { text-decoration: none; }
.feature h3 a::after { content: " →"; color: var(--brand); }
.feature h3 a:hover { color: var(--brand); }

/* Architecture diagram (self-hosting) */

.diagram { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.diagram svg { display: block; width: 100%; height: auto; }
.dg-zone { fill: #F7F7F5; stroke: #D9DCE1; stroke-dasharray: 6 5; }
.dg-zone-label { fill: #5B6470; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.dg-box { fill: #FFFFFF; stroke: #D5D8DD; stroke-width: 1.5; }
.dg-box-brand { fill: #EEF0FF; stroke: #4F46E5; stroke-width: 1.5; }
.dg-box-db { fill: #E6F4F1; stroke: #0F766E; stroke-width: 1.5; }
.dg-title { fill: #111418; font-family: var(--font); font-size: 15px; font-weight: 600; }
.dg-sub { fill: #4A525E; font-family: var(--font); font-size: 12.5px; }
.dg-line { fill: none; stroke: #8A929C; stroke-width: 1.5; }
.dg-line-brand { fill: none; stroke: #4F46E5; stroke-width: 1.5; }
.dg-arrow { fill: #8A929C; }
.dg-arrow-brand { fill: #4F46E5; }
.dg-note { fill: #5B6470; font-family: var(--font); font-size: 12px; }

/* Not found */

.notfound { padding: 120px 0; background: var(--tint); }
.notfound p { margin-bottom: 28px; color: var(--muted); font-size: 18px; }

/* Breakpoints */

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

@media (max-width: 991px) {
  .hero-inner, .split, .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip > :first-child { order: 0; }
  h1, .page-hero h1 { font-size: 42px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hero, .page-hero { padding: 48px 0 64px; }
  h1, .page-hero h1 { font-size: 34px; }
  .hero-shot { margin-top: 40px; }
  .feature-row { padding: 56px 0; }
  .feature-row h2 { font-size: 26px; }
  .diagram { padding: 12px; overflow-x: auto; }
  .diagram svg { min-width: 760px; }
  .section { padding: 64px 0; }
  h2 { font-size: 30px; }
  .cta h2 { font-size: 28px; }
  .board-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col { min-height: 0; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .code-body { font-size: 12px; }
}

@media (max-width: 478px) {
  .nav-inner, .hero-inner, .container, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .nav .btn, .menu summary { padding: 8px 12px; font-size: 14px; }
  .nav-inner { gap: 12px; }
}
