/* Dovetly design system, v1 (2026-09-03)
   Fonts are linked in the HTML head (Google Fonts): Gabarito 700/800, Figtree 400/500/600.
   Tokens and class names follow docs/CONTRACTS.md, section 2. Extensions are marked "ext". */

:root {
  --terra: #c2410c;  --terra-deep: #9a3412;  --ink: #1f2430;
  --peach: #fde7dc;  --stone: #f4f4f2;       --line: #e9e7e4;
  --muted: #5f6673;  --muted-2: #7b8290;     --white: #ffffff;
  --running: #15803d; --error: #b91c1c;      --attention: #9a3412;
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --font-display: 'Gabarito', 'Arial Black', Arial, sans-serif;
  --font-text: 'Figtree', 'Segoe UI', Arial, sans-serif;
  --container: 1180px;
  /* ext: values lifted from the mockups that the contract does not name */
  --ink-2: #4b5563;       /* secondary body text */
  --line-2: #d6d3cf;      /* ghost buttons, inputs, dashed rows */
  --ink-lift: #343b49;    /* hover of ink buttons */
  --error-soft: #fbe9e7;  /* error banner and error status background */
  --on-ink: rgba(255,255,255,.78);
  --on-ink-2: rgba(255,255,255,.62);
  --gutter: 32px;
  --control-h: 48px; --control-h-sm: 40px;
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; color: inherit; text-wrap: balance;
}
h1, .h1 { font-size: 44px; line-height: 1.06; }
h2, .h2 { font-size: 32px; line-height: 1.1; }
h3, .h3 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.display { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
p { margin: 0; }
.prose > * + * { margin-top: .8em; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--terra); }
strong, b { font-weight: 600; }
ul, ol { margin: 0; padding-left: 22px; }
small, .small { font-size: 14px; }
.micro { font-size: 13px; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
::selection { background: var(--peach); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--stone, .section--peach, .section--ink { border-radius: var(--r-lg); padding: 48px; }
.section--stone { background: var(--stone); }
.section--peach { background: var(--peach); color: var(--attention); }
.section--peach h1, .section--peach h2, .section--peach h3 { color: var(--ink); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .muted, .section--ink .lead { color: var(--on-ink); }
.section--ink a { color: var(--white); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }   /* ext: heading + steps */
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }   /* ext: steps + price-box */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 24px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }

/* ---------- navigation ---------- */
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px var(--edge); background: var(--white); border-bottom: 1px solid var(--line);
}
.nav__logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
.nav__logo svg { height: 28px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--terra); }
.nav__links a[aria-current="page"], .nav__links .is-active { color: var(--ink); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta a:not(.btn) { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 14px; color: var(--ink); }
.nav__cta a:not(.btn):hover { color: var(--terra); }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-left: auto; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); color: var(--ink);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 24px var(--edge) 32px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--terra); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-h); padding: 0 26px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; background: var(--stone); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--line); color: var(--ink); }
.btn--primary { background: var(--terra); border-color: var(--terra); color: var(--white); }
.btn--primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-lift); border-color: var(--ink-lift); color: var(--white); }
.btn--sm { min-height: var(--control-h-sm); padding: 0 18px; font-size: 14.5px; }
.btn--block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.section--ink .btn--ghost, .card--ink .btn--ghost, .price-box .btn--ghost, .trust .btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }

