/* ============================================================
   Convene landing page — /convene/ (VIV-6667)

   Loaded after /styles.css, which owns the tokens, .wrap, .section,
   .section-head, .eyebrow, .btn* and .sbx-input/.sbx-err primitives this file
   builds on. Everything here is `cv-`-prefixed and page-scoped.

   No product screenshots exist for Convene yet, so every "visual" in the spec
   is a CSS abstraction (bars, rows, chips) — no <img>, no invented asset, and
   all of it aria-hidden so the a11y tree only sees the real copy.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================ 1 — HERO ============================ */
.cv-hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
.cv-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cv-hero .wrap { position: relative; z-index: 1; }
.cv-hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  max-width: 20ch;
  margin: 20px 0 0;
}
.cv-hero .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 22px 0 0;
  line-height: 1.55;
}
.cv-hero .hero-actions {
  margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

/* ---------- Hero product visual (the per-meeting workspace) ---------- */
.cv-stage {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cv-stage-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--light-cream);
  border-bottom: 1px solid var(--line);
}
.cv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
/* --ink-2, not --ink-3: ink-3 on --light-cream measures 4.21:1, under the 4.5:1
   WCAG AA floor for text this size. Same reason on .cv-persona below. */
.cv-stage-title {
  margin-left: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.cv-stage-body { background: var(--white); }

/* Screenshot inside any chrome frame on this page (hero + use-case cards). */
.cv-shot { display: block; width: 100%; height: auto; }

/* The hero shot is the SAME file as use-case card 1, cropped here to a 2:1
   band so the hero stays a glance rather than a full-page screenshot dump.
   `cover` + `object-position: top` on a 2 / 1 box shows the top
   (1/2) / (1214/1600) = 65.9% of the image — the first 800px of 1214 — which
   lands in the gutter between the decisions card and the documents card at
   EVERY viewport width, because the fraction is width-independent. Change the
   image and you must re-check where that line falls. */
.cv-stage-shot {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top center;
}

/* ===== TEMPORARY — Convene webinar promo (VIV-7023). Remove after 2026-09-16. =====
   Paired with the fenced block in src/convene.njk; deleting both removes the
   feature completely.

   Deliberately NOT a third primary CTA: no teal fill, no shadow, smaller type
   than the hero actions, and a .btn-ghost (outlined) button, so the strip reads
   as a dated notice hanging off the bottom of the hero shot rather than a peer
   of the H1's "Learn more". The kicker is --ink-2, not --brand: teal on
   --brand-tint measures well under the 4.5:1 AA floor for text this size. */
.cv-promo {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  border-radius: var(--r-md);
}
.cv-promo-icon { flex: none; color: var(--brand-strong); }
.cv-promo-copy { flex: 1 1 340px; min-width: 0; }
.cv-promo-kicker {
  display: block;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.cv-promo-line {
  margin: 5px 0 0;
  font-size: 15.5px; line-height: 1.45; color: var(--ink-2);
}
/* Slightly tighter than a hero CTA so it never out-weighs the buttons above. */
.cv-promo-cta { flex: none; padding: 11px 20px; font-size: 12.5px; }

/* Stack and go full-width at the same breakpoint the hero actions use. */
@media (max-width: 540px) {
  .cv-promo { align-items: stretch; gap: 12px; padding: 18px; }
  .cv-promo-icon { display: none; }
  .cv-promo-copy { flex: 1 1 auto; }
  .cv-promo-cta { width: 100%; justify-content: center; }
}
/* ===== END TEMPORARY (VIV-7023) ===== */

/* Bar-chart abstraction */
.cv-chart {
  display: flex; align-items: flex-end; gap: 10px;
  height: 116px; margin-bottom: 20px;
}
.cv-chart span {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-tint-2) 100%);
}
.cv-chart span:nth-child(even) { background: linear-gradient(180deg, var(--ash) 0%, #D8D5D0 100%); }
.cv-chart-sm { height: 54px; gap: 7px; margin-bottom: 0; }

/* Generic text-line abstraction */
.cv-lines { display: flex; flex-direction: column; gap: 8px; }
.cv-lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); }

