@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
/* Vexa Flow marketing site — brand: paper #F1EDED, ink #1E1C1C, red #CF1F3C */
:root {
  --paper: #F1EDED;
  --paper-2: #E8E3E3;
  --paper-3: #DDD6D6;
  --white: #FBFAFA;
  --ink: #1E1C1C;
  --ink-2: #4A4545;
  --ink-3: #7A7373;
  --red: #CF1F3C;
  --red-dark: #A9172F;
  --red-soft: #F6DCE1;
  --line: #D6CFCF;
  --ok: #1F7A4D;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-stretch: 125%; font-variation-settings: "wdth" var(--wide); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

/* ---------- Brand mark ---------- */
.mark { display: inline-flex; align-items: flex-start; gap: .18em; text-decoration: none; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.03em; font-size: 1.7rem; line-height: 1; }
.mark .bar { width: .2em; height: 1.05em; background: var(--red); transform: rotate(-23deg) translateY(-.12em); transform-origin: top; border-radius: 1px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .login { text-decoration: none; font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; font-size: clamp(2.4rem, 4.6vw, 4.3rem); font-stretch: 112%; font-variation-settings: "wdth" 112; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-3); }

/* Routing board — the signature moment */
.board { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 60px -30px rgba(30, 28, 28, .35); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.board-head strong { font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 1.05rem; }
.board-head span { font-size: .85rem; color: var(--ink-3); }
.intake { display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: 14px 16px; }
.intake .avatar { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-weight: 800; color: #fff; }
.intake small { display: block; color: #BDB5B5; font-size: .8rem; }
.intake b { font-weight: 700; }
.lanes { position: relative; display: grid; gap: 10px; margin-top: 30px; }
.lanes::before { content: ""; position: absolute; left: 30px; top: -30px; bottom: 26px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px); }
.lane { position: relative; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px 10px 0; border-radius: var(--r-md); }
.lane-who { justify-self: center; position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--white); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.lane-role { font-size: .8rem; color: var(--ink-3); line-height: 1.2; }
.lane-name { font-weight: 600; line-height: 1.25; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.done { background: #DCEFE4; color: var(--ok); }
.board-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--paper-2); font-size: .88rem; color: var(--ink-2); }
.meter { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); margin: 0 14px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width 1.2s var(--ease); }

/* Load sequence (JS adds .play) */
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero .lede, .js .hero-actions, .js .hero-note { opacity: 0; }
.js .board { opacity: 0; transform: translateY(18px); }
.js .lane .chip { opacity: 0; transform: translateX(-26px) scale(.9); }
.play .hero h1 .line > span { transform: none; transition: transform .9s var(--ease); }
.play .hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.play .hero .lede, .play .hero-actions, .play .hero-note { opacity: 1; transition: opacity .8s .35s var(--ease); }
.play .board { opacity: 1; transform: none; transition: opacity .8s .3s var(--ease), transform .8s .3s var(--ease); }
.play .lane .chip { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.play .lane:nth-child(1) .chip { transition-delay: 1.0s; }
.play .lane:nth-child(2) .chip { transition-delay: 1.25s; }
.play .lane:nth-child(3) .chip { transition-delay: 1.5s; }
.play .lane:nth-child(4) .chip { transition-delay: 1.75s; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-ink .sec-head p, .sec-ink .muted { color: #BDB5B5; }

/* Roles strip */
.roles-strip { border-block: 1px solid var(--line); }
.roles-strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; list-style: none; margin: 0 auto; padding: 26px 0; font-weight: 600; color: var(--ink-2); }
.roles-strip li { display: flex; align-items: center; gap: 10px; }
.roles-strip li::before { content: ""; width: 4px; height: 16px; background: var(--red); transform: rotate(-23deg); }

/* Steps — a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 28px 28px 8px 0; counter-increment: step; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { content: counter(step); display: block; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 3.2rem; line-height: 1; color: var(--red); margin-bottom: 22px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }

/* Role views (tabs) */
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 4px; }
.tab { text-align: left; background: none; border: 0; padding: 14px 18px; border-radius: var(--r-md); cursor: pointer; font-weight: 600; font-size: 1.05rem; color: #BDB5B5; display: flex; justify-content: space-between; align-items: center; transition: background .2s, color .2s; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; width: 4px; height: 18px; background: var(--red); transform: rotate(-23deg); }
.panel { background: #2A2727; border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); min-height: 360px; }
.panel[hidden] { display: none; }
.panel.show { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: 1.6rem; margin-bottom: 12px; }
.panel > p { color: #CFC7C7; max-width: 52ch; }
.panel-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-list li { background: var(--ink); border-radius: var(--r-md); padding: 16px 18px; font-size: .98rem; color: #E6DFDF; border-left: 3px solid var(--red); }

/* Performance */
.perf { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.perf ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.perf li { padding-left: 22px; position: relative; color: var(--ink-2); }
.perf li::before { content: ""; position: absolute; left: 0; top: .45em; width: 4px; height: 14px; background: var(--red); transform: rotate(-23deg); }
.chart { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.chart-head b { font-stretch: 125%; font-variation-settings: "wdth" 125; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 52px; gap: 14px; align-items: center; font-size: .95rem; }
.bar-row .track { height: 14px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width 1.1s var(--ease); }
.bar-row.top .fill { background: var(--red); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.chart.seen .fill { width: var(--w); }

/* Pricing */
.bill-toggle { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 5px; margin-top: 26px; }
.bill-toggle button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bill-toggle em { font-style: normal; color: var(--red); font-size: .85rem; margin-left: 4px; }
.bill-toggle button[aria-pressed="true"] em { color: #FF9DAE; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.plan { padding: 34px 30px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured { background: var(--ink); color: var(--paper); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { font-size: 1.45rem; }
.plan .tag { font-size: .8rem; font-weight: 700; background: var(--red); color: #fff; padding: 5px 11px; border-radius: 999px; }
.plan .for { margin-top: 10px; color: var(--ink-2); font-size: .97rem; min-height: 3.1em; }
.plan.featured .for, .plan.featured .per, .plan.featured .limits { color: #BDB5B5; }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 2.7rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.per { color: var(--ink-3); font-size: .95rem; }
.limits { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .98rem; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: .25em; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23A9172F' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan.featured li::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan-top { min-height: 30px; }
.plan .btn { width: 100%; }
.pricing-notes { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 24px; color: var(--ink-2); font-size: .95rem; }
.pricing-notes span { display: inline-flex; gap: 8px; align-items: center; }
.pricing-notes span::before { content: ""; width: 4px; height: 13px; background: var(--red); transform: rotate(-23deg); }
.enterprise { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-radius: var(--r-lg); border: 1.5px dashed var(--line); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact-points { margin-top: 30px; display: grid; gap: 18px; }
.contact-points div { display: grid; gap: 2px; }
.contact-points b { color: var(--paper); }
form.card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--red-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; }
.alert { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r-md); font-weight: 500; }
.alert-ok { background: #DCEFE4; color: var(--ok); }
.alert-err { background: var(--red-soft); color: var(--red-dark); }

/* Footer */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 26px; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot-legal { margin-top: 36px; font-size: .88rem; color: var(--ink-3); }

/* Reveal (used once per section heading) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .perf, .faq, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { padding-bottom: 28px; }
  .tabs { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab { white-space: nowrap; }
  .tab[aria-selected="true"]::after { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .login, .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); padding: 20px 20px 28px; gap: 6px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { display: block; padding: 12px 0; font-size: 1.15rem; color: var(--ink); }
  .nav.open .nav-links .m-only { display: block; }
}
@media (min-width: 821px) { .m-only { display: none; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .panel-list { grid-template-columns: 1fr; }
  form.card { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 88px 1fr 44px; font-size: .88rem; }
  .lane { grid-template-columns: 52px 1fr; }
  .lane .chip { grid-column: 2; justify-self: start; }
  .lanes::before { left: 25px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---- Vexa Flow wordmark ---- */
.mark .mark-flow { font-weight: 500; font-stretch: 100%; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; color: var(--red); margin-left: .05em; }

/* ---- Footer columns ---- */
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav b { font-size: .9rem; color: var(--ink); }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p { margin: 0; max-width: 34ch; }
.foot-company { color: var(--red-dark); font-weight: 600; text-decoration: none; font-size: .92rem; }
.foot-company:hover { text-decoration: underline; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---- Legal pages ---- */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--red-dark); }
.legal .note { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); }