/* ---------- pills and statuses ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: var(--r-pill);
  background: var(--stone); color: var(--ink); font-family: var(--font-text); font-size: 14px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: default;
}
a.pill, button.pill { cursor: pointer; }
a.pill:hover, button.pill:hover { background: var(--line); color: var(--ink); }
.pill--active, a.pill--active:hover, button.pill--active:hover { background: var(--ink); color: var(--white); }
.pill--sm { padding: 4px 9px; font-size: 12px; }
.pill--peach { background: var(--peach); color: var(--attention); }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--stone); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.status--ok { background: transparent; padding: 4px 0; color: var(--running); }
.status--ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.card--peach .status--ok, .section--peach .status--ok, .integration-row--setup .status--ok, .hero__panel .status--ok { background: var(--white); padding: 4px 10px; }
.status--setup { background: var(--peach); color: var(--attention); }
.status--setup::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; flex: none; }
.status--pending { background: var(--stone); color: var(--ink); }
.status--priced { background: var(--peach); color: var(--attention); }
.status--paused { background: var(--stone); color: var(--muted); }
.status--error { background: var(--error-soft); color: var(--error); }
.status--error::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.card--stone { background: var(--stone); border-color: var(--stone); }
.card--peach { background: var(--peach); border-color: var(--peach); color: var(--attention); }
.card--peach h1, .card--peach h2, .card--peach h3, .card--peach .card__title, .card--peach .card__price { color: var(--ink); }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card--ink h1, .card--ink h2, .card--ink h3, .card--ink .card__title { color: var(--white); }
.card--ink .muted, .card--ink .card__meta { color: var(--on-ink); }
.card--ink a { color: var(--white); }
.card__title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.card__meta { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.card--peach .card__meta { color: var(--attention); }
.card__price { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.card__per { margin-left: 2px; font-family: var(--font-text); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.card--ink .card__per { color: var(--on-ink); }
.card__side { text-align: right; }                       /* ext: price column of a catalog card */
.card__link { font-size: 13px; font-weight: 600; color: var(--terra); text-decoration: none; }
.card__link:hover { color: var(--terra-deep); }
.card--row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; } /* ext: compact list card */
.card--row > .card__body { flex: 1; min-width: 0; }
.card__price--sm, .card--row .card__price { font-size: 18px; }

/* ---------- app pair ---------- */
.pair { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pair__app {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm); background: var(--stone); overflow: hidden;
}
.pair__joint { width: 8px; height: 12px; flex: none; background: var(--ink); opacity: .35; clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%); }
.app-logo { width: 26px; height: 26px; object-fit: contain; }
.app-logo--wide { width: 34px; height: 26px; }
.pair--lg { gap: 6px; }
.pair--lg .pair__app { width: 64px; height: 64px; border-radius: var(--r-md); }
.pair--lg .app-logo { width: 38px; height: 38px; }
.pair--lg .app-logo--wide { width: 50px; height: 38px; }
.pair--lg .pair__joint { width: 10px; height: 16px; }
.pair--sm { gap: 3px; }                                   /* ext: 34px squares, used inside cabinet rows */
.pair--sm .pair__app, .integration-row .pair__app, .table__row .pair__app { width: 34px; height: 34px; border-radius: 9px; }
.pair--sm .app-logo, .integration-row .app-logo, .table__row .app-logo { width: 22px; height: 22px; }
.pair--sm .app-logo--wide, .integration-row .app-logo--wide, .table__row .app-logo--wide { width: 28px; height: 22px; }
.pair--sm .pair__joint, .integration-row .pair__joint, .table__row .pair__joint { width: 7px; height: 10px; }
.card--stone .pair__app, .card--peach .pair__app, .card--ink .pair__app, .section--stone .pair__app, .section--peach .pair__app,
.integration-row .pair__app, .table__row .pair__app, .chat-demo .pair__app { background: var(--white); }

/* ---------- storefront ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 64px; align-items: center; padding: 64px 0 72px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero__title { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.hero__lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 540px; }
.hero__note { font-size: 14px; color: var(--muted); }
.hero__panel { background: var(--peach); border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; gap: 14px; color: var(--attention); font-size: 13.5px; min-width: 0; }
.hero__panel .card { border: 0; }
.breadcrumbs { font-size: 14px; color: var(--muted); }   /* ext */
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs strong { color: var(--ink); font-weight: 500; }

