@font-face {
  font-family: "Onest";
  src: url("/ui/fonts/Onest-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --surface: #e9e7df;
  --surface-raised: #f9f8f3;
  --ink: #151817;
  --muted: #5c625e;
  --line: #c9c7bd;
  --strong-line: #979d98;
  --accent: #f4663f;
  --accent-hover: #e95832;
  --on-accent: #151817;
  --code: #171b19;
  --code-ink: #eaece8;
  --code-muted: #929b95;
  --product-canvas: #e2e6e3;
  --connect: #1b1f1d;
  --connect-ink: #f3f2ed;
  --connect-muted: #aeb4af;
  --max-width: 1440px;
  --page-pad: clamp(24px, 4.2vw, 72px);
  --section-pad: clamp(88px, 10vw, 156px);
  --ease-orbit: cubic-bezier(.22, .74, .18, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151816;
  --surface: #1d211e;
  --surface-raised: #222723;
  --ink: #f2f1eb;
  --muted: #aeb4af;
  --line: #3e4540;
  --strong-line: #656e68;
  --accent: #ff724d;
  --accent-hover: #ff815f;
  --on-accent: #121513;
  --code: #0f1210;
  --code-ink: #edf0ec;
  --code-muted: #9ca49f;
  --product-canvas: #d9dedb;
  --connect: #0f1210;
  --connect-ink: #f3f2ed;
  --connect-muted: #acb3ae;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

figure,
h1,
h2,
p {
  margin: 0;
}

.inner,
.head-inner,
.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.site-head {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.head-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 40px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: .055em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: -.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.site-nav a,
.login-link {
  transition: color 180ms ease;
}

.site-nav a:hover,
.login-link:hover {
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 580;
}

.theme-toggle,
.orbit-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle {
  width: 42px;
  height: 42px;
}

.theme-toggle svg,
.orbit-controls svg,
.button svg,
.text-link svg,
.contact svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.theme-toggle:hover,
.orbit-controls button:hover {
  border-color: var(--strong-line);
  background: var(--surface);
}

.theme-light-icon {
  display: none;
}

:root[data-theme="dark"] .theme-light-icon {
  display: block;
}

:root[data-theme="dark"] .theme-dark-icon {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button.secondary {
  border-color: var(--strong-line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
}

.nav-cta {
  min-height: 42px;
  padding: 12px 17px;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  width: min(100%, var(--max-width));
  min-height: 640px;
  margin: 0 auto;
  padding: 56px var(--page-pad) 62px;
  gap: clamp(28px, 4.5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -.01em;
}

.hero-eyebrow::before {
  width: 32px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--accent);
  content: "";
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(36px, 4.1vw, 62px);
  font-weight: 570;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.hero h1 span {
  display: block;
}

.hero-copy > p {
  max-width: 590px;
  margin-top: 29px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 420;
  letter-spacing: -.017em;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.orbit {
  min-width: 0;
  outline: none;
}

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

.orbit-stage {
  position: relative;
  height: clamp(410px, 43vw, 620px);
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 46%;
  touch-action: pan-y;
}

.orbit-stage::after {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 1px;
  background: var(--accent);
  content: "";
}

.orbit-slide {
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(70%, 660px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: var(--surface);
  box-shadow: 0 30px 70px rgb(12 16 13 / .18);
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform 820ms var(--ease-orbit), filter 680ms var(--ease-orbit), opacity 680ms ease;
  will-change: transform, filter, opacity;
}

.orbit-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform 900ms var(--ease-orbit), filter 700ms ease;
}

.orbit-slide.is-active {
  z-index: 5;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(-50%, -50%, 90px) rotateY(0) scale(1);
}

.orbit-slide.is-active img {
  transform: scale(1.015);
}

.orbit-slide.is-prev {
  z-index: 4;
  opacity: .48;
  filter: blur(2px) saturate(.78);
  transform: translate3d(-91%, -50%, -170px) rotateY(13deg) scale(.78);
}

.orbit-slide.is-next {
  z-index: 4;
  opacity: .48;
  filter: blur(2px) saturate(.78);
  transform: translate3d(-9%, -50%, -170px) rotateY(-13deg) scale(.78);
}

.orbit-slide.is-far-prev {
  z-index: 2;
  opacity: .12;
  filter: blur(6px) saturate(.58);
  transform: translate3d(-121%, -50%, -390px) rotateY(19deg) scale(.56);
}

.orbit-slide.is-far-next {
  z-index: 2;
  opacity: .12;
  filter: blur(6px) saturate(.58);
  transform: translate3d(21%, -50%, -390px) rotateY(-19deg) scale(.56);
}

.orbit-slide.is-hidden {
  z-index: 1;
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transform: translate3d(-50%, -50%, -520px) scale(.42);
}

.orbit-readout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  min-height: 86px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.orbit-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.orbit-count span:first-child {
  color: var(--ink);
  font-size: 22px;
  font-weight: 670;
  letter-spacing: -.04em;
}

.orbit-caption {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.orbit-caption strong {
  font-size: 15px;
  font-weight: 680;
}

.orbit-caption span {
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.orbit-controls {
  display: flex;
  gap: 8px;
}

.orbit-controls button {
  width: 44px;
  height: 44px;
}

.operating-strip {
  border-block: 1px solid var(--line);
}

.operating-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 26px;
}

.operating-grid > div {
  display: grid;
  gap: 2px;
  padding: 2px 28px;
  border-left: 1px solid var(--line);
}

.operating-grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.operating-grid strong {
  font-size: 14px;
  font-weight: 660;
}

.operating-grid span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding-block: var(--section-pad);
}

.section-heading {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-heading h2 {
  max-width: 860px;
}

.section-heading p {
  max-width: 660px;
  margin-top: 22px;
}

.section-heading h2,
.integration-copy h2,
.connect-copy h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 570;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.section-heading p,
.integration-copy > p,
.connect-copy > p {
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  letter-spacing: -.016em;
  line-height: 1.55;
}

.product-section {
  background: var(--surface-raised);
}

/* Product previews have their own layout; no inherited screenshot-card grids. */
.product-grid { display: block; }
.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
  margin: 0;
}
.product-panel[hidden] { display: none !important; }
.product-panel > img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
}
.product-panel figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  max-width: 60ch;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.product-panel figcaption strong {
  font-size: 21px;
  font-weight: 550;
  line-height: 1.3;
}
.product-panel figcaption span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.product-panel--desktop {
  max-width: 1080px;
  margin-inline: auto;
}
.product-panel--desktop > img { border: 1px solid var(--line); }
.product-panel--phone {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
}
.product-panel--phone > img {
  width: min(100%, 320px);
  height: auto;
  justify-self: center;
}

.process-section {
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  margin-bottom: 46px;
}

.process-flow {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--strong-line);
  list-style: none;
}

.process-flow li {
  display: grid;
  grid-template-columns: 72px minmax(230px, .72fr) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.process-flow .step-number {
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.process-flow strong {
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 630;
  letter-spacing: -.025em;
}

.process-flow li > span:last-child {
  color: var(--muted);
  font-size: 15px;
}

.integration-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(54px, 8vw, 130px);
}

.integration-copy > p {
  max-width: 560px;
  margin-top: 26px;
}

.integration-points {
  display: grid;
  margin: 34px 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.integration-points li {
  position: relative;
  padding: 13px 8px 13px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.integration-points li::before {
  position: absolute;
  top: 21px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.text-link svg {
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.code-tool {
  min-width: 0;
  border: 1px solid #3e4541;
  background: var(--code);
  color: var(--code-ink);
  box-shadow: 0 30px 70px rgb(11 14 12 / .14);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 55px;
  padding: 0 22px;
  border-bottom: 1px solid #3e4541;
}

.code-head strong {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
}

.code-head code {
  color: var(--code-muted);
  font-size: 13px;
}

.code-tool pre {
  overflow: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 54px);
  color: var(--code-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.75;
}

.code-tool .key {
  color: #f3a48d;
}

.code-tool .string {
  color: #a8c6b3;
}

.connect-section {
  background: var(--connect);
  color: var(--connect-ink);
}

.connect-layout {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(54px, 9vw, 144px);
}

.connect-copy h2 {
  max-width: 590px;
}

.connect-copy > p {
  max-width: 530px;
  margin-top: 27px;
  color: var(--connect-muted);
}

.contacts {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.contact {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--connect-muted);
  font-size: 14px;
}

.contact.visible {
  display: flex;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full,
.lead-submit {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--connect-muted);
  font-size: 12px;
  font-weight: 580;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #4b534d;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--connect-ink);
  font-size: 14px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f8882;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgb(255 255 255 / .025);
}

.lead-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
}

.form-state {
  color: var(--connect-muted);
  font-size: 12px;
}

.form-state.error {
  color: #ff9e83;
}

.form-state.success {
  color: #9ed4af;
}

.lead-form button:disabled {
  cursor: progress;
  opacity: .55;
  transform: none;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  min-height: 110px;
  gap: 42px;
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(50px, 6.4vw, 72px);
  }

  .orbit-stage {
    height: 470px;
  }

}

@media (max-width: 900px) {
  .head-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(52px, 10vw, 78px);
  }

  .orbit-stage {
    height: min(63vw, 560px);
  }

  .operating-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .operating-grid > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .integration-layout,
  .connect-layout {
    grid-template-columns: 1fr;
  }

  .process-flow li {
    grid-template-columns: 54px minmax(180px, .75fr) 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 20px;
    --section-pad: 78px;
  }

  .head-inner {
    min-height: 66px;
  }

  .brand {
    gap: 9px;
    font-size: 13px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .login-link,
  .nav-cta {
    display: none;
  }

  .head-actions {
    gap: 0;
  }

  .hero {
    padding-top: 55px;
    padding-bottom: 72px;
  }

  .hero-eyebrow {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(45px, 13.8vw, 62px);
    letter-spacing: -.065em;
  }

  .hero-copy > p {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    margin-top: 30px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .orbit {
    margin-inline: -20px;
  }

  .orbit-stage {
    height: 390px;
  }

  .orbit-slide {
    top: 48%;
    width: 79%;
  }

  .orbit-slide.is-prev {
    transform: translate3d(-101%, -50%, -170px) rotateY(13deg) scale(.72);
  }

  .orbit-slide.is-next {
    transform: translate3d(1%, -50%, -170px) rotateY(-13deg) scale(.72);
  }

  .orbit-slide.is-far-prev {
    transform: translate3d(-127%, -50%, -390px) rotateY(19deg) scale(.5);
  }

  .orbit-slide.is-far-next {
    transform: translate3d(27%, -50%, -390px) rotateY(-19deg) scale(.5);
  }

  .orbit-readout {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    margin-inline: 20px;
    gap: 12px;
  }

  .orbit-caption span {
    display: none;
  }

  .orbit-count span:first-child {
    font-size: 18px;
  }

  .orbit-controls button {
    width: 40px;
    height: 40px;
  }

  .operating-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px;
  }

  .operating-grid > div,
  .operating-grid > div:nth-child(3) {
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .operating-grid > div:first-child {
    border-top: 0;
  }

  .section-heading {
    align-items: start;
    gap: 20px;
    margin-bottom: 42px;
  }

  .section-heading h2,
  .integration-copy h2,
  .connect-copy h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .section-heading p,
  .integration-copy > p,
  .connect-copy > p {
    font-size: 16px;
  }

  .process-flow li {
    grid-template-columns: 42px 1fr;
    gap: 9px 14px;
    min-height: 0;
    padding-block: 23px;
  }

  .process-flow li > span:last-child {
    grid-column: 2;
  }

  .integration-layout,
  .connect-layout {
    gap: 46px;
  }

  .code-tool {
    margin-inline: -20px;
    border-inline: 0;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .field.full,
  .lead-submit {
    grid-column: auto;
  }

  .lead-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-submit .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    padding-block: 26px;
    gap: 18px;
  }

  .footer-inner > span:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Existing role tabs and keyboard navigation are preserved. */
.product-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.product-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 14px 0; min-height: 48px; font: inherit; font-size: 16px; cursor: pointer; }
.product-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--accent); }
.orbit-count { display: none; }
.orbit-readout { grid-template-columns: 1fr auto; }
@media (max-width: 767px) {
  .hero { min-height: 0; padding-top: 36px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(32px, 8vw, 46px); line-height: 1.08; }
  .product-panel--phone { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product-panel figcaption strong { font-size: 19px; }
  .product-tabs { gap: 24px; }
}
