/* Datadex Group: ledger theme. Paper ground, ink type, thin rules. */

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --row: #ededea;
  --ink: #1e1f21;
  --ink-2: #3d3f43;
  --muted: #5a5c60;
  --rule: #d4d4cf;
  --accent: #8e1b1b;
  --accent-dark: #6f1414;
  --container: 1160px;
  --gutter: 32px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}

.lede {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: #000000;
  color: var(--bg);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.site-nav .btn {
  padding: 11px 18px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-ruled {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-head span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.split > :first-child {
  flex: 1 1 280px;
}

.split > :last-child {
  flex: 2 1 560px;
  min-width: 0;
}

.split h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.split h2 + p {
  margin-top: 20px;
  color: var(--ink-2);
}

.split h2 ~ p + p {
  margin-top: 16px;
  color: var(--ink-2);
}

/* Home hero with the before/after demo */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 88px;
}

.hero-copy {
  flex: 1 1 420px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin-top: 24px;
  font-size: 19px;
}

.hero .button-row {
  margin-top: 32px;
}

.demo {
  flex: 1 1 520px;
  min-width: 0;
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}

.toggle button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.demo-panel {
  min-height: 330px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
}

.demo-panel table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-2);
}

.demo-panel th {
  padding: 8px 12px;
  background: var(--row);
  font-weight: 500;
  text-align: left;
}

.demo-panel td {
  padding: 8px 12px;
  border-top: 1px solid var(--row);
}

.report {
  padding: 20px 18px;
  font-family: var(--sans);
}

.report-period {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.report-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
}

.report ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.report li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--row);
}

.flag {
  color: var(--accent);
  font-weight: 500;
}

.note {
  color: var(--muted);
}

.demo-caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Recent work */

.featured {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 36px 0 44px;
}

.featured > div {
  flex: 1 1 360px;
}

.featured .label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.featured h3 {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.featured p {
  margin-top: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.featured .more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 500;
}

.facts {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0 24px;
  align-content: start;
  margin: 0;
  font-size: 15px;
}

.facts div {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.facts dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.facts dd {
  margin: 6px 0 0;
  line-height: 1.45;
}

.table-scroll {
  overflow-x: auto;
}

.work-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
}

.work-table th {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}

.work-table td {
  padding: 20px 16px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-2);
}

.work-table tr:last-child td {
  border-bottom: 1px solid var(--rule);
}

.work-table th:first-child,
.work-table td:first-child {
  width: 48px;
  padding-left: 0;
  font-family: var(--mono);
  color: var(--muted);
}

.work-table td:nth-child(2) {
  width: 260px;
  font-weight: 500;
  color: var(--ink);
}

/* Services */

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 48px;
  margin: 0;
}

.service-list div {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.service-list dt {
  font-size: 19px;
  font-weight: 600;
}

.service-list dd {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* Quotes */

.quote-lg {
  max-width: 880px;
  margin: 0;
}

.quote-lg blockquote {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.quote-lg figcaption,
.quotes figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 72px;
}

.quotes figure {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.quotes blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.steps .step-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.steps h3 {
  margin: 10px 0 8px;
  font-size: 19px;
}

.steps p:last-child {
  font-size: 15px;
  color: var(--ink-2);
}

/* Closing call to action */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 2px solid var(--ink);
}

.cta h2 {
  max-width: 640px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.cta p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-2);
}

/* Inner page heading */

.page-head {
  padding-top: 72px;
  padding-bottom: 64px;
}

.page-head h1 {
  max-width: 940px;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-head .lede {
  margin-top: 28px;
}

.crumb {
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
}

/* Case study */

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 32px;
  margin: 48px 0 0;
  border-top: 2px solid var(--ink);
}

.meta div {
  padding: 16px 0;
}

.meta dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.meta dd {
  margin: 6px 0 0;
  font-size: 16px;
}

.case {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  padding-top: 24px;
  padding-bottom: 96px;
}

.toc {
  flex: 1 1 200px;
  font-size: 15px;
}

.toc p {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
}

.case-body {
  flex: 999 1 640px;
  min-width: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #2e3034;
}

.case-body h2 {
  margin-top: 64px;
  font-size: 30px;
  letter-spacing: -0.015em;
  color: var(--ink);
  scroll-margin-top: 24px;
}

.case-body h2:first-child {
  margin-top: 0;
}

.case-body h2 + p {
  margin-top: 18px;
}

.outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.outputs div {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.outputs h3 {
  font-size: 18px;
  color: var(--ink);
}

.outputs p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.4;
}

.flow li {
  flex: 1 1 140px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.flow li span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.flow .arrow {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  color: var(--accent);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 24px 0 0;
}

.results dt {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.results dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

/* About */

.credentials {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.credentials li:last-child {
  border-bottom: 1px solid var(--rule);
}

.prose p {
  line-height: 1.65;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 18px;
}

/* Products */

.product-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.product-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.product-list h2 {
  flex: 1 1 280px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.product-list p {
  flex: 2 1 360px;
  color: var(--ink-2);
}

.product-list .status {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* Contact and booking */

.form {
  display: grid;
  gap: 22px;
}

.form label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
}

.form .hint {
  font-weight: 400;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #8a8b87;
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

.form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.5em;
  font-size: 15px;
}

.form-status.success {
  color: #1d5c32;
}

.form-status.error {
  color: var(--accent);
}

.form-note {
  font-size: 15px;
  color: var(--ink-2);
}

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.check-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.aside-note h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.aside-note p {
  color: var(--ink-2);
}

.calendly-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
}

.calendly-inline-widget {
  width: 100%;
  height: 720px;
}

.booking-fallback {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.booking-fallback h2 {
  font-size: 24px;
}

.booking-fallback p {
  margin-top: 12px;
  color: var(--ink-2);
}

.booking-fallback .btn {
  margin-top: 24px;
}

/* Footer */

.site-footer {
  padding-top: 40px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Phones and small tablets */

@media (max-width: 820px) {
  :root {
    --gutter: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
  }

  .site-nav .btn {
    margin-top: 12px;
    padding: 14px 18px;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero h1,
  .page-head h1 {
    font-size: 40px;
  }

  .split h2 {
    font-size: 32px;
  }

  .quote-lg blockquote {
    font-size: 26px;
  }

  .cta h2 {
    font-size: 34px;
  }

  .featured h3 {
    font-size: 24px;
  }

  .flow .arrow {
    display: none;
  }
}
