/* Landing of Ґазда Хатки. Colours, type, spacing and radii come only from design-system tokens
   (ds-theme-warm). Layout uses container queries on .page. */
@font-face {
  font-family: 'Hatky Onest';
  src: url('/shared-ui/onest.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Hatky Lora';
  src: url('/shared-ui/lora.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
body {
  margin: 0;
  background: var(--ds-canvas);
  color: var(--ds-ink);
  font-family: var(--ds-font);
  font-size: var(--ds-text-md);
  line-height: var(--ds-leading-body);
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 3px;
}

/* ---- Page frame ---- */
.page {
  container-type: inline-size;
  background: var(--ds-canvas);
}
.wrap {
  max-width: calc(var(--ds-space-16) * 19);
  margin: 0 auto;
  padding-inline: var(--ds-space-10);
}
.section {
  padding-block: calc(var(--ds-space-16) * 1.5);
}
.section + .section {
  border-top: 1px solid var(--ds-line);
}
.section-head {
  display: grid;
  gap: var(--ds-space-3);
  max-width: calc(var(--ds-space-16) * 10);
  margin: 0 auto var(--ds-space-12);
  text-align: center;
}
/* «Три кроки» follow the before/after cards in the same section; after .section-head, which resets the margin. */
.steps-head {
  margin-top: var(--ds-space-16);
}
.eyebrow {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
.display {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-medium);
  letter-spacing: -0.02em;
  line-height: var(--ds-leading-tight);
  /* Even lines instead of one word left alone on the last line. */
  text-wrap: balance;
}
h2.display {
  font-size: var(--ds-text-3xl);
}
.section-head p:not(.eyebrow) {
  color: var(--ds-muted);
  font-size: var(--ds-text-lg);
}

/* ---- Header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ds-canvas);
  border-bottom: 1px solid var(--ds-line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-6);
  min-height: var(--ds-space-16);
}
.logo img {
  display: block;
  height: var(--ds-space-8);
  width: auto;
}
.head-nav {
  display: flex;
  gap: var(--ds-space-1);
  margin-inline: auto;
}
.head-nav a {
  padding: var(--ds-space-2) var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-text-sm);
  text-decoration: none;
  color: var(--ds-muted);
}
.head-nav a:hover {
  background: var(--ds-soft);
  color: var(--ds-ink);
}
.head-actions {
  display: flex;
  gap: var(--ds-space-2);
  align-items: center;
}
.menu-toggle {
  display: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: var(--ds-space-16);
  overflow: clip;
}
/* Hero scene stands on the top edge of the live demo (Notion-like): its ground is the demo border. */
.hero-stage {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin: var(--ds-space-10) 0 -1px;
}
.hero-stage + .live {
  margin-top: 0;
}
/* The owner's vector sits a little lower: its foot goes behind the demo, the layout stays as it was. */
.hero-stage.trace {
  z-index: 0;
  transform: translateY(var(--ds-space-6));
}
.hero-stage.trace + .live {
  z-index: 1;
}
.hero-stage.hero-narrow {
  display: none;
}
.art .art-dash {
  stroke-dasharray: 6 6;
}
.hero-eyebrow {
  font-size: var(--ds-text-sm);
  letter-spacing: 0.16em;
}
.hero-copy {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--ds-space-5);
  text-align: center;
  max-width: calc(var(--ds-space-16) * 13);
}
.hero h1 {
  font-size: calc(var(--ds-text-3xl) * 1.6);
}
.lead {
  font-size: var(--ds-text-lg);
  color: var(--ds-muted);
  max-width: calc(var(--ds-space-16) * 10);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-2);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ds-space-2) var(--ds-space-5);
  padding: 0;
  list-style: none;
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: var(--ds-space-1);
}
.hero-facts .ds-icon {
  width: var(--ds-space-4);
  height: var(--ds-space-4);
  color: var(--ds-accent);
}