/* Decision-record rows */
.cv-rec { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cv-rec i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.cv-tick {
  width: 14px; height: 14px; border-radius: 3px; flex: none;
  background: var(--brand-tint-2); border: 1px solid var(--brand);
  position: relative;
}
.cv-tick::after {
  content: ""; position: absolute; left: 3px; top: 4px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--brand-strong); border-bottom: 2px solid var(--brand-strong);
  transform: rotate(-45deg);
}
/* ==================== 1b — ALIGNMENT THESIS (the historical framing) ==================== */
.cv-thesis-sec { background: var(--light-cream); }
.cv-thesis-sec.ruled::before { background: var(--line-strong); }
.cv-thesis-lede h2 {
  font-size: clamp(28px, 3.2vw, 42px); max-width: 26ch; margin-top: 18px;
}
.cv-thesis-lede .lead {
  font-size: 18px; color: var(--ink-2); line-height: 1.55;
  margin: 16px 0 0; max-width: 52ch;
}
.cv-beats {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cv-beat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 28px 30px;
}
/* The middle beat is the turn in the argument ("the scorecard isn't enough"),
   so it carries the teal accent the other two don't. */
.cv-beat.is-accent { border-color: var(--brand-tint-2); background: var(--brand-tint); }
/* --ink-2, not --brand: teal measures 2.17:1 on white and 2.02:1 on
   --brand-tint, both well under the 4.5:1 AA floor for text this size, and the
   palette has no AA-safe teal. Same choice (and reason) as .cv-persona and
   .cv-stage-title above. The teal card background carries the accent instead. */
