/* Absomatic: the original business-card look */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1F1F1F;
  --text: #2E2E2E;
  --muted: #5A5A5A;
  --faint: #6B6B6B;
  --blue: #0A6FB3;
  --violet: #3D2A85;
  --cyan: #00A3E0;
  --band: #F4F7FA;
  --line: #E3E9EE;
  --line-strong: #C9D3DD;
  --white: #FFFFFF;

  --brand-rule: linear-gradient(90deg, var(--violet), var(--cyan));
  --brand-button: linear-gradient(90deg, var(--violet), #1B5FA8);
  --brand-band: linear-gradient(60deg, var(--violet) 0%, #1E5DB0 55%, #0E78BE 100%);

  --font: "Lato", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 96px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p, dd, dt, figcaption { text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--violet); }

::selection { background: #CDEBFA; color: var(--ink); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus, .skip:hover { top: 12px; color: var(--white); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */

.site-header__inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-header__logo img { height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 0.9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--violet); text-decoration: underline; }
.site-nav .site-nav__contact { color: var(--blue); font-weight: 700; }
.brand-rule { height: 3px; background: var(--brand-rule); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, filter 160ms ease-out;
}
.btn--primary { background: var(--brand-button); color: var(--white); }
.btn--primary:hover { color: var(--white); filter: brightness(1.12); }
.btn--secondary { border: 1px solid var(--line-strong); color: var(--text); font-variant-numeric: tabular-nums; }
.btn--secondary:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero__mark {
  position: absolute;
  right: -40px;
  top: 40px;
  width: 560px;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero__inner {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero__copy { flex: 999 1 520px; min-width: 0; }
.hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.375rem, 1.4rem + 2.6vw, 3.375rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero__lead {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- live cam demo ---------- */

.demo {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 460px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 24px);
}
.demo__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.demo__title { margin: 0; font-size: 1rem; font-weight: 700; }

.plot { display: block; width: 100%; height: auto; overflow: visible; }
.plot__grid line { stroke: var(--line); stroke-width: 1; }
.plot__grid .plot__base { stroke: var(--line-strong); }
.plot__ticks text, .plot__axis, .plot__leader text { fill: var(--faint); font-family: var(--mono); font-size: 17px; }
.plot__axis, .plot__leader text { fill: var(--text); }
.plot__curve { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.plot__cursor { stroke: var(--violet); stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 3 4; }
.plot__dot { fill: var(--white); stroke: var(--violet); stroke-width: 3; }
.plot__leader polyline { fill: none; stroke: var(--faint); stroke-width: 1; }
.plot__track rect { fill: var(--band); stroke: var(--line-strong); }
.plot__track line { stroke: var(--line-strong); }
.plot__carriage { fill: var(--violet); }

.readout {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.readout div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.readout div:last-child { grid-column: 1 / -1; }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; color: var(--ink); text-align: right; }

.demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.speed { flex: 1 1 220px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; font-size: 0.875rem; }
.speed__label { color: var(--muted); }
.speed output { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.speed input { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; accent-color: var(--violet); }
.pause {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--text);
  font: 700 0.875rem/1 var(--font);
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
}
.pause:hover { border-color: var(--violet); color: var(--violet); }
.demo__note { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }

/* ---------- sections ---------- */

.band { background: var(--band); padding: var(--section) 0; }
.section { padding: var(--section) 0; }
.band h2, .section h2 {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: 1.15;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.card h3 { margin: 0 0 8px; font-size: 1.375rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.split__intro { flex: 1 1 320px; }
.split__intro h2 { margin-bottom: 16px; }
.split__intro p { margin: 0; color: var(--muted); max-width: 32em; }
.chips {
  flex: 999 1 520px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  font-family: var(--mono);
  font-size: 0.9375rem;
}
.chips li { border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 16px; color: var(--ink); }

.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.terms dt { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.terms dd { margin: 0; color: var(--muted); }

/* ---------- contact ---------- */

.contact { background: var(--brand-band); color: var(--white); padding: clamp(64px, 8vw, 88px) 0; }
.contact__inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: center; }
.contact__pitch { flex: 999 1 480px; min-width: 0; }
.contact__pitch img { height: 36px; width: auto; margin-bottom: 32px; }
.contact h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 2.75rem);
  line-height: 1.1;
}
.contact__pitch p { margin: 0; font-size: 1.125rem; max-width: 560px; }
.contact__lines {
  flex: 1 1 280px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.1875rem;
  font-weight: 700;
}
.contact__lines a { color: var(--white); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.contact__lines a[href^="tel"] { text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__lines .contact__social { font-weight: 400; }
.contact__lines a:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.contact :focus-visible { outline-color: var(--white); }

/* ---------- footer ---------- */

.site-footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--faint);
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--violet); }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .site-nav a:not(.site-nav__contact) { display: none; }
  .site-header__inner { padding-top: 18px; padding-bottom: 18px; }
  .site-header__logo img { height: 32px; }
  .hero__mark { width: 340px; right: -120px; top: 16px; }
  .hero__inner { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { gap: 12px; margin-top: 28px; }
  .hero__actions .btn { flex: 1 1 auto; padding-inline: 18px; }
  .readout { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) var(--pad) clamp(64px, 9vw, 96px);
  line-height: 1.65;
}
.legal h1 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(2.125rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.15;
}
.legal__date { margin: 0 0 48px; color: var(--faint); font-size: 0.9375rem; }
.legal h2 { margin: 40px 0 12px; font-size: 1.375rem; line-height: 1.3; }
.legal p { margin: 0; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal p + ul { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal + .site-footer { border-top: 1px solid var(--line); }
