/*
 * Dealcora public site — Direction A, "Warm product".
 *
 * The app's own look, turned outward: the warm mesh canvas, floating cream cards at 24 px radius,
 * pill controls, and the four flat accent fills used as blocks.
 *
 * Load order: tokens.css, then this file. Both are linked from the page rather than @imported, so
 * the browser fetches them in parallel.
 *
 * Motion lives in its own layer at the bottom of this file. Every animation:
 *   - moves only transform and opacity (or stroke-dashoffset on small SVGs), so it composites;
 *   - is wrapped in `prefers-reduced-motion: no-preference`;
 *   - starts from a state that is already fully legible, or is gated on `.js` / @supports, so a
 *     visitor without JavaScript or without scroll-driven animations sees the finished page.
 */

/* ── Motion tokens ────────────────────────────────────────────────────────────────────────── */

:root {
  /* A strong ease-out: fast start, long settle. The default for anything entering or reacting. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* For things moving already-on-screen (the board's cards changing column). */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 120ms;
  --dur-ui: 180ms;
  --dur-enter: 520ms;
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background-color: var(--background);
  background-image: var(--mesh);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}
@media (hover: hover) {
  a:hover {
    color: var(--primary-hover);
  }
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-foreground);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  color: var(--ink-foreground);
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Header ───────────────────────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-block: 0.75rem;
  /* Opaque enough to hide what scrolls under it even where backdrop-filter is unsupported. */
  background: color-mix(in oklab, var(--background) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand:focus-visible {
  outline-offset: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}
.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) {
  .nav a:hover {
    background: var(--surface-2);
    color: var(--foreground);
  }
}
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--ink-foreground);
}

/* On a phone the four links go to their own row under the logo and the trial button, rather than
   wrapping unpredictably. */
@media (max-width: 719px) {
  .head-row {
    flex-wrap: wrap;
  }
  .head-row > .btn {
    margin-inline-start: auto;
  }
  .nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    justify-content: space-between;
  }
  .nav a {
    padding-inline: 0.75rem;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--step-small);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--ink);
  color: var(--ink-foreground);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: var(--elevation-soft);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--primary);
    color: var(--primary-foreground);
  }
  .btn-ghost:hover {
    background: var(--surface-solid);
    color: var(--foreground);
  }
}
.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

/* The arrow on primary actions. It nudges right on hover: a small promise of "this goes
   somewhere", nothing more. */
.btn .arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3rem, 1rem + 7vw, 6rem) 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.9rem 0.375rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: var(--step-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* The logo's three bars and dot, as a tiny inline mark. Animated in the motion layer. */
.eyebrow .bars {
  width: 16px;
  height: 17px;
  overflow: visible;
}

.hero h1 {
  font-size: var(--step-display);
  max-width: 22ch;
  margin-inline: auto;
}

.lead {
  max-width: 54ch;
  margin: 1.5rem auto 0;
  color: var(--muted-foreground);
  font-size: var(--step-lead);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: var(--step-caption);
}

/* Inner pages: the same hero, left-aligned, without the board. */
.page-hero {
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) 0;
}
.page-hero h1 {
  font-size: var(--step-display);
  max-width: 18ch;
}
.page-hero .lead {
  margin-inline: 0;
}
.page-hero .cta-row {
  justify-content: flex-start;
}

