/* Landing of / (landing.html) in the layout the viewers chose: «М'яке світло» (design/live).
   Mobile first at 375 px; on wide screens the content is a centred column up to 1040 px.
   Every rule is scoped to the landing: base.html links this file on every page. */

:root {
  --color-bg: #f7f5ff;
  --color-surface: #ffffff;
  --color-text: #1c1733;
  --color-text-muted: #5b5675;
  --color-accent: #6236ff;
  --color-accent-2: #d7f96b;
  --color-line: #e4dff5;
  --color-on-accent: #ffffff;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --landing-width: 1040px;
}

/* The page column of site.css widens on the landing only */

.page:has(> .landing) {
  max-width: none;
}

/* The partials of slices (_counters.html, _form.html) style themselves with the tokens of
   site.css: inside the landing those tokens take the palette, their classes stay theirs. */

.landing {
  --ink: var(--color-text);
  --ink-2: var(--color-text-muted);
  --bg: var(--color-surface);
  --bg-soft: var(--color-bg);
  --line: var(--color-line);
  --accent: var(--color-accent);
  --font: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
}

/* Text links; :where keeps them below the buttons, which are links too */

:where(.landing) a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

:where(.landing) a:hover {
  color: var(--color-text);
}

.landing :focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Icons: a glyph of static/img masked out of the accent */

.landing-icon {
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.landing-icon--calendar {
  -webkit-mask-image: url("../img/calendar.svg");
  mask-image: url("../img/calendar.svg");
}

.landing-icon--person {
  -webkit-mask-image: url("../img/person.svg");
  mask-image: url("../img/person.svg");
}

/* First screen */

.landing-hero {
  max-width: calc(var(--landing-width) + 32px);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.landing-hero__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 22px 36px;
  border-radius: 28px;
  background: var(--color-surface);
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--color-accent-2);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.landing-hero__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.landing-hero__title {
  margin: 0;
  font-size: clamp(33px, 9.4vw, 68px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.landing-hero__subtitle {
  max-width: 38ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.5;
}

.landing-hero__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.landing-fact--when {
  align-items: flex-start;
  color: var(--color-text);
  font-weight: 600;
}

.landing-fact--when .landing-icon {
  margin-top: 1px;
}

.landing-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.landing-button:hover {
  background: var(--color-text);
  color: var(--color-on-accent);
}

.landing-hero__note {
  max-width: 46ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Sections: blocks 1.2–1.7 */

.landing-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: calc(var(--landing-width) + 32px);
  margin: 0 auto;
  padding: 0 16px 64px;
}

.landing-section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 6px;
}

.landing-section__title {
  margin: 0;
  font-size: clamp(25px, 6.8vw, 40px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.landing-section__lead {
  max-width: 60ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Numbered cards: «Що в ефірі» and «Що ви отримаєте»; the number is a counter, not text */

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: landing-step;
}

.landing-steps__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: var(--color-surface);
  counter-increment: landing-step;
}

.landing-steps__item::before {
  content: counter(landing-step);
  content: counter(landing-step) / "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-2);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
}

.landing-steps__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.landing-steps__text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.35;
}

/* The closing item reads on as one sentence («Наприкінці — …»), as in the layout */
.landing-steps__item:last-child .landing-steps__text strong {
  display: inline;
}

.landing-steps--plain .landing-steps__text {
  color: var(--color-text);
  font-size: 16px;
}

.landing-goal {
  margin: 0;
  padding: 18px 20px;
  border: 1.5px dashed var(--color-accent);
  border-radius: 22px;
  font-size: 15px;
  line-height: 1.55;
}

/* «Для кого» */

.landing-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-points__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--color-surface);
  font-size: 16px;
  line-height: 1.55;
}

.landing-points__item::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.landing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 22px;
  background: var(--color-surface);
}

.landing-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.landing-card__text {
  max-width: 60ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.landing-card__note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Telegram channel */

.landing-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 22px;
  border-radius: 28px;
  background: var(--color-accent-2);
  color: var(--color-text);
}

.landing-callout__text {
  max-width: 60ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.landing-callout__link {
  margin: 0;
}

.landing-callout__link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.landing-callout__link a:hover {
  background: var(--color-text);
  color: var(--color-on-accent);
}

/* Presenter */

.landing-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 22px;
  background: var(--color-surface);
}

.landing-person__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-2);
}

.landing-person__avatar .landing-icon {
  width: 28px;
  height: 28px;
}

.landing-person__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-person__name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.landing-person__text {
  max-width: 60ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Course: an accordion of cards; the always visible sections are open cards */

.landing-course {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-course__card,
.landing-course__item {
  border-radius: 22px;
  background: var(--color-surface);
}

.landing-course__card {
  padding: 20px;
}

.landing-course__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.landing-course__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.landing-course__summary::-webkit-details-marker {
  display: none;
}

.landing-course__summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-3px) rotate(45deg);
}

details[open] > .landing-course__summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.landing-course__item > .landing-prose {
  padding: 0 20px 20px;
}

.landing-course__block {
  margin: 0 12px 12px;
  border-radius: 16px;
  background: var(--color-bg);
}

.landing-course__block > .landing-course__summary {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
}

.landing-course__block > .landing-prose {
  padding: 0 16px 16px;
}

/* Text of copy.md rendered as HTML: paragraphs, lists, tables (.table-scroll of site.css) */

.landing-prose {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.landing-prose:empty {
  display: none;
}

.landing-prose > :first-child {
  margin-top: 0;
}

.landing-prose p,
.landing-prose ul,
.landing-prose ol {
  margin: 10px 0 0;
}

.landing-prose ul,
.landing-prose ol {
  padding-left: 1.25em;
}

.landing-prose li + li {
  margin-top: 6px;
}

.landing-prose strong {
  color: var(--color-text);
}

/* Places of the partials of slices: width only, the partials bring their own look */

.landing-slot {
  max-width: calc(var(--landing-width) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.landing-slot--form {
  max-width: calc(600px + 32px);
  padding-bottom: 56px;
}

.landing-slot:empty {
  display: none;
}

/* Wide screens */

@media (min-width: 768px) {
  .landing-hero {
    padding-top: 32px;
  }

  .landing-hero__card {
    padding: 56px 56px 60px;
  }

  .landing-hero__facts {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .landing-callout {
    padding: 40px;
  }
}
