/*
 * Feature split -- the round-3 prototype's .split (docs/prototypes/redesign-3/
 * whatsapp.src.html): a section on the page ground under a hairline, copy in
 * one column and the picture in the other.
 *
 * With no image the checklist takes the second column, drawn as hairline rows
 * like the prototype's "at a glance" list, so the section never reserves half
 * its width for nothing.
 */

/*
 * Element-qualified so it outranks core's `:root :where(.is-layout-constrained)
 * > *` block gap (it prints after block styles and would win a tie, leaving a
 * strip of page ground between two bands).
 */
section.vc-split {
  margin-block: 0;
  border-block-start: 1px solid var(--vc-line);
  color: var(--vc-fg);
}

/* Bands (CLAUDE.md §4a). `plain` is the page ground. */
.vc-split--subtle {
  background: var(--vc-surface-1);
}

.vc-split--wash {
  background: var(--vc-gradient-brand-wash);
}

.vc-split--ink {
  background: var(--vc-gradient-ink);
}

/*
 * The prototype's .wrap and .sec padding, on the inner element: consecutive
 * sections each keep their full padding under their own hairline, as the
 * prototype's .sec does.
 */
.vc-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--vc-space-xl) var(--vc-space-3xl);
  align-items: center;
  width: min(var(--vc-wide), 100% - 2 * var(--vc-gutter));
  margin-inline: auto;
  padding-block: var(--vc-section);
}

/* Reverse visually only: DOM order stays copy-then-media, so reading and tab
   order match on every row whichever side the image sits. */
.vc-split--flip .vc-split__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.vc-split--flip .vc-split__media {
  order: -1;
}

/* Quiet, sentence case -- a label, not a tracked all-caps kicker. */
.vc-split__eyebrow {
  margin: 0 0 var(--vc-space-xs);
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-weight-medium);
  color: var(--vc-fg-2);
}

.vc-split__heading {
  margin: 0;
  max-width: 16ch;
}

.vc-split__body {
  font-size: var(--vc-text-md);
  line-height: var(--vc-leading-normal);
  color: var(--vc-fg-2);
}

.vc-split__body p {
  max-width: 54ch;
  margin: var(--vc-space-sm) 0 0;
}

.vc-split__body a {
  color: var(--vc-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.vc-split__body a:hover {
  color: var(--vc-link-hover);
}

/* The prototype's .points. */
.vc-split__points {
  display: grid;
  gap: var(--vc-space-xs);
  margin: var(--vc-space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.vc-split__points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--vc-space-xs);
  align-items: start;
}

/*
 * A link inside a point (inc/inline-links.php): underlined, so colour is not
 * the only cue, and with its own :hover -- theme.json's link hover wins a tie
 * (CLAUDE.md §3a).
 */
.vc-split__points a {
  color: var(--vc-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.vc-split__points a:is(:hover, :focus-visible) {
  color: var(--vc-link-hover);
}

.vc-split__check {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  margin-block-start: 0.15em;
  color: var(--vc-link);
}

.vc-split__cta {
  margin: var(--vc-space-lg) 0 0;
}

.vc-split__img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: var(--vc-radius-app);
  outline: 1px solid var(--vc-line-2);
  outline-offset: -1px;
  box-shadow: var(--vc-shadow-xl);
}

/* ---- No image: lead left, checklist right ---------------------------- */

.vc-split--no-media .vc-split__inner {
  display: block;
}

.vc-split--no-media .vc-split__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0 var(--vc-space-3xl);
  align-items: start;
}

.vc-split--no-media .vc-split__lead,
.vc-split--no-media .vc-split__cta {
  grid-column: 1;
}

.vc-split--no-media .vc-split__points {
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 0;
  margin: 0;
  border-block-start: 1px solid var(--vc-line);
}

.vc-split--no-media .vc-split__points li {
  padding-block: var(--vc-space-sm);
  border-block-end: 1px solid var(--vc-line);
}

/* ---- Text only: heading left, text right ------------------------------
 *
 * No image and no checklist: the prototype's pricing split (.withheld) --
 * heading in the narrow column, the body as running text in the wide one.
 * 4fr / 7fr is the prototype's own ratio. The action concludes the text, so it
 * follows the body in the wide column; under the heading it sat a gap away
 * from the words it acts on.
 */

.vc-split--text .vc-split__copy {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 0 var(--vc-space-2xl);
}

.vc-split--text .vc-split__lead {
  grid-row: 1 / span 2;
}

.vc-split--text .vc-split__body {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--vc-text-md);
}

.vc-split--text .vc-split__cta {
  grid-column: 2;
  grid-row: 2;
}

.vc-split--text .vc-split__body p {
  max-width: 64ch;
  margin-block-start: 0;
}

.vc-split--text .vc-split__body p + p {
  margin-block-start: var(--vc-space-sm);
}

.vc-split__body :is(strong, b, em) {
  color: var(--vc-fg);
  font-style: normal;
}

.vc-split__body strong {
  font-weight: var(--vc-weight-semibold);
}

/* ---- Product-shot drawing as the media ----------------------------------- */

/* A portal screen brings the page spine with it; in a column it takes the column. */
.vc-split__media--shot .vc-shot {
  inline-size: auto;
}

/* ---- Narrow ---------------------------------------------------------- */

@media (max-width: 68.75rem) {
  .vc-split__inner,
  .vc-split--flip .vc-split__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stacked, the copy leads: the picture follows what it illustrates. */
  .vc-split--flip .vc-split__media {
    order: 0;
  }
}

@media (max-width: 60rem) {
  .vc-split--no-media .vc-split__copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .vc-split--no-media .vc-split__points {
    grid-column: 1;
    grid-row: auto;
    margin-block-start: var(--vc-space-lg);
  }

  .vc-split--text .vc-split__copy {
    gap: var(--vc-space-sm);
  }

  .vc-split--text .vc-split__lead,
  .vc-split--text .vc-split__body,
  .vc-split--text .vc-split__cta {
    grid-column: 1;
    grid-row: auto;
  }
}