.search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 680px; min-height: 56px; padding: 0 20px;
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); transition: border-color .15s;
}
.search:focus-within { border-color: var(--ink); }
.search__icon { width: 20px; height: 20px; flex: none; color: var(--ink); }
.search__input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; font-size: 16px; line-height: 1.4; color: var(--ink); }
.search__input::placeholder { color: var(--muted-2); }
.search__hint { font-size: 14px; color: var(--muted); }
.search__hint mark { background: transparent; color: var(--ink); font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog .card {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 20px 22px; border: 0; border-radius: 18px; background: var(--stone);
}
.catalog .card__paste { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.catalog .card--peach { background: var(--peach); }
.catalog .catalog__cta { grid-column: 1 / -1; padding: 24px 22px; }
.catalog__icon { width: 40px; height: 40px; color: var(--terra); }

.steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 20px; background: var(--white); border-radius: var(--r-md); }
.steps__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--attention); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.steps__title, .steps__item h3 { display: block; font-family: var(--font-text); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.steps__text { font-size: 15px; color: var(--ink-2); }
.steps--plain .steps__item { padding: 0; background: transparent; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.steps--plain .steps__num { width: 36px; height: 36px; font-size: 16px; }
.steps--plain .steps__title { font-size: 16px; }
.steps--plain .steps__text { font-size: 14.5px; }

.compare { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; font-size: 15px; }
.compare__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare__row:first-child { border-top: 0; }
.compare__row--head { background: var(--stone); font-weight: 600; }
.compare__cell { padding: 14px 20px; color: var(--ink-2); min-width: 0; }
.compare__row > .compare__cell:first-child { font-weight: 600; color: var(--ink); }
.compare__cell--us { color: var(--ink); }
.compare__row--head .compare__cell { color: var(--muted); }
.compare__row--head .compare__cell--us { color: var(--terra); }

.moves { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.moves__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.moves__table th, .moves__table td { padding: 13px 20px; text-align: left; vertical-align: top; }
.moves__table thead th { font-weight: 600; background: var(--stone); white-space: nowrap; }
.moves__table tbody th, .moves__table tbody td { border-top: 1px solid var(--line); color: var(--ink-2); }
.moves__table tbody th, .moves__table tbody td:first-child { font-weight: 600; color: var(--ink); }
.moves__table tbody > tr > :nth-child(3) { color: var(--ink); }

.chat-demo { background: var(--peach); border-radius: var(--r-lg); padding: 28px; color: var(--attention); min-width: 0; }
.chat-demo__caption { font-size: 13px; margin-bottom: 12px; }
.chat-demo__window { background: var(--white); border-radius: 14px; overflow: hidden; color: var(--ink); }
.chat-demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chat-demo__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.bubble { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.bubble--client { background: var(--stone); border-color: var(--stone); }
.bubble--manager, .bubble--system { background: var(--white); }
.bubble--system .bubble__title { color: var(--ink-2); }
.bubble__body { flex: 1; min-width: 0; }
.bubble__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.bubble__tag { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bubble--client .bubble__tag { color: var(--running); }

.price-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px 40px; background: var(--ink); color: var(--white); border-radius: var(--r-lg); min-width: 0; }
.price-box__amount { display: flex; align-items: baseline; gap: 10px; }
.price-box__amount strong { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price-box__amount span { color: var(--on-ink); }
.price-box__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255,255,255,.88); }
.price-box__list .muted, .price-box__note { color: var(--on-ink-2); }
.price-box__note { font-size: 13px; }
.price-box .btn { margin-top: 6px; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq__item { border-top: 1px solid var(--line); padding: 16px 0; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; width: 9px; height: 9px; margin: 0 6px 4px 0; flex: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.faq__item[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.faq__item p, .faq__answer { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

.trust { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 44px 48px; background: var(--ink); color: var(--white); border-radius: var(--r-lg); }
.trust h2 { color: var(--white); margin-bottom: 10px; }
.trust p { font-size: 15.5px; color: var(--on-ink); }
.trust__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; justify-self: end; }
.trust__aside .small { font-size: 14px; color: var(--on-ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field__label { font-size: 13px; font-weight: 600; }
.input, .select, .textarea {
  display: block; width: 100%; min-height: var(--control-h); padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); color: var(--ink);
  font-family: var(--font-text); font-size: 15px; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: #c4c0bb; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--terra); outline: 2px solid var(--terra); outline-offset: 2px; }
.input--error, .input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.input--sm, .select--sm { min-height: var(--control-h-sm); font-size: 14px; }
.textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231f2430' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field__hint { font-size: 13px; color: var(--muted); }
.field__hint a { color: var(--ink); }
.field__error { font-size: 13px; font-weight: 500; color: var(--error); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--terra); cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- cabinet ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--stone); font-size: 14.5px; line-height: 1.5; }
.sidebar { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px 16px; background: var(--white); border-right: 1px solid var(--line); }
.sidebar__logo { display: flex; align-items: center; padding: 4px 10px 18px; color: var(--ink); text-decoration: none; }
.sidebar__logo svg { height: 24px; width: auto; }
.sidebar__nav { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sidebar__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.sidebar__item svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.sidebar__item:hover { background: var(--stone); color: var(--ink); }
.sidebar__item--active, .sidebar__item--active:hover { background: var(--peach); color: var(--attention); font-weight: 600; }
.sidebar__item--active svg { color: var(--terra); }
.sidebar__foot, .sidebar__user { margin-top: auto; padding: 14px 12px; background: var(--stone); border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); }
.sidebar__foot strong, .sidebar__user strong { display: block; margin-bottom: 2px; color: var(--ink); }
.sidebar__foot .muted, .sidebar__user .muted { display: block; margin-top: 8px; }
.shell__main { display: flex; flex-direction: column; gap: 20px; padding: 28px 36px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--edge); background: var(--white); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topbar__steps { display: flex; align-items: center; gap: 10px; }
.topbar__steps strong { color: var(--ink); font-weight: 600; }
.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.page-title h1 { font-size: 26px; line-height: 1.15; }
.page-title p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

.table { display: flex; flex-direction: column; gap: 10px; }
.table__row, .integration-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 18px;
  padding: 16px 20px; background: var(--white); border: 1.5px solid transparent; border-radius: var(--r-md);
}
.table__cell { min-width: 0; }
.table__cell strong { font-weight: 600; }
.table__cell .small, .integration-row .small { display: block; font-size: 12.5px; color: var(--muted); }
.integration-row { grid-template-columns: 88px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 100px; }
.integration-row > * { min-width: 0; }
.integration-row__name { font-size: 15.5px; font-weight: 600; }
.integration-row__meta { font-size: 13px; color: var(--muted); }
.integration-row__sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.integration-row__stat { font-weight: 600; }
.integration-row__action { justify-self: end; font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); text-decoration: none; }
.integration-row__action:hover { color: var(--terra); }
.integration-row__icon { width: 34px; height: 34px; color: var(--terra); }
.integration-row--setup { background: var(--peach); border-color: var(--peach); }
.integration-row--setup .integration-row__meta, .integration-row--setup .integration-row__sub, .integration-row--setup .small, .integration-row--setup .integration-row__action { color: var(--attention); }
.integration-row--request { border-style: dashed; border-color: var(--line-2); }
.integration-row--request .integration-row__action { color: var(--terra); }
.integration-row--paused { background: var(--stone); }

.wizard { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.wizard__aside { display: flex; flex-direction: column; gap: 18px; }
.wizard__aside h1 { font-size: 24px; margin-top: 4px; }
.wizard__steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wizard__step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.wizard__num { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 1.5px solid var(--line-2); border-radius: 50%; color: var(--muted); font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.wizard__step strong { display: block; font-weight: 600; color: var(--muted); }
.wizard__step .small { display: block; font-size: 12.5px; color: var(--muted); }
.wizard__step--done .wizard__num { background: var(--running); border-color: var(--running); color: var(--white); }
.wizard__step--done strong, .wizard__step--active strong { color: var(--ink); }
.wizard__step--done .small { color: var(--running); }
.wizard__step--active .wizard__num { background: var(--terra); border-color: var(--terra); color: var(--white); }
.wizard__step--active .small { color: var(--muted); }
.wizard__body { display: flex; flex-direction: column; gap: 22px; padding: 32px 36px; background: var(--white); border-radius: 20px; min-width: 0; }
.wizard__label { font-size: 13px; font-weight: 600; color: var(--terra); }
.wizard__body h2 { font-size: 28px; margin-top: 4px; }
.wizard__intro { margin-top: 8px; max-width: 640px; color: var(--ink-2); }
.wizard__guide { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.wizard__guide strong { color: var(--ink); }
.wizard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; }
.wizard__actions .wizard__back { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; }
.wizard__actions .wizard__back:hover { color: var(--terra); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; text-align: center; background: var(--white); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty svg { width: 40px; height: 40px; color: var(--terra); margin-bottom: 6px; }
.empty h3 { font-family: var(--font-text); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.empty p { max-width: 440px; font-size: 14.5px; color: var(--muted); }
.empty .btn { margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 18px;
  background: var(--ink); color: var(--white); border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
}
.toast a { color: var(--white); }
.toast--error { background: var(--error); }
.toast--inline { position: static; transform: none; }
.banner { padding: 14px 16px; background: var(--peach); color: var(--attention); border-radius: var(--r-sm); font-size: 13.5px; }
.banner a { color: inherit; }
.banner--error { background: var(--error-soft); color: var(--error); }
.banner--stone { background: var(--stone); color: var(--ink-2); }

/* ---------- utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide-desktop { display: none !important; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 40px; padding: 48px 0 56px; }
  .section--stone, .section--peach, .section--ink { padding: 36px; }
  .trust { grid-template-columns: 1fr; gap: 24px; padding: 36px; }
  .trust__aside { justify-self: start; }
  .shell { grid-template-columns: 216px minmax(0, 1fr); }
  .shell__main { padding: 24px; }
  .wizard { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .wizard__body { padding: 28px; }
  .integration-row { grid-template-columns: 84px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 80px; gap: 14px; }
}

@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: initial !important; }
  .grid--2, .grid--3, .grid--4-8, .grid--7-5 { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .nav__logo { order: 0; }
  .nav__toggle { display: inline-flex; order: 1; }
  .nav__links, .nav__cta { display: none; width: 100%; }
  .nav__links { order: 2; }
  .nav__cta { order: 3; }
  .nav--open .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  .nav--open .nav__links a { display: block; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 17px; }
  .nav--open .nav__cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0 6px; border-top: 1px solid var(--line); }
  .nav--open .nav__cta a:not(.btn) { padding: 12px 4px; }
  .nav--open .nav__cta .btn { width: 100%; }
  .hero { padding: 40px 0 48px; }
  .hero__panel { padding: 24px; }
  .section { padding: 48px 0; }
  .section--stone, .section--peach, .section--ink { padding: 28px 20px; }
  .catalog { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .compare__row { min-width: 600px; }
  .moves__table { min-width: 640px; }
  .price-box { padding: 28px 24px; }
  .chat-demo { padding: 20px; }
  .shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar__logo { padding: 4px 8px 4px 0; }
  .sidebar__nav { flex-direction: row; flex: 1; min-width: 0; overflow-x: auto; gap: 4px; }
  .sidebar__item { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .sidebar__foot, .sidebar__user { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; margin-top: 4px; padding: 10px 12px; }
  .sidebar__foot strong, .sidebar__user strong { display: inline; margin: 0; }
  .sidebar__foot .muted, .sidebar__user .muted { display: inline; margin: 0; }
  .shell__main { padding: 20px var(--gutter); }
  .wizard { grid-template-columns: 1fr; }
  .wizard__body { padding: 24px 20px; }
  .wizard__body h2 { font-size: 24px; }
  .integration-row { grid-template-columns: 56px minmax(0, 1fr) auto; row-gap: 8px; }
  .integration-row > :nth-child(3), .integration-row > :nth-child(4) { grid-column: 2 / -1; }
  .integration-row > :last-child { grid-column: 3; grid-row: 1; }
  .integration-row .pair { flex-direction: column; gap: 2px; }
  .integration-row .pair__joint { display: none; }
  .integration-row .pair__app { width: 26px; height: 26px; border-radius: 7px; }
  .integration-row .app-logo { width: 16px; height: 16px; }
  .integration-row .app-logo--wide { width: 22px; height: 16px; }
  .topbar { flex-wrap: wrap; gap: 8px 16px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  h1, .h1 { font-size: 34px; }
  h2, .h2 { font-size: 26px; }
  h3, .h3 { font-size: 20px; }
  .display, .hero__title { font-size: 40px; }
  .lead, .hero__lead { font-size: 18px; }
  .btn { white-space: normal; text-align: center; }
  .hero__copy .row > .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .catalog .card { grid-template-columns: 1fr; gap: 12px; }
  .catalog .card__side { text-align: left; }
  .catalog .card__side .card__price { display: inline-block; margin-right: 12px; }
  .pair--lg .pair__app { width: 52px; height: 52px; }
  .pair--lg .app-logo { width: 32px; height: 32px; }
  .pair--lg .app-logo--wide { width: 42px; height: 32px; }
  .page-title { flex-direction: column; align-items: flex-start; }
  .table__row { grid-template-columns: 1fr; gap: 8px; }
  .steps__item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .steps__num { width: 36px; height: 36px; font-size: 16px; }
  .wizard__actions .wizard__back { margin-left: 0; }
  .trust, .section--stone, .section--peach, .section--ink { padding: 24px 18px; }
  .chat-demo { padding: 16px; }
  .bubble { flex-direction: column; align-items: flex-start; gap: 6px; }
  .toast { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* password field with an eye toggle inside the input (ext, 04.09) */
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw__eye { position: absolute; right: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); cursor: pointer; }
.pw__eye:hover { color: var(--ink); }
.pw__eye:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.pw__eye svg { width: 20px; height: 20px; display: block; }
.pw__eye[data-state="shown"] .pw__eye-on, .pw__eye:not([data-state="shown"]) .pw__eye-off { display: none; }
