/* styles/sections/coach-form.css
 * The accelerator coaches (Speedrun, Y Combinator): the field-label marks, the paste counter,
 * the disclosure block and the quote cards that sit below the form card's CTA (D-406,
 * BRI-6126). The card, fields and buttons come from lite-form.css, forms.css and actions.css;
 * the quotes are the shared testimonial figure (components/testimonial.js), styled here.
 * Replaces css/accelerator-coach.css. */
@layer sections {
  .lite-required,
  .lite-optional {
    color: var(--ink-55);
    font-weight: 400;
  }

  /* Updates on every keystroke; read once on focus through aria-describedby, so it is not live. */
  #answers-counter {
    margin: 0;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  /* A footnote for the rare visitor with nothing drafted, under the CTA. */
  #btn-send + .accel-draft-note {
    margin: var(--space-12) 0 0;
    font-size: 13px;
    text-align: center;
  }

  /* Below the CTA: the disclosure is its own visible block, not a muted legal footer. */
  .accel-disclosure {
    margin: var(--space-32) 0;
    padding: var(--space-16);
    border: 1px solid var(--rule-edge);
    border-radius: var(--radius-lg);
    background: var(--white);
  }

  .accel-disclosure p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
  }

  .accel-quotes {
    display: grid;
    gap: var(--space-16);
    margin: 0 0 var(--space-8);
  }

  .accel-quotes .testimonial-card {
    margin: 0;
    padding: var(--space-16);
    border: 1px solid var(--rule-edge);
    border-radius: var(--radius-lg);
    background: var(--white);
  }

  .accel-quotes .testimonial-quote {
    margin: 0 0 var(--space-12);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
  }

  .accel-quotes .testimonial-quote p {
    margin: 0;
  }

  /* Byline flush right under the quote: the attribution primitive's look (name 14/500 ink,
     role 13 muted, 1px apart) on the shared emitter's own classes. */
  .accel-quotes .testimonial-attribution,
  .accel-quotes .testimonial-person {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .accel-quotes .testimonial-person {
    gap: 1px;
  }

  .accel-quotes .testimonial-name {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
  }

  .accel-quotes .testimonial-role {
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.2;
  }

  .accel-quotes .testimonial-source {
    width: fit-content;
    min-height: 24px;
    color: var(--fern);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
  }

  @media (width >= 900px) {
    .accel-disclosure,
    .accel-quotes .testimonial-card {
      padding: var(--space-16) var(--space-24);
    }
  }
}
