/* Hero composer and the illustration at the start of the timeline. */
.swarme-home-composer,
.swarme-home-composer .c-hero-home_inner { background-color: #e8b9fa; }
.swarme-home-composer .c-hero-home_content { width: 100%; max-width: 1120px; padding: 0; gap: 0; position: relative; z-index: 6; opacity: 1; transform: none; }
.swarme-home-composer .c-hero-home_container { z-index: 6; padding-bottom: clamp(64px, 10svh, 96px); }
/* Let the larger form stay in normal flow, including when the student resizes it.
   It must remain readable and never slide underneath the next section. */
.swarme-home-composer .c-hero-home_inner.-sticky { position: relative; height: auto; display: block; }
.swarme-home-composer .c-hero-home_inner.-sticky .c-hero-home_container { position: relative; }
.swarme-home-composer .home-composer-spacer { display: none; }
.swarme-home-composer .c-hero-home_inner::before { display: none; }
/* Keep the illustration at its former final position, aligned with the orange
   path. The existing sizes, negative margins and SVG connectors stay aligned. */
.swarme-home-composer + .c-homepage-timeline .c-homepage-timeline_intro_illustration_wrap { top: 0; }
.swarme-home-composer + .c-homepage-timeline .c-homepage-timeline_intro_illustration_sticky { position: absolute; top: auto; bottom: 0; width: 100%; height: auto; }
.swarme-home-composer + .c-homepage-timeline .c-homepage-timeline_intro_illustration { --scale-start: 1; --scale-end: 1; transform: none; }
.home-composer-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.home-composer-eyebrow span { margin-left: 10px; font-weight: 400; }
.home-composer-title { max-width: 1000px; margin: 0 auto; font-size: clamp(2.5rem, 5.8vw, 5.25rem); line-height: 1.03; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
.home-composer-description { max-width: 680px; margin: 22px auto 28px; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5; text-wrap: balance; }
.swarme-home-composer swarme-entry-composer { display: block; width: min(100%, 900px); margin-inline: auto; }
.swarme-home-composer .swarme-entry-modes { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.swarme-home-composer .swarme-entry-modes button { min-height: 44px; padding: 10px 20px; border: 1px solid #ffffff66; border-radius: 999px; background: #ffffff80; font-size: 14px; font-weight: 500; line-height: 1.4; color: #292d2a; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.swarme-home-composer .swarme-entry-modes button[aria-pressed="true"] { border-color: #292d2a; background: #292d2a; color: white; }
.swarme-home-composer .swarme-entry-modes button[data-entry-mode="question"] { background: #c2ee98; color: #292d2a; }
.swarme-home-composer .swarme-entry-modes button[data-entry-mode="question"][aria-pressed="true"] { background: #95d45b; box-shadow: inset 0 0 0 2px #292d2a; }
.swarme-home-composer .swarme-entry-send { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.swarme-home-composer .swarme-entry-modes button:hover { transform: translateY(-2px); }
.swarme-home-composer .swarme-entry-form { padding: 30px 32px 0; border: 1px solid #49365340; border-radius: 30px; background: #fff; color: #292d2a; outline: 6px solid #ffffff3d; box-shadow: 0 7px 0 -1px #ce8ce3, 0 28px 54px -20px #63367659; text-align: left; overflow: hidden; transition: box-shadow .2s, border-color .2s, outline-color .2s; }
.swarme-home-composer .swarme-entry-form:focus-within { border-color: #e78b48; outline-color: #ffffff99; box-shadow: 0 7px 0 -1px #ce8ce3, 0 28px 54px -20px #63367659; }
.swarme-home-composer .swarme-entry-question-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.swarme-home-composer .swarme-entry-prompt-label { display: block; margin-bottom: 16px; font-size: 13px; line-height: 20px; font-weight: 500; color: #76667c; }
.swarme-home-composer textarea { display: block; box-sizing: border-box; width: 100%; height: 106px; min-height: 106px; max-height: 280px; margin: 0; resize: vertical; padding: 0; border: 0; outline: 0; font: inherit; font-size: clamp(1.125rem, 1.9vw, 1.625rem); line-height: 1.45; letter-spacing: -.02em; color: #292d2a; caret-color: #ff8a3d; background: transparent; }
.swarme-home-composer textarea::placeholder { color: #5e5463; opacity: 1; }
.swarme-home-composer .swarme-entry-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 20px -32px 0; padding: 14px 18px; border-top: 1px solid #eae4ee; background: #f7f4fa; }
.swarme-home-composer .swarme-entry-status { min-height: 20px; margin-top: 12px; padding-inline: 12px; font-size: 14px; line-height: 1.5; color: #292d2a; }
.swarme-home-composer .swarme-entry-status:empty { min-height: 0; margin-top: 0; }
.swarme-home-composer [hidden] { display: none !important; }
.swarme-home-composer :is(button, select):focus-visible { outline: 2px solid #292d2a; outline-offset: 4px; }
.swarme-home-composer .swarme-entry-send:focus-visible { outline-color: #292d2a; }
.swarme-home-composer textarea::selection { color: #292d2a; background: #efd6fa; }
.swarme-home-composer button:disabled { opacity: .6; cursor: not-allowed; }
@media (min-width: 1000px) and (max-height: 760px) {
  .swarme-home-composer .c-hero-home_container { padding-bottom: 48px; }
  .home-composer-title { font-size: clamp(3rem, 5vw, 4rem); }
  .home-composer-description { margin-top: 16px; margin-bottom: 22px; }
  .swarme-home-composer textarea { height: 96px; min-height: 96px; }
}
@media (max-width: 699px) {
  .home-composer-eyebrow span { display: block; margin: 4px 0 0; }
  .home-composer-description { margin: 16px 0 24px; }
  .swarme-home-composer .swarme-entry-modes { gap: 6px; }
  .swarme-home-composer .swarme-entry-modes button { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 599px) {
  .swarme-home-composer .swarme-entry-form { padding: 22px 20px 0; border-radius: 26px; outline-width: 4px; }
  .swarme-home-composer .swarme-entry-prompt-label { margin-bottom: 12px; }
  .swarme-home-composer textarea { height: 120px; min-height: 120px; padding-inline: 0; font-size: 18px; line-height: 27px; }
  .swarme-home-composer .swarme-entry-toolbar { margin-inline: -20px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .swarme-home-composer :is(button, form, svg) { transition: none !important; }
}

