/* The home page blocks: each section is one heading, at most one sentence and
   one picture. Loaded after light.css on index.html only; the type scale here
   is the same for every section and tab. */
:root {
  --h2: clamp(56px, 4.6vw, 68px);
  --lead: 21px;
}
@media (max-width: 767px) {
  :root {
    --h2: 36px;
    --lead: 18px;
  }
}
@media (max-width: 374px) {
  :root {
    --h2: 34px;
    --lead: 17px;
  }
}

main h2,
main .final-copy h2,
main :is(.mobile-copy, .offer-section, .faq-section) h2 {
  margin: 0;
  font-size: var(--h2);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.block-head {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}
.block-head > p,
.story-copy > p,
main .mobile-copy > p,
main .offer-section > div > p:not(.price),
main .faq-section > div:first-child > p,
main .final-copy > p {
  max-width: 34em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: var(--lead);
  line-height: 1.45;
}
.block-head .text-link {
  gap: 10px;
  margin-top: 20px;
  font-size: 17px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .block-head {
    margin-bottom: 28px;
    text-align: left;
  }
  .block-head > p,
  .story-copy > p,
  main .mobile-copy > p,
  main .offer-section > div > p:not(.price),
  main .faq-section > div:first-child > p,
  main .final-copy > p {
    margin-top: 14px;
    line-height: 1.42;
  }
}

/* ---------- Tabs: one pill strip for product, segments and the cabinet ---------- */
.seg-tabs {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 16px auto;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid #0d10240f;
  border-radius: 999px;
  background: #0d10240a;
}
.seg-tabs::-webkit-scrollbar {
  display: none;
}
.seg-tabs button {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s;
}
.seg-tabs button[aria-selected="true"],
.seg-tabs button:hover {
  color: var(--ink);
}
.product-tabs button,
.screen-tabs button,
.seg-tabs button {
  min-height: 46px;
  padding-inline: 22px;
  font-size: 16px;
  font-weight: 500;
}

/* ---------- Film ---------- */
.film-section .block-head {
  margin-bottom: 40px;
}

/* ---------- Product: a phone chat per tab, the result card over its edge ---------- */
.story-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  background: radial-gradient(ellipse 42% 60% at 68% 52%, #3e60ff1a, transparent 72%);
}
.story-copy {
  padding: 48px 0 48px 64px;
}
.story-copy > p {
  max-width: 20em;
  margin-left: 0;
}
.story-stage {
  display: flex;
  justify-content: center;
  padding: 28px 32px 28px 120px;
}
.story-phone {
  position: relative;
}
.story-phone .phone-frame {
  width: 320px;
  margin: 0;
  transform: none;
}
.story-phone .phone-screen {
  display: flex;
  flex-direction: column;
  height: 620px;
  background: #fff;
  font-size: 15px;
}
.story-phone .phone-status {
  flex: none;
  height: 48px;
  padding-top: 14px;
  font-size: 15px;
}
.story-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 14px;
  border-bottom: 1px solid #0d10240f;
  font-size: 16px;
}
.story-chat-head b {
  font-weight: 600;
}
.story-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6f86ff, #3e60ff 55%, #2340d8);
  color: #fff;
  font-weight: 600;
}
.story-channel {
  width: 22px;
  height: 22px;
  margin-left: auto;
}
.story-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
}
.story-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.4;
}
.story-bubble.is-salon {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #3654ee;
  color: #fff;
}
.story-bubble.is-client {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #eef0f6;
  color: var(--ink);
}
.story-composer {
  height: 40px;
  margin: auto 12px 22px;
  border: 1px solid #0d102414;
  border-radius: 999px;
  background: var(--paper);
}
/* The one green on the block: the visit is booked. */
.story-result {
  position: absolute;
  z-index: 2;
  bottom: 36px;
  left: -120px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--lift);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}
.story-result b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}
.story-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2fcf9a, #16835f);
}
.story-check svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.integration-label {
  font-size: 15px;
}
@media (max-width: 1100px) {
  .story-copy {
    padding-left: 32px;
  }
  .story-stage {
    padding-left: 100px;
  }
  .story-result {
    left: -84px;
  }
}
/* Phones: the three tabs stack as plain blocks (screens.css): heading,
   sentence, then the phone cut softly at the bottom. No card around them. */