/* ---- Live demo ---- */
.live {
  position: relative;
  margin-top: var(--ds-space-12);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-line);
  border-radius: calc(var(--ds-radius-panel) + var(--ds-space-2));
  background: var(--ds-soft);
}
.live-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ds-space-3);
  padding: 0 var(--ds-space-2) var(--ds-space-3);
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.live-bar strong {
  color: var(--ds-ink);
}
.app {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-canvas);
  overflow: hidden;
}
.app-top {
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-5);
  border-bottom: 1px solid var(--ds-line);
  background: var(--ds-paper);
}
.app-top img {
  height: var(--ds-space-6);
}
.app-nav {
  display: flex;
  gap: var(--ds-space-1);
  font-size: var(--ds-text-sm);
}
.app-nav span {
  padding: var(--ds-space-1) var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-muted);
}
.app-nav span[aria-current] {
  background: var(--ds-ink);
  color: var(--ds-paper);
}
.app-body {
  display: grid;
  gap: var(--ds-space-5);
  padding: var(--ds-space-6);
}
.app-greeting {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ds-space-3);
}
.app-greeting h3 {
  font-size: var(--ds-text-xl);
}
.app-greeting span {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ds-space-3);
}
.app-stats .ds-stat {
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-control);
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
}
.request {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4) var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  background: var(--ds-paper);
}
.request-text {
  display: grid;
  gap: var(--ds-space-1);
}
.request-text p {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.request-detail {
  display: grid;
  gap: var(--ds-space-4);
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  background: var(--ds-paper);
}
.request-detail h3 {
  font-size: var(--ds-text-lg);
}
.detail-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--ds-space-16) * 2.5), 1fr));
  gap: var(--ds-space-3) var(--ds-space-6);
  margin: 0;
}
.detail-rows dt {
  font-size: var(--ds-text-xs);
  color: var(--ds-muted);
}
.detail-rows dd {
  margin: 0;
  font-weight: var(--ds-weight-semibold);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}
.note {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}

/* Calendar strip: unit rows × nights; every state is a colour and a word. */
.strip-scroll {
  overflow-x: auto;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  background: var(--ds-paper);
}
.strip {
  display: grid;
  grid-template-columns: calc(var(--ds-space-16) * 1.6) repeat(
      7,
      minmax(calc(var(--ds-space-12) + var(--ds-space-2)), 1fr)
    );
  min-width: calc(var(--ds-space-16) * 8);
  font-size: var(--ds-text-xs);
}
.strip > * {
  min-height: var(--ds-space-12);
  display: flex;
  align-items: center;
  padding: var(--ds-space-1) var(--ds-space-2);
  border-bottom: 1px solid var(--ds-line);
}
.strip .day {
  flex-direction: column;
  justify-content: center;
  color: var(--ds-muted);
}
.strip .day strong {
  color: var(--ds-ink);
  font-size: var(--ds-text-sm);
}
.strip .unit {
  font-weight: var(--ds-weight-semibold);
  font-size: var(--ds-text-sm);
}
.strip .bar {
  margin: var(--ds-space-1) 0;
  min-height: calc(var(--ds-space-8) + var(--ds-space-1));
  border: 1px solid transparent;
  border-radius: var(--ds-radius-pill);
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid transparent;
}
.bar[data-status='booked'] {
  background: var(--ds-status-booked-bg);
  color: var(--ds-status-booked-ink);
  border-color: var(--ds-status-booked-line);
}
.bar[data-status='held'] {
  background: var(--ds-status-held-bg);
  color: var(--ds-status-held-ink);
  border-color: var(--ds-status-held-line);
}
.bar[data-status='pending'] {
  background: var(--ds-paper);
  color: var(--ds-status-pending-ink);
  border: 1px dashed var(--ds-status-pending-line);
}
.strip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-4);
  font-size: var(--ds-text-xs);
  color: var(--ds-muted);
}

