/* ==========================================================================
   Coordinare — site styles
   Steward family identity. Shared tokens, no dependencies or remote fonts.
   ========================================================================== */

/* Compatibility names keep the existing components on shared brand tokens. */
:root {
  --white: var(--co-paper);
  --bg-alt: var(--co-paper);
  --sage-50: var(--co-wash);
  --sage-100: #dce6d9;
  --sage-200: #a6beab;
  --border: var(--co-line);
  --border-mid: #c4cebf;
  --brand: var(--co-forest);
  --brand-bright: var(--co-forest-hover);
  --brand-deep: var(--co-forest-deep);
  --ink: var(--co-ink);
  --ink-soft: var(--co-ink);
  --muted: var(--co-muted);
  --forest-900: var(--co-forest-deep);
  --forest-800: var(--co-forest);
  --charcoal-900: #14241e;
  --ink-on-dark: var(--co-on-dark);
  --muted-on-dark: var(--co-muted-on-dark);
  --pass: var(--co-success);
  --warn: var(--co-warning);
  --fail: var(--co-danger);
  --sans: var(--co-font-sans);
  --mono: var(--co-font-mono);
  --wrap: var(--co-content-width);
  --radius: var(--co-radius-card);
  --radius-lg: var(--co-radius-card);
  --shadow-card: var(--co-shadow);
  --shadow-soft: var(--co-shadow);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--co-ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-family: var(--co-font-display); font-size: var(--co-text-display); line-height: 1.06; font-weight: 500; }