@media (max-width: 767px) {
  .product-frame {
    gap: 56px;
  }
  [data-theme="light"] .product-frame,
  [data-theme="light"] .story-panel,
  [data-theme="light"] .story-panel[hidden] {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .story-copy {
    padding: 0;
  }
  .story-stage {
    align-self: stretch;
    height: 364px;
    margin-top: 18px;
    padding: 0;
  }
  .story-phone .phone-frame {
    width: 290px;
    -webkit-mask-image: linear-gradient(#000 270px, transparent 350px);
    mask-image: linear-gradient(#000 270px, transparent 350px);
  }
  .story-phone .phone-screen {
    height: 520px;
    font-size: 14px;
  }
  .story-phone .phone-status {
    height: 44px;
    padding: 12px 22px 0;
    font-size: 14px;
  }
  .story-chat-head {
    padding: 2px 12px 10px;
    font-size: 15px;
  }
  .story-avatar {
    width: 30px;
    height: 30px;
  }
  .story-chat {
    padding: 12px 10px;
  }
  .story-bubble {
    max-width: 88%;
    padding: 8px 12px;
  }
  .story-result {
    top: 288px;
    bottom: auto;
    left: -20px;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 16px;
    font-size: 14px;
  }
  .story-result b {
    font-size: 15px;
  }
  .story-check {
    width: 34px;
    height: 34px;
  }
  .story-check svg {
    width: 18px;
    height: 18px;
  }
  [data-theme="light"] .product-frame .integration-strip {
    padding: 8px 0 0;
  }
  .integration-brand {
    font-size: 15px;
  }
}

/* ---------- Segments: the base split one way or the other ---------- */
.segments-section {
  padding-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.segments-section > .block-head {
  grid-column: 1 / -1;
}
.seg-card {
  padding: 24px 40px 40px;
}
.seg-card .seg-tabs {
  margin: 0 0 28px;
}
.seg-bars {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seg-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: baseline;
  font-size: 18px;
}
.seg-bar b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.seg-bar i {
  grid-column: 1 / -1;
  width: calc(var(--share) * 1.6%);
  min-width: 6px;
  height: 10px;
  border-radius: 999px;
  background: #d9def0;
}
.seg-bar.is-key i {
  background: linear-gradient(90deg, #6f86ff, #3e60ff);
}
.seg-bar.is-key b {
  color: #2f52ff;
}
.seg-revenue {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}
.seg-revenue-number {
  font-size: clamp(56px, 5.4vw, 80px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #0d1024 35%, #3e4fd0);
  -webkit-background-clip: text;
  background-clip: text;
}
.seg-revenue-label {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}
.seg-revenue-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .segments-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .segments-section {
    padding-top: 72px;
    gap: 16px;
  }
  /* One picture, no card around it: the tabs and the bars lie on the page. */
  [data-theme="light"] .seg-card {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .seg-card .seg-tabs {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
  }
  .seg-tabs button {
    flex: 1;
    min-height: 42px;
    padding-inline: 8px;
    font-size: 15px;
  }
  .seg-bars {
    gap: 12px;
  }
  .seg-bar i {
    height: 8px;
  }
  .seg-bar {
    font-size: 16px;
  }
  .seg-revenue {
    padding: 26px 22px;
  }
  .seg-revenue-number {
    font-size: 56px;
  }
  .seg-revenue-label {
    font-size: 18px;
  }
}

/* ---------- Cabinet: the live window on wide screens, a swipe strip of
   desktop screenshots on phones ---------- */
.app-shots {
  display: none;
}
@media (max-width: 767px) {
  .dashboard-section > .frame {
    display: none;
  }
  .dashboard-section {
    padding-bottom: 24px;
  }
  .app-shots {
    display: block;
    margin-inline: -18px;
  }
  .app-shots-track {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 4px 18px 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
    list-style: none;
  }
  .app-shots-track::-webkit-scrollbar {
    display: none;
  }
  .app-shots-track li {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .app-shots-track img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #f6f8ff;
    box-shadow:
      0 0 0 1px #0d102414,
      0 12px 28px -14px #1b2a7a40;
  }
  .app-shots-track span {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
  }
  .app-shots-track .an-open {
    margin: 12px 0 0;
  }
  .app-shots-track .an-open span {
    display: inline;
    margin: 0;
  }
}

/* ---------- Heatmap: the «Упущенная выгода» day × hour map of the
   analytics demo, static; v2/heatmap.js adds the hover card ---------- */
.heat-section {
  padding-bottom: 112px;
}
.heat-card {
  padding: 40px 44px 44px;
  overflow: visible;
}
.heat-plot {
  position: relative;
}
.heat-grid {
  display: grid;
  grid-template-columns: 44px repeat(11, minmax(0, 1fr));
  grid-auto-rows: 54px;
  grid-template-rows: 28px;
  gap: 6px;
}
.heat-hour,
.heat-day {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.heat-hour {
  justify-content: center;
  align-items: flex-start;
}
.heat-hour small {
  font-size: 0.86em;
  opacity: 0.7;
}
.heat-day {
  color: var(--ink);
  font-weight: 600;
}
.heat-grid i {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in oklab, #3e60ff calc(var(--t) * 100%), #e8ecff);
  color: var(--ink);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.heat-grid i[data-dark] {
  color: #fff;
}
.heat-grid i.is-hot {
  position: relative;
  z-index: 1;
  transform: scale(1.08);
  box-shadow:
    0 0 0 2px #fff,
    0 10px 22px -8px #1b2a7a73;
}
.heat-tip {
  position: absolute;
  z-index: 2;
  width: 288px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px #0d102414,
    0 22px 48px -14px #1b2a7a52;
  font-size: 14px;
  pointer-events: none;
}
.heat-tip[hidden] {
  display: none;
}
.heat-tip b {
  font-weight: 650;
}
.heat-tip p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}
.heat-tip p b {
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.heat-tip p b.is-money {
  color: #c23a3a;
}
.heat-tip-meter {
  display: block;
  height: 5px;
  margin-top: -3px;
  border-radius: 999px;
  background: #e8ecff;
  overflow: hidden;
}
.heat-tip-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6f86ff, #3e60ff);
}
@media (max-width: 1023px) {
  .heat-card {
    padding: 28px;
  }
  .heat-grid {
    grid-template-columns: 32px repeat(11, minmax(0, 1fr));
    grid-auto-rows: 44px;
    gap: 4px;
  }
  .heat-grid i {
    border-radius: 9px;
    font-size: 13px;
  }
  .heat-hour small {
    display: none;
  }
}
/* Phones: the whole week in one screen, compact cells with the numbers only. */
@media (max-width: 767px) {
  .heat-section {
    padding: 72px 0 64px;
  }
  .heat-card {
    padding: 14px 12px 16px;
  }
  .heat-grid {
    grid-template-columns: 22px repeat(11, minmax(0, 1fr));
    grid-template-rows: 20px;
    grid-auto-rows: 30px;
    gap: 3px;
  }
  .heat-hour,
  .heat-day {
    font-size: 11px;
  }
  .heat-grid i {
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: -0.02em;
  }
  .heat-tip {
    width: min(264px, 100%);
    font-size: 13px;
  }
}

/* ---------- Mobile app, numbers, offer, FAQ, final ---------- */
/* Phones: the app phone is cut softly at the bottom, like the product chats. */
@media (max-width: 767px) {
  .mobile-stage {
    justify-content: flex-start;
    height: 372px;
    overflow: hidden;
    padding: 18px 0 0;
    -webkit-mask-image: linear-gradient(#000 290px, transparent 372px);
    mask-image: linear-gradient(#000 290px, transparent 372px);
  }
}
@media (max-width: 374px) {
  .story-stage {
    height: 348px;
  }
  .mobile-stage {
    height: 352px;
  }
  .numbers-grid > div {
    padding: 16px 14px;
  }
}
.mobile-copy h2 {
  margin: 0;
}
.numbers-grid p + p {
  font-size: 17px;
  line-height: 1.4;
}
main .offer-section h2 {
  margin: 0;
}
main .price-block > p:not(.price),
main .price > span {
  font-size: 16px;
}
main .price > span {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
main .faq-list summary {
  font-size: 18px;
}
main .faq-list details p {
  font-size: 16px;
  line-height: 1.55;
}
main .faq-section > div:first-child > p {
  margin-left: 0;
}
main .faq-section .text-link {
  gap: 10px;
  margin-top: 14px;
  font-size: 17px;
}
/* Controls read at the phrase scale too. */
main .lead-form .button,
main .final-actions .button {
  font-size: 16px;
}
.video-play-button {
  font-size: 15px;
}
main .quote figcaption {
  font-size: 15px;
}
main .offer-section > div > p:not(.price) {
  margin-left: 0;
}
@media (max-width: 767px) {
  .mobile-copy h2 {
    margin-top: 8px;
  }
  .numbers-grid p + p {
    margin-top: 10px;
    font-size: 15px;
  }
  main .faq-list summary {
    font-size: 16px;
  }
  main .faq-list details p,
  main .price-block > p:not(.price),
  main .price > span {
    font-size: 15px;
  }
  main .final-copy h2 {
    margin-bottom: 0;
  }
}