/* ---- Before / after ---- */
.compare .ds-tabs {
  display: grid;
  justify-items: center;
}
.compare .ds-tabpanel {
  width: 100%;
  padding-bottom: 0;
}
.pain-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ds-space-4);
}
.pain,
.step {
  display: grid;
  align-content: start;
  gap: var(--ds-space-2);
  padding: var(--ds-space-6);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
  color: var(--ds-ink);
  text-align: left;
}
.pain h3,
.step h3 {
  font-size: var(--ds-text-lg);
}
.pain p,
.step p {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.pain[data-tone='now'] {
  background: var(--ds-canvas);
}
.pain-label {
  justify-self: start;
}
.step .art {
  width: 100%;
  max-width: calc(var(--ds-space-16) * 3);
  height: auto;
  margin-bottom: var(--ds-space-3);
}
/* The owner's traced steps lie on a white card, so their cut-outs take the paper colour, and they carry
   more detail than the earlier sketches, so they are larger. */
.step .art.trace {
  --ds-canvas: var(--ds-paper);
  max-width: calc(var(--ds-space-16) * 4);
}
/* ---- Help with getting started ---- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ds-space-4);
}
.help-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--ds-space-2);
  padding: var(--ds-space-6);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
  color: var(--ds-ink);
}
.help-icon {
  display: grid;
  place-items: center;
  width: var(--ds-space-12);
  height: var(--ds-space-12);
  margin-bottom: var(--ds-space-2);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-soft);
  color: var(--ds-ink);
}
.help-icon .ds-icon {
  width: var(--ds-space-6);
  height: var(--ds-space-6);
}
.help-card h3 {
  font-size: var(--ds-text-lg);
}
.help-card p {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.help-more {
  display: flex;
  justify-content: center;
  margin-top: var(--ds-space-8);
}
.compare-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-6);
  margin-block: var(--ds-space-8);
  padding: var(--ds-space-6) var(--ds-space-8);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.compare-strip h2 {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-xl);
  font-weight: var(--ds-weight-medium);
}
.compare-strip p {
  margin-top: var(--ds-space-2);
  color: var(--ds-muted);
  max-width: calc(var(--ds-space-16) * 10);
}
.step-number {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-xl);
  color: var(--ds-muted);
}

/* ---- Feature switcher (DS candidate: tabs with a vertical list and a media panel) ---- */
/* The track is taller than the block: the block sticks under the header and scrolling through the
   spacer (::after) switches the features one by one (app.js, onFeatureScroll). */
.features-track::after {
  content: '';
  display: block;
  height: calc(var(--feature-count) * 40vh);
}
/* While it sticks, the block fills the screen under the header; the illustration takes the spare height. */
.features {
  --features-top: calc(var(--ds-space-16) + var(--ds-space-6));
  position: sticky;
  top: var(--features-top);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--ds-space-8);
  align-items: stretch;
  height: min(calc(100svh - var(--features-top) - var(--ds-space-6)), calc(var(--ds-space-16) * 13));
}
.feature-nav {
  display: grid;
  align-content: start;
  gap: var(--ds-space-4);
}
.feature-progress {
  height: var(--ds-space-1);
  margin-inline: var(--ds-space-5);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-line);
  overflow: hidden;
}
.feature-progress span {
  display: block;
  height: 100%;
  background: var(--ds-ink);
  transition: width var(--ds-motion-normal);
}
.feature-panel {
  animation: feature-in var(--ds-motion-normal) ease-out;
}
@keyframes feature-in {
  from {
    opacity: 0.4;
  }
}
.feature-list {
  display: grid;
  gap: var(--ds-space-2);
}
.feature-tab {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-height: var(--ds-control-lg);
  padding: var(--ds-space-2) var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-paper);
  color: var(--ds-ink);
  font: inherit;
  font-weight: var(--ds-weight-semibold);
  text-align: left;
  cursor: pointer;
}
.feature-tab small {
  margin-left: auto;
  color: var(--ds-muted);
  font-weight: var(--ds-weight-regular);
}
.feature-tab[aria-selected='true'] {
  background: var(--ds-action);
  border-color: var(--ds-action);
  color: var(--ds-action-ink);
}
.feature-tab[aria-selected='true'] small {
  color: inherit;
}
.feature-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
  overflow: hidden;
}
.feature-panel .art {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  padding: var(--ds-space-4);
  background: var(--ds-canvas);
  border-bottom: 1px solid var(--ds-line);
}
.feature-copy {
  display: grid;
  gap: var(--ds-space-3);
  padding: var(--ds-space-6);
}
.feature-copy h3 {
  font-size: var(--ds-text-xl);
}
.feature-copy p {
  color: var(--ds-muted);
}
.checks {
  display: grid;
  gap: var(--ds-space-2);
  padding: 0;
  list-style: none;
  font-size: var(--ds-text-sm);
}
.checks li {
  display: flex;
  gap: var(--ds-space-2);
}
.checks .ds-icon {
  flex-shrink: 0;
  width: var(--ds-space-5);
  height: var(--ds-space-5);
  color: var(--ds-accent);
}

