/* Flex: people-first editorial story within the shared Revvalo design. */
.flex-hero {
  padding: 4.5rem 0;
}
.flex-hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 4rem;
  align-items: center;
}
.flex-hero h1 {
  font-size: clamp(3.1rem, 4.8vw, 4.65rem);
  max-width: 14ch;
  line-height: 1.02;
}
.flex-hero h1 em {
  font-style: normal;
  color: var(--coral-ink);
}
.flex-hero .lead {
  max-width: 34rem;
}
.flex-hero .small {
  max-width: 33rem;
}
.flex-hero-art .hero-art__image {
  aspect-ratio: 1;
}
.flex-hero-art .context-card {
  bottom: 4.5rem;
}
.flex-people {
  background: var(--mint-light);
}
.flex-audiences .platform-card {
  padding: 2rem;
}
.flex-audiences .platform-number {
  display: block;
  margin-bottom: 2.5rem;
}
.flex-audiences .platform-card h3 {
  font-size: 1.8rem;
  max-width: 17ch;
}
.flex-audiences .platform-card p,
.flex-audiences li {
  font-size: 1rem;
}
.flex-audiences ul {
  margin: auto 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.flex-section-note {
  margin-top: 2rem;
  max-width: 54rem;
}
.flex-workflow {
  margin-top: 2.5rem;
}
.flex-chapter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.flex-chapter:first-child {
  padding-top: 2.5rem;
}
.flex-step {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral-ink);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.flex-chapter__title h3 {
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
  max-width: 18ch;
}
.flex-chapter__title p {
  color: var(--muted);
  max-width: 29rem;
}
.flex-chapter__body p {
  color: var(--muted);
  font-size: 1.05rem;
}
.flex-worker-story {
  background: var(--lilac-light);
}
.flex-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.flex-story-photo {
  border-radius: 1.5rem;
  background: var(--paper);
  padding: 1rem;
}
.flex-story-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem 7rem 1rem 1rem;
}
.flex-story-photo figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.1rem 0.25rem 0.25rem;
}
.flex-crm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
  margin-top: 3rem;
}
.flex-crm-grid article {
  border-top: 1px solid var(--dark-line);
  padding-top: 1.7rem;
}
.flex-crm-grid .flex-step {
  color: var(--yellow);
}
.flex-crm-grid h3 {
  font-size: 1.7rem;
}
.flex-crm-grid p {
  color: var(--on-dark);
  font-size: 1rem;
}
.flex-crm-grid .flex-crm-example {
  border-left: 2px solid var(--lilac);
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--paper);
}
.flex-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.flex-config-grid article {
  border-top: 1px solid var(--line);
  padding: 1.7rem 0 0.5rem;
}
.flex-config-grid h3 {
  font-size: 1.7rem;
}
.flex-config-grid p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 34rem;
}
.flex-faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.flex-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding-right: 0.5rem;
}
.flex-faq details p {
  color: var(--muted);
  margin: 1rem 0 0;
  font-size: 1rem;
}
@media (max-width: 1100px) {
  .flex-hero__grid {
    gap: 2.5rem;
  }
  .flex-hero h1 {
    font-size: 3.5rem;
  }
  .flex-hero-art .context-card {
    left: -1rem;
    padding: 1rem;
  }
  .flex-chapter {
    gap: 3rem;
  }
  .flex-story-grid {
    gap: 2.5rem;
  }
}
@media (max-width: 760px) {
  .flex-hero {
    padding: 3rem 0;
  }
  .flex-hero__grid,
  .flex-chapter,
  .flex-story-grid,
  .flex-crm-grid,
  .flex-config-grid {
    grid-template-columns: 1fr;
  }
  .flex-hero__grid {
    gap: 3rem;
  }
  .flex-hero h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
    max-width: 16ch;
  }
  .flex-hero-art .context-card {
    left: -0.4rem;
    bottom: 4rem;
    max-width: calc(100% - 0.25rem);
  }
  .flex-hero-art .context-card strong {
    font-size: 1rem;
  }
  .flex-chapter {
    gap: 1.2rem;
    padding: 2.5rem 0;
  }
  .flex-chapter__title h3 {
    max-width: 23ch;
  }
  .flex-chapter__title p {
    margin-bottom: 0;
  }
  .flex-story-photo img {
    aspect-ratio: 1.2;
  }
  .flex-crm-grid {
    gap: 2rem;
  }
  .flex-audiences .platform-number {
    margin-bottom: 1.5rem;
  }
  .flex-audiences .platform-card h3 {
    max-width: 22ch;
  }
}