h2 { font-family: var(--co-font-display); font-size: var(--co-text-title); line-height: 1.12; font-weight: 500; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
p  { margin: 0; }
a  { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-bright); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.sec--dark :focus-visible, .ftr :focus-visible { outline-color: var(--co-ivory); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── shared atoms ───────────────────────────────────────────────────────── */

.pill {
  display: inline-block;
  background: var(--sage-100);
  color: var(--brand);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.pill--dark { background: rgba(58,154,92,.18); color: #8fd6a9; }

.lead { color: var(--muted); font-size: 16.5px; max-width: 54ch; }
.lead--dark { color: var(--muted-on-dark); }

.sec { padding: clamp(64px, 8vw, 108px) 0; }
.sec--alt   { background: var(--bg-alt); }
.sec--sage  { background: var(--sage-50); }
.sec--dark  { background: var(--forest-900); color: var(--ink-on-dark); position: relative; overflow: hidden; }
.sec--dark h2, .sec--dark h3 { color: #fff; }

.sec-head { margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head h2 { max-width: 22ch; }
.sec-head .lead { margin-top: 14px; }
.sec-head--center { text-align: center; }
.sec-head--center h2 { max-width: 30ch; margin: 0 auto; }
.sec-head--center .lead { margin-left: auto; margin-right: auto; }

/* icon badge — the repeating unit across the page */
.badge {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 50%;
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  display: grid; place-items: center;
  color: var(--brand);
}
.badge svg { width: 22px; height: 22px; }
.badge--sm { width: 34px; height: 34px; flex-basis: 34px; }
.badge--sm svg { width: 16px; height: 16px; }
.badge--dark { background: rgba(58,154,92,.14); border-color: rgba(58,154,92,.3); color: #8fd6a9; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  padding: 12px 20px; border-radius: var(--co-radius-control); min-height: 44px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); color: #fff; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--border-mid); }
.btn--ghost:hover { border-color: var(--sage-200); color: var(--brand); }
.btn--on-dark {
  background: rgba(255,255,255,.06); color: var(--ink-on-dark);
  border-color: rgba(164,196,176,.35);
}
.btn--on-dark:hover { background: rgba(58,154,92,.2); border-color: var(--brand-bright); color: #fff; }
.btn--block { width: 100%; justify-content: space-between; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ── site header ────────────────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 243 235 / 96%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.hdr-in { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-word { font-family: var(--co-font-display); font-size: 29px; font-weight: 600; color: var(--brand); letter-spacing: -.04em; line-height: 1; }
.brand-byline { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); letter-spacing: .02em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 5px;
}
.nav a:hover { color: var(--brand); }
.nav a svg { width: 12px; height: 12px; opacity: .65; }
.nav .btn { margin-left: 4px; }
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border-mid); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero { padding: clamp(36px, 5vw, 64px) 0 0; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 24px; font-size: var(--co-text-lead); max-width: 45ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-portrait { margin: 0; align-self: end; }
.hero-portrait img { width: 100%; height: auto; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; }
.hero-feat { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.hero-feat svg { width: 16px; height: 16px; color: var(--brand); }
.workflow-band { margin-top: 40px; padding-bottom: 48px; }
.workflow-band .flowcard { padding: 24px 32px; }
.workflow-band .flowcard-ttl { text-align: center; margin-bottom: 22px; }
.workflow-band .flow-loop { justify-content: center; }

/* workflow card */
.flowcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 24px 22px;
}
.flowcard-ttl {
  font-size: 14.5px; font-weight: 700; color: var(--brand);
  letter-spacing: -.01em; margin-bottom: 24px;
}
.flow {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 4px;
}
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1 1 0; min-width: 0; }
.flow-step .badge { margin-bottom: 10px; }
.flow-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.flow-desc { font-size: 10.5px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.flow-arrow { flex: 0 0 auto; color: var(--sage-200); margin-top: 15px; }
.flow-arrow svg { width: 15px; height: 15px; }

.flow-loop {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--sage-200);
  font-size: 11.5px; color: var(--muted);
}
.flow-loop svg { width: 15px; height: 15px; color: var(--warn); flex: 0 0 15px; }
.flow-loop b { color: var(--ink-soft); font-weight: 600; }

/* ── numbered steps ─────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-num { font-size: 22px; font-weight: 700; color: var(--sage-200); font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
/* dotted connector — runs from just past the number to the next step's badge */
.step:not(:last-child) .step-top::after {
  content: ""; position: absolute; left: 112px; right: -26px; top: 24px;
  border-top: 1px dashed var(--sage-200);
}

/* ── lifecycle ──────────────────────────────────────────────────────────── */

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase { display: flex; flex-direction: column; gap: 12px; align-content: start; }
.phase-hd { display: flex; align-items: baseline; gap: 8px; padding-bottom: 4px; }
.phase-n {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--brand-bright);
}
.phase-ttl { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.role {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.role-hd { display: flex; align-items: center; gap: 10px; }
.role-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.role p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.role--opt { border-style: dashed; background: transparent; }

/* annotation under a phase that holds a single role */
.phase-note {
  border: 1px dashed var(--sage-200); border-radius: 10px;
  padding: 13px 15px; font-size: 12.5px; color: var(--muted);
  line-height: 1.5; background: transparent;
}
.phase-note b { color: var(--brand); font-weight: 600; }

/* ── capability grid ────────────────────────────────────────────────────── */

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

.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cap-tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 7px;
}

/* ── dashboard ──────────────────────────────────────────────────────────── */

.dash-in {
  display: grid; grid-template-columns: minmax(0,.62fr) minmax(0,1.38fr);
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.dash-in h2 + .lead, .gs-txt h2 + .lead { margin-top: 16px; }
.checklist { display: flex; flex-direction: column; gap: 13px; margin-top: 30px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink-on-dark); }
.checklist svg { width: 18px; height: 18px; color: var(--sage-200); flex: 0 0 18px; margin-top: 2px; }

/* screenshot slot — replaced by <img> when the real capture lands */
.shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(164,196,176,.45);
  background: rgba(0,0,0,.22);
  display: grid; place-items: center;
  padding: 24px; text-align: center;
}
.shot-inner { max-width: 40ch; }
.shot svg { width: 30px; height: 30px; color: var(--muted-on-dark); margin: 0 auto 14px; }
.shot-ttl { font-size: 14px; font-weight: 600; color: var(--ink-on-dark); }
.shot-meta {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-on-dark);
  margin-top: 8px; line-height: 1.6;
}
.shot-img { border-radius: var(--radius-lg); border: 1px solid rgba(164,196,176,.25); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }

/* ── gates ──────────────────────────────────────────────────────────────── */

.gates-in {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(30px, 4vw, 52px); align-items: start;
}
.gate-list { display: flex; flex-direction: column; gap: 16px; }
.gate { display: flex; align-items: flex-start; gap: 13px; }
.gate svg { width: 19px; height: 19px; color: var(--pass); flex: 0 0 19px; margin-top: 3px; }
.gate-txt { font-size: 14.5px; color: var(--muted); }
.gate-txt b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }

.human {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 26px;
}
.human .badge { margin-bottom: 18px; }
.human h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 12px; }
.human p { color: var(--muted); font-size: 14.5px; }
.human p + p { margin-top: 12px; }
.human code {
  font-family: var(--mono); font-size: .88em; color: var(--brand);
  background: var(--sage-50); border: 1px solid var(--sage-100);
  border-radius: 4px; padding: 1px 5px;
}

/* ── audience ───────────────────────────────────────────────────────────── */

.aud { display: flex; flex-direction: column; }
.aud-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.aud-hd h3 { font-size: 16.5px; }

/* ── getting started ────────────────────────────────────────────────────── */

.gs-in {
  display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr) minmax(0,.5fr);
  gap: clamp(28px, 3.4vw, 44px); align-items: center;
}
.term {
  background: var(--charcoal-900);
  border: 1px solid rgba(164,196,176,.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-copy {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--muted-on-dark); font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 7px; border-radius: 6px; min-height: 44px; min-width: 44px;
}
.term-copy:hover { color: var(--ink-on-dark); background: rgba(255,255,255,.07); }
.term-copy svg { width: 13px; height: 13px; }
.term-body {
  margin: 0; padding: 18px 18px 20px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.95;
  color: #cfe6d7; overflow-x: auto;
}
.term-body .p { color: var(--brand-bright); user-select: none; }
.term-body .c { color: var(--muted-on-dark); }
.gs-btns { display: flex; flex-direction: column; gap: 12px; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.ftr { background: var(--charcoal-900); color: var(--muted-on-dark); padding: 64px 0 28px; }
.ftr-in {
  display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,1fr));
  gap: clamp(30px, 4vw, 60px);
}
.ftr .brand-word { color: #fff; }
.ftr .brand-mark { color: var(--brand-bright); }
.ftr-about { margin-top: 16px; font-size: 13.5px; line-height: 1.65; max-width: 34ch; }
.ftr-about b { color: var(--ink-on-dark); font-weight: 600; }
.ftr-social { display: flex; gap: 10px; margin-top: 22px; }
.ftr-social a {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(164,196,176,.22);
  display: grid; place-items: center; color: var(--muted-on-dark);
}
.ftr-social a:hover { color: #fff; border-color: var(--brand-bright); background: rgba(58,154,92,.16); }
.ftr-social svg { width: 16px; height: 16px; }

.ftr-col h4 {
  font-size: 14px; font-weight: 600; color: #fff;
  letter-spacing: 0; margin-bottom: 16px;
}
.ftr-col li + li { margin-top: 11px; }
.ftr-col a { color: var(--muted-on-dark); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.ftr-col a:hover { color: #fff; }
.ftr-col a svg { width: 11px; height: 11px; opacity: .6; }

.ftr-btm {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; color: #7d9187;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1040px) {
  .dash-in, .gates-in { grid-template-columns: 1fr; }
  .dash-in { gap: 40px; }
  .gs-in { grid-template-columns: 1fr 1fr; }
  .gs-in > .gs-txt { grid-column: 1 / -1; }
  .steps, .phases { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .step:not(:last-child) .step-top::after { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-in { gap: 24px; }
}

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; box-shadow: var(--shadow-card);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .flow { flex-wrap: wrap; justify-content: flex-start; gap: 16px 4px; }
  .flow-step { flex: 0 0 calc(33.333% - 14px); }
  .flow-arrow { display: none; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .steps, .phases, .grid-3, .grid-2, .gs-in { grid-template-columns: 1fr; }
  .gs-in > .gs-txt { grid-column: auto; }
  .flow-step { flex: 0 0 calc(50% - 8px); }
  .hero-feats { gap: 12px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-portrait { max-width: 380px; margin: 12px auto 0; }
  .workflow-band { margin-top: 24px; }
  .workflow-band .flowcard { padding: 24px 16px; }
  .ftr-in { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 4 / 3; }
}

/* Illustrative workflow board. Content is explicitly labeled as an example. */
.board-example { margin: 0; min-width: 0; background: var(--co-paper); color: var(--ink); border-radius: var(--radius); padding: 24px; }
.board-header { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; }
.board-header img { width: 28px; height: 28px; }
.board-header strong { font-size: 14px; }
.board-header span { margin-left: auto; font-size: 12px; color: var(--muted); }
.board-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.board-column { background: var(--co-ivory); padding: 12px; border-radius: 8px; }
.sec--dark .board-column h3 { color: var(--ink); font-size: 12px; margin-bottom: 14px; }
.board-card { background: var(--co-paper); border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-height: 160px; }
.board-card strong { display: block; font-size: 13px; line-height: 1.45; margin-bottom: 18px; }
.board-card p { font-size: 11px; color: var(--muted); margin-top: 12px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand); }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.state--review { color: var(--co-warning); }
.state--complete { color: var(--co-success); }
.state--blocked { color: var(--co-danger); }
.board-example figcaption { font-size: 12px; color: var(--muted); margin-top: 18px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ftr .brand-mark { border: 1px solid var(--co-muted-on-dark); border-radius: 12px; }
.no-js .nav-toggle { display: none; }
@media (max-width: 860px) {
  .no-js .hdr { position: static; }
  .no-js .hdr-in { height: auto; flex-wrap: wrap; padding-top: 16px; }
  .no-js .nav { position: static; display: flex; width: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; }
}
@media (max-width: 620px) {
  .board-columns { grid-template-columns: 1fr; }
  .board-card { min-height: auto; }
  .board-card strong { margin-bottom: 8px; }
  .board-header span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