/* ---- Catalog ---- */
.catalog {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--ds-space-4);
  align-items: stretch;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-4);
  padding: var(--ds-space-6);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.catalog-card > p {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.catalog-logo {
  height: var(--ds-space-8);
  width: auto;
}
/* A soft tray holds each side's example: the catalog cards and the requests in Ґазда. Both trays take the
   card's spare height, so the two sides stay level. */
.catalog-demo {
  flex: 1;
  display: grid;
  align-content: center;
  align-self: stretch;
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-control);
  background: var(--ds-canvas);
}
.catalog-demo:has(.catalog-listings) {
  container-type: inline-size;
}
.catalog-listings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-4);
}
/* A narrow tray (a smaller screen or a phone) shows one catalog card: two side by side get too small. */
@container (max-width: 440px) {
  .catalog-listings {
    grid-template-columns: minmax(0, calc(var(--ds-space-16) * 4.5));
    justify-content: center;
  }
  .catalog-listings .ds-stay-card + .ds-stay-card {
    display: none;
  }
}
.catalog-requests {
  display: grid;
  gap: var(--ds-space-3);
}
.catalog-request {
  padding: var(--ds-space-3) var(--ds-space-4);
}
.catalog-request-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}
/* The link sits at the bottom of the card. */
.catalog-link {
  margin-top: auto;
}
.catalog-arrow {
  display: grid;
  justify-items: center;
  gap: var(--ds-space-1);
  align-self: center;
  color: var(--ds-muted);
}
.catalog-arrow-label {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
}
.catalog-arrow .ds-icon {
  width: var(--ds-space-8);
  height: var(--ds-space-8);
}
.placeholder {
  padding: 0 var(--ds-space-1);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-warning-soft);
  color: var(--ds-warning);
}

/* ---- Booking page promo ---- */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ds-space-12);
  align-items: center;
}
.promo-copy {
  display: grid;
  gap: var(--ds-space-5);
}
.promo-copy .lead {
  max-width: none;
}
/* Phone mock with real proportions (about 9 : 19.5): the page scrolls inside, the request bar stays at the bottom. */
.phone {
  justify-self: center;
  width: min(100%, calc(var(--ds-space-16) * 4.7));
  aspect-ratio: 9 / 19.5;
  padding: var(--ds-space-2);
  border-radius: calc(var(--ds-radius-panel) * 2.4);
  background: var(--ds-ink);
  box-shadow: var(--ds-overlay-shadow);
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--ds-radius-panel) * 2);
  background: var(--ds-paper);
  overflow: hidden;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-space-3) var(--ds-space-6) var(--ds-space-2);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
}
.phone-island {
  width: calc(var(--ds-space-16) + var(--ds-space-6));
  height: var(--ds-space-6);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-ink);
}
.phone-scroll {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-1) var(--ds-space-4) var(--ds-space-4);
  overflow-y: auto;
  scrollbar-width: none;
  font-size: var(--ds-text-sm);
}
.phone-scroll .ds-alert {
  margin-bottom: var(--ds-space-1);
}
.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4) var(--ds-space-5);
  border-top: 1px solid var(--ds-line);
  background: var(--ds-paper);
}
.phone-total {
  display: grid;
  line-height: var(--ds-leading-snug);
}
.phone-total span {
  font-size: var(--ds-text-xs);
  color: var(--ds-muted);
}
.phone-home {
  position: absolute;
  bottom: var(--ds-space-2);
  left: 50%;
  width: calc(var(--ds-space-16) * 1.8);
  height: var(--ds-space-1);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-ink);
  transform: translateX(-50%);
}
.phone-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ds-radius-control);
  background: var(--ds-soft);
}
.phone-title h3 {
  font-size: var(--ds-text-lg);
}
.phone-title p {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.date-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ds-control-border);
  border-radius: var(--ds-radius-control);
}
.date-pair div {
  padding: var(--ds-space-2) var(--ds-space-3);
  font-size: var(--ds-text-sm);
}
.date-pair div + div {
  border-left: 1px solid var(--ds-control-border);
}
.date-pair span {
  display: block;
  font-size: var(--ds-text-xs);
  color: var(--ds-muted);
}

/* ---- Pricing ---- */
/* Billing period and cabin count in one row, aligned with the edges of the plan cards. */
.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--ds-space-4) var(--ds-space-8);
  max-width: calc(var(--ds-space-16) * 14);
  margin: 0 auto var(--ds-space-6);
}
.pricing-controls .ds-tabs {
  width: auto;
}
.pricing-controls .ds-field[data-layout='row'] {
  width: auto;
  padding: 0;
  border-top: 0;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: var(--ds-space-4);
}
.pricing-controls .ds-tabpanel {
  display: none;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-4);
  max-width: calc(var(--ds-space-16) * 18);
  margin: 0 auto;
}
.plans .ds-plan-card {
  padding: var(--ds-space-6);
}
@media (max-width: 1100px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(var(--ds-space-16) * 9);
  }
  .plans .ds-plan-card[data-highlight] {
    order: -1;
  }
}
.plans .ds-plan-card[data-highlight] {
  border-color: var(--ds-ink);
}
.pricing-more {
  max-width: calc(var(--ds-space-16) * 18);
  margin: var(--ds-space-6) auto 0;
}
.beta-note {
  max-width: calc(var(--ds-space-16) * 14);
  margin: 0 auto var(--ds-space-6);
}

