/* CodeIn Consulting
   Yellow is reserved for moments where a person decides:
   approval gates and the buttons that lead to a conversation. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  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;
}

:root {
  --teal: #055665;        /* carried over from the original site */
  --teal-deep: #03404b;
  --ink: #0f2d34;
  --paper: #f1f5f4;
  --white: #ffffff;
  --line: #c9d7d5;
  --line-soft: #e2eae9;
  --muted: #4a6268;
  --on-teal: #ffffff;
  --on-teal-muted: #c3dcdf;
  --signal: #ffd24a;      /* the old logo's nucleus */
  --signal-hover: #ffdd70;
  --done: #0d7a6c;

  --focus: var(--teal);

  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-space: clamp(72px, 10vw, 136px);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(2rem, 1.25rem + 2.4vw, 3rem);
  --step-4: clamp(2.375rem, 1.2rem + 3.1vw, 3.875rem);

  --wide: 112%;
}

@media (min-width: 900px) {
  :root { --step-0: 1.125rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }

h1, h2, h3 {
  font-stretch: var(--wide);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

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

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-title {
  font-size: var(--step-3);
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--small {
  min-height: 40px;
  padding: 0.5em 1em;
  font-size: 0.9375rem;
}
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-hover); }
.btn--ghost { color: var(--on-teal); border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { border-color: var(--on-teal); background: rgba(255, 255, 255, 0.06); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #1d434b; }
.btn--line { color: var(--ink); border-color: rgba(15, 45, 52, 0.55); }
.btn--line:hover { border-color: var(--ink); background: rgba(15, 45, 52, 0.06); }

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-teal);
  text-decoration: none;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__brace {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand__core { fill: var(--signal); }
.brand__name {
  font-size: 1.375rem;
  font-weight: 660;
  font-stretch: 116%;
  letter-spacing: -0.02em;
}

/* Header */

.site-header {
  --focus: var(--signal);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal);
  color: var(--on-teal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-teal-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--on-teal); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .site-header__row { min-height: 64px; }
}

/* Hero */

.hero {
  --focus: var(--signal);
  background: var(--teal);
  color: var(--on-teal);
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--on-teal-muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 660;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.hero__sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-teal-muted);
  max-width: 36em;
  margin-top: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 20ch; }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Example run panel */

.run {
  --focus: var(--teal);
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 80px -30px rgba(1, 26, 31, 0.6),
    0 12px 24px -12px rgba(1, 26, 31, 0.35);
  max-width: 560px;
  width: 100%;
  justify-self: end;
}
@media (max-width: 960px) {
  .run { justify-self: start; }
}

.run__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
.run__title {
  font-weight: 640;
  font-stretch: 106%;
  font-size: 1.0625rem;
}
.run__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
}
.run__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--done);
}
.run__status[data-state="running"] .run__dot { animation: pulse 1.4s ease-in-out infinite; }
.run__status[data-state="waiting"] .run__dot { background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); }
.run__status[data-state="stopped"] .run__dot { background: var(--muted); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 122, 108, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(13, 122, 108, 0); }
}

.run__steps {
  min-height: 21.25rem;
  border-top: 1px solid var(--line-soft);
}

