/* Exo Pro site layout. Section layout only: every value is var(--…) from tokens.css, no new colours or sizes. */

/* Hero: the square poster fills the 1:1 slot, no contain (the DS sets contain for a 16:9 poster). */
@media (max-width: 767px) {
  .media__poster, .media__video { object-fit: cover; }
}

/* Steps: three across from 1024. Below that the DS stacks them as a vertical line. */
@media (min-width: 1024px) {
  .steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Proof line under a section heading: the number in mono. */
.proof { margin: 0 0 var(--space-8); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.proof .t-mono { font-size: inherit; color: var(--ink); }

/* Feature cards. A card with a status chip has it in .card__top, so removing the chip does not move the layout. */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-content: start; }
.card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.card__top .t-h3 { margin: 0; }
.card__top .example-label { flex: none; }
.card .t-small { margin: 0; }
.crm { margin: 0 0 var(--space-4); padding: 0; list-style: none; display: grid; gap: var(--space-2); }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cards--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* App sections: cards next to one phone screen. Below 1024 the screen goes under the cards. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) 300px; }
}
.shots { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-12); }
.shot { display: grid; gap: var(--space-3); width: 100%; max-width: 300px; margin: 0; align-content: start; }
.shot figcaption { display: grid; gap: var(--space-2); justify-items: start; }

/* Phone frame: one class for every app illustration. A neutral rounded rectangle, no device outline, no Telegram logo. */
.phone { width: 100%; background: var(--ground); border: 2px solid var(--ink-soft); border-radius: calc(var(--radius-card) * 4); padding: var(--space-3); }
.phone__bar { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: var(--hairline); font-size: var(--fs-12); font-weight: var(--wght-strong); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-soft); }
.phone__body { display: grid; gap: var(--space-4); padding: var(--space-4) var(--space-3) var(--space-3); }
.phone__body p { margin: 0; max-width: none; }
.phone__label { margin: 0 0 var(--space-1); }
.phone__text { font-size: var(--fs-14); line-height: var(--lh-small); }
.phone__why { font-size: var(--fs-12); line-height: var(--lh-small); color: var(--ink-soft); }
.phone__name { font-size: var(--fs-16); font-weight: var(--wght-strong); }
.phone__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.phone__list { margin: 0; padding: 0; list-style: none; }
.phone__item { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; }
.phone__item + .phone__item { border-top: var(--hairline); }
.phone__num { font-family: var(--font-mono); font-weight: var(--wght-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; }
.phone__num--hot { color: var(--signal); }
.phone .board { max-width: none; padding-inline: var(--space-3); }
.phone .board__row { grid-template-columns: 3rem 3.6rem minmax(0, 1fr); font-size: var(--fs-14); }
.board__row--later .board__stand { color: var(--ink-soft); }
.phone__warn { padding: var(--space-3); border: 2px solid var(--ink); border-radius: var(--radius-plate); font-size: var(--fs-14); line-height: var(--lh-small); }
.phone__notice { padding: var(--space-3); background: var(--rule); border-radius: var(--radius-plate); font-size: var(--fs-14); line-height: var(--lh-small); }
.phone__bubble { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--panel); border: var(--hairline); border-radius: var(--radius-plate); font-size: var(--fs-14); line-height: var(--lh-small); }
.phone__bubble--you { justify-self: end; min-width: 60%; }
.phone__bubble--hot { color: var(--signal); font-weight: var(--wght-strong); }
.phone__play { width: 16px; height: 16px; flex: none; }

/* Example tour: the board next to the reason for each stop. */
.tour { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.tour__label { margin: 0 0 var(--space-3); }
.tour__note { margin: var(--space-3) 0 0; }
.tour__list { display: grid; gap: var(--space-6); margin: 0 0 var(--space-8); padding: 0; list-style: none; }
.tour__list h3 { margin: 0 0 var(--space-2); }
.tour__list p { margin: 0; color: var(--ink-soft); }
@media (max-width: 1023px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

/* Who it's for: three cards from 1024, two from 768, one below. */
.for { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (min-width: 1024px) {
  .for { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .for { grid-template-columns: minmax(0, 1fr); }
}

/* Privacy page: one column of text. */
.prose { padding-block: var(--space-16); }
.prose h1 { margin: 0 0 var(--space-8); }
.prose p { max-width: var(--measure); margin: 0 0 var(--space-4); }

/* Closing call to action: the button sits under the lead. */
#start .section-head { margin-bottom: 0; }
#start .hero__actions { margin-top: var(--space-8); }
@media (max-width: 767px) {
  #start .hero__actions .btn--primary { width: 100%; }
}
