@font-face {
  font-family: "Inter Tight";
  src: url("inter-tight.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("jetbrains-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: oklch(0.985 0.002 260);
  --surface: #fff;
  --sunken: oklch(0.965 0.003 260);
  --line: oklch(0.922 0.004 260);
  --line-strong: oklch(0.86 0.006 260);
  --ink: oklch(0.19 0.012 260);
  --ink-soft: oklch(0.38 0.012 260);
  --muted: oklch(0.515 0.012 260);
  --inverse: #fff;
  --red: oklch(0.51 0.18 27);
  --red-tint: #c537321a;
  --amber: oklch(0.495 0.13 65);
  --amber-tint: #a15b001a;
  --purple: oklch(0.51 0.15 285);
  --purple-tint: #655bbe1a;
  --green: oklch(0.5 0.15 150);
  --green-tint: #0082381a;
  --card-shadow: 0 1px 2px rgb(13 15 19 / 5%);
  --float-shadow: 0 18px 40px rgb(13 15 19 / 18%);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.165 0.006 260);
    --surface: oklch(0.205 0.007 260);
    --sunken: oklch(0.24 0.008 260);
    --line: oklch(0.285 0.009 260);
    --line-strong: oklch(0.35 0.01 260);
    --ink: oklch(0.965 0.003 260);
    --ink-soft: oklch(0.86 0.006 260);
    --muted: oklch(0.71 0.01 260);
    --inverse: #0d0e11;
    --red: oklch(0.76 0.14 27);
    --red-tint: #f47c7029;
    --amber: oklch(0.8 0.13 65);
    --amber-tint: #f7ab5d29;
    --purple: oklch(0.79 0.12 285);
    --purple-tint: #a9a5ff29;
    --green: oklch(0.76 0.13 150);
    --green-tint: #6fc88429;
    --card-shadow: 0 1px 2px rgb(0 0 0 / 40%);
    --float-shadow: 0 18px 40px rgb(0 0 0 / 55%);
  }

  .brand img { filter: invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: .9375rem/1.4667 "Inter Tight", system-ui, sans-serif;
}

a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }

h2 {
  max-width: 20ch;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.wrap {
  --gutter: clamp(.875rem, 4vw, 1.25rem);
  max-width: 70rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 3;
  transform: translateY(-150%);
  padding: .625rem 1rem;
  background: var(--surface);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 2;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner, .header-inner nav, .brand, .actions, .dashboard-heading {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 4rem;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner nav { gap: clamp(.75rem, 2vw, 1.375rem); }

.brand {
  width: fit-content;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.section-link {
  color: var(--ink-soft);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.section-link:hover, .footer-brand:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .5rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

.site-header .button { min-height: 2.5rem; padding-inline: .875rem; }
.button:not(:disabled):hover { background: var(--sunken); }
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--inverse); }
.button-primary:not(:disabled):hover { background: var(--ink-soft); }
.button-primary:focus-visible { outline-color: var(--ink); }

.hero {
  padding-top: clamp(3.25rem, 7vw, 4.5rem);
  padding-bottom: 1.25rem;
  text-align: center;
}

.hero h1 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.hero h1 span { display: inline-block; max-width: 100%; }

.hero p {
  max-width: 37.5rem;
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero .eyebrow {
  margin: 0 auto .875rem;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.75rem;
}

.icon { display: inline-block; flex: none; width: 1.25rem; height: 1.25rem; fill: currentColor; }
.button .icon { margin-right: .375rem; }

.dashboard {
  margin-top: 2.25rem;
  padding: clamp(.875rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--float-shadow);
}

.dashboard-heading { flex-wrap: wrap; gap: .5rem .625rem; }
.dashboard-heading h2 { font-size: 1.125rem; letter-spacing: -.02em; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  width: fit-content;
  padding: .25rem .5rem;
  border-radius: .5rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}

.status-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-green { background: var(--green-tint); color: var(--green); }
.status-amber { background: var(--amber-tint); color: var(--amber); }
.status .icon { width: .875rem; height: .875rem; }

.dashboard-groups, .dashboard-orders, .checklist {
  list-style: none;
  padding: 0;
}

.dashboard-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.125rem, 1fr));
  gap: .625rem;
  margin: .875rem 0 0;
}

.dashboard-groups li, .order, .checklist li {
  border: 1px solid var(--line);
  background: var(--bg);
}

.dashboard-groups li {
  display: grid;
  gap: .125rem;
  padding: .875rem clamp(.625rem, 2vw, 1rem);
  border-radius: 1rem;
  color: var(--muted);
  font-size: .8125rem;
}

.dashboard-count {
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.dashboard-count-amber { color: var(--amber); }
.dashboard-count-red { color: var(--red); }
.dashboard-count-green { color: var(--green); }
.dashboard-orders { display: grid; gap: .5rem; margin: .875rem 0 0; }

.order {
  display: grid;
  grid-template-columns: minmax(5rem, 9rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  border-radius: .875rem;
  font-size: .875rem;
}

.order-line { height: .375rem; overflow: hidden; border-radius: 99px; background: var(--sunken); color: var(--purple); }
.order-line span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: currentColor; }
.order .status { background: var(--purple-tint); color: var(--purple); white-space: nowrap; }
.order-urgent .order-line { color: var(--red); }
.order-urgent .status { background: var(--red-tint); color: var(--red); }

.page-section { margin-top: clamp(3.5rem, 8vw, 6rem); }

.workflow-intro { margin-top: .625rem; color: var(--muted); font-size: 1.0625rem; }
.workflow, .onboarding { margin-top: 1.5rem; }
.connection-grid { margin-top: 1.25rem; }

.workflow:has([role="tablist"]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 1.75rem;
}

.workflow-steps, .workflow-panels { display: grid; gap: .25rem; }

.step, .filter {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.step {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.125rem;
  padding: .75rem .875rem;
  border: 1px solid transparent;
  border-radius: .875rem;
  background: transparent;
  text-align: left;
}

.step-number {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sunken);
  font: 600 .75rem/1 var(--mono);
}

.step-clock {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.step-clock circle {
  fill: none;
  stroke: color-mix(in oklab, var(--ink) 25%, var(--sunken));
  stroke-width: 16;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.step-copy { display: grid; gap: .125rem; }
.step-copy small { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.step:hover { background: var(--sunken); }

.step[aria-selected="true"] {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.step[aria-selected="true"] .step-number { box-shadow: inset 0 0 0 1px var(--line-strong); }

.step.is-complete .step-number {
  background: var(--ink);
  color: var(--inverse);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1rem, 2.4vw, 1.375rem);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.workflow-panel { min-height: 18.75rem; }
.workflow-panel h3 { display: flex; align-items: center; gap: .625rem; font-size: 1.375rem; }
.stage-icon { width: 2.75rem; height: 2.75rem; padding: .625rem; border-radius: .625rem; background: var(--ink); color: var(--inverse); }
.stage-eyebrow {
  display: block;
  margin: 0 0 .125rem;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.workflow-panel p:not(.stage-eyebrow) { margin-top: 1rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.53; }
.stage-progress { display: flex; gap: .25rem; margin-top: 1.125rem; }
.stage-progress span { flex: 1; height: .25rem; border-radius: 99px; background: var(--line); }
.stage-progress span.is-complete { background: var(--ink); }
.checklist { display: grid; gap: .5rem; margin: 1rem 0 0; }

.checklist li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .875rem;
  border-radius: .75rem;
  font-weight: 600;
}

.checklist li::before {
  flex: none;
  width: .65rem;
  height: .375rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-.08rem) rotate(-45deg);
  content: "";
}

.feature-grid, .connection-grid, .integration-grid, .onboarding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card, .integration-card { border-radius: .875rem; padding: 1rem; cursor: pointer; }
.feature-card p, .connection-grid p, .integration-card p, .onboarding p {
  margin-top: .5rem;
  color: var(--muted);
}

.feature-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  padding: .5rem;
  margin-bottom: .875rem;
  border-radius: .75rem;
  background: var(--sunken);
  fill: currentColor;
}

.connection-grid h3 { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; letter-spacing: 0; }
.connection-grid p, .integration-card p, .onboarding p { font-size: .8125rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.375rem; }

.filter {
  flex: none;
  min-height: 2.25rem;
  padding: .375rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--surface);
  font-size: .875rem;
  white-space: nowrap;
}

.filter:hover { background: var(--sunken); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--inverse); }
.filter:focus-visible { outline-color: var(--ink); }
.integration-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.375rem), 1fr)); margin-top: .875rem; gap: .75rem; }
.integration-card { display: flex; flex-direction: column; }
.integration-meta { display: flex; min-height: 1.5rem; align-items: center; justify-content: space-between; gap: .5rem; }
.integration-card h3 { display: flex; gap: .625rem; align-items: center; margin-top: .625rem; font-size: 1.0625rem; }
.integration-initial { display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .625rem; background: var(--sunken); font-size: .875rem; }
.integration-category { color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.integration-card p { margin-bottom: .625rem; }
.integration-connection { align-self: flex-end; width: 1rem; height: 1rem; margin-top: auto; color: var(--muted); }
.integration-note { margin-top: 1rem; color: var(--muted); font-size: .8125rem; text-align: center; }

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.contact-callout {
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.375rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--sunken);
}

.callout p { margin-top: .5rem; color: var(--muted); }

.booking-callout {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #30333a;
  border-radius: 1.75rem;
  background: #111217;
  color: #f4f5f7;
}