/* ---- FAQ ---- */
.faq {
  max-width: calc(var(--ds-space-16) * 12);
  margin: 0 auto;
}

/* ---- Final CTA ---- */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--ds-space-5);
  margin-block: var(--ds-space-16);
  padding: var(--ds-space-16) var(--ds-space-8) 0;
  border-radius: calc(var(--ds-radius-panel) + var(--ds-space-2));
  background: var(--ds-accent);
  color: var(--ds-paper);
  text-align: center;
  overflow: hidden;
}
.cta h2 {
  font-size: var(--ds-text-3xl);
}
.cta p {
  max-width: calc(var(--ds-space-16) * 9);
  opacity: 0.85;
}
.cta .ds-button[data-variant='secondary'] {
  background: var(--ds-paper);
  color: var(--ds-ink);
  border-color: var(--ds-paper);
}
.cta .art {
  width: 100%;
  height: auto;
  margin-top: var(--ds-space-8);
}
/* The owner's vector runs to the edges of the block: its hills end at the rounded corners, not in the air. */
.cta .art.trace {
  width: calc(100% + var(--ds-space-8) * 2);
  max-width: none;
  margin-inline: calc(var(--ds-space-8) * -1);
}

/* ---- Footer ---- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ds-space-6);
  padding-block: var(--ds-space-8) var(--ds-space-12);
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.foot-brand {
  display: grid;
  gap: var(--ds-space-2);
}
.foot-tagline {
  margin-top: var(--ds-space-2);
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-regular);
  color: var(--ds-ink);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-5);
}

/* ---- Dialog and toast ---- */
.beta-dialog form {
  display: grid;
  gap: var(--ds-space-4);
}
.beta-dialog .ds-modal-footer {
  padding: var(--ds-space-2) 0 0;
}

