.cm-story {
  --cm-section-color: #68469e;
  --cm-story-ink: #271d34;
  --cm-story-soft: #62596a;
  --cm-story-line: #e6e1eb;
  color: var(--cm-story-ink);
  background: white;
  border: 1px solid var(--cm-story-line);
  border-radius: 22px;
  margin-block: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 4.5vw, 66px);
  scroll-margin-top: 20px;
  overflow-wrap: anywhere;
}
.cm-story *, .cm-story *::before, .cm-story *::after { box-sizing: border-box; }
.cm-story-lead { display: grid; gap: clamp(18px, 3vw, 42px); align-items: center; }
.cm-story-with-image { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.cm-story-copy:empty { display: none; }
.cm-story-lead:has(.cm-story-copy:empty) { grid-template-columns: 1fr; }
.cm-story-copy h1, .cm-story-copy h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(31px, 3.7vw, 57px);
  letter-spacing: -.055em;
  font-weight: 670;
  line-height: 1.045;
  text-wrap: balance;
}
.cm-story-description, .cm-story-card p, .cm-story-card blockquote, .cm-story-question p {
  margin: 12px 0 0;
  color: var(--cm-story-soft);
  line-height: 1.65;
  white-space: pre-line;
}
.cm-story-description { max-width: 65ch; font-size: clamp(15px, 1.25vw, 19px); }
.cm-story-image {
  display: block;
  width: 100%;
  max-height: min(46vw, 450px);
  aspect-ratio: 1.38;
  object-fit: cover;
  border-radius: 16px;
}
.cm-story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #422760;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.cm-story-copy > .cm-story-button { margin-top: 22px; }
.cm-story-button:hover { background: #2d1943; }
.cm-story :is(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid #835ac8;
  outline-offset: 3px;
}
.cm-story-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 42px);
}
.cm-story-card {
  border-top: 2px solid var(--cm-section-color);
  padding: 18px 4px 4px;
  min-width: 0;
}
.cm-story-card h3, .cm-story-author {
  margin: 0;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.cm-story-card a, .cm-story-question a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.cm-story-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cm-story-hero {
  --cm-story-ink: #fff;
  --cm-story-soft: #eee9f5;
  background: #362346;
  background: linear-gradient(110deg, #2d1d3d, color-mix(in srgb, var(--cm-section-color) 56%, #261737));
  border-color: transparent;
  padding-block: clamp(42px, 6vw, 90px);
}
.cm-story-hero h1 { font-size: clamp(43px, 6.1vw, 91px); max-width: 16ch; }
.cm-story-hero .cm-story-image { object-fit: contain; }
.cm-story-hero .cm-story-button, .cm-story-footer .cm-story-button {
  color: #24341d;
  background: #d2edae;
}
.cm-story-hero .cm-story-button:hover, .cm-story-footer .cm-story-button:hover { background: #e1f4c9; }
.cm-story-header { border-left: 4px solid var(--cm-section-color); padding-block: 18px; }
.cm-story-header .cm-story-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.cm-story-header .cm-story-copy > * { margin: 0; }
.cm-story-header h2 { font-size: clamp(21px, 2vw, 30px); }
.cm-story-features .cm-story-card, .cm-story-why .cm-story-card {
  padding: 22px;
  border: 1px solid var(--cm-story-line);
  border-top: 3px solid var(--cm-section-color);
  border-radius: 12px;
  background: #faf9fb;
}
.cm-story-screenshots .cm-story-card, .cm-story-team .cm-story-card { padding: 0; border: 0; }
.cm-story-screenshots .cm-story-card-image { object-fit: contain; background: #f5f3f7; }
.cm-story-team .cm-story-card-image { aspect-ratio: 1.08; }
.cm-story-about .cm-story-image { aspect-ratio: 1.16; }
.cm-story-reviews { background: #efeaf6; border-color: #e5dced; }
.cm-story-reviews .cm-story-card { padding: 22px; background: #fff; border: 0; border-radius: 14px; }
.cm-story-card blockquote { margin: 0; font-size: 1.07rem; color: var(--cm-story-ink); }
.cm-story-card .cm-story-author { margin-top: 16px; font-size: .9rem; font-weight: 700; }
.cm-story-faq .cm-story-items { display: block; margin-top: 20px; }
.cm-story-question { border-bottom: 1px solid var(--cm-story-line); }
.cm-story-question summary { padding: 17px 4px; cursor: pointer; font-size: 1.05rem; font-weight: 640; }
.cm-story-question summary::marker { color: var(--cm-section-color); }
.cm-story-question p { margin: 0; padding: 0 4px 18px; max-width: 74ch; }
.cm-story-question a { display: inline-flex; margin: 0 4px 14px; }
.cm-story-newsletter { background: #f0f4e9; border-color: #dce4d2; }
.cm-story-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 24px; max-width: 790px; }
.cm-story-form label { display: grid; gap: 7px; font-weight: 600; font-size: .88rem; }
.cm-story-form input, .cm-story-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .65rem .8rem;
  border: 1px solid #bdb5c5;
  border-radius: 8px;
  color: #251d2b;
  background: white;
  font: inherit;
  font-weight: 400;
}
.cm-story-form textarea { resize: vertical; }
.cm-story-wide, .cm-story-contact .cm-story-form > button { grid-column: 1 / -1; }
.cm-story-form > button { justify-self: start; align-self: end; }
.cm-story-newsletter .cm-story-form { grid-template-columns: minmax(150px, 360px) auto; justify-content: start; }
.cm-story-footer { --cm-story-ink: #fff; --cm-story-soft: #ded7e5; background: #33233e; }
@media (max-width: 680px) {
  .cm-story { border-radius: 15px; }
  .cm-story-with-image { grid-template-columns: 1fr; }
  .cm-story-image { max-height: none; aspect-ratio: 1.65; }
  .cm-story-form { grid-template-columns: 1fr; }
  .cm-story-newsletter .cm-story-form { grid-template-columns: 1fr; }
  .cm-story-header .cm-story-copy { display: block; }
  .cm-story-header .cm-story-copy > * + * { margin-top: 10px; }
}