/* ── The board: an abstracted pipeline ────────────────────────────────────────────────────── */

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: clamp(2.5rem, 1rem + 5vw, 4rem);
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
  text-align: start;
}
.col {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  /* Fixed so a column emptied by dragging keeps its height and the page does not jump. */
  min-height: 15.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-tile);
  background: var(--surface-2);
}
.col.is-target {
  background: color-mix(in oklab, var(--surface-2) 70%, var(--fill-pine) 30%);
}
.col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.count {
  margin-inline-start: auto;
  padding: 0.0625rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-solid);
  font-variant-numeric: tabular-nums;
}
.deal {
  padding: 0.75rem 0.875rem;
  border-radius: 14px;
  font-size: var(--step-caption);
  line-height: 1.35;
}
.deal b {
  display: block;
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* The caption under a deal title, mixed toward the fill rather than dimmed with opacity, so its
   real contrast is a value in the stylesheet instead of a guess. */
.deal span {
  display: block;
  margin-top: 0.375rem;
  color: color-mix(in oklab, currentColor 86%, var(--deal-fill, transparent));
  font-variant-numeric: tabular-nums;
}
.f-butter {
  --deal-fill: var(--fill-butter);
  background: var(--fill-butter);
  color: var(--on-butter);
}
.f-pine {
  --deal-fill: var(--fill-pine);
  background: var(--fill-pine);
  color: var(--on-pine);
}
/* Tomato blocks that carry words use the text-safe variant; see tokens.css. */
.f-tomato {
  --deal-fill: var(--fill-tomato-deep);
  background: var(--fill-tomato-deep);
  color: var(--on-tomato-deep);
}
.f-sky {
  --deal-fill: var(--fill-sky);
  background: var(--fill-sky);
  color: var(--on-sky);
}
.f-ink {
  --deal-fill: var(--fill-ink);
  background: var(--fill-ink);
  color: var(--on-ink);
}

/* The hint under the board, shown only where dragging is actually possible (JS + fine pointer). */
.board-hint {
  display: none;
  margin-top: 0.875rem;
  color: var(--muted-foreground);
  font-size: var(--step-caption);
}

@media (max-width: 719px) {
  .board {
    grid-template-columns: 1fr;
  }
  .col {
    min-height: 0;
  }
  /* Three stacked columns is a lot of scrolling on a phone for an illustration. Keep two. */
  .col:last-child {
    display: none;
  }
}

/* ── Sections ─────────────────────────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--section-y);
}
.section + .section {
  padding-top: 0;
}
/* `ch` here would be measured against the 16 px body size, not the 44 px heading. */
.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 1rem + 2.5vw, 3rem);
}
.section-head h2 {
  font-size: var(--step-title);
}
.section-head p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: var(--step-lead);
}
.section-head .kicker {
  margin: 0 0 0.875rem;
  color: var(--text-tomato);
  font-size: var(--step-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.split .section-head {
  margin-bottom: 0;
}
@media (max-width: 859px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
}
.card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.card p,
.card li {
  color: var(--muted-foreground);
  font-size: var(--step-small);
}
.card p {
  margin-top: 0.625rem;
}
.card ul {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.1rem;
}
.card li + li {
  margin-top: 0.3rem;
}
.card li::marker {
  color: var(--fill-pine);
}

/* The round icon chip from the app's KPI strip. */
.chip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.125rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--foreground);
}
.chip svg {
  width: 20px;
  height: 20px;
}
.chip-butter {
  background: var(--fill-butter);
  color: var(--on-butter);
}
.chip-pine {
  background: var(--fill-pine);
  color: var(--on-pine);
}
.chip-tomato {
  background: var(--fill-tomato-deep);
  color: var(--on-tomato-deep);
}
.chip-sky {
  background: var(--fill-sky);
  color: var(--on-sky);
}

/* Three stats, the app's KPI strip pattern. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
}
.stat dt {
  color: var(--muted-foreground);
  font-size: var(--step-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat dd {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* A diagram card: the frame every SVG illustration sits in. */
.figure {
  margin: 0;
  padding: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
}
.figure svg {
  width: 100%;
}
.figure figcaption {
  margin-top: 0.875rem;
  color: var(--muted-foreground);
  font-size: var(--step-caption);
}

