/*
 * simplify.bg: the landing page (the story design with the earlier page's words, owner 2026-10-07/08),
 * its 404 state and the legal pages. Phone first; behaviour in landing.js.
 * Type: the system face. Sofia Sans' first screen needs 66,040 bytes (Cyrillic 25,520 + Latin 40,520,
 * Google's variable files at 400/600/750), over the ~45 KB budget; Apple's face has the Bulgarian forms.
 */

/* 1 · Tokens */
:root {
  color-scheme: light;

  /* Small green text is --green-deep: #008060 is 4.93:1 on white but 4.39:1 on --mint. */
  --green: #008060;
  --green-deep: #006e52;
  --green-deeper: #005a43;
  --mint: #e6f5ef;
  --mint-line: #bfe3d3;

  /* Neutrals, biased toward the green. Ratios are on white. */
  --ink: #13241e;               /* 16.2:1 */
  --muted: #4b5d56;             /* 7.0:1 -- support lines, captions, legal */
  --line: #dde7e2;
  --field-line: #869690;        /* input borders, 3.1:1 (non-text contrast) */
  --soft: #f3f7f5;
  --paper: #ffffff;

  --danger: #b42318;            /* 6.6:1 */
  --danger-soft: #fdf1ef;
  --danger-line: #f1c3bc;

  /* The one dark scene ("night"). */
  --night: #0a3b2c;
  --night-deep: #05231a;
  --night-glow: #0f5a43;
  --on-night-muted: #b7d3c8;    /* 7.9:1 on --night, 5.1:1 even on the glow */
  --on-night-accent: #86e3bb;   /* 8.2:1 */

  /* The finale (the form's scene): deep brand green, white text only (6.3:1). */
  --finale-top: #006e52;
  --finale-bottom: #005a43;

  --focus: var(--ink);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 700;
  --fs-1: clamp(1.875rem, 1.3rem + 2.9vw, 3.75rem);     /* h1 */
  --fs-2: clamp(1.625rem, 1.25rem + 2vw, 2.75rem);      /* scene h2 */
  --fs-3: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);     /* h3, card titles */
  --fs-4: clamp(1.0625rem, 1.02rem + 0.25vw, 1.25rem);  /* support line; 17 px on phones */
  --fs-5: 1rem;                                          /* body, inputs (≥16 px: no iOS zoom), buttons */
  --fs-6: 0.875rem;                                      /* captions, eyebrow, legal: the 14 px floor */

  --gutter: clamp(16px, 4.6vw, 40px);
  --max: 1200px;
  --header-h: 56px;
  --scene-pad: clamp(56px, 7vh + 12px, 96px);
  --scene-gap: 28px;
  --r-control: 10px;
  --r-card: 20px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(10, 40, 30, 0.06), 0 10px 28px rgba(10, 40, 30, 0.08);
  --shadow-device: 0 8px 18px rgba(6, 40, 30, 0.16), 0 30px 60px rgba(6, 40, 30, 0.2);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1024px) {
  :root {
    --header-h: 64px;
    --fs-2: clamp(2rem, 1.2rem + 1.4vw, 2.5rem); /* every story h2 stays on two lines in its column */
    --fs-5: 1.0625rem;
    --fs-6: 0.9375rem;
    --scene-pad: clamp(88px, 11vh, 136px);
    --scene-gap: 48px;
  }
}

/* 2 · Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* A jump to a scene or to the form lands below the sticky header, not under it. */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-5);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto; /* with width/height attributes the box is reserved before the file arrives */
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

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

/* An author display rule must never beat [hidden]. */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: #ffffff;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transform: translateY(-160%);
}

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

