/* Connect page (/connect), on the homepage's look. The hero is the
   homepage's Connect block (css/sandbox.css); the section header, highlight,
   corner marks and logo strip are global. This file only adds the Bucks
   frame: the mark on Teal Dark beside the quote, in one 12px frame with the
   homepage's 12% hairline, on the proof section's ivory ground. */

.cp-bucks {
  background: var(--kit-ivory-tint);
  border-top: 1px solid var(--kit-ivory-medium);
}

.cp-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border: 1px solid rgba(32, 31, 29, .12);
  border-radius: 12px;
  background: var(--kit-white);
}

@media (min-width: 1024px) {
  .cp-frame { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* The corner marks' wrapper must not take a grid cell. */
.cp-frame > .st-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* The Bucks mark (two layers, as drawn) centred on Teal Dark. */
.cp-mark {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 11px 11px 0 0;
  background: var(--kit-teal-dark);
}

@media (min-width: 1024px) {
  .cp-mark { min-height: 360px; border-radius: 11px 0 0 11px; }
}

.cp-mark-wrap {
  position: relative;
  width: 120px;
  aspect-ratio: 201.987 / 250;
}

@media (min-width: 1024px) {
  .cp-mark-wrap { width: 160px; }
}

.cp-mark-a {
  position: absolute;
  left: .66%;
  top: .78%;
  width: 98%;
  height: 98.2%;
}

.cp-mark-b {
  position: absolute;
  left: 9.1%;
  top: 41.3%;
  width: 81.2%;
  height: 51.8%;
}

.cp-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
}

@media (min-width: 1024px) {
  .cp-quote { padding: 48px; }
}

.cp-quote blockquote {
  margin: 0;
}

.cp-quote p {
  margin: 0;
  font-size: var(--type-h4);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--kit-text-strong);
}

@media (min-width: 1024px) {
  .cp-quote p { font-size: 24px; }
}

.cp-person {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--type-caption);
  line-height: var(--type-body-lh);
  color: var(--kit-text-subtle);
}

.cp-person strong {
  display: block;
  font-size: var(--type-small);
  font-weight: 600;
  color: var(--kit-text-strong);
}

.cp-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* Hero from desktop: the heading across the top, then the lede on the left
   and the tool picker and form on the right. Higher specificity than the
   shared #connect grid in layout.css, which loads after this file. */
@media (min-width: 1024px) {
  .connect-embed #connect .hero-copy {
    grid-template-areas:
      "eyebrow eyebrow"
      "title   title"
      "desc    tool"
      "desc    form";
  }

  .connect-embed #connect .hero-copy > .hero-desc {
    align-self: start;
    margin-top: 28px;
    max-width: var(--l-text);
  }
}

/* Form messages and the consent line under the form. */
.connect-embed .connect-error {
  flex-basis: 100%;
  font-size: var(--type-body-s-size, 14px);
  line-height: 1.5;
  color: #B42318;
}
.connect-embed .connect-error[hidden],
.connect-embed .connect-consent[hidden] { display: none; }
.connect-embed .connect-form-row.is-sending .connect-btn { opacity: .6; cursor: progress; }
.connect-embed .connect-consent {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6B665E;
}
@media (min-width: 1024px) {
  .connect-embed #connect .hero-copy {
    grid-template-areas:
      "eyebrow eyebrow"
      "title   title"
      "desc    tool"
      "desc    form"
      "desc    consent";
  }
  .connect-embed #connect .hero-copy > .connect-consent { grid-area: consent; align-self: start; margin-top: -12px; }
}
