/* ==========================================================================
   CTA BAND
   --------------------------------------------------------------------------
   Reference (29 Sep): a soft blurred-gradient field, headline top-left,
   actions bottom-left, and a stepped pyramid of vertical bars on the right.

   The page supplies the look through custom properties on .cta:
     --cta-bg     background layers (radial blobs over a base colour)
     --cta-bar    bar colour — the bars are an SVG MASK (cta-bars.svg,
                  from tools/ctabars.py), so one file serves every theme
   plus the usual --heading / --ink / --brand overrides for the text and
   buttons. No literal colours here.
   ========================================================================== */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cta-bg, var(--ground));
  color: var(--ink);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: clamp(360px, 32vw, 480px);
}

.cta h2 {
  max-width: 11.47em;   /* = 17ch of DM Sans; em so the width holds while fonts load (11 Nov, QA) */
  font-size: var(--size-h2);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.cta .lede {
  margin-top: var(--space-5);
  max-width: 29.02em;   /* = 46ch of Inter; em so the width holds while fonts load (11 Nov, QA) */
  font-size: var(--size-body);
  color: var(--ink);
}

@media (max-width: 860px) {
  .cta__inner { min-height: 0; gap: var(--space-7); }
}

/* Start with one workflow (4 Nov, "Unlock Homepage Edits"; the layout
   settled the same day on outtake.ai's split card, user): one bordered
   board, 50/50. Left, the copy and button on a teal-into-night field with
   a Sage rise, the trial-note badge under them; right, the three steps as
   rows on the panel lift, each with its drawing at the right end. The
   halves and the rows are split by 1px of the line colour showing through
   the board's gaps. Each drawing leads its row (4 Nov, user), and the band
   is plain night-deep: the streaks stayed in the hero only. */
.cta__board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--border-w);
  width: 100%;
  border: var(--border-w) solid var(--line); border-radius: var(--r-box, 6px);
  background: var(--line);
  overflow: clip;
  text-align: left;
}
.cta__board-copy {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(var(--space-7), 5vw, var(--space-9));
  background:
    radial-gradient(88% 75% at 50% 112%, color-mix(in srgb, var(--sage-ink) 62%, transparent), transparent 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--how-teal) 92%, var(--night-deep)), var(--night-deep));
}
.cta__board-copy h2 { max-width: 11.47em; }   /* = 17ch of DM Sans; em so the width holds while fonts load (11 Nov, QA) */
.cta__board-copy h1 { font-size: var(--size-h2); }   /* the contact page's heading is its h1 (28 Nov, SEO: every page one h1), set as the section heading it was */
.cta__board-copy .btn-group { margin-top: var(--space-7); margin-bottom: var(--space-6); }
.cta__board-copy .cta__note { margin-top: auto; }   /* anchors the panel's foot; the rows opposite set the height */
.cta-steps {
  display: grid; grid-auto-rows: minmax(0, 1fr); gap: var(--border-w);
  margin: 0; padding: 0; list-style: none;
}
.cta-steps li {
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: color-mix(in srgb, var(--ember-cream) 3%, var(--night-deep));
}
.cta-steps__text { flex: 1; min-width: 0; display: grid; gap: var(--space-3); }
.cta-steps__art { flex: none; width: clamp(130px, 11vw, 180px); }
.cta-steps__head { display: flex; align-items: center; gap: var(--space-3); }   /* the chip and the title share a line */
/* 4 Nov, user: the boxed number became Phosphor's duotone number circle. */
.cta-steps__number { --icon-size: 20px; flex: none; color: var(--ink-muted); }   /* neutral (13 Nov, user: less green — Sage for eyebrows, drawings, the hero and highlights only) */
.cta-steps h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: var(--display-tracking); color: var(--heading); }   /* 4 Nov, user: stepped down from 24 with the icons */
.cta-steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }   /* the Problems cards' line size */
/* "Illustrative" under the effort drawing (19 Nov, Rohit: so it isn't read
   as a promised result): a small DM Mono label (11px, as the phone menu's labels, so it sits with the drawing's own), muted, centred under it. */
.cta-steps .cta-steps__caption {
  margin-top: var(--space-2); text-align: center;
  font-family: var(--font-label); font-size: 11px; font-weight: 500; line-height: 1.65; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in oklab, var(--ink-muted) 70%, var(--ground));
}
/* The trial note: a quiet hairline chip (4 Nov; no fill, so the button
   above it stays the heaviest thing on the panel), the promise in stone,
   the terms muted, the check in Sage. */
.cta__note {
  display: inline-flex; align-items: flex-start; gap: var(--space-3);
  margin: 0; padding: var(--space-2) var(--space-4);
  border: var(--border-w) solid var(--line); border-radius: var(--r-box, 6px);
  font-size: 13px; line-height: 1.6; color: var(--ink-muted); text-align: left;
}
.cta__note strong { font-weight: 500; color: var(--ink); }
.cta__note .icon { --icon-size: 16px; flex: none; margin-top: 3px; color: var(--ink-muted); }
@media (max-width: 991px) {
  .cta__board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cta__board-copy { padding: var(--space-5); }   /* 24px on phones, like the steps (5 Nov, user; was 48px, the clamp's floor) */
  .cta__board-copy .btn-group { margin-top: var(--space-6); margin-bottom: var(--space-5); }
  .cta__note { flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); }   /* the tick above the lines on phones (5 Nov, user) */
  .cta__note .icon { margin-top: 0; }
  .cta-steps li { flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5); }
  .cta-steps__art { width: min(200px, 60%); }
}

/* The steps' heads at the main items' scale (27 Nov, user: "do these 24px"):
   the title in DM Sans 24 (20 before; 20 stays on phones) and the number
   circle 24 beside it. */
.cta-steps h3 { font-size: var(--size-h3); line-height: 1.15; }
.cta-steps__number { --icon-size: 24px; }
@media (max-width: 767px) { .cta-steps h3 { font-size: 20px; } }

/* The closing steps' titles as point titles (27 Nov, user: "it needs to be
   16px instead of 24px"): Inter 16, weight 500, the site's point title, with
   the number circle at 20px beside it; DM Sans 24 for a few hours. */
.cta-steps .cta-steps__head h3 { font: 500 16px/1.4 var(--font-body); letter-spacing: var(--text-tracking); }
.cta-steps .cta-steps__number { --icon-size: 20px; }
@media (max-width: 767px) { .cta-steps .cta-steps__head h3 { font-size: 16px; } }
.cta-steps .cta-steps__head { gap: var(--space-2); }   /* 8px between the number and the title (27 Nov, user: "reduce gap"; 12 before) */