@media (max-width: 1023px) {
  .hide-phone {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3 · Type */
h1 {
  font-size: var(--fs-1);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.scene h2 {
  font-size: var(--fs-2);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* The two-colour headline: dark text, one green phrase. */
.hl {
  font-style: normal;
  color: var(--tone-hl, var(--green));
}

/* The scene's one support line. */
.support {
  max-width: 34ch;
  color: var(--tone-muted, var(--muted));
  font-size: var(--fs-4);
  line-height: 1.45;
  text-wrap: pretty;
}

.caption {
  color: var(--tone-muted, var(--muted));
  font-size: var(--fs-6);
  line-height: 1.45;
  text-wrap: pretty;
}

/* With a larger default font (125 % at 320 px) a word can be wider than the column: it breaks rather
   than widening the scene past the screen, where main clips it. At normal sizes nothing breaks. */
.scene h2,
.support {
  overflow-wrap: anywhere;
}

/* Eyebrow: whose part of the story this is. The ring is a stop on the route. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tone-accent, var(--green-deep));
  font-size: var(--fs-6);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  flex: none;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

/* Kept on one line: Chrome breaks „30-те“ after its hyphen and left „30-“ ending a line. */
.nowrap {
  white-space: nowrap;
}

/* 4 · Header: 56 px on phones (brand + „Вход“), 64 px with chapters and the CTA from 1024 px */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.is-scrolled .site-header {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(10, 40, 30, 0.5);
}

/* How far down the page is, as a green line along the header's lower edge (landing.js
   initScrollProgress; owner 2026-10-15). Touch screens only: they show no scrollbar until the page
   moves, where a mouse has the browser's own. It sits inside the header, on its white: hanging below
   it, the line vanished over the dark green of the request form. */
.scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  height: 3px;
  background: var(--green);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (max-width: 1023px) and (pointer: coarse) {
  .scroll-progress {
    display: block;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The hexagon S, as on the dashboard. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 31px;
  flex: none;
  background: var(--green);
  color: #ffffff;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.site-nav {
  display: none;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* „Вход“: a text link with a 44 px hit area, visible from 320 px up. */
.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  border-radius: var(--r-control);
  color: var(--ink);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.header-cta {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .header-login:hover,
  .site-nav a:hover {
    color: var(--green-deep);
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 28px;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--r-control);
    color: var(--muted);
    font-weight: var(--fw-medium);
    text-decoration: none;
  }

  .header-login {
    margin-right: 4px;
  }

  .header-cta {
    display: inline-flex !important;
  }
}

/* 5 · Scenes */
/* .scene (band) > .scene__inner (column) > .scene__copy + .scene__media. Phones: one centred column.
   From 1024 px: 12 columns, copy left; --flip swaps, --stack stays centred. */
.scene {
  position: relative;
  padding-block: var(--scene-pad);
  background: var(--paper);
  color: var(--ink);
}

.scene__inner {
  display: grid;
  justify-items: center;
  gap: var(--scene-gap);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.scene__copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0; /* a long word never widens the column (see overflow-wrap in 3 · Type) */
  max-width: 36rem;
}

.scene__media {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.scene__media > .caption {
  max-width: 34ch;
  text-align: center;
}

.scene--soft {
  --step-bg: var(--soft);
  background: var(--soft);
}

/* Light surfaces inside any scene get the light tones back. */
.lead-card,
.card,
.price-card {
  --focus: var(--ink);
  --tone-muted: var(--muted);
  --tone-accent: var(--green-deep);
  --tone-hl: var(--green);
  --step-ring: var(--green);
  --step-bg: #ffffff;
  --step-ink: var(--green-deep);
  --route: var(--green);
  --tick-bg: var(--mint);
  --tick-ink: var(--green-deep);
  color: var(--ink);
}

/* The one dark scene: the shopper picks the point on the map. It sets tones; light surfaces reset them. */
.scene--night {
  --focus: #ffffff;
  --tone-muted: var(--on-night-muted);
  --tone-accent: var(--on-night-accent);
  --tone-hl: var(--on-night-accent);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--night-glow) 0%, rgba(15, 90, 67, 0) 62%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: #ffffff;
}

/* The finale: the form's scene, deep brand green, white text only. */
.scene--finale {
  --focus: #ffffff;
  --tone-muted: #ffffff;
  --tone-hl: #ffffff;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--finale-top) 0%, var(--finale-bottom) 100%);
  color: #ffffff;
}

.scene--finale .support {
  max-width: 30ch;
}

/* The FAQ: left aligned, compact. */
.scene--after {
  padding-block: clamp(48px, 7vh, 88px);
}

.scene--after .scene__inner,
.scene--after .scene__copy {
  justify-items: start;
  text-align: left;
}

.scene--after .scene__inner {
  max-width: calc(48rem + 2 * var(--gutter));
  gap: 20px;
}

/* Hero. The headline paints at once: nothing in it reveals. */
.scene--hero {
  --scene-gap: 20px;
  padding-top: clamp(14px, 3vh, 28px);
  padding-bottom: 34px; /* „Изпробвайте чекаута на живо“ clear of „Как работи“ (owner 2026-10-08) */
}

/* The hero's lines a little further apart than a scene's (owner 2026-10-07), and further still on
   2026-10-15 (owner: "way too close, especially on phones"): the headline and its line, the button and
   its promises, the couriers and whom the page is for each stay a pair, with more room between pairs. */
.scene--hero .scene__copy {
  gap: 20px;
}

/* The courier logos over „За Shopify магазини в България“, under the button and its three promises
   they belong to (owner 2026-10-08); in the left column from 1024 px. */
.hero-kicker {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 8px;
}

.cta-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.cta-block .btn {
  width: auto;
}

.btn__arrow {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The three promises under the hero's one button, kept there (they answer "what does trying it cost"
   where the button asks): 15 px in the text's own ink and a larger check, easier to read than the
   14 px grey they were (owner 2026-10-15). The check is drawn from --tick, centred on the first line. */
.hero-ticks {
  --tick: 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.hero-ticks li {
  position: relative;
  padding-left: calc(var(--tick) + 7px);
}

.hero-ticks li::before {
  position: absolute;
  top: calc(0.7em - var(--tick) / 2);
  left: 0;
  width: var(--tick);
  height: var(--tick);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--mint-line);
  content: "";
}

.hero-ticks li::after {
  position: absolute;
  top: calc(0.7em - var(--tick) * 0.32);
  left: calc(var(--tick) * 0.35);
  width: calc(var(--tick) * 0.3);
  height: calc(var(--tick) * 0.47);
  border: solid var(--green-deep);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

/* All three on one line in the desktop column (owner 2026-10-08), 20 px under the button they belong
   to. Up to 1199 px the column is 436-520 px wide, so they keep the 14 px size there; from 1200 px
   (521 px and more) the larger one fits. */
@media (min-width: 1024px) {
  .hero-ticks {
    --tick: 14px;
    justify-content: flex-start;
    gap: 6px 14px;
    font-size: 0.875rem;
  }

  /* The copy's gap less 4; the scene outranks the lists' `ul[class]` reset. */
  .scene--hero .hero-ticks {
    margin-top: -4px;
  }
}

@media (min-width: 1200px) {
  .hero-ticks {
    --tick: 17px;
    gap: 6px 18px;
    font-size: 0.9375rem;
  }
}

/* The hero picture runs off the bottom of the first screen into the next scene. */
/* 44 px of it is the shop's header (section 8), so all four couriers still show above the chip. */
.scene--hero .device--crop {
  --crop-h: calc(clamp(250px, 46svh, 420px) + 44px);
}

/* The h1's green half on its own line. */
.scene--hero h1 em {
  display: block;
}

@media (max-width: 1023px) {
  /* Three big lines on a phone, the green one whole (owner's mockup 2026-10-08): „с Вашите куриери“
     is 8.5 em in Helvetica/Arial bold. */
  .scene--hero h1 {
    font-size: min(var(--fs-1), calc((100vw - 2 * var(--gutter)) / 11.5));
  }
}

/* Short phones (320×568, 375×553): a tighter hero. */
@media (max-height: 700px) and (max-width: 1023px) {
  .scene--hero {
    --scene-gap: 10px;
    padding-top: 10px;
  }

  .scene--hero .scene__copy {
    gap: 14px;
  }

  .scene--hero .support {
    font-size: var(--fs-5);
    line-height: 1.4;
  }

  .cta-block {
    gap: 6px;
    margin-top: 6px;
  }

  .hero-kicker {
    margin-top: 8px;
    margin-bottom: 4px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .scene__copy {
    max-width: 40rem;
  }
}

@media (min-width: 1024px) {
  .scene__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: 24px;
    justify-items: stretch;
    text-align: left;
  }

  .scene__copy {
    grid-column: 1 / span 5;
    justify-items: start;
    max-width: 30rem;
    gap: 18px;
  }

  .scene__media {
    grid-column: 7 / span 6;
  }

  .scene--stack .scene__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .scene--stack .scene__copy,
  .scene--stack .scene__media {
    grid-column: 1;
    grid-row: auto;
    justify-items: center;
  }

  .scene--stack .scene__copy {
    max-width: 44rem;
  }

  .scene--after .scene__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene--after .scene__copy,
  .scene--after .scene__media {
    grid-column: 1;
    max-width: none;
  }

  .scene--hero {
    padding-top: clamp(40px, 7vh, 88px);
    padding-bottom: clamp(40px, 6vh, 72px);
  }

  /* No min-height: the kicker's row ends the hero, and „Как работи“ follows it closely (owner 2026-10-08). */

  /* Two columns of their own, 56 : 60 with 40 px between: 560 px of copy and a 600 px checkout from
     1280 px (owner 2026-10-08), the copy and the kicker on the left, the picture beside both. */
  .scene--hero .scene__inner {
    grid-template-columns: minmax(0, 56fr) minmax(0, 60fr);
    column-gap: 40px;
  }

  .scene--hero .scene__copy {
    grid-column: 1;
    grid-row: 1;
    gap: 24px;
    max-width: none;
  }

  /* Two lines, „Повече завършени поръчки“ never broken: 13 em of the copy column (43 px from 1280,
     34 at 1024). It is 12.1 em in Segoe UI; Helvetica's 13.4 runs at most 17 px into the gap. */
  .scene--hero h1 {
    font-size: calc((min(100vw, 1280px) - 120px) * 0.03714);
    white-space: nowrap;
  }

  .scene--hero .scene__media {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .hero-kicker {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
    max-width: 36rem;
    margin-top: 24px;
    margin-bottom: 0;
  }

  .cta-block {
    justify-items: start;
    margin-top: 16px;
  }

  .scene--hero .device--crop {
    --crop-h: min(64vh, 600px);
  }

  .scene--hero .device--phone {
    --device-w: clamp(300px, 24vw, 348px);
  }

  .scene__copy .support {
    max-width: 30rem;
  }
}

/* 6 · Buttons & links */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--green);
  color: #ffffff;
  font-size: var(--fs-5);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn:active {
  background: var(--green-deeper);
  transform: scale(0.985);
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Secondary: outlined, never a second lead CTA. */
.btn--quiet {
  background: #ffffff;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.btn--quiet:active {
  background: var(--mint);
}

.btn[disabled] {
  cursor: default;
  transform: none;
}

.btn.is-sending {
  background: var(--green-deep);
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
}

.btn.is-sending .btn__spinner {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--green-deep);
  }

  .btn--quiet:hover {
    background: var(--mint);
  }
}

.link-button {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-deep);
  font-weight: var(--fw-medium);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* 7 · Device frames */
/* .device > .device__frame > .device__screen > img: frames never stretch a capture. */
.device {
  position: relative;
  display: block;
  width: var(--device-w, 100%);
  max-width: 100%;
  margin-inline: auto;
}

.device__frame {
  position: relative;
  display: block;
}

.device__screen {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f3f4f3;
}

.device__screen img {
  width: 100%;
}

/* Phone: slim near-black rail, rim light, two-layer shadow. */
.device--phone {
  --device-w: min(68vw, 272px);
}

.device--phone .device__frame {
  padding: 7px;
  border-radius: 40px;
  background: #0e1714;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(10, 40, 30, 0.06),
    var(--shadow-device);
}

.device--phone .device__screen {
  border-radius: 33px;
}

/* Browser: the merchant's side (Simplify inside the Shopify admin). */
.device--browser {
  --device-w: 100%;
  max-width: 760px;
}

.device--browser .device__frame {
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(10, 40, 30, 0.1), var(--shadow-device);
}

.device__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #eef3f1;
}

.device__bar i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #c5d1cc;
}

/* Crop: only the top of the capture (--crop-h), faded into the scene. */
.device--crop {
  filter: drop-shadow(0 14px 22px rgba(6, 40, 30, 0.2));
}

.device--crop .device__frame {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 96px)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 96px)), transparent);
}

