/* informitics site styles: shared by every page. */
:root {
  /* informitics brand green (#7EBC42, from the "i" logo) expanded into a scale */
  --green-900: #2C5410;
  --green-700: #44781A;
  --green-600: #5E9A2C;
  --green-500: #7EBC42;
  --green-300: #B4D98C;
  --green-100: #DCEEC8;
  --green-50:  #F1F8E8;
  /* informitics greys (diagram circles, body text) */
  --grey-700: #3A3A3A;
  --grey-500: #7A7A7A;
  --grey-200: #E6E6E6;
  --grey-100: #F0F0F0;
  --ink: #1C1F1A;
  --ink-2: #4A4F47;
  --ink-3: #626860;
  --line: #DFE2DC;
  --line-soft: #EAECE7;
  --page: #F5F6F3;
  --surface: #FFFFFF;
  --surface-2: #FAFBF8;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
ul { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.1; text-wrap: balance; }
.h3 { font-size: 24px; }
.lede { font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.muted { color: var(--ink-3); font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-500); color: var(--green-900); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { max-width: 1200px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--green-700); }
.nav .btn { min-height: 40px; padding: 0 16px; }
@media (max-width: 760px) { .nav a.nav__opt { display: none; } .nav { flex-wrap: nowrap; gap: 16px; } }
@media (max-width: 420px) { .nav a.nav__xs { display: none; } .nav .btn { padding: 0 14px; } }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__title { font-size: clamp(40px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.hero .lede { font-size: 19px; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: 14px; color: var(--ink-3); }
.hero__note strong { color: var(--green-700); }
.hero__card { padding: 28px; display: flex; flex-direction: column; gap: 18px; border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(44, 84, 16, 0.3); }
.hero__card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero__card-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.hub { width: 100%; height: auto; display: block; }
.hub a { cursor: pointer; }
.hub a:hover .hub__node, .hub a:focus .hub__node { fill: var(--green-50); stroke: var(--green-500); }
.hub a:focus { outline: none; }
.hub a:focus-visible .hub__node { stroke: var(--green-700); stroke-width: 3; }
.hub__label { font-family: var(--font-head); font-weight: 600; font-size: 15px; fill: var(--grey-700); }
.hub__num { font-family: var(--font-mono); font-size: 11px; fill: var(--green-700); }

.hub__big { display: none; font-family: var(--font-head); font-weight: 700; font-size: 34px; fill: var(--green-700); }
.hub-list { display: none; list-style: none; padding: 0; margin: 0; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; line-height: 1.25; min-height: 44px; }
.hub-list a:hover { border-color: var(--green-500); background: var(--green-50); }
.hub-list b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--green-700); }
@media (max-width: 560px) {
  .hub__label, .hub__num { display: none; }
  .hub__big { display: inline; }
  .hub-list { display: grid; }
  .hero__card { padding: 20px; }
  .hero__card-head .muted { display: none; }
}

/* Equation band */
.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: stretch; gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.eq__item { padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.eq__item--result { background: var(--green-50); border-color: var(--green-300); }
.eq__abbr { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--green-700); letter-spacing: .04em; }
.eq__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.2; }
.eq__op { align-self: center; font-family: var(--font-head); font-weight: 600; font-size: 28px; color: var(--grey-500); }
@media (max-width: 860px) { .eq { grid-template-columns: 1fr; } .eq__op { justify-self: center; line-height: 1; } }

/* Component rows */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; padding: clamp(24px, 4vw, 48px); background: var(--surface-2); }
.feature__text { display: flex; flex-direction: column; gap: 16px; }
.feature__num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.feature__text p { color: var(--ink-2); }
.feature__text .lead { color: var(--ink); font-weight: 500; }
.built { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.built__label { font-size: 14px; font-weight: 600; }
.built ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px 20px; }
.built li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.built li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2344781A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.visual { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.visual__cap { font-size: 13px; color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* Profile visual */
.profile__head { display: flex; align-items: center; gap: 14px; }
.profile__avatar { width: 52px; height: 52px; border-radius: 12px; background: var(--green-500); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; flex: none; }
.profile__id { font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.chip { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); }
.chip b { font-size: 14px; font-weight: 600; }
.chip span { font-size: 13px; color: var(--ink-3); }
.chip i { display: block; height: 4px; border-radius: 4px; background: var(--grey-200); margin-top: 6px; overflow: hidden; }
.chip i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--green-500); }

