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

:root {
  --ink: #211f33;
  --ink-soft: #bdb9cf;
  --paper: #f5f4f9;
  --white: #ffffff;
  --brand: #6b57c0;
  --brand-hover: #5a47ad;
  --coral: #fe5c6b;
  --line: #dcd9e6;
  --muted: #5c5873;
  --street: #ecebf3;
  --planned: #a29eb6;
  --receipt-ink: #2a2740;
  --short: #b42318;
  --short-bg: #fdeceb;
  --font-display: 'Unbounded', 'Arial', sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-receipt: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 24px;
  --shadow: 0 28px 56px -32px rgba(33, 31, 51, 0.55);
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}

p,
li,
summary {
  text-wrap: pretty;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 244, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1.3rem/1 var(--font-display);
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
}

.nav-toggle {
  display: none;
}

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 34em;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.figures strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font: 600 clamp(1.35rem, 1.1rem + 1vw, 1.75rem)/1.1 var(--font-display);
}

.route-map {
  position: relative;
}

.map-canvas {
  position: relative;
}

.route-svg {
  width: 100%;
  height: auto;
}

.map-bg {
  fill: var(--white);
  stroke: var(--line);
}

.streets path {
  fill: none;
  stroke: var(--street);
  stroke-width: 18;
  stroke-linecap: round;
}

.streets-minor path {
  stroke-width: 8;
}

.route-casing,
.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-casing {
  stroke: var(--ink);
  stroke-width: 14;
}