.booking-callout p { color: #bcbdc4; font-size: 1.125rem; }
.button-inverse { border-color: #fff; background: #fff; color: #111419; }
.button-inverse:not(:disabled):hover { background: #e8e9eb; }
.button-inverse:focus-visible { outline-color: #fff; }

.onboarding { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; padding-left: 0; list-style: none; }
.onboarding-number { display: block; margin-bottom: .25rem; color: var(--muted); font-size: 2.75rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.onboarding h3 { font-size: .9375rem; letter-spacing: 0; }

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-block: 2.25rem max(3rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.footer-brand { font-size: inherit; font-weight: 500; letter-spacing: 0; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-heading { margin: 0; font-weight: 500; color: inherit; }
.footer-text { margin: 0; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: .25rem; }
.footer-links a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: .8125rem; }

@media (max-width: 48rem) {
  .site-header .button { min-height: 2.75rem; }
  .workflow:has([role="tablist"]) { grid-template-columns: 1fr; gap: 1rem; }
  .step { padding: .5rem .625rem; }
  .onboarding { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
  .filters {
    flex-wrap: nowrap;
    margin-inline: -.3125rem;
    padding: .3125rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .filter { min-height: 2.75rem; }
}

@media (max-width: 36rem) {
  .product-nav .section-link { display: none; }
  /* The hero right below has the same two sign-in choices. */
  .product-nav .button { display: none; }
  .hero { padding-top: clamp(2.5rem, 10vw, 3.25rem); }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 3rem); }
  .hero p { max-width: 34ch; font-size: clamp(1rem, 4.5vw, 1.125rem); }
  .actions {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 24rem);
    margin-inline: auto;
  }
  .actions .button { padding-inline: .625rem; line-height: 1.25; }
  .dashboard-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-count { font-size: 2rem; }
  .order { grid-template-columns: minmax(0, 1fr) auto; gap: .375rem .5rem; padding-inline: .625rem; }
  .order-line { grid-row: 2; grid-column: 1 / -1; }
  .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
  .step { display: grid; min-width: 0; justify-items: center; gap: .3rem; padding: .5rem .125rem; text-align: center; }
  .step-copy { font-size: .875rem; }
  .step-copy small { display: none; }
  .workflow-panel { min-height: 20rem; }
  .feature-grid, .integration-grid { grid-template-columns: minmax(0, 1fr); }
  .callout { align-items: stretch; flex-direction: column; }
  .callout .button { width: 100%; }
}

@media (max-width: 24rem) {
  .actions { grid-template-columns: minmax(0, 1fr); width: min(100%, 20rem); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .dashboard.is-playing .status-dot { animation: status-blink 1.4s ease-in-out 3; }
  .dashboard.is-playing .order-line span {
    transform-origin: left;
    animation: progress-fill .95s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(.2s + var(--order-delay, 0s));
  }
  .dashboard-orders .order:nth-child(2) { --order-delay: .11s; }
  .dashboard-orders .order:nth-child(3) { --order-delay: .22s; }
  .site-header { transition: border-color .2s; }
  [data-reveal] { transition: opacity .5s ease-out var(--reveal-delay, 0ms), translate .5s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms); }
  [data-reveal].awaiting-reveal:not(:focus-within) { opacity: 0; translate: 0 18px; }
  .dashboard-groups li, .feature-card, .integration-card { transition: opacity .25s, transform .25s, box-shadow .2s, border-color .2s; }
  .feature-card[data-reveal] { transition: opacity .5s ease-out var(--reveal-delay, 0ms), translate .5s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms), transform .2s, box-shadow .2s, border-color .2s; }
  .dashboard-groups li:hover, .feature-card:hover, .integration-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--float-shadow);
  }
  .workflow-panel[role="tabpanel"], .workflow-panel[role="tabpanel"] .checklist li { animation: rise .2s ease-out both; }
  .workflow-panel .checklist li:nth-child(1) { animation-delay: 120ms; }
  .workflow-panel .checklist li:nth-child(2) { animation-delay: 230ms; }
  .workflow-panel .checklist li:nth-child(3) { animation-delay: 340ms; }
  .step.is-playing .step-clock circle { animation: step-fill var(--step-duration) linear both; }
  .filter, .step, .step-number, .integration-initial { transition: background-color .18s, border-color .18s, color .18s; }
  .integration-card:hover .integration-initial { background: var(--ink); color: var(--inverse); }
  .button { transition: background-color .18s, border-color .18s, color .18s, transform .2s, box-shadow .2s; }
  .button:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
  .button:not(:disabled):active { transform: translateY(0); }
}

@keyframes step-fill {
  to { stroke-dashoffset: 0; }
}

@keyframes status-blink {
  50% { opacity: .35; box-shadow: 0 0 0 .2rem var(--green-tint); }
}

@keyframes progress-fill {
  from { transform: scaleX(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
