@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f8f8f3;
  --white: #fff;
  --ink: #161c2c;
  --muted: #4c5260;
  --blue: #2446dd;
  --deep-blue: #1834b8;
  --line: #dfE1e2;
  --tint: #eef1ff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5a74ff; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }

.wrap { width: min(1264px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: clamp(4.25rem, 7.3vw, 7rem); }
.skip-link {
  position: fixed;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  gap: 1.5rem;
}
.brand { width: 116px; }
.brand img { width: 100%; height: auto; }
.header-inner nav { display: flex; gap: clamp(1.1rem, 3.2vw, 3.5rem); align-items: center; }
.header-inner nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.header-inner nav a:hover { color: var(--blue); }
.header-inner > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 52px;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .91rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button span { font-size: 1.1em; }
.button-small { min-height: 43px; padding: .55rem .9rem; }
.button-outline { border-color: #bbbfd0; color: var(--ink); }
.button-outline:hover { background: var(--white); border-color: var(--blue); color: var(--blue); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--deep-blue); }
.button-white { background: var(--white); color: var(--deep-blue); }
.button-white:hover { background: #e6ecff; }

.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(2.3rem, 5vw, 5.25rem);
  padding-block: clamp(2.5rem, 4.7vw, 4.5rem);
}
.eyebrow {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .45rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .1em;
}
.eyebrow-section { margin-bottom: .9rem; }
h1, h2 { font: 400 3.75rem/.98 var(--serif); letter-spacing: -.033em; text-wrap: balance; }
h1 {
  max-width: 13ch;
  margin-block: 1.15rem 1.4rem;
  font-size: clamp(4.75rem, 7.1vw, 7rem);
  line-height: .89;
  text-wrap: initial;
}
h1 em, h2 em { color: var(--blue); font-weight: 400; }
.hero-lede { max-width: 34ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.55rem; margin-top: 1.8rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 35px;
  color: var(--blue);
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero-art { position: relative; overflow: hidden; border-radius: 12px; background: #2039b4; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; }
.hero-art figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  padding: .45rem .7rem;
  border-radius: 5px;
  background: #111a3de8;
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
}

.solutions { border-top: 1px solid var(--line); background: #fff; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.9rem;
}
.section-heading p { max-width: 32ch; color: var(--muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 2.55vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  border-radius: 7px;
  background: var(--tint);
  color: var(--blue);
}
.service-icon i { display: block; position: relative; }
.icon-quote { width: 19px; height: 20px; border: 1.5px solid; border-radius: 3px; }
.icon-quote::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 8px;
  height: 6px;
  border-block: 1.5px solid;
}
.icon-grid {
  width: 8px;
  height: 8px;
  margin: 0 10px 10px 0;
  border-radius: 1.5px;
  background: currentColor;
  box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor;
}
.icon-chart {
  width: 20px;
  height: 19px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  border-radius: 0 0 0 2px;
}
.icon-chart::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 4px;
  width: 3px;
  height: 5px;
  background: currentColor;
  box-shadow: 5px -3px currentColor, 10px -6px currentColor, 5px 0 currentColor, 10px -2px currentColor;
}
h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.service-card p { max-width: 34ch; margin-block: .65rem 1rem; color: var(--muted); }
.service-card .text-link { margin-top: auto; }

.demo-section { border-block: 1px solid #e0e5ff; background: var(--tint); }
.demo-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(1.7rem, 7vw, 6rem); }
.demo-copy h2 { max-width: 11ch; font-size: clamp(3.2rem, 5.5vw, 5rem); text-wrap: initial; }
.demo-copy > p:not(.eyebrow) { max-width: 32ch; margin-top: 1.05rem; color: var(--muted); }
.demo-copy .demo-note { color: var(--deep-blue); font-size: .8rem; font-weight: 700; }
.demo-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d3daf5;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 48px #24378812;
}
.demo-top {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid #e1e5f3;
  background: #f9faff;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9caee9; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: .35rem .65rem; padding: .85rem 1.15rem 0; }
.demo-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: .4rem .75rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.demo-tabs a:hover, .demo-tabs [aria-selected="true"] { background: var(--tint); color: var(--deep-blue); }
.demo-panel { padding: 1.1rem 1.15rem 1.25rem; }
.demo-panel h3 { margin-bottom: 1.05rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.field-grid label { min-width: 0; font-size: .82rem; font-weight: 700; }
.field-grid input, .field-grid select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: .35rem;
  padding: .45rem .5rem;
  border: 1px solid #c8ccda;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}
.demo-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem 1rem;
  margin-top: 1.15rem;
  padding: .7rem .85rem;
  border-radius: 6px;
  background: var(--tint);
  color: #233671;
}
.demo-result span { font-size: .82rem; font-weight: 700; }
.demo-result output { font-size: clamp(1.1rem, 2.8vw, 1.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.catalog-options { display: grid; gap: .3rem; }
.catalog-options label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .55rem;
  min-height: 40px;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: .86rem;
  cursor: pointer;
}
.catalog-options label:has(input:checked) { border-color: #8ca0ee; background: #f7f8ff; }
.catalog-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.margin-note, .noscript-note { margin-top: .6rem; color: var(--muted); font-size: .8rem; }
.noscript-note { margin: .5rem 1.15rem 1.25rem; }

.process-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 7.5vw, 6.5rem); }
.process-copy h2 { max-width: 13ch; text-wrap: initial; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.process-list li > span { padding-top: .14rem; color: var(--blue); font-size: .81rem; font-weight: 700; }
.process-list p { margin-top: .3rem; color: var(--muted); }

.contact { padding-block: clamp(3.1rem, 6vw, 6rem); background: #2140cc; color: var(--white); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.8rem 3rem; }
.contact .eyebrow { color: #d9e1ff; }
.contact h2 { font-size: clamp(3.2rem, 6.6vw, 5.85rem); text-wrap: initial; }
.contact p:not(.eyebrow) { max-width: 40ch; margin-top: .85rem; color: #eaf0ff; }
.contact-actions { display: grid; justify-items: start; gap: .75rem; }
.contact-email { color: #f1f4ff; font-size: .9rem; text-underline-offset: .22em; }
.contact :focus-visible { outline-color: #fff; }
.site-footer { background: #111e3b; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.15rem; font-size: .83rem; }
.footer-inner p { font-weight: 700; }
.footer-inner address { font-style: normal; color: #d5dcf0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .wrap { width: min(1264px, calc(100% - 72px)); }
  h1 { font-size: clamp(3.7rem, 8.4vw, 5.6rem); }
  h2 { font-size: clamp(3rem, 6.4vw, 3.75rem); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .header-inner { grid-template-columns: 1fr auto; gap: .65rem; padding-block: .85rem .65rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: .65rem 1.4rem; flex-wrap: wrap; }
  .header-inner nav a { padding-block: .3rem; }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; }
  h1 { font-size: clamp(3.5rem, 12.7vw, 5.6rem); margin-block: .85rem 1rem; }
  .actions { margin-top: 1.25rem; }
  .hero-art img { aspect-ratio: 1.22; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .65rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card p { max-width: none; }
  .demo-layout, .process-section { grid-template-columns: 1fr; }
  .demo-copy h2, .process-copy h2 { max-width: 17ch; }
  .contact-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner nav { gap: .25rem .85rem; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