/* SVG text and shapes take their colour from tokens, so the diagrams follow light/dark. */
.svg-label {
  fill: var(--foreground);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
}
.svg-sub {
  fill: var(--muted-foreground);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
}
.svg-box {
  fill: var(--surface-solid);
  stroke: var(--border);
}
.svg-box-2 {
  fill: var(--surface-2);
}
.svg-line {
  fill: none;
  stroke: var(--input);
  stroke-width: 1.5;
}
.svg-wire {
  fill: none;
  stroke: var(--fill-pine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 8;
}
.svg-pine {
  fill: var(--fill-pine);
}
.svg-butter {
  fill: var(--fill-butter);
}
.svg-tomato {
  fill: var(--fill-tomato);
}
.svg-sky {
  fill: var(--fill-sky);
}
.svg-ink {
  fill: var(--foreground);
}
.svg-on-pine {
  fill: var(--on-pine);
}
.logo-butter {
  fill: var(--logo-butter);
}
.logo-pine {
  fill: var(--logo-pine);
}
.logo-tomato {
  fill: var(--logo-tomato);
}

/* Stagger index for entrance animations. A class, not an inline style: the CSP has no
   'unsafe-inline' for styles. */
.i1 { --i: 0; }
.i2 { --i: 1; }
.i3 { --i: 2; }
.i4 { --i: 3; }
.i5 { --i: 4; }
.i6 { --i: 5; }
.i7 { --i: 6; }

/* ── Features page ────────────────────────────────────────────────────────────────────────── */

.feature-group + .feature-group {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.not-yet {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding: 1.5rem 1.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  color: var(--muted-foreground);
  font-size: var(--step-small);
}
.not-yet h2 {
  color: var(--foreground);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.not-yet ul {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.1rem;
}

kbd {
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-solid);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 0.8em;
  font-weight: 700;
  white-space: nowrap;
}

/* The inbox diagram: how far each message travels to reach the inbox's edge at (330, 140). */
.m1 { --dx: 160px; --dy: 90px; }
.m2 { --dx: 160px; --dy: 30px; }
.m3 { --dx: 160px; --dy: -30px; }
.m4 { --dx: 160px; --dy: -90px; }
.msg {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .msg {
    display: none;
  }
}

/* ── Pricing ──────────────────────────────────────────────────────────────────────────────── */

/* Plans: one card is the expected case and gets the full width. If the fleet ever returns more
   than one, they sit side by side and wrap; nothing about the card assumes it is alone. */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
}
/* When there are two or more plans, each card is narrower, so stack its two halves. */
.plans:has(> .plan + .plan) .plan,
.plan.is-pending {
  grid-template-columns: 1fr;
}
@media (max-width: 719px) {
  .plan {
    grid-template-columns: 1fr;
  }
}
.plan-name {
  color: var(--muted-foreground);
  font-size: var(--step-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-top: 0.75rem;
}
.price-figure {
  font-size: var(--step-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-unit {
  color: var(--muted-foreground);
  font-weight: 600;
}
.price-yearly {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: var(--step-small);
}
.badge {
  display: inline-block;
  margin-inline-start: 0.25rem;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  background: var(--fill-butter);
  color: var(--on-butter);
  font-size: var(--step-caption);
  font-weight: 800;
}
.plan .cta-row {
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.includes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-small);
}
.includes li {
  display: flex;
  gap: 0.625rem;
  padding-block: 0.625rem;
  border-top: 1px solid var(--edge);
}
.includes li:first-child {
  border-top: 0;
}
.includes svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--fill-pine);
}
.includes b {
  font-weight: 700;
}

/* What a visitor sees while no price has been published: honest, not a placeholder figure. */
.pending-note {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-input);
  background: var(--warn-subtle);
  color: var(--foreground);
  font-size: var(--step-small);
}
.pending-note b {
  display: block;
  margin-bottom: 0.25rem;
}

.addons {
  margin-top: 1rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
  list-style: none;
}
.addons li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--edge);
  font-size: var(--step-small);
}
.addons li:first-child {
  border-top: 0;
}
.addons .addon-name {
  font-weight: 700;
}
.addons .addon-price {
  margin-inline-start: auto;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.model {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
}
.model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.5rem 2rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--edge);
  font-size: var(--step-small);
}
.model-row:first-child {
  border-top: 0;
}
.model-row dt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
}
.model-row dt .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.model-row dd {
  margin: 0;
  color: var(--muted-foreground);
}
@media (max-width: 599px) {
  .model-row {
    grid-template-columns: 1fr;
  }
}