/* ---- Illustrations: line style (owner choice 01.11.2026). Roles keep the drawings free of colours. ---- */
.art {
  --art-ink: var(--ds-ink);
}
.art :is(.ln, .p, .a, .b, .c, .sun, .ink) {
  stroke: var(--art-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.art :is(.ln, .sun, .gnd) {
  fill: none;
}
.art :is(.p, .a, .b, .c) {
  fill: var(--ds-paper);
}
.art .gnd {
  stroke: none;
}
.art .ink {
  fill: var(--art-ink);
}
/* Two weights: outlines 1.5, fine details (herringbone, logs, grass, text lines, smoke) 0.9. */
.art .fine {
  stroke-width: 0.9;
}
.art text {
  fill: var(--art-ink);
  font-family: var(--ds-font);
  font-size: var(--ds-text-xs);
  text-anchor: middle;
}
.art .art-big {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-3xl);
  text-anchor: start;
}
.art text + text {
  text-anchor: start;
}
/* A label on a solid ink button inside a drawing (the Booking Page in the booking scene). */
.art .art-on-ink {
  fill: var(--ds-paper);
  font-size: calc(var(--ds-text-xs) * 0.72);
  font-weight: var(--ds-weight-semibold);
}
/* The same label on the owner's traced scene, which is drawn in larger units. */
.art .art-on-ink.trace-label {
  font-size: calc(var(--ds-text-xs) * 1.8);
}
.art.on-dark {
  --art-ink: var(--ds-paper);
}
.art.on-dark :is(.p, .a, .b, .c) {
  fill: none;
}

/* ---- Motion (design-system/MOTION.md, landing profile): drawn like a pen line, then still.
   Active only with .motion on the page; durations are DS motion tokens of .ds-motion-landing. ---- */
.motion {
  --motion-step: calc(var(--ds-motion-fast) / 12);
}
/* Outlines draw from start to end; fills and words appear once the line is mostly there. The drawing is an
   animation, not a transition: when it ends the dash is gone, so finished lines are always whole. */
.motion .art:not([data-shown]) :is(.ln, .p, .a, .b, .c, .sun, .ink):not(.art-dash) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.motion .art[data-shown] :is(.ln, .p, .a, .b, .c, .sun, .ink):not(.art-dash) {
  animation: art-draw var(--ds-motion-draw) var(--ds-motion-ease) calc(var(--i, 0) * var(--motion-step)) backwards;
}
@keyframes art-draw {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}
.motion .art :is(.p, .a, .b, .c, .sun, .ink):not(.art-dash) {
  fill-opacity: 0;
  transition: fill-opacity var(--ds-motion-slow) ease calc(var(--ds-motion-draw) * 0.6);
}
.motion .art :is(text, .art-dash) {
  opacity: 0;
  transition: opacity var(--ds-motion-slow) ease calc(var(--ds-motion-draw) * 0.8);
}
.motion .art[data-shown] :is(.p, .a, .b, .c, .sun, .ink) {
  fill-opacity: 1;
}
.motion .art[data-shown] :is(text, .art-dash) {
  opacity: 1;
}
/* Landing only: the one thing that keeps moving is chimney smoke, slow and faint. The product profile
   (Ґазда Хатки) has no loops: the smoke is drawn once and stays. */
.ds-motion-landing.motion .art[data-shown] .smoke {
  transform-box: fill-box;
  animation:
    art-draw var(--ds-motion-draw) var(--ds-motion-ease) calc(var(--i, 0) * var(--motion-step)) backwards,
    smoke calc(var(--ds-motion-normal) * 30) ease-in-out calc(var(--ds-motion-draw) * 1.2) infinite alternate;
}
@keyframes smoke {
  to {
    opacity: 0.35;
    transform: translateY(calc(var(--ds-space-1) * -1));
  }
}
/* Hero: the request flies in after the scene is drawn, then the bubble appears. */
.motion .hero-stage :is(.plane, .bubble) {
  transform-box: fill-box;
  opacity: 0;
}
.motion .hero-stage .plane {
  transform: translate(var(--ds-space-10), calc(var(--ds-space-4) * -1));
  transition:
    opacity var(--ds-motion-slow) ease var(--ds-motion-draw),
    transform calc(var(--ds-motion-draw) * 0.9) var(--ds-motion-ease) var(--ds-motion-draw);
}
.motion .hero-stage .bubble {
  transform: scale(0.92);
  transform-origin: left bottom;
  transition:
    opacity var(--ds-motion-slow) ease calc(var(--ds-motion-draw) * 1.7),
    transform var(--ds-motion-slow) var(--ds-motion-ease) calc(var(--ds-motion-draw) * 1.7);
}
/* The owner's vector is 2210 units wide, so the same flight needs a longer way in its units. */
.motion .hero-stage.trace .plane {
  transform: translate(calc(var(--ds-space-10) * 3), calc(var(--ds-space-4) * -3));
}
.motion .hero-stage[data-shown] :is(.plane, .bubble) {
  opacity: 1;
  transform: none;
}
/* Traced scenes cannot be drawn line by line (their lines are filled shapes): they appear from left to
   right through a soft-edged mask, like ink spreading over paper, not a hard wipe. */
.motion .art.trace {
  opacity: 0;
  mask-image: linear-gradient(90deg, var(--ds-ink) 40%, transparent 60%);
  mask-size: 250% 100%;
  mask-repeat: no-repeat;
  mask-position: 100% 0;
  transition:
    opacity var(--ds-motion-slow) ease,
    mask-position var(--ds-motion-draw) var(--ds-motion-ease);
}
.motion .art.trace[data-shown] {
  opacity: 1;
  mask-position: 0 0;
}
/* Then the circled nights are drawn: a paper band on each oval slides off along it. */
.art .trace-erase {
  display: none;
}
.motion .art .trace-erase {
  display: inline;
  fill: none;
  stroke: var(--ds-paper);
  stroke-width: 16;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.motion .art[data-shown] .trace-erase {
  animation: trace-erase var(--ds-motion-draw) var(--ds-motion-ease) forwards;
  animation-delay: calc(var(--ds-motion-draw) * (0.8 + var(--i) * 0.7));
}
@keyframes trace-erase {
  to {
    stroke-dashoffset: -1;
  }
}
/* Booking Page scene: once it has appeared, the button is pressed and the bell rings, once each. */
.motion .art :is(.trace-press, .trace-bell) {
  transform-box: fill-box;
}
.motion .art .trace-press {
  transform-origin: center;
}
.motion .art .trace-bell {
  transform-origin: 50% 0;
}
.motion .art[data-shown] .trace-press {
  animation: trace-press var(--ds-motion-slow) var(--ds-motion-ease) var(--ds-motion-draw);
}
.motion .art[data-shown] .trace-bell {
  animation: trace-bell calc(var(--ds-motion-draw) * 0.9) var(--ds-motion-ease)
    calc(var(--ds-motion-draw) + var(--ds-motion-slow));
}
/* «Заявки й гості»: the request cards come in one by one, top first, then the bell rings. */
.motion .art .trace-card {
  opacity: 0;
  transform: translateY(var(--ds-motion-shift));
  transition:
    opacity var(--ds-motion-slow) ease,
    transform var(--ds-motion-slow) var(--ds-motion-ease);
}
.motion .art[data-shown] .trace-card {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--ds-motion-draw) * 0.6 + var(--i) * var(--ds-motion-slow));
}
.motion .art[data-shown]:has(.trace-card) .trace-bell {
  animation-delay: calc(var(--ds-motion-draw) * 0.6 + var(--ds-motion-slow) * 3);
}
/* «Знижки» and «Відгуки»: letters and stars come in one by one once the scene has appeared. */
.motion .art .trace-seq {
  opacity: 0;
  transition: opacity var(--ds-motion-fast) ease;
}
.motion .art[data-shown] .trace-seq {
  opacity: 1;
  transition-delay: calc(var(--ds-motion-draw) * 0.7 + var(--i) * var(--ds-motion-fast) * 0.7);
}
/* «Статистика»: a band in the board's colour slides up off the chart, so the bars grow from the axis; the
   arrow follows. Without motion the band is not there. */
