/* App Factory brief: a focused extension of the shared local brief workbench. */
.app-brief-v9 {
  --app-plum: #cbb0e9;
  --app-plum-dim: #a995ba;
  --app-gold: #edcb83;
}

.app-brief-v9 .app-brief-page {
  padding-top: 31px;
}

.app-brief-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1450px;
  margin: 0 auto 38px;
  color: #aebfba;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .09em;
}

.app-brief-back a {
  color: #dfc58c;
  letter-spacing: 0;
  text-underline-offset: 5px;
}

.app-brief-back a span {
  margin-right: 8px;
}

.app-brief-back > span {
  color: #95aaa7;
  font-size: 10px;
  letter-spacing: .14em;
}

.app-brief-v9 .app-brief-intro {
  max-width: 830px;
  margin-bottom: 33px;
}

.app-brief-v9 .app-brief-intro h1 {
  max-width: 20ch;
  margin-bottom: 17px;
}

.app-brief-v9 .app-brief-intro > p:not(.eyebrow) {
  max-width: 63ch;
  font-size: 17px;
}

.app-brief-layout {
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 26px;
}

.app-brief-workbench {
  border-color: #99a4bd54;
  background: linear-gradient(132deg, #1b3341 0%, #102733 53%, #101f2c 100%);
}

.app-brief-heading {
  margin-bottom: 25px;
}

.app-brief-kicker {
  margin: 0 0 10px;
  color: var(--app-plum);
  font-size: 11px;
  letter-spacing: .13em;
}

.app-brief-heading h2 {
  max-width: 26ch;
  margin-bottom: 9px;
}

.app-brief-heading > p:last-child {
  max-width: 59ch;
}

.app-brief-path {
  margin: 0 0 25px;
  padding: 20px 21px 17px;
  border: 1px solid #c4a4e256;
  border-radius: 8px;
  background: linear-gradient(116deg, #62477636, #18273478 76%);
}

.app-brief-path .brief-field {
  margin-bottom: 7px;
  color: #f0e9f5;
}

.app-brief-path .brief-field select {
  border-color: #c7acd15c;
  background-color: #101e2b;
}

.app-brief-path > p,
.app-brief-hint {
  margin: 0;
  color: #b9c5c2;
  font-size: 13px;
  line-height: 1.65;
}

.app-brief-section {
  margin: 0;
  border-top: 1px solid #aebdc04a;
}

.app-brief-section:last-of-type {
  border-bottom: 1px solid #aebdc04a;
}

.app-brief-section > summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 4px;
  color: #edf2ec;
  cursor: pointer;
  list-style: none;
}

.app-brief-section > summary::-webkit-details-marker,
.app-brief-contact-more > summary::-webkit-details-marker {
  display: none;
}

.app-brief-section > summary::marker,
.app-brief-contact-more > summary::marker {
  content: "";
}

.app-brief-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #edcb8369;
  border-radius: 50%;
  color: var(--app-gold);
  font-size: 12px;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

.app-brief-section summary strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.app-brief-section summary small {
  display: block;
  margin-top: 3px;
  color: #aebfbd;
  font-size: 13px;
  line-height: 1.55;
}

.app-brief-chevron {
  color: var(--app-gold);
  font-size: 20px;
  text-align: center;
}

.app-brief-section[open] .app-brief-chevron {
  transform: rotate(45deg);
}

.app-brief-section-body {
  padding: 4px 3px 20px 54px;
}

.app-brief-section-body .brief-field {
  margin-bottom: 19px;
}

.app-brief-section-body .brief-field:last-child {
  margin-bottom: 0;
}

.app-brief-section-body textarea {
  min-height: 94px;
}

.app-brief-section-body .brief-field[for="app-problem"] textarea,
.app-brief-section-body .brief-field[for="app-workflow"] textarea {
  min-height: 116px;
}

.app-brief-hint {
  margin: -13px 0 18px;
}

.app-brief-short-fields {
  gap: 15px;
  margin-top: 4px;
}

.app-brief-contact {
  margin-top: 26px;
  padding: 21px 21px 6px;
  border: 1px solid #a6b9af45;
  border-radius: 8px;
  background: linear-gradient(120deg, #243c4338, #0c2029b8);
}

.app-brief-subhead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.app-brief-subhead > div {
  min-width: 0;
}

.app-brief-subhead h3 {
  margin: 0 0 4px;
  color: #eef2ea;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.45;
}

.app-brief-subhead p {
  margin: 0;
  color: #b4c5c0;
  font-size: 13px;
  line-height: 1.6;
}

.app-brief-contact .brief-field-grid {
  gap: 0 17px;
}

.app-brief-contact-more {
  border-top: 1px solid #9bbabb38;
  margin: 0 0 7px;
}

.app-brief-contact-more > summary {
  padding: 14px 0;
  color: #d2c3e2;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.app-brief-contact-more > summary::before {
  content: "+";
  margin-right: 11px;
  color: var(--app-gold);
}

.app-brief-contact-more[open] > summary::before {
  content: "−";
}

.app-brief-contact-more .brief-field-grid {
  padding-top: 9px;
}

.app-brief-form-end {
  margin-top: 25px;
}

.app-brief-review-button {
  width: 100%;
  justify-content: space-between;
}

.app-brief-novah {
  border-color: #bba6ce4d;
  background: radial-gradient(ellipse at 50% 20%, #694e7d42, transparent 64%), linear-gradient(140deg, #172e3d, #101d2a 92%);
}

.app-brief-v9 .brief-novah-copy > .eyebrow {
  color: #d4bde9;
}

.app-brief-v9 .brief-novah-copy h2 {
  max-width: 11ch;
}

.app-brief-v9 .brief-novah-button {
  min-height: 58px;
  border-color: #c5a7df9c;
  background: linear-gradient(120deg, #5d4677, #342e52);
  color: #f6eefb;
  line-height: 1.45;
}

.app-brief-v9 .brief-novah-button:hover {
  border-color: #e0c6f4;
  background: linear-gradient(120deg, #695081, #413960);
}

.app-brief-v9 .brief-helper-honesty {
  color: #c1b6ce;
}

.app-brief-bottom-note {
  justify-content: space-between;
}

.app-brief-v9 .brief-form-end .brief-local-note {
  max-width: 68ch;
}

@media (max-width: 1040px) {
  .app-brief-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 20px;
  }

  .app-brief-page {
    padding-inline: 4%;
  }
}

@media (max-width: 820px) {
  .app-brief-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-brief-novah {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .app-brief-v9 .brief-novah-stage {
    height: 245px;
  }

  .app-brief-v9 .brief-novah-stage > img {
    width: 190px;
    height: 190px;
  }

  .app-brief-v9 .brief-orbit {
    width: 220px;
    height: 100px;
  }

  .app-brief-v9 .brief-novah-copy {
    padding: 24px;
  }

  .app-brief-v9 .brief-next {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .app-brief-v9 .app-brief-page {
    padding: 23px 18px 42px;
  }

  .app-brief-back {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 27px;
  }

  .app-brief-v9 .app-brief-intro {
    margin-bottom: 27px;
  }

  .app-brief-v9 .app-brief-intro h1 {
    font-size: clamp(39px, 11vw, 54px);
    line-height: 1.08;
  }

  .app-brief-v9 .app-brief-intro > p:not(.eyebrow) {
    font-size: 16px;
  }

  .app-brief-v9 .brief-workbench-top {
    padding: 15px 18px;
  }

  .app-brief-v9 #brief-form,
  .app-brief-v9 .brief-review {
    padding: 23px 18px;
  }

  .app-brief-heading h2 {
    font-size: 25px;
  }

  .app-brief-path {
    padding: 16px 15px 14px;
  }

  .app-brief-section > summary {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 80px;
  }

  .app-brief-section-body {
    padding-left: 0;
  }

  .app-brief-contact {
    margin-inline: -1px;
    padding: 18px 15px 5px;
  }

  .app-brief-short-fields,
  .app-brief-contact .brief-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-brief-novah {
    display: block;
  }

  .app-brief-v9 .brief-novah-stage {
    height: 220px;
  }

  .app-brief-v9 .brief-novah-stage > img {
    width: 176px;
    height: 176px;
  }

  .app-brief-v9 .brief-novah-copy {
    padding: 18px 22px 24px;
  }

  .app-brief-v9 .brief-next {
    padding: 18px 22px 21px;
  }

  .app-brief-v9 .brief-review-actions {
    display: grid;
  }

  .app-brief-v9 .brief-review-actions > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-brief-v9 *,
  .app-brief-v9 *::before,
  .app-brief-v9 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
