/* Kelwick marketing site. Values from the "Home — platform-led" design (2026-10-11). */

/* Inter and Manrope (SIL Open Font License), latin, served from this site. */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --forest: #173E34;
  --ink: #172C26;
  --body: #3F5048;
  --muted: #4F5F58;
  --paper: #F5F3EC;
  --card: #FEFDFB;
  --line: #DCE6DF;
  --dash: #B9C9C0;
  --coral: #FF7547;
  --ok: #2E6B4E;
  --amber-bg: #FFF0D6;
  --amber: #7A4A0C;
  --focus: #2F62D6;
  --display: Manrope, Arial, sans-serif;
  --text: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); }
a:hover { color: var(--ink); }
p, h1, h2, h3, ol { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest);
}
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body);
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  background: var(--forest); color: var(--paper);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; font-size: 16px; color: var(--forest); text-decoration: none;
}
.btn:focus-visible, .arrow-link:focus-visible, .nav a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}

/* Nav */
.site-header { padding-top: 28px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 20px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: var(--forest); line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--forest); }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 840px; }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.06;
  letter-spacing: -0.025em; color: var(--forest); text-wrap: balance;
}
.lede { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 52ch; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 8px; }

/* The layer diagram */
.diagram {
  position: relative; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px 32px 28px; overflow: hidden;
}
.diagram::before {
  content: ""; position: absolute; top: 0; right: 40px; width: 84px; height: 22px;
  background: var(--coral); transform: skewX(-38deg);
}
.diagram-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; align-items: stretch;
}
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.arrivals { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.arrivals li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border-radius: 8px; font-size: 14px;
}
.arrivals li.next { border: 1px dashed var(--dash); color: var(--muted); }
.arrivals svg { flex-shrink: 0; }

.inbox {
  background: var(--forest); border-radius: 12px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 12px; flex-grow: 1;
}
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inbox-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--paper); }
.inbox-count { font-size: 12px; color: var(--line); }
.inbox-rows { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; list-style: none; margin: 0; padding: 0; }
.inbox-rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--card); border-radius: 6px; border-left: 3px solid var(--line);
}
.inbox-rows li.attention { border-left-color: var(--coral); }
.inbox-rows .what { color: var(--ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { flex-shrink: 0; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--line); color: var(--forest); }
.pill.review { background: var(--amber-bg); color: var(--amber); }
.pill.waiting { background: var(--paper); color: var(--body); }
.inbox-note { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--line); }

.erp {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px; flex-grow: 1;
}
.erp-name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--forest); }
.erp-events { display: flex; flex-direction: column; gap: 10px; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.erp-events li { display: flex; align-items: flex-start; gap: 10px; }
.erp-events svg { flex-shrink: 0; margin-top: 2px; }
.erp-note { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--muted); }
.sample-note { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* Workflows */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflows { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 48px; }
.section-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px 64px; align-items: end;
}
.section-title { display: flex; flex-direction: column; gap: 16px; }
h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--forest); text-wrap: balance;
}
.section-intro { font-size: 18px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--paper); border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-top .eyebrow { color: var(--body); }
.badge { padding: 4px 9px; background: var(--forest); color: var(--paper); border-radius: 999px; font-size: 11px; font-weight: 600; }
.card h3 {
  font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--forest); text-wrap: balance;
}
.card p { font-size: 15px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.card .arrow-link { gap: 8px; margin-top: auto; padding-top: 8px; font-size: 14px; }
.aside-note { font-size: 13px; color: var(--muted); }

/* How it works */
.how { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.how-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.principle { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--forest); }
.principle .num { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--coral); }
.principle h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; color: var(--forest); text-wrap: balance; }
.principle p { font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.states { background: var(--line); border-radius: 12px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.states ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.states li { background: var(--card); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.states li.attention { border-left: 3px solid var(--coral); }
.states strong { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--forest); }
.states span { font-size: 13px; color: var(--body); }

/* Footer (the "Terms of service" design's, 2026-10-12) */
.site-footer { padding-top: 48px; padding-bottom: 40px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .eyebrow { color: var(--body); }
.brand-sm { gap: 9px; }
.brand-sm span { font-size: 22px; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-nav span { font-weight: 600; color: var(--ink); }
.footer-nav a { text-decoration: none; color: var(--body); }
.footer-nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.footer-nav a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; color: var(--muted); }

/* Legal pages: terms and privacy (sticky contents beside the document) */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; padding-bottom: 40px; }
.legal-head h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--forest); text-wrap: balance;
}
.legal-date { font-size: 14px; color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding-right: 8px; }
.toc .label { color: var(--muted); padding-bottom: 8px; }
.toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.toc a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.legal-doc { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.legal-doc section { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-doc h2 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--forest); }
.legal-doc h2 .num { color: var(--muted); font-weight: 600; margin-right: 10px; }
.doc-text { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 72ch; }
.doc-text ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) {
  /* One column: the contents above the document, not beside it. */
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
}