.step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96875rem;
  line-height: 1.35;
}
.step__text time {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step__sys {
  font-size: 0.8125rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 7px;
  white-space: nowrap;
  margin-top: 1px;
}

.step__icon {
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.step[data-state="done"] .step__icon { background: var(--done); }
.step[data-state="done"] .step__icon::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translateY(-1px) rotate(-45deg);
}
.step[data-state="flag"] .step__icon { border: 2px solid var(--ink); }
.step[data-state="flag"] .step__icon::after {
  content: "!";
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
.step[data-state="working"] .step__icon {
  border: 2px solid var(--line);
  border-top-color: var(--done);
  animation: spin 0.8s linear infinite;
}
.step[data-state="working"] .step__text { color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }

.step.is-entering { animation: step-in 0.35s ease-out both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Space for the gate is reserved so the panel keeps its height while steps arrive. */
.run__end { margin-top: 14px; min-height: 104px; }

.gate {
  --focus: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 12px 12px 16px;
  background: var(--signal);
  border-radius: 10px;
}
.gate[hidden] { display: none; }
.gate.is-entering { animation: gate-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes gate-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.gate__question { font-weight: 600; line-height: 1.3; }
.gate__actions { display: flex; gap: 8px; }

.run__result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #e3f0ee;
  font-weight: 500;
  line-height: 1.35;
}
.run__result:empty { display: none; }
.run__result[data-outcome="rejected"] { background: var(--line-soft); }

/* Comparison */

.compare { padding-block: var(--section-space); }

.compare__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare__table th {
  text-align: left;
  vertical-align: bottom;
  font-size: 1rem;
  font-weight: 600;
  padding: 0 32px 18px 0;
  color: var(--muted);
}
.compare__table th:last-child {
  color: var(--ink);
  padding-inline: 32px;
  padding-top: 28px;
  background: var(--white);
  border-radius: 12px 12px 0 0;
}
.compare__table td {
  vertical-align: top;
  padding: 24px 32px 24px 0;
  border-top: 1px solid var(--line);
  font-size: var(--step-2);
  line-height: 1.3;
  font-stretch: 104%;
  letter-spacing: -0.01em;
}
.compare__table td:first-child { color: var(--muted); }
.compare__table td:last-child {
  font-weight: 560;
  padding-inline: 32px;
  background: var(--white);
  border-top-color: var(--line-soft);
}
.compare__table tr:last-child td:last-child {
  padding-bottom: 32px;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 680px) {
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table td { display: block; }
  .compare__table thead { display: none; }
  .compare__table tr { padding-block: 8px 20px; }
  .compare__table tr + tr { border-top: 1px solid var(--line); }
  .compare__table td,
  .compare__table td:last-child,
  .compare__table tr:last-child td:last-child {
    border: 0;
    padding: 12px 0 0;
    background: none;
    font-size: var(--step-1);
  }
  .compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: var(--step--1);
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0;
    color: var(--muted);
  }
  .compare__table td:last-child::before { color: var(--done); }
}

/* Capabilities */

.capabilities {
  padding-block: var(--section-space);
  background: var(--white);
}
.caps { border-top: 1px solid var(--ink); }
.cap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(24px, 5vw, 80px);
  padding-block: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
}
.cap__title {
  font-size: var(--step-2);
  line-height: 1.15;
  max-width: 24ch;
}
.cap__body p { max-width: 34em; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tags li {
  font-size: 0.9375rem;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
}

@media (max-width: 760px) {
  .cap { grid-template-columns: minmax(0, 1fr); }
}

/* Use cases */

.use-cases { padding-block: var(--section-space); }

.lanes {
  --lane-gap: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--lane-gap);
}
.lane {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 24px;
}
.lane + .lane::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--lane-gap) / -2);
  width: 1px;
  background: var(--line);
}
.lane__title {
  font-size: 1.3125rem;
  line-height: 1.18;
}

.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.4;
}
.flow::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 28px;
  width: 1.5px;
  background: var(--line);
}
.flow li {
  position: relative;
  padding-left: 26px;
}
.flow li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.45em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--done);
}
.flow .flow__trigger { font-weight: 600; }
.flow .flow__trigger::before {
  left: 0;
  width: 12px; height: 12px;
  top: 0.38em;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.flow .flow__gate {
  margin-top: auto;
  padding: 14px 14px 14px 16px;
  background: var(--signal);
  border-radius: 8px;
  font-weight: 600;
}
.flow .flow__gate::before { display: none; }

@media (max-width: 1060px) {
  .lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto 1fr;
    row-gap: 56px;
  }
  .lane:nth-child(odd)::before { display: none; }
}
@media (max-width: 620px) {
  .lanes {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 0;
  }
  .lane {
    grid-row: auto;
    grid-template-rows: none;
    padding-block: 32px;
    border-top: 1px solid var(--line);
  }
  .lane:first-child { padding-top: 0; border-top: 0; }
  .lane + .lane::before { display: none; }
}

/* Contact */

.contact {
  --focus: var(--signal);
  background: var(--teal);
  color: var(--on-teal);
  padding-block: var(--section-space);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.contact .section-title { margin-bottom: 24px; max-width: 14ch; }
.contact__copy p {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-teal-muted);
  max-width: 30em;
}

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--signal); }

.contact__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 4px;
}
.contact__status {
  font-size: 0.9375rem;
  color: var(--on-teal-muted);
  max-width: 32em;
}
.contact__status a { color: var(--on-teal); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .contact__form { grid-template-columns: minmax(0, 1fr); }
  .contact__submit .btn { width: 100%; }
}

/* Footer */

.site-footer {
  --focus: var(--signal);
  background: var(--teal-deep);
  color: var(--on-teal-muted);
  font-size: 0.9375rem;
  padding-block: 40px;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 56px;
}
.site-footer .brand__mark { width: 28px; height: 28px; }
.site-footer .brand__name { font-size: 1.125rem; }
.site-footer__address { line-height: 1.5; }
.site-footer__legal { margin-left: auto; }

@media (max-width: 640px) {
  .site-footer__legal { margin-left: 0; }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