.art .trace-cover {
  display: none;
}
.motion .art .trace-cover {
  display: inline;
  fill: var(--ds-canvas);
  transform-box: fill-box;
  transform-origin: top;
}
.motion .art[data-shown] .trace-cover {
  animation: trace-cover var(--ds-motion-draw) var(--ds-motion-ease) calc(var(--ds-motion-draw) * 0.6) forwards;
}
@keyframes trace-cover {
  to {
    transform: scaleY(0);
  }
}
.motion .art .trace-arrow {
  opacity: 0;
  transform: translate(calc(var(--ds-motion-shift) * -1), var(--ds-motion-shift));
  transition:
    opacity var(--ds-motion-slow) ease,
    transform var(--ds-motion-slow) var(--ds-motion-ease);
}
.motion .art[data-shown] .trace-arrow {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--ds-motion-draw) * 1.5);
}
/* «Три кроки»: the detail of the step (share icon, check mark) pops in once its scene has appeared. */
.motion .art .trace-pop {
  opacity: 0;
  transform: scale(0.8);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity var(--ds-motion-slow) ease,
    transform var(--ds-motion-slow) var(--ds-motion-ease);
}
.motion .art[data-shown] .trace-pop {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--ds-motion-draw) * 0.8);
}
@keyframes trace-press {
  50% {
    transform: scale(0.95);
  }
}
@keyframes trace-bell {
  20% {
    transform: rotate(12deg);
  }
  45% {
    transform: rotate(-9deg);
  }
  70% {
    transform: rotate(5deg);
  }
  90% {
    transform: rotate(-2deg);
  }
}
/* Content rises a little, once, as it reaches the screen. */
.motion .reveal {
  opacity: 0;
  transform: translateY(var(--ds-motion-shift));
  transition:
    opacity var(--ds-motion-slow) var(--ds-motion-ease) calc(var(--i, 0) * var(--ds-motion-fast) / 2),
    transform var(--ds-motion-slow) var(--ds-motion-ease) calc(var(--i, 0) * var(--ds-motion-fast) / 2);
}
.motion .reveal[data-shown] {
  opacity: 1;
  transform: none;
}
/* Live demo: a confirmed booking fills its nights from left to right; a changed card settles in. */
.motion .bar[data-fresh] {
  transform-origin: left center;
  animation: bar-fill var(--ds-motion-slow) var(--ds-motion-ease);
}
@keyframes bar-fill {
  from {
    opacity: 0;
    transform: scaleX(0.3);
  }
}
.motion :is(.request, .request-detail, .live .ds-alert) {
  animation: settle var(--ds-motion-slow) var(--ds-motion-ease);
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(var(--ds-space-2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-panel,
  .feature-progress span {
    animation: none;
    transition: none;
  }
  .toast {
    transition: none;
  }
}

/* ---- Tablet and phone (container width, so the 390 px demo frame matches a real phone) ---- */
@container (max-width: 860px) {
  .compare-strip {
    flex-direction: column;
    align-items: stretch;
    padding: var(--ds-space-5);
  }
  .wrap {
    padding-inline: var(--ds-mobile-gutter);
  }
  .section {
    padding-block: var(--ds-space-16);
  }
  .head-nav {
    display: none;
  }
  .head-nav[data-open] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: var(--ds-space-2) var(--ds-mobile-gutter) var(--ds-space-4);
    background: var(--ds-canvas);
    border-bottom: 1px solid var(--ds-line);
  }
  .head-nav[data-open] a {
    padding: var(--ds-space-3);
    font-size: var(--ds-text-md);
    color: var(--ds-ink);
  }
  .head-actions {
    margin-left: auto;
  }
  .head-actions .login {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-stage {
    height: calc(var(--ds-space-16) * 2);
    margin-top: var(--ds-space-8);
  }
  /* The whole picture in its own proportions, nothing cropped (owner's choice for phones). */
  .hero-stage.trace {
    height: auto;
    aspect-ratio: 2210 / 614;
    transform: translateY(var(--ds-space-2));
  }
  .hero {
    padding-top: var(--ds-space-10);
  }
  .hero h1 {
    font-size: var(--ds-text-3xl);
  }
  .lead,
  .section-head p:not(.eyebrow) {
    font-size: var(--ds-text-md);
  }
  h2.display,
  .cta h2 {
    font-size: var(--ds-text-2xl);
  }
  .hero-actions {
    display: grid;
    width: 100%;
  }
  .live {
    margin-inline: calc(var(--ds-space-2) * -1);
    padding: var(--ds-space-2);
  }
  .app-nav {
    display: none;
  }
  .app-body {
    padding: var(--ds-space-4);
  }
  .app-stats {
    gap: var(--ds-space-2);
  }
  .app-stats .ds-stat {
    padding: var(--ds-space-3);
  }
  .request .ds-button {
    width: 100%;
  }
  .pain-grid,
  .steps-grid,
  .help-grid,
  .features,
  .promo,
  .plans,
  .catalog {
    grid-template-columns: 1fr;
  }
  .catalog-arrow {
    justify-self: center;
  }
  .catalog-arrow .ds-icon {
    transform: rotate(90deg);
  }
  .feature-list {
    display: flex;
    gap: var(--ds-space-2);
    overflow-x: auto;
    margin-inline: calc(var(--ds-mobile-gutter) * -1);
    padding: 0 var(--ds-mobile-gutter) var(--ds-space-2);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .feature-tab {
    flex-shrink: 0;
    min-height: var(--ds-touch-target);
    padding-inline: var(--ds-space-4);
    scroll-snap-align: start;
  }
  .feature-tab small {
    display: none;
  }
  .features {
    --features-top: calc(var(--ds-space-16) + var(--ds-space-2));
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--ds-space-3);
    height: calc(100svh - var(--features-top) - var(--ds-space-4));
  }
  .features > .feature-nav {
    align-self: start;
  }
  .feature-nav {
    gap: var(--ds-space-2);
    background: var(--ds-canvas);
  }
  .feature-progress {
    margin-inline: 0;
  }
  .plans .ds-plan-card {
    padding: var(--ds-space-5);
  }
  .pricing-controls {
    justify-content: center;
  }
  .cta {
    margin-inline: calc(var(--ds-space-2) * -1);
    padding: var(--ds-space-12) var(--ds-space-5) 0;
  }
  .cta .art.trace {
    width: calc(100% + var(--ds-space-5) * 2);
    margin-inline: calc(var(--ds-space-5) * -1);
  }
  .cta .ds-button {
    width: 100%;
  }
  .live-bar {
    flex-wrap: wrap;
  }
}
/* Phones: the hero already shows the main action, so the header keeps the logo and the menu only. */
@container (max-width: 480px) {
  /* Phones get the owner's narrower version of the hero picture. */
  .hero-stage.hero-wide {
    display: none;
  }
  .hero-stage.hero-narrow {
    display: block;
    aspect-ratio: 1690 / 614;
  }
  .head-actions .ds-button {
    display: none;
  }
  .head-nav[data-open] .nav-login {
    display: block;
  }
}
.head-nav .nav-login {
  display: none;
}

/* ---- Traced illustrations: fills by class, the page's content policy blocks style attributes ---- */
.tf-art-ink {
  fill: var(--art-ink);
}
.tf-ds-accent {
  fill: var(--ds-accent);
}
.tf-ds-canvas {
  fill: var(--ds-canvas);
}
.tf-ds-line {
  fill: var(--ds-line);
}
.tf-ds-muted {
  fill: var(--ds-muted);
}
.tf-ds-paper {
  fill: var(--ds-paper);
}