/* Pipeline visual */
.pipe { display: flex; flex-direction: column; gap: 0; }
.pipe__row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.pipe__row:last-child { border-bottom: 0; }
.pipe__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.pipe__stat { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); text-align: right; }
.records { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line); color: var(--ink-3); background: var(--surface-2); }
.rec--gold { border: 1px solid var(--green-500); background: var(--green-50); color: var(--green-900); font-weight: 500; }
.arrow { color: var(--grey-500); font-family: var(--font-head); }

/* Acquisition visual */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.flow__sources { display: flex; flex-direction: column; gap: 8px; }
.src { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.src::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex: none; box-shadow: 0 0 0 3px var(--green-100); }
.flow__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--grey-500); }
.flow__dest { display: flex; flex-direction: column; gap: 10px; }
.box { border-radius: 10px; padding: 14px; text-align: center; font-family: var(--font-head); font-weight: 600; }
.box small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-3); }
.box--api { border: 1px solid var(--line); background: var(--surface); }
.box--dm { border: 1px solid var(--green-300); background: var(--green-50); }
.box--cdmp { background: var(--green-500); color: #fff; font-size: 20px; }
.box--cdmp small { color: #F1F8E8; }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .flow__mid { transform: rotate(90deg); } }

/* Analytics visual */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat span { display: block; font-size: 12px; color: var(--ink-3); }
.stat b { font-family: var(--font-head); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; display: block; }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Compliance visual */
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--green-700); padding: 9px 12px; }
.ctable th:first-child { border-top-left-radius: 8px; }
.ctable th:last-child { border-top-right-radius: 8px; }
.ctable td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.ctable tr:nth-child(odd) td { background: var(--surface-2); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-900); white-space: nowrap; }
.pill--grey { background: var(--grey-100); color: var(--grey-700); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step__num { font-family: var(--font-mono); font-size: 14px; color: var(--green-700); }
.step h3 { font-size: 22px; }
.step p { color: var(--ink-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-700); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; }

/* CTA + footer */
.cta { background: var(--green-900); color: #fff; border-radius: 18px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 28px; align-items: center; }
.cta .h2 { color: #fff; }
.cta p { color: var(--green-100); margin-top: 12px; font-size: 18px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn--primary { background: var(--green-500); color: #13240A; }
.cta .btn--primary:hover { background: var(--green-300); color: #13240A; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 820px) { .cta__btns { justify-content: flex-start; } }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--green-700); }
.tagline { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }

/* Nav current page */
.nav a[aria-current="page"]:not(.btn) { color: var(--green-700); }

/* Inner pages */
.page-hero { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.page-body { padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: 26px; color: var(--ink); margin-top: 20px; }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 8px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--ink); }
.panel { padding: clamp(24px, 4vw, 40px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.fact { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--font-head); font-size: 34px; font-weight: 600; color: var(--green-700); line-height: 1.1; }
.fact span { color: var(--ink-2); font-size: 15px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.person { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green-100); }
.person h3 { font-size: 22px; }
.person .role { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.person p { color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px; }
.contact-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-card h2 { font-size: 22px; }
.contact-card p { color: var(--ink-2); }
.contact-card .btn { align-self: flex-start; margin-top: 4px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.address { font-family: var(--font-mono); font-size: 15px; color: var(--ink); line-height: 1.6; }
.posts { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.post-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--green-500); color: inherit; }
.post-card h2 { font-size: 24px; color: var(--ink); }
.post-card p { color: var(--ink-2); }
.post-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.readmore { font-weight: 600; color: var(--green-700); }
.back { font-weight: 500; text-decoration: none; }

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