.device--phone.device--crop .device__frame {
  padding-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.device--crop .device__screen {
  max-height: var(--crop-h, 440px);
}

.device--phone.device--crop .device__screen {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.scene--night .device--phone .device__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .device--phone {
    --device-w: clamp(272px, 22vw, 312px);
  }
}

/* 8 · Demo doors: a still that is one button into the live checkout */
/* Disabled in the markup until landing.js runs: without scripts the still stays a picture. */
.demo-door {
  position: relative;
  display: block;
  width: fit-content; /* the button (and its focus ring) is exactly the picture */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 34px; /* the pill on the picture's foot */
  border: 0;
  border-radius: 28px;
  background: none;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.demo-door:disabled {
  cursor: default;
}

.demo-door .device__frame {
  transition: transform 0.25s var(--ease);
}

/* The phone's status strip. */
.demo-door .device__screen,
.hero-device .device__screen {
  padding-top: 10px;
}

/* The shop's header at the top of the hero's phone: „Вашият бранд“, as the earlier page drew it (owner 2026-10-07). */
.shop-header {
  display: block;
  padding: 12px 0 11px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.demo-door:not(:disabled):active .device__frame {
  transform: scale(0.99);
}

.demo-door:focus-visible {
  outline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .demo-door:not(:disabled):hover .device__frame {
    transform: translateY(-4px);
  }
}

/* The hero's picture: on a wide screen the checkout over the shop in a browser, on a phone the phone.
   A door like the shopper's view, without a pill (owner 2026-10-08): the whole picture opens it. */
.hero-preview {
  width: 100%;
  margin: 0;
}

.hero-door {
  padding-bottom: 0;
}

/* Under the hero's picture, inside its door: what a press does (owner 2026-10-08). */
.door-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--green-deep);
  font-size: var(--fs-6);
  font-weight: var(--fw-bold);
}

.door-hint svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.door-hint circle {
  fill: var(--green);
}

.door-hint path {
  fill: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .hero-door:not(:disabled):hover .door-hint {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.hero-desk .device__screen {
  padding-top: 0;
}

/* 9 · Courier logos: always the four, BOX NOW, Спиди, Еконт, Pigeon Express */
.couriers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.courier {
  display: grid;
  place-items: center;
  height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

/* Each logo links to its courier's page (/couriers/…, owner 2026-10-23); the link fills the tile, so the
   logo sits exactly where it did. */
.courier > a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.courier img {
  width: auto;
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
}

/* 10 · Steps: a route of numbered stops */
.steps {
  display: grid;
  width: 100%;
  max-width: 30rem;
  counter-reset: step;
  text-align: left;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
  padding-bottom: 22px;
  counter-increment: step;
}

.step::before {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border: 2px solid var(--step-ring, var(--green));
  border-radius: 50%;
  background: var(--step-bg, var(--paper));
  color: var(--step-ink, var(--green-deep));
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  content: counter(step);
}

/* The route between stops: a dashed line. */
.step::after {
  position: absolute;
  top: 38px;
  bottom: 4px;
  left: 16px;
  width: 2px;
  background: linear-gradient(var(--route, var(--green)) 55%, transparent 0) 0 0 / 2px 9px repeat-y;
  opacity: 0.55;
  content: "";
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::after {
  display: none;
}

.step--done::before {
  background: var(--step-ring, var(--green));
  color: var(--step-bg, #ffffff);
}

.step__title {
  align-self: center;
  min-height: 34px;
  padding-top: 5px;
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

/* Compact: inside a card. */
.steps--compact .step {
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  padding-bottom: 14px;
}

.steps--compact .step::before {
  width: 28px;
  height: 28px;
  font-size: 0.8125rem;
}

.steps--compact .step::after {
  top: 31px;
  left: 13px;
}

.steps--compact .step__title {
  min-height: 28px;
  padding-top: 3px;
  font-size: var(--fs-5);
}

/* Как работи: a step's one line of detail, under its title. */
.step__text {
  grid-column: 2;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-5);
  line-height: 1.5;
}

.how-steps .step {
  padding-bottom: 26px;
}

.how-steps .step:last-child {
  padding-bottom: 0;
}

/* 11 · The story's scenes */
/* 1 · Hero: phones get a wider phone, so the still's text stays readable and two courier rows still fit
   the first screen from 320×568 to 390×660. */
@media (max-width: 1023px) {
  .scene--hero .hero-device {
    --device-w: min(88vw, 320px);
  }
}

.hero-couriers {
  max-width: 400px;
}

/* Asides: under the picture on phones; in the copy column, under the copy, from 1024 px. */
.scene__aside {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  margin-top: calc(16px - var(--scene-gap));
}

/* Even lines under a scene's picture (owner 2026-10-08); under the orders screen one line from 1024 px
   (4 · Orders). */
.scene__aside .caption {
  max-width: 46ch;
  text-align: center;
  text-wrap: balance;
}

/* 3 · Night: the shopper's view (prototype C's try scene): the map phone in front, on wide screens the
   payment phone behind it, and the door's white pill on its foot. */

/* The door's label (from prototype C, keystone/docs/landing-stories): white on the night, a green play disc, never a lead CTA. */
.door-pill {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px 0 8px;
  border-radius: var(--r-pill);
  background: #ffffff;
  color: var(--night);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  transition: transform 0.2s var(--ease);
}

.door-pill::before {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.door-pill::after {
  position: absolute;
  top: 50%;
  left: 22px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #ffffff;
  content: "";
  transform: translateY(-50%);
}

/* The shopper's view under the hero (prototype C's try scene, keystone/docs/landing-stories; owner
   2026-10-07): the map phone in front, on wide screens the payment phone behind it on the left, the
   white pill on the door's foot; the steps as white discs on the night. */
.try-lead {
  margin: 0;
  color: #ffffff;
  font-weight: var(--fw-medium);
}

.try-steps {
  --step-ring: #ffffff;
  --step-bg: var(--night);
  --step-ink: var(--night);
  --route: #ffffff;
  justify-self: center;
  width: auto;
}

.try-steps .step__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
}

/* On a phone as wide as the column allows, up to 380 px (owner 2026-10-08: 280 px read small on an
   iPhone). The crop is taller than the picture, so the map's OpenStreetMap line stays in view. */
.door-night__map {
  --device-w: min(380px, 100vw - 2 * var(--gutter));
  --crop-h: 520px;
  --fade: 20px;
  z-index: 1;
}

.scene--night .device--crop {
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
}

.door-night:not(:disabled):active .door-pill {
  transform: translateX(-50%) scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .door-night:not(:disabled):hover .door-pill {
    transform: translate(-50%, -3px);
  }
}

@media (min-width: 1024px) {
  .try-steps {
    justify-self: start;
  }

  #customer-view .scene__media {
    grid-column: 6 / span 7;
  }

  .door-night {
    padding-left: 186px;
  }

  .door-night__map {
    --device-w: 320px;
    --crop-h: 420px;
    --fade: 24px;
  }

  .door-night__cod {
    --device-w: 256px;
    --crop-h: 380px;
    --fade: 80px;
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 0;
  }

  .door-night .door-pill {
    left: 346px;
  }
}

/* 4 · Orders: the app's own list in HTML (index.html), in the sizes and colours of
   apps/embedded/src/styles.css: the whole row on wide screens, its middle on phones. A press zooms it
   on wide screens; on a phone it is a still that pinching zooms (landing.js initOrdersZoom). */
.orders-frame {
  max-width: 484px;
}

.orders-frame .device__screen {
  background: #ffffff;
}

.orders-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.orders-zoom:disabled {
  cursor: default;
}

.orders-frame.is-zoomed .orders-zoom {
  cursor: zoom-out;
}

.orders-zoom:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* „Увеличете“ / „Намалете“ at the right end of the browser bar. */
.orders-zoom__hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--green-deep);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
}

.orders-zoom:disabled .orders-zoom__hint,
.orders-zoom__out,
.is-zoomed .orders-zoom__in,
.is-zoomed .orders-zoom__plus {
  display: none;
}

.is-zoomed .orders-zoom__out {
  display: inline;
}

.orders-zoom__hint svg {
  width: 15px;
  height: 15px;
}

.app-orders {
  display: block;
  color: #202223;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
}

.ao-name,
.ao-sub,
.ao-contact,
.ao-price,
.ao-where {
  display: block;
}

.app-orders img,
.app-orders svg {
  display: block;
}

.app-orders svg {
  fill: currentColor;
}

.app-orders svg[fill="none"] {
  fill: none;
}

.ao-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid #e1e3e5;
}

.ao-tab {
  flex: 1;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: #6d7175;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.ao-tab.is-active {
  border-bottom-color: #008060;
  color: #008060;
}

.ao-toolbar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e1e3e5;
}

.ao-all {
  display: inline-flex;
  justify-content: center;
  width: 32px;
  margin-left: 2px;
}

.ao-check {
  width: 16px;
  height: 16px;
  border: 1px solid #767676;
  border-radius: 3px;
  background: #ffffff;
}

.ao-bulk {
  padding: 8px 14px;
  border-radius: 6px;
  background: #c9cccf;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.ao-search,
.ao-date {
  padding: 7px 10px;
  border: 1.5px solid #c9cccf;
  border-radius: 6px;
  font-size: 13px;
}

.ao-search {
  width: 230px; /* the app's 260 px less 30, so the toolbar keeps to one line in 1100 px */
  overflow: hidden;
  color: #757575;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ao-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ao-date svg {
  width: 15px;
  height: 15px;
}

.ao-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.ao-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 4px 8px;
  border: 1.5px solid #d2d5d8;
  border-radius: 6px;
  color: #6d7175;
  font-size: 12px;
  font-weight: 600;
}

.ao-filter img {
  width: auto;
  max-width: 56px;
  max-height: 20px;
  object-fit: contain;
}

.ao-filter svg {
  width: 20px;
  height: 20px;
  color: #000000;
}

.ao-filter.is-active {
  border-color: #008060;
  box-shadow: 0 0 0 2px rgba(0, 128, 96, 0.18);
  color: #008060;
}

.ao-meta {
  color: #6d7175;
  font-size: 13px;
}

.ao-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #e1e3e5;
}