/* 404 */
.notfound {
  padding-top: 96px; padding-bottom: 120px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 72px; align-items: center;
}
.notfound-copy { display: flex; flex-direction: column; gap: 24px; }
.notfound h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.06;
  letter-spacing: -0.025em; color: var(--forest); text-wrap: balance;
}
.notfound .lede { font-size: 18px; max-width: 40ch; }
.notfound-links { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 500; }
.notfound-mark { width: min(100%, 320px); justify-self: center; display: block; }

/* Pricing */
.pricing-hero { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 22px; }
.pricing-hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.6vw, 72px); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--forest); text-wrap: balance; max-width: 14ch;
}
.pricing-hero .lede { font-size: 19px; max-width: 56ch; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.ticks li { display: flex; gap: 10px; }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--forest); }
.ticks-row { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; line-height: 1.4; }
.ticks-row svg { margin-top: 1px; }
.tiers-wrap { padding-bottom: 40px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; padding-top: 12px; }
.tier {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
}
.tier-pick { border: 2px solid var(--forest); }
.tier-badge {
  position: absolute; top: -12px; left: 24px; background: var(--coral); color: var(--ink); border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.tier-name { display: flex; flex-direction: column; gap: 6px; }
.tier-name span:first-child { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--forest); }
.tier-name span:last-child { font-size: 14px; color: var(--body); }
.tier-price { display: flex; align-items: baseline; gap: 6px; }
.tier-price span:first-child { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; color: var(--forest); font-variant-numeric: tabular-nums; }
.tier-price span:last-child { font-size: 14px; color: var(--muted); }
.tier-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; background: var(--paper); border-radius: 8px; }
.tier-facts div { display: flex; flex-direction: column; gap: 2px; }
.tier-facts span:first-child, .wf-steps span { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tier-facts strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tier-facts span:last-child { font-size: 12px; color: var(--muted); }
.tier .btn { margin-top: auto; border: 1px solid var(--forest); }
.tier .btn-light { background: var(--card); color: var(--forest); border-color: var(--line); }
.tier .btn-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tiers-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.included-wrap { padding-bottom: 80px; }
.included {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap;
}
.included > span { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--forest); }
.ask-band { background: var(--forest); }
.ask-inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }
.ask-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ask-head .eyebrow { color: var(--line); }
.ask-head h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; color: var(--paper); }
.ask-head p:last-child { font-size: 17px; line-height: 1.55; color: var(--line); max-width: 60ch; }
.ask-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.ask-card {
  background: #1E4B40; border: 1px solid rgba(245, 243, 236, 0.18); border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; min-width: 0; color: var(--paper);
}
.ask-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.ask-name { font-family: var(--display); font-weight: 700; font-size: 22px; }
.ask-num { display: flex; align-items: baseline; gap: 8px; }
.ask-num span:first-child { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ask-num span:last-child { font-size: 13px; color: var(--line); }
.ask-card p { font-size: 15px; line-height: 1.5; color: var(--line); }
.ask-card .ticks, .ask-card .ticks svg { color: var(--paper); }
.ask-card-light { background: var(--card); border-color: var(--line); color: var(--ink); }
.ask-card-light .ask-num span:last-child, .ask-card-light p { color: var(--body); }
.ask-card-light .ticks { color: var(--ink); }
.ask-card-light .ticks svg { color: var(--forest); }
.ask-note { font-size: 13px; color: var(--line); }
.credits-line {
  padding-top: 72px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px 72px; align-items: center;
}
.credits-line > div { display: flex; flex-direction: column; gap: 14px; }
.credits-line h2 { font-size: clamp(28px, 3.2vw, 44px); }
.credits-line > p { font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.wf-wrap { padding-top: 40px; padding-bottom: 88px; }
.wf {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px 48px; align-items: center;
}
.wf-copy { display: flex; flex-direction: column; gap: 12px; }
.wf-copy h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; color: var(--forest); text-wrap: balance; }
.wf-copy p:last-child { font-size: 15px; line-height: 1.55; color: var(--body); max-width: 52ch; }
.wf-steps { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.wf-steps div { flex: 1 1 130px; background: var(--paper); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wf-steps strong { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.wf-arrow { flex-shrink: 0; align-self: center; color: var(--muted); }
.faq-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 72px; align-items: start; }
.faq-head { display: flex; flex-direction: column; gap: 14px; }
.faq-head p:last-child { font-size: 15px; line-height: 1.55; color: var(--body); max-width: 36ch; }
.faq-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--forest);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.faq-list .plus, .faq-list .minus { font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq-list details[open] .plus, .faq-list details:not([open]) .minus { display: none; }
.faq-list details p { padding: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--body); max-width: 70ch; }
.cta-band { background: var(--line); }
.cta { padding-top: 72px; padding-bottom: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta > div { display: flex; flex-direction: column; gap: 8px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cta p { font-size: 16px; color: var(--body); }
@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
}
.ai-actions { padding-top: 32px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 12px; }
.ai-actions > * { max-width: 760px; }
.ai-actions h3 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--forest); }
.ai-actions table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ai-actions th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ai-actions td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.45; }
.ai-actions tr:last-child td { border-bottom: 0; }
.ai-actions th:last-child, .ai-actions td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ai-actions p { font-size: 14px; color: var(--muted); }
