.home {
  --paper: #f8f8f4;
  --ink: #1a1932;
  --muted: #545467;
  --brand: #5140bc;
  --line: #dedee6;
  background: var(--paper);
  color: var(--ink);
}

.home .wrap {
  width: min(1240px, calc(100% - 96px));
}

.home .site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 1px solid var(--line);
}

.home .wordmark {
  width: fit-content;
  gap: 9px;
  letter-spacing: -.045em;
}

.home .clock {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  background: var(--brand);
}

.home .clock::after {
  left: 11px;
  top: 9px;
}

.site-header nav,
.hero-secondary {
  color: var(--muted);
  font-size: .9rem;
}

.home a:focus-visible {
  outline-color: var(--brand);
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 10px;
  background: white;
}

.skip-link:focus {
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button span,
.hero-secondary span {
  font-size: 1.08em;
}

.button-outline {
  justify-self: end;
  min-height: 42px;
  border-color: var(--line);
  background: #fff;
}

.button-outline:hover {
  border-color: #a9a0e3;
  background: #f0edfe;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 8px #22167522;
}

.button-primary:hover {
  background: #403098;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 4.2vw, 64px);
  align-items: center;
  padding-block: clamp(52px, 7.5vw, 108px);
}

.hero h1,
.publishing-features h2,
.workflow h2,
.closing h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -.055em;
}

.hero h1 {
  font-size: clamp(2.9rem, 5.35vw, 5.2rem);
  line-height: .99;
}

.hero h1 span {
  display: block;
  color: var(--brand);
}

.hero-copy p {
  max-width: 43ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.23rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
}

.hero-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 440px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: .79rem;
  line-height: 1.25;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #fff;
}

.platform-icon svg {
  width: 18px;
  height: 18px;
}

.platform-icon.telegram {
  background: #087cad;
}

.platform-icon.instagram {
  background: linear-gradient(135deg, #7c37b3, #ce306d 65%, #e97935);
}

.platform-icon.facebook {
  background: #1877f2;
}

.platforms small {
  color: var(--muted);
  font-size: .72rem;
}

.platforms .platform-active {
  border-color: #bedfcf;
  background: #ecf7f1;
}

.platform-active small {
  color: #255d4a;
  font-weight: 680;
}

.product-preview {
  min-width: 0;
  margin: 0;
  padding: 20px clamp(20px, 3vw, 42px) clamp(22px, 3vw, 42px);
  border: 1px solid #e3dff7;
  border-radius: 24px;
  background-color: #e9e3fa;
  background-image:
    radial-gradient(ellipse at 96% 100%, #bfb0f8 0%, transparent 72%),
    linear-gradient(#5743a20b 1px, transparent 1px),
    linear-gradient(90deg, #5743a20b 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  color: #4a3c77;
  font-size: .78rem;
  font-weight: 660;
}

.schedule {
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid #fff;
  border-radius: 17px;
  background: #fefeff;
  box-shadow: 0 18px 40px #37267b25;
}

.schedule-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 10px;
}

.schedule-heading h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: -.045em;
}

.schedule-count {
  padding: 5px 8px;
  border-radius: 6px;
  background: #efebfc;
  color: #50379a;
  font-size: .7rem;
  font-weight: 720;
}

.schedule-week,
.schedule-posts,
.feature-list,
.steps {
  list-style: none;
  padding: 0;
}

.schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: 18px 0 14px;
}

.schedule-week li {
  display: grid;
  justify-items: center;
  gap: 4px;
  position: relative;
  padding: 8px 0 13px;
  border-radius: 7px;
  background: #f6f5f9;
  color: #59586e;
  font-size: .67rem;
}

.schedule-week abbr {
  text-decoration: none;
}

.schedule-week time {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 740;
}

.schedule-week .has-post {
  background: #eee8fc;
}

.schedule-week .has-post::after {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.schedule-posts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.schedule-posts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #eceaf3;
  border-radius: 9px;
}

.post-icon {
  display: grid;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 7px;
  color: #50379a;
  background: #ebe6fc;
  font-size: 1rem;
  font-weight: 700;
}

.post-icon-repeat {
  color: #255d4a;
  background: #dff2e9;
}

.post-icon-media {
  color: #854623;
  background: #f9e9dc;
}

.post-details strong,
.post-details small,
.schedule-posts time small {
  display: block;
}

.post-details strong,
.schedule-posts time {
  font-size: .8rem;
  font-weight: 720;
  line-height: 1.3;
}

.post-details small,
.schedule-posts time small {
  color: #59586e;
  font-size: .69rem;
  font-weight: 500;
  line-height: 1.45;
}

.schedule-posts time {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.workflow {
  scroll-margin-top: 24px;
}

.publishing-features,
.workflow {
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 5.5vw, 78px);
}

.publishing-features h2,
.workflow h2,
.closing h2 {
  font-size: clamp(2.2rem, 4.1vw, 3.85rem);
  line-height: 1.05;
}

.feature-list,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(22px, 3vw, 36px) 0 0;
}

.steps li {
  padding: clamp(18px, 2.3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.step-number {
  display: grid;
  place-items: center;
  width: 35px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #eee9fc;
  color: #50379a;
  font-size: .9rem;
  font-weight: 760;
}

.feature-list h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -.035em;
}

.steps h3 {
  margin-top: 20px;
}

.feature-list {
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 24px;
}

.feature-list p,
.steps p,
.closing p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding: clamp(24px, 5vw, 64px);
  border-radius: 22px;
  background: #251e50;
  color: #fff;
}

.closing p {
  margin-top: 12px;
  color: #dfdaf2;
}

.button-light {
  background: #e3dafd;
  color: #251e50;
}

.button-light:hover {
  background: #f0eaff;
}

.home .closing a:focus-visible {
  outline-color: #e3dafd;
}

.home footer {
  min-height: 83px;
  border-color: var(--line);
  color: var(--muted);
}

.home footer .wordmark {
  color: var(--ink);
}

@media (max-width: 1000px) {
  .home .wrap {
    width: calc(100% - 48px);
  }
}

@media (max-width: 760px) {
  .home .wrap {
    width: min(600px, calc(100% - 36px));
  }

  .home .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 42px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11.7vw, 4.4rem);
  }

  .hero-copy p {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .product-preview {
    padding-inline: clamp(12px, 4.3vw, 26px);
  }

  .feature-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps h3 {
    margin-top: 12px;
  }

  .closing {
    flex-direction: column;
    align-items: flex-start;
  }
}