/* Illustrative product screens. Every label remains real, readable text. */
.flex-demo-note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 48rem;
}
.flex-chapter__copy,
.flex-demo,
.flex-screen,
.flex-screen__body {
  min-width: 0;
}
.flex-chapter__body .flex-takeaway {
  border-left: 3px solid var(--coral);
  padding-left: 1.1rem;
  color: var(--ink);
  margin-top: 1.7rem;
}
.flex-demo {
  margin: 0;
  padding: 1.5rem;
  border-radius: 1.6rem;
  color: var(--ink);
}
.flex-demo--lilac {
  background: var(--lilac-light);
}
.flex-demo--mint {
  background: var(--mint-light);
}
.flex-demo--peach {
  background: #f7dfcf;
}
.flex-demo--yellow {
  background: var(--yellow-light);
}
.flex-demo > figcaption {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.flex-demo-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid currentColor;
  border-radius: 2rem;
  padding: 0.25rem 0.5rem;
  line-height: 1.4;
  opacity: 0.8;
}
.flex-screen {
  background: var(--paper);
  border: 1px solid rgba(24, 61, 53, 0.15);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 12px 25px -20px rgba(24, 61, 53, 0.5);
}
.flex-screen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.flex-screen__brand {
  font: 700 1rem var(--font-display);
}
.flex-screen__brand > span {
  font: 400 0.75rem var(--font-body);
  color: var(--muted);
  margin-left: 0.35rem;
}
.flex-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  background: var(--pale);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}
.flex-badge--green {
  background: var(--mint-light);
}
.flex-screen__body {
  padding: 1.5rem;
}
.flex-screen__eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  margin-bottom: 0.8rem;
}
.flex-screen h4 {
  font-size: 1.65rem;
  margin-bottom: 1.3rem;
}
.flex-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.2rem;
}
.flex-fields > div {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
}
.flex-fields__wide {
  grid-column: 1 / -1;
}
.flex-fields dt {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.flex-fields dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.flex-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.flex-tags > span {
  background: var(--pale);
  border-radius: 0.3rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.67rem;
  line-height: 1.4;
}
.flex-screen__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.73rem;
}
.flex-mock-action {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.4rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.flex-demo .flex-demo-caption {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 1rem 0 0;
}
.flex-pool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 1.1rem;
}
.flex-pool-tabs > span {
  font-size: 0.7rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
}
.flex-pool-tabs .is-selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.flex-worker-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flex-worker-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.flex-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--lilac);
  font-size: 0.75rem;
  font-weight: 700;
}
.flex-avatar--peach {
  background: var(--peach);
}
.flex-worker-list strong {
  display: block;
  font-size: 0.95rem;
}
.flex-worker-list li > div > span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0.2rem 0 0.7rem;
}
.flex-distance {
  font-size: 0.7rem;
  margin-left: auto;
  white-space: nowrap;
}
.flex-phone {
  max-width: 23rem;
  margin: 0 auto;
  padding: 0.45rem;
  border: 1px solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  box-shadow: 0 15px 30px -20px rgba(24, 61, 53, 0.6);
  overflow: hidden;
}
.flex-phone__top {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 1.25rem 0.55rem;
  color: var(--paper);
  font-size: 0.6rem;
}
.flex-chat-header {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--paper);
}
.flex-chat-header strong {
  display: block;
  font-size: 0.9rem;
}
.flex-chat-header div > span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
}
.flex-chat {
  padding: 1rem;
  background: #e4eade;
  border-radius: 0 0 1.5rem 1.5rem;
  min-height: 27rem;
}
.flex-chat__day {
  display: block;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.63rem;
}
.flex-bubble {
  position: relative;
  background: #fff;
  border-radius: 0 0.7rem 0.7rem;
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 1rem 0.6rem 0;
}
.flex-bubble p {
  margin-bottom: 0.7rem;
}
.flex-message-details {
  margin: 0 0 0.75rem;
}
.flex-message-details > div {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem;
  margin: 0.4rem 0;
}
.flex-message-details dt {
  color: var(--muted);
  font-size: 0.73rem;
}
.flex-message-details dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
}
.flex-chat__time {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 0.6rem;
}
.flex-offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-right: 1rem;
}
.flex-offer-actions button,
.flex-confirm-step button {
  border: 1px solid var(--ink);
  border-radius: 0.45rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.5rem;
  min-height: 2.75rem;
  font: 600 0.8rem var(--font-body);
  cursor: pointer;
}
.flex-offer-actions button:last-child {
  color: var(--ink);
  background: #fff;
}
.flex-bubble--reply {
  margin: 1rem 0 0.6rem 2rem;
  background: #cfe5c8;
  border-radius: 0.7rem 0 0.7rem 0.7rem;
}
.flex-bubble--status {
  margin-top: 0.8rem;
}
.flex-bubble--status strong {
  display: block;
  margin-bottom: 0.35rem;
}
.flex-confirm-step {
  margin-top: 1rem;
}
.flex-confirm-step > span {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}
.flex-confirm-step button {
  width: 100%;
}
.flex-demo-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.flex-demo-controls > span {
  flex: 1 1 12rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.flex-demo-controls button {
  border: 0;
  padding: 0.5rem;
  min-height: 2.75rem;
  background: transparent;
  font: 600 0.75rem var(--font-body);
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}
.flex-demo [hidden] {
  display: none !important;
}
.flex-demo button:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
}
.flex-demo button:hover {
  filter: brightness(1.12);
}
.flex-chat__fallback {
  font-size: 0.8rem;
  padding-top: 1rem;
}
.flex-location {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--mint-light);
  border-radius: 0.7rem;
}
.flex-location__pin {
  display: grid;
  place-items: center;
  flex: 0 0 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  font-size: 0.6rem;
}
.flex-location strong {
  display: block;
  font-size: 0.95rem;
}
.flex-location div > span {
  display: block;
  font-size: 0.7rem;
}
.flex-location__check {
  margin-left: auto;
}
.flex-mini-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.flex-mini-timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 1.2rem 1.6rem;
  border-left: 1px solid var(--line);
  font-size: 0.85rem;
}
.flex-mini-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.flex-mini-timeline li::before {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  top: 0.3rem;
  left: -0.36rem;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--paper);
}
.flex-mini-timeline .is-complete::before {
  background: var(--ink);
  border-color: var(--ink);
}
.flex-mini-timeline strong {
  display: block;
}
.flex-mini-timeline span {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.flex-screen__notice {
  margin-top: 1.3rem;
  padding: 0.8rem;
  background: var(--mint-light);
  font-size: 0.75rem;
  border-radius: 0.4rem;
}
.flex-person-heading {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.4rem;
}
.flex-person-heading h4 {
  margin: 0 0 0.25rem;
}
.flex-person-heading div > span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.flex-time-summary {
  margin: 0;
}
.flex-time-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.flex-time-summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.flex-time-summary__total {
  align-items: center;
}
.flex-time-summary__total dd {
  font: 650 1.8rem var(--font-display);
}
.flex-progress-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.flex-progress-track li {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  font-size: 0.68rem;
}
.flex-progress-track li > span {
  display: grid;
  place-items: center;
  flex: 0 0 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.flex-progress-track .is-complete > span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.flex-history-number {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 0.6rem;
  background: var(--lilac-light);
}
.flex-history-number strong {
  font: 650 4rem/1 var(--font-display);
}
.flex-history-number > span {
  font-size: 0.85rem;
}
.flex-history-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.flex-history-row strong {
  display: block;
  font-size: 0.85rem;
}
.flex-history-row div > span {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
}
.flex-demo--crm {
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.06);
  padding: 1.75rem;
}
.flex-demo--crm > figcaption {
  color: var(--paper);
}
.flex-demo--crm .flex-demo-caption {
  color: var(--on-dark);
}
.flex-crm-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.flex-crm-preview__account,
.flex-crm-preview__activity {
  padding: 2rem;
}
.flex-crm-preview__account {
  border-right: 1px solid var(--line);
  background: #f2f1e9;
}
.control .flex-screen h4 {
  color: var(--ink);
}
.control .flex-crm-preview__account > p {
  color: var(--muted);
  font-size: 0.85rem;
}
.flex-crm-facts {
  margin: 1.7rem 0;
}
.flex-crm-facts > div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.flex-crm-facts dt {
  color: var(--muted);
}
.flex-crm-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.flex-crm-reminder {
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--yellow-light);
  font-size: 0.8rem;
}
.flex-crm-reminder strong,
.flex-crm-reminder span {
  display: block;
}
.flex-crm-reminder span {
  margin-top: 0.4rem;
}
.flex-crm-preview__activity .flex-mini-timeline {
  margin-top: 1.25rem;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .flex-chapter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .flex-chapter__copy {
    max-width: 46rem;
  }
  .flex-demo {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
  }
  .flex-chapter__title h3 {
    max-width: 24ch;
  }
  .flex-demo--crm {
    max-width: none;
  }
}
@media (max-width: 760px) {
  .flex-demo {
    padding: 1rem;
    border-radius: 1rem;
  }
  .flex-screen__bar {
    padding: 0.85rem;
  }
  .flex-screen__body {
    padding: 1rem;
  }
  .flex-screen h4 {
    font-size: 1.5rem;
  }
  .flex-chapter {
    padding: 2.5rem 0;
  }
  .flex-crm-preview {
    grid-template-columns: 1fr;
  }
  .flex-crm-preview__account,
  .flex-crm-preview__activity {
    padding: 1.2rem;
  }
  .flex-crm-preview__account {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 390px) {
  .flex-worker-list li {
    flex-wrap: wrap;
  }
  .flex-distance {
    margin-left: 3.15rem;
  }
  .flex-phone {
    margin: 0 -0.4rem;
  }
  .flex-chat {
    padding: 0.8rem;
  }
  .flex-bubble {
    padding: 0.8rem;
    margin-right: 0;
  }
  .flex-message-details > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flex-offer-actions {
    margin-right: 0;
  }
  .flex-progress-track {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .flex-location {
    padding: 0.85rem;
    gap: 0.7rem;
  }
}