.ao-row:first-child {
  border-top: 0;
}

.ao-sel,
.ao-meta1,
.ao-actions {
  display: none;
}

.ao-meta1,
.ao-meta2 {
  min-width: 0;
}

.ao-name {
  font-size: 16px;
  font-weight: 700;
}

.ao-sub {
  margin-top: 3px;
  color: #6d7175;
  font-size: 13px;
}

.ao-contact {
  margin-top: 2px;
  color: #8a8f98;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.ao-price {
  font-weight: 600;
}

.ao-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ao-badge {
  padding: 2px 8px;
  white-space: nowrap;
  border-radius: 20px;
  background: #f1f2f3;
  color: #6d7175;
  font-size: 11px;
  font-weight: 600;
}

.ao-badge--pending {
  background: #fff5e6;
  color: #b45309;
}

.ao-badge--sent {
  background: #e3f7ed;
  color: #008060;
}

/* The parcel number in its courier's colour (App.tsx courierButtonColor: 55 and 14 alpha). */
.ao-parcel {
  border: 1px solid;
}

.ao-parcel--pigeon {
  border-color: rgba(109, 113, 117, 0.333);
  background: rgba(109, 113, 117, 0.08);
  color: #6d7175;
}

.ao-parcel--econt {
  border-color: rgba(26, 62, 140, 0.333);
  background: rgba(26, 62, 140, 0.08);
  color: #1a3e8c;
}