.route-line {
  stroke: url(#route-gradient);
  stroke-width: 7;
}

.route-planned {
  fill: none;
  stroke: var(--planned);
  stroke-width: 4;
  stroke-dasharray: 1 11;
  stroke-linecap: round;
}

.stop {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 4;
}

.stop-base {
  fill: var(--ink);
}

.stop-planned {
  stroke: var(--planned);
  stroke-width: 3;
}

.route-draw {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  animation: route-draw 2.4s cubic-bezier(0.45, 0.05, 0.35, 1) 0.3s forwards;
}

.reveal {
  opacity: 0;
  animation: reveal 0.35s ease-out var(--d, 0s) forwards;
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

.pin {
  position: absolute;
  left: calc(var(--x) / 560 * 100%);
  top: calc(var(--y) / 460 * 100%);
  padding: 7px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px -12px rgba(33, 31, 51, 0.5);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
}

.pin b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.pin-right {
  transform: translate(18px, -50%);
}

.pin-left {
  transform: translate(calc(-100% - 18px), -50%);
}

.pin-below {
  transform: translate(-50%, 20px);
}

.pin-base {
  color: var(--ink);
  font-weight: 600;
}

.pin-planned {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.route-card {
  position: absolute;
  left: 3.5%;
  top: 4.5%;
  width: min(44%, 232px);
  padding: 14px 16px;
  background: var(--ink);
  border-radius: 14px;
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.4;
}

.route-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.route-card-sub {
  margin-top: 2px;
  color: var(--ink-soft);
}

.progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.progress i {
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.progress .on {
  background: var(--coral);
}

.route-card dl {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.route-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.route-card dt {
  color: var(--ink-soft);
}

.route-card dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.section {
  padding: 96px 0;
}

.section-pains {
  border-top: 1px solid var(--line);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark :focus-visible {
  outline-color: var(--coral);
}

.section-lead {
  max-width: 40em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.section-dark .section-lead {
  color: var(--ink-soft);
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 40px;
}

.pains li {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}

.pain-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-icon .ic-fill {
  fill: var(--paper);
}

.pain-icon .ic-accent {
  fill: var(--coral);
}

.pain-icon .ic-dot {
  fill: var(--ink);
  stroke: none;
}

.pain-icon .ic-track {
  stroke-dasharray: 0.1 4;
  stroke-width: 2.4;
}

.pain-icon .ic-faint {
  stroke: var(--line);
  stroke-dasharray: 2 3;
}

.steps {
  margin-top: 64px;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 0 0 80px 76px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  width: 46px;
  height: 46px;
  background: var(--brand);
  border-radius: 50%;
  color: var(--white);
  font: 600 1.125rem/46px var(--font-display);
  text-align: center;
}

.step::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 12px;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 14px, transparent 14px 26px);
}

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

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

.step-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.step-copy h3 {
  font-size: 1.375rem;
}

.step-copy p {
  max-width: 32em;
  margin-top: 12px;
  color: var(--muted);
}

.step-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: 290px;
  padding: 10px;
  background: var(--ink);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  padding-bottom: 18px;
  background: var(--paper);
  border-radius: 29px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.app-bar {
  padding: 24px 16px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.app-bar b {
  display: block;
  font-size: 1rem;
}

.app-bar span {
  color: var(--muted);
}

.order-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.order-lines b {
  font-variant-numeric: tabular-nums;
}

.ol-qty {
  color: var(--muted);
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 0.9375rem;
}

.app-button {
  margin: 0 16px;
  padding: 12px;
  background: var(--brand);
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

.panel {
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.4;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head b {
  font-size: 0.9375rem;
}

.panel-head span {
  color: var(--muted);
}

.dist-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.dist-table th,
.dist-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.dist-table th:first-child,
.dist-table td:first-child {
  padding-left: 16px;
  text-align: left;
}

.dist-table th:last-child,
.dist-table td:last-child {
  padding-right: 16px;
}

.dist-table th {
  color: var(--muted);
  font-weight: 500;
}

.dist-table .is-short td {
  background: var(--short-bg);
}

.dist-table .is-short td:nth-child(3) {
  color: var(--short);
  font-weight: 600;
}

.panel-note {
  padding: 12px 16px;
  color: var(--short);
  font-weight: 500;
}

.receipt {
  position: relative;
  width: 280px;
  padding: 24px 22px 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--receipt-ink);
  font: 0.8125rem/1.6 var(--font-receipt);
}

.receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background: radial-gradient(circle at 7px 0, var(--white) 7px, transparent 7.5px) 0 0 / 14px 10px repeat-x;
}

.receipt-title {
  font-weight: 700;
  text-align: center;
}

.receipt-center {
  text-align: center;
}

.receipt hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px dashed var(--planned);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.receipt-total {
  font-weight: 700;
}

.report-sums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.report-sums div {
  padding: 14px 16px;
}

.report-sums div + div {
  border-left: 1px solid var(--line);
}

.report-sums dt {
  color: var(--muted);
}

.report-sums dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.report-bars {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.report-bars li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
}

.report-bars i {
  position: relative;
  height: 10px;
  background: var(--street);
  border-radius: 5px;
}

.report-bars i::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--brand), var(--coral));
  border-radius: 5px;
}

.report-bars b {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.feature {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  color: var(--white);
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s;
}

.store-btn:hover {
  border-color: var(--coral);
}

.store-btn small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.store-btn b {
  font-size: 1.0625rem;
}

.checks li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 10px;
  height: 10px;
  background: var(--coral);
  border-radius: 50%;
}

.launch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  counter-reset: launch;
}

.launch li {
  padding-top: 20px;
  border-top: 3px solid var(--ink);
  counter-increment: launch;
}

.launch li::before {
  content: counter(launch);
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font: 600 1rem/1 var(--font-display);
}

.launch p {
  margin-top: 8px;
  color: var(--muted);
}

.section-faq {
  padding-top: 0;
}

.faq {
  max-width: 820px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 1.5rem/1 var(--font-display);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  max-width: 40em;
  padding-bottom: 22px;
  color: var(--muted);
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.office-details {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.office-details dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.office-details dd {
  font-size: 1.25rem;
  font-weight: 600;
}

.office-details a {
  border-bottom: 2px solid var(--brand);
  text-decoration: none;
}

.office-map {
  display: grid;
  gap: 12px;
}

.office-map-canvas {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--street);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-body);
}

.office-map-link {
  justify-self: start;
  color: var(--brand);
  font-weight: 600;
}

.site-footer {
  padding: 48px 0;
  background: var(--ink);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-footer :focus-visible {
  outline-color: var(--coral);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer .logo {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
}

@media (max-width: 960px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-grid,
  .app-grid,
  .office-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .pains,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-left: 68px;
  }

  .step-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .header-row {
    gap: 16px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-left: auto;
    padding: 0 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font: 500 1rem/1 var(--font-body);
    cursor: pointer;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    color: var(--ink);
    font-size: 1.0625rem;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-faq {
    padding-top: 0;
  }

  .pains,
  .features,
  .launch {
    grid-template-columns: minmax(0, 1fr);
  }

  .pains li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 0 22px;
  }

  .pain-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .features {
    gap: 28px;
  }

  .figures {
    gap: 16px;
    font-size: 0.875rem;
  }

  .route-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .pin {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.6875rem;
  }

  .pin-right {
    transform: translate(10px, -50%);
  }

  .pin-left {
    transform: translate(calc(-100% - 10px), -50%);
  }

  .pin-below {
    transform: translate(-50%, 12px);
  }

  .step {
    padding: 60px 0 64px;
  }

  .step::before {
    top: 0;
  }

  .step::after {
    display: none;
  }

  .phone {
    width: 100%;
    max-width: 300px;
  }

  .receipt {
    width: 100%;
    max-width: 300px;
  }

  .dist-table th,
  .dist-table td {
    padding: 9px 6px;
  }

  .dist-table th:first-child,
  .dist-table td:first-child {
    padding-left: 12px;
  }

  .dist-table th:last-child,
  .dist-table td:last-child {
    padding-right: 12px;
  }

  .report-sums {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-sums div {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .report-sums div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .route-draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .reveal {
    animation: none;
    opacity: 1;
  }
}