.snapshot-note {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: var(--step-caption);
}

/* ── Start a trial ────────────────────────────────────────────────────────────────────────── */

.trial {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) 0;
}
@media (max-width: 899px) {
  .trial {
    grid-template-columns: 1fr;
  }
}
.trial-intro h1 {
  font-size: var(--step-title);
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.5rem);
}
.trial-intro .lead {
  margin-inline: 0;
}

.steps {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  font-size: var(--step-small);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--fill-butter);
  color: var(--on-butter);
  font-weight: 800;
}
.steps li:nth-child(2)::before {
  background: var(--fill-pine);
  color: var(--on-pine);
}
.steps li:nth-child(3)::before {
  background: var(--fill-tomato-deep);
  color: var(--on-tomato-deep);
}
.steps li:nth-child(4)::before {
  background: var(--fill-ink);
  color: var(--on-ink);
}
/* The rail joining the numbers. Drawn in the motion layer. */
.steps::before {
  content: "";
  position: absolute;
  top: 1.125rem;
  bottom: 1.125rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--border);
  transform-origin: top;
}
.steps b {
  display: block;
  color: var(--foreground);
  font-size: 1rem;
}
.steps p {
  color: var(--muted-foreground);
}

.fallback {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge);
  color: var(--muted-foreground);
  font-size: var(--step-small);
}
.fallback a {
  font-weight: 700;
}

/* The form card */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elevation-soft);
}
.form-card h2 {
  font-size: var(--step-section);
}
.form-card > p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: var(--step-small);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem 1rem;
  margin-top: 1.75rem;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 559px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.field label,
.field legend {
  font-size: var(--step-small);
  font-weight: 700;
}
.field .opt {
  color: var(--muted-foreground);
  font-weight: 500;
}
.field .hint {
  color: var(--muted-foreground);
  font-size: var(--step-caption);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-input);
  background: var(--surface-solid);
  color: var(--foreground);
  /* 16 px minimum: anything smaller makes iOS Safari zoom the page on focus. */
  font: inherit;
  font-size: max(16px, 1rem);
}
.input::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}
textarea.input {
  min-height: 7.5rem;
  resize: vertical;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position:
    calc(100% - 1.375rem) 52%,
    calc(100% - 1rem) 52%;
  background-size:
    0.375rem 0.375rem,
    0.375rem 0.375rem;
  background-repeat: no-repeat;
}
.input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--ring);
}
.input:user-invalid {
  border-color: var(--destructive);
}

.domain-input {
  display: flex;
  align-items: stretch;
}
.domain-input .input {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.domain-input .suffix {
  display: grid;
  place-items: center;
  padding-inline: 0.875rem;
  border: 1px solid var(--input);
  border-inline-start: 0;
  border-start-end-radius: var(--radius-input);
  border-end-end-radius: var(--radius-input);
  background: var(--surface-2);
  color: var(--muted-foreground);
  font-size: var(--step-small);
  white-space: nowrap;
}

/* The honeypot: present for bots, absent for people and for assistive technology. It is moved
   off-screen rather than display:none, because some bots skip display:none fields. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}
.form-foot p {
  flex: 1 1 14rem;
  color: var(--muted-foreground);
  font-size: var(--step-caption);
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-input);
  font-size: var(--step-small);
}
.form-status[hidden] {
  display: none;
}
.form-status.is-ok {
  background: var(--ok-subtle);
  color: var(--foreground);
}
.form-status.is-error {
  background: var(--destructive-subtle);
  color: var(--foreground);
}
.form-status b {
  display: block;
}
.form-status p {
  margin-top: 0.375rem;
}
.form-status:focus {
  outline: none;
}
.form-status:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.form-status .ref {
  display: inline;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* Set by site.js after the fleet answers 201: the fields give way to the confirmation. */
.form-card.is-sent > p,
.form-card.is-sent [data-form-body],
.form-card.is-sent [data-form-foot] {
  display: none;
}
.form-card.is-sent .form-status {
  margin-top: 1.25rem;
  animation: status-in 320ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) both;
}
@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-card.is-sent .form-status {
    animation: none;
  }
}