.ao-parcel--speedy {
  border-color: rgba(219, 59, 59, 0.333);
  background: rgba(219, 59, 59, 0.08);
  color: #db3b3b;
}

.ao-parcel--boxnow {
  border-color: rgba(22, 191, 97, 0.333);
  background: rgba(22, 191, 97, 0.08);
  color: #16bf61;
}

.ao-where {
  margin-top: 4px;
  color: #6d7175;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.ao-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ao-courier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  max-width: 84px;
  height: 40px;
  padding: 5px 8px;
  border: 1px solid #e1e3e5;
  border-radius: 6px;
  background: #ffffff;
}

.ao-courier img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.ao-courier svg {
  width: 22px;
  height: 22px;
}

.ao-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.ao-btn {
  padding: 6px 10px;
  border: 1px solid #c9cccf;
  border-radius: 5px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.ao-btn--primary {
  border-color: #008060;
  background: #008060;
  color: #ffffff;
}

.ao-btn--danger {
  border-color: #f4c4bd;
  color: #d72c0d;
}

.ao-btn--icon {
  display: inline-flex;
  padding: 6px 8px;
  color: #6d7175;
}

.ao-btn--icon svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 1024px) {
  .orders-frame {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    transform-origin: 50% 0;
    transition: transform 0.3s var(--ease);
  }

  /* Wide screens zoom the whole window instead: landing.js sets --orders-zoom to what fits. */
  .orders-frame.is-zoomed {
    z-index: 5;
    transform: scale(var(--orders-zoom, 1.2));
  }

  .ao-toolbar {
    display: flex;
  }

  .ao-row {
    grid-template-columns: 32px minmax(0, 1.1fr) minmax(0, 2.1fr) 88px 272px;
    gap: 12px;
    padding: 10px 20px;
  }

  .ao-sel {
    display: flex;
    justify-content: center;
  }

  .ao-meta1 {
    display: block;
  }

  .ao-meta2 {
    padding-inline: 12px;
  }

  .ao-actions {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orders-frame {
    transition: none;
  }
}

/* The support line runs the copy column's full width, three even rows instead of five in 30 rem, and
   the caption is one line, a little further below the screen (owner 2026-10-22). */
@media (min-width: 1024px) {
  #orders .scene__copy .support {
    max-width: none;
    text-wrap: balance;
  }

  #orders .scene__aside {
    margin-top: calc(28px - var(--scene-gap));
  }

  #orders .scene__aside .caption {
    max-width: none;
  }
}

/* 5 · Labels: the dialog's title cropped off; on phones a callout shows the „Генерирай“ the crop misses. */

@media (min-width: 1024px) {

  #labels .scene__aside {
    margin-top: calc(20px - var(--scene-gap));
  }
}

/* 6–7 · Setup and price. */
.next-card {
  max-width: 30rem;
}

.next-card .steps {
  max-width: none;
}

.scene--stack .price-card {
  margin-inline: auto;
}

/* Phones: a story scene always ends at least a pill (52 px) + 24 px above the screen's foot. */
@media (max-width: 1023px) {
  main > .scene:not(.scene--hero):not(.scene--form):not(.scene--after) {
    padding-bottom: max(var(--scene-pad), 76px);
  }
}

/* 6 · What Simplify does: six cards three across -- an icon, a title and a line each -- in the earlier
   page's own sizes (owner 2026-10-07); on a phone landing.js turns them into rows to open. */
#what.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 44px;
  /* The soft band across the whole width, though the cards keep to 1180 px: between the form's green
     and the white demo shop (owner 2026-10-08). */
  background: var(--soft);
  box-shadow: 0 0 0 100vmax var(--soft);
  clip-path: inset(0 -100vmax);
}

#what.section-centered {
  text-align: center;
}

#what h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

#what .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin-top: 28px;
  text-align: left;
}

#what .feature-card {
  min-width: 0;
}

#what .feature-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  color: var(--green);
  background: var(--mint);
  border-radius: 8px;
}

#what .feature-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#what .feature-card h3 {
  margin: 0 0 13px;
  font-size: 18px;
}

#what .feature-card p {
  margin: 0;
  color: #4f5367;
  font-size: 15px;
  line-height: 1.5;
}

/* The rows a phone gets: the icon and the name on one line, the text under it once asked for. */
#what .feature-body[hidden] {
  display: none;
}

#what .feature-grid.is-collapsible {
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

#what .is-collapsible .feature-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

#what .is-collapsible .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

#what .is-collapsible .feature-icon svg {
  width: 22px;
  height: 22px;
}

#what .is-collapsible .feature-card h3 {
  margin-bottom: 0;
  font-size: 16px;
}

#what .feature-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

#what .feature-toggle::after {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 6px 4px 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

#what .is-open .feature-toggle::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

#what .feature-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

#what .is-collapsible .feature-body {
  grid-column: 1 / -1;
  padding: 4px 0 8px;
}

@media (max-width: 880px) {
  #what .feature-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  #what.section {
    padding-right: 20px;
    padding-left: 20px;
  }

  #what h2 {
    font-size: 28px;
  }
}

/* 12 · Price card: a shipping-label ticket */
.price-card {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 1px 1px rgba(10, 40, 30, 0.08)) drop-shadow(0 14px 26px rgba(10, 40, 30, 0.12));
  text-align: left;
}

.price-card__ticket {
  --stub-h: 58px;
  display: grid;
  border-radius: var(--r-card);
  background: #ffffff;
  /* Two notches at the perforation, like a tear-off label. */
  -webkit-mask:
    radial-gradient(circle 11px at 0 var(--stub-h), transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% var(--stub-h), transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 var(--stub-h), transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% var(--stub-h), transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}

.price-card__stub {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--stub-h);
  padding: 0 24px;
  border-bottom: 2px dashed var(--mint-line);
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--mint);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
}

