/* "See your first flow built live" (Figma: home / Section, 1100 content).
   Two columns: copy on the left, demo form card (546.86 x 404) on the right,
   56px column gap. */

.fl-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 546.86px;
  align-items: start;
  gap: 56px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 40px;
  font-family: var(--fl-font-sans);
}

@media (min-width: 1220px) {
  .fl-demo.fl-section-sep {
    /* Figma Rect 21 behind demo CTA (7184:15039): pad 81 / 83. */
    --fl-sep-pad-top: 81px;
    --fl-sep-pad-bottom: 83px;
  }
}

.fl-demo__copy {
  display: flex;
  flex-direction: column;
}

.fl-demo__title {
  margin: 0;
  color: var(--fl-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 61.2px;
}

.fl-demo__script {
  color: var(--fl-green);
  font-family: var(--fl-font-script);
  font-weight: 700;
}

.fl-demo__body {
  max-width: 448px;
  margin: 23px 0 0;
  color: var(--fl-text-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 32.5px;
}

.fl-demo__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 23px 0 0;
  padding: 9px 0 0;
  list-style: none;
}

.fl-demo__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fl-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.fl-demo__check {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Form card: radius 12, 2px border, 6px/6px hard shadow, 32px padding. */
.fl-demo__card {
  box-sizing: border-box;
  width: 100%;
  padding: 32px;
  border: 2px solid var(--fl-ink);
  border-radius: 12px;
  background: var(--fl-white);
  box-shadow: 6px 6px 0 0 var(--fl-ink);
}

.fl-demo__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fl-demo__input {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  width: 100%;
  padding: 18px 24px 19px;
  border: 2px solid var(--fl-ink-80);
  border-radius: var(--fl-radius-pill);
  background: var(--fl-surface);
  color: var(--fl-ink);
  font-family: var(--fl-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
}

.fl-demo__input::placeholder {
  color: #828690;
}

/* Active / focused — Figma 7145:14876 */
.fl-demo__input:focus {
  border: 2px solid var(--fl-green);
  background: var(--fl-surface);
  outline: none;
}

.fl-demo__submit {
  box-sizing: border-box;
  width: 100%;
  margin-top: 24px;
  padding: 16px 24px;
  border: 2px solid var(--fl-ink);
  border-radius: var(--fl-radius-pill);
  background: var(--fl-green);
  box-shadow: var(--fl-shadow-lg);
  color: var(--fl-white);
  font-family: var(--fl-font-script);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fl-demo__submit:hover {
  transform: translate(1px, 1px);
  box-shadow: var(--fl-shadow-md);
}

.fl-demo__submit:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.fl-demo__submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: var(--fl-shadow-lg);
  pointer-events: none;
}

.fl-demo__submit:disabled:hover,
.fl-demo__submit:disabled:active {
  transform: none;
  box-shadow: var(--fl-shadow-lg);
}

.fl-demo__fineprint {
  margin: 16px 0 0;
  color: #828690;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

/* Column reveal — copy comes in from the left with a slight rise; the form
   card comes in from the right. They share one trigger and the same duration,
   so they meet in the middle rather than taking turns. */
.fl-demo--armed .fl-demo__copy,
.fl-demo--armed .fl-demo__card {
  opacity: 0;
}

.fl-demo--play .fl-demo__copy,
.fl-demo--play .fl-demo__card {
  animation-duration: 1800ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

.fl-demo--play .fl-demo__copy {
  animation-name: fl-demo-from-left;
}

.fl-demo--play .fl-demo__card {
  animation-name: fl-demo-from-right;
}

@keyframes fl-demo-from-left {
  from {
    opacity: 0;
    transform: translate(-32px, 16px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes fl-demo-from-right {
  from {
    opacity: 0;
    transform: translate(32px, 16px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-demo--armed .fl-demo__copy,
  .fl-demo--armed .fl-demo__card,
  .fl-demo--play .fl-demo__copy,
  .fl-demo--play .fl-demo__card {
    opacity: 1;
    animation: none;
  }
}

/* Hold the card at its Figma width and let the copy absorb the reduction,
   rather than shrinking the card first. */
@media (max-width: 1219px) {
  .fl-demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 546.86px);
    gap: 40px;
  }
}

/* Below 1180 the copy column falls under ~475px, where the 60px title breaks
   into orphaned lines, so stack onto one centred column like the other
   two-column sections. */
@media (max-width: 1180px) {
  .fl-demo__copy {
    align-items: center;
  }

  .fl-demo__list {
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .fl-demo__body {
    text-wrap: pretty;
  }
  /* Stacked, the copy and the form card share one centred column at the card's
     Figma width so they line up with each other and sit mid-page. */
  .fl-demo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 546.86px;
    gap: 48px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .fl-demo__body {
    margin-left: auto;
    margin-right: auto;
  }

  .fl-demo__title {
    font-size: clamp(36px, 7vw, 60px);
    line-height: 1.02;
  }
}

@media (max-width: 800px) {
  .fl-demo.fl-section-sep {
    width: var(--fl-sep-card-width, min(312px, 84%));
    max-width: var(--fl-sep-card-width, min(312px, 84%));
  }

  .fl-demo__list {
    width: 100%;
  }

  .fl-demo__card {
    width: 100%;
  }
}
