/* Offer and solve routes.
 *
 * Only what system.css does not already carry. Every rule is scoped to a
 * `.offer-` or `.solve-` class, every colour comes from a token or from the
 * band's own `currentColor` so a block reads correctly on any surface tone,
 * and nothing here animates a reveal, lifts on hover, glows, or puts a mark
 * inside a tile.
 */

/* ---------------------------------------------------------------------------
 * The four-question brief that opens an offer page.
 * Two columns on one grid so the question rows share a baseline whatever the
 * answer length, collapsing to one column when the measure runs out.
 * ------------------------------------------------------------------------ */

.offer-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 2.5rem 0 2.75rem;
  border-top: 1px solid color-mix(in oklab, currentColor 22%, transparent);
}

.offer-brief-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.55rem;
  padding: 1.5rem 2rem 1.75rem 0;
  border-bottom: 1px solid color-mix(in oklab, currentColor 14%, transparent);
}

.offer-brief-item dt {
  font-family: var(--display, inherit);
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: currentColor;
}

.offer-brief-item dd {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: color-mix(in oklab, currentColor 78%, transparent);
}

@media (max-width: 38.75rem) {
  .offer-brief {
    grid-template-columns: minmax(0, 1fr);
    margin: 1.5rem 0 1.75rem;
  }

  .offer-brief-item {
    padding: 0.9rem 0.75rem 1rem 0;
  }

  .offer-brief-item dt {
    font-size: 0.9rem;
  }

  .offer-brief-item dd {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

/* Application Design is a working page, not a form landing page. Its first
 * section takes a broad right-anchored measure, then the page changes rhythm
 * as it moves through tools, inputs, qualification, and contact. */
.application-design-hero .open-statement,
.gear-train-hero .open-statement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.application-design-hero .statement,
.application-design-hero .statement-lead,
.gear-train-hero .statement,
.gear-train-hero .statement-lead {
  width: min(100%, 62rem);
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.application-design-hero > .band-inner > .action,
.gear-train-hero > .band-inner > .action {
  display: flex;
  width: fit-content;
  margin-top: 2rem;
  margin-left: 0;
}

.application-design-tools .open-inline,
.application-design-tools .open-inline .open-lead {
  text-align: center;
}

.application-design-tools .open-inline h2 {
  max-width: none;
}

.application-design-tools .open-inline .open-lead {
  margin-right: auto;
  margin-left: auto;
}

.application-design-path .open-inline {
  max-width: 62rem;
}

.application-design-intake .open-sheet,
.gear-train-intake .open-sheet {
  max-width: 70rem;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 720px) {
  .application-design-hero .open-statement,
  .gear-train-hero .open-statement,
  .application-design-intake .open-sheet,
  .gear-train-intake .open-sheet {
    width: auto;
    margin-right: 0;
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
  }

  .application-design-hero .statement,
  .application-design-hero .statement-lead,
  .gear-train-hero .statement,
  .gear-train-hero .statement-lead {
    width: auto;
    margin-left: 0;
    text-align: left;
  }

  .application-design-hero > .band-inner > .action,
  .gear-train-hero > .band-inner > .action {
    margin-left: 0;
  }
}

@media (min-width: 62rem) {
  .offer-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-brief-item:nth-child(odd) {
    padding-right: 3rem;
  }
  .offer-brief-item:nth-child(even) {
    padding-left: 3rem;
    border-left: 1px solid color-mix(in oklab, currentColor 14%, transparent);
  }
}

/* ---------------------------------------------------------------------------
 * Evidence checklists and term lists. A ruled record, not a row of cards.
 * ------------------------------------------------------------------------ */

.offer-checklist,
.solve-points {
  margin: 2rem 0 0;
  border-top: 1px solid color-mix(in oklab, currentColor 20%, transparent);
}

.offer-checklist-item,
.solve-point {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid color-mix(in oklab, currentColor 12%, transparent);
}

@media (min-width: 54rem) {
  .offer-checklist-item,
  .solve-point {
    grid-template-columns: minmax(12rem, 19rem) minmax(0, 1fr);
    align-items: start;
  }
}

.offer-checklist-item dt,
.solve-point dt {
  font-family: var(--display, inherit);
  font-size: 1.0625rem;
  line-height: 1.3;
  text-wrap: balance;
}

.offer-checklist-item dd,
.solve-point dd {
  margin: 0;
  max-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: color-mix(in oklab, currentColor 80%, transparent);
}

.solve-point dd > p {
  margin: 0 0 0.7rem;
}

.solve-point dd > p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * Form additions: the inline error, the error index, the carried context line,
 * the optional detail step, and the consent row.
 * ------------------------------------------------------------------------ */

.offer-error {
  color: var(--copper, currentColor);
  font-weight: 600;
}

.offer-errorlist {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.offer-errorlist li {
  padding: 0.25rem 0;
  font-size: 0.9375rem;
}

.offer-errorlist a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.offer-context {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, currentColor 72%, transparent);
}

.offer-context span {
  font-family: var(--mono, monospace);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.offer-continuation {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: color-mix(in oklab, currentColor 7%, transparent);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.offer-continuation span {
  font-family: var(--mono, monospace);
}

.offer-detail {
  margin: 0.5rem 0 0.25rem;
  padding: 0;
  border-top: 1px solid color-mix(in oklab, currentColor 20%, transparent);
  border-bottom: 1px solid color-mix(in oklab, currentColor 20%, transparent);
}

.offer-detail > summary {
  padding: 1.05rem 0;
  font-family: var(--display, inherit);
  font-size: 1.0625rem;
  line-height: 1.3;
  cursor: pointer;
}

.offer-detail > summary::marker {
  color: color-mix(in oklab, currentColor 55%, transparent);
}

.offer-detail > summary::-webkit-details-marker {
  color: color-mix(in oklab, currentColor 55%, transparent);
}

.offer-detail > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.offer-detail-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem 1.75rem;
  padding: 0.25rem 0 1.75rem;
}

.offer-detail-fields > .field-wide,
.offer-detail-fields > .field-group {
  grid-column: 1 / -1;
}

.offer-consent {
  padding-top: 0.5rem;
}

/* ---------------------------------------------------------------------------
 * The receipt.
 * ------------------------------------------------------------------------ */

.offer-projectid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.1rem;
  margin: 2.25rem 0 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid color-mix(in oklab, currentColor 24%, transparent);
  border-bottom: 1px solid color-mix(in oklab, currentColor 24%, transparent);
}

.offer-projectid span {
  font-size: 0.8125rem;
  color: color-mix(in oklab, currentColor 65%, transparent);
}

.offer-projectid strong {
  font-family: var(--mono, monospace);
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.offer-link-wrap {
  margin: 1.75rem 0 2rem;
}

.offer-link {
  display: inline-block;
  max-width: 100%;
  padding: 0.85rem 0;
  font-family: var(--mono, monospace);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  color: inherit;
  text-underline-offset: 0.25em;
}

.offer-note-line {
  max-width: var(--measure-width, 38rem);
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: color-mix(in oklab, currentColor 72%, transparent);
}

/* ---------------------------------------------------------------------------
 * The /solve hub. Conditions in the words an engineer uses, not a card grid.
 * ------------------------------------------------------------------------ */

.solve-symptoms {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in oklab, currentColor 22%, transparent);
}

.solve-symptom {
  display: grid;
  gap: 0.55rem 3rem;
  padding: 1.6rem 0 1.75rem;
  border-bottom: 1px solid color-mix(in oklab, currentColor 13%, transparent);
}

@media (min-width: 58rem) {
  .solve-symptom {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
      "said read"
      "said go";
    align-items: start;
  }
  .solve-symptom-said {
    grid-area: said;
  }
  .solve-symptom-read {
    grid-area: read;
  }
  .solve-symptom-go {
    grid-area: go;
    align-self: end;
  }
}

.solve-symptom-said {
  margin: 0;
  max-width: 30rem;
  font-family: var(--display, inherit);
  font-size: clamp(1.0625rem, 2.1vw, 1.3rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

.solve-symptom-read {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: color-mix(in oklab, currentColor 78%, transparent);
}

.solve-symptom-go {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}

.solve-symptom-go a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: from-font;
}

/* ---------------------------------------------------------------------------
 * Long-form technical prose inside a solve page.
 * ------------------------------------------------------------------------ */

.solve-points + .solve-points {
  margin-top: 2.5rem;
}