.price-card__stub .icon {
  color: var(--green-deep);
}

.price-card__body {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  line-height: 1;
}

.price-card__amount {
  font-size: clamp(3rem, 2.6rem + 2vw, 3.75rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
}

.price-card__per {
  color: var(--muted);
  font-size: var(--fs-3);
  font-weight: var(--fw-medium);
}

@media (max-width: 379px) {
  .price-card__stub {
    gap: 8px;
    padding-inline: 18px;
    font-size: var(--fs-5);
  }
}

/* The card's small print. */
.price-card__note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-6);
  line-height: 1.5;
}

/* 13 · Lead form: the finale's card */
.lead-card {
  width: 100%;
  max-width: 440px;
  padding: clamp(20px, 5.5vw, 32px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 30, 22, 0.1), 0 30px 60px -24px rgba(0, 30, 22, 0.55);
  text-align: left;
}

.lead-form {
  display: grid;
  gap: 16px;
}

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

.field__label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.field__hint {
  color: var(--muted);
  font-weight: var(--fw-regular);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-control);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.0625rem; /* ≥16 px: iOS does not zoom on focus */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  scroll-margin-top: calc(var(--header-h) + 72px);
  scroll-margin-bottom: 96px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input:focus,
.field__input:focus-visible {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 1px var(--green), 0 0 0 5px rgba(0, 128, 96, 0.2);
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 1px var(--danger), 0 0 0 5px rgba(180, 35, 24, 0.16);
}

.field__input[readonly] {
  background: var(--soft);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

.field__error::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  content: "!";
}

/* Failure: values kept, a retry, and a prefilled mailto. */
.form-alert {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--danger-line);
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form-alert strong {
  color: var(--danger);
  font-weight: var(--fw-bold);
}

