:root {
  --paper: #f4f7fa;
  --ink: #1c2430;
  --muted: #5a6573;
  --line: #d5dee8;
  --board: #ffffff;
  --signal: #c41e3a;
  --signal-hover: #a31830;
  --track: #2b6cb0;
  --done: #2f6b4f;
  --review: #8a5a12;
  --new: #6b7280;
  --ink-soft: #2a3444;
  --header-h: 64px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(28, 36, 48, 0.12);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body.home-marketing {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body.home-marketing img {
  max-width: 100%;
  height: auto;
}

body.home-marketing .logo-row img {
  height: 40px;
  width: auto;
  max-width: 140px;
}

body.home-marketing .brand img {
  height: 40px;
  width: auto;
}

a {
  color: var(--track);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--signal);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(244, 247, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--board);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--signal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.langs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.langs a {
  color: var(--muted);
  text-decoration: none;
}

.langs a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.langs-mobile {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--signal-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-item button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--track);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  overflow-wrap: break-word;
  max-width: 11em;
}

.hero .lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--done);
}

.hero-photo {
  margin: 0;
  position: relative;
  min-width: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  border-radius: 16px;
  animation: board-in 0.7s ease both;
  box-shadow: 0 16px 40px -12px rgba(28, 36, 48, 0.2);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 3 / 2;
}

.board-shell {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.board-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.board-chrome strong {
  display: block;
  font-size: 0.95rem;
}

.board-chrome span {
  color: var(--muted);
  font-size: 0.78rem;
}

.board-avatars {
  display: flex;
}

.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  margin-left: -6px;
  border: 2px solid #fff;
}

.av:first-child {
  margin-left: 0;
}

.av-a { background: var(--track); }
.av-b { background: var(--done); }
.av-c { background: var(--review); }
.av-d { background: var(--signal); }

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.board-toolbar span {
  border: 1px solid var(--line);
  background: var(--board);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  font-family: var(--mono);
}

.board-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.75rem;
}

.col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.col h3 b {
  font-family: var(--mono);
  font-weight: 400;
  margin-left: 0.35rem;
}

.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.55rem;
}

.ticket .id {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.ticket p {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
}

.tag-new { background: #e8eaee; color: var(--new); }
.tag-track { background: #e4eef8; color: var(--track); }
.tag-review { background: #f5ead4; color: var(--review); }
.tag-done { background: #dcece4; color: var(--done); }

.board-shell {
  animation: board-in 0.7s ease both;
}

@keyframes board-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.logos {
  padding: 0.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.logos p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.25rem;
}

.logo-row img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.85);
  opacity: 0.85;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--board);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose {
  max-width: 62ch;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.05rem;
}

.crumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.crumb a {
  color: var(--muted);
}

.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--ink);
  color: inherit;
}

.article-card time,
.article-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.article-card h2,
.article-card h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: 1.08rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 2rem;
  align-items: start;
}

.aside-note {
  border: 1px solid var(--line);
  background: var(--board);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.aside-note h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.aside-note p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  max-width: 68ch;
}

.legal h2 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.45rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

@media (max-width: 960px) {
  .article-list,
  .post-layout {
    grid-template-columns: 1fr;
  }
}

.workstreams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.workstream {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.workstream:last-child {
  border-right: 0;
  padding-right: 0;
}

.workstream + .workstream {
  padding-left: 1.25rem;
}

.workstream h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.workstream p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.workstream:hover h3 {
  color: var(--signal);
}

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

.process li,
ol.process li {
  counter-increment: step;
}

.process li::before,
ol.process li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--signal);
  display: block;
  margin-bottom: 0.5rem;
}

.process h3,
ol.process h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.process p,
ol.process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare {
  overflow-x: auto;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-weight: 600;
}

.compare td:not(:first-child) {
  color: var(--muted);
}

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

.stat {
  padding: 1.25rem 0;
}

.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

blockquote {
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

blockquote p {
  margin: 0 0 0.85rem;
}

blockquote footer {
  color: var(--muted);
  font-size: 0.88rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plan {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.plan.is-featured {
  border-color: var(--ink);
}

.plan .flag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 0.35rem;
}

.plan h3 {
  margin: 0;
}

.plan .price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 0.15rem;
  letter-spacing: -0.03em;
}

.plan .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.plan ul {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  flex: 1;
}

.plan li + li {
  margin-top: 0.35rem;
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
}

.faq-item .answer {
  display: none;
  padding: 0 0 1rem;
  color: var(--muted);
}

.faq-item.is-open .answer {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
}

form {
  display: grid;
  gap: 1rem;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

input,
textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--board);
  color: var(--ink);
  min-height: 44px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status.is-error {
  color: var(--signal);
}

.form-status.is-ok {
  color: var(--done);
}

.aside {
  color: var(--muted);
}

.aside h3 {
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.aside p,
.aside a {
  margin: 0 0 1.1rem;
}

.site-footer {
  background: var(--ink);
  color: #d5dbe3;
  padding: 3rem 0 6.5rem;
}

.site-footer a {
  color: #fff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.foot-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #3a4452;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.mobile-bar {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .workstreams,
  .process ol,
  ol.process,
  .stats,
  .quotes,
  .plans,
  .contact-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-photo {
    border-radius: 14px;
  }

  .hero-photo img {
    max-height: 20rem;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .workstream,
  .workstream + .workstream {
    padding: 1.1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header-actions {
    display: none;
  }

  .langs-mobile {
    display: flex;
    padding: 0.75rem 0 0.25rem;
  }

  .board-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .col {
    flex: 0 0 min(78vw, 240px);
    scroll-snap-align: start;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--board);
    border-top: 1px solid var(--line);
    z-index: 30;
  }

  .mobile-bar .btn {
    font-size: 0.85rem;
    padding: 0.55rem 0.5rem;
  }

  .site-footer {
    padding-bottom: 7.5rem;
  }
}

.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.path {
  display: block;
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
}

.path-id {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

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

.path h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.intent {
  display: grid;
  gap: 0.55rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.intent legend {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.intent label {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: var(--board);
  cursor: pointer;
}

.intent input[type="radio"] {
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ink);
}

.intent label span {
  min-width: 0;
}

.intent label:has(input:checked) {
  border-color: var(--ink);
}

.form-done {
  display: none;
  border: 1px solid var(--line);
  background: var(--board);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.form-done.is-visible {
  display: block;
}

.form-done h3 {
  margin: 0 0 0.4rem;
}

.section-cta {
  margin-top: 1.5rem;
}

.page-hero p {
  max-width: 62ch;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.stack article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.stack h3 {
  margin: 0 0 0.35rem;
}

.stack p {
  margin: 0;
  color: var(--muted);
}

.quotes {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 960px) {
  .paths,
  .quotes {
    grid-template-columns: 1fr;
  }
}

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

  .board-shell,
  .hero-photo {
    animation: none;
  }
}