.field-error {
  color: var(--destructive);
  font-size: var(--step-caption);
  font-weight: 600;
}
.input[aria-invalid="true"] {
  border-color: var(--destructive);
}

.form-card[aria-busy="true"] .btn-primary {
  cursor: progress;
}

/* ── Closing CTA ──────────────────────────────────────────────────────────────────────────── */

.closer-wrap {
  padding-top: var(--section-y);
}
.closer {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 1rem + 5vw, 4.5rem) var(--gutter);
  /* On the dark canvas the ink block is only a shade darker than the page; it needs an edge. */
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  background: var(--fill-ink);
  color: var(--on-ink);
  text-align: center;
}
.closer > * {
  position: relative;
}
.closer h2 {
  font-size: var(--step-title);
  max-width: 24ch;
  margin-inline: auto;
}
.closer p {
  max-width: 46ch;
  margin: 1rem auto 0;
  color: color-mix(in oklab, var(--on-ink) 80%, var(--fill-ink));
}
.closer .btn-primary {
  background: var(--fill-butter);
  color: var(--on-butter);
}
.closer .btn-ghost {
  background: transparent;
  border-color: color-mix(in oklab, var(--on-ink) 35%, transparent);
  color: var(--on-ink);
  box-shadow: none;
}
@media (hover: hover) {
  .closer .btn-primary:hover {
    background: var(--fill-cream);
    color: var(--on-cream);
  }
  .closer .btn-ghost:hover {
    background: color-mix(in oklab, var(--on-ink) 12%, transparent);
    color: var(--on-ink);
  }
}
/* The logo's ascending bars, oversized and quiet, rising out of the bottom corners. */
.closer-bars {
  position: absolute;
  bottom: -2px;
  width: clamp(120px, 18vw, 220px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}
.closer-bars.left {
  left: clamp(-40px, -2vw, 0px);
}
.closer-bars.right {
  right: clamp(-40px, -2vw, 0px);
  transform: scaleX(-1);
}
@media (max-width: 719px) {
  .closer-bars {
    display: none;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────────────────────── */

.site-foot {
  padding-block: 3rem 2.5rem;
  margin-top: var(--section-y);
  border-top: 1px solid var(--edge);
  color: var(--muted-foreground);
  font-size: var(--step-small);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-inline-start: auto;
}
.site-foot a {
  color: var(--muted-foreground);
  text-decoration-color: var(--border);
}
@media (hover: hover) {
  .site-foot a:hover {
    color: var(--foreground);
  }
}
.foot-note {
  margin-top: 1.5rem;
  font-size: var(--step-caption);
}

/* ══ Motion ═══════════════════════════════════════════════════════════════════════════════════
 *
 * Everything below is decoration. Delete it and the site is complete and correct.
 */

@media (prefers-reduced-motion: no-preference) {
  /* — Interaction feedback: quick, and only colour/shadow/transform — */
  .btn,
  .nav a,
  .card,
  .input,
  .col {
    transition:
      background-color var(--dur-ui) ease,
      color var(--dur-ui) ease,
      border-color var(--dur-ui) ease,
      box-shadow var(--dur-ui) ease,
      transform var(--dur-press) var(--ease-out);
  }
  .btn:active:not([disabled]) {
    transform: scale(0.97);
  }
  .btn .arrow {
    transition: transform var(--dur-ui) var(--ease-out);
  }
  @media (hover: hover) {
    .btn:hover .arrow,
    .more:hover .arrow {
      transform: translateX(3px);
    }
    .card:hover {
      transform: translateY(-2px);
    }
  }
  .more .arrow {
    transition: transform var(--dur-ui) var(--ease-out);
  }

  /* — The eyebrow's logo bars grow up in sequence, then the dot drops on — */
  .bars rect,
  .closer-bars rect {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: bar-rise 640ms var(--ease-out) both;
  }
  .bars rect:nth-of-type(2),
  .closer-bars rect:nth-of-type(2) {
    animation-delay: 90ms;
  }
  .bars rect:nth-of-type(3),
  .closer-bars rect:nth-of-type(3) {
    animation-delay: 180ms;
  }
  .bars circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: dot-drop 520ms 380ms var(--ease-out) both;
  }

  /* — Hero: text settles in, then the board's cards deal themselves onto the columns — */
  .hero > :is(.eyebrow, h1, .lead, .cta-row, .hero-note),
  .page-hero > *,
  .trial-intro > :is(h1, .lead) {
    animation: rise 560ms var(--ease-out) both;
  }
  .hero > h1,
  .page-hero > h1 {
    animation-delay: 50ms;
  }
  .hero > .lead,
  .page-hero > .lead {
    animation-delay: 100ms;
  }
  .hero > .cta-row,
  .page-hero > .cta-row {
    animation-delay: 150ms;
  }
  .hero > .hero-note {
    animation-delay: 200ms;
  }
  .board .deal {
    animation: deal-in 520ms var(--ease-out) both;
    animation-delay: calc(260ms + var(--i, 0) * 60ms);
  }

  /* — The management-channel diagram: heartbeats travel out from the install, and only out — */
  .svg-wire {
    animation: wire-flow 1.6s linear infinite;
  }
  .packet {
    animation: packet-travel 3.2s var(--ease-in-out) infinite both;
  }
  .packet:nth-of-type(2) {
    animation-delay: 1.06s;
  }
  .packet:nth-of-type(3) {
    animation-delay: 2.13s;
  }
  .blocked {
    animation: blocked-pulse 3.2s ease-in-out infinite;
  }
  .pulse-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ring 2.4s var(--ease-out) infinite;
  }

  /* — The inbox diagram: messages from four channels converge on one thread — */
  .msg {
    animation: msg-travel 4s var(--ease-in-out) infinite both;
    animation-delay: calc(var(--i, 0) * 1s);
  }
  .thread-line {
    transform-box: fill-box;
    transform-origin: left;
    animation: thread-grow 4s var(--ease-out) infinite both;
    animation-delay: calc(var(--i, 0) * 1s + 1.4s);
  }

  /* — The price-stack diagram: the three parts of the price stack up — */
  .stack-part {
    transform-box: fill-box;
    transform-origin: bottom;
  }
}

/* Scroll-revealed blocks. Gated twice: on motion preference and on support for scroll-driven
   animations. Where either is missing the blocks are simply there. The range ends at 30 % of
   entry, so anything a visitor can actually read is already fully opaque. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    .stack-part {
      animation: stack-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
    .stack-part:nth-of-type(2) {
      animation-range: entry 20% cover 40%;
    }
    .stack-part:nth-of-type(3) {
      animation-range: entry 30% cover 45%;
    }
    .steps::before {
      animation: rail-draw linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes bar-rise {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
}
@keyframes dot-drop {
  from {
    transform: translateY(-6px) scale(0.6);
    opacity: 0;
  }
}
@keyframes deal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
@keyframes wire-flow {
  to {
    stroke-dashoffset: -20;
  }
}
/* Packets travel the 116 user units from the server's edge to the fleet's. In SVG a CSS px is a
   user unit, so this scales with the drawing. */
@keyframes packet-travel {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(116px);
    opacity: 0;
  }
}
@keyframes blocked-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes ring {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
/* Each message starts at its channel and travels by (--dx, --dy) to the inbox. */
@keyframes msg-travel {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  32% {
    transform: translate(var(--dx), var(--dy));
    opacity: 1;
  }
  40%,
  100% {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
}
@keyframes thread-grow {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  6% {
    transform: scaleX(1);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  85%,
  100% {
    opacity: 0.35;
    transform: scaleX(1);
  }
}
@keyframes stack-rise {
  from {
    transform: scaleY(0);
  }
}
@keyframes rail-draw {
  from {
    transform: scaleY(0);
  }
}

/* ── The custom cursor ────────────────────────────────────────────────────────────────────────
 *
 * Only where it means something — over the pipeline board, where it says what you can do there —
 * and only for a mouse or trackpad with JavaScript running. Touch and keyboard users keep the
 * system cursor everywhere; the JS checks the pointer type before it creates the element. With
 * reduced motion the cursor still appears, but snaps instead of scaling.
 */

@media (hover: hover) and (pointer: fine) {
  /* The hint's line is reserved before the script runs and only made visible after, so turning
     it on cannot shift the page. */
  .board-hint {
    display: block;
    visibility: hidden;
  }
  .js .board-hint {
    visibility: visible;
  }
  .has-cursor [data-cursor] {
    cursor: none;
  }
  .has-cursor [data-cursor] .deal {
    cursor: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  /* Position is written by JS as a transform on this element; the pill inside scales on its own,
     so the two never fight over the same property. */
  will-change: transform;
}
.cursor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-foreground);
  box-shadow: var(--elevation-soft);
  font-family: var(--font);
  font-size: var(--step-caption);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translate(-6px, -6px) scale(0.4);
  transform-origin: 6px 6px;
  opacity: 0;
  transition:
    transform 200ms var(--ease-out),
    opacity 150ms ease;
}
.cursor-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fill-butter);
  transition: transform 200ms var(--ease-out);
}
.cursor.is-on .cursor-pill {
  transform: translate(-6px, -6px) scale(1);
  opacity: 1;
}
.cursor.is-down .cursor-pill {
  transform: translate(-6px, -6px) scale(0.92);
}
.cursor.is-down .cursor-pill::before {
  transform: scale(1.4);
}