.form-alert a {
  color: var(--ink);
  font-weight: var(--fw-medium);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* An alternative below the original form, in the same order on every screen.
   It stays available after a send and while the number is corrected (owner 2026-10-22). */
.scene--form .scene__media {
  gap: 0;
}

.lead-alt {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-top: 14px;
}

.lead-alt__signup {
  display: grid;
  gap: 8px;
}

.lead-alt__note {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.lead-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.lead-divider::before,
.lead-divider::after {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  content: "";
}

/* The mail line beside the form (with the heading, so the form's column stays short): worded as the
   other way for whoever prefers it and quieter than the section's text, so it never competes with
   the form (owner 2026-10-07). On phones the columns stack and it stood between the text and the
   form, so there it moves under the form, after the self-serve line (.lead-mail-below; owner
   2026-10-11). */
.lead-mail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: left;
}

.lead-mail__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.lead-mail__icon .icon {
  width: 19px;
  height: 19px;
}

.lead-mail a {
  color: #ffffff;
  font-weight: var(--fw-bold);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.lead-mail-below {
  margin-top: 32px;
  font-size: 0.9375rem;
}

/* Wrapped under its sentence on a phone, the address sits right below it: the 44 px tap height runs downward. */
.lead-mail-below a {
  display: inline-flex;
  align-items: flex-start;
  min-height: 44px;
  color: #ffffff;
  font-weight: var(--fw-bold);
  text-underline-offset: 4px;
  white-space: nowrap;
}

@media (max-width: 1023.98px) {
  .scene--form {
    --scene-gap: 16px;
    padding-block: 20px;
  }

  .lead-card {
    padding: 18px;
  }

  .lead-form {
    gap: 12px;
  }

  .scene--form .field__input,
  .scene--form .btn {
    min-height: 48px;
  }

  .lead-mail {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lead-mail-below {
    display: none;
  }
}

/* Success replaces the callback form in place. */
.lead-success {
  display: grid;
  align-content: start;
  gap: 14px;
}

.lead-success__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
}

.lead-success__badge .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

.lead-success__title {
  font-size: var(--fs-3);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.lead-success__echo {
  font-weight: var(--fw-bold);
  overflow-wrap: anywhere;
}

/* Without scripts the form cannot send: a mail line stands in for it (index.html's noscript). */
.lead-noscript {
  display: grid;
  gap: 14px;
}

@media (min-width: 1024px) {
  .scene--form .scene__inner {
    row-gap: 14px;
  }

  .scene--form .scene__media {
    display: contents;
  }

  .scene--form .scene__copy {
    grid-row: 1;
    align-self: center;
  }

  .scene--form .lead-card,
  .scene--form .lead-alt {
    grid-column: 7 / span 6;
    justify-self: center;
  }

  .scene--form .lead-card {
    grid-row: 1;
  }

  .scene--form .lead-alt {
    grid-row: 2;
    margin-top: 0;
  }
}

/* 14 · The pill: bottom centre on phones, gone from 1024 px (the header carries the CTA) */
/* landing.js shows it once the hero CTA has left the screen (rules there); visibility: hidden keeps it
   out of the tab order and the accessibility tree too. */
.cta-pill {
  position: fixed;
  z-index: 40;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: calc(100% - 32px);
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 26px -8px rgba(0, 60, 45, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.cta-pill.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.cta-pill:active {
  background: var(--green-deeper);
}

@media (min-width: 1024px) {
  .cta-pill {
    display: none;
  }
}

/* 15 · Rows that open: the FAQ */
/* The whole summary row is the tap target; feature rows add .row__icon inside the summary. */
.rows {
  width: 100%;
  border-top: 1px solid var(--line);
  text-align: left;
}

.row {
  border-bottom: 1px solid var(--line);
}

.row > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 2px;
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.row > summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a cross. */
.row > summary::after {
  width: 32px;
  height: 32px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background:
    linear-gradient(var(--green-deep), var(--green-deep)) center / 13px 2px no-repeat,
    linear-gradient(var(--green-deep), var(--green-deep)) center / 2px 13px no-repeat,
    var(--soft);
  content: "";
  transition: transform 0.2s var(--ease);
}

.row[open] > summary::after {
  transform: rotate(45deg);
}

.row > summary:focus-visible {
  border-radius: 10px;
  outline-offset: -3px;
}

.row__body {
  display: grid;
  gap: 10px;
  padding: 0 46px 20px 2px;
  color: var(--muted);
}

.row__body a {
  color: var(--green-deep);
  font-weight: var(--fw-medium);
  text-underline-offset: 3px;
}

.scene--soft .row > summary::after {
  background-color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .row > summary:hover {
    color: var(--green-deep);
  }
}

/* 16 · Card, ticks, fine print */
.card {
  width: 100%;
  max-width: 30rem;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  text-align: left;
}

.card__title {
  margin-bottom: 12px;
  font-size: var(--fs-5);
  font-weight: var(--fw-bold);
}

/* Ticks: a green circle with a check. */
.ticks {
  display: grid;
  gap: 10px;
  text-align: left;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}

.ticks li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tick-bg, var(--mint));
  content: "";
}

.ticks li::after {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 6px;
  height: 11px;
  border: solid var(--tick-ink, var(--green-deep));
  border-width: 0 2.25px 2.25px 0;
  content: "";
  transform: rotate(45deg);
}

/* The demo shop: the store to order from as a shopper, its password and the way in. After .card, whose
   width and padding it narrows: one store, one password, one button. */
.demo-shop-card {
  display: grid;
  gap: 6px;
  max-width: 25rem;
  padding: 26px;
}

.demo-shop-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--green);
}

.demo-shop-ic .icon {
  width: 22px;
  height: 22px;
}

.demo-shop-label {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-shop-host {
  color: var(--ink);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.demo-shop-password {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 10px 10px 10px 14px;
  border: 1px dashed var(--mint-line);
  border-radius: 10px;
  background: var(--soft);
}

.demo-shop-password-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

/* Never broken mid-word: a password split across lines gets typed with the break in it. */
.demo-shop-password-value {
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.demo-shop-copy {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-deep);
  font: inherit;
  font-size: 13px;
  font-weight: var(--fw-bold);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .demo-shop-copy:hover {
    background: var(--green);
    color: #ffffff;
  }
}

.demo-shop-enter {
  margin: 0;
}

.demo-shop-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

@media (max-width: 640px) {
  .demo-shop-card {
    padding: 22px;
  }

  .demo-shop-host {
    font-size: 15px;
  }
}

/* Labels: the four couriers, and what to know about sending with each. */
.labels-card {
  display: grid;
  gap: 18px;
}

.labels-card .couriers {
  max-width: none;
}

.labels-card .ticks {
  font-size: var(--fs-5);
}

/* 17 · Footer: the brand, two links and the copyright line -- centred on phones; from 1024 px the brand
   and the links on one row, the copyright line under the brand */
.site-footer {
  padding: 36px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: var(--fs-6);
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.site-footer .brand {
  font-size: 1.0625rem;
}

.site-footer .brand-mark {
  width: 24px;
  height: 27px;
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 22px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline: -8px;
  padding-inline: 8px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(19, 36, 30, 0.3);
  text-underline-offset: 4px;
}

/* „© 2026 simplify.bg. Всички права запазени.“ (owner 2026-10-20): the quietest line in the footer. */
.site-footer__legal {
  margin: 0;
  font-size: 0.8125rem;
}

/* The page being read (the legal pages mark their own link): green and bold, a solid line under it. */
.footer-links a[aria-current="page"] {
  color: var(--green-deep);
  font-weight: var(--fw-bold);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* Phones: room under the links for the pill (fixed, inside the footer) and the ↑ that waits above
   it, so neither sits on „Бисквитки“ at the page's end. */
@media (max-width: 1023px) {
  .site-footer:has(.cta-pill) {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    justify-items: stretch;
    align-items: center;
    gap: 6px 28px;
    text-align: left;
  }

  .site-footer .brand {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-end;
  }

  /* The links end clear of the ↑ in the corner (46 px, 24 px in from the edge). */
  body:has(> .back-to-top) .site-footer__inner {
    padding-right: max(var(--gutter), 98px);
  }
}

/* The ↑ back to the top, as the app's orders list has it (owner 2026-10-07): green, in the corner,
   once „Чекаутът през очите на клиента“ (desktop, owner 2026-10-17) or the request form (phones,
   2026-10-15) has gone by (landing.js initToTop). */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  transition: background-color 0.15s ease, bottom 0.25s ease;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.back-to-top[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    background: var(--green-deep);
  }
}

/* Phones: while the pill takes the bottom of the screen, the ↑ waits above it. */
@media (max-width: 1023px) {
  body:has(.cta-pill.is-shown) .back-to-top {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
/* 18 · The live checkout's dialog (checkout-popup-demo.js, loaded on the first opening) */
/* Full screen, so the checkout's scrolling is the only scrolling (in the page it held the wheel and a
   phone's swipe). Below 881 px the demo script lays it out at full length (data-demo-layout="flow")
   and this body scrolls; wider, it sits in its framed box. */
.demo-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #e9efec;
  color: var(--ink);
  text-align: left;
}

.demo-dialog-bar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  /* Its ends over the ends of the checkout below, which is centred at 1280 px. */
  padding: 10px max(var(--gutter), calc((100% - 1232px) / 2)) 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.demo-dialog-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.demo-dialog-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.demo-dialog-note {
  color: var(--muted);
  font-size: var(--fs-6);
  line-height: 1.4;
}

.demo-dialog-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .demo-dialog-close:hover {
    border-color: var(--green);
    color: var(--green-deep);
  }
}

/* What to try, in the order the checkout asks for it: the body's first row, so on a phone it scrolls
   away with the checkout and the fixed bar above keeps only the title, the note and ×. */

.checkout-demo-live {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1fa971;
  box-shadow: 0 0 0 4px rgba(31, 169, 113, 0.18);
}

.demo-dialog-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1280px;
  min-height: 0;
  margin: 0 auto;
  padding: 14px 24px 24px;
}

.checkout-window {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* One box for every state: loading, the checkout over a picture of the demo shop, or a retry. */
.checkout-demo-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #eef0f4 url("/public/landingPage/demo/storefront.jpg") center top / cover no-repeat;
}

.checkout-demo-loading,
.checkout-demo-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.checkout-demo-loading {
  background: rgba(246, 247, 249, 0.72);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  transition: opacity 0.26s ease, visibility 0.26s;
}

.checkout-demo[data-demo-state="live"] .checkout-demo-loading,
.checkout-demo[data-demo-state="submitted"] .checkout-demo-loading,
.checkout-demo[data-demo-state="static"] .checkout-demo-loading {
  visibility: hidden;
  opacity: 0;
}

.checkout-demo-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(0, 128, 96, 0.18);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.checkout-demo-unavailable {
  display: none;
  background: #f6f7f9;
}

.checkout-demo-unavailable strong {
  font-size: 1.1875rem;
}

.checkout-demo-unavailable p {
  max-width: 420px;
  margin-bottom: 6px;
  color: var(--muted);
}

.checkout-demo[data-demo-state="static"] .checkout-demo-unavailable {
  display: grid;
}

.checkout-demo-mount {
  position: absolute;
  inset: 0;
  /* Contains the checkout's own storefront z-index, so the page's overlay and header stay above it. */
  z-index: 1;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.checkout-demo-mount > * {
  height: 100%;
}

.checkout-demo[data-demo-state="live"] .checkout-demo-mount,
.checkout-demo[data-demo-state="submitted"] .checkout-demo-mount {
  opacity: 1;
  pointer-events: auto;
}

/* Flow layout: the stage is as tall as the checkout and the body scrolls (a box scrolling inside
   another held a phone's swipe, owner report 2026-09-26). */
.checkout-demo[data-demo-layout="flow"] .demo-dialog-body {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.checkout-demo[data-demo-layout="flow"] .checkout-demo-themes,
.checkout-demo[data-demo-layout="flow"] .checkout-window {
  margin-top: 12px;
}

.checkout-demo[data-demo-layout="flow"] .checkout-window {
  display: block;
}

.checkout-demo[data-demo-layout="flow"] .checkout-demo-stage {
  min-height: 60vh;
}

.checkout-demo[data-demo-layout="flow"][data-demo-state="live"] .checkout-demo-stage,
.checkout-demo[data-demo-layout="flow"][data-demo-state="submitted"] .checkout-demo-stage {
  height: auto;
  overflow: visible;
  background: none;
}

.checkout-demo[data-demo-layout="flow"][data-demo-state="live"] .checkout-demo-mount,
.checkout-demo[data-demo-layout="flow"][data-demo-state="submitted"] .checkout-demo-mount {
  position: relative;
  inset: auto;
}

/* The checkout ends with „Купи“, which is where the visitor is when the card answers it. */
.checkout-demo[data-demo-layout="flow"] .checkout-demo-done {
  place-items: end center;
}

/* The order the demo does not send: said plainly, then the way to the form (the hand-off from prototype C, keystone/docs/landing-stories). */
.checkout-demo-done {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(19, 36, 30, 0.5);
}

.checkout-demo-done-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 26px 22px 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 60px -20px rgba(0, 30, 22, 0.55);
  text-align: center;
}

.checkout-demo-done-title {
  font-size: var(--fs-3);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.checkout-demo-done-card > p {
  margin-bottom: 4px;
  color: var(--muted);
}

.checkout-demo-store {
  display: grid;
  justify-items: center;
}

.checkout-demo-store .link-button {
  justify-self: center;
  font-size: 0.9375rem;
  text-align: center;
}

/* The colour row the demo script fills: the app's own theme choices, applied as they are pressed. */
.checkout-demo-themes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(20, 22, 28, 0.06);
}

.checkout-demo-themes-label {
  color: var(--ink);
  font-size: var(--fs-6);
  font-weight: var(--fw-bold);
}

.checkout-demo-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.checkout-demo-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--swatch-fill) 50%, var(--swatch-tint) 50%);
  box-shadow: 0 0 0 1px rgba(20, 22, 28, 0.18);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.checkout-demo-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink);
}