.cv-beat-k {
  display: block;
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.cv-beat h3 { font-size: 21px; margin-top: 12px; max-width: 22ch; }
.cv-beat p {
  font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 12px 0 0;
}

/* ============================ 2 — DECISION ARC ============================ */
.cv-arc {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.cv-step {
  padding: 32px 28px 34px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
}
.cv-step:last-child { border-right: 0; }
/* The "arc": a teal progress hairline riding the top edge of the four steps,
   so the run reads as one flow rather than four unrelated cards. */
.cv-step::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: var(--brand); opacity: .22;
}
.cv-step:first-child::before { opacity: 1; }
.cv-step:nth-child(2)::before { opacity: .72; }
.cv-step:nth-child(3)::before { opacity: .48; }
.cv-step-k {
  font-size: 11.5px; font-weight: 700; color: var(--brand);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cv-step h3 { font-size: 21px; margin-top: 12px; }
.cv-step p {
  font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 12px 0 0;
}
.cv-art {
  /* `margin-top: auto` pushes every artifact to the bottom of its step, so the
     four line up across the row regardless of body-copy length. */
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cv-avatars { display: flex; align-items: center; margin-bottom: 14px; }
.cv-avatars span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-tint-2); border: 2px solid var(--white);
  margin-right: -8px; flex: none;
}
.cv-avatars span:nth-child(even) { background: var(--line-strong); }
.cv-avatars b {
  margin-left: 16px; font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.cv-task { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cv-task i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.cv-snow {
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 6px; border-radius: 2px; flex: none;
  background: var(--dark-ash); color: var(--light-turq);
}

/* ============================ 3 — USE CASES ============================ */
/* One full-width row per use case — copy left, screenshot right, same shape as
   the /platform/ pillars. A third use case is just a third row: no grid maths
   to redo, no odd-card hole to patch. */
.cv-cases {
  margin-top: 56px;
  display: flex; flex-direction: column; gap: 28px;
}
.cv-case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px;
  align-items: center;
}
.cv-case-copy { display: flex; flex-direction: column; align-items: flex-start; }
.cv-persona {
  display: inline-block; align-self: flex-start;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: var(--light-cream); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.cv-case h3 { font-size: clamp(22px, 2.1vw, 27px); margin-top: 18px; max-width: 26ch; }
.cv-case p {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.62; margin: 16px 0 0;
}
/* Authentic product screenshot per row, in the same chrome frame as the hero
   (.cv-stage-bar / .cv-dot / .cv-stage-title are reused verbatim).
   `min-width: 0` so the image can shrink inside its grid track instead of
   forcing the row wider than the card. */
.cv-case-vis { margin: 0; min-width: 0; }
.cv-case-vis > .cv-stage-bar {
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 10px 14px;
}
.cv-case-vis > .cv-shot {
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
/* VIV-7014 removed the per-card micro-CTAs, so the `.cv-case .btn-text` rule
   that spaced them is gone with them. The copy column now ends on the <p>
   (margin-bottom 0) and the card's own 40px padding carries the trailing space;
   the row is align-items: center, so nothing else needs adjusting. */

/* ============================ 4 — INTEGRATION CALLOUT ============================ */
.cv-loop-sec { background: var(--light-cream); }
.cv-loop-sec.ruled::before { background: var(--line-strong); }
.cv-loop {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.cv-loop-copy h2 { font-size: clamp(28px, 3.2vw, 42px); max-width: 24ch; }
.cv-loop-copy p {
  font-size: 17px; color: var(--ink-2); line-height: 1.6; margin: 20px 0 0; max-width: 58ch;
}
.cv-loop-copy .cv-support {
  font-size: 16px; font-weight: 700; color: var(--ink);
  padding-left: 18px; border-left: 2px solid var(--brand);
  max-width: 52ch;
}
.cv-loop-copy .btn-text { margin-top: 22px; text-align: left; }

.cv-loop-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 28px 26px;
}
.cv-node {
  text-align: center; padding: 18px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #FBFAF8;
}
.cv-node.is-accent { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.cv-node-k {
  display: block; font-size: 10px; font-weight: 700; color: var(--ink-3);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.cv-node b {
  display: block; margin-top: 7px;
  font-family: var(--font-display); font-size: 16px; color: var(--ink);
}
.cv-node.is-accent b { color: var(--brand-strong); }
.cv-arrow { color: var(--line-strong); }
.cv-arrow svg { width: 20px; height: 20px; display: block; }
/* The return leg of the loop, drawn as a labelled rule under all three nodes. */
.cv-loop-back {
  grid-column: 1 / -1; margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  text-align: center;
}
.cv-loop-back span {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}

/* ============================ 5 — SOCIAL PROOF ============================
   Layout only. The section does not render at all until the `socialProof`
   frontmatter flag flips to true (VIV-6633 open item #2), so nothing here can
   put unattributed or placeholder copy on the page. */
.cv-proof { max-width: 860px; }
.cv-quote { margin: 0; }
.cv-quote p {
  font-family: var(--font-display); font-weight: var(--heading-weight);
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.28; color: var(--ink);
  margin: 0;
}
.cv-quote p::before { content: "\201C"; color: var(--brand); }
.cv-quote p::after { content: "\201D"; color: var(--brand); }
.cv-cite { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.cv-cite-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.cv-cite-role { font-size: 14px; color: var(--ink-3); }

/* ============================ 6 — FINAL CTA ============================ */
.cv-final {
  background: var(--dark-blue); border-radius: var(--r-md);
  padding: 56px 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.cv-final-copy h2 { color: #fff; font-size: clamp(26px, 2.9vw, 38px); max-width: 22ch; }
.cv-final-copy .lead {
  color: rgba(255,255,255,.72); font-size: 17px; margin-top: 16px;
  line-height: 1.55; max-width: 46ch;
}
.cv-final-act { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cv-contrast {
  font-family: var(--font-display); font-weight: var(--heading-weight);
  font-size: 18px; line-height: 1.4; color: var(--light-turq);
  padding-left: 18px; border-left: 2px solid var(--brand);
  margin: 0; max-width: 34ch;
}

/* ============================= LEARN MORE FORM ============================= */
.cv-form-card {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px;
  align-items: start;
}
.cv-form-intro h2 { font-size: clamp(26px, 2.7vw, 36px); margin-top: 16px; max-width: 18ch; }
.cv-form-intro p {
  font-size: 16.5px; color: var(--ink-2); line-height: 1.6; margin-top: 18px; max-width: 44ch;
}
#convene-form[hidden] { display: none; }
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cv-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cv-field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cv-opt { font-weight: 500; color: var(--ink-3); }
/* .sbx-input (styles.css) carries the border / focus ring / .is-invalid state;
   only the box model differs here, since this is a stacked form not an inline one. */
.cv-form-card .sbx-input { width: 100%; }
.cv-textarea {
  resize: vertical; min-height: 108px; line-height: 1.55;
  font-family: var(--font-body);
}
#convene-form .btn-brand { margin-top: 6px; }

.cv-success {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 28px 30px;
  background: var(--brand-tint); border: 1px solid var(--brand-tint-2);
  border-radius: var(--r-md);
}
.cv-success[hidden] { display: none; }
.cv-success-ic { color: var(--brand-strong); flex: none; line-height: 1; }
.cv-success-msg {
  margin: 0;
  font-family: var(--font-display); font-weight: var(--heading-weight);
  font-size: 18px; line-height: 1.45; color: var(--ink);
}

/* ============================ RESPONSIVE ============================
   Breakpoints verified at 1280 / 768 / 375. Every multi-column grid above
   collapses, and no element carries a fixed width, so there is no horizontal
   overflow at 375px. */
@media (max-width: 1000px) {
  .cv-arc { grid-template-columns: repeat(2, 1fr); }
  /* With two per row the right-hand step must not keep a divider on the edge. */
  .cv-step:nth-child(2n) { border-right: 0; }
  .cv-step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cv-loop { grid-template-columns: 1fr; gap: 44px; }
  .cv-final { grid-template-columns: 1fr; gap: 32px; padding: 44px 40px; }
  .cv-form-card { grid-template-columns: 1fr; gap: 36px; }
  .cv-beats { grid-template-columns: 1fr; gap: 18px; }
  /* Use-case rows stack: copy first, then the screenshot underneath — which
     also hands the shot the full card width instead of a 55% track. */
  .cv-case { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .cv-hero { padding: 56px 0 40px; }
  .cv-stage { margin-top: 40px; }
  /* Spec: the 4-step arc stacks on mobile. */
  .cv-arc { grid-template-columns: 1fr; margin-top: 44px; }
  .cv-step { border-right: 0; border-top: 1px solid var(--line); padding: 28px 0 30px; }
  .cv-step:first-child { border-top: 0; }
  .cv-step::before { display: none; }
  .cv-art { margin-top: 22px; }
  .cv-beats { margin-top: 34px; }
  .cv-beat { padding: 24px 24px 26px; }
  .cv-cases { gap: 20px; margin-top: 40px; }
  .cv-case { padding: 30px 26px; gap: 26px; }
  .cv-loop-diagram { grid-template-columns: 1fr; padding: 26px 22px 20px; }
  /* Rotate the connector arrows once the nodes stack vertically. */
  .cv-arrow { transform: rotate(90deg); margin: 0 auto; }
  .cv-final { padding: 36px 26px; }
  .cv-row { grid-template-columns: 1fr; gap: 0; }
  .cv-success { padding: 22px 22px; }
}

@media (max-width: 540px) {
  .cv-hero .hero-actions { align-items: stretch; }
  .cv-hero .hero-actions .btn-brand { width: 100%; justify-content: center; }
  #convene-form .btn-brand { width: 100%; justify-content: center; }
  .cv-final-act .btn-brand { width: 100%; justify-content: center; }
  .cv-contrast { font-size: 17px; }
}