/* A card being dragged on the board. */
.deal.is-dragging {
  position: relative;
  z-index: 5;
  box-shadow: 0 18px 40px -14px oklch(0.2 0.02 70 / 45%);
  transition: none;
}
.deal.is-settling {
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out);
}
.count.bump {
  animation: bump 320ms var(--ease-out);
}
@keyframes bump {
  40% {
    transform: scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-pill,
  .cursor-pill::before,
  .deal.is-settling {
    transition: none;
  }
  .count.bump {
    animation: none;
  }
}

/* A closer straight after a section already has the section's bottom padding above it. */
.section + .closer-wrap {
  padding-top: 0;
}
.split + .model {
  margin-top: 1.5rem;
}
.nowrap {
  white-space: nowrap;
}
.includes .is-addon {
  color: var(--muted-foreground);
}
.includes .is-addon svg {
  color: var(--muted-foreground);
}
/* Groups of exactly four go four-up on a wide screen and two-up below, never three plus an orphan. */
.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1023px) {
  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .cards.four {
    grid-template-columns: 1fr;
  }
}
.split + .cards {
  margin-top: clamp(2rem, 1rem + 2.5vw, 3rem);
}

/* Wide diagrams have a tall twin for phones: scaled down, the wide one's labels drop below a
   readable size. Only one of the pair is ever rendered, so only one is in the accessibility tree. */
.fig-tall {
  display: none;
}
@media (max-width: 559px) {
  .figure .fig-wide {
    display: none;
  }
  .figure .fig-tall {
    display: block;
  }
}
.m5 { --dx: 81px; --dy: 96px; }
.m6 { --dx: -81px; --dy: 96px; }
.m7 { --dx: 81px; --dy: 44px; }
.m8 { --dx: -81px; --dy: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .packet-y {
    animation-name: packet-travel-y;
  }
}
@keyframes packet-travel-y {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  12%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(104px);
    opacity: 0;
  }
}