.checkout-demo-modes {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #f4f5f7;
}

.checkout-demo-mode {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.checkout-demo-mode[aria-pressed="true"] {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 22, 28, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .checkout-demo-swatch:hover {
    transform: scale(1.08);
  }
}

@media (min-width: 1024px) {
  .demo-dialog-body {
    padding-top: 20px;
  }
}

/* 19 · The 404 state and the legal pages */
/* not-found.js marks an unmatched path before the first paint (no story) and puts the 404 card in from
   its template: then it shows under the header. */
.not-found-page {
  display: none;
}

[data-not-found] main,
[data-not-found] .site-footer,
[data-not-found] .site-nav,
[data-not-found] .header-cta,
[data-not-found] .skip-link,
[data-not-found] .cta-pill,
[data-not-found] .back-to-top,
[data-not-found] .scroll-progress {
  display: none !important;
}

[data-not-found] .not-found-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 24px var(--gutter);
  background: var(--soft);
}

.not-found-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(520px, 100%);
  padding: 40px 28px;
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  text-align: center;
}

.not-found-code {
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--green-deep);
  font-size: var(--fs-6);
  font-weight: var(--fw-bold);
}

.not-found-card h1 {
  font-size: var(--fs-3);
  letter-spacing: -0.01em;
}

.not-found-card p {
  color: var(--muted);
}

/* Legal pages: footer at the bottom of a short page. */
body:has(> .legal-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body:has(> .legal-page) > .legal-page {
  flex: 1 0 auto;
  width: 100%;
}

body:has(> .legal-page) .site-header {
  border-bottom-color: var(--line);
}

/* The title on the soft band, each list a white card, the contact line as the form's mail line (owner
   2026-10-07, "a bit less plain"). Still a definition list: every entry is a short label and one
   sentence, which is the shape `dl` is for (owner direction 2026-09-11 -- shorter, not headings). */
.legal-page {
  padding: 0 0 72px;
}

.legal-wrap {
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.legal-hero {
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.legal-hero .eyebrow {
  margin: 0 0 12px;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: var(--fs-2);
  letter-spacing: -0.02em;
}

.legal-page h2 {
  margin: 48px 0 8px;
  font-size: var(--fs-3);
  font-weight: var(--fw-bold);
  line-height: 1.25;
}

.legal-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-5);
  line-height: 1.6;
}

.legal-body {
  padding-top: 36px;
}

.legal-page section > .legal-lead {
  margin-bottom: 18px;
}

.legal-list {
  display: grid;
  margin: 0;
  padding: 4px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.legal-list dt {
  padding-top: 16px;
  color: var(--ink);
  font-weight: var(--fw-bold);
}

.legal-list dd {
  margin: 4px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
}

.legal-list dd:last-of-type {
  border-bottom: 0;
}

/* Wider: label and answer side by side. No column gap -- the label's own right padding spaces the
   columns, so each row's line runs through both. */
@media (min-width: 640px) {
  .legal-list {
    grid-template-columns: 218px minmax(0, 1fr);
    padding: 6px 30px;
  }

  .legal-list dt,
  .legal-list dd {
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .legal-list dt {
    padding-right: 28px;
  }

  .legal-list dt:first-of-type,
  .legal-list dd:first-of-type {
    border-top: 0;
  }
}

.legal-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.legal-contact__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
}

.legal-contact__icon .icon {
  width: 20px;
  height: 20px;
}

.legal-page .legal-contact a {
  color: var(--ink);
  font-weight: var(--fw-bold);
}

/* Ink, not green, like the rest of the page's text. */
.legal-page a {
  color: inherit;
  font-weight: var(--fw-medium);
  text-underline-offset: 3px;
}

/* 20 · Reveal & motion */
/* html.js-reveal only with motion allowed; what is on screen at load is marked revealed first. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal [data-reveal] {
    transition: opacity 0.6s ease-out, transform 0.6s var(--ease);
  }

  html.js-reveal [data-reveal]:not(.is-revealed) {
    opacity: 0;
    transform: translateY(16px);
  }

  html.js-reveal [data-reveal="2"] {
    transition-delay: 0.09s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .cta-pill,
  .cta-pill.is-shown {
    transform: translate(-50%, 0);
  }

  /* A spinner still has to say "working": slowed, not stopped. */
  .btn.is-sending .btn__spinner,
  .checkout-demo-spinner {
    animation-duration: 2.4s !important;
    animation-iteration-count: infinite !important;
  }
}
