/* welcome.css: /welcome, "Your first day": where a new member lands after the Stripe signup form, and what the bot
   links to. Tokens only; no sky, the evening ground stays. Phone first: one column, then wider grids from 40rem.
   The demo stills' own styles are in site.css (shared with the home page). */
.welcome { padding-block: var(--space-lg) var(--section-gap-s); }

/* ---------- First screen: one step left, go back to Telegram ---------- */
.welcome__first { display: grid; gap: var(--space-md); justify-items: start; }
.welcome__title { font-size: var(--text-display-s); max-width: 11ch; }
.welcome__lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 36ch; }
.welcome__first .btn { width: 100%; margin-top: var(--space-xs); }
.welcome__note { font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); max-width: 52ch; }

/* ---------- Sections ---------- */
.welcome__section { padding-top: var(--space-2xl); scroll-margin-top: var(--space-lg); }
.welcome__heading { margin-bottom: var(--space-lg); font-size: var(--text-section); }
.welcome__sub { margin: var(--space-xl) 0 var(--space-md); font-size: var(--text-title); line-height: 1.15; }
.welcome__heading + .welcome__sub { margin-top: 0; }
.welcome a:not(.btn):not(.demo__still) { text-decoration: underline; text-decoration-color: var(--color-gold-deep); }
.welcome a:not(.btn):not(.demo__still):hover { text-decoration-color: var(--color-gold); }
/* a command to type in the bot: the body face, heavier; never broken across lines */
.welcome code { font: inherit; font-weight: 600; color: var(--color-ink); white-space: nowrap; }

/* ---------- The steps: a rule, a gold numeral, the words ---------- */
.steps { display: grid; max-width: 48rem; list-style: none; counter-reset: step; }
.step {
  display: grid; grid-template-columns: var(--space-lg) minmax(0, 1fr); column-gap: var(--space-sm);
  padding-block: var(--space-lg); border-top: 1px solid var(--color-rule-strong); counter-increment: step;
}
.step::before { content: counter(step); font-size: var(--text-xl); font-weight: 600; line-height: 1.1; color: var(--color-gold); font-variant-numeric: tabular-nums lining-nums; }
.step__body { display: grid; gap: var(--space-sm); min-width: 0; }
.step__title { max-width: none; font-size: var(--text-title); line-height: 1.15; }
.step__body p { max-width: 60ch; color: var(--color-ink-2); }
.step__list { display: grid; gap: var(--space-xs); padding-left: 1.25em; color: var(--color-ink-2); }
.step__list li { max-width: 58ch; padding-left: var(--space-2xs); }
.step__list li::marker { color: var(--color-gold-deep); }
.step__list b { color: var(--color-ink); }

/* ---------- The demos: the apps (the phone-shaped walkthrough, then a still), then the indicators ---------- */
.welcome__apps, .welcome__films { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.welcome__clip { justify-items: center; }
.welcome__clip .demo__caption { justify-items: center; text-align: center; }
.welcome__clip .demo__detail { max-width: 36ch; font-size: var(--text-sm); line-height: 1.45; text-wrap: balance; }

/* ---------- Billing and help: three short rows ---------- */
.welcome__facts { display: grid; max-width: 48rem; }
.welcome__fact { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-top: 1px solid var(--color-rule-strong); }
.welcome__fact dt { font-weight: 600; }
.welcome__fact dd { max-width: 58ch; color: var(--color-ink-2); }

@media (min-width: 40.0625rem) {
  .welcome { padding-block: var(--space-xl) var(--section-gap-s); }
  .welcome__first .btn { width: auto; }
  .step { grid-template-columns: var(--space-xl) minmax(0, 1fr); column-gap: var(--space-md); }
  .step::before { font-size: var(--text-2xl); line-height: 1; }
  .welcome__films { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl) var(--gap-columns); }
  .welcome__fact { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--space-lg); }
}
/* the walkthrough is a narrow phone shape, so it takes the narrow side; the still beside it takes the wide one */
@media (min-width: 60.0625rem) {
  .welcome__apps { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
}
